8 Commits
Author SHA1 Message Date
jakob.scheidandGitea f3b30591e2 test(legal): add test for the legal notice view
Added tests for the legal notice view (LegalNoticeView.vue).
2026-08-06 12:51:26 +02:00
jakob.scheidandGitea 6a06e61b0b test(legal): add tests for getLegalNotice 2026-08-06 12:51:26 +02:00
jakob.scheidandGitea 7b312e18b7 feat(legal): add legal notice loading indicator 2026-08-06 12:51:26 +02:00
jakob.scheidandGitea eb6fdac31f feat(legal): add legal notice error handling
The legal notice view now shows an error box if the legal notice could
not be loaded.
2026-08-06 12:51:26 +02:00
jakob.scheidandGitea 8680305792 fix(style): set link color to --dark variable
This change was necessary due to the dynamically loaded legal notice.
Links would have the default color without this fix.
2026-08-06 12:51:26 +02:00
jakob.scheidandGitea edb058898d feat(legal): load and display legal notice 2026-08-06 12:51:26 +02:00
jakob.scheidandGitea 597d9062d2 feat(legal): add legal notice link in the footer
Added a link to the legal notice in the footer and revised the layout of
the last footer segment: The segment is now a grid container and the
legal links (currently only the legal notice link) are displayed at the
end. The copyright notice remains centered. On small screens, the legal
links are displayed centered below the copyright notice.
2026-08-06 12:51:26 +02:00
jakob.scheidandGitea 81485728a3 feat(legal): add route for the legal notice 2026-08-06 12:51:26 +02:00
2 changed files with 2 additions and 12 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ import { useRoute } from 'vue-router';
const route = useRoute();
const { getColorScheme, updateColorScheme } = useColorScheme();
const colorScheme = ref(null);
const colorScheme = ref('auto');
provide('colorScheme', colorScheme);
watch(colorScheme, (newValue) => {
updateColorScheme(newValue);
@@ -40,15 +40,5 @@ export const useSettings = function useSettings () {
);
};
/**
* Sets the value of a specific setting.
* @param {string[]} key - The setting key.
* @param value - The new value for the setting.
*/
const setSetting = function setSetting (key, value) {
const settingsStore = useSettingsStore();
settingsStore.set(key.join('.'), value);
};
return { getSetting, setSetting };
return { getSetting };
};