|
|
|
@ -1,37 +1,41 @@
|
|
|
|
|
<template> |
|
|
|
|
<div class="flx-center"> |
|
|
|
|
<span v-if="props.footer"> |
|
|
|
|
<el-button type="primary" link @click="toForum"> |
|
|
|
|
<span class="font-normal">{{ $t('setting.forum') }}</span> |
|
|
|
|
</el-button> |
|
|
|
|
<el-divider direction="vertical" /> |
|
|
|
|
<el-button type="primary" link @click="toDoc"> |
|
|
|
|
<span class="font-normal">{{ $t('setting.doc2') }}</span> |
|
|
|
|
</el-button> |
|
|
|
|
<el-divider direction="vertical" /> |
|
|
|
|
<el-button type="primary" link @click="toGithub"> |
|
|
|
|
<span class="font-normal">{{ $t('setting.project') }}</span> |
|
|
|
|
<div class="flex w-full flex-col gap-2 md:justify-between md:flex-row"> |
|
|
|
|
<div class="flex flex-wrap gap-4"> |
|
|
|
|
<span v-if="props.footer"> |
|
|
|
|
<el-button type="primary" link @click="toForum"> |
|
|
|
|
<span class="font-normal">{{ $t('setting.forum') }}</span> |
|
|
|
|
</el-button> |
|
|
|
|
<el-divider direction="vertical" /> |
|
|
|
|
<el-button type="primary" link @click="toDoc"> |
|
|
|
|
<span class="font-normal">{{ $t('setting.doc2') }}</span> |
|
|
|
|
</el-button> |
|
|
|
|
<el-divider direction="vertical" /> |
|
|
|
|
<el-button type="primary" link @click="toGithub"> |
|
|
|
|
<span class="font-normal">{{ $t('setting.project') }}</span> |
|
|
|
|
</el-button> |
|
|
|
|
<el-divider direction="vertical" /> |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
|
<div class="flex flex-wrap"> |
|
|
|
|
<el-button type="primary" link @click="toHalo"> |
|
|
|
|
<span class="font-normal">{{ isProductPro ? $t('license.pro') : $t('license.community') }}</span> |
|
|
|
|
</el-button> |
|
|
|
|
<el-divider direction="vertical" /> |
|
|
|
|
</span> |
|
|
|
|
<el-button type="primary" link @click="toHalo"> |
|
|
|
|
<span class="font-normal">{{ isProductPro ? $t('license.pro') : $t('license.community') }}</span> |
|
|
|
|
</el-button> |
|
|
|
|
<span class="version" @click="copyText(version)">{{ version }}</span> |
|
|
|
|
<el-badge is-dot style="margin-top: -3px" v-if="version !== 'Waiting' && globalStore.hasNewVersion"> |
|
|
|
|
<el-button type="primary" link @click="onLoadUpgradeInfo"> |
|
|
|
|
<span class="font-normal">({{ $t('setting.hasNewVersion') }})</span> |
|
|
|
|
<span class="version" @click="copyText(version)">{{ version }}</span> |
|
|
|
|
<el-badge is-dot style="margin-top: -3px" v-if="version !== 'Waiting' && globalStore.hasNewVersion"> |
|
|
|
|
<el-button type="primary" link @click="onLoadUpgradeInfo"> |
|
|
|
|
<span class="font-normal">({{ $t('setting.hasNewVersion') }})</span> |
|
|
|
|
</el-button> |
|
|
|
|
</el-badge> |
|
|
|
|
<el-button |
|
|
|
|
v-if="version !== 'Waiting' && !globalStore.hasNewVersion" |
|
|
|
|
type="primary" |
|
|
|
|
link |
|
|
|
|
@click="onLoadUpgradeInfo" |
|
|
|
|
> |
|
|
|
|
<span>({{ $t('setting.upgradeCheck') }})</span> |
|
|
|
|
</el-button> |
|
|
|
|
</el-badge> |
|
|
|
|
<el-button |
|
|
|
|
v-if="version !== 'Waiting' && !globalStore.hasNewVersion" |
|
|
|
|
type="primary" |
|
|
|
|
link |
|
|
|
|
@click="onLoadUpgradeInfo" |
|
|
|
|
> |
|
|
|
|
<span>({{ $t('setting.upgradeCheck') }})</span> |
|
|
|
|
</el-button> |
|
|
|
|
<el-tag v-if="version === 'Waiting'" round style="margin-left: 10px">{{ $t('setting.upgrading') }}</el-tag> |
|
|
|
|
<el-tag v-if="version === 'Waiting'" round style="margin-left: 10px">{{ $t('setting.upgrading') }}</el-tag> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<el-drawer |
|
|
|
|
:close-on-click-modal="false" |
|
|
|
@ -192,6 +196,7 @@ onMounted(() => {
|
|
|
|
|
text-decoration: none; |
|
|
|
|
letter-spacing: 0.5px; |
|
|
|
|
cursor: pointer; |
|
|
|
|
margin-top: 2px; |
|
|
|
|
} |
|
|
|
|
.line-height { |
|
|
|
|
line-height: 25px; |
|
|
|
|