Skip to content

Commit

Permalink
More / routes
Browse files Browse the repository at this point in the history
* /news
* /changes
* /IRC
  • Loading branch information
sharkykh committed Aug 21, 2018
1 parent 0bbdac3 commit 6079d37
Show file tree
Hide file tree
Showing 9 changed files with 80 additions and 56 deletions.
30 changes: 30 additions & 0 deletions themes-default/slim/src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,33 @@ const manageRoutes = {
}]
};

const newsRoute = {
path: '/news',
name: 'news',
meta: {
title: 'News',
header: 'News'
}
};

const changesRoute = {
path: '/changes',
name: 'changes',
meta: {
title: 'Changelog',
header: 'Changelog'
}
};

const ircRoute = {
path: '/IRC',
name: 'IRC',
meta: {
title: 'IRC',
header: 'IRC'
}
};

const notFoundRoutes = {
path: '/not-found',
name: 'not-found',
Expand All @@ -278,6 +305,9 @@ const routes = [
scheduleRoute,
historyRoute,
manageRoutes,
newsRoute,
changesRoute,
ircRoute,
notFoundRoutes
];

Expand Down
17 changes: 8 additions & 9 deletions themes-default/slim/views/IRC.mako
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
<%block name="scripts">
<script>
window.app = {};
const startVue = () => {
window.app = new Vue({
store,
el: '#vue-wrap',
data() {
return {};
}
});
};
window.app = new Vue({
store,
router,
el: '#vue-wrap',
data() {
return {};
}
});
</script>
</%block>
<%block name="content">
Expand Down
17 changes: 8 additions & 9 deletions themes-default/slim/views/markdown.mako
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
<%block name="scripts">
<script>
window.app = {};
const startVue = () => {
window.app = new Vue({
store,
el: '#vue-wrap',
data() {
return {};
}
});
};
window.app = new Vue({
store,
router,
el: '#vue-wrap',
data() {
return {};
}
});
</script>
</%block>
<%block name="content">
Expand Down
2 changes: 1 addition & 1 deletion themes/dark/assets/js/vendors.js

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

17 changes: 8 additions & 9 deletions themes/dark/templates/IRC.mako
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
<%block name="scripts">
<script>
window.app = {};
const startVue = () => {
window.app = new Vue({
store,
el: '#vue-wrap',
data() {
return {};
}
});
};
window.app = new Vue({
store,
router,
el: '#vue-wrap',
data() {
return {};
}
});
</script>
</%block>
<%block name="content">
Expand Down
17 changes: 8 additions & 9 deletions themes/dark/templates/markdown.mako
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
<%block name="scripts">
<script>
window.app = {};
const startVue = () => {
window.app = new Vue({
store,
el: '#vue-wrap',
data() {
return {};
}
});
};
window.app = new Vue({
store,
router,
el: '#vue-wrap',
data() {
return {};
}
});
</script>
</%block>
<%block name="content">
Expand Down
Loading

0 comments on commit 6079d37

Please sign in to comment.