Skip to content

Commit

Permalink
Fix schedule.mako code style
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkykh committed Jul 7, 2018
1 parent 7a885d3 commit eadbb86
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 48 deletions.
29 changes: 13 additions & 16 deletions themes-default/slim/views/schedule.mako
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,22 @@ const startVue = () => {
store,
el: '#vue-wrap',
router,
computed: Object.assign(
store.mapState(['shows']),
{
header() {
return this.$route.meta.header;
computed: Object.assign(store.mapState(['shows']), {
header() {
return this.$route.meta.header;
},
layout: {
get() {
const { config } = this;
return config.layout.schedule;
},
layout: {
get() {
const { config } = this;
return config.layout.schedule;
},
set(layout) {
const { $store } = this;
const page = 'schedule';
$store.dispatch('setLayout', { page, layout });
}
set(layout) {
const { $store } = this;
const page = 'schedule';
$store.dispatch('setLayout', { page, layout });
}
}
),
}),
mounted() {
const { $store, $route } = this;
// $store.dispatch('getShows');
Expand Down
29 changes: 13 additions & 16 deletions themes/dark/templates/schedule.mako
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,22 @@ const startVue = () => {
store,
el: '#vue-wrap',
router,
computed: Object.assign(
store.mapState(['shows']),
{
header() {
return this.$route.meta.header;
computed: Object.assign(store.mapState(['shows']), {
header() {
return this.$route.meta.header;
},
layout: {
get() {
const { config } = this;
return config.layout.schedule;
},
layout: {
get() {
const { config } = this;
return config.layout.schedule;
},
set(layout) {
const { $store } = this;
const page = 'schedule';
$store.dispatch('setLayout', { page, layout });
}
set(layout) {
const { $store } = this;
const page = 'schedule';
$store.dispatch('setLayout', { page, layout });
}
}
),
}),
mounted() {
const { $store, $route } = this;
// $store.dispatch('getShows');
Expand Down
29 changes: 13 additions & 16 deletions themes/light/templates/schedule.mako
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,22 @@ const startVue = () => {
store,
el: '#vue-wrap',
router,
computed: Object.assign(
store.mapState(['shows']),
{
header() {
return this.$route.meta.header;
computed: Object.assign(store.mapState(['shows']), {
header() {
return this.$route.meta.header;
},
layout: {
get() {
const { config } = this;
return config.layout.schedule;
},
layout: {
get() {
const { config } = this;
return config.layout.schedule;
},
set(layout) {
const { $store } = this;
const page = 'schedule';
$store.dispatch('setLayout', { page, layout });
}
set(layout) {
const { $store } = this;
const page = 'schedule';
$store.dispatch('setLayout', { page, layout });
}
}
),
}),
mounted() {
const { $store, $route } = this;
// $store.dispatch('getShows');
Expand Down

0 comments on commit eadbb86

Please sign in to comment.