summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-dockerman/luasrc
diff options
context:
space:
mode:
authorMustafa Can Elmacı <mustafacan@elmaci.net>2024-11-17 15:52:45 +0300
committerPaul Donald <newtwen+github@gmail.com>2024-11-22 22:39:46 +0100
commitae8bbb814f16c2dc2a82e88d408bee1812ceda9c (patch)
treeb48de027e4f3d6a366ef60025b980bc83ee5ae90 /applications/luci-app-dockerman/luasrc
parentaa955d6465b4d0f00cc713904e2de7bfb0cbd062 (diff)
treewide: HTML Cleanup
* HTML Cleanup: Meta tags. * Converted charset to shorthand. * Removed meta tags with `Content-Script-Type` attribute. (Invalid in HTML5 spec.) * HTML Cleanup: CSS tags. * Removed `type` attribute with CSS files from link tags. (HTML5 spec recommends omitting it.) * Removed `type` attribute from style tags. (Deprecated in HTML5 spec.) https://html.spec.whatwg.org/#attr-link-type https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style * HTML Cleanup: Convert from XHTML to HTML5 * Removed XML declaration. * Removed XML namespace. * Changed doctype to HTML5. * HTML Cleanup: CDATA tags. * CDATA sections should not be used within HTML they are considered as comments and not displayed. https://developer.mozilla.org/en-US/docs/Web/API/CDATASection * HTML Cleanup: Script tags. * Removed `language` attribute from script tags. (No longer valid in HTML5) * Removed `type` attribute with JavaScript MIME type from script tags. (HTML5 spec recommends omitting it.) https://html.spec.whatwg.org/multipage/scripting.html#attr-script-type https://mimesniff.spec.whatwg.org/#javascript-mime-type Signed-off-by: Mustafa Can Elmacı <mustafacan@elmaci.net>
Diffstat (limited to 'applications/luci-app-dockerman/luasrc')
-rw-r--r--applications/luci-app-dockerman/luasrc/view/dockerman/apply_widget.htm6
-rw-r--r--applications/luci-app-dockerman/luasrc/view/dockerman/container.htm2
-rw-r--r--applications/luci-app-dockerman/luasrc/view/dockerman/container_console.htm2
-rw-r--r--applications/luci-app-dockerman/luasrc/view/dockerman/container_file.htm2
-rw-r--r--applications/luci-app-dockerman/luasrc/view/dockerman/container_stats.htm4
-rw-r--r--applications/luci-app-dockerman/luasrc/view/dockerman/images_import.htm2
-rw-r--r--applications/luci-app-dockerman/luasrc/view/dockerman/images_load.htm2
-rw-r--r--applications/luci-app-dockerman/luasrc/view/dockerman/newcontainer_resolve.htm4
8 files changed, 12 insertions, 12 deletions
diff --git a/applications/luci-app-dockerman/luasrc/view/dockerman/apply_widget.htm b/applications/luci-app-dockerman/luasrc/view/dockerman/apply_widget.htm
index 59a3da9db2..e0aa3aae8f 100644
--- a/applications/luci-app-dockerman/luasrc/view/dockerman/apply_widget.htm
+++ b/applications/luci-app-dockerman/luasrc/view/dockerman/apply_widget.htm
@@ -1,4 +1,4 @@
-<style type="text/css">
+<style>
#docker_apply_overlay {
position: absolute;
top: 0;
@@ -42,7 +42,7 @@
}
</style>
-<script type="text/javascript">//<![CDATA[
+<script>
var xhr = new XHR(),
uci_apply_rollback = <%=math.max(luci.config and luci.config.apply and luci.config.apply.rollback or 90, 90)%>,
uci_apply_holdoff = <%=math.max(luci.config and luci.config.apply and luci.config.apply.holdoff or 4, 1)%>,
@@ -144,4 +144,4 @@
});
}
-//]]></script>
+</script>
diff --git a/applications/luci-app-dockerman/luasrc/view/dockerman/container.htm b/applications/luci-app-dockerman/luasrc/view/dockerman/container.htm
index 3684b64473..f9b2f4344a 100644
--- a/applications/luci-app-dockerman/luasrc/view/dockerman/container.htm
+++ b/applications/luci-app-dockerman/luasrc/view/dockerman/container.htm
@@ -9,7 +9,7 @@
<li id="cbi-tab-container_logs"><a id="a-cbi-tab-container_logs" href=""><%:Logs%></a></li>
</ul>
-<script type="text/javascript">
+<script>
let re = /\/admin\/docker\/container\//
let p = window.location.href
let path = p.split(re)
diff --git a/applications/luci-app-dockerman/luasrc/view/dockerman/container_console.htm b/applications/luci-app-dockerman/luasrc/view/dockerman/container_console.htm
index 7f626b3dc8..030acf74d1 100644
--- a/applications/luci-app-dockerman/luasrc/view/dockerman/container_console.htm
+++ b/applications/luci-app-dockerman/luasrc/view/dockerman/container_console.htm
@@ -1,6 +1,6 @@
<div class="cbi-map">
<iframe id="terminal" style="width: 100%; min-height: 500px; border: none; border-radius: 3px;"></iframe>
</div>
-<script type="text/javascript">
+<script>
document.getElementById("terminal").src = "http://" + window.location.hostname + ":7682";
</script>
diff --git a/applications/luci-app-dockerman/luasrc/view/dockerman/container_file.htm b/applications/luci-app-dockerman/luasrc/view/dockerman/container_file.htm
index 46d4278cf7..53f2c84f66 100644
--- a/applications/luci-app-dockerman/luasrc/view/dockerman/container_file.htm
+++ b/applications/luci-app-dockerman/luasrc/view/dockerman/container_file.htm
@@ -15,7 +15,7 @@
</div>
</div>
-<script type="text/javascript">
+<script>
let btnUpload = document.getElementById('upload')
btnUpload.onclick = function (e) {
let uploadArchive = document.getElementById('upload_archive')
diff --git a/applications/luci-app-dockerman/luasrc/view/dockerman/container_stats.htm b/applications/luci-app-dockerman/luasrc/view/dockerman/container_stats.htm
index bbcd633e7d..28eaadab44 100644
--- a/applications/luci-app-dockerman/luasrc/view/dockerman/container_stats.htm
+++ b/applications/luci-app-dockerman/luasrc/view/dockerman/container_stats.htm
@@ -1,4 +1,4 @@
-<script type="text/javascript">//<![CDATA[
+<script>
let last_bw_tx
let last_bw_rx
let interval = 3
@@ -78,4 +78,4 @@
}
});
-//]]></script>
+</script>
diff --git a/applications/luci-app-dockerman/luasrc/view/dockerman/images_import.htm b/applications/luci-app-dockerman/luasrc/view/dockerman/images_import.htm
index b87759d00f..8c27eadb69 100644
--- a/applications/luci-app-dockerman/luasrc/view/dockerman/images_import.htm
+++ b/applications/luci-app-dockerman/luasrc/view/dockerman/images_import.htm
@@ -5,7 +5,7 @@
<input type="file" id="file_import" style="visibility:hidden; position: absolute;top: 0px; left: 0px;" />
</div>
-<script type="text/javascript">
+<script>
let btnImport = document.getElementById('btnimport')
let valISrc = document.getElementById('isrc')
let valITag = document.getElementById('itag')
diff --git a/applications/luci-app-dockerman/luasrc/view/dockerman/images_load.htm b/applications/luci-app-dockerman/luasrc/view/dockerman/images_load.htm
index 9a90a90f03..1beb784cda 100644
--- a/applications/luci-app-dockerman/luasrc/view/dockerman/images_load.htm
+++ b/applications/luci-app-dockerman/luasrc/view/dockerman/images_load.htm
@@ -2,7 +2,7 @@
<input type="button"" class="btn cbi-button cbi-button-add" id="btnload" name="load" value="<%:Load%>" />
<input type="file" id="file_load" style="visibility:hidden; position: absolute;top: 0px; left: 0px;" accept="application/x-tar" />
</div>
-<script type="text/javascript">
+<script>
let btnLoad = document.getElementById('btnload')
btnLoad.onclick = function (e) {
document.getElementById("file_load").click()
diff --git a/applications/luci-app-dockerman/luasrc/view/dockerman/newcontainer_resolve.htm b/applications/luci-app-dockerman/luasrc/view/dockerman/newcontainer_resolve.htm
index c5966835fe..abf9442e79 100644
--- a/applications/luci-app-dockerman/luasrc/view/dockerman/newcontainer_resolve.htm
+++ b/applications/luci-app-dockerman/luasrc/view/dockerman/newcontainer_resolve.htm
@@ -1,4 +1,4 @@
-<style type="text/css">
+<style>
#dialog_reslov {
position: absolute;
top: 0;
@@ -50,7 +50,7 @@
}
</style>
-<script type="text/javascript">
+<script>
function close_reslov_dialog() {
document.body.classList.remove('dialog-reslov-active')
document.documentElement.style.overflowY = 'scroll'