|
|
@ -1,17 +1,19 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<div class="app-status tool-status" v-if="data.isExist">
|
|
|
|
<div class="app-status" v-if="data.isExist">
|
|
|
|
<el-card>
|
|
|
|
<el-card>
|
|
|
|
<div>
|
|
|
|
<div class="flex w-full flex-col gap-4 md:flex-row">
|
|
|
|
<el-tag class="w-17" effect="dark" type="success">ClamAV</el-tag>
|
|
|
|
<div class="flex flex-wrap gap-4">
|
|
|
|
<el-tag round class="status-content" v-if="data.isActive" type="success">
|
|
|
|
<el-tag effect="dark" type="success">ClamAV</el-tag>
|
|
|
|
{{ $t('commons.status.running') }}
|
|
|
|
<el-tag round v-if="data.isActive" type="success">
|
|
|
|
</el-tag>
|
|
|
|
{{ $t('commons.status.running') }}
|
|
|
|
<el-tag round class="status-content" v-if="!data.isActive" type="info">
|
|
|
|
</el-tag>
|
|
|
|
{{ $t('commons.status.stopped') }}
|
|
|
|
<el-tag round v-if="!data.isActive" type="info">
|
|
|
|
</el-tag>
|
|
|
|
{{ $t('commons.status.stopped') }}
|
|
|
|
<el-tag class="status-content w-24">{{ $t('app.version') }}:{{ data.version }}</el-tag>
|
|
|
|
</el-tag>
|
|
|
|
<span class="buttons">
|
|
|
|
<el-tag class="w-24">{{ $t('app.version') }}:{{ data.version }}</el-tag>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="mt-0.5">
|
|
|
|
<el-button type="primary" v-if="!data.isActive" link @click="onOperate('ClamAV', 'start')">
|
|
|
|
<el-button type="primary" v-if="!data.isActive" link @click="onOperate('ClamAV', 'start')">
|
|
|
|
{{ $t('app.start') }}
|
|
|
|
{{ $t('app.start') }}
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
@ -33,18 +35,20 @@
|
|
|
|
<el-button type="primary" v-if="!showFresh" link @click="changeShow(true)">
|
|
|
|
<el-button type="primary" v-if="!showFresh" link @click="changeShow(true)">
|
|
|
|
{{ $t('toolbox.clam.showFresh') }}
|
|
|
|
{{ $t('toolbox.clam.showFresh') }}
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="mt-4" v-if="showFresh">
|
|
|
|
<div v-if="showFresh" class="flex w-full flex-col gap-4 md:flex-row mt-5">
|
|
|
|
<el-tag class="w-16" effect="dark" type="success">FreshClam</el-tag>
|
|
|
|
<div class="flex flex-wrap gap-4">
|
|
|
|
<el-tag round class="status-content" v-if="data.freshIsActive" type="success">
|
|
|
|
<el-tag class="w-16" effect="dark" type="success">FreshClam</el-tag>
|
|
|
|
{{ $t('commons.status.running') }}
|
|
|
|
<el-tag round v-if="data.freshIsActive" type="success">
|
|
|
|
</el-tag>
|
|
|
|
{{ $t('commons.status.running') }}
|
|
|
|
<el-tag round class="status-content" v-if="!data.freshIsActive" type="info">
|
|
|
|
</el-tag>
|
|
|
|
{{ $t('commons.status.stopped') }}
|
|
|
|
<el-tag round v-if="!data.freshIsActive" type="info">
|
|
|
|
</el-tag>
|
|
|
|
{{ $t('commons.status.stopped') }}
|
|
|
|
<el-tag class="status-content w-24">{{ $t('app.version') }}:{{ data.freshVersion }}</el-tag>
|
|
|
|
</el-tag>
|
|
|
|
<span class="buttons">
|
|
|
|
<el-tag class="w-24">{{ $t('app.version') }}:{{ data.freshVersion }}</el-tag>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="mt-0.5">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="primary"
|
|
|
|
type="primary"
|
|
|
|
v-if="!data.freshIsActive"
|
|
|
|
v-if="!data.freshIsActive"
|
|
|
@ -65,7 +69,7 @@
|
|
|
|
<el-button type="primary" link @click="onOperate('FreshClam', 'restart')">
|
|
|
|
<el-button type="primary" link @click="onOperate('FreshClam', 'restart')">
|
|
|
|
{{ $t('app.restart') }}
|
|
|
|
{{ $t('app.restart') }}
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-card>
|
|
|
|
</el-card>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|