mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Sync web-ui v3.0.0a3
This commit is contained in:
1 parent
3e29ae4276
commit
5bc030688e
3 files changed
+2
-2
No files matched your search
@@ -46,6 +46,6 @@
|
||||
|
||||
gtag('config', 'G-5D6FZL9923');
|
||||
</script>
|
||||
<script src="runtime.b694e7eebb80e122.js" type="module"></script><script src="polyfills.7e7f4a715088fcc2.js" type="module"></script><script src="main.7309c0d705101a52.js" type="module"></script>
|
||||
<script src="runtime.b694e7eebb80e122.js" type="module"></script><script src="polyfills.7e7f4a715088fcc2.js" type="module"></script><script src="main.3903ccaada4e6da7.js" type="module"></script>
|
||||
|
||||
</body></html>
|
||||
@@ -0,0 +1 @@
|
||||
(self.webpackChunkgns3_web_ui=self.webpackChunkgns3_web_ui||[]).push([[179],{5735:function(qe,J,m){"use strict";m.d(J,{o:function(){return L}});var z=m(5671),Y=m(3144),S=m(591),U=m(8929),L=function(){function P(){(0,z.Z)(this,P),this.data=[],this.dataChange=new S.X([]),this.itemUpdated=new U.xQ}return(0,Y.Z)(P,[{key:"getItems",value:function(){return this.data}},{key:"add",value:function(y){this.findIndex(y)>=0?this.update(y):(this.data.push(y),this.dataChange.next(this.data))}},{key:"set",value:function(y){var K=this;y.forEach(function(M){var O=K.findIndex(M);if(O>=0){var k=Object.assign(K.data[O],M);K.data[O]=k}else K.data.push(M)}),this.data.filter(function(M){return 0===y.filter(function(O){return K.getItemKey(O)===K.getItemKey(M)}).length}).forEach(function(M){return K.remove(M)}),this.dataChange.next(this.data)}},{key:"get",value:function(y){var K=this,F=this.data.findIndex(function(M){return K.getItemKey(M)===y});if(F>=0)return this.data[F]}},{key:"update",value:function(y){var K=this.findIndex(y);if(K>=0){var F=Object.assign(this.data[K],y);this.data[K]=F,this.dataChange.next(this.data),this.itemUpdated.next(F)}}},{key:"remove",value:function(y){var K=this.findIndex(y);K>=0&&(this.data.splice(K,1),this.dataChange.next(this.data))}},{key:"changes",get:function(){return this.dataChange}},{key:"itemChanged",get:function(){return this.itemUpdated}},{key:"clear",value:function(){this.data=[],this.dataChange.next(this.data)}},{key:"findIndex",value:function(y){var K=this;return this.data.findIndex(function(F){return K.getItemKey(F)===K.getItemKey(y)})}}]),P}()},6215:function(qe,J,m){"use strict";m.d(J,{F:function(){return D}});var z=m(5671),Y=m(3144),S=m(136),U=m(9388),L=m(5735),P=m(5e3),D=function(y){(0,S.Z)(F,y);var K=(0,U.Z)(F);function F(){return(0,z.Z)(this,F),K.apply(this,arguments)}return(0,Y.Z)(F,[{key:"getItemKey",value:function(O){return O.link_id}}]),F}(L.o);D.\u0275fac=function(){var y;return function(F){return(y||(y=P.n5z(D)))(F||D)}}(),D.\u0275prov=P.Yz7({token:D,factory:D.\u0275fac})},5366:function(qe,J,m){"use strict";m.d(J,{G:function(){return D}});var z=m(5671),Y=m(3144),S=m(136),U=m(9388),L=m(5735),P=m(5e3),D=function(y){(0,S.Z)(F,y);var K=(0,U.Z)(F);function F(){return(0,z.Z)(this,F),K.apply(this,arguments)}return(0,Y.Z)(F,[{key:"getItemKey",value:function(O){return O.node_id}}]),F}(L.o);D.\u0275fac=function(){var y;return function(F){return(y||(y=P.n5z(D)))(F||D)}}(),D.\u0275prov=P.Yz7({token:D,factory:D.\u0275fac})},5542:function(qe,J,m){"use strict";m.d(J,{X:function(){return P}});var z=m(5671),Y=m(3144),S=m(4766),U=m(5e3),L=m(2437),P=function(){function D(y){(0,z.Z)(this,D),this.httpController=y}return(0,Y.Z)(D,[{key:"getComputes",value:function(K){return this.httpController.get(K,"/computes")}},{key:"getUploadPath",value:function(K,F,M){return"".concat(K.protocol,"//").concat(K.host,":").concat(K.port,"/").concat(S.N.current_version,"/").concat(F,"/images/").concat(M)}},{key:"getStatistics",value:function(K){return this.httpController.get(K,"/statistics")}}]),D}();P.\u0275fac=function(y){return new(y||P)(U.LFG(L.zw))},P.\u0275prov=U.Yz7({token:P,factory:P.\u0275fac})},2437:function(qe,J,m){"use strict";m.d(J,{CJ:function(){return O},zw:function(){return k}});var z=m(5671),Y=m(3144),S=m(136),U=m(9388),L=m(5724),P=m(5e3),D=m(4766),y=m(1737),K=m(7221),F=m(520),M=function(I){(0,S.Z)(w,I);var T=(0,U.Z)(w);function w(x){return(0,z.Z)(this,w),T.call(this,x)}return(0,Y.Z)(w,null,[{key:"fromError",value:function(N,R){var W=new w(N);return W.originalError=R,W}}]),w}((0,L.Z)(Error)),O=function(){function I(){(0,z.Z)(this,I)}return(0,Y.Z)(I,[{key:"handleError",value:function(w){var x=w;return"HttpErrorResponse"===w.name&&0===w.status&&(x=M.fromError("Controller is unreachable",w)),401===w.status&&window.location.reload(),(0,y._)(x)}}]),I}();O.\u0275fac=function(T){return new(T||O)},O.\u0275prov=P.Yz7({token:O,factory:O.\u0275fac});var k=function(){function I(T,w){(0,z.Z)(this,I),this.http=T,this.errorHandler=w,this.requestsNotificationEmitter=new P.vpe}return(0,Y.Z)(I,[{key:"get",value:function(w,x,N){N=this.getJsonOptions(N);var R=this.getOptionsForController(w,x,N);return this.requestsNotificationEmitter.emit("GET ".concat(R.url)),this.http.get(R.url,R.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"getText",value:function(w,x,N){N=this.getTextOptions(N);var R=this.getOptionsForController(w,x,N);return this.requestsNotificationEmitter.emit("GET ".concat(R.url)),this.http.get(R.url,R.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"getBlob",value:function(w,x,N){N=this.getBlobOptions(N);var R=this.getOptionsForController(w,x,N);return this.requestsNotificationEmitter.emit("GET ".concat(R.url)),this.http.get(R.url,R.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"post",value:function(w,x,N,R){R=this.getJsonOptions(R);var W=this.getOptionsForController(w,x,R);return this.requestsNotificationEmitter.emit("POST ".concat(W.url)),this.http.post(W.url,N,W.oLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
(self.webpackChunkgns3_web_ui=self.webpackChunkgns3_web_ui||[]).push([[179],{5735:function(qe,J,m){"use strict";m.d(J,{o:function(){return L}});var z=m(5671),Y=m(3144),M=m(591),U=m(8929),L=function(){function P(){(0,z.Z)(this,P),this.data=[],this.dataChange=new M.X([]),this.itemUpdated=new U.xQ}return(0,Y.Z)(P,[{key:"getItems",value:function(){return this.data}},{key:"add",value:function(y){this.findIndex(y)>=0?this.update(y):(this.data.push(y),this.dataChange.next(this.data))}},{key:"set",value:function(y){var K=this;y.forEach(function(E){var A=K.findIndex(E);if(A>=0){var k=Object.assign(K.data[A],E);K.data[A]=k}else K.data.push(E)}),this.data.filter(function(E){return 0===y.filter(function(A){return K.getItemKey(A)===K.getItemKey(E)}).length}).forEach(function(E){return K.remove(E)}),this.dataChange.next(this.data)}},{key:"get",value:function(y){var K=this,F=this.data.findIndex(function(E){return K.getItemKey(E)===y});if(F>=0)return this.data[F]}},{key:"update",value:function(y){var K=this.findIndex(y);if(K>=0){var F=Object.assign(this.data[K],y);this.data[K]=F,this.dataChange.next(this.data),this.itemUpdated.next(F)}}},{key:"remove",value:function(y){var K=this.findIndex(y);K>=0&&(this.data.splice(K,1),this.dataChange.next(this.data))}},{key:"changes",get:function(){return this.dataChange}},{key:"itemChanged",get:function(){return this.itemUpdated}},{key:"clear",value:function(){this.data=[],this.dataChange.next(this.data)}},{key:"findIndex",value:function(y){var K=this;return this.data.findIndex(function(F){return K.getItemKey(F)===K.getItemKey(y)})}}]),P}()},6215:function(qe,J,m){"use strict";m.d(J,{F:function(){return D}});var z=m(5671),Y=m(3144),M=m(136),U=m(9388),L=m(5735),P=m(5e3),D=function(y){(0,M.Z)(F,y);var K=(0,U.Z)(F);function F(){return(0,z.Z)(this,F),K.apply(this,arguments)}return(0,Y.Z)(F,[{key:"getItemKey",value:function(A){return A.link_id}}]),F}(L.o);D.\u0275fac=function(){var y;return function(F){return(y||(y=P.n5z(D)))(F||D)}}(),D.\u0275prov=P.Yz7({token:D,factory:D.\u0275fac})},5366:function(qe,J,m){"use strict";m.d(J,{G:function(){return D}});var z=m(5671),Y=m(3144),M=m(136),U=m(9388),L=m(5735),P=m(5e3),D=function(y){(0,M.Z)(F,y);var K=(0,U.Z)(F);function F(){return(0,z.Z)(this,F),K.apply(this,arguments)}return(0,Y.Z)(F,[{key:"getItemKey",value:function(A){return A.node_id}}]),F}(L.o);D.\u0275fac=function(){var y;return function(F){return(y||(y=P.n5z(D)))(F||D)}}(),D.\u0275prov=P.Yz7({token:D,factory:D.\u0275fac})},5542:function(qe,J,m){"use strict";m.d(J,{X:function(){return P}});var z=m(5671),Y=m(3144),M=m(4766),U=m(5e3),L=m(2437),P=function(){function D(y){(0,z.Z)(this,D),this.httpController=y}return(0,Y.Z)(D,[{key:"getComputes",value:function(K){return this.httpController.get(K,"/computes")}},{key:"getUploadPath",value:function(K,F,E){return"".concat(K.protocol,"//").concat(K.host,":").concat(K.port,"/").concat(M.N.current_version,"/").concat(F,"/images/").concat(E)}},{key:"getStatistics",value:function(K){return this.httpController.get(K,"/statistics")}}]),D}();P.\u0275fac=function(y){return new(y||P)(U.LFG(L.zw))},P.\u0275prov=U.Yz7({token:P,factory:P.\u0275fac})},2437:function(qe,J,m){"use strict";m.d(J,{CJ:function(){return A},zw:function(){return k}});var z=m(5671),Y=m(3144),M=m(136),U=m(9388),L=m(5724),P=m(5e3),D=m(4766),y=m(1737),K=m(7221),F=m(520),E=function(I){(0,M.Z)(w,I);var T=(0,U.Z)(w);function w(S){return(0,z.Z)(this,w),T.call(this,S)}return(0,Y.Z)(w,null,[{key:"fromError",value:function(N,R){var W=new w(N);return W.originalError=R,W}}]),w}((0,L.Z)(Error)),A=function(){function I(){(0,z.Z)(this,I)}return(0,Y.Z)(I,[{key:"handleError",value:function(w){var S=w;return"HttpErrorResponse"===w.name&&0===w.status&&(S=E.fromError("Controller is unreachable",w)),401===w.status&&window.location.reload(),(0,y._)(S)}}]),I}();A.\u0275fac=function(T){return new(T||A)},A.\u0275prov=P.Yz7({token:A,factory:A.\u0275fac});var k=function(){function I(T,w){(0,z.Z)(this,I),this.http=T,this.errorHandler=w,this.requestsNotificationEmitter=new P.vpe}return(0,Y.Z)(I,[{key:"get",value:function(w,S,N){N=this.getJsonOptions(N);var R=this.getOptionsForController(w,S,N);return this.requestsNotificationEmitter.emit("GET ".concat(R.url)),this.http.get(R.url,R.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"getText",value:function(w,S,N){N=this.getTextOptions(N);var R=this.getOptionsForController(w,S,N);return this.requestsNotificationEmitter.emit("GET ".concat(R.url)),this.http.get(R.url,R.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"getBlob",value:function(w,S,N){N=this.getBlobOptions(N);var R=this.getOptionsForController(w,S,N);return this.requestsNotificationEmitter.emit("GET ".concat(R.url)),this.http.get(R.url,R.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"post",value:function(w,S,N,R){R=this.getJsonOptions(R);var W=this.getOptionsForController(w,S,R);return this.requestsNotificationEmitter.emit("POST ".concat(W.url)),this.http.post(W.url,N,W.oLine truncated
|
||||
Reference in new issue
Block a user