From 3c4bc228a1f7b5731cf464f3f407c9ed9ace3cd2 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 3 Apr 2020 10:00:06 +0200 Subject: treewide: import utility classes explicitly Signed-off-by: Jo-Philipp Wich --- .../htdocs/luci-static/resources/view/yggdrasil/keys.js | 3 ++- .../htdocs/luci-static/resources/view/yggdrasil/peers.js | 3 ++- .../htdocs/luci-static/resources/view/yggdrasil/session_firewall.js | 3 ++- .../htdocs/luci-static/resources/view/yggdrasil/settings.js | 3 ++- .../htdocs/luci-static/resources/view/yggdrasil/status.js | 3 ++- .../htdocs/luci-static/resources/view/yggdrasil/tunnel_routing.js | 3 ++- 6 files changed, 12 insertions(+), 6 deletions(-) (limited to 'applications/luci-app-yggdrasil/htdocs/luci-static') diff --git a/applications/luci-app-yggdrasil/htdocs/luci-static/resources/view/yggdrasil/keys.js b/applications/luci-app-yggdrasil/htdocs/luci-static/resources/view/yggdrasil/keys.js index 8bc79321fd..44acaa22d6 100644 --- a/applications/luci-app-yggdrasil/htdocs/luci-static/resources/view/yggdrasil/keys.js +++ b/applications/luci-app-yggdrasil/htdocs/luci-static/resources/view/yggdrasil/keys.js @@ -1,7 +1,8 @@ 'use strict'; +'require view'; 'require form'; -return L.view.extend({ +return view.extend({ render: function() { var m, s, o; diff --git a/applications/luci-app-yggdrasil/htdocs/luci-static/resources/view/yggdrasil/peers.js b/applications/luci-app-yggdrasil/htdocs/luci-static/resources/view/yggdrasil/peers.js index 62336a2708..7d392901c5 100644 --- a/applications/luci-app-yggdrasil/htdocs/luci-static/resources/view/yggdrasil/peers.js +++ b/applications/luci-app-yggdrasil/htdocs/luci-static/resources/view/yggdrasil/peers.js @@ -1,7 +1,8 @@ 'use strict'; +'require view'; 'require form'; -return L.view.extend({ +return view.extend({ render: function() { var m, s, o; diff --git a/applications/luci-app-yggdrasil/htdocs/luci-static/resources/view/yggdrasil/session_firewall.js b/applications/luci-app-yggdrasil/htdocs/luci-static/resources/view/yggdrasil/session_firewall.js index 4a91d5e02f..45fe2207b2 100644 --- a/applications/luci-app-yggdrasil/htdocs/luci-static/resources/view/yggdrasil/session_firewall.js +++ b/applications/luci-app-yggdrasil/htdocs/luci-static/resources/view/yggdrasil/session_firewall.js @@ -1,7 +1,8 @@ 'use strict'; +'require view'; 'require form'; -return L.view.extend({ +return view.extend({ render: function() { var m, s, o; diff --git a/applications/luci-app-yggdrasil/htdocs/luci-static/resources/view/yggdrasil/settings.js b/applications/luci-app-yggdrasil/htdocs/luci-static/resources/view/yggdrasil/settings.js index 52d79a47ea..4278386f53 100644 --- a/applications/luci-app-yggdrasil/htdocs/luci-static/resources/view/yggdrasil/settings.js +++ b/applications/luci-app-yggdrasil/htdocs/luci-static/resources/view/yggdrasil/settings.js @@ -1,7 +1,8 @@ 'use strict'; +'require view'; 'require form'; -return L.view.extend({ +return view.extend({ render: function() { var m, s, o; diff --git a/applications/luci-app-yggdrasil/htdocs/luci-static/resources/view/yggdrasil/status.js b/applications/luci-app-yggdrasil/htdocs/luci-static/resources/view/yggdrasil/status.js index 3fb6c1f7fa..35078a511b 100644 --- a/applications/luci-app-yggdrasil/htdocs/luci-static/resources/view/yggdrasil/status.js +++ b/applications/luci-app-yggdrasil/htdocs/luci-static/resources/view/yggdrasil/status.js @@ -1,4 +1,5 @@ 'use strict'; +'require view'; 'require fs'; 'require form'; @@ -65,7 +66,7 @@ function update_active_peers() { }); } -return L.view.extend({ +return view.extend({ load: function() { return Promise.all([ L.resolveDefault(fs.stat("/usr/sbin/yggdrasilctl"), null), diff --git a/applications/luci-app-yggdrasil/htdocs/luci-static/resources/view/yggdrasil/tunnel_routing.js b/applications/luci-app-yggdrasil/htdocs/luci-static/resources/view/yggdrasil/tunnel_routing.js index 77cfbc2dce..0b4ac6e51a 100644 --- a/applications/luci-app-yggdrasil/htdocs/luci-static/resources/view/yggdrasil/tunnel_routing.js +++ b/applications/luci-app-yggdrasil/htdocs/luci-static/resources/view/yggdrasil/tunnel_routing.js @@ -1,7 +1,8 @@ 'use strict'; +'require view'; 'require form'; -return L.view.extend({ +return view.extend({ render: function() { var m, s, o; -- cgit v1.2.3