1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-20 17:48:44 +09:00
cherrypick/src/client/pages/settings/plugin.vue

46 lines
1.2 KiB
Vue
Raw Normal View History

2021-02-06 21:05:00 +09:00
<template>
<FormBase>
<FormLink to="/settings/plugin/install"><template #icon><Fa :icon="faDownload"/></template>{{ $ts._plugin.install }}</FormLink>
2021-02-07 18:11:56 +09:00
<FormLink to="/settings/plugin/manage"><template #icon><Fa :icon="faFolderOpen"/></template>{{ $ts._plugin.manage }}<template #suffix>{{ plugins }}</template></FormLink>
2021-02-06 21:05:00 +09:00
</FormBase>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import { faPlug, faSave, faTrashAlt, faFolderOpen, faDownload, faCog } from '@fortawesome/free-solid-svg-icons';
2021-03-23 17:30:14 +09: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-10 12:54:12 +09:00
import * as symbols from '@client/symbols';
2021-02-06 21:05:00 +09:00
export default defineComponent({
components: {
FormBase,
FormLink,
},
emits: ['info'],
data() {
return {
2021-04-10 12:54:12 +09:00
[symbols.PAGE_INFO]: {
2021-02-06 21:05:00 +09:00
title: this.$ts.plugins,
icon: faPlug
},
2021-02-07 18:11:56 +09:00
plugins: ColdDeviceStorage.get('plugins').length,
2021-02-06 21:05:00 +09:00
faPlug, faSave, faTrashAlt, faFolderOpen, faDownload, faCog
}
},
mounted() {
2021-04-10 12:54:12 +09:00
this.$emit('info', this[symbols.PAGE_INFO]);
2021-02-06 21:05:00 +09:00
},
});
</script>
<style lang="scss" scoped>
</style>