Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/src/plugins/head.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const environment =
export const unhead = createHead()

useHead({
title: null,
templateParams: {
site: 'eCamp v3',
separator: '·',
Expand Down
7 changes: 7 additions & 0 deletions frontend/src/views/auth/Activate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ export default {
activated: null,
}
},

head() {
return {
title: this.$tc('views.auth.activate.title'),
}
},

mounted() {
// TODO: Change, when templated links are available
// this.api.href(this.api.get(), 'users', { userId: this.userId }).then(url => {
Expand Down
5 changes: 5 additions & 0 deletions frontend/src/views/auth/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,11 @@ export default {
showCredits: true,
}
},
head() {
return {
title: this.$tc('global.button.login'),
}
},
computed: {
infoTextSuffix() {
return LOGIN_INFO_TEXT_KEY
Expand Down
5 changes: 5 additions & 0 deletions frontend/src/views/auth/Register.vue
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ export default {
recaptcha: null,
}
},
head() {
return {
title: this.$tc('views.auth.register.register'),
}
},
computed: {
formData() {
return {
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/views/auth/ResetPassword.vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ export default {
}
},

head() {
return {
title: this.$tc('views.auth.resetPassword.title'),
}
},

async mounted() {
if (getEnv().RECAPTCHA_SITE_KEY) {
this.recaptcha = load(getEnv().RECAPTCHA_SITE_KEY, {
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/views/auth/ResetPasswordRequest.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ export default {
}
},

head() {
return {
title: this.$tc('views.auth.resetPasswordRequest.title'),
}
},

mounted() {
if (getEnv().RECAPTCHA_SITE_KEY) {
this.recaptcha = load(getEnv().RECAPTCHA_SITE_KEY, {
Expand Down
3 changes: 0 additions & 3 deletions frontend/src/views/camp/CampProgram.vue
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,6 @@ export default {
return {
title: () =>
this.$tc('views.camp.campProgram.title') + ': ' + this.period.description,
templateParams: {
section: this.camp.shortTitle,
},
}
},
computed: {
Expand Down
3 changes: 0 additions & 3 deletions frontend/src/views/camp/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,6 @@ export default {
head() {
return {
title: this.$tc('views.camp.dashboard.activities'),
templateParams: {
section: this.camp.shortTitle,
},
}
},
computed: {
Expand Down
3 changes: 0 additions & 3 deletions frontend/src/views/camp/Story.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ export default {
head() {
return {
title: this.$tc('views.camp.story.title'),
templateParams: {
section: this.camp.shortTitle,
},
}
},
computed: {
Expand Down
3 changes: 0 additions & 3 deletions frontend/src/views/camp/admin/Activity.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ export default {
head() {
return {
title: this.$tc('views.camp.admin.activity.title'),
templateParams: {
section: this.camp.shortTitle,
},
}
},
}
Expand Down
3 changes: 0 additions & 3 deletions frontend/src/views/camp/admin/AdminMaterialLists.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ export default {
head() {
return {
title: this.$tc('views.camp.admin.adminMaterialLists.title'),
templateParams: {
section: this.camp.shortTitle,
},
}
},
computed: {
Expand Down
3 changes: 0 additions & 3 deletions frontend/src/views/camp/admin/Checklists.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ export default {
head() {
return {
title: this.$tc('entity.checklist.name', 2),
templateParams: {
section: this.camp.shortTitle,
},
}
},
computed: {
Expand Down
3 changes: 0 additions & 3 deletions frontend/src/views/camp/admin/Collaborators.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ export default {
head() {
return {
title: this.$tc('views.camp.admin.collaborators.title'),
templateParams: {
section: this.camp.shortTitle,
},
}
},
computed: {
Expand Down
3 changes: 0 additions & 3 deletions frontend/src/views/camp/admin/Info.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ export default {
head() {
return {
title: this.$tc('views.camp.admin.info.title'),
templateParams: {
section: this.camp.shortTitle,
},
}
},
mounted() {
Expand Down
3 changes: 0 additions & 3 deletions frontend/src/views/camp/admin/Print.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ export default {
head() {
return {
title: this.$tc('views.camp.admin.print.title'),
templateParams: {
section: this.camp.shortTitle,
},
}
},
}
Expand Down
3 changes: 0 additions & 3 deletions frontend/src/views/camp/category/Category.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,6 @@ export default {
head() {
return {
title: () => this.category.short + ': ' + this.category.title,
templateParams: {
section: this.camp.shortTitle,
},
}
},
computed: {
Expand Down
3 changes: 0 additions & 3 deletions frontend/src/views/camp/checklistOverview/ChecklistLists.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ export default {
head() {
return {
title: this.$tc('views.camp.checklistOverview.checklistLists.title'),
templateParams: {
section: this.camp.shortTitle,
},
}
},
computed: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ export default {
head() {
return {
title: () => this.checklist.name,
templateParams: {
section: this.camp.shortTitle,
},
}
},
watch: {
Expand Down
3 changes: 0 additions & 3 deletions frontend/src/views/camp/material/MaterialDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,6 @@ export default {
head() {
return {
title: () => this.materialList.name,
templateParams: {
section: this.camp.shortTitle,
},
}
},
}
Expand Down
3 changes: 0 additions & 3 deletions frontend/src/views/camp/material/MaterialOverview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,6 @@ export default {
head() {
return {
title: this.$tc('views.camp.material.materialOverview.title'),
templateParams: {
section: this.camp.shortTitle,
},
}
},
}
Expand Down
8 changes: 8 additions & 0 deletions frontend/src/views/camp/navigation/NavigationCamp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import NavTopbar from '@/views/camp/navigation/desktop/NavTopbar.vue'
import NavBottombar from '@/views/camp/navigation/mobile/NavBottombar.vue'
import NavSidebar from '@/views/camp/navigation/mobile/NavSidebar.vue'
import { campShortTitle } from '@/common/helpers/campShortTitle'

export default {
name: 'NavigationCamp',
Expand All @@ -26,6 +27,13 @@ export default {
open: false,
}
},
head() {
return {
templateParams: {
section: () => campShortTitle(this.camp),
},
}
},
}
</script>

Expand Down
5 changes: 5 additions & 0 deletions frontend/src/views/dev/Controls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ export default {
{ text: 'api-input.autosave', value: 'api.autosave', sortable: false },
],
}),

head: {
title: 'Controls',
},

computed: {
items() {
return [
Expand Down
5 changes: 5 additions & 0 deletions frontend/src/views/dev/Performance.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ export default {
{ text: 'Entity', value: 'entity', align: 'right', cellClass: 'tabular-nums' },
],
}),

head: {
title: 'Performance',
},

async mounted() {
const root = await this.api.get()._meta.load

Expand Down
Loading