diff options
| author | Ahmed AbdelHalim <[email protected]> | 2025-09-07 19:11:00 +0200 |
|---|---|---|
| committer | Ahmed AbdelHalim <[email protected]> | 2025-09-07 19:11:00 +0200 |
| commit | 5fea2066fbe9d935c20c533df6f68cf114a84b78 (patch) | |
| tree | 5c387e05bd2d442c10d5492c1491559aa4bcc7cb | |
| parent | e54cef2fae80d759c495544f04afe50385c36bce (diff) | |
Fix linting issues
| -rw-r--r-- | eslint.config.js | 2 | ||||
| -rw-r--r-- | static/css/styles.css | 12 | ||||
| -rw-r--r-- | templates/index.html | 2 | ||||
| -rw-r--r-- | templates/login.html | 2 |
4 files changed, 8 insertions, 10 deletions
diff --git a/eslint.config.js b/eslint.config.js index 3bfc90c..4f720d2 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -10,6 +10,8 @@ export default [ document: "readonly", console: "readonly", fetch: "readonly", + setInterval: "readonly", + clearInterval: "readonly", App: "readonly", Utils: "readonly", ConnectionManager: "readonly", diff --git a/static/css/styles.css b/static/css/styles.css index af767a7..acf0773 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -38,7 +38,7 @@ html { border-color: var(--light-green); } - .login__form input[type=submit] { + .login__form button { color: var(--light-green); } } @@ -48,7 +48,7 @@ html { .header__logout { position: inherit !important; } - .header__logout input[type=submit] { + .header__logout button { width: 100% !important; } } @@ -79,7 +79,7 @@ header { right: 1rem; } -.header__logout input[type=submit] { +.header__logout button { border: 1px solid; padding: 1rem; color: var(--dark-red); @@ -92,10 +92,6 @@ header { min-height: 160px; } -.status__header, -.connections__header { -} - .message { font-family: monospace; font-size: 14px; @@ -164,7 +160,7 @@ header { background-color: inherit; } -.login__form input[type=submit] { +.login__form button { border: 1px solid; padding: 1rem; color: var(--dark-green); diff --git a/templates/index.html b/templates/index.html index 724aa6e..6174020 100644 --- a/templates/index.html +++ b/templates/index.html @@ -14,7 +14,7 @@ <p class="header__subtitle">Manage WireGuard VPN connections</p> <div class="header__logout"> <form method="POST" action="/logout"> - <input type="submit" value="Logout"> + <button type="submit">Logout</button> </form> </div> </header> diff --git a/templates/login.html b/templates/login.html index c26f863..bd28803 100644 --- a/templates/login.html +++ b/templates/login.html @@ -24,7 +24,7 @@ <form class="login__form" method="POST" action="/login"> <input type="password" name="password" placeholder="Password" required> - <input type="submit" value="Login"> + <button type="submit">Login</button> </form> </div> </div> |
