misskey-awawa/src/client/app/app.vue

25 lines
389 B
Vue
Raw Normal View History

2018-02-10 01:52:26 +00:00
<template>
2018-09-18 23:36:06 +00:00
<router-view id="app" v-hotkey.global="keymap"></router-view>
2018-02-10 01:52:26 +00:00
</template>
2018-09-18 23:36:06 +00:00
<script lang="ts">
import Vue from 'vue';
import { url, lang } from './config';
export default Vue.extend({
computed: {
keymap(): any {
return {
'h|slash': this.help
};
}
},
methods: {
help() {
window.open(`${url}/docs/${lang}/keyboard-shortcut`, '_blank');
}
}
});
</script>