mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-07 13:44:24 +00:00
fix design
This commit is contained in:
parent
882473b352
commit
856440384f
1 changed files with 15 additions and 6 deletions
|
|
@ -169,6 +169,14 @@
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :sm="24" :lg="12">
|
<a-col :sm="24" :lg="12">
|
||||||
<a-card title='3X-UI' hoverable>
|
<a-card title='3X-UI' hoverable>
|
||||||
|
<template v-if="panelUpdateModal.info.updateAvailable" #extra>
|
||||||
|
<a-tooltip :overlay-class-name="themeSwitcher.currentTheme" :title='`{{ i18n "pages.index.updatePanel" }}: ${panelUpdateModal.info.latestVersion}`'>
|
||||||
|
<a-tag color="orange" style="cursor:pointer;margin:0" @click="openPanelUpdate">
|
||||||
|
<a-icon type="cloud-download"></a-icon>[[ panelUpdateModal.info.latestVersion ]]
|
||||||
|
<span v-if="!isMobile">{{ i18n "pages.index.updatePanel" }}</span>
|
||||||
|
</a-tag>
|
||||||
|
</a-tooltip>
|
||||||
|
</template>
|
||||||
<a rel="noopener" href="https://github.com/MHSanaei/3x-ui/releases" target="_blank">
|
<a rel="noopener" href="https://github.com/MHSanaei/3x-ui/releases" target="_blank">
|
||||||
<a-tag color="green">
|
<a-tag color="green">
|
||||||
<span>v{{ .cur_ver }}</span>
|
<span>v{{ .cur_ver }}</span>
|
||||||
|
|
@ -184,12 +192,6 @@
|
||||||
<span>{{ i18n "pages.index.documentation" }}</span>
|
<span>{{ i18n "pages.index.documentation" }}</span>
|
||||||
</a-tag>
|
</a-tag>
|
||||||
</a>
|
</a>
|
||||||
<template #actions>
|
|
||||||
<a-space direction="horizontal" @click="openPanelUpdate" class="jc-center">
|
|
||||||
<a-icon type="cloud-download"></a-icon>
|
|
||||||
<span v-if="!isMobile">{{ i18n "pages.index.updatePanel" }}</span>
|
|
||||||
</a-space>
|
|
||||||
</template>
|
|
||||||
</a-card>
|
</a-card>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :sm="24" :lg="12">
|
<a-col :sm="24" :lg="12">
|
||||||
|
|
@ -1430,6 +1432,13 @@
|
||||||
// Initial status fetch
|
// Initial status fetch
|
||||||
await this.getStatus();
|
await this.getStatus();
|
||||||
|
|
||||||
|
// Silently check for panel updates so the indicator shows on load
|
||||||
|
HttpUtil.get('/panel/api/server/getPanelUpdateInfo').then(msg => {
|
||||||
|
if (msg && msg.success && msg.obj) {
|
||||||
|
panelUpdateModal.info = msg.obj;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// Setup WebSocket for real-time updates
|
// Setup WebSocket for real-time updates
|
||||||
if (window.wsClient) {
|
if (window.wsClient) {
|
||||||
window.wsClient.connect();
|
window.wsClient.connect();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue