diff --git a/frontend/src/components/ui/switch.tsx b/frontend/src/components/ui/switch.tsx
new file mode 100644
index 0000000..82c0847
--- /dev/null
+++ b/frontend/src/components/ui/switch.tsx
@@ -0,0 +1,28 @@
+import * as SwitchPrimitives from '@radix-ui/react-switch'
+import * as React from 'react'
+
+import { cn } from 'lib/utils'
+
+const Switch = React.forwardRef<
+ React.ElementRef
,
+ React.ComponentPropsWithoutRef
+>(({ className, ...props }, ref) => (
+
+
+
+))
+Switch.displayName = SwitchPrimitives.Root.displayName
+
+// eslint-disable-next-line import/prefer-default-export
+export { Switch }
diff --git a/frontend/src/pages/AI/index.tsx b/frontend/src/pages/AI/index.tsx
index d8032fb..c81adb1 100644
--- a/frontend/src/pages/AI/index.tsx
+++ b/frontend/src/pages/AI/index.tsx
@@ -48,7 +48,11 @@ export default function LayoutWithSidebar() {
return (
-
+
([])
export const darkModeAtom = atom(false)
+export const beastModeAtom = atom(false)
const framework = undefined
export const convertFrameworkAtom = atom(framework)
export const selectedFrameworkAtom = atom('html')
diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts
index 4c4ce9e..e661112 100644
--- a/frontend/vite.config.ts
+++ b/frontend/vite.config.ts
@@ -2,40 +2,11 @@
import eslintPlugin from '@nabla/vite-plugin-eslint'
import react from '@vitejs/plugin-react'
import type { PluginOption } from 'vite'
-import { defineConfig, splitVendorChunkPlugin } from 'vite'
+import { defineConfig } from 'vite'
import mkcert from 'vite-plugin-mkcert'
import { VitePWA } from 'vite-plugin-pwa'
import tsconfigPaths from 'vite-tsconfig-paths'
-// Likely don't need this and was mucking with my build
-// eslint-disable-next-line @typescript-eslint/no-unused-vars
-const pwaPlugin = VitePWA({
- registerType: 'autoUpdate',
- includeAssets: [
- 'favicon.png',
- 'robots.txt',
- 'apple-touch-icon.png',
- 'icons/*.svg',
- 'fonts/*.woff2'
- ],
- manifest: {
- theme_color: '#BD34FE',
- icons: [
- {
- src: '/android-chrome-192x192.png',
- sizes: '192x192',
- type: 'image/png',
- purpose: 'any maskable'
- },
- {
- src: '/android-chrome-512x512.png',
- sizes: '512x512',
- type: 'image/png'
- }
- ]
- }
-})
-
const inCodespace = process.env.GITHUB_CODESPACE_TOKEN !== undefined
const plugins: PluginOption[] = [eslintPlugin()]
// Don't listen on SSL in codespaces
@@ -72,7 +43,7 @@ export default defineConfig(({ mode }) => ({
},
plugins: [
tsconfigPaths(),
- splitVendorChunkPlugin(),
+ VitePWA(),
react(),
...(mode === 'test' ? [] : plugins)
]