mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-15 07:27:33 +08:00
migrate app settings page to composition API and typescript
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user