Feat(settings): add renderer for settings configuration #142

Merged
jakob.scheid merged 88 commits from feature/settings-renderer into main 2026-07-28 20:14:50 +02:00
2 changed files with 8 additions and 9 deletions
Showing only changes of commit cd4956fbe6 - Show all commits
@@ -20,14 +20,19 @@ const normalizePagePath = function normalizePagePath (path) {
return path
.replace(/\.+/g, '.')
.replace(/^\.+|\.+$/g, '')
.replace(/\./g, '/');
.split('.');
};
export const useSettingsPage = function useSettingsPage () {
const router = useRouter();
const goToSettingsPage = function goToSettingsPage (pagePath) {
return router.push(`/settings/${normalizePagePath(pagePath)}`);
return router.push({
name: 'settings',
params: {
rest: normalizePagePath(pagePath)
}
});
};
return { goToSettingsPage };
+1 -7
View File
@@ -40,15 +40,9 @@ const routes = [
}
},
{
path: '/settings',
path: '/settings/:rest(.*)*',
name: 'settings',
component: SettingsView,
children: [
{
path: ':rest(.*)',
component: SettingsView
}
],
meta: {
title: () => i18n.global.t('preferences.settings')
}