Update index.html

This commit is contained in:
Tara Rostami 2024-02-28 07:08:03 +03:30 committed by GitHub
parent 40c770f139
commit 033a6003c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,11 +10,9 @@
margin-inline: 0.3rem; margin-inline: 0.3rem;
} }
} }
.ant-col-sm-24 { .ant-col-sm-24 {
margin-top: 10px; margin-top: 10px;
} }
.ant-card-dark h2 { .ant-card-dark h2 {
color: var(--dark-color-text-primary); color: var(--dark-color-text-primary);
} }
@ -94,8 +92,8 @@
<a-col :sm="24" :lg="12"> <a-col :sm="24" :lg="12">
<a-card hoverable> <a-card hoverable>
<b>{{ i18n "pages.index.operationHours" }}:</b> <b>{{ i18n "pages.index.operationHours" }}:</b>
<a-tag color="green">Xray [[ formatSecond(status.appStats.uptime) ]]</a-tag> <a-tag :color="status.xray.color">Xray: [[ formatSecond(status.appStats.uptime) ]]</a-tag>
<a-tag color="green">OS [[ formatSecond(status.uptime) ]]</a-tag> <a-tag color="green">OS: [[ formatSecond(status.uptime) ]]</a-tag>
</a-card> </a-card>
</a-col> </a-col>
<a-col :sm="24" :lg="12"> <a-col :sm="24" :lg="12">
@ -143,10 +141,10 @@
<a-card hoverable> <a-card hoverable>
<b>{{ i18n "usage"}}:</b> <b>{{ i18n "usage"}}:</b>
<a-tag color="green"> <a-tag color="green">
RAM [[ sizeFormat(status.appStats.mem) ]] RAM: [[ sizeFormat(status.appStats.mem) ]]
</a-tag> </a-tag>
<a-tag color="green"> <a-tag color="green">
Threads [[ status.appStats.threads ]] Threads: [[ status.appStats.threads ]]
</a-tag> </a-tag>
</a-card> </a-card>
</a-col> </a-col>
@ -315,7 +313,7 @@
</a-form-item> </a-form-item>
<a-form-item style="float: right;"> <a-form-item style="float: right;">
<a-button type="primary" icon="download" <a-button type="primary" icon="download"
:href="'data:application/text;charset=utf-8,' + encodeURIComponent(logModal.logs.join('\n'))" download="x-ui.log"> :href="'data:application/text;charset=utf-8,' + encodeURIComponent(logModal.logs)" download="x-ui.log">
</a-button> </a-button>
</a-form-item> </a-form-item>
</a-form> </a-form>
@ -447,7 +445,7 @@
const logModal = { const logModal = {
visible: false, visible: false,
logs: [], logs: '',
rows: 20, rows: 20,
level: 'info', level: 'info',
syslog: false, syslog: false,