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,28 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestTimestampAcceptsNumericAndStringValues(t *testing.T) {
|
||||
for _, input := range []string{`1700000000000`, `"1700000000000"`} {
|
||||
var timestamp Timestamp
|
||||
if err := json.Unmarshal([]byte(input), ×tamp); err != nil {
|
||||
t.Fatalf("unmarshal %s: %v", input, err)
|
||||
}
|
||||
if timestamp != 1700000000000 {
|
||||
t.Fatalf("unmarshal %s = %d, want 1700000000000", input, timestamp)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestTimestampAcceptsNullAsZero(t *testing.T) {
|
||||
var timestamp Timestamp = 42
|
||||
if err := json.Unmarshal([]byte(`null`), ×tamp); err != nil {
|
||||
t.Fatalf("unmarshal null: %v", err)
|
||||
}
|
||||
if timestamp != 0 {
|
||||
t.Fatalf("null timestamp = %d, want 0", timestamp)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user