Added release page with photo viewer. Added photo count to database. Improved styling.

This commit is contained in:
2019-07-06 05:29:12 +02:00
parent 70a67792c3
commit f2a6b58370
17 changed files with 308 additions and 38 deletions

View File

@@ -12,6 +12,16 @@ 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),
},

View File

@@ -12,18 +12,22 @@ const routes = [
{
path: '/',
component: Home,
name: 'home',
},
{
path: '/scene/:releaseId',
component: Release,
name: 'release',
},
{
path: '/movie/:releaseId',
component: Release,
name: 'release',
},
{
path: '/actor/:actorSlug',
component: Actor,
name: 'actor',
},
{
path: '*',