This commit is contained in:
syuilo
2018-09-27 01:32:04 +09:00
parent 3cbdfcb43d
commit 0a64f638c6
10 changed files with 71 additions and 35 deletions

View File

@ -7,13 +7,15 @@ import Vue from 'vue';
import { url, lang } from './config';
import applyTheme from './common/scripts/theme';
const darkTheme = require('../theme/dark');
const halloweenTheme = require('../theme/halloween');
export default Vue.extend({
computed: {
keymap(): any {
return {
'h|slash': this.help,
'd': this.dark
'd': this.dark,
'x': this.test
};
}
},
@ -25,6 +27,10 @@ export default Vue.extend({
dark() {
applyTheme(darkTheme);
},
test() {
applyTheme(halloweenTheme);
}
}
});