feat: add user credentials management and health monitoring features
- Implemented CredentialsDialog for updating user credentials. - Created auth store with functions for managing authentication state. - Added HealthWidget to display server health status. - Introduced health monitoring functionality with polling. - Developed AppShell layout to manage authentication and loading states. - Added SettingsDialog for user preferences including theme and language. - Created utility functions for list management and data fetching. - Implemented dashboard view mode preferences. - Integrated search functionality for filtering lists. - Established theme management with local storage support. - Added utility functions for class name management. - Configured SvelteKit for static site generation with fallback. - Set up Vite for development with proxy support for API calls. - Created About and List detail pages with data fetching and display. - Added favicon and updated project configuration files.
This commit is contained in:
1 parent
a4a3eeb5cc
commit
6c1ea2da47
80 files changed
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