Commit Graph
14 Commits
Author SHA1 Message Date
jakob.scheid 2d7d521e18 refactor(settings): move setttings path normalization utility to a separate file
Moved the normalizePagePath utility from the settings page composable to
a separate utility file and restructured tests accordingly.
2026-07-27 19:05:06 +02:00
jakob.scheid 72c88838cb feat(settings): add page path normalization type check
Added a type check to the normalizePagePath function. The function now
returns an empty array if the path is not a string.
2026-07-27 19:05:05 +02:00
jakob.scheid e14ce45849 feat(settings): omit empty settings page segments
The composable useSettingsPage now omits empty segments in the path.
2026-07-27 19:05:04 +02:00
jakob.scheid 966a984eb0 feat(settings): filter characters that would cause a broken URL from settings page path 2026-07-27 19:05:04 +02:00
jakob.scheid d094ec1f0a test(settings): distinguish between unit tests and integration tests
Separated unit tests and integration tests in the test for
useSettingsPage more clearly.
2026-07-27 19:05:03 +02:00
jakob.scheid 0d38e02767 refactor(settings): push route object instead of raw string
Modified the useSettingsPage composable to use a route object instead
of a raw string in goToSettingsPage and moved settings route child
routes into the settings route itself using 'rest(.*)*'.
2026-07-27 19:05:02 +02:00
jakob.scheid 61a41ec813 feat(settings): make settings page composable more compatible
The composable now uses replace instead of replaceAll which is not
supported by some old browsers.
2026-07-27 19:05:01 +02:00
jakob.scheid a1da2eb2e6 fix(settings): omit leading/trailing and consecuting dots in noralizePagePath 2026-07-27 19:05:00 +02:00
jakob.scheid 89dbf8f0e7 fix(settings): return router.push promise
The settings page composable function to go to a settings page now
returns the promise router.push returns.
2026-07-26 18:45:04 +02:00
jakob.scheid f5af9b3675 test(settings): add tests for settings page composable 2026-07-26 16:04:23 +02:00
jakob.scheid 5c46f1bba4 feat(settigns): add settings page composable 2026-07-23 12:23:49 +02:00
jakob.scheidandGitea b47ab0355e feat(settings): Remove parameter 'url' from the loading function of the settings composable 2026-05-26 19:55:45 +02:00
johannes.vos a165c13d7c feat(settings): add useSettingsConfig composable 2026-05-26 11:35:35 +02:00
johannes.vos 1378813783 add emtpy useSettingsConfig.js 2026-05-26 11:35:26 +02:00