From 085a12e469fd8476df7a042b71af0e917e492e0b Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Fri, 8 May 2026 23:38:35 +0200 Subject: [PATCH] fix(frontend): info-modal cleanup + 2FA QR + outbound link import - 2FA QR: matrix-snap canvas + opaque background to drop white margin - Inbound info modal: stack Mixed/HTTP/Tunnel as info-rows, hide tab strip when only the Inbound tab applies - Add inline VLESS Reverse tag input on first-client form - Hide Protocol tab for TUN (no form yet) - Outbound link converter: route through Outbound.fromLink so vless/trojan/ss/hysteria(2) imports work alongside vmess; fix stray implicit global in fromLink Co-Authored-By: Claude Opus 4.7 --- frontend/src/models/outbound.js | 2 +- .../src/pages/inbounds/InboundFormModal.vue | 9 +- .../src/pages/inbounds/InboundInfoModal.vue | 167 +++++++++++------- .../src/pages/settings/TwoFactorModal.vue | 36 +++- frontend/src/pages/xray/OutboundFormModal.vue | 30 ++-- 5 files changed, 157 insertions(+), 87 deletions(-) diff --git a/frontend/src/models/outbound.js b/frontend/src/models/outbound.js index 658555fa..92153b9d 100644 --- a/frontend/src/models/outbound.js +++ b/frontend/src/models/outbound.js @@ -1338,7 +1338,7 @@ export class Outbound extends CommonClass { } static fromLink(link) { - data = link.split('://'); + const data = link.split('://'); if (data.length != 2) return null; switch (data[0].toLowerCase()) { case Protocols.VMess: diff --git a/frontend/src/pages/inbounds/InboundFormModal.vue b/frontend/src/pages/inbounds/InboundFormModal.vue index 12b1ba77..f2fd332c 100644 --- a/frontend/src/pages/inbounds/InboundFormModal.vue +++ b/frontend/src/pages/inbounds/InboundFormModal.vue @@ -579,7 +579,10 @@ watch( - + +