From 3c385be6a47d7be3a885d82c15765b855d5ef962 Mon Sep 17 00:00:00 2001 From: Kasra Bigdeli Date: Mon, 18 Dec 2017 12:05:27 -0800 Subject: [PATCH] rebuild and fixed some placeholders --- app-backend/dist/js/dashboard.min.js | 240 ++++++++++----------- app-backend/dist/templates/apps.html | 17 +- app-backend/dist/templates/dashboard.html | 11 +- app-backend/dist/templates/login.html | 5 +- app-backend/dist/templates/monitoring.html | 5 +- app-backend/dist/templates/nodes.html | 23 +- app-backend/dist/templates/settings.html | 8 +- app-frontend/src/js/captain/apiManager.js | 2 +- app-frontend/src/templates/apps.html | 6 +- 9 files changed, 150 insertions(+), 167 deletions(-) diff --git a/app-backend/dist/js/dashboard.min.js b/app-backend/dist/js/dashboard.min.js index 0dff67d..d9c776b 100644 --- a/app-backend/dist/js/dashboard.min.js +++ b/app-backend/dist/js/dashboard.min.js @@ -93,7 +93,7 @@ angular // Uncomment the following line if you have dnsmasq installed // BASE_API = 'http://captain.captain.x/api/v1/'; // Uncomment the following line if you don't have dnsmasq installed - // BASE_API = 'http://127.0.0.1:3000/api/v1/'; + BASE_API = 'http://127.0.0.1:3000/api/v1/'; function ApiManager(captainLogger, $http, $timeout) { @@ -652,6 +652,124 @@ angular.module('RDash') } }); +/** + * File Upload Read Directive + */ + +angular + .module('RDash') + .directive("fileread", [function () { + return { + scope: { + fileread: "=" + }, + link: function (scope, element, attributes) { + element.bind("change", function (changeEvent) { + scope.$apply(function () { + scope.fileread = changeEvent.target.files[0]; + // or all selected files: + // scope.fileread = changeEvent.target.files; + }); + }); + } + } + }]); +/** + * Loading Directive + * @see http://tobiasahlin.com/spinkit/ + */ + +angular + .module('RDash') + .directive('rdLoading', rdLoading); + +function rdLoading() { + var directive = { + restrict: 'AE', + template: '
' + }; + return directive; +}; +/** + * Widget Body Directive + */ + +angular + .module('RDash') + .directive('rdWidgetBody', rdWidgetBody); + +function rdWidgetBody() { + var directive = { + requires: '^rdWidget', + scope: { + loading: '=?', + classes: '@?' + }, + transclude: true, + template: '
', + restrict: 'E' + }; + return directive; +}; + +/** + * Widget Footer Directive + */ + +angular + .module('RDash') + .directive('rdWidgetFooter', rdWidgetFooter); + +function rdWidgetFooter() { + var directive = { + requires: '^rdWidget', + transclude: true, + template: '', + restrict: 'E' + }; + return directive; +}; +/** + * Widget Header Directive + */ + +angular + .module('RDash') + .directive('rdWidgetHeader', rdWidgetTitle); + +function rdWidgetTitle() { + var directive = { + requires: '^rdWidget', + scope: { + title: '@', + icon: '@' + }, + transclude: true, + template: '
{{title}}
', + restrict: 'E' + }; + return directive; +}; +/** + * Widget Directive + */ + +angular + .module('RDash') + .directive('rdWidget', rdWidget); + +function rdWidget() { + var directive = { + transclude: true, + template: '
', + restrict: 'EA' + }; + return directive; + + function link(scope, element, attrs) { + /* */ + } +}; /** * Alerts Controller */ @@ -1531,122 +1649,4 @@ function SettingsCtrl($scope, $cookieStore, $rootScope, pageDefinitions, }()); -} -/** - * File Upload Read Directive - */ - -angular - .module('RDash') - .directive("fileread", [function () { - return { - scope: { - fileread: "=" - }, - link: function (scope, element, attributes) { - element.bind("change", function (changeEvent) { - scope.$apply(function () { - scope.fileread = changeEvent.target.files[0]; - // or all selected files: - // scope.fileread = changeEvent.target.files; - }); - }); - } - } - }]); -/** - * Loading Directive - * @see http://tobiasahlin.com/spinkit/ - */ - -angular - .module('RDash') - .directive('rdLoading', rdLoading); - -function rdLoading() { - var directive = { - restrict: 'AE', - template: '
' - }; - return directive; -}; -/** - * Widget Body Directive - */ - -angular - .module('RDash') - .directive('rdWidgetBody', rdWidgetBody); - -function rdWidgetBody() { - var directive = { - requires: '^rdWidget', - scope: { - loading: '=?', - classes: '@?' - }, - transclude: true, - template: '
', - restrict: 'E' - }; - return directive; -}; - -/** - * Widget Footer Directive - */ - -angular - .module('RDash') - .directive('rdWidgetFooter', rdWidgetFooter); - -function rdWidgetFooter() { - var directive = { - requires: '^rdWidget', - transclude: true, - template: '', - restrict: 'E' - }; - return directive; -}; -/** - * Widget Header Directive - */ - -angular - .module('RDash') - .directive('rdWidgetHeader', rdWidgetTitle); - -function rdWidgetTitle() { - var directive = { - requires: '^rdWidget', - scope: { - title: '@', - icon: '@' - }, - transclude: true, - template: '
{{title}}
', - restrict: 'E' - }; - return directive; -}; -/** - * Widget Directive - */ - -angular - .module('RDash') - .directive('rdWidget', rdWidget); - -function rdWidget() { - var directive = { - transclude: true, - template: '
', - restrict: 'EA' - }; - return directive; - - function link(scope, element, attrs) { - /* */ - } -}; \ No newline at end of file +} \ No newline at end of file diff --git a/app-backend/dist/templates/apps.html b/app-backend/dist/templates/apps.html index 2995465..9ead8d4 100644 --- a/app-backend/dist/templates/apps.html +++ b/app-backend/dist/templates/apps.html @@ -3,8 +3,7 @@
-
-
+
@@ -48,8 +47,7 @@
-
-
+


