mirror of
https://github.com/imputnet/cobalt.git
synced 2025-01-28 09:18:27 +00:00
web/settings: add duck to settings types
This commit is contained in:
parent
52b7f9523f
commit
a9515d376a
|
@ -2,9 +2,10 @@ import { defaultLocale } from "$lib/i18n/translations";
|
||||||
import type { CobaltSettings } from "$lib/types/settings";
|
import type { CobaltSettings } from "$lib/types/settings";
|
||||||
|
|
||||||
const defaultSettings: CobaltSettings = {
|
const defaultSettings: CobaltSettings = {
|
||||||
schemaVersion: 4,
|
schemaVersion: 5,
|
||||||
advanced: {
|
advanced: {
|
||||||
debug: false,
|
debug: false,
|
||||||
|
duck: false,
|
||||||
},
|
},
|
||||||
appearance: {
|
appearance: {
|
||||||
theme: "auto",
|
theme: "auto",
|
||||||
|
|
|
@ -2,14 +2,16 @@ import type { RecursivePartial } from "$lib/types/generic";
|
||||||
import type { CobaltSettingsV2 } from "$lib/types/settings/v2";
|
import type { CobaltSettingsV2 } from "$lib/types/settings/v2";
|
||||||
import type { CobaltSettingsV3 } from "$lib/types/settings/v3";
|
import type { CobaltSettingsV3 } from "$lib/types/settings/v3";
|
||||||
import type { CobaltSettingsV4 } from "$lib/types/settings/v4";
|
import type { CobaltSettingsV4 } from "$lib/types/settings/v4";
|
||||||
|
import type { CobaltSettingsV5 } from "$lib/types/settings/v5";
|
||||||
|
|
||||||
export * from "$lib/types/settings/v2";
|
export * from "$lib/types/settings/v2";
|
||||||
export * from "$lib/types/settings/v3";
|
export * from "$lib/types/settings/v3";
|
||||||
export * from "$lib/types/settings/v4";
|
export * from "$lib/types/settings/v4";
|
||||||
|
export * from "$lib/types/settings/v5";
|
||||||
|
|
||||||
export type CobaltSettings = CobaltSettingsV4;
|
export type CobaltSettings = CobaltSettingsV5;
|
||||||
|
|
||||||
export type AnyCobaltSettings = CobaltSettingsV3 | CobaltSettingsV2 | CobaltSettings;
|
export type AnyCobaltSettings = CobaltSettingsV4 | CobaltSettingsV3 | CobaltSettingsV2 | CobaltSettings;
|
||||||
|
|
||||||
export type PartialSettings = RecursivePartial<CobaltSettings>;
|
export type PartialSettings = RecursivePartial<CobaltSettings>;
|
||||||
|
|
||||||
|
|
8
web/src/lib/types/settings/v5.ts
Normal file
8
web/src/lib/types/settings/v5.ts
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
import { type CobaltSettingsV4 } from "$lib/types/settings/v4";
|
||||||
|
|
||||||
|
export type CobaltSettingsV5 = Omit<CobaltSettingsV4, 'schemaVersion' | 'advanced'> & {
|
||||||
|
schemaVersion: 5,
|
||||||
|
advanced: CobaltSettingsV4['advanced'] & {
|
||||||
|
duck: boolean;
|
||||||
|
};
|
||||||
|
};
|
Loading…
Reference in a new issue