You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by va...@apache.org on 2015/03/18 22:58:45 UTC

[4/4] ode-console git commit: initial import.

initial import.


Project: http://git-wip-us.apache.org/repos/asf/ode-console/repo
Commit: http://git-wip-us.apache.org/repos/asf/ode-console/commit/4ee2cbad
Tree: http://git-wip-us.apache.org/repos/asf/ode-console/tree/4ee2cbad
Diff: http://git-wip-us.apache.org/repos/asf/ode-console/diff/4ee2cbad

Branch: refs/heads/master
Commit: 4ee2cbad3bcd21bd5fca43ed4d6b0c81f9cc9e5f
Parents: 
Author: Tammo van Lessen <tv...@gmail.com>
Authored: Wed Mar 18 22:58:34 2015 +0100
Committer: Tammo van Lessen <tv...@gmail.com>
Committed: Wed Mar 18 22:58:34 2015 +0100

----------------------------------------------------------------------
 .bowerrc                                       |    3 +
 .editorconfig                                  |   13 +
 .gitignore                                     |    5 +
 .jshintrc                                      |   35 +
 LICENSE                                        |  250 +
 NOTICE                                         |   10 +
 README.md                                      |   35 +
 TODO                                           |   33 +
 bower.json                                     |   48 +
 e2e/main.po.js                                 |   18 +
 e2e/main.spec.js                               |   21 +
 gulp/build.js                                  |  145 +
 gulp/e2e-tests.js                              |   36 +
 gulp/proxy.js                                  |   65 +
 gulp/server.js                                 |   58 +
 gulp/unit-tests.js                             |   30 +
 gulp/watch.js                                  |   10 +
 gulp/wiredep.js                                |   15 +
 gulpfile.js                                    |    9 +
 karma.conf.js                                  |   17 +
 package.json                                   |   44 +
 protractor.conf.js                             |   21 +
 src/404.html                                   |  157 +
 src/app/confirmdialog.html                     |   10 +
 src/app/dashboard/dashboard.controller.js      |   51 +
 src/app/dashboard/dashboard.html               |   80 +
 src/app/index.js                               |   94 +
 src/app/index.scss                             |   69 +
 src/app/instance/corrpropinfodialog.html       |   24 +
 src/app/instance/faultinfodialog.html          |   16 +
 src/app/instance/instance.controller.js        |  123 +
 src/app/instance/instance.controller.spec.js   |   41 +
 src/app/instance/instance.html                 |  175 +
 src/app/instance/instance.service.js           |  485 ++
 src/app/instance/instanceactionbuttons.html    |   14 +
 src/app/instance/instanceactions.controller.js |   97 +
 src/app/instance/instancelist.controller.js    |   70 +
 src/app/instance/instancelist.html             |   78 +
 src/app/instance/recoverydialog.html           |   55 +
 src/app/instance/varinfodialog.html            |   15 +
 src/app/process/process.controller.js          |   61 +
 src/app/process/process.html                   |   99 +
 src/app/process/process.service.js             |  270 +
 src/app/process/processactionbuttons.html      |    8 +
 src/app/process/processactions.controller.js   |   63 +
 src/app/process/processlist.controller.js      |   55 +
 src/app/process/processlist.controller.spec.js |   40 +
 src/app/process/processlist.html               |   79 +
 src/app/really.directive.js                    |   48 +
 src/app/soap.service.js                        |  129 +
 src/app/st-select.directive.js                 |   43 +
 src/app/vendor.scss                            |   71 +
 src/assets/images/ode-logo.png                 |  Bin 0 -> 4857 bytes
 src/components/navbar/navbar.controller.js     |   16 +
 src/components/navbar/navbar.html              |   26 +
 src/favicon.ico                                |  Bin 0 -> 2558 bytes
 src/index.html                                 |   90 +
 src/vendor/jquery.xpath.js                     | 6352 +++++++++++++++++++
 src/vendor/vkbeautify.js                       |  357 ++
 59 files changed, 10382 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ode-console/blob/4ee2cbad/.bowerrc
----------------------------------------------------------------------
diff --git a/.bowerrc b/.bowerrc
new file mode 100644
index 0000000..69fad35
--- /dev/null
+++ b/.bowerrc
@@ -0,0 +1,3 @@
+{
+  "directory": "bower_components"
+}

http://git-wip-us.apache.org/repos/asf/ode-console/blob/4ee2cbad/.editorconfig
----------------------------------------------------------------------
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..e717f5e
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,13 @@
+# http://editorconfig.org
+root = true
+
+[*]
+indent_style = space
+indent_size = 2
+end_of_line = lf
+charset = utf-8
+trim_trailing_whitespace = true
+insert_final_newline = true
+
+[*.md]
+trim_trailing_whitespace = false

http://git-wip-us.apache.org/repos/asf/ode-console/blob/4ee2cbad/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..234d64a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+node_modules/
+bower_components/
+.sass-cache/
+.tmp/
+dist/

http://git-wip-us.apache.org/repos/asf/ode-console/blob/4ee2cbad/.jshintrc
----------------------------------------------------------------------
diff --git a/.jshintrc b/.jshintrc
new file mode 100644
index 0000000..2683e48
--- /dev/null
+++ b/.jshintrc
@@ -0,0 +1,35 @@
+{
+  "node": true,
+  "esnext": true,
+  "bitwise": true,
+  "camelcase": true,
+  "curly": true,
+  "eqeqeq": true,
+  "immed": true,
+  "indent": 2,
+  "latedef": true,
+  "newcap": true,
+  "noarg": true,
+  "quotmark": "single",
+  "regexp": true,
+  "undef": true,
+  "unused": true,
+  "strict": true,
+  "trailing": true,
+  "smarttabs": true,
+  "white": true,
+  "validthis": true,
+  "globals": {
+    "angular": false,
+    // Angular Mocks
+    "inject": false,
+    // JASMINE
+    "describe": false,
+    "it": false,
+    "before": false,
+    "beforeEach": false,
+    "after": false,
+    "afterEach": false,
+    "expect": false
+  }
+}

http://git-wip-us.apache.org/repos/asf/ode-console/blob/4ee2cbad/LICENSE
----------------------------------------------------------------------
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..1c6ce16
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,250 @@
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+=======================================================================
+
+The following third-party licenses are included:
+
+├─ angular-bootstrap@0.12.0
+│  └─ licenses: UNKNOWN
+├─ angularpoller@0.3.2
+│  ├─ licenses: MIT*
+│  └─ homepage: https://github.com/emmaguo/angular-poller.git
+├─ angular-ui-ace@0.2.2
+│  └─ licenses: UNKNOWN
+├─ angular-xml@1.0.8
+│  └─ licenses: MIT*
+├─ font-awesome@4.2.0
+│  ├─ licenses
+│  │  ├─ 0: OFL-1.1
+│  │  ├─ 1: MIT
+│  │  └─ 2: CC-BY-3.0
+│  └─ homepage: http://fontawesome.io
+├─ jquery@2.1.3
+│  └─ licenses
+│     └─ 0: MIT
+├─ moment@2.8.4
+│  └─ licenses: MIT*
+├─ ngToast@1.2.1
+│  └─ licenses: MIT*
+├─ roboto-slab-fontface-bower@0.0.1
+│  └─ licenses: Apache*
+├─ angular@1.3.11
+│  ├─ licenses: MIT*
+│  └─ repository: https://github.com/angular/angular.js
+├─ angular-base64-upload@v0.0.3
+│  ├─ licenses: MIT*
+│  ├─ homepage: https://github.com/adonespitogo/angular-base64-upload
+│  └─ repository: https://github.com/adonespitogo/angular-base64-upload
+├─ angular-animate@1.3.11
+│  ├─ licenses: MIT*
+│  └─ repository: https://github.com/angular/angular.js
+├─ angular-mocks@1.3.11
+│  ├─ licenses: MIT*
+│  └─ repository: https://github.com/angular/angular.js
+├─ angular-moment@0.8.3
+│  ├─ licenses: MIT*
+│  ├─ repository: http://github.com/urish/angular-moment
+│  └─ homepage: http://github.com/urish/angular-moment
+├─ angular-loading-bar@0.6.0
+│  ├─ licenses: MIT*
+│  └─ repository: https://github.com/chieffancypants/angular-loading-bar
+├─ angular-route@1.3.11
+│  ├─ licenses: MIT*
+│  └─ repository: https://github.com/angular/angular.js
+├─ angular-sanitize@1.3.11
+│  ├─ licenses: MIT*
+│  └─ repository: https://github.com/angular/angular.js
+├─ smart-table@1.4.8
+│  ├─ licenses: MIT*
+│  ├─ homepage: https://github.com/lorenzofox3/Smart-Table
+│  └─ repository: https://github.com/lorenzofox3/Smart-Table
+├─ bootstrap-sass@3.3.3
+│  ├─ licenses: MIT*
+│  ├─ homepage: https://github.com/twbs/bootstrap-sass
+│  └─ repository: https://github.com/twbs/bootstrap-sass
+├─ modernizr@2.8.3
+│  ├─ licenses: MIT*
+│  └─ homepage: https://github.com/Modernizr/Modernizr
+├─ underscore@1.7.0
+│  ├─ licenses: MIT*
+│  └─ repository: https://github.com/jashkenas/underscore
+└─ ace-builds@1.1.8
+   ├─ licenses: MIT*
+   ├─ homepage: https://github.com/ajaxorg/ace-builds
+   └─ repository: https://github.com/ajaxorg/ace-builds
+

