Added release page with photo viewer. Added photo count to database. Improved styling.
This commit is contained in:
@@ -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),
|
||||
},
|
||||
|
||||
@@ -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: '*',
|
||||
|
||||
Reference in New Issue
Block a user