✨ Add manage dashboards page
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { ConfigType } from '~/types/config';
|
||||
import defaultConfig from '../../../data/configs/default.json';
|
||||
|
||||
export const getFallbackConfig = (name?: string) => ({
|
||||
@@ -6,3 +7,64 @@ export const getFallbackConfig = (name?: string) => ({
|
||||
name: name ?? 'default',
|
||||
},
|
||||
});
|
||||
|
||||
export const getStaticFallbackConfig = (name: string): ConfigType => ({
|
||||
schemaVersion: 1,
|
||||
configProperties: {
|
||||
name: name,
|
||||
},
|
||||
categories: [
|
||||
{
|
||||
id: '47af36c0-47c1-4e5b-bfc7-ad645ee6a33f',
|
||||
position: 1,
|
||||
name: 'Welcome to Homarr 🎉',
|
||||
},
|
||||
],
|
||||
wrappers: [
|
||||
{
|
||||
id: 'default',
|
||||
position: 0,
|
||||
},
|
||||
{
|
||||
id: '47af36c0-47c1-4e5b-bfc7-ad645ee6a326',
|
||||
position: 1,
|
||||
},
|
||||
],
|
||||
apps: [],
|
||||
widgets: [],
|
||||
settings: {
|
||||
common: {
|
||||
searchEngine: {
|
||||
type: 'google',
|
||||
properties: {
|
||||
enabled: true,
|
||||
openInNewTab: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
customization: {
|
||||
layout: {
|
||||
enabledLeftSidebar: false,
|
||||
enabledRightSidebar: false,
|
||||
enabledDocker: false,
|
||||
enabledPing: false,
|
||||
enabledSearchbar: true,
|
||||
},
|
||||
accessibility: {
|
||||
disablePingPulse: false,
|
||||
replacePingDotsWithIcons: false
|
||||
},
|
||||
pageTitle: 'Homarr ⭐️',
|
||||
logoImageUrl: '/imgs/logo/logo.png',
|
||||
faviconUrl: '/imgs/favicon/favicon-squared.png',
|
||||
backgroundImageUrl: '',
|
||||
customCss: '',
|
||||
colors: {
|
||||
primary: 'red',
|
||||
secondary: 'yellow',
|
||||
shade: 7,
|
||||
},
|
||||
appOpacity: 100,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user