mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 00:09:16 +08:00
feat: Adjust the empty status prompt layout (#7350)
This commit is contained in:
parent
9132a2c4a9
commit
c0e0db670c
@ -92,7 +92,7 @@
|
||||
<div class="flex flex-col gap-2 items-center justify-center w-full sm:flex-row">
|
||||
<div>{{ $t('app.checkInstalledWarn', [data.app]) }}</div>
|
||||
<span @click="goRouter(key)" class="flex items-center justify-center gap-0.5">
|
||||
<el-icon class="flex items-center justify-center"><Position /></el-icon>
|
||||
<el-icon><Position /></el-icon>
|
||||
{{ $t('database.goInstall') }}
|
||||
</span>
|
||||
</div>
|
||||
|
@ -229,15 +229,15 @@
|
||||
<LayoutContent :title="'MySQL ' + $t('menu.database')" :divider="true">
|
||||
<template #main>
|
||||
<div class="app-warn">
|
||||
<div>
|
||||
<div class="flex flex-col gap-2 items-center justify-center w-full sm:flex-row">
|
||||
<span>{{ $t('app.checkInstalledWarn', [$t('database.noMysql')]) }}</span>
|
||||
<span @click="goRouter('app')">
|
||||
<el-icon class="ml-2"><Position /></el-icon>
|
||||
<span @click="goRouter('app')" class="flex items-center justify-center gap-0.5">
|
||||
<el-icon><Position /></el-icon>
|
||||
{{ $t('database.goInstall') }}
|
||||
</span>
|
||||
<div>
|
||||
<img src="@/assets/images/no_app.svg" />
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<img src="@/assets/images/no_app.svg" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -189,15 +189,15 @@
|
||||
<LayoutContent :title="'PostgreSQL ' + $t('menu.database')" :divider="true">
|
||||
<template #main>
|
||||
<div class="app-warn">
|
||||
<div>
|
||||
<div class="flex flex-col gap-2 items-center justify-center w-full sm:flex-row">
|
||||
<span>{{ $t('app.checkInstalledWarn', [$t('database.noPostgresql')]) }}</span>
|
||||
<span @click="goRouter('app')">
|
||||
<el-icon class="ml-2"><Position /></el-icon>
|
||||
<span @click="goRouter('app')" class="flex items-center justify-center gap-0.5">
|
||||
<el-icon><Position /></el-icon>
|
||||
{{ $t('database.goInstall') }}
|
||||
</span>
|
||||
<div>
|
||||
<img src="@/assets/images/no_app.svg" />
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<img src="@/assets/images/no_app.svg" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -99,15 +99,15 @@
|
||||
<LayoutContent :title="'Redis ' + $t('menu.database')" :divider="true">
|
||||
<template #main>
|
||||
<div class="app-warn">
|
||||
<div>
|
||||
<div class="flex flex-col gap-2 items-center justify-center w-full sm:flex-row">
|
||||
<span>{{ $t('app.checkInstalledWarn', ['Redis']) }}</span>
|
||||
<span @click="goRouter('app')">
|
||||
<el-icon class="ml-2"><Position /></el-icon>
|
||||
<span @click="goRouter('app')" class="flex items-center justify-center gap-0.5">
|
||||
<el-icon><Position /></el-icon>
|
||||
{{ $t('database.goInstall') }}
|
||||
</span>
|
||||
<div>
|
||||
<img src="@/assets/images/no_app.svg" />
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<img src="@/assets/images/no_app.svg" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -61,15 +61,15 @@
|
||||
<LayoutContent :title="$t('firewall.firewall')" :divider="true">
|
||||
<template #main>
|
||||
<div class="app-warn">
|
||||
<div>
|
||||
<div class="flex flex-col gap-2 items-center justify-center w-full sm:flex-row">
|
||||
<span>{{ $t('firewall.notSupport') }}</span>
|
||||
<span @click="toDoc">
|
||||
<el-icon class="ml-2"><Position /></el-icon>
|
||||
<span @click="toDoc" class="flex items-center justify-center gap-0.5">
|
||||
<el-icon><Position /></el-icon>
|
||||
{{ $t('firewall.quickJump') }}
|
||||
</span>
|
||||
<div>
|
||||
<img src="@/assets/images/no_app.svg" />
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<img src="@/assets/images/no_app.svg" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -99,15 +99,15 @@
|
||||
<LayoutContent :title="$t('firewall.firewall')" :divider="true">
|
||||
<template #main>
|
||||
<div class="app-warn">
|
||||
<div>
|
||||
<div class="flex flex-col gap-2 items-center justify-center w-full sm:flex-row">
|
||||
<span>{{ $t('firewall.notSupport') }}</span>
|
||||
<span @click="toDoc">
|
||||
<el-icon class="ml-2"><Position /></el-icon>
|
||||
<span @click="toDoc" class="flex items-center justify-center gap-0.5">
|
||||
<el-icon><Position /></el-icon>
|
||||
{{ $t('firewall.quickJump') }}
|
||||
</span>
|
||||
<div>
|
||||
<img src="@/assets/images/no_app.svg" />
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<img src="@/assets/images/no_app.svg" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@ -130,6 +130,7 @@ import { Host } from '@/api/interface/host';
|
||||
import { ElMessageBox } from 'element-plus';
|
||||
import i18n from '@/lang';
|
||||
import { MsgSuccess } from '@/utils/message';
|
||||
import {Position} from "@element-plus/icons-vue";
|
||||
|
||||
const loading = ref();
|
||||
const activeTag = ref('address');
|
||||
|
@ -149,15 +149,15 @@
|
||||
<LayoutContent :title="$t('firewall.firewall')" :divider="true">
|
||||
<template #main>
|
||||
<div class="app-warn">
|
||||
<div>
|
||||
<div class="flex flex-col gap-2 items-center justify-center w-full sm:flex-row">
|
||||
<span>{{ $t('firewall.notSupport') }}</span>
|
||||
<span @click="toDoc">
|
||||
<el-icon class="ml-2"><Position /></el-icon>
|
||||
<span @click="toDoc" class="flex items-center justify-center gap-0.5">
|
||||
<el-icon><Position /></el-icon>
|
||||
{{ $t('firewall.quickJump') }}
|
||||
</span>
|
||||
<div>
|
||||
<img src="@/assets/images/no_app.svg" />
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<img src="@/assets/images/no_app.svg" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -76,15 +76,15 @@
|
||||
<LayoutContent :title="$t('toolbox.clam.clam')" :divider="true" v-if="!data.isExist" v-loading="loading">
|
||||
<template #main>
|
||||
<div class="app-warn">
|
||||
<div>
|
||||
<div class="flex flex-col gap-2 items-center justify-center w-full sm:flex-row">
|
||||
<span v-if="!data.isExist">{{ $t('toolbox.clam.noClam') }}</span>
|
||||
<span @click="toDoc()" v-if="!data.isExist">
|
||||
<el-icon class="ml-2"><Position /></el-icon>
|
||||
<span @click="toDoc()" v-if="!data.isExist" class="flex items-center justify-center gap-0.5">
|
||||
<el-icon><Position /></el-icon>
|
||||
{{ $t('firewall.quickJump') }}
|
||||
</span>
|
||||
<div>
|
||||
<img alt="" src="@/assets/images/no_app.svg" />
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<img alt="" src="@/assets/images/no_app.svg" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -149,15 +149,15 @@
|
||||
<LayoutContent title="Fail2ban" :divider="true">
|
||||
<template #main>
|
||||
<div class="app-warn">
|
||||
<div>
|
||||
<div class="flex flex-col gap-2 items-center justify-center w-full sm:flex-row">
|
||||
<span>{{ $t('toolbox.fail2ban.noFail2ban') }}</span>
|
||||
<span @click="toDoc">
|
||||
<el-icon class="ml-2"><Position /></el-icon>
|
||||
<span @click="toDoc" class="flex items-center justify-center gap-0.5">
|
||||
<el-icon><Position /></el-icon>
|
||||
{{ $t('firewall.quickJump') }}
|
||||
</span>
|
||||
<div>
|
||||
<img src="@/assets/images/no_app.svg" />
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<img src="@/assets/images/no_app.svg" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -148,15 +148,15 @@
|
||||
<LayoutContent title="FTP" :divider="true">
|
||||
<template #main>
|
||||
<div class="app-warn">
|
||||
<div>
|
||||
<div class="flex flex-col gap-2 items-center justify-center w-full sm:flex-row">
|
||||
<span>{{ $t('toolbox.ftp.noFtp') }}</span>
|
||||
<span @click="toDoc">
|
||||
<el-icon class="ml-2"><Position /></el-icon>
|
||||
<span @click="toDoc" class="flex items-center justify-center gap-0.5">
|
||||
<el-icon><Position /></el-icon>
|
||||
{{ $t('firewall.quickJump') }}
|
||||
</span>
|
||||
<div>
|
||||
<img src="@/assets/images/no_app.svg" />
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<img src="@/assets/images/no_app.svg" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -40,17 +40,17 @@
|
||||
>
|
||||
<template #main>
|
||||
<div class="app-warn">
|
||||
<div>
|
||||
<div class="flex flex-col gap-2 items-center justify-center w-full sm:flex-row">
|
||||
<span v-if="!data.isExist">{{ $t('tool.supervisor.notSupport') }}</span>
|
||||
<span v-else-if="!data.ctlExist">{{ $t('tool.supervisor.notSupportCrl') }}</span>
|
||||
<span v-else-if="data.init">{{ $t('tool.supervisor.initHelper') }}</span>
|
||||
<span @click="toDoc()" v-if="!data.isExist || !data.ctlExist">
|
||||
<el-icon class="ml-2"><Position /></el-icon>
|
||||
<span @click="toDoc()" v-if="!data.isExist || !data.ctlExist" class="flex items-center justify-center gap-0.5">
|
||||
<el-icon><Position /></el-icon>
|
||||
{{ $t('firewall.quickJump') }}
|
||||
</span>
|
||||
<div>
|
||||
<img alt="" src="@/assets/images/no_app.svg" />
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<img alt="" src="@/assets/images/no_app.svg" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
Loading…
x
Reference in New Issue
Block a user