From c09f8a7e41b2fa9eb949756cff0c83d7357102a6 Mon Sep 17 00:00:00 2001 From: Christian Schoenebeck Date: Fri, 10 Oct 2014 21:55:22 +0200 Subject: luci-app-ddns: update/rebuild to support ddns-scripts V 2.x extends/replaces exising luci-app-ddns to support ddns-scripts starting Version 2.0.1-8 Still supports ddns-scripts Version 1.0.0-23 with the old interface including fix for OpenWrt Ticket #18018. Signed-off-by: Christian Schoenebeck --- .../luasrc/view/admin_status/index/ddns.htm | 1 + .../luci-ddns/luasrc/view/ddns/detail_logview.htm | 56 +++++++ .../luci-ddns/luasrc/view/ddns/detail_lvalue.htm | 22 +++ .../luci-ddns/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 ++ .../luci-ddns/luasrc/view/ddns/overview_status.htm | 178 +++++++++++++++++++++ .../luci-ddns/luasrc/view/ddns/system_status.htm | 145 +++++++++++++++++ 9 files changed, 453 insertions(+) create mode 100644 applications/luci-ddns/luasrc/view/admin_status/index/ddns.htm create mode 100644 applications/luci-ddns/luasrc/view/ddns/detail_logview.htm create mode 100644 applications/luci-ddns/luasrc/view/ddns/detail_lvalue.htm create mode 100644 applications/luci-ddns/luasrc/view/ddns/detail_value.htm create mode 100644 applications/luci-ddns/luasrc/view/ddns/overview_doubleline.htm create mode 100644 applications/luci-ddns/luasrc/view/ddns/overview_enabled.htm create mode 100644 applications/luci-ddns/luasrc/view/ddns/overview_startstop.htm create mode 100644 applications/luci-ddns/luasrc/view/ddns/overview_status.htm create mode 100644 applications/luci-ddns/luasrc/view/ddns/system_status.htm (limited to 'applications/luci-ddns/luasrc/view') diff --git a/applications/luci-ddns/luasrc/view/admin_status/index/ddns.htm b/applications/luci-ddns/luasrc/view/admin_status/index/ddns.htm new file mode 100644 index 0000000000..9791065083 --- /dev/null +++ b/applications/luci-ddns/luasrc/view/admin_status/index/ddns.htm @@ -0,0 +1 @@ +<%+ddns/system_status%> diff --git a/applications/luci-ddns/luasrc/view/ddns/detail_logview.htm b/applications/luci-ddns/luasrc/view/ddns/detail_logview.htm new file mode 100644 index 0000000000..7811e7e704 --- /dev/null +++ b/applications/luci-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-ddns/luasrc/view/ddns/detail_lvalue.htm b/applications/luci-ddns/luasrc/view/ddns/detail_lvalue.htm new file mode 100644 index 0000000000..d516837b2b --- /dev/null +++ b/applications/luci-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-ddns/luasrc/view/ddns/detail_value.htm b/applications/luci-ddns/luasrc/view/ddns/detail_value.htm new file mode 100644 index 0000000000..7cb28e282e --- /dev/null +++ b/applications/luci-ddns/luasrc/view/ddns/detail_value.htm @@ -0,0 +1,9 @@ + + +<%+cbi/valueheader%> + /> + + diff --git a/applications/luci-ddns/luasrc/view/ddns/overview_doubleline.htm b/applications/luci-ddns/luasrc/view/ddns/overview_doubleline.htm new file mode 100644 index 0000000000..1d1b4be019 --- /dev/null +++ b/applications/luci-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-ddns/luasrc/view/ddns/overview_enabled.htm b/applications/luci-ddns/luasrc/view/ddns/overview_enabled.htm new file mode 100644 index 0000000000..64b3dae455 --- /dev/null +++ b/applications/luci-ddns/luasrc/view/ddns/overview_enabled.htm @@ -0,0 +1,15 @@ + + +<%+cbi/valueheader%> + + /> + + /> + +<%+cbi/valuefooter%> + diff --git a/applications/luci-ddns/luasrc/view/ddns/overview_startstop.htm b/applications/luci-ddns/luasrc/view/ddns/overview_startstop.htm new file mode 100644 index 0000000000..39c5152b73 --- /dev/null +++ b/applications/luci-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-ddns/luasrc/view/ddns/overview_status.htm b/applications/luci-ddns/luasrc/view/ddns/overview_status.htm new file mode 100644 index 0000000000..b0cc2fac35 --- /dev/null +++ b/applications/luci-ddns/luasrc/view/ddns/overview_status.htm @@ -0,0 +1,178 @@ + + + + + + diff --git a/applications/luci-ddns/luasrc/view/ddns/system_status.htm b/applications/luci-ddns/luasrc/view/ddns/system_status.htm new file mode 100644 index 0000000000..d2c2b7e62c --- /dev/null +++ b/applications/luci-ddns/luasrc/view/ddns/system_status.htm @@ -0,0 +1,145 @@ + + + + +
+ <%:Dynamic DNS%> + + + + + + + + + + + + +
<%:Configuration%><%:Next Update%><%:Hostname/Domain%><%:Registered IP%><%:Network%>

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