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/view/ddns/detail_logview.htm | 56 ++++++ .../luasrc/view/ddns/detail_lvalue.htm | 22 +++ .../luasrc/view/ddns/detail_value.htm | 9 + .../luasrc/view/ddns/overview_doubleline.htm | 10 + .../luasrc/view/ddns/overview_enabled.htm | 15 ++ .../luasrc/view/ddns/overview_startstop.htm | 17 ++ .../luasrc/view/ddns/overview_status.htm | 208 +++++++++++++++++++++ .../luasrc/view/ddns/system_status.htm | 158 ++++++++++++++++ 8 files changed, 495 insertions(+) create mode 100644 applications/luci-app-ddns/luasrc/view/ddns/detail_logview.htm create mode 100644 applications/luci-app-ddns/luasrc/view/ddns/detail_lvalue.htm create mode 100644 applications/luci-app-ddns/luasrc/view/ddns/detail_value.htm create mode 100644 applications/luci-app-ddns/luasrc/view/ddns/overview_doubleline.htm create mode 100644 applications/luci-app-ddns/luasrc/view/ddns/overview_enabled.htm create mode 100644 applications/luci-app-ddns/luasrc/view/ddns/overview_startstop.htm create mode 100644 applications/luci-app-ddns/luasrc/view/ddns/overview_status.htm create mode 100644 applications/luci-app-ddns/luasrc/view/ddns/system_status.htm (limited to 'applications/luci-app-ddns/luasrc/view/ddns') diff --git a/applications/luci-app-ddns/luasrc/view/ddns/detail_logview.htm b/applications/luci-app-ddns/luasrc/view/ddns/detail_logview.htm new file mode 100644 index 0000000000..494b7435cd --- /dev/null +++ b/applications/luci-app-ddns/luasrc/view/ddns/detail_logview.htm @@ -0,0 +1,56 @@ + + + + +<%+cbi/valueheader%> + +
+ +<% +-- one button on top, one at the buttom +%> + /> + +

+ +<% +-- set a readable style taken from openwrt theme for textarea#syslog +-- in openwrt theme there are problems with a width of 100 so we check for theme and set to lower value +%> + +

+ +<% +-- one button on top, one at the buttom +%> + /> + +<%+cbi/valuefooter%> + diff --git a/applications/luci-app-ddns/luasrc/view/ddns/detail_lvalue.htm b/applications/luci-app-ddns/luasrc/view/ddns/detail_lvalue.htm new file mode 100644 index 0000000000..d516837b2b --- /dev/null +++ b/applications/luci-app-ddns/luasrc/view/ddns/detail_lvalue.htm @@ -0,0 +1,22 @@ + + + +  +<% if self.widget == "select" then %> + +<% elseif self.widget == "radio" then + local c = 0 + for i, key in pairs(self.keylist) do + c = c + 1 +%> + /> + ><%=self.vallist[i]%> +<% if c == self.size then c = 0 %><% if self.orientation == "horizontal" then %> <% else %>
<% end %> +<% end end %> +<% end %> +<%+cbi/valuefooter%> + diff --git a/applications/luci-app-ddns/luasrc/view/ddns/detail_value.htm b/applications/luci-app-ddns/luasrc/view/ddns/detail_value.htm new file mode 100644 index 0000000000..7cb28e282e --- /dev/null +++ b/applications/luci-app-ddns/luasrc/view/ddns/detail_value.htm @@ -0,0 +1,9 @@ + + +<%+cbi/valueheader%> + /> + + diff --git a/applications/luci-app-ddns/luasrc/view/ddns/overview_doubleline.htm b/applications/luci-app-ddns/luasrc/view/ddns/overview_doubleline.htm new file mode 100644 index 0000000000..1d1b4be019 --- /dev/null +++ b/applications/luci-app-ddns/luasrc/view/ddns/overview_doubleline.htm @@ -0,0 +1,10 @@ + + +<%+cbi/valueheader%> + +<%=self:set_one(section)%> +
+<%=self:set_two(section)%> + +<%+cbi/valuefooter%> + diff --git a/applications/luci-app-ddns/luasrc/view/ddns/overview_enabled.htm b/applications/luci-app-ddns/luasrc/view/ddns/overview_enabled.htm new file mode 100644 index 0000000000..64b3dae455 --- /dev/null +++ b/applications/luci-app-ddns/luasrc/view/ddns/overview_enabled.htm @@ -0,0 +1,15 @@ + + +<%+cbi/valueheader%> + + /> + + /> + +<%+cbi/valuefooter%> + diff --git a/applications/luci-app-ddns/luasrc/view/ddns/overview_startstop.htm b/applications/luci-app-ddns/luasrc/view/ddns/overview_startstop.htm new file mode 100644 index 0000000000..8255aa63f3 --- /dev/null +++ b/applications/luci-app-ddns/luasrc/view/ddns/overview_startstop.htm @@ -0,0 +1,17 @@ + + +<%+cbi/valueheader%> + +<% if self:cfgvalue(section) ~= false then +-- We need to garantie that function cfgvalue run first to set missing parameters +%> + + + " style="font-size: 100%;" type="button" onclick="onclick_startstop(this.id)" + <%= + attr("name", section) .. attr("id", cbid) .. attr("value", self.inputtitle) .. ifattr(self.disabled, "disabled") + %> /> +<% end %> + +<%+cbi/valuefooter%> + diff --git a/applications/luci-app-ddns/luasrc/view/ddns/overview_status.htm b/applications/luci-app-ddns/luasrc/view/ddns/overview_status.htm new file mode 100644 index 0000000000..37c54be25f --- /dev/null +++ b/applications/luci-app-ddns/luasrc/view/ddns/overview_status.htm @@ -0,0 +1,208 @@ + + + + + + diff --git a/applications/luci-app-ddns/luasrc/view/ddns/system_status.htm b/applications/luci-app-ddns/luasrc/view/ddns/system_status.htm new file mode 100644 index 0000000000..db9d1d1a01 --- /dev/null +++ b/applications/luci-app-ddns/luasrc/view/ddns/system_status.htm @@ -0,0 +1,158 @@ + + + + +
+ <%:Dynamic DNS%> + + + + + + + + + + + + +
<%:Configuration%><%:Next Update%><%:Hostname/Domain%><%:Registered IP%><%:Network%>

<%:Collecting data...%>
+
+ -- cgit v1.2.3