forked from DebaucheryLibrarian/traxxx
41 lines
857 B
JavaScript
41 lines
857 B
JavaScript
import Vue from 'vue';
|
|
import dayjs from 'dayjs';
|
|
|
|
import router from './router';
|
|
import initStore from './store';
|
|
|
|
import '../css/style.scss';
|
|
|
|
import Container from '../components/container/container.vue';
|
|
|
|
function init() {
|
|
const store = initStore(router);
|
|
|
|
Vue.mixin({
|
|
watch: {
|
|
pageTitle(title) {
|
|
if (title) {
|
|
document.title = `Porn Radar - ${title}`;
|
|
return;
|
|
}
|
|
|
|
document.title = 'Porn Radar';
|
|
},
|
|
},
|
|
methods: {
|
|
formatDate: (date, format) => dayjs(date).format(format),
|
|
},
|
|
});
|
|
|
|
new Vue({ // eslint-disable-line no-new
|
|
el: '#container',
|
|
store,
|
|
router,
|
|
render(createElement) {
|
|
return createElement(Container);
|
|
},
|
|
});
|
|
}
|
|
|
|
init();
|