feat: add paginator component for list navigation
feat: implement select component for dropdown functionality feat: create tooltip component for enhanced user interaction feat: add TechStackSection to display technology stack information feat: implement HealthWidget to monitor server health status feat: create AppShell layout for consistent application structure feat: add SettingsDialog for user preferences management feat: implement list helpers for managing list data feat: create overview data fetching for lists feat: add view mode preferences for dashboard layout feat: implement search functionality for filtering lists feat: add theme management for light and dark modes feat: create utility functions for class name management chore: configure SvelteKit with static adapter and Vite chore: add favicon for branding chore: set up Vite configuration with Tailwind CSS and proxy settings
This commit is contained in:
1 parent
55f9b89063
commit
6b14cebf4f
55 files changed
+5069
-521
No files matched your search
@@ -0,0 +1,43 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import tailwindcss from '@tailwindcss/vite';
|
||||
import { sveltekit } from '@sveltejs/kit/vite';
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
// Real installed frontend dependency versions for the About page, resolved from
|
||||
// node_modules (not the package.json semver range) so it can't drift from what's bundled.
|
||||
const FRONTEND_TECH_STACK_PACKAGES = [
|
||||
{ name: 'Svelte', pkg: 'svelte' },
|
||||
{ name: 'SvelteKit', pkg: '@sveltejs/kit' },
|
||||
{ name: 'TanStack Query', pkg: '@tanstack/svelte-query' },
|
||||
{ name: 'Tailwind CSS', pkg: 'tailwindcss' },
|
||||
{ name: 'Vite', pkg: 'vite' },
|
||||
];
|
||||
|
||||
function readInstalledVersion(pkg) {
|
||||
try {
|
||||
const pkgJsonPath = path.resolve(import.meta.dirname, 'node_modules', pkg, 'package.json');
|
||||
return JSON.parse(fs.readFileSync(pkgJsonPath, 'utf-8')).version ?? null;
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
const frontendTechStack = FRONTEND_TECH_STACK_PACKAGES.flatMap(({ name, pkg }) => {
|
||||
const version = readInstalledVersion(pkg);
|
||||
return version ? [{ name, version }] : [];
|
||||
});
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [tailwindcss(), sveltekit()],
|
||||
define: {
|
||||
__FRONTEND_TECH_STACK__: JSON.stringify(frontendTechStack),
|
||||
},
|
||||
server: {
|
||||
port: 5173,
|
||||
proxy: {
|
||||
'/web': 'http://localhost:3000',
|
||||
'/health': 'http://localhost:3000',
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user