Compare commits
No commits in common. "01b3cc42af452bfd75d5d0bce221ed873663e900" and "fdad61465c4adc7e828b78a63a8b98919449e080" have entirely different histories.
01b3cc42af
...
fdad61465c
|
@ -8,7 +8,6 @@ import router from './router';
|
||||||
import initStore from './store';
|
import initStore from './store';
|
||||||
import initUiObservers from './ui/observers';
|
import initUiObservers from './ui/observers';
|
||||||
import initAuthObservers from './auth/observers';
|
import initAuthObservers from './auth/observers';
|
||||||
import setPageTitle from './set-page-title';
|
|
||||||
|
|
||||||
import { formatDate, formatDuration } from './format';
|
import { formatDate, formatDuration } from './format';
|
||||||
|
|
||||||
|
@ -102,7 +101,12 @@ async function init() {
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
pageTitle(title) {
|
pageTitle(title) {
|
||||||
setPageTitle(title); // for Options API components
|
if (title) {
|
||||||
|
document.title = `traxxx - ${title}`;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
document.title = 'traxxx';
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
beforeCreate() {
|
beforeCreate() {
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
import { createRouter, createWebHistory } from 'vue-router';
|
import { createRouter, createWebHistory } from 'vue-router';
|
||||||
|
|
||||||
import setPageTitle from './set-page-title';
|
|
||||||
|
|
||||||
import Home from '../components/home/home.vue';
|
import Home from '../components/home/home.vue';
|
||||||
import Login from '../components/auth/login.vue';
|
import Login from '../components/auth/login.vue';
|
||||||
import Signup from '../components/auth/signup.vue';
|
import Signup from '../components/auth/signup.vue';
|
||||||
|
@ -259,17 +257,11 @@ const routes = [
|
||||||
path: '/stats',
|
path: '/stats',
|
||||||
component: Stats,
|
component: Stats,
|
||||||
name: 'stats',
|
name: 'stats',
|
||||||
meta: {
|
|
||||||
title: 'Stats',
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/not-found',
|
path: '/not-found',
|
||||||
name: 'not-found',
|
name: 'not-found',
|
||||||
component: NotFound,
|
component: NotFound,
|
||||||
meta: {
|
|
||||||
title: 'Not Found',
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/:catchAll(.*)',
|
path: '/:catchAll(.*)',
|
||||||
|
@ -284,6 +276,4 @@ const router = createRouter({
|
||||||
routes,
|
routes,
|
||||||
});
|
});
|
||||||
|
|
||||||
router.beforeEach((to) => setPageTitle(to.meta.title));
|
|
||||||
|
|
||||||
export default router;
|
export default router;
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
function setPageTitle(name) {
|
|
||||||
if (name) {
|
|
||||||
document.title = `traxxx - ${name}`;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
document.title = 'traxxx';
|
|
||||||
}
|
|
||||||
|
|
||||||
export default setPageTitle;
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.228.12",
|
"version": "1.228.11",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.228.12",
|
"version": "1.228.11",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@casl/ability": "^5.2.2",
|
"@casl/ability": "^5.2.2",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.228.12",
|
"version": "1.228.11",
|
||||||
"description": "All the latest porn releases in one place",
|
"description": "All the latest porn releases in one place",
|
||||||
"main": "src/app.js",
|
"main": "src/app.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Loading…
Reference in New Issue