ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anovi...@apache.org
Subject [25/50] [abbrv] ignite git commit: Minor refactoring.
Date Thu, 08 Sep 2016 04:46:42 GMT
Minor refactoring.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/5abecfee
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/5abecfee
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/5abecfee

Branch: refs/heads/ignite-3629
Commit: 5abecfee64a7e67baf5d9b067065ffc2698bed17
Parents: 52b1803
Author: Andrey Novikov <anovikov@apache.org>
Authored: Mon Aug 29 13:19:06 2016 +0700
Committer: Andrey Novikov <anovikov@apache.org>
Committed: Mon Aug 29 13:19:06 2016 +0700

----------------------------------------------------------------------
 .../web-console/frontend/app/modules/sql/Notebook.data.js    | 8 +++-----
 .../web-console/frontend/app/modules/sql/Notebook.service.js | 8 +++-----
 .../frontend/app/modules/sql/scan-filter-input.service.js    | 3 +--
 3 files changed, 7 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/5abecfee/modules/web-console/frontend/app/modules/sql/Notebook.data.js
----------------------------------------------------------------------
diff --git a/modules/web-console/frontend/app/modules/sql/Notebook.data.js b/modules/web-console/frontend/app/modules/sql/Notebook.data.js
index 461ad3f2..aef72eb 100644
--- a/modules/web-console/frontend/app/modules/sql/Notebook.data.js
+++ b/modules/web-console/frontend/app/modules/sql/Notebook.data.js
@@ -70,7 +70,9 @@ const DEMO_NOTEBOOK = {
     expandedParagraphs: [0, 1, 2]
 };
 
-class NotebookData {
+export default class NotebookData {
+    static $inject = ['$rootScope', '$http', '$q'];
+
     constructor($root, $http, $q) {
         this.demo = $root.IgniteDemoMode;
 
@@ -153,7 +155,3 @@ class NotebookData {
             .catch(({data}) => Promise.reject(data));
     }
 }
-
-NotebookData.$inject = ['$rootScope', '$http', '$q'];
-
-export default NotebookData;

http://git-wip-us.apache.org/repos/asf/ignite/blob/5abecfee/modules/web-console/frontend/app/modules/sql/Notebook.service.js
----------------------------------------------------------------------
diff --git a/modules/web-console/frontend/app/modules/sql/Notebook.service.js b/modules/web-console/frontend/app/modules/sql/Notebook.service.js
index 1b0817e..12730be 100644
--- a/modules/web-console/frontend/app/modules/sql/Notebook.service.js
+++ b/modules/web-console/frontend/app/modules/sql/Notebook.service.js
@@ -15,7 +15,9 @@
  * limitations under the License.
  */
 
-class Notebook {
+export default class Notebook {
+    static $inject = ['$state', 'IgniteConfirm', 'IgniteMessages', 'IgniteNotebookData'];
+
     /**
      * @param $state
      * @param confirmModal
@@ -70,7 +72,3 @@ class Notebook {
             });
     }
 }
-
-Notebook.$inject = ['$state', 'IgniteConfirm', 'IgniteMessages', 'IgniteNotebookData'];
-
-export default Notebook;

http://git-wip-us.apache.org/repos/asf/ignite/blob/5abecfee/modules/web-console/frontend/app/modules/sql/scan-filter-input.service.js
----------------------------------------------------------------------
diff --git a/modules/web-console/frontend/app/modules/sql/scan-filter-input.service.js b/modules/web-console/frontend/app/modules/sql/scan-filter-input.service.js
index d460f04..18ba3ba 100644
--- a/modules/web-console/frontend/app/modules/sql/scan-filter-input.service.js
+++ b/modules/web-console/frontend/app/modules/sql/scan-filter-input.service.js
@@ -15,7 +15,7 @@
  * limitations under the License.
  */
 
-class ScanFilter {
+export default class ScanFilter {
     static $inject = ['$rootScope', '$q', '$modal'];
 
     constructor($root, $q, $modal) {
@@ -49,4 +49,3 @@ class ScanFilter {
         return this.deferred.promise;
     }
 }
-export default ScanFilter;


Mime
View raw message