diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-04-03 10:00:06 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-04-03 10:00:06 +0200 |
commit | 3c4bc228a1f7b5731cf464f3f407c9ed9ace3cd2 (patch) | |
tree | d9ac0458c66dfa3c5d4922314df9d41499f578bc /applications/luci-app-ddns/htdocs/luci-static/resources/view | |
parent | 1099aebdee29b8e5408688d0fd64d49e6ec4bd35 (diff) |
treewide: import utility classes explicitly
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-ddns/htdocs/luci-static/resources/view')
-rw-r--r-- | applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js | 11 | ||||
-rw-r--r-- | applications/luci-app-ddns/htdocs/luci-static/resources/view/status/include/70_ddns.js | 3 |
2 files changed, 9 insertions, 5 deletions
diff --git a/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js b/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js index 392cf239b7..a15563e5b8 100644 --- a/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js +++ b/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js @@ -1,4 +1,7 @@ 'use strict'; +'require view'; +'require dom'; +'require poll'; 'require uci'; 'require rpc'; 'require fs'; @@ -41,7 +44,7 @@ callDDnsGetStatus = rpc.declare({ expect: { } }); -return L.view.extend({ +return view.extend({ callDDnsGetEnv: rpc.declare({ object: 'luci.ddns', @@ -64,7 +67,7 @@ return L.view.extend({ ddns_toggle.innerHTML = status['_enabled'] ? _('Stop DDNS') : _('Start DDNS') - L.dom.content(ddns_enabled, function() { + dom.content(ddns_enabled, function() { return E([], [ E('div', {}, status['_enabled'] ? _('DDNS Autostart enabled') : [ _('DDNS Autostart disabled'), @@ -374,7 +377,7 @@ return L.view.extend({ (resolved[section_id].pid && cfg_enabled == '1')) stop_opt['disabled'] = 'disabled'; - L.dom.content(tdEl.lastChild, [ + dom.content(tdEl.lastChild, [ E('button', stop_opt, _('Stop')), E('button', reload_opt, _('Reload')), tdEl.lastChild.childNodes[0], @@ -982,7 +985,7 @@ return L.view.extend({ } return m.render().then(L.bind(function(m, nodes) { - L.Poll.add(L.bind(function() { + poll.add(L.bind(function() { return Promise.all([ this.callDDnsGetServicesStatus(), callDDnsGetStatus() diff --git a/applications/luci-app-ddns/htdocs/luci-static/resources/view/status/include/70_ddns.js b/applications/luci-app-ddns/htdocs/luci-static/resources/view/status/include/70_ddns.js index 698cf8d254..13e8fba217 100644 --- a/applications/luci-app-ddns/htdocs/luci-static/resources/view/status/include/70_ddns.js +++ b/applications/luci-app-ddns/htdocs/luci-static/resources/view/status/include/70_ddns.js @@ -1,8 +1,9 @@ 'use strict'; +'require baseclass'; 'require rpc'; 'require uci'; -return L.Class.extend({ +return baseclass.extend({ title: _('Dynamic DNS'), callDDnsGetServicesStatus: rpc.declare({ |