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:
authorMHSanaei <ho3ein.sanaei@gmail.com>2026-05-04 14:20:24 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2026-05-04 14:20:24 +0300
commite19061d513b8c4fb2207b4a553a96ea086089612 (patch)
tree8a05450f0f6d3e8a2a182976b1a38bf5cca824ea /web/html/modals/two_factor_modal.html
parent51e2fb6dbfb6f3f21b3f578c15c3dc0d47c4a66e (diff)
TLS: Remove ECH Force Query
Diffstat (limited to 'web/html/modals/two_factor_modal.html')
-rw-r--r--web/html/modals/two_factor_modal.html58
1 files changed, 29 insertions, 29 deletions
diff --git a/web/html/modals/two_factor_modal.html b/web/html/modals/two_factor_modal.html
index 13d22a5e..a6decd76 100644
--- a/web/html/modals/two_factor_modal.html
+++ b/web/html/modals/two_factor_modal.html
@@ -55,12 +55,12 @@
twoFactorModal.close()
},
- show: function ({
+ show: function({
title = '',
description = '',
token = '',
type = 'set',
- confirm = (success) => { }
+ confirm = (success) => {}
}) {
this.title = title;
this.description = description;
@@ -78,7 +78,7 @@
secret: twoFactorModal.token,
});
},
- close: function () {
+ close: function() {
twoFactorModal.enteredCode = "";
twoFactorModal.visible = false;
},
@@ -91,34 +91,34 @@
twoFactorModal: twoFactorModal,
},
updated() {
- if (
- this.twoFactorModal.visible &&
- this.twoFactorModal.type === 'set' &&
- document.getElementById('twofactor-qrcode')
- ) {
- this.setQrCode('twofactor-qrcode', this.twoFactorModal.totpObject.toString());
- }
+ if (
+ this.twoFactorModal.visible &&
+ this.twoFactorModal.type === 'set' &&
+ document.getElementById('twofactor-qrcode')
+ ) {
+ this.setQrCode('twofactor-qrcode', this.twoFactorModal.totpObject.toString());
+ }
},
methods: {
- setQrCode(elementId, content) {
- new QRious({
- element: document.getElementById(elementId),
- size: 200,
- value: content,
- background: 'white',
- backgroundAlpha: 0,
- foreground: 'black',
- padding: 2,
- level: 'L'
- });
- },
- copy(content) {
- ClipboardManager
- .copyText(content)
- .then(() => {
- app.$message.success('{{ i18n "copied" }}')
- })
- },
+ setQrCode(elementId, content) {
+ new QRious({
+ element: document.getElementById(elementId),
+ size: 200,
+ value: content,
+ background: 'white',
+ backgroundAlpha: 0,
+ foreground: 'black',
+ padding: 2,
+ level: 'L'
+ });
+ },
+ copy(content) {
+ ClipboardManager
+ .copyText(content)
+ .then(() => {
+ app.$message.success('{{ i18n "copied" }}')
+ })
+ },
}
});
</script>