From 97ff4a156ff1aa6a4d2ab65ab13d12b4eb2651e2 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 15 Jul 2008 08:47:36 +0000 Subject: Split up admin-core into admin-core and admin-full, preparing admin-mini --- .../admin-full/luasrc/view/admin_index/index.htm | 24 ++++++ .../admin-full/luasrc/view/admin_network/index.htm | 22 ++++++ .../luasrc/view/admin_services/index.htm | 19 +++++ .../admin-full/luasrc/view/admin_status/index.htm | 19 +++++ .../admin-full/luasrc/view/admin_status/iwscan.htm | 52 +++++++++++++ .../admin-full/luasrc/view/admin_status/routes.htm | 42 ++++++++++ .../admin-full/luasrc/view/admin_status/syslog.htm | 19 +++++ .../admin-full/luasrc/view/admin_system/editor.htm | 28 +++++++ .../admin-full/luasrc/view/admin_system/index.htm | 20 +++++ .../admin-full/luasrc/view/admin_system/ipkg.htm | 40 ++++++++++ .../luasrc/view/admin_system/packages.htm | 91 ++++++++++++++++++++++ .../admin-full/luasrc/view/admin_system/passwd.htm | 49 ++++++++++++ .../admin-full/luasrc/view/admin_system/reboot.htm | 25 ++++++ .../luasrc/view/admin_system/sshkeys.htm | 39 ++++++++++ .../luasrc/view/admin_system/upgrade.htm | 47 +++++++++++ modules/admin-full/luasrc/view/admin_uci/apply.htm | 20 +++++ .../admin-full/luasrc/view/admin_uci/changes.htm | 25 ++++++ .../admin-full/luasrc/view/admin_uci/revert.htm | 19 +++++ .../admin-full/luasrc/view/admin_wifi/index.htm | 20 +++++ 19 files changed, 620 insertions(+) create mode 100644 modules/admin-full/luasrc/view/admin_index/index.htm create mode 100644 modules/admin-full/luasrc/view/admin_network/index.htm create mode 100644 modules/admin-full/luasrc/view/admin_services/index.htm create mode 100644 modules/admin-full/luasrc/view/admin_status/index.htm create mode 100644 modules/admin-full/luasrc/view/admin_status/iwscan.htm create mode 100644 modules/admin-full/luasrc/view/admin_status/routes.htm create mode 100644 modules/admin-full/luasrc/view/admin_status/syslog.htm create mode 100644 modules/admin-full/luasrc/view/admin_system/editor.htm create mode 100644 modules/admin-full/luasrc/view/admin_system/index.htm create mode 100644 modules/admin-full/luasrc/view/admin_system/ipkg.htm create mode 100644 modules/admin-full/luasrc/view/admin_system/packages.htm create mode 100644 modules/admin-full/luasrc/view/admin_system/passwd.htm create mode 100644 modules/admin-full/luasrc/view/admin_system/reboot.htm create mode 100644 modules/admin-full/luasrc/view/admin_system/sshkeys.htm create mode 100644 modules/admin-full/luasrc/view/admin_system/upgrade.htm create mode 100644 modules/admin-full/luasrc/view/admin_uci/apply.htm create mode 100644 modules/admin-full/luasrc/view/admin_uci/changes.htm create mode 100644 modules/admin-full/luasrc/view/admin_uci/revert.htm create mode 100644 modules/admin-full/luasrc/view/admin_wifi/index.htm (limited to 'modules/admin-full/luasrc/view') diff --git a/modules/admin-full/luasrc/view/admin_index/index.htm b/modules/admin-full/luasrc/view/admin_index/index.htm new file mode 100644 index 0000000000..4ea58c2b8a --- /dev/null +++ b/modules/admin-full/luasrc/view/admin_index/index.htm @@ -0,0 +1,24 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth +Copyright 2008 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+header%> +

<%:a_i_i_hello%>

+

<%:a_i_i_admin1%>

+

<%:a_i_i_admin2%>
+<%:a_i_i_admin3%>

+

<%:a_i_i_admin4%>

+

<%:a_i_i_admin5%>

+

<%:a_i_i_admin6%>

+

<%:a_i_i_team%>

+<%+footer%> \ No newline at end of file diff --git a/modules/admin-full/luasrc/view/admin_network/index.htm b/modules/admin-full/luasrc/view/admin_network/index.htm new file mode 100644 index 0000000000..dec286436c --- /dev/null +++ b/modules/admin-full/luasrc/view/admin_network/index.htm @@ -0,0 +1,22 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth +Copyright 2008 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+header%> +

