summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-07-15 08:47:36 +0000
committerSteven Barth <steven@midlink.org>2008-07-15 08:47:36 +0000
commit97ff4a156ff1aa6a4d2ab65ab13d12b4eb2651e2 (patch)
tree7b95d899c2cfc0bb95fc2ee149dec3ea3b4e0742 /modules
parent4d7c453ea83c749b05d6271a3bdc0c0c057150ed (diff)
Split up admin-core into admin-core and admin-full, preparing admin-mini
Diffstat (limited to 'modules')
-rw-r--r--modules/admin-full/Makefile2
-rw-r--r--modules/admin-full/luasrc/controller/admin/index.lua (renamed from modules/admin-core/luasrc/controller/admin/index.lua)0
-rw-r--r--modules/admin-full/luasrc/controller/admin/network.lua (renamed from modules/admin-core/luasrc/controller/admin/network.lua)0
-rw-r--r--modules/admin-full/luasrc/controller/admin/services.lua (renamed from modules/admin-core/luasrc/controller/admin/services.lua)0
-rw-r--r--modules/admin-full/luasrc/controller/admin/status.lua (renamed from modules/admin-core/luasrc/controller/admin/status.lua)0
-rw-r--r--modules/admin-full/luasrc/controller/admin/system.lua (renamed from modules/admin-core/luasrc/controller/admin/system.lua)0
-rw-r--r--modules/admin-full/luasrc/controller/admin/uci.lua (renamed from modules/admin-core/luasrc/controller/admin/uci.lua)0
-rw-r--r--modules/admin-full/luasrc/controller/admin/wifi.lua (renamed from modules/admin-core/luasrc/controller/admin/wifi.lua)0
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_index/luci.lua (renamed from modules/admin-core/luasrc/model/cbi/admin_index/luci.lua)0
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua (renamed from modules/admin-core/luasrc/model/cbi/admin_network/dhcp.lua)0
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua (renamed from modules/admin-core/luasrc/model/cbi/admin_network/ifaces.lua)0
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/ptp.lua (renamed from modules/admin-core/luasrc/model/cbi/admin_network/ptp.lua)0
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/routes.lua (renamed from modules/admin-core/luasrc/model/cbi/admin_network/routes.lua)0
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua (renamed from modules/admin-core/luasrc/model/cbi/admin_network/vlan.lua)0
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_services/dnsmasq.lua (renamed from modules/admin-core/luasrc/model/cbi/admin_services/dnsmasq.lua)0
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_services/dropbear.lua (renamed from modules/admin-core/luasrc/model/cbi/admin_services/dropbear.lua)0
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_services/httpd.lua (renamed from modules/admin-core/luasrc/model/cbi/admin_services/httpd.lua)0
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua (renamed from modules/admin-core/luasrc/model/cbi/admin_system/fstab.lua)0
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_system/system.lua (renamed from modules/admin-core/luasrc/model/cbi/admin_system/system.lua)0
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_wifi/devices.lua (renamed from modules/admin-core/luasrc/model/cbi/admin_wifi/devices.lua)0
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_wifi/networks.lua (renamed from modules/admin-core/luasrc/model/cbi/admin_wifi/networks.lua)0
-rw-r--r--modules/admin-full/luasrc/view/admin_index/index.htm (renamed from modules/admin-core/luasrc/view/admin_index/index.htm)0
-rw-r--r--modules/admin-full/luasrc/view/admin_network/index.htm (renamed from modules/admin-core/luasrc/view/admin_network/index.htm)0
-rw-r--r--modules/admin-full/luasrc/view/admin_services/index.htm (renamed from modules/admin-core/luasrc/view/admin_services/index.htm)0
-rw-r--r--modules/admin-full/luasrc/view/admin_status/index.htm (renamed from modules/admin-core/luasrc/view/admin_status/index.htm)0
-rw-r--r--modules/admin-full/luasrc/view/admin_status/iwscan.htm (renamed from modules/admin-core/luasrc/view/admin_status/iwscan.htm)0
-rw-r--r--modules/admin-full/luasrc/view/admin_status/routes.htm (renamed from modules/admin-core/luasrc/view/admin_status/routes.htm)0
-rw-r--r--modules/admin-full/luasrc/view/admin_status/syslog.htm (renamed from modules/admin-core/luasrc/view/admin_status/syslog.htm)0
-rw-r--r--modules/admin-full/luasrc/view/admin_system/editor.htm (renamed from modules/admin-core/luasrc/view/admin_system/editor.htm)0
-rw-r--r--modules/admin-full/luasrc/view/admin_system/index.htm (renamed from modules/admin-core/luasrc/view/admin_system/index.htm)0
-rw-r--r--modules/admin-full/luasrc/view/admin_system/ipkg.htm (renamed from modules/admin-core/luasrc/view/admin_system/ipkg.htm)0
-rw-r--r--modules/admin-full/luasrc/view/admin_system/packages.htm (renamed from modules/admin-core/luasrc/view/admin_system/packages.htm)0
-rw-r--r--modules/admin-full/luasrc/view/admin_system/passwd.htm (renamed from modules/admin-core/luasrc/view/admin_system/passwd.htm)0
-rw-r--r--modules/admin-full/luasrc/view/admin_system/reboot.htm (renamed from modules/admin-core/luasrc/view/admin_system/reboot.htm)0
-rw-r--r--modules/admin-full/luasrc/view/admin_system/sshkeys.htm (renamed from modules/admin-core/luasrc/view/admin_system/sshkeys.htm)0
-rw-r--r--modules/admin-full/luasrc/view/admin_system/upgrade.htm (renamed from modules/admin-core/luasrc/view/admin_system/upgrade.htm)0
-rw-r--r--modules/admin-full/luasrc/view/admin_uci/apply.htm (renamed from modules/admin-core/luasrc/view/admin_uci/apply.htm)0
-rw-r--r--modules/admin-full/luasrc/view/admin_uci/changes.htm (renamed from modules/admin-core/luasrc/view/admin_uci/changes.htm)0
-rw-r--r--modules/admin-full/luasrc/view/admin_uci/revert.htm (renamed from modules/admin-core/luasrc/view/admin_uci/revert.htm)0
-rw-r--r--modules/admin-full/luasrc/view/admin_wifi/index.htm (renamed from modules/admin-core/luasrc/view/admin_wifi/index.htm)0
-rw-r--r--modules/admin-mini/Makefile2
-rw-r--r--modules/admin-mini/luasrc/controller/index.lua49
42 files changed, 53 insertions, 0 deletions
diff --git a/modules/admin-full/Makefile b/modules/admin-full/Makefile
new file mode 100644
index 000000000..81a96f6a8
--- /dev/null
+++ b/modules/admin-full/Makefile
@@ -0,0 +1,2 @@
+include ../../build/config.mk
+include ../../build/module.mk \ No newline at end of file
diff --git a/modules/admin-core/luasrc/controller/admin/index.lua b/modules/admin-full/luasrc/controller/admin/index.lua
index eb58e0042..eb58e0042 100644
--- a/modules/admin-core/luasrc/controller/admin/index.lua
+++ b/modules/admin-full/luasrc/controller/admin/index.lua
diff --git a/modules/admin-core/luasrc/controller/admin/network.lua b/modules/admin-full/luasrc/controller/admin/network.lua
index 871263334..871263334 100644
--- a/modules/admin-core/luasrc/controller/admin/network.lua
+++ b/modules/admin-full/luasrc/controller/admin/network.lua
diff --git a/modules/admin-core/luasrc/controller/admin/services.lua b/modules/admin-full/luasrc/controller/admin/services.lua
index 59defbbbd..59defbbbd 100644
--- a/modules/admin-core/luasrc/controller/admin/services.lua
+++ b/modules/admin-full/luasrc/controller/admin/services.lua
diff --git a/modules/admin-core/luasrc/controller/admin/status.lua b/modules/admin-full/luasrc/controller/admin/status.lua
index 3a0f04074..3a0f04074 100644
--- a/modules/admin-core/luasrc/controller/admin/status.lua
+++ b/modules/admin-full/luasrc/controller/admin/status.lua
diff --git a/modules/admin-core/luasrc/controller/admin/system.lua b/modules/admin-full/luasrc/controller/admin/system.lua
index 862a741cd..862a741cd 100644
--- a/modules/admin-core/luasrc/controller/admin/system.lua
+++ b/modules/admin-full/luasrc/controller/admin/system.lua
diff --git a/modules/admin-core/luasrc/controller/admin/uci.lua b/modules/admin-full/luasrc/controller/admin/uci.lua
index 215a13a34..215a13a34 100644
--- a/modules/admin-core/luasrc/controller/admin/uci.lua
+++ b/modules/admin-full/luasrc/controller/admin/uci.lua
diff --git a/modules/admin-core/luasrc/controller/admin/wifi.lua b/modules/admin-full/luasrc/controller/admin/wifi.lua
index 4bef0b7a5..4bef0b7a5 100644
--- a/modules/admin-core/luasrc/controller/admin/wifi.lua
+++ b/modules/admin-full/luasrc/controller/admin/wifi.lua
diff --git a/modules/admin-core/luasrc/model/cbi/admin_index/luci.lua b/modules/admin-full/luasrc/model/cbi/admin_index/luci.lua
index 3fdccbf80..3fdccbf80 100644
--- a/modules/admin-core/luasrc/model/cbi/admin_index/luci.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_index/luci.lua
diff --git a/modules/admin-core/luasrc/model/cbi/admin_network/dhcp.lua b/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua
index b22f7354a..b22f7354a 100644
--- a/modules/admin-core/luasrc/model/cbi/admin_network/dhcp.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/dhcp.lua
diff --git a/modules/admin-core/luasrc/model/cbi/admin_network/ifaces.lua b/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua
index 2851f3ad5..2851f3ad5 100644
--- a/modules/admin-core/luasrc/model/cbi/admin_network/ifaces.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua
diff --git a/modules/admin-core/luasrc/model/cbi/admin_network/ptp.lua b/modules/admin-full/luasrc/model/cbi/admin_network/ptp.lua
index 565edb7fd..565edb7fd 100644
--- a/modules/admin-core/luasrc/model/cbi/admin_network/ptp.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/ptp.lua
diff --git a/modules/admin-core/luasrc/model/cbi/admin_network/routes.lua b/modules/admin-full/luasrc/model/cbi/admin_network/routes.lua
index 15f994c16..15f994c16 100644
--- a/modules/admin-core/luasrc/model/cbi/admin_network/routes.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/routes.lua
diff --git a/modules/admin-core/luasrc/model/cbi/admin_network/vlan.lua b/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua
index 8cae7f94b..8cae7f94b 100644
--- a/modules/admin-core/luasrc/model/cbi/admin_network/vlan.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua
diff --git a/modules/admin-core/luasrc/model/cbi/admin_services/dnsmasq.lua b/modules/admin-full/luasrc/model/cbi/admin_services/dnsmasq.lua
index e85306471..e85306471 100644
--- a/modules/admin-core/luasrc/model/cbi/admin_services/dnsmasq.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_services/dnsmasq.lua
diff --git a/modules/admin-core/luasrc/model/cbi/admin_services/dropbear.lua b/modules/admin-full/luasrc/model/cbi/admin_services/dropbear.lua
index a8ce2694a..a8ce2694a 100644
--- a/modules/admin-core/luasrc/model/cbi/admin_services/dropbear.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_services/dropbear.lua
diff --git a/modules/admin-core/luasrc/model/cbi/admin_services/httpd.lua b/modules/admin-full/luasrc/model/cbi/admin_services/httpd.lua
index 44beb9c9e..44beb9c9e 100644
--- a/modules/admin-core/luasrc/model/cbi/admin_services/httpd.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_services/httpd.lua
diff --git a/modules/admin-core/luasrc/model/cbi/admin_system/fstab.lua b/modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua
index be2562ca0..be2562ca0 100644
--- a/modules/admin-core/luasrc/model/cbi/admin_system/fstab.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua
diff --git a/modules/admin-core/luasrc/model/cbi/admin_system/system.lua b/modules/admin-full/luasrc/model/cbi/admin_system/system.lua
index dd59d8c01..dd59d8c01 100644
--- a/modules/admin-core/luasrc/model/cbi/admin_system/system.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_system/system.lua
diff --git a/modules/admin-core/luasrc/model/cbi/admin_wifi/devices.lua b/modules/admin-full/luasrc/model/cbi/admin_wifi/devices.lua
index b4e0e2915..b4e0e2915 100644
--- a/modules/admin-core/luasrc/model/cbi/admin_wifi/devices.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_wifi/devices.lua
diff --git a/modules/admin-core/luasrc/model/cbi/admin_wifi/networks.lua b/modules/admin-full/luasrc/model/cbi/admin_wifi/networks.lua
index f0379b370..f0379b370 100644
--- a/modules/admin-core/luasrc/model/cbi/admin_wifi/networks.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_wifi/networks.lua
diff --git a/modules/admin-core/luasrc/view/admin_index/index.htm b/modules/admin-full/luasrc/view/admin_index/index.htm
index 4ea58c2b8..4ea58c2b8 100644
--- a/modules/admin-core/luasrc/view/admin_index/index.htm
+++ b/modules/admin-full/luasrc/view/admin_index/index.htm
diff --git a/modules/admin-core/luasrc/view/admin_network/index.htm b/modules/admin-full/luasrc/view/admin_network/index.htm
index dec286436..dec286436 100644
--- a/modules/admin-core/luasrc/view/admin_network/index.htm
+++ b/modules/admin-full/luasrc/view/admin_network/index.htm
diff --git a/modules/admin-core/luasrc/view/admin_services/index.htm b/modules/admin-full/luasrc/view/admin_services/index.htm
index c0bd8b361..c0bd8b361 100644
--- a/modules/admin-core/luasrc/view/admin_services/index.htm
+++ b/modules/admin-full/luasrc/view/admin_services/index.htm
diff --git a/modules/admin-core/luasrc/view/admin_status/index.htm b/modules/admin-full/luasrc/view/admin_status/index.htm
index e1f4b0e53..e1f4b0e53 100644
--- a/modules/admin-core/luasrc/view/admin_status/index.htm
+++ b/modules/admin-full/luasrc/view/admin_status/index.htm
diff --git a/modules/admin-core/luasrc/view/admin_status/iwscan.htm b/modules/admin-full/luasrc/view/admin_status/iwscan.htm
index cbba791e6..cbba791e6 100644
--- a/modules/admin-core/luasrc/view/admin_status/iwscan.htm
+++ b/modules/admin-full/luasrc/view/admin_status/iwscan.htm
diff --git a/modules/admin-core/luasrc/view/admin_status/routes.htm b/modules/admin-full/luasrc/view/admin_status/routes.htm
index c4ebf347a..c4ebf347a 100644
--- a/modules/admin-core/luasrc/view/admin_status/routes.htm
+++ b/modules/admin-full/luasrc/view/admin_status/routes.htm
diff --git a/modules/admin-core/luasrc/view/admin_status/syslog.htm b/modules/admin-full/luasrc/view/admin_status/syslog.htm
index f3d1f0a96..f3d1f0a96 100644
--- a/modules/admin-core/luasrc/view/admin_status/syslog.htm
+++ b/modules/admin-full/luasrc/view/admin_status/syslog.htm
diff --git a/modules/admin-core/luasrc/view/admin_system/editor.htm b/modules/admin-full/luasrc/view/admin_system/editor.htm
index bac1729d0..bac1729d0 100644
--- a/modules/admin-core/luasrc/view/admin_system/editor.htm
+++ b/modules/admin-full/luasrc/view/admin_system/editor.htm
diff --git a/modules/admin-core/luasrc/view/admin_system/index.htm b/modules/admin-full/luasrc/view/admin_system/index.htm
index 3138903c4..3138903c4 100644
--- a/modules/admin-core/luasrc/view/admin_system/index.htm
+++ b/modules/admin-full/luasrc/view/admin_system/index.htm
diff --git a/modules/admin-core/luasrc/view/admin_system/ipkg.htm b/modules/admin-full/luasrc/view/admin_system/ipkg.htm
index 0cd87d990..0cd87d990 100644
--- a/modules/admin-core/luasrc/view/admin_system/ipkg.htm
+++ b/modules/admin-full/luasrc/view/admin_system/ipkg.htm
diff --git a/modules/admin-core/luasrc/view/admin_system/packages.htm b/modules/admin-full/luasrc/view/admin_system/packages.htm
index 0f8f2c16e..0f8f2c16e 100644
--- a/modules/admin-core/luasrc/view/admin_system/packages.htm
+++ b/modules/admin-full/luasrc/view/admin_system/packages.htm
diff --git a/modules/admin-core/luasrc/view/admin_system/passwd.htm b/modules/admin-full/luasrc/view/admin_system/passwd.htm
index 176abaea2..176abaea2 100644
--- a/modules/admin-core/luasrc/view/admin_system/passwd.htm
+++ b/modules/admin-full/luasrc/view/admin_system/passwd.htm
diff --git a/modules/admin-core/luasrc/view/admin_system/reboot.htm b/modules/admin-full/luasrc/view/admin_system/reboot.htm
index 3ddfa5880..3ddfa5880 100644
--- a/modules/admin-core/luasrc/view/admin_system/reboot.htm
+++ b/modules/admin-full/luasrc/view/admin_system/reboot.htm
diff --git a/modules/admin-core/luasrc/view/admin_system/sshkeys.htm b/modules/admin-full/luasrc/view/admin_system/sshkeys.htm
index 9a08af9e3..9a08af9e3 100644
--- a/modules/admin-core/luasrc/view/admin_system/sshkeys.htm
+++ b/modules/admin-full/luasrc/view/admin_system/sshkeys.htm
diff --git a/modules/admin-core/luasrc/view/admin_system/upgrade.htm b/modules/admin-full/luasrc/view/admin_system/upgrade.htm
index 16ba50cd9..16ba50cd9 100644
--- a/modules/admin-core/luasrc/view/admin_system/upgrade.htm
+++ b/modules/admin-full/luasrc/view/admin_system/upgrade.htm
diff --git a/modules/admin-core/luasrc/view/admin_uci/apply.htm b/modules/admin-full/luasrc/view/admin_uci/apply.htm
index e28094728..e28094728 100644
--- a/modules/admin-core/luasrc/view/admin_uci/apply.htm
+++ b/modules/admin-full/luasrc/view/admin_uci/apply.htm
diff --git a/modules/admin-core/luasrc/view/admin_uci/changes.htm b/modules/admin-full/luasrc/view/admin_uci/changes.htm
index f2a88602a..f2a88602a 100644
--- a/modules/admin-core/luasrc/view/admin_uci/changes.htm
+++ b/modules/admin-full/luasrc/view/admin_uci/changes.htm
diff --git a/modules/admin-core/luasrc/view/admin_uci/revert.htm b/modules/admin-full/luasrc/view/admin_uci/revert.htm
index 7f98a0435..7f98a0435 100644
--- a/modules/admin-core/luasrc/view/admin_uci/revert.htm
+++ b/modules/admin-full/luasrc/view/admin_uci/revert.htm
diff --git a/modules/admin-core/luasrc/view/admin_wifi/index.htm b/modules/admin-full/luasrc/view/admin_wifi/index.htm
index 58281d14f..58281d14f 100644
--- a/modules/admin-core/luasrc/view/admin_wifi/index.htm
+++ b/modules/admin-full/luasrc/view/admin_wifi/index.htm
diff --git a/modules/admin-mini/Makefile b/modules/admin-mini/Makefile
new file mode 100644
index 000000000..81a96f6a8
--- /dev/null
+++ b/modules/admin-mini/Makefile
@@ -0,0 +1,2 @@
+include ../../build/config.mk
+include ../../build/module.mk \ No newline at end of file
diff --git a/modules/admin-mini/luasrc/controller/index.lua b/modules/admin-mini/luasrc/controller/index.lua
new file mode 100644
index 000000000..eb58e0042
--- /dev/null
+++ b/modules/admin-mini/luasrc/controller/index.lua
@@ -0,0 +1,49 @@
+--[[
+LuCI - Lua Configuration Interface
+
+Copyright 2008 Steven Barth <steven@midlink.org>
+
+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$
+]]--
+module("luci.controller.admin.index", package.seeall)
+
+function index()
+ luci.i18n.loadc("admin-core")
+ local i18n = luci.i18n.translate
+
+ local root = node()
+ if not root.target then
+ root.target = alias("admin")
+ end
+
+ entry({"about"}, template("about")).i18n = "admin-core"
+
+ local page = node("admin")
+ page.target = alias("admin", "index")
+ page.title = i18n("administration", "Administration")
+ page.order = 10
+ page.i18n = "admin-core"
+ page.sysauth = "root"
+
+ local page = node("admin", "index")
+ page.target = template("admin_index/index")
+ page.title = i18n("overview", "Übersicht")
+ page.order = 10
+
+ local page = node("admin", "index", "luci")
+ page.target = cbi("admin_index/luci")
+ page.title = i18n("a_i_ui", "Oberfläche")
+
+ entry({"admin", "logout"}, call("action_logout"), i18n("logout"))
+end
+
+function action_logout()
+ luci.http.header("Set-Cookie", "sysauth=; path=/")
+ luci.http.redirect(luci.dispatcher.build_url())
+end \ No newline at end of file