knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From su...@apache.org
Subject [09/11] knox git commit: KNOX-827 added manager topology
Date Thu, 22 Dec 2016 15:35:16 GMT
http://git-wip-us.apache.org/repos/asf/knox/blob/b65a0175/gateway-applications/src/main/resources/applications/admin-ui/app/main.a62ce79090310dbb7cec.bundle.js
----------------------------------------------------------------------
diff --git a/gateway-applications/src/main/resources/applications/admin-ui/app/main.a62ce79090310dbb7cec.bundle.js
b/gateway-applications/src/main/resources/applications/admin-ui/app/main.a62ce79090310dbb7cec.bundle.js
deleted file mode 100644
index 14d253a..0000000
--- a/gateway-applications/src/main/resources/applications/admin-ui/app/main.a62ce79090310dbb7cec.bundle.js
+++ /dev/null
@@ -1,2 +0,0 @@
-webpackJsonp([0,3],{122:function(t,e,o){"use strict";var n=o(0),i=o(180),a=o(341),r=(o.n(a),o(90));o.n(r);o.d(e,"a",function(){return
s});var c=this&&this.__decorate||function(t,e,o,n){var i,a=arguments.length,r=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,o,n);else for(var
c=t.length-1;c>=0;c--)(i=t[c])&&(r=(a<3?i(r):a>3?i(e,o,r):i(e,o))||r);return
a>3&&r&&Object.defineProperty(e,o,r),r},l=this&&this.__metadata||function(t,e){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function
t(t){this.http=t,this.apiUrl="/gateway/admin/api/v1/",this.topologiesUrl=this.apiUrl+"topologies",this.selectedTopologySource=new
r.Subject,this.selectedTopology$=this.selectedTopologySource.asObservable(),this.changedTopologySource=new
r.Subject,this.changedTopology$=this.changedTopologySource.asObservable()}return t.prototype.getTopologies=functi
 on(){var t=new i.a;return this.addJsonHeaders(t),this.http.get(this.topologiesUrl,{headers:t}).toPromise().then(function(t){return
t.json().topologies.topology}).catch(this.handleError)},t.prototype.getTopology=function(t){var
e=new i.a;return this.addXmlHeaders(e),this.http.get(t,{headers:e}).toPromise().then(function(t){return
t.text()}).catch(this.handleError)},t.prototype.saveTopology=function(t,e){var o=new i.a;return
this.addXmlHeaders(o),this.addCsrfHeaders(o),this.http.put(t,e,{headers:o}).toPromise().then(function(){return
e}).catch(this.handleError)},t.prototype.createTopology=function(t,e){var o=new i.a;this.addXmlHeaders(o),this.addCsrfHeaders(o);var
n=this.topologiesUrl+"/"+t;return this.http.put(n,e,{headers:o}).toPromise().then(function(){return
e}).catch(this.handleError)},t.prototype.deleteTopology=function(t){var e=new i.a;return this.addJsonHeaders(e),this.addCsrfHeaders(e),this.http.delete(t,{headers:e}).toPromise().then(function(t){return
t.text()}).catch(this.h
 andleError)},t.prototype.addJsonHeaders=function(t){t.append("Accept","application/json"),t.append("Content-Type","application/json")},t.prototype.addXmlHeaders=function(t){t.append("Accept","application/xml"),t.append("Content-Type","application/xml")},t.prototype.addCsrfHeaders=function(t){t.append("X-XSRF-Header","admin-ui")},t.prototype.selectedTopology=function(t){this.selectedTopologySource.next(t)},t.prototype.changedTopology=function(t){this.changedTopologySource.next(t)},t.prototype.handleError=function(t){return
console.error("An error occurred",t),Promise.reject(t.message||t)},t=c([o.i(n.Injectable)(),l("design:paramtypes",["function"==typeof(e="undefined"!=typeof
i.b&&i.b)&&e||Object])],t);var e}()},293:function(t,e,o){"use strict";var
n=o(0),i=o(122);o.d(e,"a",function(){return c});var a=this&&this.__decorate||function(t,e,o,n){var
i,a=arguments.length,r=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof
Reflect&&"function"==typeof Reflect.decor
 ate)r=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(r=(a<3?i(r):a>3?i(e,o,r):i(e,o))||r);return
a>3&&r&&Object.defineProperty(e,o,r),r},r=this&&this.__metadata||function(t,e){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function
t(t){this.topologyService=t}return t=a([o.i(n.Component)({selector:"topology-management",template:'\n
     <div class="container">\n        <div class="row">\n          <div class="col-md-5">\n
           <topology></topology>\n         </div>\n          <div class="col-md-7">\n
           <topology-detail></topology-detail>\n          </div>\n     
  </div>\n      </div>\n  ',providers:[i.a]}),r("design:paramtypes",["function"==typeof(e="undefined"!=typeof
i.a&&i.a)&&e||Object])],t);var e}()},294:function(t,e,o){"use strict";var
n=o(0),i=o(180),a=o(341);o.n(a);o.d(e,"a",function(){return l});var r=this&&this.__decorate||function(t,e,o,n){var
i,a=arguments.length,r=a<3?e
 :null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof
Reflect.decorate)r=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(r=(a<3?i(r):a>3?i(e,o,r):i(e,o))||r);return
a>3&&r&&Object.defineProperty(e,o,r),r},c=this&&this.__metadata||function(t,e){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},l=function(){function
t(t){this.http=t,this.apiUrl="/gateway/admin/api/v1/version"}return t.prototype.getVersion=function(){var
t=new i.a;return this.createAuthorizationHeader(t),this.http.get(this.apiUrl,{headers:t}).toPromise().then(function(t){return
t.json().ServerVersion}).catch(this.handleError)},t.prototype.createAuthorizationHeader=function(t){t.append("Accept","application/json"),t.append("Content-Type","application/json")},t.prototype.handleError=function(t){return
console.error("An error occurred",t),Promise.reject(t.message||t)},t=r([o.i(n.Injectable)(),c("design:paramty
 pes",["function"==typeof(e="undefined"!=typeof i.b&&i.b)&&e||Object])],t);var
e}()},295:function(t,e,o){"use strict";var n=o(0);o.d(e,"a",function(){return r});var i=this&&this.__decorate||function(t,e,o,n){var
i,a=arguments.length,r=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,o,n);else for(var
c=t.length-1;c>=0;c--)(i=t[c])&&(r=(a<3?i(r):a>3?i(e,o,r):i(e,o))||r);return
a>3&&r&&Object.defineProperty(e,o,r),r},a=this&&this.__metadata||function(t,e){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},r=function(){function
t(){this.active=!1}return i([o.i(n.Input)("tabTitle"),a("design:type",String)],t.prototype,"title",void
0),i([o.i(n.Input)(),a("design:type",Object)],t.prototype,"active",void 0),t=i([o.i(n.Component)({selector:"tab",styles:["\n
   .pane{\n      padding: 1em;\n    }\n  "],template:'\n    <div [hidden]="!active" class="pane">\n
     </div>\n  '}),a("design:paramtypes",[])],t)}()},344:function(t,e){function o(t){throw
new Error("Cannot find module '"+t+"'.")}o.keys=function(){return[]},o.resolve=o,t.exports=o,o.id=344},345:function(t,e,o){"use
strict";var n=o(454),i=(o.n(n),o(425)),a=o(0),r=o(453),c=o(447);r.a.production&&o.i(a.enableProdMode)(),o.i(i.a)().bootstrapModule(c.a)},445:function(t,e,o){"use
strict";var n=o(0),i=o(184),a=o(180),r=o(418),c=o(293),l=o(122),s=o(294),p=o(446),f=o(449),d=o(448),u=o(452),y=o(450),h=o(295),g=o(451),m=o(608),b=(o.n(m),o(340));o.n(b);o.d(e,"a",function(){return
R});var v=this&&this.__decorate||function(t,e,o,n){var i,a=arguments.length,r=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,o,n);else for(var
c=t.length-1;c>=0;c--)(i=t[c])&&(r=(a<3?i(r):a>3?i(e,o,r):i(e,o))||r);return
a>3&&r&&Object.defineProperty(e,o,r),r},j=this&&this.__metadata||function(t,e){if("object"==typeof
Ref
 lect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},R=function(){function
t(){}return t=v([o.i(n.NgModule)({imports:[i.b,a.c,r.a,b.Ng2Bs3ModalModule],declarations:[c.a,f.a,d.a,p.a,m.AceEditorDirective,u.a,y.a,g.a,h.a],providers:[l.a,s.a],bootstrap:[c.a,p.a]}),j("design:paramtypes",[])],t)}()},446:function(t,e,o){"use
strict";var n=o(0),i=o(294);o.d(e,"a",function(){return c});var a=this&&this.__decorate||function(t,e,o,n){var
i,a=arguments.length,r=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,o,n);else for(var
c=t.length-1;c>=0;c--)(i=t[c])&&(r=(a<3?i(r):a>3?i(e,o,r):i(e,o))||r);return
a>3&&r&&Object.defineProperty(e,o,r),r},r=this&&this.__metadata||function(t,e){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function
t(t){this.gatewayVersionService=t}return t.prototype.getVersion=function(){var t=this;thi
 s.gatewayVersionService.getVersion().then(function(e){return t.gatewayVersion=e})},t.prototype.ngOnInit=function(){this.getVersion()},t=a([o.i(n.Component)({selector:"gateway-version",template:'\n
       <div *ngIf="gatewayVersion">\n            <span class="small"><cite>Knox
Gateway Version</cite> {{this.gatewayVersion.version}}</span>\n            <span
class="small"><cite>Hash</cite> {{this.gatewayVersion.hash}}</span>\n</div>',providers:[i.a]}),r("design:paramtypes",["function"==typeof(e="undefined"!=typeof
i.a&&i.a)&&e||Object])],t);var e}()},447:function(t,e,o){"use strict";var
n=(o(293),o(445));o.d(e,"a",function(){return n.a})},448:function(t,e,o){"use strict";var
n=o(0),i=o(122),a=o(340);o.n(a);o.d(e,"a",function(){return l});var r=this&&this.__decorate||function(t,e,o,n){var
i,a=arguments.length,r=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,o,n);else for(var
c=t.length-1;c>=
 0;c--)(i=t[c])&&(r=(a<3?i(r):a>3?i(e,o,r):i(e,o))||r);return a>3&&r&&Object.defineProperty(e,o,r),r},c=this&&this.__metadata||function(t,e){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},l=function(){function
t(t){this.topologyService=t,this.title="Topology Detail",this.options={useWorker:!1,printMargin:!1}}return
t.prototype.ngOnInit=function(){var t=this;this.topologyService.selectedTopology$.subscribe(function(e){return
t.populateContent(e)})},t.prototype.setTitle=function(t){this.titleSuffix=t},t.prototype.onChange=function(t){this.changedTopology=t},t.prototype.saveTopology=function(){var
t=this;this.topologyService.saveTopology(this.topology.href,this.changedTopology).then(function(e){return
t.topologyService.changedTopology(t.topology.name)})},t.prototype.createTopology=function(){var
t=this;this.changedTopology?this.topologyService.createTopology(this.newTopologyName,this.changedTopology).then(function(e){return
t.topologyServi
 ce.changedTopology(t.newTopologyName)}):this.topologyService.createTopology(this.newTopologyName,this.topologyContent).then(function(e){return
t.topologyService.changedTopology(t.newTopologyName)})},t.prototype.deleteTopology=function(){var
t=this;this.topologyService.deleteTopology(this.topology.href).then(function(e){return t.topologyService.changedTopology(t.topology.name)})},t.prototype.populateContent=function(t){var
e=this;this.topology=t,this.setTitle(t.name),this.topology&&this.topology.href&&this.topologyService.getTopology(this.topology.href).then(function(t){return
e.topologyContent=t})},r([o.i(n.ViewChild)("duplicateModal"),c("design:type","function"==typeof(e="undefined"!=typeof
a.ModalComponent&&a.ModalComponent)&&e||Object)],t.prototype,"duplicateModal",void
0),r([o.i(n.ViewChild)("deleteConfirmModal"),c("design:type","function"==typeof(l="undefined"!=typeof
a.ModalComponent&&a.ModalComponent)&&l||Object)],t.prototype,"deleteConfirmModal",void
0),t=r([o.i(n.Component)
 ({selector:"topology-detail",template:'\n     <div class="panel panel-default">\n 
      <div class="panel-heading">\n            <h4 class="panel-title">{{title}}
<span class="label label-default pull-right">{{titleSuffix}}</span></h4>\n
        </div>\n     <div *ngIf="topologyContent" class="panel-body">\n      <div
ace-editor\n       [readOnly]="false" [text]="topologyContent | xml" [mode]="\'html\'" [options]="options"
\n        [theme]="\'monokai\'"\n         style="min-height: 300px; width:100%; overflow:
auto;" (textChanged)="onChange($event)">\n      </div>\n       <div class="panel-footer">\n
       <button (click)="duplicateModal.open(\'sm\')" class="btn btn-default btn-sm" type="submit">\n
           <span class="glyphicon glyphicon-duplicate" aria-hidden="true"></span>\n
       </button>\n        <button (click)="deleteConfirmModal.open(\'sm\')" class="btn
btn-default btn-sm" type="submit">\n            <span class="glyphicon glyphicon-trash"
aria-hidden="true"></span>\
 n        </button>\n       <button (click)="saveTopology()" class="btn btn-default
btn-sm pull-right" [disabled]="!changedTopology" type="submit">\n            <span class="glyphicon
glyphicon-floppy-disk" aria-hidden="true"></span>\n        </button>\n    
  </div>\n         \n    </div>\n    <modal (onClose)="createTopology()" #duplicateModal>\n\n
       <modal-header [show-close]="true">\n            <h4 class="modal-title">Create
a copy</h4>\n        </modal-header>\n        <modal-body>\n           
<div class="form-group">\n                <label for="textbox">Name the new topology</label>\n
               <input autofocus type="text" class="form-control" required [(ngModel)]="newTopologyName"
id="textbox">\n            </div> \n        </modal-body>\n        <modal-footer>\n
           <button type="button" class="btn btn-default btn-sm" data-dismiss="duplicateModal"
(click)="duplicateModal.dismiss()">Cancel</button>\n            <button type="button"
class="btn btn-primary b
 tn-sm" [disabled]="!newTopologyName" (click)="duplicateModal.close()">Ok</button>\n
       </modal-footer>\n    </modal>\n    <modal (onClose)="deleteTopology()"
#deleteConfirmModal>\n        <modal-header [show-close]="true">\n            <h4
class="modal-title">Deleting Topology {{titleSuffix}}</h4>\n        </modal-header>\n
       <modal-body>\n            Are you sure you want to delete the topology?\n   
    </modal-body>\n        <modal-footer>\n            <button type="button"
class="btn btn-default btn-sm" data-dismiss="deleteConfirmModal" (click)="deleteConfirmModal.dismiss()">Cancel</button>\n
           <button type="button" class="btn btn-primary btn-sm" (click)="deleteConfirmModal.close()">Ok</button>\n
       </modal-footer>\n    </modal>\n   '}),c("design:paramtypes",["function"==typeof(s="undefined"!=typeof
i.a&&i.a)&&s||Object])],t);var e,l,s}()},449:function(t,e,o){"use strict";var
n=o(0),i=o(122);o.d(e,"a",function(){return c});var a=this&&this.__decorate||funct
 ion(t,e,o,n){var i,a=arguments.length,r=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,o,n);else for(var
c=t.length-1;c>=0;c--)(i=t[c])&&(r=(a<3?i(r):a>3?i(e,o,r):i(e,o))||r);return
a>3&&r&&Object.defineProperty(e,o,r),r},r=this&&this.__metadata||function(t,e){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(){function
t(t){this.topologyService=t}return t.prototype.getTopologies=function(){var t=this;this.topologyService.getTopologies().then(function(e){return
t.topologies=e})},t.prototype.ngOnInit=function(){var t=this;this.getTopologies(),this.topologyService.changedTopology$.subscribe(function(e){return
t.getTopologies()})},t.prototype.onSelect=function(t){this.selectedTopology=t,this.topologyService.selectedTopology(t)},t=a([o.i(n.Component)({selector:"topology",template:'\n
       <div class="table-responsive" style="max-heigh
 t: 400px; width:100%; overflow: auto;">\n            <table class="table table-striped
table-hover">\n              <thead>\n                <tr>\n              
   <th>Topology Name</th>\n                  <th>Timestamp</th>\n
               </tr>\n              </thead>\n         <tbody>\n       
 <tr *ngFor="let topology of topologies"\n          [class.selected]="topology === selectedTopology"\n
       (click)="onSelect(topology)">\n         <td>{{topology.name}}</td> \n
        <td>{{topology.timestamp | date:\'yMMMdjms\'}}</td> \n         </tr>\n
       </tbody>\n        </table>\n        </div>\n       '}),r("design:paramtypes",["function"==typeof(e="undefined"!=typeof
i.a&&i.a)&&e||Object])],t);var e}()},450:function(t,e,o){"use strict";var
n=o(0);o.d(e,"a",function(){return r});var i=this&&this.__decorate||function(t,e,o,n){var
i,a=arguments.length,r=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)r=Re
 flect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(r=(a<3?i(r):a>3?i(e,o,r):i(e,o))||r);return
a>3&&r&&Object.defineProperty(e,o,r),r},a=this&&this.__metadata||function(t,e){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},r=function(){function
t(){}return t.prototype.transform=function(t){return vkbeautify.json(t)},t=i([o.i(n.Pipe)({name:"jsonpretty"}),a("design:paramtypes",[])],t)}()},451:function(t,e,o){"use
strict";var n=o(0),i=o(295);o.d(e,"a",function(){return c});var a=this&&this.__decorate||function(t,e,o,n){var
i,a=arguments.length,r=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof
Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,o,n);else for(var
c=t.length-1;c>=0;c--)(i=t[c])&&(r=(a<3?i(r):a>3?i(e,o,r):i(e,o))||r);return
a>3&&r&&Object.defineProperty(e,o,r),r},r=this&&this.__metadata||function(t,e){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)
 return Reflect.metadata(t,e)},c=function(){function t(){}return t.prototype.ngAfterContentInit=function(){var
t=this.tabs.filter(function(t){return t.active});0===t.length&&this.selectTab(this.tabs.first)},t.prototype.selectTab=function(t){this.tabs.toArray().forEach(function(t){return
t.active=!1}),t.active=!0},a([o.i(n.ContentChildren)(i.a),r("design:type","function"==typeof(e="undefined"!=typeof
n.QueryList&&n.QueryList)&&e||Object)],t.prototype,"tabs",void 0),t=a([o.i(n.Component)({selector:"tabs",template:'\n
   <ul class="nav nav-tabs">\n      <li *ngFor="let tab of tabs" (click)="selectTab(tab)"
[class.active]="tab.active">\n        <a>{{tab.title}}</a>\n      </li>\n
   </ul>\n    \n  '}),r("design:paramtypes",[])],t);var e}()},452:function(t,e,o){"use
strict";var n=o(0);o.d(e,"a",function(){return r});var i=this&&this.__decorate||function(t,e,o,n){var
i,a=arguments.length,r=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof
Reflect&&"function"==type
 of Reflect.decorate)r=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(r=(a<3?i(r):a>3?i(e,o,r):i(e,o))||r);return
a>3&&r&&Object.defineProperty(e,o,r),r},a=this&&this.__metadata||function(t,e){if("object"==typeof
Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},r=function(){function
t(){}return t.prototype.transform=function(t){return vkbeautify.xml(t)},t=i([o.i(n.Pipe)({name:"xml"}),a("design:paramtypes",[])],t)}()},453:function(t,e,o){"use
strict";o.d(e,"a",function(){return n});var n={production:!0}},454:function(t,e,o){"use strict";var
n=o(471),i=(o.n(n),o(464)),a=(o.n(i),o(460)),r=(o.n(a),o(466)),c=(o.n(r),o(465)),l=(o.n(c),o(463)),s=(o.n(l),o(462)),p=(o.n(s),o(470)),f=(o.n(p),o(459)),d=(o.n(f),o(458)),u=(o.n(d),o(468)),y=(o.n(u),o(461)),h=(o.n(y),o(469)),g=(o.n(h),o(467)),m=(o.n(g),o(472)),b=(o.n(m),o(628));o.n(b)},629:function(t,e,o){t.exports=o(345)}},[629]);
-//# sourceMappingURL=main.a62ce79090310dbb7cec.bundle.map
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/knox/blob/b65a0175/gateway-applications/src/main/resources/applications/admin-ui/app/main.a62ce79090310dbb7cec.bundle.js.gz
----------------------------------------------------------------------
diff --git a/gateway-applications/src/main/resources/applications/admin-ui/app/main.a62ce79090310dbb7cec.bundle.js.gz
b/gateway-applications/src/main/resources/applications/admin-ui/app/main.a62ce79090310dbb7cec.bundle.js.gz
deleted file mode 100644
index 1af436e..0000000
Binary files a/gateway-applications/src/main/resources/applications/admin-ui/app/main.a62ce79090310dbb7cec.bundle.js.gz
and /dev/null differ


Mime
View raw message