<%:network%>

+

<%:a_network1%>

+

<%:a_network2%>

+

<%:a_network3%>

+

<%:a_network4%>

+

<%:a_network5%>

+<%+footer%> \ No newline at end of file diff --git a/modules/admin-full/luasrc/view/admin_services/index.htm b/modules/admin-full/luasrc/view/admin_services/index.htm new file mode 100644 index 0000000000..c0bd8b361f --- /dev/null +++ b/modules/admin-full/luasrc/view/admin_services/index.htm @@ -0,0 +1,19 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth +Copyright 2008 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+header%> +

<%:services%>

+

<%:a_srv_services1%>

+

<%:a_srv_services2%>

+<%+footer%> \ No newline at end of file diff --git a/modules/admin-full/luasrc/view/admin_status/index.htm b/modules/admin-full/luasrc/view/admin_status/index.htm new file mode 100644 index 0000000000..e1f4b0e53b --- /dev/null +++ b/modules/admin-full/luasrc/view/admin_status/index.htm @@ -0,0 +1,19 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth +Copyright 2008 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+header%> +

<%:status%>

+

<%:a_st_i_status1%>

+

<%:a_st_i_status2%>

+<%+footer%> \ No newline at end of file diff --git a/modules/admin-full/luasrc/view/admin_status/iwscan.htm b/modules/admin-full/luasrc/view/admin_status/iwscan.htm new file mode 100644 index 0000000000..cbba791e65 --- /dev/null +++ b/modules/admin-full/luasrc/view/admin_status/iwscan.htm @@ -0,0 +1,52 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth +Copyright 2008 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+header%> +

<%:iwscan%>

+

<%:iwscan1%>

+ +
+ + + + + + + + + + + + +<%for iface, cells in pairs(luci.sys.wifi.iwscan()) do + for i, cell in ipairs(cells) do +%> + + + + + + + + + + + +<% + end +end +%> +
<%:interface%>ESSIDBSSID<%:mode%><%:channel%><%:iwscan_encr%><%:iwscan_link%><%:iwscan_signal%><%:iwscan_noise%>
<%=iface%><%=cell.ESSID%><%=cell.Address%><%=cell.Mode%><%=(cell.Channel or cell.Frequency or "")%><%=cell["Encryption key"]%><%=cell.Quality%><%=cell["Signal level"]%><%=cell["Noise level"]%>
+
+<%+footer%> \ No newline at end of file diff --git a/modules/admin-full/luasrc/view/admin_status/routes.htm b/modules/admin-full/luasrc/view/admin_status/routes.htm new file mode 100644 index 0000000000..c4ebf347a8 --- /dev/null +++ b/modules/admin-full/luasrc/view/admin_status/routes.htm @@ -0,0 +1,42 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth +Copyright 2008 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+header%> +

<%:routes%>

+ +
+ + + + + + + + +<% +local routes = luci.sys.net.routes() + +for i, r in pairs(routes) do +%> + + + + + + + +<% end %> +
<%:target%><%:routes_netmask%><%:routes_gateway%><%:routes_metric%><%:interface%>
<%=luci.sys.net.hexip4(r.Destination)%><%=luci.sys.net.hexip4(r.Mask)%><%=luci.sys.net.hexip4(r.Gateway)%><%=r.Metric%><%=r.Iface%>
+
+<%+footer%> \ No newline at end of file diff --git a/modules/admin-full/luasrc/view/admin_status/syslog.htm b/modules/admin-full/luasrc/view/admin_status/syslog.htm new file mode 100644 index 0000000000..f3d1f0a963 --- /dev/null +++ b/modules/admin-full/luasrc/view/admin_status/syslog.htm @@ -0,0 +1,19 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth +Copyright 2008 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+header%> +

<%:status%>

+

<%:syslog%>

+<%=syslog%> +<%+footer%> \ No newline at end of file diff --git a/modules/admin-full/luasrc/view/admin_system/editor.htm b/modules/admin-full/luasrc/view/admin_system/editor.htm new file mode 100644 index 0000000000..bac1729d04 --- /dev/null +++ b/modules/admin-full/luasrc/view/admin_system/editor.htm @@ -0,0 +1,28 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth +Copyright 2008 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+header%> +

<%:texteditor%>

