2021-02-06 14:05:00 +02:00
|
|
|
<template>
|
|
|
|
<FormBase>
|
|
|
|
<FormLink to="/settings/plugin/install"><template #icon><Fa :icon="faDownload"/></template>{{ $ts._plugin.install }}</FormLink>
|
2021-02-07 11:11:56 +02:00
|
|
|
<FormLink to="/settings/plugin/manage"><template #icon><Fa :icon="faFolderOpen"/></template>{{ $ts._plugin.manage }}<template #suffix>{{ plugins }}</template></FormLink>
|
2021-02-06 14:05:00 +02:00
|
|
|
</FormBase>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import { defineComponent } from 'vue';
|
|
|
|
import { faPlug, faSave, faTrashAlt, faFolderOpen, faDownload, faCog } from '@fortawesome/free-solid-svg-icons';
|
|
|
|
import FormBase from '@/components/form/base.vue';
|
|
|
|
import FormGroup from '@/components/form/group.vue';
|
|
|
|
import FormLink from '@/components/form/link.vue';
|
|
|
|
import * as os from '@/os';
|
2021-02-07 11:11:56 +02:00
|
|
|
import { ColdDeviceStorage } from '@/store';
|
2021-02-06 14:05:00 +02:00
|
|
|
|
|
|
|
export default defineComponent({
|
|
|
|
components: {
|
|
|
|
FormBase,
|
|
|
|
FormLink,
|
|
|
|
},
|
|
|
|
|
|
|
|
emits: ['info'],
|
|
|
|
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
INFO: {
|
|
|
|
title: this.$ts.plugins,
|
|
|
|
icon: faPlug
|
|
|
|
},
|
2021-02-07 11:11:56 +02:00
|
|
|
plugins: ColdDeviceStorage.get('plugins').length,
|
2021-02-06 14:05:00 +02:00
|
|
|
faPlug, faSave, faTrashAlt, faFolderOpen, faDownload, faCog
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
mounted() {
|
|
|
|
this.$emit('info', this.INFO);
|
|
|
|
},
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
|
|
|
</style>
|