mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-27 08:50:56 +01:00
46 lines
1.1 KiB
TypeScript
46 lines
1.1 KiB
TypeScript
import type { ColorScheme } from "@homarr/definitions";
|
|
import type { SupportedLanguage } from "@homarr/translation";
|
|
|
|
export const defaultServerSettingsKeys = [
|
|
"analytics",
|
|
"crawlingAndIndexing",
|
|
"board",
|
|
"appearance",
|
|
"culture",
|
|
"search",
|
|
] as const;
|
|
|
|
export type ServerSettingsRecord = Record<(typeof defaultServerSettingsKeys)[number], Record<string, unknown>>;
|
|
|
|
export const defaultServerSettings = {
|
|
analytics: {
|
|
enableGeneral: true,
|
|
enableWidgetData: false,
|
|
enableIntegrationData: false,
|
|
enableUserData: false,
|
|
},
|
|
crawlingAndIndexing: {
|
|
noIndex: true,
|
|
noFollow: true,
|
|
noTranslate: true,
|
|
noSiteLinksSearchBox: false,
|
|
},
|
|
board: {
|
|
homeBoardId: null as string | null,
|
|
mobileHomeBoardId: null as string | null,
|
|
enableStatusByDefault: true,
|
|
forceDisableStatus: false,
|
|
},
|
|
appearance: {
|
|
defaultColorScheme: "light" as ColorScheme,
|
|
},
|
|
culture: {
|
|
defaultLocale: "en" as SupportedLanguage,
|
|
},
|
|
search: {
|
|
defaultSearchEngineId: null as string | null,
|
|
},
|
|
} satisfies ServerSettingsRecord;
|
|
|
|
export type ServerSettings = typeof defaultServerSettings;
|