From e19061d513b8c4fb2207b4a553a96ea086089612 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Mon, 4 May 2026 13:20:24 +0200 Subject: TLS: Remove ECH Force Query --- web/html/modals/nord_modal.html | 69 +++++++++++++++++++++++++++-------------- 1 file changed, 45 insertions(+), 24 deletions(-) (limited to 'web/html/modals/nord_modal.html') diff --git a/web/html/modals/nord_modal.html b/web/html/modals/nord_modal.html index c86d8ed9..75d9778e 100644 --- a/web/html/modals/nord_modal.html +++ b/web/html/modals/nord_modal.html @@ -1,25 +1,31 @@ {{define "modals/nordModal"}} + :confirm-loading="nordModal.confirmLoading" :closable="true" :mask-closable="true" :footer="null" + :class="themeSwitcher.currentTheme"> @@ -115,7 +124,9 @@ }, async login() { this.loading(true); - const msg = await HttpUtil.post('/panel/xray/nord/reg', { token: this.token }); + const msg = await HttpUtil.post('/panel/xray/nord/reg', { + token: this.token + }); if (msg.success) { this.nordData = JSON.parse(msg.obj); await this.fetchCountries(); @@ -124,7 +135,9 @@ }, async saveKey() { this.loading(true); - const msg = await HttpUtil.post('/panel/xray/nord/setKey', { key: this.manualKey }); + const msg = await HttpUtil.post('/panel/xray/nord/setKey', { + key: this.manualKey + }); if (msg.success) { this.nordData = JSON.parse(msg.obj); await this.fetchCountries(); @@ -160,7 +173,9 @@ this.cities = []; this.serverId = null; this.cityId = null; - const msg = await HttpUtil.post('/panel/xray/nord/servers', { countryId: this.countryId }); + const msg = await HttpUtil.post('/panel/xray/nord/servers', { + countryId: this.countryId + }); if (msg.success) { const data = JSON.parse(msg.obj); const locations = data.locations || []; @@ -173,7 +188,7 @@ } }); this.cities = Array.from(citiesMap.values()).sort((a, b) => a.name.localeCompare(b.name)); - + this.servers = (data.servers || []).map(s => { const firstLocId = (s.location_ids || [])[0]; const city = locToCity[firstLocId]; @@ -195,7 +210,7 @@ addOutbound() { const server = this.servers.find(s => s.id === this.serverId); if (!server) return; - + const tech = server.technologies.find(t => t.id === 35); const publicKey = tech.metadata.find(m => m.name === 'public_key').value; @@ -221,7 +236,7 @@ resetOutbound(index) { const server = this.servers.find(s => s.id === this.serverId); if (!server || index === -1) return; - + const tech = server.technologies.find(t => t.id === 35); const publicKey = tech.metadata.find(m => m.name === 'public_key').value; @@ -242,7 +257,7 @@ } }; app.templateSettings.outbounds[index] = outbound; - + // Sync routing rules app.templateSettings.routing.rules.forEach(r => { if (r.outboundTag === oldTag) { @@ -262,7 +277,8 @@ }, delRouting() { if (app.templateSettings && app.templateSettings.routing) { - app.templateSettings.routing.rules = app.templateSettings.routing.rules.filter(r => !r.outboundTag.startsWith("nord-")); + app.templateSettings.routing.rules = app.templateSettings.routing.rules.filter(r => !r.outboundTag + .startsWith("nord-")); } } }; @@ -276,10 +292,14 @@ methods: { login: () => nordModal.login(), saveKey: () => nordModal.saveKey(), - logout() { nordModal.logout(this.nordOutboundIndex) }, + logout() { + nordModal.logout(this.nordOutboundIndex) + }, fetchServers: () => nordModal.fetchServers(), addOutbound: () => nordModal.addOutbound(), - resetOutbound() { nordModal.resetOutbound(this.nordOutboundIndex) }, + resetOutbound() { + nordModal.resetOutbound(this.nordOutboundIndex) + }, onCityChange() { if (this.filteredServers.length > 0) { this.nordModal.serverId = this.filteredServers[0].id; @@ -290,8 +310,9 @@ }, computed: { nordOutboundIndex: { - get: function () { - return app.templateSettings ? app.templateSettings.outbounds.findIndex((o) => o.tag.startsWith("nord-")) : -1; + get: function() { + return app.templateSettings ? app.templateSettings.outbounds.findIndex((o) => o.tag + .startsWith("nord-")) : -1; } }, filteredServers: function() { @@ -303,4 +324,4 @@ } }); -{{end}} +{{end}} \ No newline at end of file -- cgit v1.2.3