|
@@ -74,6 +74,25 @@
|
|
|
</transition>
|
|
|
<transition name="list" appear>
|
|
|
<a-row>
|
|
|
+ <a-col :sm="24" :md="12">
|
|
|
+ <a-card hoverable :class="siderDrawer.isDarkTheme ? darkClass : ''">
|
|
|
+ 3x-ui: <a href="https://github.com/MHSanaei/3x-ui/releases" target="_blank"><a-tag color="green">v{{ .cur_ver }}</a-tag></a>
|
|
|
+ Xray: <a-tag color="green" style="cursor: pointer;" @click="openSelectV2rayVersion">v[[ status.xray.version ]]</a-tag>
|
|
|
+ Telegram: <a href="https://t.me/panel3xui" target="_blank"><a-tag color="green">@panel3xui</a-tag></a>
|
|
|
+ </a-card>
|
|
|
+ </a-col>
|
|
|
+ <a-col :sm="24" :md="12">
|
|
|
+ <a-card hoverable :class="siderDrawer.isDarkTheme ? darkClass : ''">
|
|
|
+ {{ i18n "pages.index.operationHours" }}:
|
|
|
+ <a-tag color="green">[[ formatSecond(status.uptime) ]]</a-tag>
|
|
|
+ <a-tooltip>
|
|
|
+ <template slot="title">
|
|
|
+ {{ i18n "pages.index.operationHoursDesc" }}
|
|
|
+ </template>
|
|
|
+ <a-icon type="question-circle" theme="filled"></a-icon>
|
|
|
+ </a-tooltip>
|
|
|
+ </a-card>
|
|
|
+ </a-col>
|
|
|
<a-col :sm="24" :md="12">
|
|
|
<a-card hoverable :class="siderDrawer.isDarkTheme ? darkClass : ''">
|
|
|
{{ i18n "pages.index.xrayStatus" }}:
|
|
@@ -84,7 +103,6 @@
|
|
|
</template>
|
|
|
<a-icon type="question-circle" theme="filled"></a-icon>
|
|
|
</a-tooltip>
|
|
|
- <a-tag color="green" style="cursor: pointer;" @click="openSelectV2rayVersion">[[ status.xray.version ]]</a-tag>
|
|
|
<a-tag color="blue" style="cursor: pointer;" @click="stopXrayService">{{ i18n "pages.index.stopXray" }}</a-tag>
|
|
|
<a-tag color="blue" style="cursor: pointer;" @click="restartXrayService">{{ i18n "pages.index.restartXray" }}</a-tag>
|
|
|
<a-tag color="blue" style="cursor: pointer;" @click="openSelectV2rayVersion">{{ i18n "pages.index.xraySwitch" }}</a-tag>
|
|
@@ -92,14 +110,10 @@
|
|
|
</a-col>
|
|
|
<a-col :sm="24" :md="12">
|
|
|
<a-card hoverable :class="siderDrawer.isDarkTheme ? darkClass : ''">
|
|
|
- {{ i18n "pages.index.operationHours" }}:
|
|
|
- <a-tag color="green">[[ formatSecond(status.uptime) ]]</a-tag>
|
|
|
- <a-tooltip>
|
|
|
- <template slot="title">
|
|
|
- {{ i18n "pages.index.operationHoursDesc" }}
|
|
|
- </template>
|
|
|
- <a-icon type="question-circle" theme="filled"></a-icon>
|
|
|
- </a-tooltip>
|
|
|
+ {{ i18n "menu.link" }}:
|
|
|
+ <a-tag color="blue" style="cursor: pointer;" @click="openLogs(20)">Log Reports</a-tag>
|
|
|
+ <a-tag color="blue" style="cursor: pointer;" @click="openConfig">Config</a-tag>
|
|
|
+ <a-tag color="blue" style="cursor: pointer;" @click="getBackup">Backup</a-tag>
|
|
|
</a-card>
|
|
|
</a-col>
|
|
|
<a-col :sm="24" :md="12">
|
|
@@ -169,13 +183,6 @@
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
</a-card>
|
|
|
- </a-col>
|
|
|
- <a-col :sm="24" :md="12">
|
|
|
- <a-card hoverable :class="siderDrawer.isDarkTheme ? darkClass : ''">
|
|
|
- 3x-ui: <a href="https://github.com/MHSanaei/3x-ui/releases" target="_blank"><a-tag color="green">v{{ .cur_ver }}</a-tag></a>
|
|
|
- <a href="https://t.me/panel3xui" target="_blank"><a-tag color="green">Telegram</a-tag></a>
|
|
|
- <a-tag color="blue" style="cursor: pointer;" @click="openLogs(20)">Log Reports</a-tag>
|
|
|
- </a-card>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
</transition>
|
|
@@ -226,6 +233,7 @@
|
|
|
</a-modal>
|
|
|
</a-layout>
|
|
|
{{template "js" .}}
|
|
|
+{{template "textModal"}}
|
|
|
<script>
|
|
|
|
|
|
const State = {
|
|
@@ -406,6 +414,18 @@
|
|
|
return;
|
|
|
}
|
|
|
logModal.show(msg.obj,rows);
|
|
|
+ },
|
|
|
+ async openConfig(){
|
|
|
+ this.loading(true);
|
|
|
+ const msg = await HttpUtil.post('server/getConfigJson');
|
|
|
+ this.loading(false);
|
|
|
+ if (!msg.success) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ txtModal.show('config.json',JSON.stringify(msg.obj, null, 2),'config.json');
|
|
|
+ },
|
|
|
+ getBackup(){
|
|
|
+ window.location = basePath + 'server/getDb';
|
|
|
}
|
|
|
},
|
|
|
async mounted() {
|