feat: authentication with OAuth
Some checks failed
ci / ci (22, ubuntu-latest) (push) Failing after 6m46s

This commit is contained in:
2025-12-07 21:27:23 +01:00
parent 84bd0d487c
commit 1bdfbdb446
13 changed files with 1036 additions and 3 deletions

View File

@@ -1,8 +1,8 @@
export const usePageTitle = () => {
const pageName = useState<string>('pageName', () => '');
const title = computed<string>(() => (pageName.value.length > 0 ? `${pageName.value} - Tímmál` : 'Tímmál'));
const pageName = useState<string | null>('pageName', () => null);
const title = computed<string>(() => ((pageName.value ?? '').length > 0 ? `${pageName.value} - Tímmál` : 'Tímmál'));
const setPageName = (newName: string) => {
const setPageName = (newName: string | null) => {
pageName.value = newName;
useHead({ title: title.value });
};