From 609fe9cfea027f04f9afa493bcf4e0fb3610563f Mon Sep 17 00:00:00 2001 From: Oleg Nechaev Date: Sun, 27 Sep 2015 15:54:14 +0500 Subject: [PATCH] Angular Light version --- angular-light/app.js | 13 +++++++++++ angular-light/index.html | 47 ++++++++++++++++++++++++++++++++++++++++ angular-light/opt.html | 47 ++++++++++++++++++++++++++++++++++++++++ angular-light/opt.js | 13 +++++++++++ index.html | 2 ++ lib/alight.min.js | 6 +++++ 6 files changed, 128 insertions(+) create mode 100644 angular-light/app.js create mode 100644 angular-light/index.html create mode 100644 angular-light/opt.html create mode 100644 angular-light/opt.js create mode 100644 lib/alight.min.js diff --git a/angular-light/app.js b/angular-light/app.js new file mode 100644 index 00000000..0780407b --- /dev/null +++ b/angular-light/app.js @@ -0,0 +1,13 @@ + +alight.controllers.DBMonCtrl = function(scope) { + scope.databases = []; + + var load = function() { + scope.databases = ENV.generateData().toArray(); + scope.$scan(); + Monitoring.renderRate.ping(); + + setTimeout(load, ENV.timeout); + }; + load(); +}; diff --git a/angular-light/index.html b/angular-light/index.html new file mode 100644 index 00000000..281fd1de --- /dev/null +++ b/angular-light/index.html @@ -0,0 +1,47 @@ + + + + + + + + + dbmon (angular light) + + + +
+ + + + + + + + + + + +
+ {{db.dbname}} + + + {{db.lastSample.nbQueries}} + + + {{q.formatElapsed}} +
+
+ {{q.query}} +
+
+
+
+
+ + + + + + + diff --git a/angular-light/opt.html b/angular-light/opt.html new file mode 100644 index 00000000..0045cca3 --- /dev/null +++ b/angular-light/opt.html @@ -0,0 +1,47 @@ + + + + + + + + + dbmon (angular light) + + + +
+ + + + + + + + + + + +
+ {{db.dbname}} + + + {{db.lastSample.nbQueries}} + + + {{q.formatElapsed}} +
+
+ {{q.query}} +
+
+
+
+
+ + + + + + + diff --git a/angular-light/opt.js b/angular-light/opt.js new file mode 100644 index 00000000..08c3b502 --- /dev/null +++ b/angular-light/opt.js @@ -0,0 +1,13 @@ + +alight.controllers.DBMonCtrl = function(scope) { + scope.databases = []; + + var load = function() { + scope.databases = ENV.generateData(true).toArray(); + scope.$scan(); + Monitoring.renderRate.ping(); + + setTimeout(load, ENV.timeout); + }; + load(); +}; diff --git a/index.html b/index.html index 6e2a9e46..5a375625 100644 --- a/index.html +++ b/index.html @@ -59,6 +59,7 @@