chore: removed junk deps
This commit is contained in:
1 parent
dfe107eda2
commit
02b1ec5f68
9 files changed
+112
-673
No files matched your search
+3
-3
@@ -1,4 +1,4 @@
|
||||
import React, { CSSProperties, ReactNode } from 'react';
|
||||
import React, { ReactNode } from 'react';
|
||||
import type { Metadata, Viewport } from 'next';
|
||||
import { Poppins } from 'next/font/google';
|
||||
import { cookies } from 'next/headers';
|
||||
@@ -18,7 +18,7 @@ export const viewport: Viewport = {
|
||||
width: 'device-width'
|
||||
};
|
||||
|
||||
const font = Poppins({ subsets: ['latin'], weight: ['400', '500', '600'] });
|
||||
const font = Poppins({ subsets: ['latin'], weight: ['400', '500'] });
|
||||
|
||||
const RootLayout = ({ children }: { children: ReactNode }) => {
|
||||
const theme = cookies().get('theme')?.value as Theme;
|
||||
@@ -28,7 +28,7 @@ const RootLayout = ({ children }: { children: ReactNode }) => {
|
||||
<head>
|
||||
<meta name='theme-color' content={theme === 'dark' ? 'hsl(222.2 84% 4.9%)' : 'white'} />
|
||||
</head>
|
||||
<body style={{ '--font-family': font.style.fontFamily, ...font.style } as CSSProperties}>
|
||||
<body className={font.className}>
|
||||
<Providers theme={theme}>
|
||||
<Header className='sticky top-0 z-20' />
|
||||
<main className='container'>{children}</main>
|
||||
|
||||
@@ -19,7 +19,6 @@ import CaptionsMenu from './components/CaptionsMenu';
|
||||
import VideosMenu from './components/VideosMenu';
|
||||
import useSource from './useSource';
|
||||
|
||||
import '@vidstack/react/player/styles/base.css';
|
||||
import '@vidstack/react/player/styles/plyr/theme.css';
|
||||
|
||||
interface Props {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { FC } from 'react';
|
||||
import { CaretSortIcon } from '@radix-ui/react-icons';
|
||||
import { ArrowDownIcon } from 'lucide-react';
|
||||
import { ArrowDownIcon, ArrowUpIcon } from 'lucide-react';
|
||||
|
||||
import { Sort } from '@/api/parsers';
|
||||
import { TableHead } from '@/components/ui/table';
|
||||
@@ -23,7 +22,7 @@ const TableHeadSortable: FC<Props> = ({ title, sort, value, sortable, className,
|
||||
<div className='flex items-center gap-1'>
|
||||
<span>{title}</span>
|
||||
{sortable &&
|
||||
(sort === value ? <ArrowDownIcon className='ml-2 size-4' /> : <CaretSortIcon className='ml-2 size-4' />)}
|
||||
(sort === value ? <ArrowDownIcon className='ml-2 size-4' /> : <ArrowUpIcon className='ml-2 size-4' />)}
|
||||
</div>
|
||||
</TableHead>
|
||||
);
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
'use client'
|
||||
|
||||
import * as React from 'react'
|
||||
import * as SeparatorPrimitive from '@radix-ui/react-separator'
|
||||
|
||||
import { cn } from '@/lib/utils'
|
||||
|
||||
const Separator = React.forwardRef<
|
||||
React.ElementRef<typeof SeparatorPrimitive.Root>,
|
||||
React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>
|
||||
>(
|
||||
(
|
||||
{ className, orientation = 'horizontal', decorative = true, ...props },
|
||||
ref
|
||||
) => (
|
||||
<SeparatorPrimitive.Root
|
||||
ref={ref}
|
||||
decorative={decorative}
|
||||
orientation={orientation}
|
||||
className={cn(
|
||||
'shrink-0 bg-border',
|
||||
orientation === 'horizontal' ? 'h-[1px] w-full' : 'h-full w-[1px]',
|
||||
className
|
||||
)}
|
||||
{...props}
|
||||
/>
|
||||
)
|
||||
)
|
||||
Separator.displayName = SeparatorPrimitive.Root.displayName
|
||||
|
||||
export { Separator }
|
||||
@@ -1,5 +1,6 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
experimental: { optimizeCss: true },
|
||||
images: {
|
||||
remotePatterns: [
|
||||
{
|
||||
|
||||
Generated
+81
-613
File diff suppressed because it is too large.
Load diff
+3
-10
@@ -12,19 +12,15 @@
|
||||
"dependencies": {
|
||||
"@radix-ui/react-dialog": "^1.1.1",
|
||||
"@radix-ui/react-dropdown-menu": "^2.1.2",
|
||||
"@radix-ui/react-icons": "^1.3.0",
|
||||
"@radix-ui/react-separator": "^1.0.3",
|
||||
"@radix-ui/react-slot": "^1.0.2",
|
||||
"@radix-ui/react-tabs": "^1.0.4",
|
||||
"@radix-ui/react-toast": "^1.2.2",
|
||||
"@radix-ui/react-toggle": "^1.0.3",
|
||||
"@tanstack/react-query": "^5.59.15",
|
||||
"@vidstack/react": "^1.12.11",
|
||||
"axios": "^1.4.0",
|
||||
"class-variance-authority": "^0.7.0",
|
||||
"classnames": "^2.3.2",
|
||||
"clsx": "^2.0.0",
|
||||
"cmdk": "^0.2.1",
|
||||
"critters": "^0.0.25",
|
||||
"jotai": "^2.2.2",
|
||||
"js-cookie": "^3.0.5",
|
||||
"lucide-react": "^0.453.0",
|
||||
@@ -34,8 +30,7 @@
|
||||
"react-dom": "^18.3.1",
|
||||
"react-modal-promise": "^1.0.2",
|
||||
"react-virtuoso": "^4.10.1",
|
||||
"typescript": "5.1.6",
|
||||
"vaul": "^0.8.9"
|
||||
"typescript": "5.1.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tanstack/react-query-devtools": "^5.59.15",
|
||||
@@ -54,8 +49,6 @@
|
||||
"postcss": "^8.4.27",
|
||||
"prettier": "^3.0.0",
|
||||
"tailwind-merge": "^1.14.0",
|
||||
"tailwindcss": "^3.3.3",
|
||||
"tailwindcss-animate": "^1.0.6",
|
||||
"tailwindcss-touch": "^1.0.1"
|
||||
"tailwindcss": "^3.3.3"
|
||||
}
|
||||
}
|
||||
+21
-3
@@ -2,9 +2,6 @@
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
||||
@import '@vidstack/react/player/styles/base.css';
|
||||
@import '@vidstack/react/player/styles/plyr/theme.css';
|
||||
|
||||
@layer base {
|
||||
:root {
|
||||
--background: 0 0% 100%;
|
||||
@@ -161,3 +158,24 @@
|
||||
--plyr-video-control-color: white;
|
||||
--plyr-color-main: white;
|
||||
}
|
||||
|
||||
[data-media-provider] {
|
||||
display: flex;
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
border-radius: inherit;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
aspect-ratio: inherit;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
[data-media-player] {
|
||||
width: 100%;
|
||||
display: inline-flex;
|
||||
position: relative;
|
||||
contain: style;
|
||||
justify-content: center;
|
||||
user-select: none;
|
||||
}
|
||||
+1
-9
@@ -86,13 +86,5 @@ module.exports = {
|
||||
},
|
||||
corePlugins: {
|
||||
aspectRatio: false
|
||||
},
|
||||
plugins: [
|
||||
require('tailwindcss-animate'),
|
||||
require('tailwindcss-touch')(),
|
||||
require('@vidstack/react/tailwind.cjs')({
|
||||
selector: '.media-player',
|
||||
prefix: 'media'
|
||||
})
|
||||
]
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user