From ae8bbb814f16c2dc2a82e88d408bee1812ceda9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mustafa=20Can=20Elmac=C4=B1?= Date: Sun, 17 Nov 2024 15:52:45 +0300 Subject: [PATCH] treewide: HTML Cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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ı --- .../view/admin_status/index/bmx7_nodes.htm | 6 +++--- .../usr/lib/lua/luci/view/bmx7/nodes_j.htm | 8 ++++---- .../usr/lib/lua/luci/view/bmx7/status_j.htm | 8 ++++---- .../usr/lib/lua/luci/view/bmx7/topology.htm | 4 ++-- .../usr/lib/lua/luci/view/bmx7/tunnels_j.htm | 8 ++++---- .../ucode/template/commands.ut | 4 ++-- .../luci-app-cshark/luasrc/view/cshark.htm | 4 ++-- .../luasrc/view/dockerman/apply_widget.htm | 6 +++--- .../luasrc/view/dockerman/container.htm | 2 +- .../view/dockerman/container_console.htm | 2 +- .../luasrc/view/dockerman/container_file.htm | 2 +- .../luasrc/view/dockerman/container_stats.htm | 4 ++-- .../luasrc/view/dockerman/images_import.htm | 2 +- .../luasrc/view/dockerman/images_load.htm | 2 +- .../view/dockerman/newcontainer_resolve.htm | 4 ++-- .../luasrc/view/telephony_status.htm | 4 ++-- applications/luci-app-lxc/luasrc/view/lxc.htm | 4 +--- .../luasrc/view/nft-qos/rate.htm | 4 ++-- .../luasrc/view/ocserv_status.htm | 4 ++-- .../root/usr/libexec/rpcd/olsrvizinfo | 2 +- .../luci-app-olsr/htdocs/cgi-bin-status.html | 5 ++--- .../view/openvpn/cbi-select-input-add.htm | 4 +--- .../luasrc/view/openvpn/ovpn_css.htm | 2 +- .../luasrc/view/privoxy/detail_logview.htm | 4 ++-- .../luasrc/view/privoxy/detail_startstop.htm | 4 ++-- .../luasrc/view/radicale/btn_startstop.htm | 4 ++-- .../luasrc/view/radicale/tabmap_nsections.htm | 2 +- .../luasrc/view/cbi/raduigo.htm | 2 +- .../htdocs/luci/splash/index.html | 5 ++--- .../luasrc/view/admin_status/splash.htm | 4 ++-- .../luasrc/view/unbound/css-editing.htm | 2 +- docs/LuCI-0.10.md | 2 +- docs/ThemesHowTo.md | 2 +- libs/luci-lib-nixio/axTLS/www/index.html | 20 +++++++------------ modules/luci-base/root/www/index.html | 7 +++---- modules/luci-base/ucode/template/error500.ut | 2 +- modules/luci-base/ucode/template/footer.ut | 4 ++-- modules/luci-base/ucode/template/header.ut | 6 +++--- modules/luci-base/ucode/template/sysauth.ut | 4 ++-- modules/luci-base/ucode/template/view.ut | 2 +- .../luci-compat/luasrc/view/cbi/delegator.htm | 2 +- .../luci-compat/luasrc/view/cbi/footer.htm | 2 +- .../luci-compat/luasrc/view/cbi/ipaddr.htm | 2 +- .../luasrc/view/cbi/simpleform.htm | 2 +- .../luasrc/view/cbi/wireless_modefreq.htm | 6 +++--- .../ucode/template/admin_status/index.ut | 6 +++--- .../ucode/template/themes/bootstrap/footer.ut | 2 +- .../ucode/template/themes/bootstrap/header.ut | 4 ++-- .../template/themes/bootstrap/sysauth.ut | 2 +- .../ucode/template/themes/material/footer.ut | 2 +- .../template/themes/openwrt2020/footer.ut | 2 +- .../template/themes/openwrt2020/header.ut | 9 ++++----- .../template/themes/openwrt.org/footer.ut | 2 +- .../template/themes/openwrt.org/header.ut | 13 ++++++------ 54 files changed, 106 insertions(+), 121 deletions(-) diff --git a/applications/luci-app-bmx7/root/usr/lib/lua/luci/view/admin_status/index/bmx7_nodes.htm b/applications/luci-app-bmx7/root/usr/lib/lua/luci/view/admin_status/index/bmx7_nodes.htm index 32a3a965ce..c8ddb2d8e8 100644 --- a/applications/luci-app-bmx7/root/usr/lib/lua/luci/view/admin_status/index/bmx7_nodes.htm +++ b/applications/luci-app-bmx7/root/usr/lib/lua/luci/view/admin_status/index/bmx7_nodes.htm @@ -18,8 +18,8 @@ - - + + diff --git a/applications/luci-app-bmx7/root/usr/lib/lua/luci/view/bmx7/nodes_j.htm b/applications/luci-app-bmx7/root/usr/lib/lua/luci/view/bmx7/nodes_j.htm index 16522b962c..bbbeb52c0e 100644 --- a/applications/luci-app-bmx7/root/usr/lib/lua/luci/view/bmx7/nodes_j.htm +++ b/applications/luci-app-bmx7/root/usr/lib/lua/luci/view/bmx7/nodes_j.htm @@ -22,8 +22,8 @@ -%> <%+header%> - - + + - + 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 @@
  • <%:Logs%>
  • - 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 @@ - + 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 @@ - +
    <%:Current Telephony State%> diff --git a/applications/luci-app-lxc/luasrc/view/lxc.htm b/applications/luci-app-lxc/luasrc/view/lxc.htm index 55cb23fbd6..69025ad6d3 100644 --- a/applications/luci-app-lxc/luasrc/view/lxc.htm +++ b/applications/luci-app-lxc/luasrc/view/lxc.htm @@ -64,8 +64,7 @@ local target = nx.uname().machine
    - diff --git a/applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm b/applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm index 5f9cb57d20..8874e37ca1 100644 --- a/applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm +++ b/applications/luci-app-nft-qos/luasrc/view/nft-qos/rate.htm @@ -5,7 +5,7 @@ <%+header%> - +

    <%:Realtime Rate%>

    diff --git a/applications/luci-app-ocserv/luasrc/view/ocserv_status.htm b/applications/luci-app-ocserv/luasrc/view/ocserv_status.htm index d00084a0bc..b6212ec2c1 100644 --- a/applications/luci-app-ocserv/luasrc/view/ocserv_status.htm +++ b/applications/luci-app-ocserv/luasrc/view/ocserv_status.htm @@ -1,4 +1,4 @@ - +
    <%:Active OpenConnect Users%> diff --git a/applications/luci-app-olsr-viz/root/usr/libexec/rpcd/olsrvizinfo b/applications/luci-app-olsr-viz/root/usr/libexec/rpcd/olsrvizinfo index 27c1f67af3..88ee5a85b4 100644 --- a/applications/luci-app-olsr-viz/root/usr/libexec/rpcd/olsrvizinfo +++ b/applications/luci-app-olsr-viz/root/usr/libexec/rpcd/olsrvizinfo @@ -14,7 +14,7 @@ call) jsonreq4=$( cat < + <%+openvpn/ovpn_css%> diff --git a/applications/luci-app-openvpn/luasrc/view/openvpn/ovpn_css.htm b/applications/luci-app-openvpn/luasrc/view/openvpn/ovpn_css.htm index 55c0a543fc..114fb87794 100644 --- a/applications/luci-app-openvpn/luasrc/view/openvpn/ovpn_css.htm +++ b/applications/luci-app-openvpn/luasrc/view/openvpn/ovpn_css.htm @@ -1,4 +1,4 @@ - diff --git a/themes/luci-theme-openwrt/ucode/template/themes/openwrt.org/footer.ut b/themes/luci-theme-openwrt/ucode/template/themes/openwrt.org/footer.ut index 1b6bfff5bb..12249ed75e 100644 --- a/themes/luci-theme-openwrt/ucode/template/themes/openwrt.org/footer.ut +++ b/themes/luci-theme-openwrt/ucode/template/themes/openwrt.org/footer.ut @@ -12,7 +12,7 @@ Powered by {{ version.luciname }} ({{ version.luciversion }})

    - + diff --git a/themes/luci-theme-openwrt/ucode/template/themes/openwrt.org/header.ut b/themes/luci-theme-openwrt/ucode/template/themes/openwrt.org/header.ut index 9f9e75d532..b7a6abae68 100644 --- a/themes/luci-theme-openwrt/ucode/template/themes/openwrt.org/header.ut +++ b/themes/luci-theme-openwrt/ucode/template/themes/openwrt.org/header.ut @@ -16,18 +16,17 @@ - + - - + {% if (node?.css): %} - + {% endif %} {% if (css): %} - + {% endif %} - - + + {{ striptags(`${boardinfo.hostname ?? '?'}${node ? ` - ${_(node.title)}` : ''}`) }} - LuCI