From 1bb4822dca6113f73e3bc89e2acf15935e6f8e92 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 3 Dec 2014 15:17:05 +0100 Subject: Rework LuCI build system * Rename subdirectories to their repective OpenWrt package names * Make each LuCI module its own standalone package * Deploy a shared luci.mk which is used by each module Makefile Signed-off-by: Jo-Philipp Wich --- .../luasrc/controller/luci_diag.lua | 26 ++++++++++++++++++++++ .../luci-app-diag-core/luasrc/view/diag/index.htm | 18 +++++++++++++++ .../luasrc/view/diag/network_config_index.htm | 18 +++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 applications/luci-app-diag-core/luasrc/controller/luci_diag.lua create mode 100644 applications/luci-app-diag-core/luasrc/view/diag/index.htm create mode 100644 applications/luci-app-diag-core/luasrc/view/diag/network_config_index.htm (limited to 'applications/luci-app-diag-core/luasrc') diff --git a/applications/luci-app-diag-core/luasrc/controller/luci_diag.lua b/applications/luci-app-diag-core/luasrc/controller/luci_diag.lua new file mode 100644 index 000000000..4a8a02003 --- /dev/null +++ b/applications/luci-app-diag-core/luasrc/controller/luci_diag.lua @@ -0,0 +1,26 @@ +--[[ + +Luci Voice Core +(c) 2009 Daniel Dickinson + +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 + +]]-- + +module("luci.controller.luci_diag", package.seeall) + +function index() + local e + + e = entry({"admin", "network", "diag_config"}, template("diag/network_config_index") , _("Configure Diagnostics"), 120) + e.index = true + e.dependent = true + + e = entry({"mini", "diag"}, template("diag/index"), _("Diagnostics"), 120) + e.index = true + e.dependent = true +end diff --git a/applications/luci-app-diag-core/luasrc/view/diag/index.htm b/applications/luci-app-diag-core/luasrc/view/diag/index.htm new file mode 100644 index 000000000..6b1efa1a8 --- /dev/null +++ b/applications/luci-app-diag-core/luasrc/view/diag/index.htm @@ -0,0 +1,18 @@ +<%# +LuCI - Lua Configuration Interface +(c) 2009 Daniel Dickinson + +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%> +

<%:Diagnostics%>

+

<%:The entries in the menu allow you to perform diagnostic tests on your system to aid in troubleshooting.%>

+

<%:The diagnostics available under this menu depend on what modules you have installed on your device.%>

+<%+footer%> diff --git a/applications/luci-app-diag-core/luasrc/view/diag/network_config_index.htm b/applications/luci-app-diag-core/luasrc/view/diag/network_config_index.htm new file mode 100644 index 000000000..67980a6e7 --- /dev/null +++ b/applications/luci-app-diag-core/luasrc/view/diag/network_config_index.htm @@ -0,0 +1,18 @@ +<%# +LuCI - Lua Configuration Interface +(c) 2009 Daniel Dickinson + +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%> +

<%:Diagnostics%>

+

<%:With this menu you can configure network diagnostics, such as network device scans and ping tests.%>

+

<%:The diagnostics available under this menu depend on what modules you have installed on your device.%>

+<%+footer%> -- cgit v1.2.3