Skip to content

Commit

Permalink
refactor(drawer): add link to stats page (#867)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn authored Sep 28, 2024
1 parent c7caf74 commit eafb4e2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/components/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
</v-btn>
</v-col>
<v-col cols="12" md="6" align="center">
<v-btn class="mx-2" variant="text" href="https://prices.openfoodfacts.org" target="_blank">
{{ $t('Footer.About') }}
</v-btn>
<v-btn class="mx-2" variant="text" to="/stats">
<v-btn class="mx-2" variant="text" prepend-icon="mdi-chart-box-outline" to="/stats">
{{ $t('Footer.Stats') }}
</v-btn>
<v-btn class="mx-2" variant="text" href="https://github.com/openfoodfacts/open-prices-frontend" target="_blank">
<v-btn class="mx-2" variant="text" prepend-icon="mdi-information-outline" href="https://prices.openfoodfacts.org" target="_blank">
{{ $t('Footer.About') }}
</v-btn>
<v-btn class="mx-2" variant="text" prepend-icon="mdi-github" href="https://github.com/openfoodfacts/open-prices-frontend" target="_blank">
Github
</v-btn>
</v-col>
Expand Down
3 changes: 3 additions & 0 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,9 @@
"SignIn": {
"Title": "Sign in"
},
"Stats": {
"Title": "Stats"
},
"TopContributors": {
"Title": "Top contributors"
},
Expand Down
2 changes: 1 addition & 1 deletion src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const routes = [
{ path: '/proofs/:id', name: 'proof-detail', component: () => import('./views/ProofDetail.vue'), meta: { title: 'Proof detail', requiresAuth: true }},
{ path: '/users', name: 'users', component: () => import('./views/UserList.vue'), meta: { title: 'TopContributors', icon: 'mdi-account-star-outline', drawerMenu: true }},
{ path: '/users/:username', name: 'user-detail', component: () => import('./views/UserDetail.vue'), meta: { title: 'User detail' }},
{ path: '/stats', name: 'stats', component: () => import('./views/Stats.vue'), meta: { title: 'Stats' }},
{ path: '/stats', name: 'stats', component: () => import('./views/Stats.vue'), meta: { title: 'Stats', icon: 'mdi-chart-box-outline', drawerMenu: true }},
{ path: '/:path(.*)', component: () => import('./views/NotFound.vue') },
]

Expand Down

0 comments on commit eafb4e2

Please sign in to comment.