Skip to content

Commit f0aa694

Browse files
authored
Minor UI updates (hestiacp#3425)
* Tidy toolbar search input outline style * Load page-specific JS later in HTML * Simplify cron JS, remove setTimeout usage * Add more required attributes to forms * Fix translation source string * Bump Node dependencies * Refine cron layout on small screens * Convert some jQuery to vanilla JS * Fix ESLint warnings
1 parent 7fecd26 commit f0aa694

File tree

51 files changed

+222
-215
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+222
-215
lines changed

.eslintrc.cjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,13 @@ module.exports = {
2525
rules: {
2626
// Set those as warnings instead. They should be fixed at some point
2727
'@typescript-eslint/no-unused-vars': [
28-
'warn',
28+
'error',
2929
{
3030
argsIgnorePattern: '^_',
3131
varsIgnorePattern: '^_',
3232
caughtErrorsIgnorePattern: '^_',
3333
},
3434
],
35-
'@typescript-eslint/no-empty-function': 'warn',
36-
'@typescript-eslint/no-this-alias': 'warn',
3735
'@typescript-eslint/no-var-requires': 'off',
3836
'no-redeclare': 'off',
3937
'no-undef': 'off',

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@
3636
"postcss-cli": "^10.1.0",
3737
"postcss-import": "^15.1.0",
3838
"postcss-path-replace": "^1.0.4",
39-
"postcss-preset-env": "^8.2.0",
39+
"postcss-preset-env": "^8.3.0",
4040
"postcss-size": "^4.0.1",
4141
"prettier": "^2.8.7",
4242
"prettier-plugin-nginx": "^1.0.3",
4343
"prettier-plugin-sh": "^0.12.8",
4444
"prettier-plugin-sql": "^0.13.0",
45-
"stylelint": "^15.3.0",
46-
"stylelint-config-standard": "^31.0.0",
47-
"typescript": "^5.0.2",
45+
"stylelint": "^15.4.0",
46+
"stylelint-config-standard": "^32.0.0",
47+
"typescript": "^5.0.3",
4848
"vitepress": "1.0.0-alpha.64",
4949
"vue": "^3.2.47"
5050
}

web/css/src/themes/default.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,7 @@
547547

548548
&:focus {
549549
border-right-color: #008fee;
550+
outline-offset: 1px;
550551
}
551552
}
552553

@@ -1408,11 +1409,17 @@
14081409
@media (--viewport-medium) {
14091410
.sidebar-left-container {
14101411
display: grid;
1411-
gap: 50px;
1412+
gap: 20px;
14121413
grid-template-columns: 1fr 3fr;
14131414
}
14141415
}
14151416

1417+
@media (--viewport-large) {
1418+
.sidebar-left-container {
1419+
gap: 50px;
1420+
}
1421+
}
1422+
14161423
.form-title {
14171424
color: #4b4b4b;
14181425
font-size: 1.4rem;

web/css/themes/default.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/edit/backup/exclusions/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129

130130
// Set success message
131131
if (empty($_SESSION["error_msg"])) {
132-
$_SESSION["ok_msg"] = _("Changes has been saved.");
132+
$_SESSION["ok_msg"] = _("Changes have been saved.");
133133
}
134134
}
135135

web/edit/cron/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686

8787
// Set success message
8888
if (empty($_SESSION["error_msg"])) {
89-
$_SESSION["ok_msg"] = _("Changes has been saved.");
89+
$_SESSION["ok_msg"] = _("Changes have been saved.");
9090
}
9191
}
9292

web/edit/db/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797

9898
// Set success message
9999
if (empty($_SESSION["error_msg"])) {
100-
$_SESSION["ok_msg"] = _("Changes has been saved.");
100+
$_SESSION["ok_msg"] = _("Changes have been saved.");
101101
}
102102
// if the mysql username was changed, render_page() below will render with the OLD mysql username,
103103
// to prvent that, make the browser refresh the page.

web/edit/dns/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@
231231

232232
// Set success message
233233
if (empty($_SESSION["error_msg"])) {
234-
$_SESSION["ok_msg"] = _("Changes has been saved.");
234+
$_SESSION["ok_msg"] = _("Changes have been saved.");
235235
}
236236
// Restart dns server
237237
if (empty($_SESSION["error_msg"])) {
@@ -322,7 +322,7 @@
322322

323323
// Set success message
324324
if (empty($_SESSION["error_msg"])) {
325-
$_SESSION["ok_msg"] = _("Changes has been saved.");
325+
$_SESSION["ok_msg"] = _("Changes have been saved.");
326326
}
327327

328328
// Change url if record id was changed

web/edit/firewall/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131

132132
// Set success message
133133
if (empty($_SESSION["error_msg"])) {
134-
$_SESSION["ok_msg"] = _("Changes has been saved.");
134+
$_SESSION["ok_msg"] = _("Changes have been saved.");
135135
}
136136
} else {
137137
$v_rule = $_GET["v_rule"];

web/edit/ip/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494

9595
// Set success message
9696
if (empty($_SESSION["error_msg"])) {
97-
$_SESSION["ok_msg"] = _("Changes has been saved.");
97+
$_SESSION["ok_msg"] = _("Changes have been saved.");
9898
}
9999
}
100100

0 commit comments

Comments
 (0)