Add manage dashboards page

This commit is contained in:
Manuel
2023-07-30 22:20:20 +02:00
parent 93c10da760
commit f61d0f5f8d
7 changed files with 266 additions and 2 deletions

View File

@@ -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,
},
},
});