diff --git a/client/src/components/ContentBody.vue b/client/src/components/ContentBody.vue deleted file mode 100644 index cbb6eece..00000000 --- a/client/src/components/ContentBody.vue +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - diff --git a/client/src/components/ContentFooter.vue b/client/src/components/ContentFooter.vue deleted file mode 100644 index faa64eda..00000000 --- a/client/src/components/ContentFooter.vue +++ /dev/null @@ -1,100 +0,0 @@ - - - - - - - diff --git a/client/src/components/ContentTitle.vue b/client/src/components/ContentTitle.vue deleted file mode 100644 index 2d778679..00000000 --- a/client/src/components/ContentTitle.vue +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - {{ t('footer.lastUpdate', [d(date, 'long')]) }} - - - - - diff --git a/client/src/components/HomeFooter.vue b/client/src/components/HomeFooter.vue index 2b27ab52..b6996f5c 100644 --- a/client/src/components/HomeFooter.vue +++ b/client/src/components/HomeFooter.vue @@ -1,22 +1,26 @@ @@ -29,9 +33,9 @@ const links = computed(() => [ - + {{ link.text }} - + diff --git a/client/src/components/PageAside.vue b/client/src/components/PageAside.vue deleted file mode 100644 index 991a5511..00000000 --- a/client/src/components/PageAside.vue +++ /dev/null @@ -1,44 +0,0 @@ - - - - - diff --git a/client/src/components/ProfileMenu.vue b/client/src/components/ProfileMenu.vue index b5d676b5..81840bc6 100644 --- a/client/src/components/ProfileMenu.vue +++ b/client/src/components/ProfileMenu.vue @@ -18,7 +18,7 @@ const props = withDefaults(defineProps(), { const { light, transparent } = toRefs(props) -const { t } = useI18n({ useScope: 'global' }) +const { t, locale } = useI18n({ useScope: 'global' }) const authStore = useAuthStore() const profileImageUrl = computed(() => authStore.profileImageUrl) @@ -26,6 +26,11 @@ const profileImageUrl = computed(() => authStore.profileImageUrl) function signOut() { authStore.signOut() } + +const instructionsLink = computed(() => { + const localePath = locale.value === 'pt-BR' ? 'pt/' : '' + return `https://alessandrojean.github.io/toshokan/${localePath}guides/instructions` +}) @@ -88,8 +93,9 @@ function signOut() { - diff --git a/client/src/layouts/help-center.vue b/client/src/layouts/help-center.vue deleted file mode 100644 index b8a39976..00000000 --- a/client/src/layouts/help-center.vue +++ /dev/null @@ -1,112 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/client/src/pages/help/[category]/[slug].vue b/client/src/pages/help/[category]/[slug].vue deleted file mode 100644 index 8994487e..00000000 --- a/client/src/pages/help/[category]/[slug].vue +++ /dev/null @@ -1,118 +0,0 @@ - - - -meta: - layout: help-center - - - - - - {{ frontmatter?.title }} - - - {{ t('about.englishOnly') }} - - - - {{ t('about.helpTranslate') }} - - - - - - - - diff --git a/client/src/pages/sign-in.vue b/client/src/pages/sign-in.vue index d0d2e385..161b420b 100644 --- a/client/src/pages/sign-in.vue +++ b/client/src/pages/sign-in.vue @@ -24,7 +24,7 @@ onMounted(redirectToDashboard) watch(shouldRedirect, redirectToDashboard) -const { t } = useI18n({ useScope: 'global' }) +const { t, locale } = useI18n({ useScope: 'global' }) const steps = computed(() => [ t('signIn.step1'), @@ -33,18 +33,23 @@ const steps = computed(() => [ ]) interface Link { - route: RouteLocationRaw + href: string text: string } +const baseUrl = computed(() => { + const localePath = locale.value === 'pt-BR' ? '/pt' : '' + return 'https://alessandrojean.github.io/toshokan' + localePath +}) + const links = computed(() => [ - { route: '/help/general/accessibility', text: t('footer.links.a11y') }, - { route: '/help/guide/instructions', text: t('footer.links.instructions') }, + { href: `${baseUrl.value}/general/accessibility`, text: t('footer.links.a11y') }, + { href: `${baseUrl.value}/guides/instructions`, text: t('footer.links.instructions') }, { - route: '/help/general/privacy-policy', + href: `${baseUrl.value}/general/privacy-policy`, text: t('footer.links.privacyPolicy'), }, - { route: '/help/general/terms-of-use', text: t('footer.links.termsOfUse') }, + { href: `${baseUrl.value}/general/terms-of-use`, text: t('footer.links.termsOfUse') }, ]) const showOverlay = ref(false) @@ -195,9 +200,9 @@ meta: > - + {{ link.text }} - + diff --git a/client/src/symbols.ts b/client/src/symbols.ts index bc466ce3..a59b2cc0 100644 --- a/client/src/symbols.ts +++ b/client/src/symbols.ts @@ -32,29 +32,3 @@ export const EnableSearchShortcutKey: InjectionKey export const SetNavbarTransparentKey: InjectionKey = Symbol('setNavbarTransparent') - -/** - * Help - */ - -export type RebuildPageContents = (resetPosition?: boolean) => void -export interface DocumentationPage { - order: number - slug: string - locale: string - title: string - content: () => Promise -} -export interface DocumentationCategory { - order: number - category: string - pages: DocumentationPage[] -} -export type Documentation = DocumentationCategory[] - -export const RebuildPageContentsKey: InjectionKey = Symbol( - 'rebuildPageContents', -) - -export const DocumentationKey: InjectionKey - = Symbol('documentation')