mirror of
https://github.com/ajnart/homarr.git
synced 2026-03-08 05:10:24 +01:00
40 lines
775 B
TypeScript
40 lines
775 B
TypeScript
import { BackendConfigType } from '../../types/config';
|
|
|
|
export const getFallbackConfig = (name?: string): BackendConfigType => ({
|
|
schemaVersion: 1,
|
|
configProperties: {
|
|
name: name ?? 'default',
|
|
},
|
|
categories: [],
|
|
widgets: [],
|
|
apps: [],
|
|
settings: {
|
|
common: {
|
|
searchEngine: {
|
|
type: 'google',
|
|
properties: {
|
|
enabled: true,
|
|
openInNewTab: true,
|
|
},
|
|
},
|
|
defaultConfig: 'default',
|
|
},
|
|
customization: {
|
|
colors: {},
|
|
layout: {
|
|
enabledDocker: false,
|
|
enabledLeftSidebar: false,
|
|
enabledPing: false,
|
|
enabledRightSidebar: false,
|
|
enabledSearchbar: true,
|
|
},
|
|
},
|
|
},
|
|
wrappers: [
|
|
{
|
|
id: 'default',
|
|
position: 0,
|
|
},
|
|
],
|
|
});
|