mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-04-20 05:52:24 +00:00
chore: pretty xray version
modal
This commit is contained in:
parent
66ebd0c809
commit
6f926321ff
1 changed files with 9 additions and 12 deletions
|
@ -273,12 +273,14 @@
|
||||||
@ok="() => versionModal.visible = false" :class="themeSwitcher.currentTheme" footer="">
|
@ok="() => versionModal.visible = false" :class="themeSwitcher.currentTheme" footer="">
|
||||||
<a-alert type="warning" style="margin-bottom: 12px; width: fit-content"
|
<a-alert type="warning" style="margin-bottom: 12px; width: fit-content"
|
||||||
message='{{ i18n "pages.index.xraySwitchClickDesk" }}' show-icon></a-alert>
|
message='{{ i18n "pages.index.xraySwitchClickDesk" }}' show-icon></a-alert>
|
||||||
<template v-for="version, index in versionModal.versions">
|
<a-list bordered style="width: 100%;">
|
||||||
<a-tag :color="index % 2 == 0 ? 'purple' : 'green'" style="margin-right: 12px; margin-bottom: 12px"
|
<a-list-item class="ant-xray-version-item" v-for="version in versionModal.versions">
|
||||||
@click="switchV2rayVersion(version)">
|
<a-list-item-meta>
|
||||||
[[ version ]]
|
<template #title>[[ version ]]</template>
|
||||||
</a-tag>
|
</a-list-item-meta>
|
||||||
</template>
|
<a-radio :checked="version === `v${status.xray.version}`" @click="switchV2rayVersion(version)"></a-radio>
|
||||||
|
</a-list-item>
|
||||||
|
</a-list>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
<a-modal id="log-modal" v-model="logModal.visible"
|
<a-modal id="log-modal" v-model="logModal.visible"
|
||||||
:closable="true" @cancel="() => logModal.visible = false"
|
:closable="true" @cancel="() => logModal.visible = false"
|
||||||
|
@ -614,12 +616,7 @@
|
||||||
txtModal.show('config.json', JSON.stringify(msg.obj, null, 2), 'config.json');
|
txtModal.show('config.json', JSON.stringify(msg.obj, null, 2), 'config.json');
|
||||||
},
|
},
|
||||||
openBackup() {
|
openBackup() {
|
||||||
backupModal.show({
|
backupModal.show();
|
||||||
title: '{{ i18n "pages.index.backupTitle" }}',
|
|
||||||
description: '{{ i18n "pages.index.backupDescription" }}',
|
|
||||||
exportText: '{{ i18n "pages.index.exportDatabase" }}',
|
|
||||||
importText: '{{ i18n "pages.index.importDatabase" }}',
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
exportDatabase() {
|
exportDatabase() {
|
||||||
window.location = basePath + 'server/getDb';
|
window.location = basePath + 'server/getDb';
|
||||||
|
|
Loading…
Reference in a new issue