Skip to content

Commit 6458203

Browse files
committed
testing
1 parent 7bff321 commit 6458203

File tree

16 files changed

+300
-165
lines changed

16 files changed

+300
-165
lines changed

openwisp_controller/config/static/config/css/admin.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,11 @@ input.readonly {
195195
white-space: pre;
196196
color: #777;
197197
}
198-
div.change-form #device_form div.inline-group.tab-content > fieldset.module > h2,
198+
div.change-form
199+
#device_form
200+
div.inline-group.tab-content
201+
> fieldset.module
202+
> h2,
199203
div.change-form
200204
#device_form
201205
div.inline-group.tab-content

openwisp_controller/config/static/config/css/lib/advanced-mode.css

Lines changed: 61 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -528,8 +528,16 @@ div.jsoneditor-contextmenu ul li button div.jsoneditor-expand {
528528
div.jsoneditor-contextmenu ul li button:hover div.jsoneditor-expand,
529529
div.jsoneditor-contextmenu ul li button:focus div.jsoneditor-expand,
530530
div.jsoneditor-contextmenu ul li.jsoneditor-selected div.jsoneditor-expand,
531-
div.jsoneditor-contextmenu ul li button.jsoneditor-expand:hover div.jsoneditor-expand,
532-
div.jsoneditor-contextmenu ul li button.jsoneditor-expand:focus div.jsoneditor-expand {
531+
div.jsoneditor-contextmenu
532+
ul
533+
li
534+
button.jsoneditor-expand:hover
535+
div.jsoneditor-expand,
536+
div.jsoneditor-contextmenu
537+
ul
538+
li
539+
button.jsoneditor-expand:focus
540+
div.jsoneditor-expand {
533541
opacity: 1;
534542
}
535543
div.jsoneditor-contextmenu div.jsoneditor-separator {
@@ -542,42 +550,60 @@ div.jsoneditor-contextmenu button.jsoneditor-remove > div.jsoneditor-icon {
542550
background-position: -24px -24px;
543551
}
544552
div.jsoneditor-contextmenu button.jsoneditor-remove:hover > div.jsoneditor-icon,
545-
div.jsoneditor-contextmenu button.jsoneditor-remove:focus > div.jsoneditor-icon {
553+
div.jsoneditor-contextmenu
554+
button.jsoneditor-remove:focus
555+
> div.jsoneditor-icon {
546556
background-position: -24px 0;
547557
}
548558
div.jsoneditor-contextmenu button.jsoneditor-append > div.jsoneditor-icon {
549559
background-position: 0 -24px;
550560
}
551561
div.jsoneditor-contextmenu button.jsoneditor-append:hover > div.jsoneditor-icon,
552-
div.jsoneditor-contextmenu button.jsoneditor-append:focus > div.jsoneditor-icon {
562+
div.jsoneditor-contextmenu
563+
button.jsoneditor-append:focus
564+
> div.jsoneditor-icon {
553565
background-position: 0 0;
554566
}
555567
div.jsoneditor-contextmenu button.jsoneditor-insert > div.jsoneditor-icon {
556568
background-position: 0 -24px;
557569
}
558570
div.jsoneditor-contextmenu button.jsoneditor-insert:hover > div.jsoneditor-icon,
559-
div.jsoneditor-contextmenu button.jsoneditor-insert:focus > div.jsoneditor-icon {
571+
div.jsoneditor-contextmenu
572+
button.jsoneditor-insert:focus
573+
> div.jsoneditor-icon {
560574
background-position: 0 0;
561575
}
562576
div.jsoneditor-contextmenu button.jsoneditor-duplicate > div.jsoneditor-icon {
563577
background-position: -48px -24px;
564578
}
565-
div.jsoneditor-contextmenu button.jsoneditor-duplicate:hover > div.jsoneditor-icon,
566-
div.jsoneditor-contextmenu button.jsoneditor-duplicate:focus > div.jsoneditor-icon {
579+
div.jsoneditor-contextmenu
580+
button.jsoneditor-duplicate:hover
581+
> div.jsoneditor-icon,
582+
div.jsoneditor-contextmenu
583+
button.jsoneditor-duplicate:focus
584+
> div.jsoneditor-icon {
567585
background-position: -48px 0;
568586
}
569587
div.jsoneditor-contextmenu button.jsoneditor-sort-asc > div.jsoneditor-icon {
570588
background-position: -168px -24px;
571589
}
572-
div.jsoneditor-contextmenu button.jsoneditor-sort-asc:hover > div.jsoneditor-icon,
573-
div.jsoneditor-contextmenu button.jsoneditor-sort-asc:focus > div.jsoneditor-icon {
590+
div.jsoneditor-contextmenu
591+
button.jsoneditor-sort-asc:hover
592+
> div.jsoneditor-icon,
593+
div.jsoneditor-contextmenu
594+
button.jsoneditor-sort-asc:focus
595+
> div.jsoneditor-icon {
574596
background-position: -168px 0;
575597
}
576598
div.jsoneditor-contextmenu button.jsoneditor-sort-desc > div.jsoneditor-icon {
577599
background-position: -192px -24px;
578600
}
579-
div.jsoneditor-contextmenu button.jsoneditor-sort-desc:hover > div.jsoneditor-icon,
580-
div.jsoneditor-contextmenu button.jsoneditor-sort-desc:focus > div.jsoneditor-icon {
601+
div.jsoneditor-contextmenu
602+
button.jsoneditor-sort-desc:hover
603+
> div.jsoneditor-icon,
604+
div.jsoneditor-contextmenu
605+
button.jsoneditor-sort-desc:focus
606+
> div.jsoneditor-icon {
581607
background-position: -192px 0;
582608
}
583609

@@ -618,8 +644,12 @@ div.jsoneditor-contextmenu ul li ul li button:focus {
618644
div.jsoneditor-contextmenu button.jsoneditor-type-string > div.jsoneditor-icon {
619645
background-position: -144px -24px;
620646
}
621-
div.jsoneditor-contextmenu button.jsoneditor-type-string:hover > div.jsoneditor-icon,
622-
div.jsoneditor-contextmenu button.jsoneditor-type-string:focus > div.jsoneditor-icon,
647+
div.jsoneditor-contextmenu
648+
button.jsoneditor-type-string:hover
649+
> div.jsoneditor-icon,
650+
div.jsoneditor-contextmenu
651+
button.jsoneditor-type-string:focus
652+
> div.jsoneditor-icon,
623653
div.jsoneditor-contextmenu
624654
button.jsoneditor-type-string.jsoneditor-selected
625655
> div.jsoneditor-icon {
@@ -628,8 +658,12 @@ div.jsoneditor-contextmenu
628658
div.jsoneditor-contextmenu button.jsoneditor-type-auto > div.jsoneditor-icon {
629659
background-position: -120px -24px;
630660
}
631-
div.jsoneditor-contextmenu button.jsoneditor-type-auto:hover > div.jsoneditor-icon,
632-
div.jsoneditor-contextmenu button.jsoneditor-type-auto:focus > div.jsoneditor-icon,
661+
div.jsoneditor-contextmenu
662+
button.jsoneditor-type-auto:hover
663+
> div.jsoneditor-icon,
664+
div.jsoneditor-contextmenu
665+
button.jsoneditor-type-auto:focus
666+
> div.jsoneditor-icon,
633667
div.jsoneditor-contextmenu
634668
button.jsoneditor-type-auto.jsoneditor-selected
635669
> div.jsoneditor-icon {
@@ -638,8 +672,12 @@ div.jsoneditor-contextmenu
638672
div.jsoneditor-contextmenu button.jsoneditor-type-object > div.jsoneditor-icon {
639673
background-position: -72px -24px;
640674
}
641-
div.jsoneditor-contextmenu button.jsoneditor-type-object:hover > div.jsoneditor-icon,
642-
div.jsoneditor-contextmenu button.jsoneditor-type-object:focus > div.jsoneditor-icon,
675+
div.jsoneditor-contextmenu
676+
button.jsoneditor-type-object:hover
677+
> div.jsoneditor-icon,
678+
div.jsoneditor-contextmenu
679+
button.jsoneditor-type-object:focus
680+
> div.jsoneditor-icon,
643681
div.jsoneditor-contextmenu
644682
button.jsoneditor-type-object.jsoneditor-selected
645683
> div.jsoneditor-icon {
@@ -648,8 +686,12 @@ div.jsoneditor-contextmenu
648686
div.jsoneditor-contextmenu button.jsoneditor-type-array > div.jsoneditor-icon {
649687
background-position: -96px -24px;
650688
}
651-
div.jsoneditor-contextmenu button.jsoneditor-type-array:hover > div.jsoneditor-icon,
652-
div.jsoneditor-contextmenu button.jsoneditor-type-array:focus > div.jsoneditor-icon,
689+
div.jsoneditor-contextmenu
690+
button.jsoneditor-type-array:hover
691+
> div.jsoneditor-icon,
692+
div.jsoneditor-contextmenu
693+
button.jsoneditor-type-array:focus
694+
> div.jsoneditor-icon,
653695
div.jsoneditor-contextmenu
654696
button.jsoneditor-type-array.jsoneditor-selected
655697
> div.jsoneditor-icon {

openwisp_controller/config/static/config/css/lib/jsonschema-ui.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,9 +550,11 @@ div.jsoneditor > div > h3.controls {
550550
margin-top: 45px;
551551
margin-left: -2px;
552552
}
553-
.jsoneditor-wrapper div[data-schemapath^="root.radios"][data-schemapath$=".hwmode"] {
553+
.jsoneditor-wrapper
554+
div[data-schemapath^="root.radios"][data-schemapath$=".hwmode"] {
554555
display: none;
555556
}
556-
.jsoneditor-wrapper div[data-schemapath^="root.radios"][data-schemapath$=".band"] {
557+
.jsoneditor-wrapper
558+
div[data-schemapath^="root.radios"][data-schemapath$=".band"] {
557559
display: none;
558560
}

openwisp_controller/config/static/config/js/preview.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ django.jQuery(function ($) {
66
preview_url = $(".previewlink").attr("data-url");
77
var openPreview = function () {
88
var selectors = "input[type=text], input[type=hidden], select, textarea",
9-
fields = $(selectors, "#content-main form").not("#id_config_jsoneditor *"),
9+
fields = $(selectors, "#content-main form").not(
10+
"#id_config_jsoneditor *",
11+
),
1012
$id = $("#id_uuid"),
1113
data = {},
1214
loadingOverlay = $("#loading-overlay");

openwisp_controller/config/static/config/js/relevant_templates.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ django.jQuery(function ($) {
7979
// Handle cases where the AJAX request finishes after initial page load.
8080
// If we're editing an existing object and the initial value hasn't been set,
8181
// assign it now to avoid false positives in the unsaved changes warning.
82-
(!isAddingNewObject() && django._owcInitialValues[templateField] === undefined)
82+
(!isAddingNewObject() &&
83+
django._owcInitialValues[templateField] === undefined)
8384
) {
8485
django._owcInitialValues[templateField] = value;
8586
updateInitialValue = true;
@@ -216,10 +217,9 @@ django.jQuery(function ($) {
216217
}
217218
pageLoading = false;
218219
$("#content-main form").submit(function () {
219-
$('ul.sortedm2m-items:first input[type="checkbox"][data-required="true"]').prop(
220-
"checked",
221-
false,
222-
);
220+
$(
221+
'ul.sortedm2m-items:first input[type="checkbox"][data-required="true"]',
222+
).prop("checked", false);
223223
});
224224
};
225225
window.bindDefaultTemplateLoading = bindDefaultTemplateLoading;

openwisp_controller/config/static/config/js/switcher.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,19 @@ django.jQuery(function ($) {
2121
"the configuration of the server).",
2222
),
2323
p2 = gettext(
24-
"You can then tweak the VPN client " + "configuration in the next step.",
24+
"You can then tweak the VPN client " +
25+
"configuration in the next step.",
2526
);
26-
$(".jsoneditor-wrapper").hide().after('<div class="form-row autovpn"></div>');
27+
$(".jsoneditor-wrapper")
28+
.hide()
29+
.after('<div class="form-row autovpn"></div>');
2730
$(".autovpn").html(
28-
"<p><strong>" + p1 + "</strong></p>" + "<p><strong>" + p2 + "</strong></p>",
31+
"<p><strong>" +
32+
p1 +
33+
"</strong></p>" +
34+
"<p><strong>" +
35+
p2 +
36+
"</strong></p>",
2937
);
3038
}
3139
} else {

openwisp_controller/config/static/config/js/utils.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ getContext = function () {
1919
if (contextDiv && !contextDiv.querySelector("span")) {
2020
contextDiv.appendChild(span);
2121
}
22-
return document.querySelectorAll("#id_config-0-context, #id_default_values")[0];
22+
return document.querySelectorAll(
23+
"#id_config-0-context, #id_default_values",
24+
)[0];
2325
};
2426

2527
// check default_values is valid

0 commit comments

Comments
 (0)