Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 51 additions & 57 deletions apps/docs/src/app/global.css
Original file line number Diff line number Diff line change
@@ -1,77 +1,71 @@
@import 'tailwindcss';
@import 'fumadocs-ui/css/black.css';
@import 'fumadocs-ui/css/shadcn.css';
@import 'fumadocs-ui/css/preset.css';

@source '../../node_modules/fumadocs-ui/dist/**/*.js';

:root:not(.dark) {
--radius: 0.625rem;
--background: oklch(1 0 0);
--foreground: oklch(0.145 0 0);
--foreground: oklch(0.141 0.005 285.823);
--card: oklch(1 0 0);
--card-foreground: oklch(0.145 0 0);
--card-foreground: oklch(0.141 0.005 285.823);
--popover: oklch(1 0 0);
--popover-foreground: oklch(0.145 0 0);
--popover-foreground: oklch(0.141 0.005 285.823);
--primary: oklch(0.51 0.16 262.61);
--primary-foreground: oklch(0.985 0 0);
--secondary: oklch(0.97 0 0);
--secondary-foreground: oklch(0.205 0 0);
--muted: oklch(0.97 0 0);
--muted-foreground: oklch(0.556 0 0);
--accent: oklch(0.97 0 0);
--accent-foreground: oklch(0.205 0 0);
--secondary: oklch(0.967 0.001 286.375);
--secondary-foreground: oklch(0.21 0.006 285.885);
--muted: oklch(0.967 0.001 286.375);
--muted-foreground: oklch(0.552 0.016 285.938);
--accent: oklch(0.94 0.005 286); /* Adjusted for better contrast on muted */
--accent-foreground: oklch(0.21 0.006 285.885);
--destructive: oklch(0.577 0.245 27.325);
--border: oklch(0.922 0 0);
--input: oklch(0.922 0 0);
--ring: oklch(0.708 0 0);
--chart-1: oklch(0.646 0.222 41.116);
--chart-2: oklch(0.6 0.118 184.704);
--chart-3: oklch(0.398 0.07 227.392);
--chart-4: oklch(0.828 0.189 84.429);
--chart-5: oklch(0.769 0.188 70.08);
--sidebar: oklch(0.985 0 0);
--sidebar-foreground: oklch(0.145 0 0);
--sidebar-primary: oklch(0.205 0 0);
--sidebar-primary-foreground: oklch(0.985 0 0);
--sidebar-accent: oklch(0.97 0 0);
--sidebar-accent-foreground: oklch(0.205 0 0);
--sidebar-border: oklch(0.922 0 0);
--sidebar-ring: oklch(0.708 0 0);
--border: oklch(
0.9 0.02 262.61
); /* Similar hue to dark primary, lighter/desaturated */
--ring: oklch(0.7 0.16 262.61); /* Lighter version of dark primary */
--chart-1: oklch(0.65 0.22 40);
--chart-2: oklch(0.6 0.15 185);
--chart-3: oklch(0.42 0.09 230);
--chart-4: oklch(0.83 0.19 85);
--chart-5: oklch(0.77 0.18 70);
}

