mirror of
https://github.com/immich-app/immich.git
synced 2025-12-25 17:24:58 +03:00
* feat(web): onboarding * feat: openapi * feat: modulization * feat: page advancing * Animation * Add storage templaete settings * sql * more style * Theme * information and styling * hide/show table * Styling * Update user property * fix test * fix test: * fix e2e * test * Update web/src/lib/components/onboarding-page/onboarding-hello.svelte Co-authored-by: bo0tzz <git@bo0tzz.me> * naming * use System Metadata * better return type * onboarding using server metadata * revert previous changes in user entity * sql * test web * fix test server * server/web test * more test * consolidate color theme change logic * consolidate save button to storage template * merge main * fix web --------- Co-authored-by: bo0tzz <git@bo0tzz.me>
21 lines
693 B
TypeScript
21 lines
693 B
TypeScript
import { Column, Entity, PrimaryColumn } from 'typeorm';
|
|
|
|
@Entity('system_metadata')
|
|
export class SystemMetadataEntity {
|
|
@PrimaryColumn()
|
|
key!: string;
|
|
|
|
@Column({ type: 'jsonb', default: '{}', transformer: { to: JSON.stringify, from: JSON.parse } })
|
|
value!: { [key: string]: unknown };
|
|
}
|
|
|
|
export enum SystemMetadataKey {
|
|
REVERSE_GEOCODING_STATE = 'reverse-geocoding-state',
|
|
ADMIN_ONBOARDING = 'admin-onboarding',
|
|
}
|
|
|
|
export interface SystemMetadata extends Record<SystemMetadataKey, { [key: string]: unknown }> {
|
|
[SystemMetadataKey.REVERSE_GEOCODING_STATE]: { lastUpdate?: string; lastImportFileName?: string };
|
|
[SystemMetadataKey.ADMIN_ONBOARDING]: { isOnboarded: boolean };
|
|
}
|