+
+
<%:file%>: +<% if msg then %><%:error%>: <%=msg%><% end %>
+
+
+
+
+ + +
+
+<%+footer%> \ No newline at end of file diff --git a/modules/admin-full/luasrc/view/admin_system/index.htm b/modules/admin-full/luasrc/view/admin_system/index.htm new file mode 100644 index 0000000000..3138903c48 --- /dev/null +++ b/modules/admin-full/luasrc/view/admin_system/index.htm @@ -0,0 +1,20 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth +Copyright 2008 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+header%> +

<%:system%>

+

<%:a_s_i_system1%>

+

<%:a_s_i_system2%>

+

<%:a_s_i_system3%>

+<%+footer%> \ No newline at end of file diff --git a/modules/admin-full/luasrc/view/admin_system/ipkg.htm b/modules/admin-full/luasrc/view/admin_system/ipkg.htm new file mode 100644 index 0000000000..0cd87d990b --- /dev/null +++ b/modules/admin-full/luasrc/view/admin_system/ipkg.htm @@ -0,0 +1,40 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth +Copyright 2008 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+header%> +

<%:system%>

+

<%:a_s_p_ipkg%>

+ +
+ +
<%:a_s_p_ipkg_pkglists%>:src Name URL
+
<%:a_s_p_ipkg_targets%>:dest Name Pfad
+ +
+ +
+
+
+
+ +
+
+
+
+ + +
+ <% if msg then %>
<%:error%>: <%=msg%>
<% end %> +
+<%+footer%> \ No newline at end of file diff --git a/modules/admin-full/luasrc/view/admin_system/packages.htm b/modules/admin-full/luasrc/view/admin_system/packages.htm new file mode 100644 index 0000000000..0f8f2c16eb --- /dev/null +++ b/modules/admin-full/luasrc/view/admin_system/packages.htm @@ -0,0 +1,91 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth +Copyright 2008 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+header%> +

<%:system%>

+

<%:a_s_packages%>

+ +
+ +<% if install or remove or update or upgrade then %> +
<%:status%>:
+<% if update then %> + <%:a_s_packages_update%>: <% if update == 0 then %><%:ok%><% else %><%:error%> (<%:code%> <%=update%>)<% end %>
+<% end %> +<% if upgrade then%> + <%:a_s_packages_upgrade%>: <% if upgrade == 0 then %><%:ok%><% else %><%:error%> (<%:code%> <%=upgrade%>)<% end %>
+<% end %> +<% if install then for k,v in pairs(install) do %> + <%:a_s_packages_install%> '<%=k%>': <% if v == 0 then %><%:ok%><% else %><%:error%> (<%:code%> <%=v%>)<% end %>
+<% end end %> +<% if remove then for k,v in pairs(remove) do %> + <%:a_s_packages_remove%> '<%=k%>': <% if v == 0 then %><%:ok%><% else %><%:error%> (<%:code%> <%=v%>)<% end %>
+<% end end %> +
+
+<% end %> + + + +
+
+ +
+
+ <%:a_s_packages_installurl%>:
+ + +
+ +
+
+ +
+ <%:filter%>: + + + +
+ +
+
+ +
+ + + + + + + + + <% for k, pkg in pairs(pkgs) do %> + + + + + + + + <% end %> +
<%:a_s_packages_name%><%:version%><%:install%><%:delete%><%:descr%>
<%=pkg.Package%><%=pkg.Version%><% if not pkg.Status or not pkg.Status.installed then %><% else %><%:installed%><% end %><% if pkg.Status and pkg.Status.installed then %><% else %><%:notinstalled%><% end %><%=pkg.Description%>
+
+
+ +
+<%+footer%> \ No newline at end of file diff --git a/modules/admin-full/luasrc/view/admin_system/passwd.htm b/modules/admin-full/luasrc/view/admin_system/passwd.htm new file mode 100644 index 0000000000..176abaea20 --- /dev/null +++ b/modules/admin-full/luasrc/view/admin_system/passwd.htm @@ -0,0 +1,49 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth +Copyright 2008 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+header%> +

<%:system%>

+

<%:a_s_changepw%>

+

<%:a_s_changepw1%>

+

+<% if stat then %> + <% if stat == 0 then %> + <%:a_s_changepw_changed%>! + <% elseif stat == 10 then %> + <%:a_s_changepw_nomatch%>! + <% else %> + <%:unknownerror%>! + <% end %> +<% end %> +<% if not stat or stat == 10 then %> +
+
+
+
<%:password%>
+
+
+
+
<%:confirmation%>
+
+
+
+
+ + +
+
+
+<% end %> +
+<%+footer%> \ No newline at end of file diff --git a/modules/admin-full/luasrc/view/admin_system/reboot.htm b/modules/admin-full/luasrc/view/admin_system/reboot.htm new file mode 100644 index 0000000000..3ddfa5880e --- /dev/null +++ b/modules/admin-full/luasrc/view/admin_system/reboot.htm @@ -0,0 +1,25 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth +Copyright 2008 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+header%> +

