Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShishkevich D. <135337715+shishkevichd@users.noreply.github.com>2025-04-06 12:40:33 +0300
committerGitHub <noreply@github.com>2025-04-06 12:40:33 +0300
commitbea19a263db88fef44b4356082b199fbfcc39a25 (patch)
treea111e9328c6273ad9721118238c40cf3004f72a9 /web/html/xui/settings/xray/outbounds.html
parent878e0d02cd01a045f4f32464124c59e24f98aedd (diff)
Code refactoring (#2865)
* refactor: use vue inline styles in entire application * refactor: setting row in dashboard page * refactor: use blob for download file in text modal * refactor: move all html templates in `web/html` folder * refactor: `DeviceUtils` -> `MediaQueryMixin` The transition to mixins has been made, as they can update themselves. * chore: pretty right buttons in `outbounds` tab in xray settings * refactor: add translations for system status * refactor: adjust gutter spacing in setting list item * refactor: use native `a-input-password` for password field * chore: return old system status with new translations * chore: add missing translation
Diffstat (limited to 'web/html/xui/settings/xray/outbounds.html')
-rw-r--r--web/html/xui/settings/xray/outbounds.html72
1 files changed, 0 insertions, 72 deletions
diff --git a/web/html/xui/settings/xray/outbounds.html b/web/html/xui/settings/xray/outbounds.html
deleted file mode 100644
index 45d07c4c..00000000
--- a/web/html/xui/settings/xray/outbounds.html
+++ /dev/null
@@ -1,72 +0,0 @@
-{{define "settings/xray/outbounds"}}
-<a-space direction="vertical" size="middle">
- <a-row>
- <a-col :xs="12" :sm="12" :lg="12">
- <a-space direction="horizontal" size="small">
- <a-button type="primary" icon="plus" @click="addOutbound()">
- {{ i18n "pages.xray.outbound.addOutbound" }}
- </a-button>
- <a-button type="primary" icon="cloud" @click="showWarp()">WARP</a-button>
- </a-space>
- </a-col>
- <a-col :xs="12" :sm="12" :lg="12" style="text-align: right;">
- <a-icon type="sync" :spin="refreshing" @click="refreshOutboundTraffic()" style="margin: 0 5px;"></a-icon>
- <a-popconfirm placement="topRight" @confirm="resetOutboundTraffic(-1)"
- title='{{ i18n "pages.inbounds.resetTrafficContent"}}' :overlay-class-name="themeSwitcher.currentTheme"
- ok-text='{{ i18n "reset"}}' cancel-text='{{ i18n "cancel"}}'>
- <a-icon slot="icon" type="question-circle-o"
- :style="themeSwitcher.isDarkTheme ? 'color: #008771' : 'color: #008771'"></a-icon>
- <a-icon type="retweet" style="cursor: pointer;"></a-icon>
- </a-popconfirm>
- </a-col>
- </a-row>
- <a-table :columns="outboundColumns" bordered :row-key="r => r.key" :data-source="outboundData"
- :scroll="isMobile ? {} : { x: 800 }" :pagination="false" :indent-size="0">
- <template slot="action" slot-scope="text, outbound, index">
- <span>[[ index+1 ]]</span>
- <a-dropdown :trigger="['click']">
- <a-icon @click="e => e.preventDefault()" type="more"
- style="font-size: 16px; text-decoration: bold;"></a-icon>
- <a-menu slot="overlay" :theme="themeSwitcher.currentTheme">
- <a-menu-item v-if="index>0" @click="setFirstOutbound(index)">
- <a-icon type="vertical-align-top"></a-icon>
- <span>{{ i18n "pages.xray.rules.first"}}</span>
- </a-menu-item>
- <a-menu-item @click="editOutbound(index)">
- <a-icon type="edit"></a-icon>
- <span>{{ i18n "edit" }}</span>
- </a-menu-item>
- <a-menu-item @click="resetOutboundTraffic(index)">
- <span>
- <a-icon type="retweet"></a-icon>
- <span>{{ i18n "pages.inbounds.resetTraffic"}}</span>
- </span>
- </a-menu-item>
- <a-menu-item @click="deleteOutbound(index)">
- <span style="color: #FF4D4F">
- <a-icon type="delete"></a-icon>
- <span>{{ i18n "delete"}}</span>
- </span>
- </a-menu-item>
- </a-menu>
- </a-dropdown>
- </template>
- <template slot="address" slot-scope="text, outbound, index">
- <p style="margin: 0 5px;" v-for="addr in findOutboundAddress(outbound)">[[ addr ]]</p>
- </template>
- <template slot="protocol" slot-scope="text, outbound, index">
- <a-tag style="margin:0;" color="purple">[[ outbound.protocol ]]</a-tag>
- <template
- v-if="[Protocols.VMess, Protocols.VLESS, Protocols.Trojan, Protocols.Shadowsocks].includes(outbound.protocol)">
- <a-tag style="margin:0;" color="blue">[[ outbound.streamSettings.network ]]</a-tag>
- <a-tag style="margin:0;" v-if="outbound.streamSettings.security=='tls'" color="green">tls</a-tag>
- <a-tag style="margin:0;" v-if="outbound.streamSettings.security=='reality'"
- color="green">reality</a-tag>
- </template>
- </template>
- <template slot="traffic" slot-scope="text, outbound, index">
- <a-tag color="green">[[ findOutboundTraffic(outbound) ]]</a-tag>
- </template>
- </a-table>
-</a-space>
-{{end}} \ No newline at end of file