Skip to content

Commit

Permalink
Add titles to all pages
Browse files Browse the repository at this point in the history
Related to Issue #25
  • Loading branch information
BobChao87 committed Dec 2, 2021
1 parent 519065f commit 632bed2
Show file tree
Hide file tree
Showing 20 changed files with 271 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pages/about.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,16 @@
<AboutPrivacy />
</div>
</template>

<script lang="ts">
import Vue from 'vue';
import { MetaInfo } from 'vue-meta';
export default Vue.extend({
head(): MetaInfo {
return {
title: this.$t('aboutPage.about.title') as string,
};
},
});
</script>
16 changes: 16 additions & 0 deletions pages/login.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<template>
<NuxtChild />
</template>

<script lang="ts">
import Vue from 'vue';
import { MetaInfo } from 'vue-meta';
export default Vue.extend({
head(): MetaInfo {
return {
title: this.$t('navbar.login.title') as string,
};
},
});
</script>
13 changes: 13 additions & 0 deletions pages/marathon/_marathon/donate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,16 @@
Oengus marathon donate page stub
</div>
</template>

<script lang="ts">
import Vue from 'vue';
import { MetaInfo } from 'vue-meta';
export default Vue.extend({
head(): MetaInfo {
return {
title: this.$t('marathon.donate.title') as string,
};
},
});
</script>
13 changes: 13 additions & 0 deletions pages/marathon/_marathon/donations.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,16 @@
Oengus marathon donations page stub
</div>
</template>

<script lang="ts">
import Vue from 'vue';
import { MetaInfo } from 'vue-meta';
export default Vue.extend({
head(): MetaInfo {
return {
title: this.$t('marathon.donations.title') as string,
};
},
});
</script>
13 changes: 13 additions & 0 deletions pages/marathon/_marathon/incentives/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,16 @@
Oengus marathon incentives view page stub
</div>
</template>

<script lang="ts">
import Vue from 'vue';
import { MetaInfo } from 'vue-meta';
export default Vue.extend({
head(): MetaInfo {
return {
title: this.$t('marathon.incentives.title') as string,
};
},
});
</script>
13 changes: 13 additions & 0 deletions pages/marathon/_marathon/incentives/manage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,16 @@
Oengus marathon incentives management page stub
</div>
</template>

<script lang="ts">
import Vue from 'vue';
import { MetaInfo } from 'vue-meta';
export default Vue.extend({
head(): MetaInfo {
return {
title: this.$t('marathon.incentives.management.title') as string,
};
},
});
</script>
13 changes: 13 additions & 0 deletions pages/marathon/_marathon/schedule/manage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,16 @@
Oengus marathon schedule management page stub
</div>
</template>

<script lang="ts">
import Vue from 'vue';
import { MetaInfo } from 'vue-meta';
export default Vue.extend({
head(): MetaInfo {
return {
title: this.$t('marathon.schedule.management.title') as string,
};
},
});
</script>
13 changes: 13 additions & 0 deletions pages/marathon/_marathon/selection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,16 @@
Oengus marathon selection page stub
</div>
</template>

<script lang="ts">
import Vue from 'vue';
import { MetaInfo } from 'vue-meta';
export default Vue.extend({
head(): MetaInfo {
return {
title: this.$t('marathon.selection.title') as string,
};
},
});
</script>
13 changes: 13 additions & 0 deletions pages/marathon/_marathon/settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,16 @@
Oengus marathon settings page stub
</div>
</template>

<script lang="ts">
import Vue from 'vue';
import { MetaInfo } from 'vue-meta';
export default Vue.extend({
head(): MetaInfo {
return {
title: this.$t('marathon.settings.title') as string,
};
},
});
</script>
13 changes: 13 additions & 0 deletions pages/marathon/_marathon/submissions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,16 @@
Oengus marathon submissions page stub
</div>
</template>

