diff --git a/eslint.config.mjs b/eslint.config.mjs index 9db1bea..0bc92ca 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -5,7 +5,27 @@ import { defineConfig } from "eslint/config"; export default defineConfig([ - { files: ["**/*.{js,mjs,cjs,ts,mts,cts}"], plugins: { js }, extends: ["js/recommended"] }, + { + files: ["**/*.{js,mjs,cjs,ts,mts,cts}"], + plugins: { js }, + extends: ["js/recommended"], + ignores: ["**/node_modules/**", "**/dist/**", "**/build/**", "**/.next/**"] + }, { files: ["**/*.{js,mjs,cjs,ts,mts,cts}"], languageOptions: { globals: globals.browser } }, - tseslint.configs.recommended, + ...tseslint.configs.recommended, + { + files: ["**/*.{ts,tsx}"], + ignores: ["**/node_modules/**", "**/dist/**", "**/build/**", "**/.next/**"], + rules: { + "@typescript-eslint/no-unused-vars": [ + "error", + { + "argsIgnorePattern": "^_", + "varsIgnorePattern": "^_", + "caughtErrorsIgnorePattern": "^_" + } + ], + "@typescript-eslint/no-explicit-any": "warn" + } + } ]); diff --git a/package.json b/package.json index 9b52a4d..7a6ccb7 100644 --- a/package.json +++ b/package.json @@ -10,9 +10,9 @@ "build": "tsc && node scripts/fix-imports.js", "migrate": "node scripts/run-migrations.js", "do": "pnpm run migrate && pnpm run build && pnpm run start", - "lint": "eslint ./src", - "lint:fix": "eslint . --config eslint.config.cjs --fix", - "lint:format": "eslint . --config eslint.config.cjs --format=codeframe", + "lint": "eslint ./src ./web/src --ext .ts,.tsx", + "lint:fix": "eslint ./src ./web/src --ext .ts,.tsx --config eslint.config.cjs --fix", + "lint:format": "eslint ./src ./web/src --ext .ts,.tsx --config eslint.config.cjs --format=codeframe", "format": "prettier --write \"**/*.{js,json,md,ts,tsx}\" --ignore-path .prettierignore", "format:check": "prettier --check \"**/*.{js,json,md}\" --ignore-path .prettierignore", "check": "pnpm run lint && pnpm run format:check" diff --git a/web/package.json b/web/package.json index 2fbaed8..8968551 100644 --- a/web/package.json +++ b/web/package.json @@ -6,7 +6,7 @@ "dev": "vite", "build": "tsc && vite build", "preview": "vite preview", - "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0" + "lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0" }, "dependencies": { "@heroicons/react": "^2.2.0", diff --git a/web/public/royale_logo.svg b/web/public/royale_logo.svg index 4cf7f99..13f79ec 100644 --- a/web/public/royale_logo.svg +++ b/web/public/royale_logo.svg @@ -1,2 +1,23 @@ - \ No newline at end of file + diff --git a/web/public/royale_logo_dark.svg b/web/public/royale_logo_dark.svg new file mode 100644 index 0000000..d764a0d --- /dev/null +++ b/web/public/royale_logo_dark.svg @@ -0,0 +1,23 @@ + diff --git a/web/src/components/Layout.tsx b/web/src/components/Layout.tsx index d653b2d..4d8224b 100644 --- a/web/src/components/Layout.tsx +++ b/web/src/components/Layout.tsx @@ -3,6 +3,7 @@ import { Link, useLocation } from 'react-router-dom'; import { LayoutDashboard, CheckSquare, Key, Bell, Menu, X, LogOut, User } from 'lucide-react'; import { useAuthStore } from '../stores/authStore'; import { toast } from 'sonner'; +import ThemeToggle from './ThemeToggle'; interface LayoutProps { children: ReactNode; @@ -26,10 +27,7 @@ const Layout = ({ children }: LayoutProps) => { }; return ( -
+
{user?.discriminator && user.discriminator !== '0' ? `${user.username}#${user.discriminator}` : user?.username}
-{user?.email}
+{user?.email}
+
{user?.discriminator && user.discriminator !== '0' ? `${user.username}#${user.discriminator}` : user?.username}
Last Updated: {lastUpdated}
++ Last Updated: {lastUpdated} +
+
Configure your custom AI API keys and endpoints for personalized AI interactions.