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:
authorTara Rostami <132676256+TaraRostami@users.noreply.github.com>2024-04-20 21:45:36 +0300
committerGitHub <noreply@github.com>2024-04-20 21:45:36 +0300
commitdb24d216210e0038f92e634de1ab8a46fbce4632 (patch)
tree3648326a1e359543febd865747822bc6f8f72781 /web/html/login.html
parent3d5c06bf08f0ede7206e0ef39966d6be2106a225 (diff)
UI Improvements (#2228)
* UI Improvements Better Table Update QR Code Modal Better Info Modal Compression HTML files Better Dropdown Menu Better Calendar and more .. Remove files Minor Fixes
Diffstat (limited to 'web/html/login.html')
-rw-r--r--web/html/login.html145
1 files changed, 72 insertions, 73 deletions
diff --git a/web/html/login.html b/web/html/login.html
index dfb01cea..ae6bfde5 100644
--- a/web/html/login.html
+++ b/web/html/login.html
@@ -400,7 +400,7 @@
</g>
</svg>
</div>
- <a-row type="flex" justify="center" align="middle" style="height: 100%; overflow: auto;">
+ <a-row type="flex" justify="center" align="middle" style="height: 100%; overflow: auto; overflow-x: hidden;">
<a-col :xs="22" :sm="20" :md="14" :lg="10" :xl="8" :xxl="6" id="login" style="margin: 3rem 0;">
<a-row type="flex" justify="center">
<a-col style="width: 100%;">
@@ -461,7 +461,7 @@
</a-form-item>
<a-form-item>
<a-row justify="center" class="centered">
- <theme-switch></theme-switch>
+ <theme-switch-login></theme-switch-login>
</a-row>
</a-form-item>
</a-form>
@@ -476,83 +476,82 @@
{{template "component/themeSwitcher" .}}
{{template "component/password" .}}
<script>
- class User {
- constructor() {
- this.username = "";
- this.password = "";
- }
+ class User {
+ constructor() {
+ this.username = "";
+ this.password = "";
}
-
- const app = new Vue({
- delimiters: ['[[', ']]'],
- el: '#app',
- data: {
- themeSwitcher,
- loading: false,
- user: new User(),
- secretEnable: false,
- lang: ""
- },
- async created() {
- this.lang = getLang();
- this.secretEnable = await this.getSecretStatus();
- },
- methods: {
- async login() {
- this.loading = true;
- const msg = await HttpUtil.post('/login', this.user);
- this.loading = false;
- if (msg.success) {
- location.href = basePath + 'panel/';
- }
- },
- async getSecretStatus() {
- this.loading = true;
- const msg = await HttpUtil.post('/getSecretStatus');
- this.loading = false;
- if (msg.success) {
- this.secretEnable = msg.obj;
- return msg.obj;
- }
- },
- },
- });
- document.addEventListener("DOMContentLoaded", function() {
- var animationDelay = 2000;
- initHeadline();
-
- function initHeadline() {
- animateHeadline(document.querySelectorAll('.headline'));
+ }
+ const app = new Vue({
+ delimiters: ['[[', ']]'],
+ el: '#app',
+ data: {
+ themeSwitcher,
+ loading: false,
+ user: new User(),
+ secretEnable: false,
+ lang: ""
+ },
+ async created() {
+ this.lang = getLang();
+ this.secretEnable = await this.getSecretStatus();
+ },
+ methods: {
+ async login() {
+ this.loading = true;
+ const msg = await HttpUtil.post('/login', this.user);
+ this.loading = false;
+ if (msg.success) {
+ location.href = basePath + 'panel/';
}
-
- function animateHeadline(headlines) {
- var duration = animationDelay;
- headlines.forEach(function(headline) {
- setTimeout(function() {
- hideWord(headline.querySelector('.is-visible'));
- }, duration);
- });
+ },
+ async getSecretStatus() {
+ this.loading = true;
+ const msg = await HttpUtil.post('/getSecretStatus');
+ this.loading = false;
+ if (msg.success) {
+ this.secretEnable = msg.obj;
+ return msg.obj;
}
+ },
+ },
+ });
+ document.addEventListener("DOMContentLoaded", function() {
+ var animationDelay = 2000;
+ initHeadline();
- function hideWord(word) {
- var nextWord = takeNext(word);
- switchWord(word, nextWord);
- setTimeout(function() {
- hideWord(nextWord);
- }, animationDelay);
- }
+ function initHeadline() {
+ animateHeadline(document.querySelectorAll('.headline'));
+ }
- function takeNext(word) {
- return (word.nextElementSibling) ? word.nextElementSibling : word.parentElement.firstElementChild;
- }
+ function animateHeadline(headlines) {
+ var duration = animationDelay;
+ headlines.forEach(function(headline) {
+ setTimeout(function() {
+ hideWord(headline.querySelector('.is-visible'));
+ }, duration);
+ });
+ }
- function switchWord(oldWord, newWord) {
- oldWord.classList.remove('is-visible');
- oldWord.classList.add('is-hidden');
- newWord.classList.remove('is-hidden');
- newWord.classList.add('is-visible');
- }
- });
+ function hideWord(word) {
+ var nextWord = takeNext(word);
+ switchWord(word, nextWord);
+ setTimeout(function() {
+ hideWord(nextWord);
+ }, animationDelay);
+ }
+
+ function takeNext(word) {
+ return (word.nextElementSibling) ? word.nextElementSibling : word.parentElement.firstElementChild;
+ }
+
+ function switchWord(oldWord, newWord) {
+ oldWord.classList.remove('is-visible');
+ oldWord.classList.add('is-hidden');
+ newWord.classList.remove('is-hidden');
+ newWord.classList.add('is-visible');
+ }
+ });
</script>
</body>
</html>