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>2023-05-13 15:12:46 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-05-13 15:12:46 +0300
commit7cacfc074e0f768ec9663245db3bac6018de1a24 (patch)
tree94e064daff4c0142680fb874f2067721b6a0f8f5 /web/html/xui/form
parent9e8ac8a087adc7a822d29d6b8510b83b85fa698b (diff)
remove duplicate random text gen
randomText by default length set to 8
Diffstat (limited to 'web/html/xui/form')
-rw-r--r--web/html/xui/form/client.html2
-rw-r--r--web/html/xui/form/protocol/shadowsocks.html2
-rw-r--r--web/html/xui/form/protocol/trojan.html2
-rw-r--r--web/html/xui/form/protocol/vless.html2
-rw-r--r--web/html/xui/form/protocol/vmess.html2
5 files changed, 5 insertions, 5 deletions
diff --git a/web/html/xui/form/client.html b/web/html/xui/form/client.html
index 7bebddcb..9dfde046 100644
--- a/web/html/xui/form/client.html
+++ b/web/html/xui/form/client.html
@@ -16,7 +16,7 @@
<template slot="title">
<span>{{ i18n "pages.inbounds.emailDesc" }}</span>
</template>
- <a-icon type="sync" @click="getNewEmail(client)"></a-icon>
+ <a-icon @click="client.email = RandomUtil.randomText()" type="sync"> </a-icon>
</a-tooltip>
</span>
<a-input v-model.trim="client.email" style="width: 200px;"></a-input>
diff --git a/web/html/xui/form/protocol/shadowsocks.html b/web/html/xui/form/protocol/shadowsocks.html
index 47198671..cac2229f 100644
--- a/web/html/xui/form/protocol/shadowsocks.html
+++ b/web/html/xui/form/protocol/shadowsocks.html
@@ -9,7 +9,7 @@
<template slot="title">
<span>{{ i18n "pages.inbounds.emailDesc" }}</span>
</template>
- <a-icon @click="getNewEmail(client)" type="sync"></a-icon>
+ <a-icon @click="client.email = RandomUtil.randomText()" type="sync"> </a-icon>
</a-tooltip>
</span>
<a-input v-model.trim="client.email" style="width: 150px;"></a-input>
diff --git a/web/html/xui/form/protocol/trojan.html b/web/html/xui/form/protocol/trojan.html
index 2b6a2a3b..5594f47e 100644
--- a/web/html/xui/form/protocol/trojan.html
+++ b/web/html/xui/form/protocol/trojan.html
@@ -9,7 +9,7 @@
<template slot="title">
<span>{{ i18n "pages.inbounds.emailDesc" }}</span>
</template>
- <a-icon type="sync" @click="getNewEmail(client)"></a-icon>
+ <a-icon @click="client.email = RandomUtil.randomText()" type="sync"> </a-icon>
</a-tooltip>
</span>
<a-input v-model.trim="client.email" style="width: 150px;"></a-input>
diff --git a/web/html/xui/form/protocol/vless.html b/web/html/xui/form/protocol/vless.html
index 16722490..1c2ebccf 100644
--- a/web/html/xui/form/protocol/vless.html
+++ b/web/html/xui/form/protocol/vless.html
@@ -9,7 +9,7 @@
<template slot="title">
<span>{{ i18n "pages.inbounds.emailDesc" }}</span>
</template>
- <a-icon type="sync" @click="getNewEmail(client)"></a-icon>
+ <a-icon @click="client.email = RandomUtil.randomText()" type="sync"> </a-icon>
</a-tooltip>
</span>
<a-input v-model.trim="client.email" style="width: 150px;"></a-input>
diff --git a/web/html/xui/form/protocol/vmess.html b/web/html/xui/form/protocol/vmess.html
index b54039af..6ebdacb1 100644
--- a/web/html/xui/form/protocol/vmess.html
+++ b/web/html/xui/form/protocol/vmess.html
@@ -9,7 +9,7 @@
<template slot="title">
<span>{{ i18n "pages.inbounds.emailDesc" }}</span>
</template>
- <a-icon type="sync" @click="getNewEmail(client)"></a-icon>
+ <a-icon @click="client.email = RandomUtil.randomText()" type="sync"> </a-icon>
</a-tooltip>
</span>
<a-input v-model.trim="client.email" style="width: 150px;"></a-input>