Skip to content

Commit

Permalink
Remove old help center links.
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandrojean committed Jan 24, 2024
1 parent 3db3ef5 commit 36f6b0e
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 493 deletions.
38 changes: 0 additions & 38 deletions client/src/components/ContentBody.vue

This file was deleted.

100 changes: 0 additions & 100 deletions client/src/components/ContentFooter.vue

This file was deleted.

35 changes: 0 additions & 35 deletions client/src/components/ContentTitle.vue

This file was deleted.

20 changes: 12 additions & 8 deletions client/src/components/HomeFooter.vue
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
<script lang="ts" setup>
import type { RouteLocationRaw } from 'vue-router'
import { useI18n } from '@/i18n'
const { t, locale } = useI18n({ useScope: 'global' })
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<Link[]>(() => [
{ 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') },
])
</script>

Expand All @@ -29,9 +33,9 @@ const links = computed<Link[]>(() => [
<nav>
<ul>
<li v-for="(link, i) of links" :key="i">
<RouterLink :to="link.route">
<a :href="link.href" target="_blank">
{{ link.text }}
</RouterLink>
</a>
</li>
</ul>
</nav>
Expand Down
44 changes: 0 additions & 44 deletions client/src/components/PageAside.vue

This file was deleted.

14 changes: 10 additions & 4 deletions client/src/components/ProfileMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,19 @@ const props = withDefaults(defineProps<ProfileMenuProps>(), {
const { light, transparent } = toRefs(props)
const { t } = useI18n({ useScope: 'global' })
const { t, locale } = useI18n({ useScope: 'global' })
const authStore = useAuthStore()
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`
})
</script>

<template>
Expand Down Expand Up @@ -88,8 +93,9 @@ function signOut() {
</RouterLink>
</MenuItem>
<MenuItem v-slot="{ active }">
<RouterLink
to="/help/guide/instructions"
<a
target="_blank"
:href="instructionsLink"
:class="[
active
? 'bg-gray-100 dark:bg-gray-600 md:dark:bg-gray-600/50'
Expand All @@ -103,7 +109,7 @@ function signOut() {
/>
</span>
{{ t('dashboard.header.menu.help') }}
</RouterLink>
</a>
</MenuItem>
</div>
<div class="pt-1">
Expand Down
Loading

0 comments on commit 36f6b0e

Please sign in to comment.