.dark {
--radius: 0.625rem;
--background: oklch(0.145 0 0);
--foreground: oklch(0.985 0 0);
--card: oklch(0.205 0 0);
--card-foreground: oklch(0.985 0 0);
--popover: oklch(0.269 0 0);
--popover-foreground: oklch(0.985 0 0);
--background: oklch(0.12 0 0);
--foreground: oklch(0.98 0.005 240);
--card: oklch(0.18 0.005 240);
--card-foreground: oklch(0.98 0.005 240);
--popover: oklch(0.18 0.005 240);
--popover-foreground: oklch(0.98 0.005 240);
--primary: oklch(0.51 0.16 262.61);
--primary-foreground: oklch(0.985 0 0);
--secondary: oklch(0.269 0 0);
--secondary-foreground: oklch(0.985 0 0);
--muted: oklch(0.269 0 0);
--muted-foreground: oklch(0.708 0 0);
--accent: oklch(0.371 0 0);
--accent-foreground: oklch(0.985 0 0);
--primary-foreground: oklch(0.99 0.005 240);
--secondary: oklch(0.24 0.01 240);
--secondary-foreground: oklch(0.98 0.005 240);
--muted: oklch(0.22 0.01 240); /* Made slightly darker */
--muted-foreground: oklch(0.75 0.005 240);
--accent: oklch(0.28 0.015 240);
--destructive: oklch(0.704 0.191 22.216);
--border: oklch(1 0 0 / 10%);
--input: oklch(1 0 0 / 15%);
--ring: oklch(0.556 0 0);
--chart-1: oklch(0.488 0.243 264.376);
--chart-2: oklch(0.696 0.17 162.48);
--chart-3: oklch(0.769 0.188 70.08);
--chart-4: oklch(0.627 0.265 303.9);
--chart-5: oklch(0.645 0.246 16.439);
--sidebar: oklch(0.205 0 0);
--sidebar-foreground: oklch(0.985 0 0);
--sidebar-primary: oklch(0.488 0.243 264.376);
--sidebar-primary-foreground: oklch(0.985 0 0);
--sidebar-accent: oklch(0.269 0 0);
--sidebar-accent-foreground: oklch(0.985 0 0);
--sidebar-border: oklch(1 0 0 / 10%);
--sidebar-ring: oklch(0.439 0 0);
--border: oklch(0.28 0.005 240);
--ring: oklch(0.51 0.16 262.61);
--chart-1: oklch(0.55 0.24 265);
--chart-2: oklch(0.7 0.17 160);
--chart-3: oklch(0.8 0.18 70);
--chart-4: oklch(0.7 0.26 300);
--chart-5: oklch(0.7 0.24 20);
}

:root {
--radius: 0.625rem;
--input: var(--border);
--sidebar: var(--muted);
--sidebar-foreground: var(--foreground);
--sidebar-primary: var(--primary);
--sidebar-primary-foreground: var(--primary-foreground);
--sidebar-accent: var(--accent);
--sidebar-accent-foreground: var(--accent-foreground);
--sidebar-border: var(--border);
--sidebar-ring: var(--ring);
}

