style(design): apply Minimal Dark Mode design system\n\n- Switched to complete Dark Mode (OLED-friendly)\n- Established standard color palette matching modern technical aesthetics\n- Changed font to Plus Jakarta Sans for increased legibility\n- Enforced dark mode as default in App.tsx\n- Fixed several React cascading render (setState in useEffect) warnings
This commit is contained in:
1 parent
b80531f8a8
commit
bac7b5591e
738 files changed
+138513
-138123
No files matched your search
+101
-101
@@ -1,101 +1,101 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
export interface DeviceProfile {
|
||||
machineId: string;
|
||||
macMachineId: string;
|
||||
devDeviceId: string;
|
||||
sqmId: string;
|
||||
}
|
||||
|
||||
export interface DeviceProfileVersion {
|
||||
id: string;
|
||||
createdAt: number;
|
||||
label: string;
|
||||
profile: DeviceProfile;
|
||||
isCurrent: boolean;
|
||||
}
|
||||
|
||||
export interface DeviceProfilesSnapshot {
|
||||
currentStorage?: DeviceProfile;
|
||||
boundProfile?: DeviceProfile;
|
||||
history: DeviceProfileVersion[];
|
||||
baseline?: DeviceProfile;
|
||||
}
|
||||
|
||||
export interface Account {
|
||||
id: string; // UUID
|
||||
name: string;
|
||||
email: string;
|
||||
backup_file?: string;
|
||||
avatar_url?: string;
|
||||
deviceProfile?: DeviceProfile;
|
||||
deviceHistory?: DeviceProfileVersion[];
|
||||
created_at: string;
|
||||
last_used: string;
|
||||
}
|
||||
|
||||
export interface AccountBackupData {
|
||||
version: string; // Backup format version
|
||||
account: Account;
|
||||
data: {
|
||||
// Key-value pairs from Gemini Nexus database
|
||||
geminiNexusAuthStatus?: string;
|
||||
'jetskiStateSync.agentManagerInitState'?: string;
|
||||
'geminiNexusUnifiedStateSync.oauthToken'?: string;
|
||||
[key: string]: unknown;
|
||||
};
|
||||
}
|
||||
|
||||
export interface AccountInfo {
|
||||
email: string;
|
||||
name?: string;
|
||||
isAuthenticated: boolean;
|
||||
}
|
||||
|
||||
// Zod Schemas for validation
|
||||
|
||||
export const DeviceProfileSchema = z.object({
|
||||
machineId: z.string(),
|
||||
macMachineId: z.string(),
|
||||
devDeviceId: z.string(),
|
||||
sqmId: z.string(),
|
||||
});
|
||||
|
||||
export const DeviceProfileVersionSchema = z.object({
|
||||
id: z.string(),
|
||||
createdAt: z.number(),
|
||||
label: z.string(),
|
||||
profile: DeviceProfileSchema,
|
||||
isCurrent: z.boolean(),
|
||||
});
|
||||
|
||||
export const DeviceProfilesSnapshotSchema = z.object({
|
||||
currentStorage: DeviceProfileSchema.optional(),
|
||||
boundProfile: DeviceProfileSchema.optional(),
|
||||
history: z.array(DeviceProfileVersionSchema),
|
||||
baseline: DeviceProfileSchema.optional(),
|
||||
});
|
||||
|
||||
export const AccountSchema = z.object({
|
||||
id: z.string(), // Relaxed from .uuid()
|
||||
name: z.string(), // Relaxed from .min(1)
|
||||
email: z.string(), // Relaxed from .email()
|
||||
backup_file: z.string().optional(),
|
||||
avatar_url: z.string().optional(),
|
||||
deviceProfile: DeviceProfileSchema.optional(),
|
||||
deviceHistory: z.array(DeviceProfileVersionSchema).optional(),
|
||||
created_at: z.string(),
|
||||
last_used: z.string(),
|
||||
});
|
||||
|
||||
export const AccountBackupDataSchema = z.object({
|
||||
version: z.string(),
|
||||
account: AccountSchema,
|
||||
data: z.record(z.string(), z.any()),
|
||||
});
|
||||
|
||||
export const AccountInfoSchema = z.object({
|
||||
email: z.string(), // Allow empty string for unauthenticated state
|
||||
name: z.string().optional(),
|
||||
isAuthenticated: z.boolean(),
|
||||
});
|
||||
import { z } from 'zod';
|
||||
|
||||
export interface DeviceProfile {
|
||||
machineId: string;
|
||||
macMachineId: string;
|
||||
devDeviceId: string;
|
||||
sqmId: string;
|
||||
}
|
||||
|
||||
export interface DeviceProfileVersion {
|
||||
id: string;
|
||||
createdAt: number;
|
||||
label: string;
|
||||
profile: DeviceProfile;
|
||||
isCurrent: boolean;
|
||||
}
|
||||
|
||||
export interface DeviceProfilesSnapshot {
|
||||
currentStorage?: DeviceProfile;
|
||||
boundProfile?: DeviceProfile;
|
||||
history: DeviceProfileVersion[];
|
||||
baseline?: DeviceProfile;
|
||||
}
|
||||
|
||||
export interface Account {
|
||||
id: string; // UUID
|
||||
name: string;
|
||||
email: string;
|
||||
backup_file?: string;
|
||||
avatar_url?: string;
|
||||
deviceProfile?: DeviceProfile;
|
||||
deviceHistory?: DeviceProfileVersion[];
|
||||
created_at: string;
|
||||
last_used: string;
|
||||
}
|
||||
|
||||
export interface AccountBackupData {
|
||||
version: string; // Backup format version
|
||||
account: Account;
|
||||
data: {
|
||||
// Key-value pairs from Gemini Nexus database
|
||||
geminiNexusAuthStatus?: string;
|
||||
'jetskiStateSync.agentManagerInitState'?: string;
|
||||
'geminiNexusUnifiedStateSync.oauthToken'?: string;
|
||||
[key: string]: unknown;
|
||||
};
|
||||
}
|
||||
|
||||
export interface AccountInfo {
|
||||
email: string;
|
||||
name?: string;
|
||||
isAuthenticated: boolean;
|
||||
}
|
||||
|
||||
// Zod Schemas for validation
|
||||
|
||||
export const DeviceProfileSchema = z.object({
|
||||
machineId: z.string(),
|
||||
macMachineId: z.string(),
|
||||
devDeviceId: z.string(),
|
||||
sqmId: z.string(),
|
||||
});
|
||||
|
||||
export const DeviceProfileVersionSchema = z.object({
|
||||
id: z.string(),
|
||||
createdAt: z.number(),
|
||||
label: z.string(),
|
||||
profile: DeviceProfileSchema,
|
||||
isCurrent: z.boolean(),
|
||||
});
|
||||
|
||||
export const DeviceProfilesSnapshotSchema = z.object({
|
||||
currentStorage: DeviceProfileSchema.optional(),
|
||||
boundProfile: DeviceProfileSchema.optional(),
|
||||
history: z.array(DeviceProfileVersionSchema),
|
||||
baseline: DeviceProfileSchema.optional(),
|
||||
});
|
||||
|
||||
export const AccountSchema = z.object({
|
||||
id: z.string(), // Relaxed from .uuid()
|
||||
name: z.string(), // Relaxed from .min(1)
|
||||
email: z.string(), // Relaxed from .email()
|
||||
backup_file: z.string().optional(),
|
||||
avatar_url: z.string().optional(),
|
||||
deviceProfile: DeviceProfileSchema.optional(),
|
||||
deviceHistory: z.array(DeviceProfileVersionSchema).optional(),
|
||||
created_at: z.string(),
|
||||
last_used: z.string(),
|
||||
});
|
||||
|
||||
export const AccountBackupDataSchema = z.object({
|
||||
version: z.string(),
|
||||
account: AccountSchema,
|
||||
data: z.record(z.string(), z.any()),
|
||||
});
|
||||
|
||||
export const AccountInfoSchema = z.object({
|
||||
email: z.string(), // Allow empty string for unauthenticated state
|
||||
name: z.string().optional(),
|
||||
isAuthenticated: z.boolean(),
|
||||
});
|
||||
Reference in new issue
Block a user