From d1a82d28868678716f16472f70b46557ba99f8df Mon Sep 17 00:00:00 2001 From: Jaymin Patel Date: Thu, 8 Sep 2022 10:05:13 +0530 Subject: luci-app-keepalived: Add LuCI for keepalived LuCI Support for Keepalived Signed-off-by: Jaymin Patel --- .../luci-static/resources/view/keepalived/url.js | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/url.js (limited to 'applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/url.js') diff --git a/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/url.js b/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/url.js new file mode 100644 index 0000000000..5e311fd255 --- /dev/null +++ b/applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/url.js @@ -0,0 +1,30 @@ +'use strict'; +'require view'; +'require form'; + +return view.extend({ + render: function() { + var m, s, o; + + m = new form.Map('keepalived'); + + s = m.section(form.GridSection, 'url', _('URLs'), + _('URLs can be referenced into Real Servers to test')); + s.anonymous = true; + s.addremove = true; + s.nodescriptions = true; + + o = s.option(form.Value, 'name', _('Name')); + o.optional = false; + + o = s.option(form.Value, 'path', _('URL Path'), + _('URL path, i.e path /, or path /mrtg2/')); + o.optional = false; + + o = s.option(form.Value, 'digest', _('Digest'), + _('Digest computed with genhash')); + o.datatype = 'length(32)'; + + return m.render(); + } +}); -- cgit v1.2.3