<script lang="ts">
import Vue from 'vue';
import { MetaInfo } from 'vue-meta';
export default Vue.extend({
head(): MetaInfo {
return {
title: this.$t('marathon.submissions.title') as string,
};
},
});
</script>
13 changes: 13 additions & 0 deletions pages/marathon/_marathon/submit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,16 @@
Oengus marathon submit page stub
</div>
</template>

<script lang="ts">
import Vue from 'vue';
import { MetaInfo } from 'vue-meta';
export default Vue.extend({
head(): MetaInfo {
return {
title: this.$t('marathon.submit.title') as string,
};
},
});
</script>
13 changes: 13 additions & 0 deletions pages/marathon/new.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,16 @@
Oengus new marathon page stub
</div>
</template>

<script lang="ts">
import Vue from 'vue';
import { MetaInfo } from 'vue-meta';
export default Vue.extend({
head(): MetaInfo {
return {
title: this.$t('marathon.new.title') as string,
};
},
});
</script>
27 changes: 27 additions & 0 deletions pages/news.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<template>
<NuxtChild />
</template>

<script lang="ts">
import Vue from 'vue';
import { MetaInfo } from 'vue-meta';
export default Vue.extend({
head(): MetaInfo {
return {
titleTemplate: titleChunk => `${titleChunk ? `${titleChunk} | ` : ''}${this.$t('news.title')} | Oengus v2`,
};
},
});
</script>

<!-- Temporary language info to avoid having the i18n string -->
<i18n>
{
"en-GB": {
"news": {
"title": "News"
}
}
}
</i18n>
13 changes: 13 additions & 0 deletions pages/news/kaspersky-partnership.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,16 @@
</div>
</div>
</template>

<script lang="ts">
import Vue from 'vue';
import { MetaInfo } from 'vue-meta';
export default Vue.extend({
head(): MetaInfo {
return {
title: 'Kaspersky Partnership',
};
},
});
</script>
13 changes: 13 additions & 0 deletions pages/patrons.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
<template>
<Patron />
</template>

<script lang="ts">
import Vue from 'vue';
import { MetaInfo } from 'vue-meta';
export default Vue.extend({
head(): MetaInfo {
return {
title: this.$t('patrons.title') as string,
};
},
});
</script>
7 changes: 7 additions & 0 deletions pages/user/_user.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,19 @@

<script lang="ts">
import Vue from 'vue';
import { MetaInfo } from 'vue-meta';
export default Vue.extend({
data() {
return {
userId: this.$route.params.user,
};
},
head(): MetaInfo {
return {
title: this.$route.params.user,
};
},
});
</script>
13 changes: 13 additions & 0 deletions pages/user/settings/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,16 @@
Oengus user settings main page stub
</div>
</template>

<script lang="ts">
import Vue from 'vue';
import { MetaInfo } from 'vue-meta';
export default Vue.extend({
head(): MetaInfo {
return {
title: this.$t('navbar.settings') as string,
};
},
});
</script>
13 changes: 13 additions & 0 deletions pages/user/settings/sync/discord.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,16 @@
Oengus user settings Discord sync page stub
</div>
</template>

<script lang="ts">
import Vue from 'vue';
import { MetaInfo } from 'vue-meta';
export default Vue.extend({
head(): MetaInfo {
return {
title: this.$t('user.settings.accountSync.title') as string,
};
},
});
</script>
13 changes: 13 additions & 0 deletions pages/user/settings/sync/twitch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,16 @@
Oengus user settings Twitch sync page stub
</div>
</template>

<script lang="ts">
import Vue from 'vue';
import { MetaInfo } from 'vue-meta';
export default Vue.extend({
head(): MetaInfo {
return {
title: this.$t('user.settings.accountSync.title') as string,
};
},
});
</script>
13 changes: 13 additions & 0 deletions pages/user/settings/sync/twitter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,16 @@
Oengus user settings Twitter sync page stub
</div>
</template>

<script lang="ts">
import Vue from 'vue';
import { MetaInfo } from 'vue-meta';
export default Vue.extend({
head(): MetaInfo {
return {
title: this.$t('user.settings.accountSync.title') as string,
};
},
});
</script>

0 comments on commit 632bed2

Please sign in to comment.