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,48 @@
|
||||
<script>
|
||||
import { createQuery } from '@tanstack/svelte-query';
|
||||
import { fetchTechStack } from '$lib/api.js';
|
||||
|
||||
const FRONTEND_TECH_STACK = __FRONTEND_TECH_STACK__;
|
||||
|
||||
const techStackQuery = createQuery(() => ({
|
||||
queryKey: ['TechStack'],
|
||||
queryFn: fetchTechStack,
|
||||
}));
|
||||
|
||||
const techStack = $derived(techStackQuery.data);
|
||||
</script>
|
||||
|
||||
{#snippet infoRow(label, value)}
|
||||
<div class="flex items-center justify-between gap-2 py-1 text-sm">
|
||||
<span class="text-muted-fg">{label}</span>
|
||||
<span class="font-mono text-xs text-fg">{value}</span>
|
||||
</div>
|
||||
{/snippet}
|
||||
|
||||
<div class="rounded-lg border border-border bg-surface p-4">
|
||||
<h3 class="mb-2 text-sm font-medium text-fg">Tech stack</h3>
|
||||
|
||||
{#if techStackQuery.isLoading}
|
||||
<p class="text-sm text-muted-fg">Loading tech stack…</p>
|
||||
{/if}
|
||||
{#if techStackQuery.error}
|
||||
<p class="text-sm text-danger">{techStackQuery.error.message}</p>
|
||||
{/if}
|
||||
|
||||
{#if techStack}
|
||||
<div class="mt-3 grid gap-6 sm:grid-cols-2">
|
||||
<div>
|
||||
<h4 class="mb-1 text-xs font-medium uppercase text-muted-fg">Backend</h4>
|
||||
{#each techStack.stack as entry (entry.label)}
|
||||
{@render infoRow(entry.label, entry.value)}
|
||||
{/each}
|
||||
</div>
|
||||
<div>
|
||||
<h4 class="mb-1 text-xs font-medium uppercase text-muted-fg">Frontend</h4>
|
||||
{#each FRONTEND_TECH_STACK as dep (dep.name)}
|
||||
{@render infoRow(dep.name, dep.version)}
|
||||
{/each}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
Reference in new issue
Block a user