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,21 @@
|
||||
export function listFieldsFor(fields, listId) {
|
||||
return fields.filter((f) => f.listId === listId && !f.isDeleted).sort((a, b) => (a.order ?? 0) - (b.order ?? 0));
|
||||
}
|
||||
|
||||
export function listItemsFor(items, listId) {
|
||||
return items.filter((i) => i.listId === listId && !i.isDeleted);
|
||||
}
|
||||
|
||||
export function itemValuesFor(values, itemId) {
|
||||
return values.filter((v) => v.itemId === itemId);
|
||||
}
|
||||
|
||||
export function valueFor(values, itemId, fieldId) {
|
||||
return values.find((v) => v.itemId === itemId && v.fieldId === fieldId)?.value ?? null;
|
||||
}
|
||||
|
||||
export function fmtDate(v) {
|
||||
if (v === null || v === undefined) return '—';
|
||||
const d = new Date(v);
|
||||
return Number.isNaN(d.getTime()) ? '—' : d.toLocaleString();
|
||||
}
|
||||
Reference in new issue
Block a user