feat: allow to change order of sections on main page

closes #445
This commit is contained in:
Danny Koppenhagen
2024-03-22 20:25:32 +01:00
committed by Mathias Schopmans
parent 88a7eb55e1
commit 7c08e520fc
6 changed files with 43 additions and 14 deletions

View File

@@ -13,4 +13,7 @@ if (userConfig.labels)
if (userConfig.toggles)
config.toggles = { ...defaultConfig.toggles, ...userConfig.toggles };
if (userConfig.sections)
config.sections = { ...defaultConfig.sections, ...userConfig.sections };
export default config;

View File

@@ -12,6 +12,10 @@ export function getToggle(key: keyof typeof config.toggles) {
return config.toggles[key] || false;
}
export function getSections() {
return config.sections;
}
export function getAppName() {
return getLabel("title");
}