@theme inline {
Expand Down
27 changes: 27 additions & 0 deletions apps/web/src/app/global-error.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
'use client';

import { vitNodeConfig } from '@/vitnode.config';
import { Geist, Geist_Mono } from 'next/font/google';

import './globals.css';

import { GlobalErrorView } from 'vitnode/views/error/global-error-view';

const geistSans = Geist({
variable: '--font-geist-sans',
subsets: ['latin'],
});

const geistMono = Geist_Mono({
variable: '--font-geist-mono',
subsets: ['latin'],
});

export default function GlobalError() {
return (
<GlobalErrorView
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
config={vitNodeConfig}
/>
);
}
106 changes: 50 additions & 56 deletions apps/web/src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,73 +8,67 @@
@custom-variant dark (&:is(.dark *));

:root:not(.dark) {
--radius: 0.625rem;
--background: oklch(1 0 0);
--foreground: oklch(0.145 0 0);
--foreground: oklch(0.141 0.005 285.823);
--card: oklch(1 0 0);
--card-foreground: oklch(0.145 0 0);
--card-foreground: oklch(0.141 0.005 285.823);
--popover: oklch(1 0 0);
--popover-foreground: oklch(0.145 0 0);
--popover-foreground: oklch(0.141 0.005 285.823);
--primary: oklch(0.51 0.16 262.61);
--primary-foreground: oklch(0.985 0 0);
--secondary: oklch(0.97 0 0);
--secondary-foreground: oklch(0.205 0 0);
--muted: oklch(0.97 0 0);
--muted-foreground: oklch(0.556 0 0);
--accent: oklch(0.97 0 0);
--accent-foreground: oklch(0.205 0 0);
--secondary: oklch(0.967 0.001 286.375);
--secondary-foreground: oklch(0.21 0.006 285.885);
--muted: oklch(0.967 0.001 286.375);
--muted-foreground: oklch(0.552 0.016 285.938);
--accent: oklch(0.94 0.005 286); /* Adjusted for better contrast on muted */
--accent-foreground: oklch(0.21 0.006 285.885);
--destructive: oklch(0.577 0.245 27.325);
--border: oklch(0.922 0 0);
--input: oklch(0.922 0 0);
--ring: oklch(0.708 0 0);
--chart-1: oklch(0.646 0.222 41.116);
--chart-2: oklch(0.6 0.118 184.704);
--chart-3: oklch(0.398 0.07 227.392);
--chart-4: oklch(0.828 0.189 84.429);
--chart-5: oklch(0.769 0.188 70.08);
--sidebar: oklch(0.985 0 0);
--sidebar-foreground: oklch(0.145 0 0);
--sidebar-primary: oklch(0.205 0 0);
--sidebar-primary-foreground: oklch(0.985 0 0);
--sidebar-accent: oklch(0.97 0 0);
--sidebar-accent-foreground: oklch(0.205 0 0);
--sidebar-border: oklch(0.922 0 0);
--sidebar-ring: oklch(0.708 0 0);
--border: oklch(
0.9 0.02 262.61
); /* Similar hue to dark primary, lighter/desaturated */
--ring: oklch(0.7 0.16 262.61); /* Lighter version of dark primary */
--chart-1: oklch(0.65 0.22 40);
--chart-2: oklch(0.6 0.15 185);
--chart-3: oklch(0.42 0.09 230);
--chart-4: oklch(0.83 0.19 85);
--chart-5: oklch(0.77 0.18 70);
}

.dark {
--radius: 0.625rem;
--background: oklch(0.145 0 0);
--foreground: oklch(0.985 0 0);
--card: oklch(0.205 0 0);
--card-foreground: oklch(0.985 0 0);
--popover: oklch(0.269 0 0);
--popover-foreground: oklch(0.985 0 0);
--background: oklch(0.12 0 0);
--foreground: oklch(0.98 0.005 240);
--card: oklch(0.18 0.005 240);
--card-foreground: oklch(0.98 0.005 240);
--popover: oklch(0.18 0.005 240);
--popover-foreground: oklch(0.98 0.005 240);
--primary: oklch(0.51 0.16 262.61);
--primary-foreground: oklch(0.985 0 0);
--secondary: oklch(0.269 0 0);
--secondary-foreground: oklch(0.985 0 0);
--muted: oklch(0.269 0 0);
--muted-foreground: oklch(0.708 0 0);
--accent: oklch(0.371 0 0);
--accent-foreground: oklch(0.985 0 0);
--primary-foreground: oklch(0.99 0.005 240);
--secondary: oklch(0.24 0.01 240);
--secondary-foreground: oklch(0.98 0.005 240);
--muted: oklch(0.22 0.01 240); /* Made slightly darker */
--muted-foreground: oklch(0.75 0.005 240);
--accent: oklch(0.28 0.015 240);
--destructive: oklch(0.704 0.191 22.216);
--border: oklch(1 0 0 / 10%);
--input: oklch(1 0 0 / 15%);
--ring: oklch(0.556 0 0);
--chart-1: oklch(0.488 0.243 264.376);
--chart-2: oklch(0.696 0.17 162.48);
--chart-3: oklch(0.769 0.188 70.08);
--chart-4: oklch(0.627 0.265 303.9);
--chart-5: oklch(0.645 0.246 16.439);
--sidebar: oklch(0.205 0 0);
--sidebar-foreground: oklch(0.985 0 0);
--sidebar-primary: oklch(0.488 0.243 264.376);
--sidebar-primary-foreground: oklch(0.985 0 0);
--sidebar-accent: oklch(0.269 0 0);
--sidebar-accent-foreground: oklch(0.985 0 0);
--sidebar-border: oklch(1 0 0 / 10%);
--sidebar-ring: oklch(0.439 0 0);
--border: oklch(0.28 0.005 240);
--ring: oklch(0.51 0.16 262.61);
--chart-1: oklch(0.55 0.24 265);
--chart-2: oklch(0.7 0.17 160);
--chart-3: oklch(0.8 0.18 70);
--chart-4: oklch(0.7 0.26 300);
--chart-5: oklch(0.7 0.24 20);
}

:root {
--radius: 0.625rem;
--input: var(--border);
--sidebar: var(--muted);
--sidebar-foreground: var(--foreground);
--sidebar-primary: var(--primary);
--sidebar-primary-foreground: var(--primary-foreground);
--sidebar-accent: var(--accent);
--sidebar-accent-foreground: var(--accent-foreground);
--sidebar-border: var(--border);
--sidebar-ring: var(--ring);
}

@theme inline {
Expand Down
2 changes: 1 addition & 1 deletion packages/vitnode/.swcrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://swc.rs/schema.json",
"minify": true,
"minify": false,
"jsc": {
"baseUrl": "./",
"target": "esnext",
Expand Down
28 changes: 14 additions & 14 deletions packages/vitnode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
"@hono/zod-openapi": "^0.19.6",
"@hono/zod-validator": "^0.5.0",
"@hookform/resolvers": "^5.0.1",
"@react-email/components": "0.0.36",
"@swc/cli": "^0.7.3",
"@react-email/components": "0.0.37",
"@swc/cli": "0.6.0",
"@swc/core": "^1.11.24",
"@testing-library/react": "^14.2.1",
"@vitejs/plugin-react": "^4.2.1",
"@vitest/coverage-v8": "^1.2.1",
"@testing-library/react": "^16.3.0",
"@types/node": "^22.15.3",
"@types/nodemailer": "^6.4.17",
"@types/react": "^19.1.2",
"@types/react-dom": "^19.1.2",
"@types/react-dom": "^19.1.3",
"@vitejs/plugin-react": "^4.4.1",
"@vitest/coverage-v8": "^3.1.2",
"chokidar": "^4.0.3",
"concurrently": "^9.1.2",
"dotenv": "^16.5.0",
Expand All @@ -24,22 +24,22 @@
"eslint": "^9.25.1",
"eslint-config-typescript-vitnode": "workspace:*",
"hono": "^4.7.8",
"jsdom": "^23.2.0",
"jsdom": "^26.1.0",
"lucide-react": "^0.503.0",
"next": "^15.3.1",
"next-intl": "^4.1.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"react-email": "^4.0.7",
"react-email": "^4.0.11",
"react-hook-form": "^7.56.1",
"sonner": "^2.0.3",
"tailwindcss": "^4.1.4",
"tailwindcss": "^4.1.5",
"tsc-alias": "^1.8.15",
"tsup": "^8.4.0",
"tw-animate-css": "^1.2.8",
"typescript": "^5.8.3",
"vite-tsconfig-paths": "^4.3.1",
"vitest": "^1.2.1",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^3.1.2",
"zod": "^3.24.3"
},
"bin": {
Expand All @@ -62,7 +62,7 @@
"build:scripts": "tsup",
"start:scripts": "bun ./dist/scripts/scripts.js",
"build": "tsc && swc src -d dist --config-file .swcrc && tsc-alias -p tsconfig.json",
"dev": "concurrently \"tsc -w --preserveWatchOutput\" \"swc src -d dist --config-file .swcrc -w\"",
"dev": "concurrently \"tsc -w --preserveWatchOutput\" \"swc src -d dist --config-file .swcrc -w\" \"tsc-alias -w\"",
"dev:email": "email dev",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
Expand All @@ -73,7 +73,7 @@
"type": "module",
"dependencies": {
"@dnd-kit/core": "^6.3.1",
"@tanstack/react-query": "^5.74.11",
"@tanstack/react-query": "^5.75.0",
"cache-manager": "^6.4.2",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
Expand All @@ -84,7 +84,7 @@
"postgres": "^3.4.5",
"radix-ui": "^1.3.4",
"react-scan": "^0.3.3",
"resend": "^4.4.1",
"resend": "^4.5.0",
"tailwind-merge": "^3.2.0",
"vaul": "^1.1.2"
}
Expand Down
2 changes: 2 additions & 0 deletions packages/vitnode/src/views/admin/dynamic-admin-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { notFound } from 'next/navigation';

import { VitNodeConfig } from '../../vitnode.config';
import { DashboardAdminView } from './views/core/dashboard/dashboard-admin-view';
import { TestView } from './views/core/test';
import { UsersAdminView } from './views/core/users/users-admin-view';

export interface DynamicAdminViewProps {
Expand Down Expand Up @@ -36,6 +37,7 @@ export const DynamicAdminView = async ({
const views = {
core: <DashboardAdminView />,
'core/users': <UsersAdminView />,
'core/test': <TestView />,
};

const view = views[path];
Expand Down
Loading
Loading