From 58d97b5e271bc0d7507eab5b9bd2902181864e02 Mon Sep 17 00:00:00 2001 From: "Daniel F. Dickinson" Date: Fri, 3 Aug 2018 12:36:51 -0400 Subject: modules: Split luci-mod-full Move some common elements to luci-base, and otherwise make three packages out of status, system, and network. They were mostly separated already, but there were some shared elements between status and network that are now in luci-base. Signed-off-by: Daniel F. Dickinson --- .../luasrc/view/admin_network/diagnostics.htm | 117 ----------- .../view/admin_network/iface_overview_status.htm | 183 ----------------- .../luasrc/view/admin_network/iface_status.htm | 66 ------ .../luasrc/view/admin_network/lease_status.htm | 95 --------- .../luasrc/view/admin_network/switch_status.htm | 62 ------ .../luasrc/view/admin_network/wifi_assoclist.htm | 82 -------- .../luasrc/view/admin_network/wifi_join.htm | 224 --------------------- .../view/admin_network/wifi_overview_status.htm | 127 ------------ .../luasrc/view/admin_network/wifi_status.htm | 77 ------- 9 files changed, 1033 deletions(-) delete mode 100644 modules/luci-mod-admin-full/luasrc/view/admin_network/diagnostics.htm delete mode 100644 modules/luci-mod-admin-full/luasrc/view/admin_network/iface_overview_status.htm delete mode 100644 modules/luci-mod-admin-full/luasrc/view/admin_network/iface_status.htm delete mode 100644 modules/luci-mod-admin-full/luasrc/view/admin_network/lease_status.htm delete mode 100644 modules/luci-mod-admin-full/luasrc/view/admin_network/switch_status.htm delete mode 100644 modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_assoclist.htm delete mode 100644 modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_join.htm delete mode 100644 modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_overview_status.htm delete mode 100644 modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_status.htm (limited to 'modules/luci-mod-admin-full/luasrc/view/admin_network') diff --git a/modules/luci-mod-admin-full/luasrc/view/admin_network/diagnostics.htm b/modules/luci-mod-admin-full/luasrc/view/admin_network/diagnostics.htm deleted file mode 100644 index 03dd5aab29..0000000000 --- a/modules/luci-mod-admin-full/luasrc/view/admin_network/diagnostics.htm +++ /dev/null @@ -1,117 +0,0 @@ -<%# - Copyright 2010 Jo-Philipp Wich - Licensed to the public under the Apache License 2.0. --%> - -<%+header%> - -<% -local fs = require "nixio.fs" -local has_ping6 = fs.access("/bin/ping6") or fs.access("/usr/bin/ping6") -local has_traceroute6 = fs.access("/bin/traceroute6") or fs.access("/usr/bin/traceroute6") - -local dns_host = luci.config.diag and luci.config.diag.dns or "dev.openwrt.org" -local ping_host = luci.config.diag and luci.config.diag.ping or "dev.openwrt.org" -local route_host = luci.config.diag and luci.config.diag.route or "dev.openwrt.org" -%> - - - -
-
-

<%:Diagnostics%>

- -
- <%:Network Utilities%> - -
-
-
-
- <% if has_ping6 then %> - - - - - <% else %> - - <% end %> -
- -
-
- <% if has_traceroute6 then %> - - - - - <% else %> - - <% end %> - <% if not has_traceroute6 then %> -

 

-

<%:Install iputils-traceroute6 for IPv6 traceroute%>