http://git-wip-us.apache.org/repos/asf/ode-console/blob/4ee2cbad/NOTICE
----------------------------------------------------------------------
diff --git a/NOTICE b/NOTICE
new file mode 100644
index 0000000..cddb69e
--- /dev/null
+++ b/NOTICE
@@ -0,0 +1,10 @@
+  =========================================================================
+  ==  NOTICE file for use with the Apache License, Version 2.0,          ==
+  ==  in this case for the Apache ODE Console distribution.              ==
+  =========================================================================
+
+  Apache Ode (Console)
+  Copyright 2015 The Apache Software Foundation
+
+  This product includes software developed at
+  The Apache Software Foundation (http://www.apache.org/).

http://git-wip-us.apache.org/repos/asf/ode-console/blob/4ee2cbad/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..85dce1c
--- /dev/null
+++ b/README.md
@@ -0,0 +1,35 @@
+# Apache ODE Console
+
+**Apache ODE** (Orchestration Director Engine) executes business processes written following the [WS-BPEL](http://ode.apache.org/ws-bpel-20.html) standard. It talks to web services, sending and receiving messages, handling data manipulation and error recovery as described by your process definition. It supports both long and short living process executions to orchestrate all the services that are part of your application.
+
+**Apache ODE Console** is a web console for monitoring and controlling Apache ODE.
+
+## Features
+* Deployment of BPEL processes via web upload.
+* List of process models (and the possibility to undeploy, retire, activate them).
+* List of process instances.
+* Query and filter for process instances.
+* Detail view of process instances.
+* Ability to change variable values.
+* Ability to trigger activity recovery.
+
+## Build
+
+* `gulp` or `gulp build` to build an optimized version of your application in `/dist`
+* `gulp serve` to launch a browser sync server on your source files
+* `gulp serve:dist` to launch a server on your optimized application
+* `gulp test` to launch your unit tests with Karma
+* `gulp test:auto` to launch your unit tests with Karma in watch mode
+* `gulp protractor` to launch your e2e tests with Protractor
+* `gulp protractor:dist` to launch your e2e tests with Protractor on the dist files
+
+## Install / Usage
+
+There are two ways of installing ODE console.
+
+1. Copy contents of `/dist` after building to the exploded webapp folder of ODE within a web container, e.g. Tomcat.
+2. Change the endpoint references IMAPI_ENDPOINT, PMAPI_ENDPOINT and DSAPI_ENDPOINT to point to your ODE installation and serve ODE console from what ever webserver you like. ODE console is a single page app that has no specific server-side requirements. When ODE and ODE console are exposed on different hosts and ports, make sure that ODE sets correct CORS headers so that the console can access ODE's endpoints.
+
+## License
+
+Apache Software License 2.0

http://git-wip-us.apache.org/repos/asf/ode-console/blob/4ee2cbad/TODO
----------------------------------------------------------------------
diff --git a/TODO b/TODO
new file mode 100644
index 0000000..38fda11
--- /dev/null
+++ b/TODO
@@ -0,0 +1,33 @@
+# TODOs
+
+- [x] document services
+- [x] instance selections and mass changes
+- [x] parse QNames of instance faults and processFullNames
+- [x] show loading indicator/spinner
+- [x] show variable contents in instance details view
+- [x] implement activity recovery
+- [x] pretty print xml
+- [x] show endpoints on process details page
+- [x] show activity recovery counts in process list and details page
+- [x] migrate list* operations to SOAP calls.
+- [x] dont rely on remote fonts.
+- [x] implement upload deployment via SOAP
+- [x] edit variable contents in instance details view
+
+- [ ] check and fix LICENSE and NOTICE files
+- [ ] write tests!
+- [ ] add package detail view and show BPEL and WSDL sources there (PMAPI change needed)
+- [ ] handle instance/process not found cases in detail views
+- [ ] set and get process properties (also fix ODE as it returns stale values)
+- [ ] (build) add https://github.com/petebacondarwin/dgeni-example
+- [ ] detect offline
+- [ ] add events view to instance details page
+- [ ] show scope tree in instance details view
+- [ ] retrieve the replay communication and provide a dialog to replay it to a new instance.
+- [ ] parse service-refs and display it nicely. Should support all service-refs supported by ODE (WSDL 1.1, WSDL 2.0, WSA, URL)
+- [ ] render scope/activities dependency graph e.g. with https://github.com/cpettitt/dagre-d3
+- [ ] pre-parse and validate query language
+- [ ] display visual BPEL graph and map events to it (proposed GSOC project)
+
+## Deferred
+- [ ] Show WSDL URL for processes (this would be IL dependent, thus defered for now)

http://git-wip-us.apache.org/repos/asf/ode-console/blob/4ee2cbad/bower.json
----------------------------------------------------------------------
diff --git a/bower.json b/bower.json
new file mode 100644
index 0000000..a8e0709
--- /dev/null
+++ b/bower.json
@@ -0,0 +1,48 @@
+{
+  "name": "odeConsole",
+  "version": "0.0.0",
+  "dependencies": {
+    "modernizr": "~2.8.3",
+    "jquery": "~2.1.1",
+    "angular-animate": "~1.3.11",
+    "angular-sanitize": "~1.3.11",
+    "angular-route": "~1.3.11",
+    "bootstrap-sass-official": "~3.3.1",
+    "angular-bootstrap": "0.12.x",
+    "angular": "~1.3.11",
+    "angular-smart-table": "~1.4.5",
+    "angular-xml": "~1.0.8",
+    "angular-poller": "~0.3.2",
+    "angular-moment": "~0.8.2",
+    "ngtoast": "~1.2.1",
+    "underscore": "~1.7.0",
+    "font-awesome": "~4.2.0",
+    "angular-loading-bar": "~0.6.0",
+    "angular-ui-ace": "bower",
+    "roboto-slab-fontface": "*",
+    "angular-base64-upload": "~0.0.3"
+  },
+  "devDependencies": {
+    "angular-mocks": "~1.3.6"
+  },
+  "resolutions": {
+    "jquery": "~2.1.1",
+    "angular": "~1.3.11",
+    "angular-animate": "~1.3.11",
+    "angular-sanitize": "~1.3.11"
+  },
+  "overrides": {
+    "ace-builds": {
+      "main": [
+        "src-min-noconflict/ace.js",
+        "src-min-noconflict/mode-xml.js"
+      ]
+    },
+    "roboto-slab-fontface": {
+      "main": [
+        "./roboto-slab-fontface.css",
+        "./fonts/*"
+      ]
+    }
+  }
+}

http://git-wip-us.apache.org/repos/asf/ode-console/blob/4ee2cbad/e2e/main.po.js
----------------------------------------------------------------------
diff --git a/e2e/main.po.js b/e2e/main.po.js
new file mode 100644
index 0000000..2ae8e2c
--- /dev/null
+++ b/e2e/main.po.js
@@ -0,0 +1,18 @@
+/**
+ * This file uses the Page Object pattern to define the main page for tests
+ * https://docs.google.com/presentation/d/1B6manhG0zEXkC-H-tPo2vwU06JhL8w9-XCF9oehXzAQ
+ */
+
+'use strict';
+
+var MainPage = function() {
+  this.jumbEl = element(by.css('.jumbotron'));
+  this.h1El = this.jumbEl.element(by.css('h1'));
+  this.imgEl = this.jumbEl.element(by.css('img'));
+
+  this.techEl = element(by.css('.row'));
+  this.thumbnailEls = this.techEl.all(by.repeater('awesomeThing in awesomeThings'));
+};
+
+module.exports = new MainPage();
+

http://git-wip-us.apache.org/repos/asf/ode-console/blob/4ee2cbad/e2e/main.spec.js
----------------------------------------------------------------------
diff --git a/e2e/main.spec.js b/e2e/main.spec.js
new file mode 100644
index 0000000..da89d22
--- /dev/null
+++ b/e2e/main.spec.js
@@ -0,0 +1,21 @@
+'use strict';
+
+describe('The main view', function () {
+  var page;
+
+  beforeEach(function () {
+    browser.get('http://localhost:3000/index.html');
+    page = require('./main.po');
+  });
+
+  it('should include jumbotron with correct data', function() {
+    expect(page.h1El.getText()).toBe('\'Allo, \'Allo!');
+    expect(page.imgEl.getAttribute('src')).toMatch(/assets\/images\/yeoman.png$/);
+    expect(page.imgEl.getAttribute('alt')).toBe('I\'m Yeoman');
+  });
+
+  it('list more than 5 awesome things', function () {
+    expect(page.thumbnailEls.count()).toBeGreaterThan(5);
+  });
+
+});

http://git-wip-us.apache.org/repos/asf/ode-console/blob/4ee2cbad/gulp/build.js
----------------------------------------------------------------------
diff --git a/gulp/build.js b/gulp/build.js
new file mode 100644
index 0000000..bef1ccf
--- /dev/null
+++ b/gulp/build.js
@@ -0,0 +1,145 @@
+'use strict';
+
+var gulp = require('gulp');
+
+var $ = require('gulp-load-plugins')({
+  pattern: ['gulp-*', 'main-bower-files', 'uglify-save-license', 'del']
+});
+
+gulp.task('styles', ['wiredep', 'injector:css:preprocessor'], function () {
+  return gulp.src(['src/app/index.scss', 'src/app/vendor.scss'])
+    .pipe($.sass({style: 'expanded'}))
+    .on('error', function handleError(err) {
+      console.error(err.toString());
+      this.emit('end');
+    })
+    .pipe($.autoprefixer('last 1 version'))
+    .pipe(gulp.dest('.tmp/app/'));
+});
+
+gulp.task('injector:css:preprocessor', function () {
+  return gulp.src('src/app/index.scss')
+    .pipe($.inject(gulp.src([
+        'src/{app,components}/**/*.scss',
+        '!src/app/index.scss',
+        '!src/app/vendor.scss' 
+      ], {read: false}), {
+      transform: function(filePath) {
+        filePath = filePath.replace('src/app/', '');
+        filePath = filePath.replace('src/components/', '../components/');
+        return '@import \'' + filePath + '\';';
+      },
+      starttag: '// injector',
+      endtag: '// endinjector',
+      addRootSlash: false
+    }))
+    .pipe(gulp.dest('src/app/'));
+});
+
+gulp.task('injector:css', ['styles'], function () {
+  return gulp.src('src/index.html')
+    .pipe($.inject(gulp.src([
+        '.tmp/{app,components}/**/*.css',
+        '!.tmp/app/vendor.css'
+      ], {read: false}), {
+      ignorePath: '.tmp',
+      addRootSlash: false
+    }))
+    .pipe(gulp.dest('src/'));
+});
+
+gulp.task('jshint', function () {
+  return gulp.src('src/{app,components}/**/*.js')
+    .pipe($.jshint())
+    .pipe($.jshint.reporter('jshint-stylish'));
+});
+
+gulp.task('injector:js', ['jshint', 'injector:css'], function () {
+  return gulp.src('src/index.html')
+    .pipe($.inject(gulp.src([
+        'src/{app,components,vendor}/**/*.js',
+        '!src/{app,components,vendor}/**/*.spec.js',
+        '!src/{app,components,vendor}/**/*.mock.js'
+      ], {read: false}), {
+      ignorePath: 'src',
+      addRootSlash: false
+    }))
+    .pipe(gulp.dest('src/'));
+});
+
+gulp.task('partials', function () {
+  return gulp.src('src/{app,components}/**/*.html')
+    .pipe($.minifyHtml({
+      empty: true,
+      spare: true,
+      quotes: true
+    }))
+    .pipe($.angularTemplatecache('templateCacheHtml.js', {
+      module: 'odeConsole'
+    }))
+    .pipe(gulp.dest('.tmp/inject/'));
+});
+
+gulp.task('html', ['wiredep', 'injector:css', 'injector:js', 'partials'], function () {
+  var htmlFilter = $.filter('*.html');
+  var jsFilter = $.filter('**/*.js');
+  var cssFilter = $.filter('**/*.css');
+  var assets;
+
+  return gulp.src('src/*.html')
+    .pipe($.inject(gulp.src('.tmp/inject/templateCacheHtml.js', {read: false}), {
+      starttag: '<!-- inject:partials -->',
+      ignorePath: '.tmp',
+      addRootSlash: false
+    }))
+    .pipe(assets = $.useref.assets())
+    .pipe($.rev())
+    .pipe(jsFilter)
+    .pipe($.ngAnnotate())
+    .pipe($.uglify({preserveComments: $.uglifySaveLicense}))
+    .pipe(jsFilter.restore())
+    .pipe(cssFilter)
+    .pipe($.replace('bower_components/bootstrap-sass-official/assets/fonts/bootstrap','fonts'))
+    .pipe($.csso())
+    .pipe(cssFilter.restore())
+    .pipe(assets.restore())
+    .pipe($.useref())
+    .pipe($.revReplace())
+    .pipe(htmlFilter)
+    .pipe($.minifyHtml({
+      empty: true,
+      spare: true,
+      quotes: true
+    }))
+    .pipe(htmlFilter.restore())
+    .pipe(gulp.dest('dist/'))
+    .pipe($.size({ title: 'dist/', showFiles: true }));
+});
+
+gulp.task('images', function () {
+  return gulp.src('src/assets/images/**/*')
+    .pipe($.cache($.imagemin({
+      optimizationLevel: 3,
+      progressive: true,
+      interlaced: true
+    })))
+    .pipe(gulp.dest('dist/assets/images/'));
+});
+
+gulp.task('fonts', function () {
+  return gulp.src($.mainBowerFiles())
+    .pipe($.filter('**/*.{eot,svg,ttf,woff}'))
+    .pipe($.flatten())
+    .pipe(gulp.dest('dist/fonts/'));
+});
+
+gulp.task('misc', function () {
+  return gulp.src('src/**/*.ico')
+    .pipe(gulp.dest('dist/'));
+});
+
+gulp.task('clean', function (done) {
+  $.del(['dist/', '.tmp/'], done);
+});
+
+gulp.task('build', ['html', 'images', 'fonts', 'misc']);

http://git-wip-us.apache.org/repos/asf/ode-console/blob/4ee2cbad/gulp/e2e-tests.js
----------------------------------------------------------------------
diff --git a/gulp/e2e-tests.js b/gulp/e2e-tests.js
new file mode 100644
index 0000000..c248188
--- /dev/null
+++ b/gulp/e2e-tests.js
@@ -0,0 +1,36 @@
+'use strict';
+
+var gulp = require('gulp');
+
+var $ = require('gulp-load-plugins')();
+
+var browserSync = require('browser-sync');
+
+// Downloads the selenium webdriver
+gulp.task('webdriver-update', $.protractor.webdriver_update);
+
+gulp.task('webdriver-standalone', $.protractor.webdriver_standalone);
+
+gulp.task('protractor-only', ['webdriver-update', 'wiredep'], function (done) {
+  var testFiles = [
+    'test/e2e/**/*.js'
+  ];
+
+  gulp.src(testFiles)
+    .pipe($.protractor.protractor({
+      configFile: 'protractor.conf.js',
+    }))
+    .on('error', function (err) {
+      // Make sure failed tests cause gulp to exit non-zero
+      throw err;
+    })
+    .on('end', function () {
+      // Close browser sync server
+      browserSync.exit();
+      done();
+    });
+});
+
+gulp.task('protractor', ['serve:e2e', 'protractor-only']);
+gulp.task('protractor:src', ['serve:e2e', 'protractor-only']);
+gulp.task('protractor:dist', ['serve:e2e-dist', 'protractor-only']);

http://git-wip-us.apache.org/repos/asf/ode-console/blob/4ee2cbad/gulp/proxy.js
----------------------------------------------------------------------
diff --git a/gulp/proxy.js b/gulp/proxy.js
new file mode 100644
index 0000000..2fcd734
--- /dev/null
+++ b/gulp/proxy.js
@@ -0,0 +1,65 @@
+ /*jshint unused:false */
+
+/***************
+
+  This file allow to configure a proxy system plugged into BrowserSync
+  in order to redirect backend requests while still serving and watching
+  files from the web project
+
+  IMPORTANT: The proxy is disabled by default.
+
+  If you want to enable it, watch at the configuration options and finally
+  change the `module.exports` at the end of the file
+
+***************/
+
+'use strict';
+
+var httpProxy = require('http-proxy');
+var chalk = require('chalk');
+
+/*
+ * Location of your backend server
+ */
+var proxyTarget = 'http://server/context/';
+
+var proxy = httpProxy.createProxyServer({
+  target: proxyTarget
+});
+
+proxy.on('error', function(error, req, res) {
+  res.writeHead(500, {
+    'Content-Type': 'text/plain'
+  });
+
+  console.error(chalk.red('[Proxy]'), error);
+});
+
+/*
+ * The proxy middleware is an Express middleware added to BrowserSync to
+ * handle backend request and proxy them to your backend.
+ */
+function proxyMiddleware(req, res, next) {
+  /*
+   * This test is the switch of each request to determine if the request is
+   * for a static file to be handled by BrowserSync or a backend request to proxy.
+   *
+   * The existing test is a standard check on the files extensions but it may fail
+   * for your needs. If you can, you could also check on a context in the url which
+   * may be more reliable but can't be generic.
+   */
+  if (/\.(html|css|js|png|jpg|jpeg|gif|ico|xml|rss|txt|eot|svg|ttf|woff|cur)(\?((r|v|rel|rev)=[\-\.\w]*)?)?$/.test(req.url)) {
+    next();
+  } else {
+    proxy.web(req, res);
+  }
+}
+
+/*
+ * This is where you activate or not your proxy.
+ *
+ * The first line activate if and the second one ignored it
+ */
+
+//module.exports = [proxyMiddleware];
+module.exports = [];

http://git-wip-us.apache.org/repos/asf/ode-console/blob/4ee2cbad/gulp/server.js
----------------------------------------------------------------------
diff --git a/gulp/server.js b/gulp/server.js
new file mode 100644
index 0000000..76ed368
--- /dev/null
+++ b/gulp/server.js
@@ -0,0 +1,58 @@
+'use strict';
+
+var gulp = require('gulp');
+
+var util = require('util');
+
+var browserSync = require('browser-sync');
+
+var middleware = require('./proxy');
+
+function browserSyncInit(baseDir, files, browser) {
+  browser = browser === undefined ? 'default' : browser;
+
+  var routes = null;
+  if(baseDir === 'src' || (util.isArray(baseDir) && baseDir.indexOf('src') !== -1)) {
+    routes = {
+      // Should be '/bower_components': '../bower_components'
+      // Waiting for https://github.com/shakyShane/browser-sync/issues/308
+      '/bower_components': 'bower_components'
+    };
+  }
+
+  browserSync.instance = browserSync.init(files, {
+    startPath: '/',
+    server: {
+      baseDir: baseDir,
+      middleware: middleware,
+      routes: routes
+    },
+    browser: browser
+  });
+
+}
+
+gulp.task('serve', ['watch'], function () {
+  browserSyncInit([
+    'src',
+    '.tmp'
+  ], [
+    '.tmp/{app,components}/**/*.css',
+    'src/assets/images/**/*',
+    'src/*.html',
+    'src/{app,components}/**/*.html',
+    'src/{app,components}/**/*.js'
+  ]);
+});
+
+gulp.task('serve:dist', ['build'], function () {
+  browserSyncInit('dist');
+});
+
+gulp.task('serve:e2e', function () {
+  browserSyncInit(['src', '.tmp'], null, []);
+});
+
+gulp.task('serve:e2e-dist', ['watch'], function () {
+  browserSyncInit('dist', null, []);
+});

http://git-wip-us.apache.org/repos/asf/ode-console/blob/4ee2cbad/gulp/unit-tests.js
----------------------------------------------------------------------
diff --git a/gulp/unit-tests.js b/gulp/unit-tests.js
new file mode 100644
index 0000000..05ff6a0
--- /dev/null
+++ b/gulp/unit-tests.js
@@ -0,0 +1,30 @@
+'use strict';
+
+var gulp = require('gulp');
+
+var $ = require('gulp-load-plugins')();
+
+var wiredep = require('wiredep');
+
+gulp.task('test', function() {
+  var bowerDeps = wiredep({
+    directory: 'bower_components',
+    exclude: ['bootstrap-sass-official'],
+    dependencies: true,
+    devDependencies: true
+  });
+
+  var testFiles = bowerDeps.js.concat([
+    'src/{app,components}/**/*.js'
+  ]);
+
+  return gulp.src(testFiles)
+    .pipe($.karma({
+      configFile: 'karma.conf.js',
+      action: 'run'
+    }))
+    .on('error', function(err) {
+      // Make sure failed tests cause gulp to exit non-zero
+      throw err;
+    });
+});

http://git-wip-us.apache.org/repos/asf/ode-console/blob/4ee2cbad/gulp/watch.js
----------------------------------------------------------------------
diff --git a/gulp/watch.js b/gulp/watch.js
new file mode 100644
index 0000000..c7459e8
--- /dev/null
+++ b/gulp/watch.js
@@ -0,0 +1,10 @@
+'use strict';
+
+var gulp = require('gulp');
+
+gulp.task('watch', ['wiredep', 'injector:css', 'injector:js'] ,function () {
+  gulp.watch('src/{app,components}/**/*.scss', ['injector:css']);
+  gulp.watch('src/{app,components}/**/*.js', ['injector:js']);
+  gulp.watch('src/assets/images/**/*', ['images']);
+  gulp.watch('bower.json', ['wiredep']);
+});

http://git-wip-us.apache.org/repos/asf/ode-console/blob/4ee2cbad/gulp/wiredep.js
----------------------------------------------------------------------
diff --git a/gulp/wiredep.js b/gulp/wiredep.js
new file mode 100644
index 0000000..7695787
--- /dev/null
+++ b/gulp/wiredep.js
@@ -0,0 +1,15 @@
+'use strict';
+
+var gulp = require('gulp');
+
+// inject bower components
+gulp.task('wiredep', function () {
+  var wiredep = require('wiredep').stream;
+
+  return gulp.src('src/index.html')
+    .pipe(wiredep({
+      directory: 'bower_components',
+      exclude: [/bootstrap-sass-official/, /bootstrap.css/]
+    }))
+    .pipe(gulp.dest('src'));
+});

http://git-wip-us.apache.org/repos/asf/ode-console/blob/4ee2cbad/gulpfile.js
----------------------------------------------------------------------
diff --git a/gulpfile.js b/gulpfile.js
new file mode 100644
index 0000000..9670cf3
--- /dev/null
+++ b/gulpfile.js
@@ -0,0 +1,9 @@
+'use strict';
+
+var gulp = require('gulp');
+
+require('require-dir')('./gulp');
+
+gulp.task('default', ['clean'], function () {
+    gulp.start('build');
+});

http://git-wip-us.apache.org/repos/asf/ode-console/blob/4ee2cbad/karma.conf.js
----------------------------------------------------------------------
diff --git a/karma.conf.js b/karma.conf.js
new file mode 100644
index 0000000..12e3ff3
--- /dev/null
+++ b/karma.conf.js
@@ -0,0 +1,17 @@
+'use strict';
+
+module.exports = function(config) {
+
+  config.set({
+    autoWatch : false,
+
+    frameworks: ['jasmine'],
+
+    browsers : ['PhantomJS'],
+
+    plugins : [
+        'karma-phantomjs-launcher',
+        'karma-jasmine'
+    ]
+  });
+};

http://git-wip-us.apache.org/repos/asf/ode-console/blob/4ee2cbad/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..a80c0bc
--- /dev/null
+++ b/package.json
@@ -0,0 +1,44 @@
+{
+  "name": "ode-console",
+  "version": "0.1.0",
+  "dependencies": {},
+  "devDependencies": {
+    "gulp": "~3.8.10",
+    "gulp-autoprefixer": "~2.0.0",
+    "gulp-cache": "~0.2.4",
+    "gulp-angular-templatecache": "~1.4.2",
+    "del": "~0.1.3",
+    "gulp-csso": "~0.2.9",
+    "gulp-filter": "~1.0.2",
+    "gulp-flatten": "~0.0.4",
+    "gulp-imagemin": "~2.0.0",
+    "gulp-jshint": "~1.9.0",
+    "gulp-load-plugins": "~0.7.1",
+    "gulp-size": "~1.1.0",
+    "gulp-uglify": "~1.0.1",
+    "gulp-useref": "~1.0.2",
+    "gulp-ng-annotate": "~0.5.0",
+    "gulp-replace": "~0.5.0",
+    "gulp-rev": "~2.0.1",
+    "gulp-rev-replace": "~0.3.1",
+    "gulp-minify-html": "~0.1.7",
+    "gulp-inject": "~1.0.2",
+    "gulp-protractor": "~0.0.12",
+    "gulp-karma": "~0.0.4",
+    "gulp-sass": "~1.1.0",
+    "main-bower-files": "~2.4.0",
+    "jshint-stylish": "~1.0.0",
+    "wiredep": "~2.2.0",
+    "karma-jasmine": "~0.3.1",
+    "karma-phantomjs-launcher": "~0.1.4",
+    "require-dir": "~0.1.0",
+    "browser-sync": "~1.7.1",
+    "http-proxy": "~1.7.0",
+    "chalk": "~0.5.1",
+    "protractor": "~1.8.0",
+    "uglify-save-license": "~0.4.1"
+  },
+  "engines": {
+    "node": ">=0.10.0"
+  }
+}

http://git-wip-us.apache.org/repos/asf/ode-console/blob/4ee2cbad/protractor.conf.js
----------------------------------------------------------------------
diff --git a/protractor.conf.js b/protractor.conf.js
new file mode 100644
index 0000000..b283f72
--- /dev/null
+++ b/protractor.conf.js
@@ -0,0 +1,21 @@
+// An example configuration file.
+exports.config = {
+  // The address of a running selenium server.
+  //seleniumAddress: 'http://localhost:4444/wd/hub',
+  //seleniumServerJar: deprecated, this should be set on node_modules/protractor/config.json
+
+  // Capabilities to be passed to the webdriver instance.
+  capabilities: {
+    'browserName': 'chrome'
+  },
+
+  // Spec patterns are relative to the current working directly when
+  // protractor is called.
+  specs: ['e2e/**/*.js'],
+
+  // Options to be passed to Jasmine-node.
+  jasmineNodeOpts: {
+    showColors: true,
+    defaultTimeoutInterval: 30000
+  }
+};

http://git-wip-us.apache.org/repos/asf/ode-console/blob/4ee2cbad/src/404.html
----------------------------------------------------------------------
diff --git a/src/404.html b/src/404.html
new file mode 100644
index 0000000..fdace4a
--- /dev/null
+++ b/src/404.html
@@ -0,0 +1,157 @@
+<!DOCTYPE html>
+<html lang="en">
+    <head>
+        <meta charset="utf-8">
+        <title>Page Not Found :(</title>
+        <style>
+            ::-moz-selection {
+                background: #b3d4fc;
+                text-shadow: none;
+            }
+
+            ::selection {
+                background: #b3d4fc;
+                text-shadow: none;
+            }
+
+            html {
+                padding: 30px 10px;
+                font-size: 20px;
+                line-height: 1.4;
+                color: #737373;
+                background: #f0f0f0;
+                -webkit-text-size-adjust: 100%;
+                -ms-text-size-adjust: 100%;
+            }
+
+            html,
+            input {
+                font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
+            }
+
+            body {
+                max-width: 500px;
+                _width: 500px;
+                padding: 30px 20px 50px;
+                border: 1px solid #b3b3b3;
+                border-radius: 4px;
+                margin: 0 auto;
+                box-shadow: 0 1px 10px #a7a7a7, inset 0 1px 0 #fff;
+                background: #fcfcfc;
+            }
+
+            h1 {
+                margin: 0 10px;
+                font-size: 50px;
+                text-align: center;
+            }
+
+            h1 span {
+                color: #bbb;
+            }
+
+            h3 {
+                margin: 1.5em 0 0.5em;
+            }
+
+            p {
+                margin: 1em 0;
+            }
+
+            ul {
+                padding: 0 0 0 40px;
+                margin: 1em 0;
+            }
+
+            .container {
+                max-width: 380px;
+                _width: 380px;
+                margin: 0 auto;
+            }
+
+            /* google search */
+
+            #goog-fixurl ul {
+                list-style: none;
+                padding: 0;
+                margin: 0;
+            }
+
+            #goog-fixurl form {
+                margin: 0;
+            }
+
+            #goog-wm-qt,
+            #goog-wm-sb {
+                border: 1px solid #bbb;
+                font-size: 16px;
+                line-height: normal;
+                vertical-align: top;
+                color: #444;
+                border-radius: 2px;
+            }
+
+            #goog-wm-qt {
+                width: 220px;
+                height: 20px;
+                padding: 5px;
+                margin: 5px 10px 0 0;
+                box-shadow: inset 0 1px 1px #ccc;
+            }
+
+            #goog-wm-sb {
+                display: inline-block;
+                height: 32px;
+                padding: 0 10px;
+                margin: 5px 0 0;
+                white-space: nowrap;
+                cursor: pointer;
+                background-color: #f5f5f5;
+                background-image: -webkit-linear-gradient(rgba(255,255,255,0), #f1f1f1);
+                background-image: -moz-linear-gradient(rgba(255,255,255,0), #f1f1f1);
+                background-image: -ms-linear-gradient(rgba(255,255,255,0), #f1f1f1);
+                background-image: -o-linear-gradient(rgba(255,255,255,0), #f1f1f1);
+                -webkit-appearance: none;
+                -moz-appearance: none;
+                appearance: none;
+                *overflow: visible;
+                *display: inline;
+                *zoom: 1;
+            }
+
+            #goog-wm-sb:hover,
+            #goog-wm-sb:focus {
+                border-color: #aaa;
+                box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
+                background-color: #f8f8f8;
+            }
+
+            #goog-wm-qt:hover,
+            #goog-wm-qt:focus {
+                border-color: #105cb6;
+                outline: 0;
+                color: #222;
+            }
+
+            input::-moz-focus-inner {
+                padding: 0;
+                border: 0;
+            }
+        </style>
+    </head>
+    <body>
+        <div class="container">
+            <h1>Not found <span>:(</span></h1>
+            <p>Sorry, but the page you were trying to view does not exist.</p>
+            <p>It looks like this was the result of either:</p>
+            <ul>
+                <li>a mistyped address</li>
+                <li>an out-of-date link</li>
+            </ul>
+            <script>
+                var GOOG_FIXURL_LANG = (navigator.language || '').slice(0,2),GOOG_FIXURL_SITE = location.host;
+            </script>
+            <script src="//linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>
+        </div>
+    </body>
+</html>

http://git-wip-us.apache.org/repos/asf/ode-console/blob/4ee2cbad/src/app/confirmdialog.html
----------------------------------------------------------------------
diff --git a/src/app/confirmdialog.html b/src/app/confirmdialog.html
new file mode 100644
index 0000000..0107614
--- /dev/null
+++ b/src/app/confirmdialog.html
@@ -0,0 +1,10 @@
+<div class="modal-header">
+  <h3 class="modal-title">Confirmation</h3>
+</div>
+<div class="modal-body">
+  <p>{{message}}</p>
+</div>
+<div class="modal-footer">
+  <button class="btn btn-primary" ng-click="$close()">OK</button>
+  <button class="btn btn-default" ng-click="$dismiss('cancel')">Cancel</button>
+</div>

http://git-wip-us.apache.org/repos/asf/ode-console/blob/4ee2cbad/src/app/dashboard/dashboard.controller.js
----------------------------------------------------------------------
diff --git a/src/app/dashboard/dashboard.controller.js b/src/app/dashboard/dashboard.controller.js
new file mode 100644
index 0000000..ea87724
--- /dev/null
+++ b/src/app/dashboard/dashboard.controller.js
@@ -0,0 +1,51 @@
+/* 
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+'use strict';
+
+angular.module('odeConsole')
+  .controller('DashboardController', function ($scope, $interval, ProcessService) {
+
+  $scope.summary = {};
+  $scope.summary.packages = '-';
+  $scope.summary.processes = '-';
+  $scope.summary.instances = '-';
+
+  $scope.summary.active = '-';
+  $scope.summary.completed = '-';
+  $scope.summary.suspended = '-';
+  $scope.summary.failed = '-';
+  $scope.summary.error = '-';
+  $scope.summary.terminated = '-';
+
+
+  ProcessService.getPackages().then(function() {
+    $scope.summary = ProcessService.summary;
+  });
+
+  // watch for summary changes and update counter badges
+  $scope.$watch(function() {
+      return ProcessService.summary;
+    }, function (newVal, oldVal, scope) {
+      if (newVal) {
+        scope.summary = newVal;
+      }
+  });
+
+});

http://git-wip-us.apache.org/repos/asf/ode-console/blob/4ee2cbad/src/app/dashboard/dashboard.html
----------------------------------------------------------------------
diff --git a/src/app/dashboard/dashboard.html b/src/app/dashboard/dashboard.html
new file mode 100644
index 0000000..01b788c
--- /dev/null
+++ b/src/app/dashboard/dashboard.html
@@ -0,0 +1,80 @@
+<div class="container">
+
+  <div class="row">
+    <div class="col-md-4">
+      <img ng-src="assets/images/ode-logo.png"/>
+    </div>
+    <div class="col-md-8">
+      <div class="row">
+        <h1 class="col-md-12">Dashboard</h1>
+      </div>
+      <div class="row">
+        <div class="col-md-6">
+          <div class="list-group">
+            <a ng-href="#/processes" class="list-group-item">
+              <h3 class="pull-right">
+                <i class="fa fa-folder"></i>
+              </h3>
+              <h4 class="list-group-item-heading count">{{summary.packages}}</h4>
+              <p class="list-group-item-text">Process Packages</p>
+            </a>
+            <a ng-href="#/processes" class="list-group-item">
+              <h3 class="pull-right">
+                <i class="fa fa-file"></i>
+              </h3>
+              <h4 class="list-group-item-heading count">{{summary.processes}}</h4>
+              <p class="list-group-item-text">Process Models</p>
+            </a>
+            <a ng-href="#/instances" class="list-group-item">
+              <h3 class="pull-right">
+                <i class="fa fa-cogs"></i>
+              </h3>
+              <h4 class="list-group-item-heading count">{{summary.instances}}</h4>
+              <p class="list-group-item-text">Process Instances</p>
+            </a>
+          </div>
+        </div>
+        <div class="col-md-6">
+          <div class="list-group">
+            <a ng-href="#/instances?q=status%20%3D%20active" class="list-group-item list-group-item-info">
+              <h3 class="pull-right">
+                <i class="fa fa-cog"></i>
+              </h3>
+              <h4 class="list-group-item-heading count">{{summary.active}}</h4>
+              <p class="list-group-item-text">Active Instances</p>
+            </a>
+            <a ng-href="#/instances?q=status%20%3D%20suspended" class="list-group-item list-group-item-info">
+              <h3 class="pull-right">
+                <i class="fa fa-pause"></i>
+              </h3>
+              <h4 class="list-group-item-heading count">{{summary.suspended}}</h4>
+              <p class="list-group-item-text">Suspended Instances</p>
+            </a>
+            <a ng-href="#/instances?q=status%20%3D%20completed" class="list-group-item list-group-item-success">
+              <h3 class="pull-right">
+                <i class="fa fa-check"></i>
+              </h3>
+              <h4 class="list-group-item-heading count">{{summary.completed}}</h4>
+              <p class="list-group-item-text">Completed Instances</p>
+            </a>
+            <a ng-href="#/instances?q=status%20%3D%20failed" class="list-group-item list-group-item-danger">
+              <h3 class="pull-right">
+                <i class="fa fa-warning"></i>
+              </h3>
+              <h4 class="list-group-item-heading count">{{summary.failed}}</h4>
+              <p class="list-group-item-text">Failed Instances</p>
+            </a>
+            <a ng-href="#/instances?q=status%20%3D%20terminated" class="list-group-item">
+              <h3 class="pull-right">
+                <i class="fa fa-power-off"></i>
+              </h3>
+              <h4 class="list-group-item-heading count">{{summary.terminated}}</h4>
+              <p class="list-group-item-text">Terminated Instances</p>
+            </a>
+          </div>
+        </div>
+      </div>
+    </div>
+  
+  </div>
+</div>

http://git-wip-us.apache.org/repos/asf/ode-console/blob/4ee2cbad/src/app/index.js
----------------------------------------------------------------------
diff --git a/src/app/index.js b/src/app/index.js
new file mode 100644
index 0000000..b5179d6
--- /dev/null
+++ b/src/app/index.js
@@ -0,0 +1,94 @@
+/* 
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/*jslint browser: true*/
+/*global vkbeautify:false */
+
+'use strict';
+
+var underscore = angular.module('underscore', []);
+underscore.factory('_', function() {
+  return window._;
+}); 
+
+
+angular.module('odeConsole', ['ngAnimate', 'ngSanitize', 'ngRoute', 'ui.bootstrap', 'ngToast', 'smart-table', 'xml', 'angularMoment', 'underscore', 'angular-loading-bar', 'ui.ace', 'naif.base64'])
+  .config(function ($httpProvider) {
+        $httpProvider.interceptors.push('xmlHttpInterceptor');
+  })
+  .config(['cfpLoadingBarProvider', function(cfpLoadingBarProvider) {
+    cfpLoadingBarProvider.latencyThreshold = 50;
+  }])
+  .config(function ($routeProvider) {
+    $routeProvider
+      .when('/', {
+        templateUrl: 'app/dashboard/dashboard.html',
+        controller: 'DashboardController'
+      })
+      .when('/instances', {
+        templateUrl: 'app/instance/instancelist.html',
+        controller: 'InstanceListController'
+      })
+      .when('/instances/:iid', {
+        templateUrl: 'app/instance/instance.html',
+        controller: 'InstanceController'
+      })
+      .when('/processes', {
+        templateUrl: 'app/process/processlist.html',
+        controller: 'ProcessListController'
+      })
+      .when('/processes/:pid*', {
+        templateUrl: 'app/process/process.html',
+        controller: 'ProcessController'
+      })
+      .otherwise({
+        redirectTo: '/'
+      });
+  })
+  .constant('IMAPI_ENDPOINT', 'http://localhost:8080/ode/processes/InstanceManagement')
+  .constant('PMAPI_ENDPOINT', 'http://localhost:8080/ode/processes/ProcessManagement')
+  .constant('DSAPI_ENDPOINT', 'http://localhost:8080/ode/processes/DeploymentService')
+  .constant('POLLING_INTERVAL', '4000')
+  .filter('escape', function() {
+    return window.encodeURIComponent;
+  })
+  .filter('vkbeautify', function() {
+    return function(text) { return vkbeautify.xml(text, 2); };
+  }).config(['uiAceConfig', function (uiAceConfig) {
+    angular.extend(uiAceConfig, {
+        ace: {
+          onLoad: function(_editor) {
+            _editor.setOptions({
+                maxLines: Infinity
+            });
+            _editor.setFadeFoldWidgets(true);
+          }
+        }
+    });
+  }])
+  .run(['$templateCache', function ($templateCache) {
+    $templateCache.put('template/smart-table/pagination.html',
+        '<nav ng-if="pages.length >= 2"><ul class="pagination">' +
+        '<li ng-class="{disabled: currentPage == 1}"><a ng-click="selectPage(currentPage - 1)" aria-label="Previous"><span aria-hidden="true">&laquo;</span></a></li>' +
+        '<li ng-repeat="page in pages" ng-class="{active: page==currentPage}"><a ng-click="selectPage(page)">{{page}}</a></li>' +
+        '<li ng-class="{disabled: currentPage == pages.length}"><a ng-click="selectPage(currentPage + 1)" aria-label="Next"><span aria-hidden="true">&raquo;</span></a></li>' +
+        '</ul></nav>');
+  }])
+
+;

http://git-wip-us.apache.org/repos/asf/ode-console/blob/4ee2cbad/src/app/index.scss
----------------------------------------------------------------------
diff --git a/src/app/index.scss b/src/app/index.scss
new file mode 100644
index 0000000..fc02bbe
--- /dev/null
+++ b/src/app/index.scss
@@ -0,0 +1,69 @@
+.browsehappy {
+  margin: 0.2em 0;
+  background: #ccc;
+  color: #000;
+  padding: 0.2em 0;
+}
+
+.thumbnail {
+  height: 200px;
+
+  img.pull-right {
+    width: 50px;
+  }
+}
+
+.st-sort-ascent:before{
+    content: '\25B2';
+}
+
+.st-sort-descent:before{
+    content: '\25BC';
+}
+
+.footer {
+  position: absolute;
+  bottom: 0;
+  width: 100%;
+  /* Set the fixed height of the footer here */
+  height: 25px;
+  background-color: #f5f5f5;
+}
+
+.modal-backdrop{
+  bottom: 0
+}
+
+.navbar-nav li:hover {
+    cursor: pointer;
+}
+
+// auto height in ace editor.
+.ace_editor {
+  min-height: 20px;
+  height: auto;
+}
+
+.btn-file {
+    position: relative;
+    overflow: hidden;
+    display: block;
+}
+.btn-file input[type=file] {
+    position: absolute;
+    top: 0;
+    right: 0;
+    min-width: 100%;
+    min-height: 100%;
+    font-size: 100px;
+    text-align: right;
+    filter: alpha(opacity=0);
+    opacity: 0;
+    outline: none;
+    background: white;
+    cursor: inherit;
+    display: block;
+}
+
+// injector
+// endinjector

http://git-wip-us.apache.org/repos/asf/ode-console/blob/4ee2cbad/src/app/instance/corrpropinfodialog.html
----------------------------------------------------------------------
diff --git a/src/app/instance/corrpropinfodialog.html b/src/app/instance/corrpropinfodialog.html
new file mode 100644
index 0000000..38ec1bd
--- /dev/null
+++ b/src/app/instance/corrpropinfodialog.html
@@ -0,0 +1,24 @@
+<div class="modal-header">
+  <h3 class="modal-title">Correlation Properties</h3>
+</div>
+<div class="modal-body">
+  <table class="table table-condensed">
+    <thead>
+      <tr>
+          <th>Namespace</th>
+          <th>Local name</th>
+          <th>Value</th>
+      </tr>
+    </thead>
+    <tbody>
+      <tr ng-repeat="prop in instance.correlationProperties">
+        <td>{{prop.name.namespaceURI}}</td>
+        <td>{{prop.name.localName}}</td>
+        <td><code>{{prop.value}}</code></td>
+      </tr>
+    </tbody>
+  </table>
+</div>
+<div class="modal-footer">
+  <button class="btn btn-primary" ng-click="$close()">OK</button>
+</div>

http://git-wip-us.apache.org/repos/asf/ode-console/blob/4ee2cbad/src/app/instance/faultinfodialog.html
----------------------------------------------------------------------
diff --git a/src/app/instance/faultinfodialog.html b/src/app/instance/faultinfodialog.html
new file mode 100644
index 0000000..3ab0807
--- /dev/null
+++ b/src/app/instance/faultinfodialog.html
@@ -0,0 +1,16 @@
+<div class="modal-header">
+  <h3 class="modal-title">Fault Details</h3>
+</div>
+<div class="modal-body">
+  <h4>Fault Name</h4>
+  <p>{{instance.fault.name.localName}} ({{instance.fault.name.namespaceURI}})</p>
+  <h4 ng-if="instance.fault.explanation">Explanation</h4>
+  <pre ng-if="instance.fault.explanation">{{instance.fault.explanation}}</pre>
+  <h4>Line number</h4>
+  <p>{{instance.fault.lineNumber}}</p>
+  <h4>Activity Instance ID</h4>
+  <p>{{instance.fault.aiid}}</p>
+</div>
+<div class="modal-footer">
+  <button class="btn btn-primary" ng-click="$close()">OK</button>
+</div>

http://git-wip-us.apache.org/repos/asf/ode-console/blob/4ee2cbad/src/app/instance/instance.controller.js
----------------------------------------------------------------------
diff --git a/src/app/instance/instance.controller.js b/src/app/instance/instance.controller.js
new file mode 100644
index 0000000..eda5061
--- /dev/null
+++ b/src/app/instance/instance.controller.js
@@ -0,0 +1,123 @@
+/* 
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+'use strict';
+
+angular.module('odeConsole')
+  .controller('InstanceController', function ($scope, $routeParams, $location, xmlParser, $http, InstanceService, ngToast, $q, $modal) {
+
+  var update = function() {
+  InstanceService.getInstanceInfo($routeParams.iid).then(function(instance) {
+      $scope.instance = instance;
+      $scope.activities = [];
+      $scope.variables = [];
+      $scope.endpoints = [];
+      $scope.scopes = [];
+      InstanceService.getScopeInfoWithActivity(instance.rootScope.id, true).then(function(rootScope) {
+          $scope.rootScope = rootScope;
+          $scope.activities = rootScope.activities;
+          $scope.variables = rootScope.variables;
+          $scope.endpoints = rootScope.endpoints;
+          $scope.scopes.push(rootScope);
+
+          var loadChildren = function (scope) {
+            var promises = [];
+            if (scope.children) {
+              scope.children.forEach(function (child) {
+                //console.log(child.siid);
+                promises.push(InstanceService.getScopeInfoWithActivity(child.siid, true).then(function(childScope) {
+                  $scope.activities = $scope.activities.concat(childScope.activities);
+                  $scope.variables = $scope.variables.concat(childScope.variables);
+                  $scope.endpoints = $scope.endpoints.concat(childScope.endpoints);
+                  $scope.scopes.push(childScope);
+                  childScope.isProc = true;
+                }).then(loadChildren(child)));
+              });
+
+              return $q.all(promises);              
+            }
+          };
+
+          loadChildren(rootScope);
+        }, function() {
+            ngToast.create({content: 'Could not load root scope for instance ' + $routeParams.iid + '.', class: 'danger'});
+        });
+    }, function() {
+        ngToast.create({content: 'Could not load process instance ' + $routeParams.iid + '.', class: 'danger'});
+    });
+  };
+
+  $scope.recoverActivity = function(activity) {
+    var dlgScope = $scope.$new();
+    dlgScope.activity = activity;
+    dlgScope.radio = {model: undefined};
+    $modal.open({
+      templateUrl: 'app/instance/recoverydialog.html',
+      scope: dlgScope,
+    }).result.then(function() {
+      if (dlgScope.radio.model) {
+        InstanceService.recoverActivity($scope.instance.iid, activity.aiid, dlgScope.radio.model).then(function() {
+          ngToast.create('Activity recovery scheduled...');
+          update();
+          dlgScope.$destroy();
+        });
+      }
+    }, function() {
+      ngToast.create({content: 'Activity recovery could not be scheduled', class: 'danger'});
+    });
+  };
+
+  $scope.showVariableModal = function(siid, varName) {
+    // load variable info
+    InstanceService.getVariableInfo(siid, varName).then(function(varInfo) {
+      // when loaded, open modal.
+      $modal.open({
+        templateUrl: 'app/instance/varinfodialog.html',
+        controller: function ($scope, $modalInstance, varInfo) {
+          $scope.var = varInfo;
+          // beautify indentation of value
+          //$scope.var.value = vkbeautify.xml(varInfo.value, 2);
+        },
+        resolve: {
+          varInfo: function() {
+            return varInfo;
+          }
+        }
+      }).result.then(function(v) {
+        // closed with ok. save variable
+        InstanceService.setVariable(siid, varName, v.value).then(function () {
+          ngToast.create('Variable updated.');
+          update();
+        }, function (fault) {
+          ngToast.create({content: 'Variable value could not be updated: ' + fault.faultstring, class: 'danger'});
+        });
+      });
+    }, function(fault) {
+      ngToast.create({content: 'Could not retrieve variable information: ' + fault.faultstring, class: 'danger'});      
+    });
+  };
+
+    // listen for changes issued by actions to reload table
+  $scope.$on('instance-modified', function () { 
+    update();
+  });
+
+  update();
+
+});

http://git-wip-us.apache.org/repos/asf/ode-console/blob/4ee2cbad/src/app/instance/instance.controller.spec.js
----------------------------------------------------------------------
diff --git a/src/app/instance/instance.controller.spec.js b/src/app/instance/instance.controller.spec.js
new file mode 100644
index 0000000..33bba2d
--- /dev/null
+++ b/src/app/instance/instance.controller.spec.js
@@ -0,0 +1,41 @@
+/* 
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+'use strict';
+
+describe('controllers', function(){
+  var scope;
+
+  beforeEach(module('odeConsole'));
+
+  beforeEach(inject(function($rootScope) {
+  	scope = $rootScope.$new();
+  }));
+
+  it('should define an instance object', inject(function($controller) {
+    expect(scope.instance).toBeUndefined();
+
+    $controller('InstanceController', {
+      $scope: scope
+  	});
+
+    //expect(scope.instance).toBeDefined();
+    //expect(scope.awesomeThings.length > 5).toBeTruthy();
+  }));
+});

http://git-wip-us.apache.org/repos/asf/ode-console/blob/4ee2cbad/src/app/instance/instance.html
----------------------------------------------------------------------
diff --git a/src/app/instance/instance.html b/src/app/instance/instance.html
new file mode 100644
index 0000000..d77f877
--- /dev/null
+++ b/src/app/instance/instance.html
@@ -0,0 +1,175 @@
+<div class="container">
+
+  <div class="panel panel-default">
+    <div class="panel-heading">
+      <h3 class="panel-title">Instance Details</h3>
+    </div>
+    <table class="table">
+      <tr>
+        <th>Instance ID</th>
+        <td>{{instance.iid}}</td>
+      </tr>
+      <tr>
+        <th>Process ID</th>
+        <td><a href="#/processes/{{instance.pid}}">{{instance.pid}}</a></td>
+      </tr>
+      <tr>
+        <th>Process Name</th>
+        <td>{{instance.processNameFull}}</td>
+      </tr>
+      <tr>
+        <th>Started</th>
+        <td><span tooltip="{{instance.started | amCalendar }}">{{instance.started | date:'medium'}}</span></td>
+      </tr>
+      <tr>
+        <th>Last Active</th>
+        <td><span tooltip="{{instance.lastActive | amCalendar}}">{{instance.lastActive | date:'medium'}}</span></td>
+      </tr>
+      <tr>
+        <th>Status</th>
+        <td><span class="label ng-class: 'label-instance-' + (instance.status | lowercase);">{{instance.status}}</span></td>
+      </tr>
+      <tr>
+        <th>Actions</th>
+        <td><div ng-include="'app/instance/instanceactionbuttons.html'"></div></td>
+      </tr>
+    </table>
+  </div>
+
+  <div class="panel panel-danger" ng-if="instance.fault">
+    <div class="panel-heading">
+      <h3 class="panel-title">Fault Details</h3>
+    </div>
+    <div class="panel-body">
+      <h4>{{instance.fault.name.localName}} <small>({{instance.fault.name.namespaceURI}})</small></h4>
+      <h4>Explanation</h4>
+      <pre>{{instance.fault.explanation}}</pre>
+      <small>Line number: {{instance.fault.lineNumber}}, Activity Instance ID: {{instance.fault.aiid}}</small>
+    </div>
+  </div>
+
+  <div class="panel panel-default" ng-if="instance.correlationProperties">
+    <div class="panel-heading">
+      <h3 class="panel-title">Correlation Properties</h3>
+    </div>
+    <table class="table">
+      <thead>
+        <tr>
+            <th>QName</th>
+            <th>Value</th>
+            <th>Actions</th>
+        </tr>
+      </thead>
+      <tbody>
+        <tr ng-repeat="prop in instance.correlationProperties">
+          <td><code>{{'{' + prop.name.namespaceURI + '}' + prop.name.localName}}</code></td>
+          <td><code>{{prop.value}}</code></td>
+          <td><a ng-href="#/instances?q={{'${' + prop.name.namespaceURI + '}' + prop.name.localName + ' = ' + prop.value | escape}}" role="button" class="btn btn-default btn-xs">
+              <span class="glyphicon glyphicon-search"></span> Search
+            </a></td>
+        </tr>
+      </tbody>
+    </table>
+  </div>
+
+  <div class="panel panel-default">
+    <div class="panel-heading">
+      <h3 class="panel-title">Variables</h3>
+    </div>
+    <table class="table">
+      <thead>
+        <tr>
+            <th>Name</th>
+            <th>Scope</th>
+            <th>Actions</th>
+        </tr>
+      </thead>
+      <tbody>
+        <tr ng-repeat="var in variables | orderBy:'siid'">
+          <td>{{var.name}}</td>
+          <td>{{var.scope.name}} ({{var.siid}})</td>
+          <td><button type="button" class="btn btn-default btn-xs" ng-click="showVariableModal(var.siid, var.name)">
+            <span class="glyphicon glyphicon-edit"></span> Edit Value
+          </button>
+          </td>
+
+        </tr>
+      </tbody>
+    </table>
+  </div>
+
+  <div class="panel panel-default" ng-if="endpoints.length">
+    <div class="panel-heading">
+      <h3 class="panel-title">Endpoints</h3>
+    </div>
+    <table class="table">
+      <thead>
+        <tr>
+            <th>Partner Link</th>
+            <th>Partner Role</th>
+            <th>Scope</th>
+            <th>Value</th>
+        </tr>
+      </thead>
+      <tbody>
+        <tr ng-repeat="endpoint in endpoints | orderBy:'siid'">
+          <td>{{endpoint.partnerLink}}</td>
+          <td>{{endpoint.partnerRole}}</td>
+          <td>{{endpoint.scope.name}} ({{endpoint.siid}})</td>
+          <td><div ng-if="endpoint.value" ui-ace="{mode:'xml', showGutter: false}" readonly ng-model="endpoint.value" style="min-width:550px"></div><span ng-if="!endpoint.value" class="label label-default">UNCHANGED</span></td>
+        </tr>
+      </tbody>
+    </table>
+  </div>
+
+  <div class="panel panel-default">
+    <div class="panel-heading">
+      <h3 class="panel-title">Activities</h3>
+    </div>
+    <table class="table">
+      <thead>
+        <tr>
+            <th>AIID</th>
+            <th>Name</th>
+            <th>Type</th>
+            <th>Status</th>
+            <th>Started</th>
+            <th>Enabled</th>
+            <th>Completed</th>
+            <th>Actions</th>
+        </tr>
+      </thead>
+      <tbody>
+        <tr ng-repeat="act in activities | orderBy:'aiid':reverse">
+          <td>{{act.aiid}}</td>
+          <td>{{act.name}}</td>
+          <td>{{act.type}}</td>
+          <td><span class="label ng-class: 'label-activity-' + (act.status | lowercase);">{{act.status}}</span> <span ng-if="act.failure.retries" tooltip="{{act.failure.reason}}" class="badge">{{act.failure.retries}}</span></td>
+          <td>{{act.started | date:'medium'}}</td>
+          <td>{{act.enabled | date:'medium'}}</td>
+          <td>{{act.completed | date:'medium'}}</td>
+          <td><button type="button" class="btn btn-primary btn-xs" ng-if="act.failure" ng-click="recoverActivity(act)">
+            <span class="glyphicon glyphicon-edit"></span> Recover Activity&hellip;
+          </button></td>
+        </tr>
+      </tbody>
+    </table>
+  </div>
+
+  <button class="btn btn-default" ng-click="showDetails = !showDetails">Toggle Raw Instance Details</button>
+  <div class="panel panel-default" collapse="!showDetails">
+    <div class="panel-heading">
+      <h3 class="panel-title">Instance Details</h3>
+    </div>
+    <div class="panel-body">
+      <h5>Activities</h5>
+      <pre>{{activities | json}}</pre>
+      <h5>Variables</h5>
+      <pre>{{variables | json}}</pre>
+      <h5>Scopes</h5>
+      <pre>{{scopes | json}}</pre>
+      <h5>Root Scope</h5>
+      <pre>{{rootScope | json}}</pre>
+    </div>
+  </div>
+</div>