Skip to content

Commit 55451e5

Browse files
committed
Change page title separator to |
1 parent 0bb5955 commit 55451e5

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

front/src/boot/ctfnote.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default boot(async ({ router, redirect, urlPath }) => {
1313
router.afterEach((to) => {
1414
if (typeof to.meta.title == 'string') {
1515
const title = to.meta.title;
16-
document.title = title ? `${title} - CTFNote` : 'CTFNote';
16+
document.title = title ? `${title} | CTFNote` : 'CTFNote';
1717
}
1818
});
1919

front/src/components/Loader/CTF.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { useRoute } from 'vue-router';
1111
1212
const setTitle = (ctf: {title: string} | null) => {
1313
if (ctf) {
14-
document.title = `${ctf.title} - CTFNote`;
14+
document.title = `${ctf.title} | CTFNote`;
1515
}
1616
}
1717

front/src/pages/Task.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default defineComponent({
4646
task,
4747
(task) => {
4848
if (task) {
49-
document.title = `${task.title} - ${props.ctf.title} - CTFNote`;
49+
document.title = `${task.title} | ${props.ctf.title} | CTFNote`;
5050
}
5151
},
5252
{ immediate: true },

front/src/router/routes.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,19 +137,19 @@ const adminRoute: RouteRecordRaw = {
137137
{
138138
path: 'settings/authentication',
139139
name: 'admin-authentication',
140-
meta: { title: 'Authentication - Admin' },
140+
meta: { title: 'Authentication | Admin' },
141141
component: () => import('src/components/Admin/Authentication.vue'),
142142
},
143143
{
144144
path: 'settings/style',
145145
name: 'admin-theme',
146-
meta: { title: 'Theme - Admin' },
146+
meta: { title: 'Theme | Admin' },
147147
component: () => import('src/components/Admin/Theme.vue'),
148148
},
149149
{
150150
path: 'users',
151151
name: 'admin-users',
152-
meta: { title: 'Users - Admin' },
152+
meta: { title: 'Users | Admin' },
153153
component: () => import('components/Admin/Users.vue'),
154154
},
155155
],

0 commit comments

Comments
 (0)