0e4a111f81
Resolve #7779
45 lines
1.1 KiB
Vue
45 lines
1.1 KiB
Vue
<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>
|
|
</FormBase>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent } from 'vue';
|
|
import FormBase from '@/components/debobigego/base.vue';
|
|
import FormGroup from '@/components/debobigego/group.vue';
|
|
import FormLink from '@/components/debobigego/link.vue';
|
|
import * as os from '@/os';
|
|
import { ColdDeviceStorage } from '@/store';
|
|
import * as symbols from '@/symbols';
|
|
|
|
export default defineComponent({
|
|
components: {
|
|
FormBase,
|
|
FormLink,
|
|
},
|
|
|
|
emits: ['info'],
|
|
|
|
data() {
|
|
return {
|
|
[symbols.PAGE_INFO]: {
|
|
title: this.$ts.plugins,
|
|
icon: 'fas fa-plug',
|
|
bg: 'var(--bg)',
|
|
},
|
|
plugins: ColdDeviceStorage.get('plugins').length,
|
|
}
|
|
},
|
|
|
|
mounted() {
|
|
this.$emit('info', this[symbols.PAGE_INFO]);
|
|
},
|
|
});
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
</style>
|