Skip to content

Commit

Permalink
Shaving off bundle size and removing uneeded stuff with knip (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlemTuzlak authored Oct 8, 2024
1 parent 62644d2 commit c3d57b2
Show file tree
Hide file tree
Showing 42 changed files with 195 additions and 1,710 deletions.
4 changes: 2 additions & 2 deletions docs/app/components/ClientHint.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useRevalidator } from '@remix-run/react'
import { useEffect } from 'react'

export const clientHints = {
const clientHints = {
theme: {
cookieName: 'CH-prefers-color-scheme',
getValueCode:
Expand Down Expand Up @@ -127,7 +127,7 @@ document.cookie = encodeURIComponent(hint.name) + '=' + encodeURIComponent(hint.
}
}
// On Cookie change, reload the page, unless the browser doesn't support Cookies.
// On Cookie change, reload the page, unless the browser doesn't support Cookies.
if (hasCookieChanged && navigator.cookieEnabled) {
window.location.reload();
}
Expand Down
2 changes: 1 addition & 1 deletion docs/app/components/FeaturesSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const content = [
</span>
in real time. See your deferred data load in and see your cached loader
information . No more
<span className="mx-1 font-bold text-red-500">console.log().</span>Get
<span className="mx-1 font-bold text-red-500">console.log</span>Get
the information you need when you need it.
</div>
),
Expand Down
2 changes: 1 addition & 1 deletion docs/app/components/ui/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function Button({
)
}

export const MovingBorder = ({
const MovingBorder = ({
children,
duration = 2000,
rx,
Expand Down
19 changes: 1 addition & 18 deletions docs/app/components/ui/Lamp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,7 @@ import React from 'react'
import { motion } from 'framer-motion'
import { cn } from '~/utils/cn'

export function LampDemo() {
return (
<LampContainer>
<motion.h1
initial={{ opacity: 0.5, y: 100 }}
whileInView={{ opacity: 1, y: 0 }}
transition={{
delay: 0.3,
duration: 0.8,
ease: 'easeInOut',
}}
className="mt-8 bg-gradient-to-br from-slate-300 to-slate-500 bg-clip-text py-4 text-center text-4xl font-medium tracking-tight text-transparent md:text-7xl"
>
Build lamps <br /> the right way
</motion.h1>
</LampContainer>
)
}


export const LampContainer = ({
children,
Expand Down
55 changes: 0 additions & 55 deletions docs/app/components/ui/Spotlight.tsx

This file was deleted.

6 changes: 3 additions & 3 deletions docs/app/components/ui/navbar-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const transition = {
restSpeed: 0.001,
}

export const MenuItem = ({
const MenuItem = ({
setActive,
active,
item,
Expand Down Expand Up @@ -59,7 +59,7 @@ export const MenuItem = ({
)
}

export const Menu = ({
const Menu = ({
setActive,
children,
}: {
Expand All @@ -76,7 +76,7 @@ export const Menu = ({
)
}

export const HoveredLink = ({ children, ...rest }: any) => {
const HoveredLink = ({ children, ...rest }: any) => {
return (
<Link
{...rest}
Expand Down
53 changes: 0 additions & 53 deletions docs/app/components/ui/text-generate-effect.tsx

This file was deleted.

172 changes: 0 additions & 172 deletions docs/app/components/ui/text-reveal-card.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion docs/app/components/ui/typewritter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const TypewriterEffect = ({
)
}

export const TypewriterEffectSmooth = ({
const TypewriterEffectSmooth = ({
words,
className,
cursorClassName,
Expand Down
17 changes: 0 additions & 17 deletions docs/app/hooks/useResetCallback.ts

This file was deleted.

Loading

0 comments on commit c3d57b2

Please sign in to comment.