diff --git a/gluon/gluon-config-mode/Makefile b/gluon/gluon-config-mode/Makefile index dfd252e..4d52bd2 100644 --- a/gluon/gluon-config-mode/Makefile +++ b/gluon/gluon-config-mode/Makefile @@ -15,7 +15,7 @@ define Package/gluon-config-mode SECTION:=gluon CATEGORY:=Gluon TITLE:=Luci based config mode for user friendly setup of new meshnodes - DEPENDS:=+gluon-core +gluon-lock-password +gluon-location +gluon-simple-tc +gluon-luci-theme +uhttpd +dnsmasq +luci-mod-admin-core +ip + DEPENDS:=+gluon-luci-core +gluon-lock-password +gluon-location +gluon-simple-tc +uhttpd +dnsmasq +ip endef define Package/gluon-config-mode/description diff --git a/gluon/gluon-luci-admin/Makefile b/gluon/gluon-luci-admin/Makefile index d9d9638..16dc0cb 100644 --- a/gluon/gluon-luci-admin/Makefile +++ b/gluon/gluon-luci-admin/Makefile @@ -15,7 +15,7 @@ define Package/gluon-luci-admin SECTION:=gluon CATEGORY:=Gluon TITLE:=Luci based simple administration interface for mesh nodes - DEPENDS:=+gluon-core +gluon-luci-theme +luci-mod-admin-core + DEPENDS:=+gluon-luci-core +gluon-config-mode endef define Package/gluon-luci-admin/description diff --git a/gluon/gluon-luci-core/Makefile b/gluon/gluon-luci-core/Makefile new file mode 100644 index 0000000..2cee386 --- /dev/null +++ b/gluon/gluon-luci-core/Makefile @@ -0,0 +1,39 @@ +# Copyright (C) 2013 Nils Schneider +# This is free software, licensed under the Apache 2.0 license. + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gluon-luci-core +PKG_VERSION:=0.1 +PKG_RELEASE:=1 + +PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) + +include $(INCLUDE_DIR)/package.mk + +define Package/gluon-luci-core + SECTION:=gluon + CATEGORY:=Gluon + TITLE:=Luci code shared by configmode and expertmode + DEPENDS:=+gluon-core +gluon-luci-theme +luci-lib-web +endef + +define Package/gluon-luci-core/description + Luci code shared by various gluon packages +endef + +define Build/Prepare + mkdir -p $(PKG_BUILD_DIR) +endef + +define Build/Configure +endef + +define Build/Compile +endef + +define Package/gluon-luci-core/install + $(CP) ./files/* $(1)/ +endef + +$(eval $(call BuildPackage,gluon-luci-core)) diff --git a/gluon/gluon-luci-core/files/usr/lib/lua/luci/view/error404.htm b/gluon/gluon-luci-core/files/usr/lib/lua/luci/view/error404.htm new file mode 100644 index 0000000..813604d --- /dev/null +++ b/gluon/gluon-luci-core/files/usr/lib/lua/luci/view/error404.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%> +

404 <%:Not Found%>

+

<%:Sorry, the object you requested was not found.%>

+<%:Unable to dispatch%>: <%=luci.http.request.env.PATH_INFO%> +<%+footer%> diff --git a/gluon/gluon-luci-core/files/usr/lib/lua/luci/view/error500.htm b/gluon/gluon-luci-core/files/usr/lib/lua/luci/view/error500.htm new file mode 100644 index 0000000..14ba041 --- /dev/null +++ b/gluon/gluon-luci-core/files/usr/lib/lua/luci/view/error500.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%> +

500 <%:Internal Server Error%>

+

<%:Sorry, the server encountered an unexpected error.%>

+
<%=message%>
+<%+footer%> diff --git a/gluon/gluon-luci-core/files/usr/lib/lua/luci/view/footer.htm b/gluon/gluon-luci-core/files/usr/lib/lua/luci/view/footer.htm new file mode 100644 index 0000000..6c6d214 --- /dev/null +++ b/gluon/gluon-luci-core/files/usr/lib/lua/luci/view/footer.htm @@ -0,0 +1,15 @@ +<%# +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$ + +-%> +<% include("themes/" .. theme .. "/footer") %> \ No newline at end of file diff --git a/gluon/gluon-luci-core/files/usr/lib/lua/luci/view/header.htm b/gluon/gluon-luci-core/files/usr/lib/lua/luci/view/header.htm new file mode 100644 index 0000000..77018b1 --- /dev/null +++ b/gluon/gluon-luci-core/files/usr/lib/lua/luci/view/header.htm @@ -0,0 +1,21 @@ +<%# +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$ + +-%> + +<% + if not luci.dispatcher.context.template_header_sent then + include("themes/" .. theme .. "/header") + luci.dispatcher.context.template_header_sent = true + end +%> diff --git a/gluon/gluon-luci-core/files/usr/lib/lua/luci/view/sysauth.htm b/gluon/gluon-luci-core/files/usr/lib/lua/luci/view/sysauth.htm new file mode 100644 index 0000000..8c4b19c --- /dev/null +++ b/gluon/gluon-luci-core/files/usr/lib/lua/luci/view/sysauth.htm @@ -0,0 +1,54 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth +Copyright 2008-2012 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%> + +
"> +
+

<%:Authorization Required%>

+
+ <%:Please enter your username and password.%> + <%- if fuser then %> +
<%:Invalid username and/or password! Please try again.%>
+
+ <% end -%> +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ +
+ + +
+
+ +<%+footer%>