- <% end %> -
- -
-
- -
-
-
-
-
- - -
- -<%+footer%> diff --git a/modules/luci-mod-admin-full/luasrc/view/admin_network/iface_overview_status.htm b/modules/luci-mod-admin-full/luasrc/view/admin_network/iface_overview_status.htm deleted file mode 100644 index 7427154a04..0000000000 --- a/modules/luci-mod-admin-full/luasrc/view/admin_network/iface_overview_status.htm +++ /dev/null @@ -1,183 +0,0 @@ -<%# - Copyright 2010-2018 Jo-Philipp Wich - Licensed to the public under the Apache License 2.0. --%> - - diff --git a/modules/luci-mod-admin-full/luasrc/view/admin_network/iface_status.htm b/modules/luci-mod-admin-full/luasrc/view/admin_network/iface_status.htm deleted file mode 100644 index 34be35dd20..0000000000 --- a/modules/luci-mod-admin-full/luasrc/view/admin_network/iface_status.htm +++ /dev/null @@ -1,66 +0,0 @@ -<%+cbi/valueheader%> - - - - - - - <%:Collecting data...%> - - - -<%+cbi/valuefooter%> diff --git a/modules/luci-mod-admin-full/luasrc/view/admin_network/lease_status.htm b/modules/luci-mod-admin-full/luasrc/view/admin_network/lease_status.htm deleted file mode 100644 index 8fbbdc9477..0000000000 --- a/modules/luci-mod-admin-full/luasrc/view/admin_network/lease_status.htm +++ /dev/null @@ -1,95 +0,0 @@ - - -
-

<%:Active DHCP Leases%>

-
-
-
<%:Hostname%>
-
<%:IPv4-Address%>
-
<%:MAC-Address%>
-
<%:Leasetime remaining%>
-
-
-
<%:Collecting data...%>
-
-
-
- - diff --git a/modules/luci-mod-admin-full/luasrc/view/admin_network/switch_status.htm b/modules/luci-mod-admin-full/luasrc/view/admin_network/switch_status.htm deleted file mode 100644 index 68f0bbc9d4..0000000000 --- a/modules/luci-mod-admin-full/luasrc/view/admin_network/switch_status.htm +++ /dev/null @@ -1,62 +0,0 @@ - diff --git a/modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_assoclist.htm b/modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_assoclist.htm deleted file mode 100644 index b6f84c0607..0000000000 --- a/modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_assoclist.htm +++ /dev/null @@ -1,82 +0,0 @@ - - -
-
-
<%:Network%>
-
<%:MAC-Address%>
-
<%:Host%>
-
<%:Signal%> / <%:Noise%>
-
<%:RX Rate%> / <%:TX Rate%>
-
-
-
<%:Collecting data...%>
-
-
diff --git a/modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_join.htm b/modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_join.htm deleted file mode 100644 index 987123642f..0000000000 --- a/modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_join.htm +++ /dev/null @@ -1,224 +0,0 @@ -<%# - Copyright 2009-2015 Jo-Philipp Wich - Licensed to the public under the Apache License 2.0. --%> - -<%- - - local sys = require "luci.sys" - local utl = require "luci.util" - - local dev = luci.http.formvalue("device") - local iw = luci.sys.wifi.getiwinfo(dev) - - if not iw then - luci.http.redirect(luci.dispatcher.build_url("admin/network/wireless")) - return - end --%> - -<%+header%> - - - -

<%:Join Network: Wireless Scan%>

- -
-
-
-
-
<%:Signal%>
-
<%:SSID%>
-
<%:Channel%>
-
<%:Mode%>
-
<%:BSSID%>
-
<%:Encryption%>
-
 
-
- -
-
- - <%:Collecting data...%> -
-
-
-
-
-
-
" method="get"> - -
-
- - - -
-
- -<%+footer%> diff --git a/modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_overview_status.htm b/modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_overview_status.htm deleted file mode 100644 index 9730bc2c92..0000000000 --- a/modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_overview_status.htm +++ /dev/null @@ -1,127 +0,0 @@ -<%# - Copyright 2008-2009 Steven Barth - Copyright 2008-2018 Jo-Philipp Wich - Licensed to the public under the Apache License 2.0. --%> - - diff --git a/modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_status.htm b/modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_status.htm deleted file mode 100644 index bfad3d0804..0000000000 --- a/modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_status.htm +++ /dev/null @@ -1,77 +0,0 @@ -<%+cbi/valueheader%> - - - - - -   - - - <%:Collecting data...%> - - - -<%+cbi/valuefooter%> -- cgit v1.2.3