<%:system%>

+

<%:reboot%>

+

<%:a_s_reboot1%>

+<% if not reboot then %> +

<%:a_s_reboot_do%>

+<% else %> +

<%:a_s_reboot_running%>

+ +<% end %> +<%+footer%> \ No newline at end of file diff --git a/modules/admin-full/luasrc/view/admin_system/sshkeys.htm b/modules/admin-full/luasrc/view/admin_system/sshkeys.htm new file mode 100644 index 0000000000..9a08af9e3b --- /dev/null +++ b/modules/admin-full/luasrc/view/admin_system/sshkeys.htm @@ -0,0 +1,39 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth +Copyright 2008 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+header%> +

<%:system%>

+

<%:a_s_sshkeys%>

+ +
+ +
<%:a_s_sshkeys1%>
+ +
+ +
+
+
+
+ +
+
+
+
+ + +
+ <% if msg then %>
<%:error%>: <%=msg%>
<% end %> +
+<%+footer%> \ No newline at end of file diff --git a/modules/admin-full/luasrc/view/admin_system/upgrade.htm b/modules/admin-full/luasrc/view/admin_system/upgrade.htm new file mode 100644 index 0000000000..16ba50cd98 --- /dev/null +++ b/modules/admin-full/luasrc/view/admin_system/upgrade.htm @@ -0,0 +1,47 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth +Copyright 2008 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+header%> +

<%:system%>

+

<%:a_s_flash%>

+

<%:a_s_flash_upgrade1%>

+
+<% if sysupgrade and not ret then %> +
" enctype="multipart/form-data"> +
+
+
<%:a_s_flash_fwimage%>
+
+
+
+
+ + <%:a_s_flash_keepcfg%> +
+
+
+ +
+
+
+<% elseif ret then %> + <% if ret == 0 then %> +
<%:a_s_flash_flashed%>
+ <% else %> +
<%:a_s_flash_flasherr%>! (<%:code%> <%=ret%>)
+ <% end %> +<% else %> +
<%:a_s_flash_notimplemented%>
+<% end %> +<%+footer%> \ No newline at end of file diff --git a/modules/admin-full/luasrc/view/admin_uci/apply.htm b/modules/admin-full/luasrc/view/admin_uci/apply.htm new file mode 100644 index 0000000000..e280947282 --- /dev/null +++ b/modules/admin-full/luasrc/view/admin_uci/apply.htm @@ -0,0 +1,20 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth +Copyright 2008 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+header%> +

<%:config%>

+

<%:uci_applied%>:

+<%=(changes or "-")%> +<%=output%> +<%+footer%> \ No newline at end of file diff --git a/modules/admin-full/luasrc/view/admin_uci/changes.htm b/modules/admin-full/luasrc/view/admin_uci/changes.htm new file mode 100644 index 0000000000..f2a88602ad --- /dev/null +++ b/modules/admin-full/luasrc/view/admin_uci/changes.htm @@ -0,0 +1,25 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth +Copyright 2008 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+header%> +

<%:config%>

+

<%:changes%>

+<%=changes%> +
+ +
+
+ +
+<%+footer%> \ No newline at end of file diff --git a/modules/admin-full/luasrc/view/admin_uci/revert.htm b/modules/admin-full/luasrc/view/admin_uci/revert.htm new file mode 100644 index 0000000000..7f98a0435b --- /dev/null +++ b/modules/admin-full/luasrc/view/admin_uci/revert.htm @@ -0,0 +1,19 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth +Copyright 2008 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+header%> +

<%:config%>

+

<%:uci_reverted%>:

+<%=(changes or "-")%> +<%+footer%> \ No newline at end of file diff --git a/modules/admin-full/luasrc/view/admin_wifi/index.htm b/modules/admin-full/luasrc/view/admin_wifi/index.htm new file mode 100644 index 0000000000..58281d14f9 --- /dev/null +++ b/modules/admin-full/luasrc/view/admin_wifi/index.htm @@ -0,0 +1,20 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth +Copyright 2008 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+header%> +

<%:wifi%>

+

<%:a_w_wifi1%>

+

<%:a_w_wifi2%>

+

<%:a_w_wifi3%>

+<%+footer%> \ No newline at end of file -- cgit v1.2.3