Skip to content

Commit

Permalink
Fix schedule page
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkykh committed Jul 5, 2018
1 parent b918362 commit e313d16
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 26 deletions.
9 changes: 9 additions & 0 deletions themes-default/slim/static/js/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ if (!window.router) {
const configComponent = httpVueLoader('js/templates/config.vue');
const addShowsComponent = httpVueLoader('js/templates/add-shows.vue');
const addRecommendedComponent = httpVueLoader('js/templates/add-recommended.vue');
// const scheduleComponent = httpVueLoader('js/templates/schedule.vue');
const notFoundComponent = httpVueLoader('js/templates/http/404.vue');

const router = new VueRouter({
Expand Down Expand Up @@ -34,6 +35,14 @@ if (!window.router) {
header: 'Add Recommended Shows'
},
component: addRecommendedComponent
}, {
path: '/schedule',
name: 'schedule',
meta: {
title: 'Schedule',
header: 'Schedule'
},
// component: scheduleComponent
}, {
path: '/not-found',
name: 'not-found',
Expand Down
11 changes: 3 additions & 8 deletions themes-default/slim/views/schedule.mako
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,12 @@ const startVue = () => {
store,
el: '#vue-wrap',
router,
metaInfo: {
title: 'Schedule'
},
data() {
return {
header: 'Schedule'
};
},
computed: Object.assign(
store.mapState(['shows']),
{
header() {
return this.$route.meta.header;
},
layout: {
get() {
const { config } = this;
Expand Down
9 changes: 9 additions & 0 deletions themes/dark/assets/js/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ if (!window.router) {
const configComponent = httpVueLoader('js/templates/config.vue');
const addShowsComponent = httpVueLoader('js/templates/add-shows.vue');
const addRecommendedComponent = httpVueLoader('js/templates/add-recommended.vue');
// const scheduleComponent = httpVueLoader('js/templates/schedule.vue');
const notFoundComponent = httpVueLoader('js/templates/http/404.vue');

const router = new VueRouter({
Expand Down Expand Up @@ -34,6 +35,14 @@ if (!window.router) {
header: 'Add Recommended Shows'
},
component: addRecommendedComponent
}, {
path: '/schedule',
name: 'schedule',
meta: {
title: 'Schedule',
header: 'Schedule'
},
// component: scheduleComponent
}, {
path: '/not-found',
name: 'not-found',
Expand Down
2 changes: 1 addition & 1 deletion themes/dark/assets/js/router.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 3 additions & 8 deletions themes/dark/templates/schedule.mako
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,12 @@ const startVue = () => {
store,
el: '#vue-wrap',
router,
metaInfo: {
title: 'Schedule'
},
data() {
return {
header: 'Schedule'
};
},
computed: Object.assign(
store.mapState(['shows']),
{
header() {
return this.$route.meta.header;
},
layout: {
get() {
const { config } = this;
Expand Down
9 changes: 9 additions & 0 deletions themes/light/assets/js/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ if (!window.router) {
const configComponent = httpVueLoader('js/templates/config.vue');
const addShowsComponent = httpVueLoader('js/templates/add-shows.vue');
const addRecommendedComponent = httpVueLoader('js/templates/add-recommended.vue');
// const scheduleComponent = httpVueLoader('js/templates/schedule.vue');
const notFoundComponent = httpVueLoader('js/templates/http/404.vue');

const router = new VueRouter({
Expand Down Expand Up @@ -34,6 +35,14 @@ if (!window.router) {
header: 'Add Recommended Shows'
},
component: addRecommendedComponent
}, {
path: '/schedule',
name: 'schedule',
meta: {
title: 'Schedule',
header: 'Schedule'
},
// component: scheduleComponent
}, {
path: '/not-found',
name: 'not-found',
Expand Down
2 changes: 1 addition & 1 deletion themes/light/assets/js/router.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 3 additions & 8 deletions themes/light/templates/schedule.mako
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,12 @@ const startVue = () => {
store,
el: '#vue-wrap',
router,
metaInfo: {
title: 'Schedule'
},
data() {
return {
header: 'Schedule'
};
},
computed: Object.assign(
store.mapState(['shows']),
{
header() {
return this.$route.meta.header;
},
layout: {
get() {
const { config } = this;
Expand Down

0 comments on commit e313d16

Please sign in to comment.