aurora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject [6/6] git commit: Scheduler home page new using AngularJS and UI client
Date Fri, 17 Jan 2014 01:03:29 GMT
Scheduler home page new using AngularJS and UI client

Implemented new Scheduler home page using AngularJS. The UI queries the backend
using the thrift end point. This diff sets the basic foundation for the page.
Sending this out to get some early feedback and to keep the future diffs small.

The URLs in the new UI will redirect to the scheduler role pages.

Dropped the option to select number of results to be shown to simplify the
interface. Now defaulting to 25 results per page.

Cleaned up the UI to make it more light weight.

Updated build.gradle to generate thrift JS client.

Installed Angular and smart-table from bower. Added thrift.js file to make the
calls to the backend. Will migrate to angular-thrift for more robust
implementation in coming diffs.

Testing Done:
gradle clean build

Tested the UI using the isolated scheduler.

Bugs closed: AURORA-33

Reviewed at https://reviews.apache.org/r/16528/


Project: http://git-wip-us.apache.org/repos/asf/incubator-aurora/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-aurora/commit/35fcc545
Tree: http://git-wip-us.apache.org/repos/asf/incubator-aurora/tree/35fcc545
Diff: http://git-wip-us.apache.org/repos/asf/incubator-aurora/diff/35fcc545

Branch: refs/heads/master
Commit: 35fcc545aae17e9fa413d1798d3fc7a5fb467973
Parents: b493027
Author: Suman Karumuri <mansu@apache.org>
Authored: Thu Jan 16 17:00:45 2014 -0800
Committer: Suman Karumuri <skarumuri@twitter.com>
Committed: Thu Jan 16 17:00:45 2014 -0800

----------------------------------------------------------------------
 .../bower_components/angular/.bower.json        |    17 +
 .../bower_components/angular/README.md          |    48 +
 .../bower_components/angular/angular-csp.css    |    13 +
 .../bower_components/angular/angular.js         | 20539 +++++++++++++++++
 .../bower_components/angular/angular.min.js     |   201 +
 .../angular/angular.min.js.gzip                 |   Bin 0 -> 36804 bytes
 .../bower_components/angular/angular.min.js.map |     8 +
 .../bower_components/angular/bower.json         |     7 +
 .../bower_components/smart-table/.bower.json    |    25 +
 .../smart-table/Smart-Table.debug.js            |   943 +
 .../smart-table/Smart-Table.min.js              |     1 +
 .../bower_components/smart-table/bower.json     |    15 +
 3rdparty/javascript/thrift.js                   |   779 +
 build.gradle                                    |     4 +-
 .../aurora/scheduler/http/DisplayUtils.java     |     8 -
 .../aurora/scheduler/http/SchedulerzHome.java   |   146 -
 .../aurora/scheduler/http/ServletModule.java    |    38 +-
 .../aurora/scheduler/http/UIRedirectFilter.java |    43 +
 .../aurora/scheduler/http/schedulerzhome.st     |    53 -
 .../apache/aurora/scheduler/http/ui/css/app.css |     9 +
 .../apache/aurora/scheduler/http/ui/index.html  |    43 +
 .../apache/aurora/scheduler/http/ui/js/app.js   |     4 +
 .../aurora/scheduler/http/ui/js/controllers.js  |    24 +
 .../aurora/scheduler/http/ui/js/directives.js   |     8 +
 .../aurora/scheduler/http/ui/js/services.js     |    24 +
 .../aurora/scheduler/http/ui/roleLink.html      |     1 +
 26 files changed, 22787 insertions(+), 214 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/35fcc545/3rdparty/javascript/bower_components/angular/.bower.json
----------------------------------------------------------------------
diff --git a/3rdparty/javascript/bower_components/angular/.bower.json b/3rdparty/javascript/bower_components/angular/.bower.json
new file mode 100644
index 0000000..ee8284d
--- /dev/null
+++ b/3rdparty/javascript/bower_components/angular/.bower.json
@@ -0,0 +1,17 @@
+{
+  "name": "angular",
+  "version": "1.2.6",
+  "main": "./angular.js",
+  "dependencies": {},
+  "homepage": "https://github.com/angular/bower-angular",
+  "_release": "1.2.6",
+  "_resolution": {
+    "type": "version",
+    "tag": "v1.2.6",
+    "commit": "74ab84326c3ddf32fa49f36c9050b92382d1b5cc"
+  },
+  "_source": "git://github.com/angular/bower-angular.git",
+  "_target": "~1.2.6",
+  "_originalSource": "angular",
+  "_direct": true
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/35fcc545/3rdparty/javascript/bower_components/angular/README.md
----------------------------------------------------------------------
diff --git a/3rdparty/javascript/bower_components/angular/README.md b/3rdparty/javascript/bower_components/angular/README.md
new file mode 100644
index 0000000..fc0c099
--- /dev/null
+++ b/3rdparty/javascript/bower_components/angular/README.md
@@ -0,0 +1,48 @@
+# bower-angular
+
+This repo is for distribution on `bower`. The source for this module is in the
+[main AngularJS repo](https://github.com/angular/angular.js).
+Please file issues and pull requests against that repo.
+
+## Install
+
+Install with `bower`:
+
+```shell
+bower install angular
+```
+
+Add a `<script>` to your `index.html`:
+
+```html
+<script src="/bower_components/angular/angular.js"></script>
+```
+
+## Documentation
+
+Documentation is available on the
+[AngularJS docs site](http://docs.angularjs.org/).
+
+## License
+
+The MIT License
+
+Copyright (c) 2010-2012 Google, Inc. http://angularjs.org
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.

http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/35fcc545/3rdparty/javascript/bower_components/angular/angular-csp.css
----------------------------------------------------------------------
diff --git a/3rdparty/javascript/bower_components/angular/angular-csp.css b/3rdparty/javascript/bower_components/angular/angular-csp.css
new file mode 100644
index 0000000..763f7b9
--- /dev/null
+++ b/3rdparty/javascript/bower_components/angular/angular-csp.css
@@ -0,0 +1,13 @@
+/* Include this file in your html if you are using the CSP mode. */
+
+@charset "UTF-8";
+
+[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak],
+.ng-cloak, .x-ng-cloak,
+.ng-hide {
+  display: none !important;
+}
+
+ng\:form {
+  display: block;
+}


Mime
View raw message