@@ -106,8 +104,7 @@
-
-
+


@@ -268,11 +265,11 @@
Username: - +
-
+
Password:
@@ -282,7 +279,7 @@
Repository: - +
@@ -450,4 +447,4 @@
-
\ No newline at end of file +
diff --git a/app-backend/dist/templates/dashboard.html b/app-backend/dist/templates/dashboard.html index 51899e6..45af7a3 100644 --- a/app-backend/dist/templates/dashboard.html +++ b/app-backend/dist/templates/dashboard.html @@ -1,6 +1,5 @@
-
-
+
@@ -19,8 +18,7 @@
-
-
+
@@ -54,8 +52,7 @@
-
-
+
@@ -116,4 +113,4 @@
-
\ No newline at end of file +
diff --git a/app-backend/dist/templates/login.html b/app-backend/dist/templates/login.html index 073c0e6..f41f7e1 100644 --- a/app-backend/dist/templates/login.html +++ b/app-backend/dist/templates/login.html @@ -1,7 +1,6 @@
-
-
+
@@ -29,4 +28,4 @@
-
\ No newline at end of file +
diff --git a/app-backend/dist/templates/monitoring.html b/app-backend/dist/templates/monitoring.html index 0ec2b78..a2e49ff 100644 --- a/app-backend/dist/templates/monitoring.html +++ b/app-backend/dist/templates/monitoring.html @@ -66,8 +66,7 @@
-
-
+
@@ -294,4 +293,4 @@
-
\ No newline at end of file +
diff --git a/app-backend/dist/templates/nodes.html b/app-backend/dist/templates/nodes.html index bfc9b9e..4fcd8e8 100644 --- a/app-backend/dist/templates/nodes.html +++ b/app-backend/dist/templates/nodes.html @@ -3,8 +3,7 @@
-
-
+
@@ -12,15 +11,13 @@
-
-
+
-
-
+
@@ -28,15 +25,13 @@
-
-
+
-
-
+
@@ -44,8 +39,7 @@
-
-
+
@@ -72,8 +66,7 @@
-
-
+
@@ -104,4 +97,4 @@


-
\ No newline at end of file +
diff --git a/app-backend/dist/templates/settings.html b/app-backend/dist/templates/settings.html index fa33914..5b6d0af 100644 --- a/app-backend/dist/templates/settings.html +++ b/app-backend/dist/templates/settings.html @@ -1,6 +1,5 @@
-
-
+
@@ -44,8 +43,7 @@
-
-
+
@@ -85,4 +83,4 @@
-
\ No newline at end of file +
diff --git a/app-frontend/src/js/captain/apiManager.js b/app-frontend/src/js/captain/apiManager.js index fc1a755..eff1d53 100644 --- a/app-frontend/src/js/captain/apiManager.js +++ b/app-frontend/src/js/captain/apiManager.js @@ -11,7 +11,7 @@ // Uncomment the following line if you have dnsmasq installed // BASE_API = 'http://captain.captain.x/api/v1/'; // Uncomment the following line if you don't have dnsmasq installed - // BASE_API = 'http://127.0.0.1:3000/api/v1/'; + BASE_API = 'http://127.0.0.1:3000/api/v1/'; function ApiManager(captainLogger, $http, $timeout) { diff --git a/app-frontend/src/templates/apps.html b/app-frontend/src/templates/apps.html index cbc036c..eeb64ed 100644 --- a/app-frontend/src/templates/apps.html +++ b/app-frontend/src/templates/apps.html @@ -266,11 +266,11 @@
Username: - +
-
+
Password:
@@ -280,7 +280,7 @@
Repository: - +