migrate app settings page to composition API and typescript

This commit is contained in:
MaysWind
2025-01-12 20:39:15 +08:00
parent c5f03165bc
commit abb26ac410
10 changed files with 452 additions and 442 deletions
+5
View File
@@ -13,4 +13,9 @@ export interface TypeAndDisplayName {
readonly displayName: string;
}
export interface LocalizedSwitchOption {
readonly value: boolean;
readonly displayName: string;
}
export type BeforeResolveFunction = (callback: () => void) => void;
+13
View File
@@ -1,5 +1,18 @@
import type { TypeAndName } from './base.ts';
export interface TimezoneInfo {
readonly displayName: string;
readonly timezoneName: string;
}
export interface LocalizedTimezoneInfo {
readonly name: string;
readonly utcOffset: string;
readonly utcOffsetMinutes: number;
readonly displayName: string;
readonly displayNameWithUtcOffset: string;
}
export class TimezoneTypeForStatistics implements TypeAndName {
public static readonly ApplicationTimezone = new TimezoneTypeForStatistics(0, 'Application Timezone');
public static readonly TransactionTimezone = new TimezoneTypeForStatistics(1, 'Transaction Timezone');