yumechi-no-kuni/src/client/pages/settings/plugin.vue

44 lines
1.1 KiB
Vue
Raw Normal View History

2021-02-06 06:05:00 -06:00
<template>
<FormBase>
<FormLink to="/settings/plugin/install"><template #icon><i class="fas fa-download"></i></template>{{ $ts._plugin.install }}</FormLink>
<FormLink to="/settings/plugin/manage"><template #icon><i class="fas fa-folder-open"></i></template>{{ $ts._plugin.manage }}<template #suffix>{{ plugins }}</template></FormLink>
2021-02-06 06:05:00 -06:00
</FormBase>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
2021-03-23 03:30:14 -05:00
import FormBase from '@client/components/form/base.vue';
import FormGroup from '@client/components/form/group.vue';
import FormLink from '@client/components/form/link.vue';
import * as os from '@client/os';
import { ColdDeviceStorage } from '@client/store';
2021-04-09 22:54:12 -05:00
import * as symbols from '@client/symbols';
2021-02-06 06:05:00 -06:00
export default defineComponent({
components: {
FormBase,
FormLink,
},
emits: ['info'],
data() {
return {
2021-04-09 22:54:12 -05:00
[symbols.PAGE_INFO]: {
2021-02-06 06:05:00 -06:00
title: this.$ts.plugins,
icon: 'fas fa-plug'
2021-02-06 06:05:00 -06:00
},
2021-02-07 03:11:56 -06:00
plugins: ColdDeviceStorage.get('plugins').length,
2021-02-06 06:05:00 -06:00
}
},
mounted() {
2021-04-09 22:54:12 -05:00
this.$emit('info', this[symbols.PAGE_INFO]);
2021-02-06 06:05:00 -06:00
},
});
</script>
<style lang="scss" scoped>
</style>