Compare commits
202 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b88e356536 | ||
|
|
9292bba09a | ||
|
|
8b1e978e7c | ||
|
|
24b1252911 | ||
|
|
edece4f91c | ||
|
|
b84d6631b3 | ||
|
|
73a427bb09 | ||
|
|
0063e27bb2 | ||
|
|
24708f2bd8 | ||
|
|
317266e09a | ||
|
|
a9ad3d34f9 | ||
|
|
2b2554e4f7 | ||
|
|
343c14d846 | ||
|
|
fd158a2e56 | ||
|
|
dd542457de | ||
|
|
74cacd2854 | ||
|
|
5fada4feed | ||
|
|
4ef3df4d1d | ||
|
|
d7ba6dca3b | ||
|
|
0702c2a058 | ||
|
|
3fb9c3b522 | ||
|
|
22d7b724a1 | ||
|
|
9a627d4927 | ||
|
|
c8fddfe18d | ||
|
|
805a93dc60 | ||
|
|
f65391ef6d | ||
|
|
6ed9bedae0 | ||
|
|
6b4757df36 | ||
|
|
e1970e716b | ||
|
|
b996cf004c | ||
|
|
92f325a67b | ||
|
|
81919c8e9d | ||
|
|
2a3eccfe30 | ||
|
|
14158d3f60 | ||
|
|
fbec2def38 | ||
|
|
b610a376f1 | ||
|
|
d9f7eff0f2 | ||
|
|
8399f18e11 | ||
|
|
067dc2c7da | ||
|
|
a7f8c42983 | ||
|
|
8d041ee600 | ||
|
|
186fb52ac1 | ||
|
|
2814c92a2e | ||
|
|
fb5abbdee0 | ||
|
|
6c29373a0f | ||
|
|
ece1183e55 | ||
|
|
54973c7306 | ||
|
|
cd99761892 | ||
|
|
e764eac338 | ||
|
|
663e1f577d | ||
|
|
2b29df5164 | ||
|
|
a6dc7dacdd | ||
|
|
818114a701 | ||
|
|
a42eb85772 | ||
|
|
130e0d8de9 | ||
|
|
8a770ec0fa | ||
|
|
7d15711bb2 | ||
|
|
39e3d777bc | ||
|
|
8b6dac3216 | ||
|
|
9f412be93c | ||
|
|
0b43901c11 | ||
|
|
c15fa47244 | ||
|
|
8de21b4bbf | ||
|
|
3c3e987c62 | ||
|
|
f2d2d740d7 | ||
|
|
8ff19f260a | ||
|
|
5a8056adee | ||
|
|
665871ba78 | ||
|
|
1e937414d3 | ||
|
|
356e1a3827 | ||
|
|
98f1f1c08f | ||
|
|
c7f50a776b | ||
|
|
a7b7551b52 | ||
|
|
8123a7a850 | ||
|
|
7fbb3318e9 | ||
|
|
379f373b86 | ||
|
|
30825a6271 | ||
|
|
45ad35308e | ||
|
|
b2fe88b6c7 | ||
|
|
a8f111c463 | ||
|
|
70e5113ef9 | ||
|
|
fae6276267 | ||
|
|
ad08d71da1 | ||
|
|
fd29c6c3ca | ||
|
|
c1caefc207 | ||
|
|
5149a2c5e1 | ||
|
|
cb51334761 | ||
|
|
45281587f7 | ||
|
|
1131a8607d | ||
|
|
1ced9bbc9e | ||
|
|
353355a101 | ||
|
|
ca081f0bdd | ||
|
|
629c2a03da | ||
|
|
ab15a02d54 | ||
|
|
17a93838f9 | ||
|
|
e3802d2af2 | ||
|
|
7cbe9dbf90 | ||
|
|
6c60ccd08f | ||
|
|
14daf2fa8e | ||
|
|
0744654d3e | ||
|
|
0ae75f82dc | ||
|
|
872f07f043 | ||
|
|
19c22fbfec | ||
|
|
e37d881eaa | ||
|
|
6df0af5fde | ||
|
|
eb633f877a | ||
|
|
df267a8903 | ||
|
|
79786c4d97 | ||
|
|
61eb106481 | ||
|
|
96c18c6033 | ||
|
|
b06ab3b6db | ||
|
|
056964306b | ||
|
|
921ef46b06 | ||
|
|
3eed9c9b9a | ||
|
|
3e410e4eca | ||
|
|
720c2586bd | ||
|
|
eb1a7df871 | ||
|
|
f57721631b | ||
|
|
cebc34e6c3 | ||
|
|
bbc128cd20 | ||
|
|
f90ebdce1b | ||
|
|
3043729706 | ||
|
|
aca3021836 | ||
|
|
5c783ae798 | ||
|
|
952d9c7bd1 | ||
|
|
0104967919 | ||
|
|
338c5b7a24 | ||
|
|
0ec7226d08 | ||
|
|
74f0fb8e58 | ||
|
|
ea52dd77ea | ||
|
|
f059478083 | ||
|
|
d6126b946c | ||
|
|
7564ae2bd1 | ||
|
|
0412283325 | ||
|
|
78dacb0ebd | ||
|
|
ff713a3025 | ||
|
|
7633fb2afb | ||
|
|
51fef359f7 | ||
|
|
f1a79ac477 | ||
|
|
3bcadb8fe2 | ||
|
|
d2d16d31d5 | ||
|
|
e5851bfbb0 | ||
|
|
5e58053180 | ||
|
|
9fd66c1be0 | ||
|
|
fb16ddd698 | ||
|
|
f606c0fdf6 | ||
|
|
9b4e6871f5 | ||
|
|
94f6278183 | ||
|
|
780f4939e7 | ||
|
|
bb632874c0 | ||
|
|
72b914d03c | ||
|
|
b27487480e | ||
|
|
da1e5d4eef | ||
|
|
a477e59b2d | ||
|
|
bf5a95d4aa | ||
|
|
67cc1f5be9 | ||
|
|
4c195ba002 | ||
|
|
f23627e764 | ||
|
|
52e91463b4 | ||
|
|
2656be20a1 | ||
|
|
19e7f5f898 | ||
|
|
a8dfd82d93 | ||
|
|
f7809b4895 | ||
|
|
a064585a66 | ||
|
|
37912e565e | ||
|
|
05b89f1f56 | ||
|
|
01a631f331 | ||
|
|
9a7084626e | ||
|
|
c89ce6b75b | ||
|
|
a1e0a241a7 | ||
|
|
2d9ab76b62 | ||
|
|
210d33dbea | ||
|
|
be267b2178 | ||
|
|
02c60196a5 | ||
|
|
33840562ab | ||
|
|
de1535d716 | ||
|
|
1673c0745a | ||
|
|
ae738d2e99 | ||
|
|
a9f68f08ae | ||
|
|
58a5218f7a | ||
|
|
0a8a8da510 | ||
|
|
decd6d85db | ||
|
|
ad9436f630 | ||
|
|
830950f3b1 | ||
|
|
d4473e894c | ||
|
|
bcc6b2dce5 | ||
|
|
48b4b132d7 | ||
|
|
99ca6a0004 | ||
|
|
3bf83f568e | ||
|
|
68ce10968e | ||
|
|
b3a6eee6a1 | ||
|
|
b4d2250bd4 | ||
|
|
edd974585d | ||
|
|
316ab85ffe | ||
|
|
d5edf32c04 | ||
|
|
06ebe40aaf | ||
|
|
746603e6f1 | ||
|
|
7170767229 | ||
|
|
e238cfe683 | ||
|
|
fac5c225c9 | ||
|
|
ddb7f0df0f | ||
|
|
1d0509b303 |
12
.gitignore
vendored
12
.gitignore
vendored
@@ -37,11 +37,15 @@ testem.log
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
**/*/proc-logs/**/*.log
|
||||
/logs/**/*.log
|
||||
/logs/**/*.config
|
||||
**/*/.terraform*
|
||||
**/*/terraform.tfstate*
|
||||
scenarios_templates/azqmi-qseok/bin
|
||||
.vscode/
|
||||
server/scenarios_templates*
|
||||
server/az-tf-templates
|
||||
/scenarios_templates*
|
||||
/az-tf-templates
|
||||
secrets.json
|
||||
|
||||
qmi-cloud-tf-modules/
|
||||
*.pfx
|
||||
|
||||
|
||||
16
.gitlab-ci.yml
Normal file
16
.gitlab-ci.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
image: docker:stable
|
||||
|
||||
services:
|
||||
- docker:dind
|
||||
stages:
|
||||
- build
|
||||
|
||||
'Docker build and push':
|
||||
stage: build
|
||||
only:
|
||||
- master
|
||||
script:
|
||||
- chmod +x ./gitlab-ci.sh
|
||||
- ./gitlab-ci.sh
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
FROM node:11-alpine
|
||||
|
||||
RUN apk add yarn
|
||||
RUN npm install ejs -g
|
||||
|
||||
WORKDIR /var/www/app
|
||||
FROM node:13.8-alpine
|
||||
|
||||
WORKDIR /var/www/app
|
||||
15
README.md
15
README.md
@@ -2,6 +2,16 @@
|
||||
|
||||
## Pre-requisites
|
||||
- Docker (desktop for Mac - temporary)
|
||||
- A file named secrets.json with this JSON information
|
||||
|
||||
```json
|
||||
{
|
||||
"AZURE_TENANT_ID" : "xxxxxxxx",
|
||||
"AZURE_CLIENT_ID": "yyyyyyyy",
|
||||
"AZURE_CLIENT_SECRET": "zzzzzzzz"
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
## Run it
|
||||
|
||||
@@ -45,8 +55,7 @@ UI: http://localhost:8081
|
||||
|
||||
Basic-Auth: qlik / Qlik1234
|
||||
|
||||
Database: qmi
|
||||
http://localhost:8081/db/qmi/
|
||||
Database: qmicloud
|
||||
|
||||
## API / Swagger API-DOCS
|
||||
It shows available endpoints
|
||||
@@ -57,7 +66,7 @@ http://localhost:3000/api-docs
|
||||
|
||||
- Go to: http://localhost:3000
|
||||
- Authenticate
|
||||
- Go to: http://localhost:3000/myprovisions
|
||||
- Go to: http://localhost:3000/provisions
|
||||
|
||||
|
||||
|
||||
|
||||
19
angular.json
19
angular.json
@@ -10,7 +10,7 @@
|
||||
"prefix": "app",
|
||||
"schematics": {
|
||||
"@schematics/angular:component": {
|
||||
"styleext": "scss"
|
||||
"style": "scss"
|
||||
}
|
||||
},
|
||||
"architect": {
|
||||
@@ -27,9 +27,24 @@
|
||||
"src/assets"
|
||||
],
|
||||
"styles": [
|
||||
"node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss",
|
||||
"node_modules/@fortawesome/fontawesome-free/scss/solid.scss",
|
||||
"node_modules/@fortawesome/fontawesome-free/scss/regular.scss",
|
||||
"node_modules/@fortawesome/fontawesome-free/scss/brands.scss",
|
||||
"node_modules/angular-bootstrap-md/assets/scss/bootstrap/bootstrap.scss",
|
||||
"node_modules/angular-bootstrap-md/assets/scss/mdb.scss",
|
||||
"node_modules/animate.css/animate.css",
|
||||
"node_modules/prismjs/themes/prism.css",
|
||||
"src/styles.scss"
|
||||
],
|
||||
"scripts": []
|
||||
"scripts": [
|
||||
"node_modules/chart.js/dist/Chart.js",
|
||||
"node_modules/hammerjs/hammer.min.js",
|
||||
"node_modules/marked/lib/marked.js",
|
||||
"node_modules/prismjs/prism.js",
|
||||
"node_modules/prismjs/plugins/line-highlight/prism-line-highlight.js",
|
||||
"node_modules/prismjs/plugins/line-numbers/prism-line-numbers.js"
|
||||
]
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
|
||||
12
dist/out-tsc/e2e/src/app.e2e-spec.js
vendored
Normal file
12
dist/out-tsc/e2e/src/app.e2e-spec.js
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import { AppPage } from './app.po';
|
||||
describe('workspace-project App', function () {
|
||||
var page;
|
||||
beforeEach(function () {
|
||||
page = new AppPage();
|
||||
});
|
||||
it('should display welcome message', function () {
|
||||
page.navigateTo();
|
||||
expect(page.getTitleText()).toEqual('Welcome to qmi-cloud!');
|
||||
});
|
||||
});
|
||||
//# sourceMappingURL=app.e2e-spec.js.map
|
||||
1
dist/out-tsc/e2e/src/app.e2e-spec.js.map
vendored
Normal file
1
dist/out-tsc/e2e/src/app.e2e-spec.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"app.e2e-spec.js","sourceRoot":"","sources":["../../../../e2e/src/app.e2e-spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEnC,QAAQ,CAAC,uBAAuB,EAAE;IAChC,IAAI,IAAa,CAAC;IAElB,UAAU,CAAC;QACT,IAAI,GAAG,IAAI,OAAO,EAAE,CAAC;IACvB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,gCAAgC,EAAE;QACnC,IAAI,CAAC,UAAU,EAAE,CAAC;QAClB,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAC/D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
||||
14
dist/out-tsc/e2e/src/app.po.js
vendored
Normal file
14
dist/out-tsc/e2e/src/app.po.js
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import { browser, by, element } from 'protractor';
|
||||
var AppPage = /** @class */ (function () {
|
||||
function AppPage() {
|
||||
}
|
||||
AppPage.prototype.navigateTo = function () {
|
||||
return browser.get('/');
|
||||
};
|
||||
AppPage.prototype.getTitleText = function () {
|
||||
return element(by.css('app-root h1')).getText();
|
||||
};
|
||||
return AppPage;
|
||||
}());
|
||||
export { AppPage };
|
||||
//# sourceMappingURL=app.po.js.map
|
||||
1
dist/out-tsc/e2e/src/app.po.js.map
vendored
Normal file
1
dist/out-tsc/e2e/src/app.po.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"app.po.js","sourceRoot":"","sources":["../../../../e2e/src/app.po.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAElD;IAAA;IAQA,CAAC;IAPC,4BAAU,GAAV;QACE,OAAO,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC1B,CAAC;IAED,8BAAY,GAAZ;QACE,OAAO,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IAClD,CAAC;IACH,cAAC;AAAD,CAAC,AARD,IAQC"}
|
||||
53
dist/out-tsc/src/app/admin/admin.component.js
vendored
Normal file
53
dist/out-tsc/src/app/admin/admin.component.js
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Component } from '@angular/core';
|
||||
import { UsersService } from '../services/users.service';
|
||||
import { ProvisionsService } from '../services/provisions.service';
|
||||
import { ScenariosService } from '../services/scenarios.service';
|
||||
var AdminComponent = /** @class */ (function () {
|
||||
function AdminComponent(_usersService, _provisionsService, _scenariosService) {
|
||||
this._usersService = _usersService;
|
||||
this._provisionsService = _provisionsService;
|
||||
this._scenariosService = _scenariosService;
|
||||
this.filter = {
|
||||
showDestroyed: false
|
||||
};
|
||||
}
|
||||
AdminComponent.prototype.ngOnInit = function () {
|
||||
var _this = this;
|
||||
var usersSub = this._usersService.getUsers().subscribe(function (res) {
|
||||
usersSub.unsubscribe();
|
||||
_this.users = res.results;
|
||||
});
|
||||
};
|
||||
/*private _refresh(): void {
|
||||
this.provisions = null;
|
||||
var instantSubs = this._provisionsService.getProvisionsAdmin(this.filterParams).subscribe( provisions=>{
|
||||
instantSubs.unsubscribe();
|
||||
this._process(provisions.results);
|
||||
});
|
||||
}*/
|
||||
AdminComponent.prototype.ngOnDestroy = function () {
|
||||
if (this.subscription) {
|
||||
this.subscription.unsubscribe();
|
||||
}
|
||||
};
|
||||
AdminComponent = __decorate([
|
||||
Component({
|
||||
selector: 'app-admin',
|
||||
templateUrl: './admin.component.html',
|
||||
styleUrls: ['./admin.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [UsersService, ProvisionsService, ScenariosService])
|
||||
], AdminComponent);
|
||||
return AdminComponent;
|
||||
}());
|
||||
export { AdminComponent };
|
||||
//# sourceMappingURL=admin.component.js.map
|
||||
1
dist/out-tsc/src/app/admin/admin.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/admin/admin.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"admin.component.js","sourceRoot":"","sources":["../../../../../src/app/admin/admin.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAU,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAGnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAOjE;IAaE,wBAAqB,aAA2B,EAAU,kBAAqC,EAAU,iBAAmC;QAAvH,kBAAa,GAAb,aAAa,CAAc;QAAU,uBAAkB,GAAlB,kBAAkB,CAAmB;QAAU,sBAAiB,GAAjB,iBAAiB,CAAkB;QAL5I,WAAM,GAAG;YACP,aAAa,EAAG,KAAK;SACtB,CAAC;IAG+I,CAAC;IAIlJ,iCAAQ,GAAR;QAAA,iBAOC;QALC,IAAI,QAAQ,GAAG,IAAI,CAAC,aAAa,CAAC,QAAQ,EAAE,CAAC,SAAS,CAAE,UAAA,GAAG;YACzD,QAAQ,CAAC,WAAW,EAAE,CAAC;YACvB,KAAI,CAAC,KAAK,GAAG,GAAG,CAAC,OAAO,CAAC;QAC3B,CAAC,CAAC,CAAC;IAEL,CAAC;IAED;;;;;;OAMG;IAEH,oCAAW,GAAX;QACE,IAAK,IAAI,CAAC,YAAY,EAAG;YACvB,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC;SACjC;IACH,CAAC;IAtCU,cAAc;QAL1B,SAAS,CAAC;YACT,QAAQ,EAAE,WAAW;YACrB,WAAW,EAAE,wBAAwB;YACrC,SAAS,EAAE,CAAC,wBAAwB,CAAC;SACtC,CAAC;yCAcoC,YAAY,EAA8B,iBAAiB,EAA6B,gBAAgB;OAbjI,cAAc,CAiD1B;IAAD,qBAAC;CAAA,AAjDD,IAiDC;SAjDY,cAAc"}
|
||||
21
dist/out-tsc/src/app/admin/admin.component.spec.js
vendored
Normal file
21
dist/out-tsc/src/app/admin/admin.component.spec.js
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import { async, TestBed } from '@angular/core/testing';
|
||||
import { AdminComponent } from './admin.component';
|
||||
describe('AdminComponent', function () {
|
||||
var component;
|
||||
var fixture;
|
||||
beforeEach(async(function () {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [AdminComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
beforeEach(function () {
|
||||
fixture = TestBed.createComponent(AdminComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
it('should create', function () {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
//# sourceMappingURL=admin.component.spec.js.map
|
||||
1
dist/out-tsc/src/app/admin/admin.component.spec.js.map
vendored
Normal file
1
dist/out-tsc/src/app/admin/admin.component.spec.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"admin.component.spec.js","sourceRoot":"","sources":["../../../../../src/app/admin/admin.component.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAoB,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,QAAQ,CAAC,gBAAgB,EAAE;IACzB,IAAI,SAAyB,CAAC;IAC9B,IAAI,OAAyC,CAAC;IAE9C,UAAU,CAAC,KAAK,CAAC;QACf,OAAO,CAAC,sBAAsB,CAAC;YAC7B,YAAY,EAAE,CAAE,cAAc,CAAE;SACjC,CAAC;aACD,iBAAiB,EAAE,CAAC;IACvB,CAAC,CAAC,CAAC,CAAC;IAEJ,UAAU,CAAC;QACT,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC;QAClD,SAAS,GAAG,OAAO,CAAC,iBAAiB,CAAC;QACtC,OAAO,CAAC,aAAa,EAAE,CAAC;IAC1B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,eAAe,EAAE;QAClB,MAAM,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
||||
43
dist/out-tsc/src/app/alert/alert.component.js
vendored
Normal file
43
dist/out-tsc/src/app/alert/alert.component.js
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Component, ViewChild, ElementRef } from '@angular/core';
|
||||
import { AlertService } from '../services/alert.service';
|
||||
var AlertComponent = /** @class */ (function () {
|
||||
function AlertComponent(_alertService) {
|
||||
this._alertService = _alertService;
|
||||
this.alert = null;
|
||||
}
|
||||
AlertComponent.prototype.ngOnInit = function () {
|
||||
this.subscription = this._alertService.getAlertEmitter().subscribe(function (data) {
|
||||
this.alert = data;
|
||||
}.bind(this));
|
||||
};
|
||||
AlertComponent.prototype.ngOnDestroy = function () {
|
||||
this.subscription.unsubscribe();
|
||||
};
|
||||
AlertComponent.prototype.closeAlert = function () {
|
||||
this.alert = null;
|
||||
};
|
||||
__decorate([
|
||||
ViewChild('qmialert', { static: true }),
|
||||
__metadata("design:type", ElementRef)
|
||||
], AlertComponent.prototype, "alertEl", void 0);
|
||||
AlertComponent = __decorate([
|
||||
Component({
|
||||
selector: 'qmi-alert',
|
||||
templateUrl: './alert.component.html',
|
||||
styleUrls: ['./alert.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [AlertService])
|
||||
], AlertComponent);
|
||||
return AlertComponent;
|
||||
}());
|
||||
export { AlertComponent };
|
||||
//# sourceMappingURL=alert.component.js.map
|
||||
1
dist/out-tsc/src/app/alert/alert.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/alert/alert.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"alert.component.js","sourceRoot":"","sources":["../../../../../src/app/alert/alert.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAqB,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACpF,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAQzD;IAME,wBAAoB,aAA2B;QAA3B,kBAAa,GAAb,aAAa,CAAc;QAF/C,UAAK,GAAS,IAAI,CAAC;IAE+B,CAAC;IAEnD,iCAAQ,GAAR;QACE,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC,eAAe,EAAE,CAAC,SAAS,CAAC,UAAS,IAAI;YAC5E,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QACtB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAChB,CAAC;IAED,oCAAW,GAAX;QACE,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC;IAClC,CAAC;IAED,mCAAU,GAAV;QACI,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACtB,CAAC;IAlBwC;QAAxC,SAAS,CAAC,UAAU,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;kCAAU,UAAU;mDAAC;IAFlD,cAAc;QAL1B,SAAS,CAAC;YACT,QAAQ,EAAE,WAAW;YACrB,WAAW,EAAE,wBAAwB;YACrC,SAAS,EAAE,CAAC,wBAAwB,CAAC;SACtC,CAAC;yCAOmC,YAAY;OANpC,cAAc,CAsB1B;IAAD,qBAAC;CAAA,AAtBD,IAsBC;SAtBY,cAAc"}
|
||||
40
dist/out-tsc/src/app/alert/confirm.component.js
vendored
Normal file
40
dist/out-tsc/src/app/alert/confirm.component.js
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Component } from '@angular/core';
|
||||
import { MDBModalRef } from 'angular-bootstrap-md';
|
||||
import { Subject } from 'rxjs';
|
||||
var ModalConfirmComponent = /** @class */ (function () {
|
||||
function ModalConfirmComponent(modalRef) {
|
||||
this.modalRef = modalRef;
|
||||
this.action = new Subject();
|
||||
}
|
||||
ModalConfirmComponent.prototype.ngOnInit = function () {
|
||||
if (!this.info.buttonColor) {
|
||||
this.info.buttonColor = "danger";
|
||||
}
|
||||
};
|
||||
ModalConfirmComponent.prototype.ngOnDestroy = function () {
|
||||
};
|
||||
ModalConfirmComponent.prototype.confirm = function () {
|
||||
this.action.next();
|
||||
this.modalRef.hide();
|
||||
};
|
||||
ModalConfirmComponent = __decorate([
|
||||
Component({
|
||||
selector: 'qmi-modalconfirm',
|
||||
templateUrl: './confirm.component.html',
|
||||
styleUrls: ['./confirm.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [MDBModalRef])
|
||||
], ModalConfirmComponent);
|
||||
return ModalConfirmComponent;
|
||||
}());
|
||||
export { ModalConfirmComponent };
|
||||
//# sourceMappingURL=confirm.component.js.map
|
||||
1
dist/out-tsc/src/app/alert/confirm.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/alert/confirm.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"confirm.component.js","sourceRoot":"","sources":["../../../../../src/app/alert/confirm.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAA4B,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAO/B;IAKE,+BAAoB,QAAqB;QAArB,aAAQ,GAAR,QAAQ,CAAa;QAFzC,WAAM,GAAiB,IAAI,OAAO,EAAE,CAAC;IAEQ,CAAC;IAE9C,wCAAQ,GAAR;QACE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;YAC1B,IAAI,CAAC,IAAI,CAAC,WAAW,GAAG,QAAQ,CAAC;SAClC;IACH,CAAC;IAED,2CAAW,GAAX;IAEA,CAAC;IAED,uCAAO,GAAP;QACI,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;QACnB,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;IACzB,CAAC;IApBU,qBAAqB;QALjC,SAAS,CAAC;YACT,QAAQ,EAAE,kBAAkB;YAC5B,WAAW,EAAE,0BAA0B;YACvC,SAAS,EAAE,CAAC,0BAA0B,CAAC;SACxC,CAAC;yCAM8B,WAAW;OAL9B,qBAAqB,CAsBjC;IAAD,4BAAC;CAAA,AAtBD,IAsBC;SAtBY,qBAAqB"}
|
||||
31
dist/out-tsc/src/app/alert/modalinfo.component.js
vendored
Normal file
31
dist/out-tsc/src/app/alert/modalinfo.component.js
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Component } from '@angular/core';
|
||||
import { MDBModalRef } from 'angular-bootstrap-md';
|
||||
var ModalInfoComponent = /** @class */ (function () {
|
||||
function ModalInfoComponent(modalRef) {
|
||||
this.modalRef = modalRef;
|
||||
}
|
||||
ModalInfoComponent.prototype.ngOnInit = function () {
|
||||
};
|
||||
ModalInfoComponent.prototype.ngOnDestroy = function () {
|
||||
};
|
||||
ModalInfoComponent = __decorate([
|
||||
Component({
|
||||
selector: 'qmi-modalinfo',
|
||||
templateUrl: './modalinfo.component.html',
|
||||
styleUrls: ['./modalinfo.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [MDBModalRef])
|
||||
], ModalInfoComponent);
|
||||
return ModalInfoComponent;
|
||||
}());
|
||||
export { ModalInfoComponent };
|
||||
//# sourceMappingURL=modalinfo.component.js.map
|
||||
1
dist/out-tsc/src/app/alert/modalinfo.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/alert/modalinfo.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"modalinfo.component.js","sourceRoot":"","sources":["../../../../../src/app/alert/modalinfo.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAA4B,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAOnD;IAIE,4BAAoB,QAAqB;QAArB,aAAQ,GAAR,QAAQ,CAAa;IAAI,CAAC;IAE9C,qCAAQ,GAAR;IAEA,CAAC;IAED,wCAAW,GAAX;IAEA,CAAC;IAZU,kBAAkB;QAL9B,SAAS,CAAC;YACT,QAAQ,EAAE,eAAe;YACzB,WAAW,EAAE,4BAA4B;YACzC,SAAS,EAAE,CAAC,4BAA4B,CAAC;SAC1C,CAAC;yCAK8B,WAAW;OAJ9B,kBAAkB,CAc9B;IAAD,yBAAC;CAAA,AAdD,IAcC;SAdY,kBAAkB"}
|
||||
93
dist/out-tsc/src/app/alert/new-provision.component.js
vendored
Normal file
93
dist/out-tsc/src/app/alert/new-provision.component.js
vendored
Normal file
@@ -0,0 +1,93 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Component } from '@angular/core';
|
||||
import { MDBModalRef } from 'angular-bootstrap-md';
|
||||
import { Subject } from 'rxjs';
|
||||
import { ScenariosService } from '../services/scenarios.service';
|
||||
var NewProvisionConfirmComponent = /** @class */ (function () {
|
||||
function NewProvisionConfirmComponent(modalRef, _scenariosService) {
|
||||
this.modalRef = modalRef;
|
||||
this._scenariosService = _scenariosService;
|
||||
this.action = new Subject();
|
||||
this.sendData = {
|
||||
description: "",
|
||||
servers: null
|
||||
};
|
||||
this.selectedProductVersion = {};
|
||||
this.selectedVmType = {};
|
||||
this.selectedNodeCount = {};
|
||||
this.servers = {};
|
||||
}
|
||||
NewProvisionConfirmComponent.prototype.ngOnInit = function () {
|
||||
var _this = this;
|
||||
this.vmTypesSub = this._scenariosService.getScenarioVmtypes().subscribe(function (res) {
|
||||
_this.vmTypes = res.results;
|
||||
if (_this.scenario.availableProductVersions.length) {
|
||||
_this.scenario.availableProductVersions.forEach(function (server) {
|
||||
if (server.vmTypeDefault) {
|
||||
_this.selectedVmType[server.index] = server.vmTypeDefault;
|
||||
}
|
||||
if (server.nodeCount) {
|
||||
_this.selectedNodeCount[server.index] = server.nodeCount;
|
||||
}
|
||||
if (server.versions && server.versions.length) {
|
||||
var lastIndex = server.versions.length - 1;
|
||||
_this.selectedProductVersion[server.index] = server.productVersionDefault ? server.productVersionDefault : server.versions[lastIndex].name;
|
||||
}
|
||||
});
|
||||
}
|
||||
_this.vmTypesSub.unsubscribe();
|
||||
});
|
||||
};
|
||||
NewProvisionConfirmComponent.prototype.ngOnDestroy = function () {
|
||||
};
|
||||
NewProvisionConfirmComponent.prototype.confirm = function () {
|
||||
var _this = this;
|
||||
if (!this.sendData.description || this.sendData.description.trim() === "") {
|
||||
return;
|
||||
}
|
||||
this.sendData.servers = {};
|
||||
var _loop_1 = function (key) {
|
||||
if (!this_1.sendData.servers[key]) {
|
||||
this_1.sendData.servers[key] = {};
|
||||
}
|
||||
if (this_1.selectedVmType[key]) {
|
||||
this_1.sendData.servers[key].vmType = this_1.selectedVmType[key];
|
||||
}
|
||||
if (this_1.selectedNodeCount[key]) {
|
||||
this_1.sendData.servers[key].nodeCount = this_1.selectedNodeCount[key];
|
||||
}
|
||||
this_1.scenario.availableProductVersions.forEach(function (server) {
|
||||
server.versions.forEach(function (v) {
|
||||
if (v.name === _this.selectedProductVersion[key]) {
|
||||
_this.sendData.servers[key].version = v;
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
var this_1 = this;
|
||||
for (var key in this.selectedVmType) {
|
||||
_loop_1(key);
|
||||
}
|
||||
this.action.next(this.sendData);
|
||||
this.modalRef.hide();
|
||||
};
|
||||
NewProvisionConfirmComponent = __decorate([
|
||||
Component({
|
||||
selector: 'qmi-new-provision',
|
||||
templateUrl: './new-provision.component.html',
|
||||
styleUrls: ['./new-provision.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [MDBModalRef, ScenariosService])
|
||||
], NewProvisionConfirmComponent);
|
||||
return NewProvisionConfirmComponent;
|
||||
}());
|
||||
export { NewProvisionConfirmComponent };
|
||||
//# sourceMappingURL=new-provision.component.js.map
|
||||
1
dist/out-tsc/src/app/alert/new-provision.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/alert/new-provision.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"new-provision.component.js","sourceRoot":"","sources":["../../../../../src/app/alert/new-provision.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAqB,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAgB,MAAM,MAAM,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAOjE;IAeE,sCAAoB,QAAqB,EAAU,iBAAmC;QAAlE,aAAQ,GAAR,QAAQ,CAAa;QAAU,sBAAiB,GAAjB,iBAAiB,CAAkB;QAZtF,WAAM,GAAiB,IAAI,OAAO,EAAE,CAAC;QAErC,aAAQ,GAAG;YACT,WAAW,EAAE,EAAE;YACf,OAAO,EAAE,IAAI;SACd,CAAC;QACF,2BAAsB,GAAQ,EAAE,CAAC;QACjC,mBAAc,GAAQ,EAAE,CAAC;QACzB,sBAAiB,GAAQ,EAAE,CAAC;QAG5B,YAAO,GAAQ,EAAE,CAAC;IACwE,CAAC;IAE3F,+CAAQ,GAAR;QAAA,iBAyBC;QAxBC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,EAAE,CAAC,SAAS,CAAG,UAAA,GAAG;YAC3E,KAAI,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC;YAI3B,IAAK,KAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,MAAM,EAAG;gBACnD,KAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,OAAO,CAAC,UAAA,MAAM;oBACjD,IAAI,MAAM,CAAC,aAAa,EAAE;wBACxB,KAAI,CAAC,cAAc,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,aAAa,CAAC;qBAC1D;oB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K,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,SAAS,GAAG,OAAK,iBAAiB,CAAC,GAAG,CAAC,CAAC;aACpE;YAED,OAAK,QAAQ,CAAC,wBAAwB,CAAC,OAAO,CAAC,UAAA,MAAM;gBACnD,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,UAAA,CAAC;oBACvB,IAAI,CAAC,CAAC,IAAI,KAAK,KAAI,CAAC,sBAAsB,CAAC,GAAG,CAAC,EAAC;wBAC9C,KAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC;qBACxC;gBACH,CAAC,CAAC,CAAA;YACJ,CAAC,CAAC,CAAC;;;QAjBL,KAAK,IAAI,GAAG,IAAI,IAAI,CAAC,cAAc;oBAA1B,GAAG;SAkBX;QACD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAChC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;IACzB,CAAC;IA1EU,4BAA4B;QALxC,SAAS,CAAC;YACT,QAAQ,EAAE,mBAAmB;YAC7B,WAAW,EAAE,gCAAgC;YAC7C,SAAS,EAAE,CAAC,gCAAgC,CAAC;SAC9C,CAAC;yCAgB8B,WAAW,EAA6B,gBAAgB;OAf3E,4BAA4B,CA4ExC;IAAD,mCAAC;CAAA,AA5ED,IA4EC;SA5EY,4BAA4B"}
|
||||
37
dist/out-tsc/src/app/app-routing.module.js
vendored
Normal file
37
dist/out-tsc/src/app/app-routing.module.js
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
import { NgModule } from '@angular/core';
|
||||
import { RouterModule } from '@angular/router';
|
||||
import { ProvisionsComponent } from './provisions/provisions.component';
|
||||
import { AdminComponent } from './admin/admin.component';
|
||||
import { HomeComponent } from './home/home.component';
|
||||
import { AuthGuard } from './services/auth.guard';
|
||||
import { FaqComponent } from './faq/faq.component';
|
||||
var routes = [
|
||||
{ path: 'home', component: HomeComponent },
|
||||
{ path: 'faq', component: FaqComponent },
|
||||
{ path: 'provisions', component: ProvisionsComponent, canActivate: [AuthGuard] },
|
||||
{ path: 'admin', component: AdminComponent, canActivate: [AuthGuard] },
|
||||
{ path: '',
|
||||
redirectTo: '/home',
|
||||
pathMatch: 'full'
|
||||
},
|
||||
{ path: '**', redirectTo: '/home' }
|
||||
];
|
||||
var AppRoutingModule = /** @class */ (function () {
|
||||
function AppRoutingModule() {
|
||||
}
|
||||
AppRoutingModule = __decorate([
|
||||
NgModule({
|
||||
imports: [RouterModule.forRoot(routes)],
|
||||
exports: [RouterModule]
|
||||
})
|
||||
], AppRoutingModule);
|
||||
return AppRoutingModule;
|
||||
}());
|
||||
export { AppRoutingModule };
|
||||
//# sourceMappingURL=app-routing.module.js.map
|
||||
1
dist/out-tsc/src/app/app-routing.module.js.map
vendored
Normal file
1
dist/out-tsc/src/app/app-routing.module.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"app-routing.module.js","sourceRoot":"","sources":["../../../../src/app/app-routing.module.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAU,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAQ,mCAAmC,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAQ,yBAAyB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAQ,uBAAuB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,IAAM,MAAM,GAAW;IACrB,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAC;IACzC,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,YAAY,EAAC;IACvC,EAAE,IAAI,EAAE,YAAY,EAAE,SAAS,EAAE,mBAAmB,EAAE,WAAW,EAAE,CAAC,SAAS,CAAC,EAAC;IAC/E,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,WAAW,EAAE,CAAC,SAAS,CAAC,EAAC;IACrE,EAAE,IAAI,EAAE,EAAE;QACR,UAAU,EAAE,OAAO;QACnB,SAAS,EAAE,MAAM;KAClB;IACD,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE;CACpC,CAAC;AAMF;IAAA;IAAgC,CAAC;IAApB,gBAAgB;QAJ5B,QAAQ,CAAC;YACR,OAAO,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;YACvC,OAAO,EAAE,CAAC,YAAY,CAAC;SACxB,CAAC;OACW,gBAAgB,CAAI;IAAD,uBAAC;CAAA,AAAjC,IAAiC;SAApB,gBAAgB"}
|
||||
26
dist/out-tsc/src/app/app.component.js
vendored
Normal file
26
dist/out-tsc/src/app/app.component.js
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Component } from '@angular/core';
|
||||
var AppComponent = /** @class */ (function () {
|
||||
function AppComponent() {
|
||||
this.title = 'qmi-cloud';
|
||||
}
|
||||
AppComponent = __decorate([
|
||||
Component({
|
||||
selector: 'app-root',
|
||||
templateUrl: './app.component.html',
|
||||
styleUrls: ['./app.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [])
|
||||
], AppComponent);
|
||||
return AppComponent;
|
||||
}());
|
||||
export { AppComponent };
|
||||
//# sourceMappingURL=app.component.js.map
|
||||
1
dist/out-tsc/src/app/app.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/app.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"app.component.js","sourceRoot":"","sources":["../../../../src/app/app.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAQ1C;IAEE;QADA,UAAK,GAAG,WAAW,CAAC;IAGpB,CAAC;IAJU,YAAY;QANxB,SAAS,CAAC;YACT,QAAQ,EAAE,UAAU;YACpB,WAAW,EAAE,sBAAsB;YACnC,SAAS,EAAE,CAAC,sBAAsB,CAAC;SACpC,CAAC;;OAEW,YAAY,CAKxB;IAAD,mBAAC;CAAA,AALD,IAKC;SALY,YAAY"}
|
||||
32
dist/out-tsc/src/app/app.component.spec.js
vendored
Normal file
32
dist/out-tsc/src/app/app.component.spec.js
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
import { TestBed, async } from '@angular/core/testing';
|
||||
import { RouterTestingModule } from '@angular/router/testing';
|
||||
import { AppComponent } from './app.component';
|
||||
describe('AppComponent', function () {
|
||||
beforeEach(async(function () {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [
|
||||
RouterTestingModule
|
||||
],
|
||||
declarations: [
|
||||
AppComponent
|
||||
],
|
||||
}).compileComponents();
|
||||
}));
|
||||
it('should create the app', function () {
|
||||
var fixture = TestBed.createComponent(AppComponent);
|
||||
var app = fixture.debugElement.componentInstance;
|
||||
expect(app).toBeTruthy();
|
||||
});
|
||||
it("should have as title 'qmi-cloud'", function () {
|
||||
var fixture = TestBed.createComponent(AppComponent);
|
||||
var app = fixture.debugElement.componentInstance;
|
||||
expect(app.title).toEqual('qmi-cloud');
|
||||
});
|
||||
it('should render title in a h1 tag', function () {
|
||||
var fixture = TestBed.createComponent(AppComponent);
|
||||
fixture.detectChanges();
|
||||
var compiled = fixture.debugElement.nativeElement;
|
||||
expect(compiled.querySelector('h1').textContent).toContain('Welcome to qmi-cloud!');
|
||||
});
|
||||
});
|
||||
//# sourceMappingURL=app.component.spec.js.map
|
||||
1
dist/out-tsc/src/app/app.component.spec.js.map
vendored
Normal file
1
dist/out-tsc/src/app/app.component.spec.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"app.component.spec.js","sourceRoot":"","sources":["../../../../src/app/app.component.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,QAAQ,CAAC,cAAc,EAAE;IACvB,UAAU,CAAC,KAAK,CAAC;QACf,OAAO,CAAC,sBAAsB,CAAC;YAC7B,OAAO,EAAE;gBACP,mBAAmB;aACpB;YACD,YAAY,EAAE;gBACZ,YAAY;aACb;SACF,CAAC,CAAC,iBAAiB,EAAE,CAAC;IACzB,CAAC,CAAC,CAAC,CAAC;IAEJ,EAAE,CAAC,uBAAuB,EAAE;QAC1B,IAAM,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC;QACtD,IAAM,GAAG,GAAG,OAAO,CAAC,YAAY,CAAC,iBAAiB,CAAC;QACnD,MAAM,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,CAAC;IAC3B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kCAAkC,EAAE;QACrC,IAAM,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC;QACtD,IAAM,GAAG,GAAG,OAAO,CAAC,YAAY,CAAC,iBAAiB,CAAC;QACnD,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IACzC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iCAAiC,EAAE;QACpC,IAAM,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC;QACtD,OAAO,CAAC,aAAa,EAAE,CAAC;QACxB,IAAM,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC,aAAa,CAAC;QACpD,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC,CAAC,SAAS,CAAC,uBAAuB,CAAC,CAAC;IACtF,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
||||
91
dist/out-tsc/src/app/app.module.js
vendored
Normal file
91
dist/out-tsc/src/app/app.module.js
vendored
Normal file
@@ -0,0 +1,91 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
import { BrowserModule } from '@angular/platform-browser';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { AppRoutingModule } from './app-routing.module';
|
||||
import { AppComponent } from './app.component';
|
||||
import { UiModule } from './ui/ui.module';
|
||||
import { HomeComponent } from './home/home.component';
|
||||
import { ProvisionsComponent } from './provisions/provisions.component';
|
||||
import { AuthGuard } from './services/auth.guard';
|
||||
import { ProvisionsService } from './services/provisions.service';
|
||||
import { ScenariosService } from './services/scenarios.service';
|
||||
import { UsersService } from './services/users.service';
|
||||
import { MDBBootstrapModule } from 'angular-bootstrap-md';
|
||||
import { MarkdownModule, MarkedRenderer } from 'ngx-markdown';
|
||||
import { HttpClientModule, HttpClient } from '@angular/common/http';
|
||||
import { LogsComponent } from './logs/logs.component';
|
||||
import { ScenariosComponent } from './scenarios/scenarios.component';
|
||||
import { AdminComponent } from './admin/admin.component';
|
||||
import { PopoverconfirmComponent } from './popoverconfirm/popoverconfirm.component';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
import { MyHttpInterceptor } from './interceptors/http.interceptor';
|
||||
import { HTTP_INTERCEPTORS } from '@angular/common/http';
|
||||
import { TableAdminComponent } from './tables/table-admin.component';
|
||||
import { TableUsersComponent } from './tables/table-users.component';
|
||||
import { AlertComponent } from './alert/alert.component';
|
||||
import { AlertService } from './services/alert.service';
|
||||
import { ModalInfoComponent } from './alert/modalinfo.component';
|
||||
import { ModalConfirmComponent } from './alert/confirm.component';
|
||||
import { FilterPipe } from './filter.pipe';
|
||||
import { FaqComponent } from './faq/faq.component';
|
||||
import { NewProvisionConfirmComponent } from './alert/new-provision.component';
|
||||
export function markedOptions() {
|
||||
var renderer = new MarkedRenderer();
|
||||
renderer.blockquote = function (text) {
|
||||
return '<blockquote class="blockquote"><p>' + text + '</p></blockquote>';
|
||||
};
|
||||
return { renderer: renderer };
|
||||
}
|
||||
var AppModule = /** @class */ (function () {
|
||||
function AppModule() {
|
||||
}
|
||||
AppModule = __decorate([
|
||||
NgModule({
|
||||
declarations: [
|
||||
AppComponent,
|
||||
HomeComponent,
|
||||
ProvisionsComponent,
|
||||
LogsComponent,
|
||||
ScenariosComponent,
|
||||
AdminComponent,
|
||||
PopoverconfirmComponent,
|
||||
TableAdminComponent,
|
||||
TableUsersComponent,
|
||||
AlertComponent,
|
||||
ModalInfoComponent,
|
||||
ModalConfirmComponent,
|
||||
FilterPipe,
|
||||
FaqComponent,
|
||||
NewProvisionConfirmComponent
|
||||
],
|
||||
imports: [
|
||||
BrowserModule,
|
||||
AppRoutingModule,
|
||||
UiModule,
|
||||
HttpClientModule,
|
||||
FormsModule,
|
||||
MDBBootstrapModule.forRoot(),
|
||||
MarkdownModule.forRoot({
|
||||
loader: HttpClient
|
||||
}),
|
||||
],
|
||||
providers: [
|
||||
{ provide: HTTP_INTERCEPTORS, useClass: MyHttpInterceptor, multi: true },
|
||||
ProvisionsService,
|
||||
ScenariosService,
|
||||
UsersService,
|
||||
AlertService,
|
||||
AuthGuard
|
||||
],
|
||||
bootstrap: [AppComponent]
|
||||
})
|
||||
], AppModule);
|
||||
return AppModule;
|
||||
}());
|
||||
export { AppModule };
|
||||
//# sourceMappingURL=app.module.js.map
|
||||
1
dist/out-tsc/src/app/app.module.js.map
vendored
Normal file
1
dist/out-tsc/src/app/app.module.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"app.module.js","sourceRoot":"","sources":["../../../../src/app/app.module.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAmB,MAAM,eAAe,CAAC;AAE1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,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,MAAM,iCAAiC,CAAC;AAG/E,MAAM,UAAU,aAAa;IAC3B,IAAM,QAAQ,GAAG,IAAI,cAAc,EAAE,CAAC;IAEtC,QAAQ,CAAC,UAAU,GAAG,UAAC,IAAY;QACjC,OAAO,oCAAoC,GAAG,IAAI,GAAG,mBAAmB,CAAC;IAC3E,CAAC,CAAC;IAEF,OAAO,EAAE,QAAQ,UAAA,EAAE,CAAC;AACtB,CAAC;AAyCD;IAAA;IAAyB,CAAC;IAAb,SAAS;QAvCrB,QAAQ,CAAC;YACR,YAAY,EAAE;gBACZ,YAAY;gBACZ,aAAa;gBACb,mBAAmB;gBACnB,aAAa;gBACb,kBAAkB;gBAClB,cAAc;gBACd,uBAAuB;gBACvB,mBAAmB;gBACnB,mBAAmB;gBACnB,cAAc;gBACd,kBAAkB;gBAClB,qBAAqB;gBACrB,UAAU;gBACV,YAAY;gBACZ,4BAA4B;aAC7B;YACD,OAAO,EAAE;gBACP,aAAa;gBACb,gBAAgB;gBAChB,QAAQ;gBACR,gBAAgB;gBAChB,WAAW;gBACX,kBAAkB,CAAC,OAAO,EAAE;gBAC5B,cAAc,CAAC,OAAO,CAAC;oBACrB,MAAM,EAAE,UAAU;iBACnB,CAAC;aACH;YACD,SAAS,EAAE;gBACT,EAAE,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,iBAAiB,EAAE,KAAK,EAAE,IAAI,EAAE;gBACxE,iBAAiB;gBACjB,gBAAgB;gBAChB,YAAY;gBACZ,YAAY;gBACZ,SAAS;aACV;YACD,SAAS,EAAE,CAAC,YAAY,CAAC;SAC1B,CAAC;OACW,SAAS,CAAI;IAAD,gBAAC;CAAA,AAA1B,IAA0B;SAAb,SAAS"}
|
||||
33
dist/out-tsc/src/app/faq/faq.component.js
vendored
Normal file
33
dist/out-tsc/src/app/faq/faq.component.js
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Component } from '@angular/core';
|
||||
var FaqComponent = /** @class */ (function () {
|
||||
function FaqComponent() {
|
||||
}
|
||||
FaqComponent.prototype.ngOnInit = function () {
|
||||
};
|
||||
FaqComponent.prototype.onLoad = function (event) {
|
||||
console.log("nice", event);
|
||||
};
|
||||
FaqComponent.prototype.onError = function (event) {
|
||||
console.log("error", event);
|
||||
};
|
||||
FaqComponent = __decorate([
|
||||
Component({
|
||||
selector: 'app-faq-component',
|
||||
templateUrl: './faq.component.html',
|
||||
styleUrls: ['./faq.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [])
|
||||
], FaqComponent);
|
||||
return FaqComponent;
|
||||
}());
|
||||
export { FaqComponent };
|
||||
//# sourceMappingURL=faq.component.js.map
|
||||
1
dist/out-tsc/src/app/faq/faq.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/faq/faq.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"faq.component.js","sourceRoot":"","sources":["../../../../../src/app/faq/faq.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAU,MAAM,eAAe,CAAC;AAOlD;IAEE;IAAgB,CAAC;IAEjB,+BAAQ,GAAR;IACA,CAAC;IAED,6BAAM,GAAN,UAAO,KAAK;QACV,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAC7B,CAAC;IAED,8BAAO,GAAP,UAAQ,KAAK;QACX,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAC9B,CAAC;IAbU,YAAY;QALxB,SAAS,CAAC;YACT,QAAQ,EAAE,mBAAmB;YAC7B,WAAW,EAAE,sBAAsB;YACnC,SAAS,EAAE,CAAC,sBAAsB,CAAC;SACpC,CAAC;;OACW,YAAY,CAexB;IAAD,mBAAC;CAAA,AAfD,IAeC;SAfY,YAAY"}
|
||||
21
dist/out-tsc/src/app/faq/faq.component.spec.js
vendored
Normal file
21
dist/out-tsc/src/app/faq/faq.component.spec.js
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import { async, TestBed } from '@angular/core/testing';
|
||||
import { FaqComponent } from './faq.component';
|
||||
describe('FaqComponentComponent', function () {
|
||||
var component;
|
||||
var fixture;
|
||||
beforeEach(async(function () {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [FaqComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
beforeEach(function () {
|
||||
fixture = TestBed.createComponent(FaqComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
it('should create', function () {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
//# sourceMappingURL=faq.component.spec.js.map
|
||||
1
dist/out-tsc/src/app/faq/faq.component.spec.js.map
vendored
Normal file
1
dist/out-tsc/src/app/faq/faq.component.spec.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"faq.component.spec.js","sourceRoot":"","sources":["../../../../../src/app/faq/faq.component.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAoB,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,QAAQ,CAAC,uBAAuB,EAAE;IAChC,IAAI,SAAuB,CAAC;IAC5B,IAAI,OAAuC,CAAC;IAE5C,UAAU,CAAC,KAAK,CAAC;QACf,OAAO,CAAC,sBAAsB,CAAC;YAC7B,YAAY,EAAE,CAAE,YAAY,CAAE;SAC/B,CAAC;aACD,iBAAiB,EAAE,CAAC;IACvB,CAAC,CAAC,CAAC,CAAC;IAEJ,UAAU,CAAC;QACT,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC;QAChD,SAAS,GAAG,OAAO,CAAC,iBAAiB,CAAC;QACtC,OAAO,CAAC,aAAa,EAAE,CAAC;IAC1B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,eAAe,EAAE;QAClB,MAAM,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
||||
31
dist/out-tsc/src/app/filter.pipe.js
vendored
Normal file
31
dist/out-tsc/src/app/filter.pipe.js
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
import { Pipe } from '@angular/core';
|
||||
var FilterPipe = /** @class */ (function () {
|
||||
function FilterPipe() {
|
||||
}
|
||||
FilterPipe.prototype.transform = function (items, searchText) {
|
||||
if (!items) {
|
||||
return [];
|
||||
}
|
||||
if (!searchText) {
|
||||
return items;
|
||||
}
|
||||
searchText = searchText.toLocaleLowerCase();
|
||||
return items.filter(function (it) {
|
||||
return JSON.stringify(it).toLocaleLowerCase().includes(searchText);
|
||||
});
|
||||
};
|
||||
FilterPipe = __decorate([
|
||||
Pipe({
|
||||
name: 'filter'
|
||||
})
|
||||
], FilterPipe);
|
||||
return FilterPipe;
|
||||
}());
|
||||
export { FilterPipe };
|
||||
//# sourceMappingURL=filter.pipe.js.map
|
||||
1
dist/out-tsc/src/app/filter.pipe.js.map
vendored
Normal file
1
dist/out-tsc/src/app/filter.pipe.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"filter.pipe.js","sourceRoot":"","sources":["../../../../src/app/filter.pipe.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;AAKpD;IAAA;IAeA,CAAC;IAdC,8BAAS,GAAT,UAAU,KAAY,EAAE,UAAkB;QAExC,IAAI,CAAC,KAAK,EAAE;YACV,OAAO,EAAE,CAAC;SACX;QACD,IAAI,CAAC,UAAU,EAAE;YACf,OAAO,KAAK,CAAC;SACd;QACD,UAAU,GAAG,UAAU,CAAC,iBAAiB,EAAE,CAAC;QAE5C,OAAO,KAAK,CAAC,MAAM,CAAC,UAAA,EAAE;YACpB,OAAO,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,iBAAiB,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;QACrE,CAAC,CAAC,CAAC;IACL,CAAC;IAdU,UAAU;QAHtB,IAAI,CAAC;YACJ,IAAI,EAAE,QAAQ;SACf,CAAC;OACW,UAAU,CAetB;IAAD,iBAAC;CAAA,AAfD,IAeC;SAfY,UAAU"}
|
||||
8
dist/out-tsc/src/app/filter.pipe.spec.js
vendored
Normal file
8
dist/out-tsc/src/app/filter.pipe.spec.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import { FilterPipe } from './filter.pipe';
|
||||
describe('FilterPipe', function () {
|
||||
it('create an instance', function () {
|
||||
var pipe = new FilterPipe();
|
||||
expect(pipe).toBeTruthy();
|
||||
});
|
||||
});
|
||||
//# sourceMappingURL=filter.pipe.spec.js.map
|
||||
1
dist/out-tsc/src/app/filter.pipe.spec.js.map
vendored
Normal file
1
dist/out-tsc/src/app/filter.pipe.spec.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"filter.pipe.spec.js","sourceRoot":"","sources":["../../../../src/app/filter.pipe.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,QAAQ,CAAC,YAAY,EAAE;IACrB,EAAE,CAAC,oBAAoB,EAAE;QACvB,IAAM,IAAI,GAAG,IAAI,UAAU,EAAE,CAAC;QAC9B,MAAM,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IAC5B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
||||
41
dist/out-tsc/src/app/home/home.component.js
vendored
Normal file
41
dist/out-tsc/src/app/home/home.component.js
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Component } from '@angular/core';
|
||||
import { AuthGuard } from '../services/auth.guard';
|
||||
var HomeComponent = /** @class */ (function () {
|
||||
function HomeComponent(_auth) {
|
||||
var _this = this;
|
||||
this._auth = _auth;
|
||||
this.subs = this._auth.getUserInfo().subscribe(function (value) {
|
||||
_this.user = value;
|
||||
console.log("USER", _this.user);
|
||||
});
|
||||
}
|
||||
HomeComponent.prototype.ngOnInit = function () {
|
||||
};
|
||||
HomeComponent.prototype.ngOnDestroy = function () {
|
||||
this.subs.unsubscribe();
|
||||
};
|
||||
HomeComponent.prototype.popupConfirm = function () {
|
||||
console.log("Confirmed");
|
||||
};
|
||||
HomeComponent = __decorate([
|
||||
Component({
|
||||
selector: 'app-home',
|
||||
templateUrl: './home.component.html',
|
||||
styleUrls: ['./home.component.scss'],
|
||||
providers: []
|
||||
}),
|
||||
__metadata("design:paramtypes", [AuthGuard])
|
||||
], HomeComponent);
|
||||
return HomeComponent;
|
||||
}());
|
||||
export { HomeComponent };
|
||||
//# sourceMappingURL=home.component.js.map
|
||||
1
dist/out-tsc/src/app/home/home.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/home/home.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"home.component.js","sourceRoot":"","sources":["../../../../../src/app/home/home.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAU,MAAM,eAAe,CAAC;AAElD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AASnD;IAKE,uBAAqB,KAAgB;QAArC,iBAKC;QALoB,UAAK,GAAL,KAAK,CAAW;QACnC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,SAAS,CAAE,UAAA,KAAK;YACnD,KAAI,CAAC,IAAI,GAAG,KAAK,CAAC;YAClB,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,KAAI,CAAC,IAAI,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;IACL,CAAC;IAED,gCAAQ,GAAR;IAEA,CAAC;IAED,mCAAW,GAAX;QACE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;IAC1B,CAAC;IAED,oCAAY,GAAZ;QACE,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAC3B,CAAC;IAtBU,aAAa;QANzB,SAAS,CAAC;YACT,QAAQ,EAAE,UAAU;YACpB,WAAW,EAAE,uBAAuB;YACpC,SAAS,EAAE,CAAC,uBAAuB,CAAC;YACpC,SAAS,EAAE,EAAE;SACd,CAAC;yCAM4B,SAAS;OAL1B,aAAa,CAwBzB;IAAD,oBAAC;CAAA,AAxBD,IAwBC;SAxBY,aAAa"}
|
||||
21
dist/out-tsc/src/app/home/home.component.spec.js
vendored
Normal file
21
dist/out-tsc/src/app/home/home.component.spec.js
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import { async, TestBed } from '@angular/core/testing';
|
||||
import { HomeComponent } from './home.component';
|
||||
describe('ProvisionsComponent', function () {
|
||||
var component;
|
||||
var fixture;
|
||||
beforeEach(async(function () {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [HomeComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
beforeEach(function () {
|
||||
fixture = TestBed.createComponent(HomeComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
it('should create', function () {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
//# sourceMappingURL=home.component.spec.js.map
|
||||
1
dist/out-tsc/src/app/home/home.component.spec.js.map
vendored
Normal file
1
dist/out-tsc/src/app/home/home.component.spec.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"home.component.spec.js","sourceRoot":"","sources":["../../../../../src/app/home/home.component.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAoB,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,QAAQ,CAAC,qBAAqB,EAAE;IAC9B,IAAI,SAAwB,CAAC;IAC7B,IAAI,OAAwC,CAAC;IAE7C,UAAU,CAAC,KAAK,CAAC;QACf,OAAO,CAAC,sBAAsB,CAAC;YAC7B,YAAY,EAAE,CAAE,aAAa,CAAE;SAChC,CAAC;aACD,iBAAiB,EAAE,CAAC;IACvB,CAAC,CAAC,CAAC,CAAC;IAEJ,UAAU,CAAC;QACT,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;QACjD,SAAS,GAAG,OAAO,CAAC,iBAAiB,CAAC;QACtC,OAAO,CAAC,aAAa,EAAE,CAAC;IAC1B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,eAAe,EAAE;QAClB,MAAM,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
||||
40
dist/out-tsc/src/app/interceptors/http.interceptor.js
vendored
Normal file
40
dist/out-tsc/src/app/interceptors/http.interceptor.js
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Injectable } from '@angular/core';
|
||||
import { HttpErrorResponse } from '@angular/common/http';
|
||||
import { tap } from 'rxjs/operators';
|
||||
import { Router } from '@angular/router';
|
||||
import { AuthGuard } from '../services/auth.guard';
|
||||
var MyHttpInterceptor = /** @class */ (function () {
|
||||
function MyHttpInterceptor(router, _auth) {
|
||||
this.router = router;
|
||||
this._auth = _auth;
|
||||
}
|
||||
MyHttpInterceptor.prototype.intercept = function (request, next) {
|
||||
var _this = this;
|
||||
return next.handle(request).pipe(tap(function () { }, function (err) {
|
||||
if (err instanceof HttpErrorResponse) {
|
||||
if (err.status !== 401) {
|
||||
return;
|
||||
}
|
||||
console.log("Interceptor error 401!!");
|
||||
_this._auth.clearUser();
|
||||
_this.router.navigate(['home']);
|
||||
}
|
||||
}));
|
||||
};
|
||||
MyHttpInterceptor = __decorate([
|
||||
Injectable(),
|
||||
__metadata("design:paramtypes", [Router, AuthGuard])
|
||||
], MyHttpInterceptor);
|
||||
return MyHttpInterceptor;
|
||||
}());
|
||||
export { MyHttpInterceptor };
|
||||
//# sourceMappingURL=http.interceptor.js.map
|
||||
1
dist/out-tsc/src/app/interceptors/http.interceptor.js.map
vendored
Normal file
1
dist/out-tsc/src/app/interceptors/http.interceptor.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"http.interceptor.js","sourceRoot":"","sources":["../../../../../src/app/interceptors/http.interceptor.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAKL,iBAAiB,EAClB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAC,GAAG,EAAC,MAAM,gBAAgB,CAAC;AACnC,OAAO,EAAC,MAAM,EAAC,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGnD;IAEE,2BAAoB,MAAc,EAAU,KAAgB;QAAxC,WAAM,GAAN,MAAM,CAAQ;QAAU,UAAK,GAAL,KAAK,CAAW;IAAG,CAAC;IAEhE,qCAAS,GAAT,UAAU,OAAyB,EAAE,IAAiB;QAAtD,iBAcC;QAZC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAE,GAAG,CAAC,cAAO,CAAC,EAC5C,UAAC,GAAQ;YAET,IAAI,GAAG,YAAY,iBAAiB,EAAE;gBACpC,IAAI,GAAG,CAAC,MAAM,KAAK,GAAG,EAAE;oBACvB,OAAO;iBACP;gBACD,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;gBACvC,KAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;gBACvB,KAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;aAChC;QACH,CAAC,CAAC,CAAC,CAAC;IACN,CAAC;IAlBU,iBAAiB;QAD7B,UAAU,EAAE;yCAGiB,MAAM,EAAiB,SAAS;OAFjD,iBAAiB,CAmB7B;IAAD,wBAAC;CAAA,AAnBD,IAmBC;SAnBY,iBAAiB"}
|
||||
113
dist/out-tsc/src/app/logs/logs.component.js
vendored
Normal file
113
dist/out-tsc/src/app/logs/logs.component.js
vendored
Normal file
@@ -0,0 +1,113 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Component, Input, Output, EventEmitter, ViewChild, HostListener } from '@angular/core';
|
||||
import { ProvisionsService } from '../services/provisions.service';
|
||||
import { timer } from 'rxjs';
|
||||
import { switchMap } from 'rxjs/operators';
|
||||
var LogsComponent = /** @class */ (function () {
|
||||
function LogsComponent(_provisionsService) {
|
||||
this._provisionsService = _provisionsService;
|
||||
this.content = null;
|
||||
this.onClose = new EventEmitter();
|
||||
}
|
||||
LogsComponent.prototype.onClick = function (targetElement) {
|
||||
var clickedInside = this.insideElement.nativeElement.contains(targetElement);
|
||||
if (!clickedInside) {
|
||||
this.onClose.emit(false);
|
||||
}
|
||||
};
|
||||
LogsComponent.prototype.refresh = function () {
|
||||
var _this = this;
|
||||
if (!this.content) {
|
||||
if (this.type === "provision") {
|
||||
this.sub = timer(0, 5000).pipe(switchMap(function () { return _this._provisionsService.getProvisionLogs(_this.selectedprov._id); })).subscribe(function (content) {
|
||||
_this.content = content;
|
||||
});
|
||||
}
|
||||
else if (this.type === "destroy") {
|
||||
this.sub = timer(0, 5000).pipe(switchMap(function () { return _this._provisionsService.getDestroyLogs(_this.selectedprov.destroy._id); })).subscribe(function (content) {
|
||||
_this.content = content;
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
LogsComponent.prototype.ngOnInit = function () { };
|
||||
LogsComponent.prototype.ngOnChanges = function (changes) {
|
||||
var _this = this;
|
||||
this.content = null;
|
||||
if (this.sub) {
|
||||
this.sub.unsubscribe();
|
||||
this.sub = null;
|
||||
}
|
||||
if (changes.show && changes.show.currentValue) {
|
||||
if (this.type === "provision") {
|
||||
this.sub = timer(0, 5000).pipe(switchMap(function () { return _this._provisionsService.getProvisionLogs(_this.selectedprov._id); })).subscribe(function (content) {
|
||||
_this.content = content;
|
||||
});
|
||||
}
|
||||
else if (this.type === "destroy") {
|
||||
this.sub = timer(0, 5000).pipe(switchMap(function () { return _this._provisionsService.getDestroyLogs(_this.selectedprov.destroy._id); })).subscribe(function (content) {
|
||||
_this.content = content;
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
LogsComponent.prototype.ngOnDestroy = function () {
|
||||
if (this.sub) {
|
||||
this.sub.unsubscribe();
|
||||
this.sub = null;
|
||||
}
|
||||
};
|
||||
LogsComponent.prototype.close = function () {
|
||||
this.content = null;
|
||||
if (this.sub) {
|
||||
this.sub.unsubscribe();
|
||||
this.sub = null;
|
||||
}
|
||||
this.onClose.emit(false);
|
||||
};
|
||||
__decorate([
|
||||
ViewChild("insideElement"),
|
||||
__metadata("design:type", Object)
|
||||
], LogsComponent.prototype, "insideElement", void 0);
|
||||
__decorate([
|
||||
HostListener('document:click', ['$event.target']),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", [Object]),
|
||||
__metadata("design:returntype", void 0)
|
||||
], LogsComponent.prototype, "onClick", null);
|
||||
__decorate([
|
||||
Input(),
|
||||
__metadata("design:type", Object)
|
||||
], LogsComponent.prototype, "show", void 0);
|
||||
__decorate([
|
||||
Input(),
|
||||
__metadata("design:type", Object)
|
||||
], LogsComponent.prototype, "selectedprov", void 0);
|
||||
__decorate([
|
||||
Input(),
|
||||
__metadata("design:type", Object)
|
||||
], LogsComponent.prototype, "type", void 0);
|
||||
__decorate([
|
||||
Output(),
|
||||
__metadata("design:type", Object)
|
||||
], LogsComponent.prototype, "onClose", void 0);
|
||||
LogsComponent = __decorate([
|
||||
Component({
|
||||
selector: 'app-logs',
|
||||
templateUrl: './logs.component.html',
|
||||
styleUrls: ['./logs.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [ProvisionsService])
|
||||
], LogsComponent);
|
||||
return LogsComponent;
|
||||
}());
|
||||
export { LogsComponent };
|
||||
//# sourceMappingURL=logs.component.js.map
|
||||
1
dist/out-tsc/src/app/logs/logs.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/logs/logs.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"logs.component.js","sourceRoot":"","sources":["../../../../../src/app/logs/logs.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAU,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAa,MAAM,eAAe,CAAC;AACnH,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAgB,KAAK,EAAC,MAAM,MAAM,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAO3C;IAgBE,uBAAoB,kBAAqC;QAArC,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GAAG,IAAI,CAAC;QACpB,IAAK,IAAI,CAAC,GAAG,EAAG;YACd,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;YACvB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC;SACjB;QACD,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC;IArE2B;QAA3B,SAAS,CAAC,eAAe,CAAC;;wDAAe;IAG1C;QAFC,YAAY,CAAC,gBAAgB,EAAE,CAAC,eAAe,CAAC,CAAC;;;;gDAOjD;IAQQ;QAAR,KAAK,EAAE;;+CAAM;IACL;QAAR,KAAK,EAAE;;uDAAc;IACb;QAAR,KAAK,EAAE;;+CAAM;IACJ;QAAT,MAAM,EAAE;;kDAA8B;IArB5B,aAAa;QALzB,SAAS,CAAC;YACT,QAAQ,EAAE,UAAU;YACpB,WAAW,EAAE,uBAAuB;YACpC,SAAS,EAAE,CAAC,uBAAuB,CAAC;SACrC,CAAC;yCAiBwC,iBAAiB;OAhB9C,aAAa,CAyEzB;IAAD,oBAAC;CAAA,AAzED,IAyEC;SAzEY,aAAa"}
|
||||
21
dist/out-tsc/src/app/logs/logs.component.spec.js
vendored
Normal file
21
dist/out-tsc/src/app/logs/logs.component.spec.js
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import { async, TestBed } from '@angular/core/testing';
|
||||
import { LogsComponent } from './logs.component';
|
||||
describe('LogsComponent', function () {
|
||||
var component;
|
||||
var fixture;
|
||||
beforeEach(async(function () {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [LogsComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
beforeEach(function () {
|
||||
fixture = TestBed.createComponent(LogsComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
it('should create', function () {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
//# sourceMappingURL=logs.component.spec.js.map
|
||||
1
dist/out-tsc/src/app/logs/logs.component.spec.js.map
vendored
Normal file
1
dist/out-tsc/src/app/logs/logs.component.spec.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"logs.component.spec.js","sourceRoot":"","sources":["../../../../../src/app/logs/logs.component.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAoB,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,QAAQ,CAAC,eAAe,EAAE;IACxB,IAAI,SAAwB,CAAC;IAC7B,IAAI,OAAwC,CAAC;IAE7C,UAAU,CAAC,KAAK,CAAC;QACf,OAAO,CAAC,sBAAsB,CAAC;YAC7B,YAAY,EAAE,CAAE,aAAa,CAAE;SAChC,CAAC;aACD,iBAAiB,EAAE,CAAC;IACvB,CAAC,CAAC,CAAC,CAAC;IAEJ,UAAU,CAAC;QACT,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;QACjD,SAAS,GAAG,OAAO,CAAC,iBAAiB,CAAC;QACtC,OAAO,CAAC,aAAa,EAAE,CAAC;IAC1B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,eAAe,EAAE;QAClB,MAAM,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
||||
78
dist/out-tsc/src/app/popoverconfirm/popoverconfirm.component.js
vendored
Normal file
78
dist/out-tsc/src/app/popoverconfirm/popoverconfirm.component.js
vendored
Normal file
@@ -0,0 +1,78 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Component, ElementRef, EventEmitter, ViewChild, Input, Output } from '@angular/core';
|
||||
var PopoverconfirmComponent = /** @class */ (function () {
|
||||
function PopoverconfirmComponent(myElement) {
|
||||
this.onConfirm = new EventEmitter();
|
||||
this.element = myElement;
|
||||
}
|
||||
PopoverconfirmComponent.prototype.open = function () {
|
||||
var viewportOffset = this.element.nativeElement.getBoundingClientRect();
|
||||
var top = viewportOffset.top;
|
||||
var left = viewportOffset.left;
|
||||
this.popovercontent.nativeElement.style.display = 'block';
|
||||
this.popovercontent.nativeElement.style.position = 'absolute';
|
||||
if (this.dock.indexOf('left') !== -1) {
|
||||
this.left = -this.popovercontent.nativeElement.offsetWidth;
|
||||
}
|
||||
else if (this.dock.indexOf('right') !== -1) {
|
||||
this.left = this.element.nativeElement.offsetWidth;
|
||||
}
|
||||
this.top = 0;
|
||||
if (this.dock.indexOf('top') !== -1) {
|
||||
this.top = -this.popovercontent.nativeElement.offsetHeight;
|
||||
}
|
||||
else if (this.dock.indexOf('bottom') !== -1) {
|
||||
this.top = this.element.nativeElement.offsetHeight;
|
||||
}
|
||||
this.popovercontent.nativeElement.style.top = (top + this.top) + 'px';
|
||||
this.popovercontent.nativeElement.style.left = (left + this.left) + 'px';
|
||||
};
|
||||
PopoverconfirmComponent.prototype.ngOnInit = function () {
|
||||
};
|
||||
PopoverconfirmComponent.prototype.ok = function () {
|
||||
this.popovercontent.nativeElement.style.display = 'none';
|
||||
this.onConfirm.emit(true);
|
||||
};
|
||||
PopoverconfirmComponent.prototype.cancel = function () {
|
||||
this.popovercontent.nativeElement.style.display = 'none';
|
||||
};
|
||||
__decorate([
|
||||
ViewChild('popovercontent'),
|
||||
__metadata("design:type", ElementRef)
|
||||
], PopoverconfirmComponent.prototype, "popovercontent", void 0);
|
||||
__decorate([
|
||||
Input(),
|
||||
__metadata("design:type", Object)
|
||||
], PopoverconfirmComponent.prototype, "dock", void 0);
|
||||
__decorate([
|
||||
Input(),
|
||||
__metadata("design:type", Object)
|
||||
], PopoverconfirmComponent.prototype, "buttonConfig", void 0);
|
||||
__decorate([
|
||||
Input(),
|
||||
__metadata("design:type", Object)
|
||||
], PopoverconfirmComponent.prototype, "popupConfig", void 0);
|
||||
__decorate([
|
||||
Output(),
|
||||
__metadata("design:type", Object)
|
||||
], PopoverconfirmComponent.prototype, "onConfirm", void 0);
|
||||
PopoverconfirmComponent = __decorate([
|
||||
Component({
|
||||
selector: 'app-popoverconfirm',
|
||||
templateUrl: './popoverconfirm.component.html',
|
||||
styleUrls: ['./popoverconfirm.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [ElementRef])
|
||||
], PopoverconfirmComponent);
|
||||
return PopoverconfirmComponent;
|
||||
}());
|
||||
export { PopoverconfirmComponent };
|
||||
//# sourceMappingURL=popoverconfirm.component.js.map
|
||||
1
dist/out-tsc/src/app/popoverconfirm/popoverconfirm.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/popoverconfirm/popoverconfirm.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"popoverconfirm.component.js","sourceRoot":"","sources":["../../../../../src/app/popoverconfirm/popoverconfirm.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAU,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,KAAK,EAAgB,MAAM,EAAE,MAAM,eAAe,CAAC;AAOpH;IAOE,iCAAa,SAAqB;QAQxB,cAAS,GAAG,IAAI,YAAY,EAAE,CAAC;QAPvC,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC;IAC3B,CAAC;IAWD,sCAAI,GAAJ;QACE,IAAI,cAAc,GAAG,IAAI,CAAC,OAAO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,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAE3E,CAAC;IAED,0CAAQ,GAAR;IACA,CAAC;IAED,oCAAE,GAAF;QACE,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC;QACzD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IAED,wCAAM,GAAN;QACE,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC;IAC3D,CAAC;IAnDD;QADC,SAAS,CAAC,gBAAgB,CAAC;kCACH,UAAU;mEAAC;IAM3B;QAAR,KAAK,EAAE;;yDAAM;IACL;QAAR,KAAK,EAAE;;iEAAc;IACb;QAAR,KAAK,EAAE;;gEAAa;IAEX;QAAT,MAAM,EAAE;;8DAAgC;IAf9B,uBAAuB;QALnC,SAAS,CAAC;YACT,QAAQ,EAAE,oBAAoB;YAC9B,WAAW,EAAE,iCAAiC;YAC9C,SAAS,EAAE,CAAC,iCAAiC,CAAC;SAC/C,CAAC;yCAQwB,UAAU;OAPvB,uBAAuB,CAyDnC;IAAD,8BAAC;CAAA,AAzDD,IAyDC;SAzDY,uBAAuB"}
|
||||
21
dist/out-tsc/src/app/popoverconfirm/popoverconfirm.component.spec.js
vendored
Normal file
21
dist/out-tsc/src/app/popoverconfirm/popoverconfirm.component.spec.js
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import { async, TestBed } from '@angular/core/testing';
|
||||
import { PopoverconfirmComponent } from './popoverconfirm.component';
|
||||
describe('PopoverconfirmComponent', function () {
|
||||
var component;
|
||||
var fixture;
|
||||
beforeEach(async(function () {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [PopoverconfirmComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
beforeEach(function () {
|
||||
fixture = TestBed.createComponent(PopoverconfirmComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
it('should create', function () {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
//# sourceMappingURL=popoverconfirm.component.spec.js.map
|
||||
1
dist/out-tsc/src/app/popoverconfirm/popoverconfirm.component.spec.js.map
vendored
Normal file
1
dist/out-tsc/src/app/popoverconfirm/popoverconfirm.component.spec.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"popoverconfirm.component.spec.js","sourceRoot":"","sources":["../../../../../src/app/popoverconfirm/popoverconfirm.component.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAoB,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAErE,QAAQ,CAAC,yBAAyB,EAAE;IAClC,IAAI,SAAkC,CAAC;IACvC,IAAI,OAAkD,CAAC;IAEvD,UAAU,CAAC,KAAK,CAAC;QACf,OAAO,CAAC,sBAAsB,CAAC;YAC7B,YAAY,EAAE,CAAE,uBAAuB,CAAE;SAC1C,CAAC;aACD,iBAAiB,EAAE,CAAC;IACvB,CAAC,CAAC,CAAC,CAAC;IAEJ,UAAU,CAAC;QACT,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,uBAAuB,CAAC,CAAC;QAC3D,SAAS,GAAG,OAAO,CAAC,iBAAiB,CAAC;QACtC,OAAO,CAAC,aAAa,EAAE,CAAC;IAC1B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,eAAe,EAAE;QAClB,MAAM,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
||||
213
dist/out-tsc/src/app/provisions/provisions.component.js
vendored
Normal file
213
dist/out-tsc/src/app/provisions/provisions.component.js
vendored
Normal file
@@ -0,0 +1,213 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Component } from '@angular/core';
|
||||
import { ProvisionsService } from '../services/provisions.service';
|
||||
import { timer } from 'rxjs';
|
||||
import { switchMap } from 'rxjs/operators';
|
||||
import { AuthGuard } from '../services/auth.guard';
|
||||
import { ScenariosService } from '../services/scenarios.service';
|
||||
import { AlertService } from '../services/alert.service';
|
||||
import { MDBModalService } from 'angular-bootstrap-md';
|
||||
import { ModalInfoComponent } from '../alert/modalinfo.component';
|
||||
import { ModalConfirmComponent } from '../alert/confirm.component';
|
||||
var ProvisionsComponent = /** @class */ (function () {
|
||||
function ProvisionsComponent(modalService, _alertService, _provisionsService, _scenariosService, _auth) {
|
||||
var _this = this;
|
||||
this.modalService = modalService;
|
||||
this._alertService = _alertService;
|
||||
this._provisionsService = _provisionsService;
|
||||
this._scenariosService = _scenariosService;
|
||||
this._auth = _auth;
|
||||
this.logShow = false;
|
||||
this.logstype = 'provision';
|
||||
this.selectedprov = null;
|
||||
this._auth.getUserInfo().subscribe(function (value) {
|
||||
_this._userId = value ? value._id : null;
|
||||
});
|
||||
}
|
||||
ProvisionsComponent.prototype._refresh = function () {
|
||||
var _this = this;
|
||||
this.instantSubs = this._provisionsService.getProvisionsByUser(this._userId).subscribe(function (provisions) {
|
||||
provisions = provisions.results;
|
||||
provisions.forEach(function (p) {
|
||||
p._scenario = _this.scenarios.filter(function (s) { return s.name === p.scenario; });
|
||||
_this._provisionsService.timeRunning(p);
|
||||
});
|
||||
_this.provisions = provisions.filter(function (p) { return !p.destroy || !p.destroy.status || p.destroy.status !== 'destroyed'; });
|
||||
_this.destroys = provisions.filter(function (p) { return p.destroy && p.destroy.status === 'destroyed'; });
|
||||
_this.instantSubs.unsubscribe();
|
||||
});
|
||||
};
|
||||
ProvisionsComponent.prototype.ngOnInit = function () {
|
||||
var _this = this;
|
||||
this.scenariosSub = this._scenariosService.getScenariosAll().subscribe(function (res) {
|
||||
_this.scenarios = res.results;
|
||||
_this.scenariosSub.unsubscribe();
|
||||
_this.subscription = timer(0, 8000).pipe(switchMap(function () { return _this._provisionsService.getProvisionsByUser(_this._userId); })).subscribe(function (provisions) {
|
||||
provisions = provisions.results;
|
||||
provisions.forEach(function (p) {
|
||||
p._scenario = _this.scenarios.filter(function (s) { return s.name === p.scenario; });
|
||||
_this._provisionsService.timeRunning(p);
|
||||
});
|
||||
_this.provisions = provisions.filter(function (p) { return !p.destroy || !p.destroy.status || p.destroy.status !== 'destroyed'; });
|
||||
_this.destroys = provisions.filter(function (p) { return p.destroy && p.destroy.status === 'destroyed'; });
|
||||
});
|
||||
});
|
||||
};
|
||||
ProvisionsComponent.prototype.ngOnDestroy = function () {
|
||||
this.subscription.unsubscribe();
|
||||
if (this.instantSubs) {
|
||||
this.instantSubs.unsubscribe();
|
||||
}
|
||||
};
|
||||
ProvisionsComponent.prototype.setModal = function (provision, frame) {
|
||||
frame.show();
|
||||
this._provisionsService.setSelectedProv(provision);
|
||||
};
|
||||
ProvisionsComponent.prototype.del = function (provision) {
|
||||
var _this = this;
|
||||
this._provisionsService.delProvision(provision._id.toString(), this._userId).subscribe(function (res) {
|
||||
_this._refresh();
|
||||
_this._alertService.showAlert({
|
||||
type: 'alert-primary',
|
||||
text: "Provision entry '" + provision.scenario + "' was deleted from your history"
|
||||
});
|
||||
});
|
||||
};
|
||||
ProvisionsComponent.prototype.openConfirmDestroyModal = function (provision) {
|
||||
var _this = this;
|
||||
var modalRef = this.modalService.show(ModalConfirmComponent, {
|
||||
class: 'modal-sm modal-notify modal-danger',
|
||||
containerClass: '',
|
||||
data: {
|
||||
info: {
|
||||
title: 'Confirm destroy this provision?',
|
||||
icon: 'times-circle'
|
||||
}
|
||||
}
|
||||
});
|
||||
var sub = modalRef.content.action.subscribe(function (result) {
|
||||
sub.unsubscribe();
|
||||
_this._provisionsService.newDestroy(provision._id.toString(), _this._userId).subscribe(function (res) {
|
||||
_this._refresh();
|
||||
_this._alertService.showAlert({
|
||||
type: 'alert-primary',
|
||||
text: "Provision of scenario '" + provision.scenario + "' is going to be destroyed"
|
||||
});
|
||||
});
|
||||
});
|
||||
};
|
||||
ProvisionsComponent.prototype.openConfirmStopModal = function (provision) {
|
||||
var _this = this;
|
||||
var modalRef = this.modalService.show(ModalConfirmComponent, {
|
||||
class: 'modal-sm modal-notify modal-info',
|
||||
containerClass: '',
|
||||
data: {
|
||||
info: {
|
||||
title: 'Confirm Stop VMs?',
|
||||
icon: 'stop',
|
||||
buttonColor: 'grey'
|
||||
}
|
||||
}
|
||||
});
|
||||
var sub = modalRef.content.action.subscribe(function (result) {
|
||||
sub.unsubscribe();
|
||||
_this._stopVms(provision);
|
||||
});
|
||||
};
|
||||
ProvisionsComponent.prototype.openConfirmStartModal = function (provision) {
|
||||
var _this = this;
|
||||
var modalRef = this.modalService.show(ModalConfirmComponent, {
|
||||
class: 'modal-sm modal-notify modal-info',
|
||||
containerClass: '',
|
||||
data: {
|
||||
info: {
|
||||
title: 'Confirm Start VMs?',
|
||||
icon: 'play',
|
||||
buttonColor: 'grey'
|
||||
}
|
||||
}
|
||||
});
|
||||
var sub = modalRef.content.action.subscribe(function (result) {
|
||||
sub.unsubscribe();
|
||||
_this._startVms(provision);
|
||||
});
|
||||
};
|
||||
ProvisionsComponent.prototype._startVms = function (provision) {
|
||||
var _this = this;
|
||||
this._provisionsService.startVms(provision._id.toString(), this._userId).subscribe(function (res) {
|
||||
provision.statusVms = res.statusVms;
|
||||
_this._alertService.showAlert({
|
||||
type: 'alert-primary',
|
||||
text: "Starting all VMs for scenario '" + provision.scenario + "'..."
|
||||
});
|
||||
});
|
||||
};
|
||||
ProvisionsComponent.prototype._stopVms = function (provision) {
|
||||
var _this = this;
|
||||
this._provisionsService.stopVms(provision._id.toString(), this._userId).subscribe(function (res) {
|
||||
provision.statusVms = res.statusVms;
|
||||
_this._alertService.showAlert({
|
||||
type: 'alert-primary',
|
||||
text: "Stopping all VMs for scenario '" + provision.scenario + "'..."
|
||||
});
|
||||
});
|
||||
};
|
||||
ProvisionsComponent.prototype.extend = function (provision) {
|
||||
var _this = this;
|
||||
this._provisionsService.extend(provision._id.toString(), this._userId).subscribe(function (res) {
|
||||
provision.countExtend = res.countExtend;
|
||||
_this._alertService.showAlert({
|
||||
type: 'alert-primary',
|
||||
text: "Running period extended another " + _this._provisionsService.RUNNING_PERIOD + " days (from now) for provision '" + provision.scenario + "'"
|
||||
});
|
||||
});
|
||||
};
|
||||
ProvisionsComponent.prototype.showLogs = function ($event, provision, type) {
|
||||
$event.preventDefault();
|
||||
$event.stopPropagation();
|
||||
this.logstype = type;
|
||||
this.logShow = false;
|
||||
this.selectedprov = provision;
|
||||
this.logShow = true;
|
||||
};
|
||||
ProvisionsComponent.prototype.openModal = function (provision) {
|
||||
this.modalService.show(ModalInfoComponent, {
|
||||
class: 'modal-lg',
|
||||
containerClass: '',
|
||||
data: {
|
||||
info: provision
|
||||
}
|
||||
});
|
||||
};
|
||||
ProvisionsComponent.prototype.onLogsClose = function () {
|
||||
this.selectedprov = null;
|
||||
this.logShow = false;
|
||||
};
|
||||
ProvisionsComponent.prototype.onStartProvision = function (scenario) {
|
||||
this._alertService.showAlert({
|
||||
type: 'alert-primary',
|
||||
text: "Scenario '" + scenario.name + "' is going to be provisioned. Scroll up to your Provisions to watch out progress."
|
||||
});
|
||||
this._refresh();
|
||||
};
|
||||
ProvisionsComponent = __decorate([
|
||||
Component({
|
||||
selector: 'app-provisions',
|
||||
templateUrl: './provisions.component.html',
|
||||
styleUrls: ['./provisions.component.scss'],
|
||||
providers: [ProvisionsService]
|
||||
}),
|
||||
__metadata("design:paramtypes", [MDBModalService, AlertService, ProvisionsService, ScenariosService, AuthGuard])
|
||||
], ProvisionsComponent);
|
||||
return ProvisionsComponent;
|
||||
}());
|
||||
export { ProvisionsComponent };
|
||||
//# sourceMappingURL=provisions.component.js.map
|
||||
1
dist/out-tsc/src/app/provisions/provisions.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/provisions/provisions.component.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
21
dist/out-tsc/src/app/provisions/provisions.component.spec.js
vendored
Normal file
21
dist/out-tsc/src/app/provisions/provisions.component.spec.js
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import { async, TestBed } from '@angular/core/testing';
|
||||
import { ProvisionsComponent } from './provisions.component';
|
||||
describe('ProvisionsComponent', function () {
|
||||
var component;
|
||||
var fixture;
|
||||
beforeEach(async(function () {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ProvisionsComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
beforeEach(function () {
|
||||
fixture = TestBed.createComponent(ProvisionsComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
it('should create', function () {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
//# sourceMappingURL=provisions.component.spec.js.map
|
||||
1
dist/out-tsc/src/app/provisions/provisions.component.spec.js.map
vendored
Normal file
1
dist/out-tsc/src/app/provisions/provisions.component.spec.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"provisions.component.spec.js","sourceRoot":"","sources":["../../../../../src/app/provisions/provisions.component.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAoB,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D,QAAQ,CAAC,qBAAqB,EAAE;IAC9B,IAAI,SAA8B,CAAC;IACnC,IAAI,OAA8C,CAAC;IAEnD,UAAU,CAAC,KAAK,CAAC;QACf,OAAO,CAAC,sBAAsB,CAAC;YAC7B,YAAY,EAAE,CAAE,mBAAmB,CAAE;SACtC,CAAC;aACD,iBAAiB,EAAE,CAAC;IACvB,CAAC,CAAC,CAAC,CAAC;IAEJ,UAAU,CAAC;QACT,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,mBAAmB,CAAC,CAAC;QACvD,SAAS,GAAG,OAAO,CAAC,iBAAiB,CAAC;QACtC,OAAO,CAAC,aAAa,EAAE,CAAC;IAC1B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,eAAe,EAAE;QAClB,MAAM,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
||||
78
dist/out-tsc/src/app/scenarios/scenarios.component.js
vendored
Normal file
78
dist/out-tsc/src/app/scenarios/scenarios.component.js
vendored
Normal file
@@ -0,0 +1,78 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Component, Output, EventEmitter } from '@angular/core';
|
||||
import { ProvisionsService } from '../services/provisions.service';
|
||||
import { ScenariosService } from '../services/scenarios.service';
|
||||
import { AuthGuard } from '../services/auth.guard';
|
||||
import { NewProvisionConfirmComponent } from '../alert/new-provision.component';
|
||||
import { MDBModalService } from 'angular-bootstrap-md';
|
||||
var ScenariosComponent = /** @class */ (function () {
|
||||
function ScenariosComponent(modalService, _provisionsService, _scenariosService, _auth) {
|
||||
var _this = this;
|
||||
this.modalService = modalService;
|
||||
this._provisionsService = _provisionsService;
|
||||
this._scenariosService = _scenariosService;
|
||||
this._auth = _auth;
|
||||
this.onStartProvision = new EventEmitter();
|
||||
this._auth.getUserInfo().subscribe(function (value) {
|
||||
_this.user = value;
|
||||
});
|
||||
}
|
||||
ScenariosComponent.prototype.ngOnInit = function () {
|
||||
var _this = this;
|
||||
this.scenariosSub = this._scenariosService.getScenarios().subscribe(function (res) {
|
||||
_this.scenarios = res.results;
|
||||
_this.scenariosSub.unsubscribe();
|
||||
console.log("scenarios", _this.scenarios);
|
||||
});
|
||||
};
|
||||
ScenariosComponent.prototype.ngOnDestroy = function () { };
|
||||
ScenariosComponent.prototype.openNewProvisionConfirmModal = function (scenario) {
|
||||
var _this = this;
|
||||
console.log("scenario", scenario);
|
||||
var modalRef = this.modalService.show(NewProvisionConfirmComponent, {
|
||||
class: 'modal-md modal-notify',
|
||||
containerClass: '',
|
||||
data: {
|
||||
scenario: scenario
|
||||
}
|
||||
});
|
||||
var sub = modalRef.content.action.subscribe(function (data) {
|
||||
sub.unsubscribe();
|
||||
var postData = {
|
||||
scenario: scenario.name,
|
||||
description: data.description
|
||||
};
|
||||
if (data.servers) {
|
||||
postData["vmImage"] = data.servers;
|
||||
}
|
||||
console.log("postData", postData);
|
||||
_this._provisionsService.newProvision(postData, _this.user._id).subscribe(function (res) {
|
||||
console.log("Done!", res);
|
||||
_this.onStartProvision.emit(scenario);
|
||||
});
|
||||
});
|
||||
};
|
||||
__decorate([
|
||||
Output(),
|
||||
__metadata("design:type", Object)
|
||||
], ScenariosComponent.prototype, "onStartProvision", void 0);
|
||||
ScenariosComponent = __decorate([
|
||||
Component({
|
||||
selector: 'app-scenarios',
|
||||
templateUrl: './scenarios.component.html',
|
||||
styleUrls: ['./scenarios.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [MDBModalService, ProvisionsService, ScenariosService, AuthGuard])
|
||||
], ScenariosComponent);
|
||||
return ScenariosComponent;
|
||||
}());
|
||||
export { ScenariosComponent };
|
||||
//# sourceMappingURL=scenarios.component.js.map
|
||||
1
dist/out-tsc/src/app/scenarios/scenarios.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/scenarios/scenarios.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"scenarios.component.js","sourceRoot":"","sources":["../../../../../src/app/scenarios/scenarios.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAU,YAAY,EAAa,MAAM,eAAe,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,OAAO,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAQvD;IAIE,4BAAoB,YAA6B,EAAU,kBAAqC,EAAU,iBAAmC,EAAU,KAAgB;QAAvK,iBAIC;QAJmB,iBAAY,GAAZ,YAAY,CAAiB;QAAU,uBAAkB,GAAlB,kBAAkB,CAAmB;QAAU,sBAAiB,GAAjB,iBAAiB,CAAkB;QAAU,UAAK,GAAL,KAAK,CAAW;QAM7J,qBAAgB,GAAG,IAAI,YAAY,EAAU,CAAC;QALtD,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,SAAS,CAAE,UAAA,KAAK;YACvC,KAAI,CAAC,IAAI,GAAG,KAAK,CAAC;QACpB,CAAC,CAAC,CAAC;IACL,CAAC;IAQD,qCAAQ,GAAR;QAAA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AAG,CAAC,CAAC;gBAC1B,KAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YACvC,CAAC,CAAC,CAAC;QAEL,CAAC,CAAC,CAAC;IACL,CAAC;IAjDS;QAAT,MAAM,EAAE;;gEAA+C;IAV7C,kBAAkB;QAL9B,SAAS,CAAC;YACT,QAAQ,EAAE,eAAe;YACzB,WAAW,EAAE,4BAA4B;YACzC,SAAS,EAAE,CAAC,4BAA4B,CAAC;SAC1C,CAAC;yCAKkC,eAAe,EAA8B,iBAAiB,EAA6B,gBAAgB,EAAiB,SAAS;OAJ5J,kBAAkB,CA6D9B;IAAD,yBAAC;CAAA,AA7DD,IA6DC;SA7DY,kBAAkB"}
|
||||
21
dist/out-tsc/src/app/scenarios/scenarios.component.spec.js
vendored
Normal file
21
dist/out-tsc/src/app/scenarios/scenarios.component.spec.js
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import { async, TestBed } from '@angular/core/testing';
|
||||
import { ScenariosComponent } from './scenarios.component';
|
||||
describe('ScenariosComponent', function () {
|
||||
var component;
|
||||
var fixture;
|
||||
beforeEach(async(function () {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ScenariosComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
beforeEach(function () {
|
||||
fixture = TestBed.createComponent(ScenariosComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
it('should create', function () {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
//# sourceMappingURL=scenarios.component.spec.js.map
|
||||
1
dist/out-tsc/src/app/scenarios/scenarios.component.spec.js.map
vendored
Normal file
1
dist/out-tsc/src/app/scenarios/scenarios.component.spec.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"scenarios.component.spec.js","sourceRoot":"","sources":["../../../../../src/app/scenarios/scenarios.component.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAoB,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,QAAQ,CAAC,oBAAoB,EAAE;IAC7B,IAAI,SAA6B,CAAC;IAClC,IAAI,OAA6C,CAAC;IAElD,UAAU,CAAC,KAAK,CAAC;QACf,OAAO,CAAC,sBAAsB,CAAC;YAC7B,YAAY,EAAE,CAAE,kBAAkB,CAAE;SACrC,CAAC;aACD,iBAAiB,EAAE,CAAC;IACvB,CAAC,CAAC,CAAC,CAAC;IAEJ,UAAU,CAAC;QACT,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,kBAAkB,CAAC,CAAC;QACtD,SAAS,GAAG,OAAO,CAAC,iBAAiB,CAAC;QACtC,OAAO,CAAC,aAAa,EAAE,CAAC;IAC1B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,eAAe,EAAE;QAClB,MAAM,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
||||
36
dist/out-tsc/src/app/services/alert.service.js
vendored
Normal file
36
dist/out-tsc/src/app/services/alert.service.js
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Injectable, EventEmitter } from '@angular/core';
|
||||
var AlertService = /** @class */ (function () {
|
||||
function AlertService() {
|
||||
this.alertEmitter = new EventEmitter();
|
||||
}
|
||||
AlertService.prototype.showAlert = function (alert) {
|
||||
this.alertEmitter.emit(alert);
|
||||
if (this.to) {
|
||||
clearTimeout(this.to);
|
||||
}
|
||||
this.to = setTimeout(function () {
|
||||
this.alertEmitter.emit(null);
|
||||
}.bind(this), 5000);
|
||||
};
|
||||
AlertService.prototype.getAlertEmitter = function () {
|
||||
return this.alertEmitter;
|
||||
};
|
||||
AlertService = __decorate([
|
||||
Injectable({
|
||||
providedIn: 'root'
|
||||
}),
|
||||
__metadata("design:paramtypes", [])
|
||||
], AlertService);
|
||||
return AlertService;
|
||||
}());
|
||||
export { AlertService };
|
||||
//# sourceMappingURL=alert.service.js.map
|
||||
1
dist/out-tsc/src/app/services/alert.service.js.map
vendored
Normal file
1
dist/out-tsc/src/app/services/alert.service.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"alert.service.js","sourceRoot":"","sources":["../../../../../src/app/services/alert.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAKzD;IAIE;QAFA,iBAAY,GAAG,IAAI,YAAY,EAAE,CAAC;IAElB,CAAC;IAGjB,gCAAS,GAAT,UAAU,KAAK;QACb,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC9B,IAAK,IAAI,CAAC,EAAE,EAAG;YACb,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;SACvB;QACD,IAAI,CAAC,EAAE,GAAG,UAAU,CAAE;YAClB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;IACvB,CAAC;IAED,sCAAe,GAAf;QACE,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAnBU,YAAY;QAHxB,UAAU,CAAC;YACV,UAAU,EAAE,MAAM;SACnB,CAAC;;OACW,YAAY,CAqBxB;IAAD,mBAAC;CAAA,AArBD,IAqBC;SArBY,YAAY"}
|
||||
54
dist/out-tsc/src/app/services/auth.guard.js
vendored
Normal file
54
dist/out-tsc/src/app/services/auth.guard.js
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Router } from '@angular/router';
|
||||
import { of, BehaviorSubject } from 'rxjs';
|
||||
import { map, catchError } from 'rxjs/operators';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { UsersService } from './users.service';
|
||||
var AuthGuard = /** @class */ (function () {
|
||||
// Inject Router so we can hand off the user to the Login Page
|
||||
function AuthGuard(_userService, httpClient, router) {
|
||||
this._userService = _userService;
|
||||
this.httpClient = httpClient;
|
||||
this.router = router;
|
||||
this.userInfo = new BehaviorSubject(null);
|
||||
var user = localStorage.getItem("user");
|
||||
this.userInfo.next(JSON.parse(user));
|
||||
}
|
||||
AuthGuard.prototype.canActivate = function (route) {
|
||||
var _this = this;
|
||||
console.log("CanActivate?");
|
||||
return this._userService.getMe().pipe(map(function (res) {
|
||||
localStorage.setItem("user", JSON.stringify(res));
|
||||
_this.userInfo.next(res);
|
||||
return true;
|
||||
}), catchError(function (err) {
|
||||
_this.clearUser();
|
||||
return of(false);
|
||||
}));
|
||||
};
|
||||
AuthGuard.prototype.clearUser = function () {
|
||||
localStorage.setItem("user", null);
|
||||
this.userInfo.next(null);
|
||||
};
|
||||
AuthGuard.prototype.getUserInfo = function () {
|
||||
return this.userInfo;
|
||||
};
|
||||
AuthGuard = __decorate([
|
||||
Injectable({
|
||||
providedIn: 'root'
|
||||
}),
|
||||
__metadata("design:paramtypes", [UsersService, HttpClient, Router])
|
||||
], AuthGuard);
|
||||
return AuthGuard;
|
||||
}());
|
||||
export { AuthGuard };
|
||||
//# sourceMappingURL=auth.guard.js.map
|
||||
1
dist/out-tsc/src/app/services/auth.guard.js.map
vendored
Normal file
1
dist/out-tsc/src/app/services/auth.guard.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"auth.guard.js","sourceRoot":"","sources":["../../../../../src/app/services/auth.guard.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAA4D,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEnG,OAAO,EAAE,EAAE,EAAc,eAAe,EAAE,MAAM,MAAM,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAM/C;IAIE,+DAA+D;IAC/D,mBAAoB,YAA0B,EAAU,UAAsB,EAAU,MAAc;QAAlF,iBAAY,GAAZ,YAAY,CAAc;QAAU,eAAU,GAAV,UAAU,CAAY;QAAU,WAAM,GAAN,MAAM,CAAQ;QAH9F,aAAQ,GAAyB,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC;QAIjE,IAAI,IAAI,GAAG,YAAY,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACxC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;IACvC,CAAC;IAED,+BAAW,GAAX,UAAY,KAA6B;QAAzC,iBAaC;QAZC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;QAC5B,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,IAAI,CACnC,GAAG,CAAC,UAAA,GAAG;YACL,YAAY,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;YAClD,KAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACxB,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,EACF,UAAU,CAAC,UAAC,GAAG;YACb,KAAI,CAAC,SAAS,EAAE,CAAC;YACjB,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC;QACnB,CAAC,CAAC,CACH,CAAC;IACJ,CAAC;IAID,6BAAS,GAAT;QACE,YAAY,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QACnC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;IAED,+BAAW,GAAX;QACE,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAlCU,SAAS;QAHrB,UAAU,CAAC;YACV,UAAU,EAAE,MAAM;SACnB,CAAC;yCAMkC,YAAY,EAAsB,UAAU,EAAkB,MAAM;OAL3F,SAAS,CAmCrB;IAAD,gBAAC;CAAA,AAnCD,IAmCC;SAnCY,SAAS"}
|
||||
13
dist/out-tsc/src/app/services/auth.guard.spec.js
vendored
Normal file
13
dist/out-tsc/src/app/services/auth.guard.spec.js
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import { TestBed, inject } from '@angular/core/testing';
|
||||
import { AuthGuard } from './auth.guard';
|
||||
describe('AuthGuard', function () {
|
||||
beforeEach(function () {
|
||||
TestBed.configureTestingModule({
|
||||
providers: [AuthGuard]
|
||||
});
|
||||
});
|
||||
it('should ...', inject([AuthGuard], function (guard) {
|
||||
expect(guard).toBeTruthy();
|
||||
}));
|
||||
});
|
||||
//# sourceMappingURL=auth.guard.spec.js.map
|
||||
1
dist/out-tsc/src/app/services/auth.guard.spec.js.map
vendored
Normal file
1
dist/out-tsc/src/app/services/auth.guard.spec.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"auth.guard.spec.js","sourceRoot":"","sources":["../../../../../src/app/services/auth.guard.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAS,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,QAAQ,CAAC,WAAW,EAAE;IACpB,UAAU,CAAC;QACT,OAAO,CAAC,sBAAsB,CAAC;YAC7B,SAAS,EAAE,CAAC,SAAS,CAAC;SACvB,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,SAAS,CAAC,EAAE,UAAC,KAAgB;QACpD,MAAM,CAAC,KAAK,CAAC,CAAC,UAAU,EAAE,CAAC;IAC7B,CAAC,CAAC,CAAC,CAAC;AACN,CAAC,CAAC,CAAC"}
|
||||
107
dist/out-tsc/src/app/services/provisions.service.js
vendored
Normal file
107
dist/out-tsc/src/app/services/provisions.service.js
vendored
Normal file
@@ -0,0 +1,107 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Injectable } from '@angular/core';
|
||||
import { HttpClient, HttpParams } from '@angular/common/http';
|
||||
import { environment } from '../../environments/environment.prod';
|
||||
import * as moment from 'moment';
|
||||
var ProvisionsService = /** @class */ (function () {
|
||||
function ProvisionsService(httpClient) {
|
||||
this.httpClient = httpClient;
|
||||
this.RUNNING_PERIOD = 4;
|
||||
}
|
||||
ProvisionsService.prototype.getProvisionsAdmin = function (filter) {
|
||||
// Initialize Params Object
|
||||
var params = new HttpParams();
|
||||
if (filter) {
|
||||
params = params.append("filter", JSON.stringify(filter));
|
||||
}
|
||||
return this.httpClient.get(environment.apiVersionPath + "/provisions", { params: params });
|
||||
};
|
||||
ProvisionsService.prototype.getProvisionsByUser = function (userId) {
|
||||
return this.httpClient.get(environment.apiVersionPath + "/users/" + userId + "/provisions");
|
||||
};
|
||||
ProvisionsService.prototype.getDestroyProvisionsAdmin = function () {
|
||||
return this.httpClient.get(environment.apiVersionPath + "/destroyprovisions");
|
||||
};
|
||||
ProvisionsService.prototype.newProvision = function (body, userId) {
|
||||
return this.httpClient.post(environment.apiVersionPath + "/users/" + userId + "/provisions", body);
|
||||
};
|
||||
ProvisionsService.prototype.delProvision = function (id, userId) {
|
||||
return this.httpClient.delete(environment.apiVersionPath + "/users/" + userId + "/provisions/" + id);
|
||||
};
|
||||
ProvisionsService.prototype.newDestroy = function (id, userId) {
|
||||
return this.httpClient.post(environment.apiVersionPath + "/users/" + userId + "/provisions/" + id + "/destroy", null);
|
||||
};
|
||||
ProvisionsService.prototype.getDestroyProvisions = function (userId) {
|
||||
return this.httpClient.get(environment.apiVersionPath + "/users/" + userId + "/destroyprovisions");
|
||||
};
|
||||
/*
|
||||
getCombinedProvisions(userId): Observable<any> {
|
||||
return forkJoin(this.getProvisionsByUser(userId), this.getDestroyProvisions(userId))
|
||||
}
|
||||
|
||||
getCombinedProvisionsAdmin(): Observable<any> {
|
||||
return forkJoin(this.getProvisionsAdmin(), this.getDestroyProvisionsAdmin())
|
||||
}*/
|
||||
ProvisionsService.prototype.getProvisionLogs = function (id) {
|
||||
return this.httpClient.get(environment.apiVersionPath + "/provisions/" + id + "/logs", { responseType: 'text' });
|
||||
};
|
||||
ProvisionsService.prototype.getDestroyLogs = function (id) {
|
||||
return this.httpClient.get(environment.apiVersionPath + "/destroyprovisions/" + id + "/logs", { responseType: 'text' });
|
||||
};
|
||||
ProvisionsService.prototype.stopVms = function (id, userId) {
|
||||
return this.httpClient.post(environment.apiVersionPath + "/users/" + userId + "/provisions/" + id + "/deallocatevms", null);
|
||||
};
|
||||
ProvisionsService.prototype.startVms = function (id, userId) {
|
||||
return this.httpClient.post(environment.apiVersionPath + "/users/" + userId + "/provisions/" + id + "/startvms", null);
|
||||
};
|
||||
ProvisionsService.prototype.extend = function (id, userId) {
|
||||
return this.httpClient.post(environment.apiVersionPath + "/users/" + userId + "/provisions/" + id + "/extend", null);
|
||||
};
|
||||
ProvisionsService.prototype.setSelectedProv = function (provision) {
|
||||
if (provision) {
|
||||
this.selectedProv = provision;
|
||||
}
|
||||
else {
|
||||
this.selectedProv = null;
|
||||
}
|
||||
};
|
||||
ProvisionsService.prototype.getSelectedProv = function () {
|
||||
return this.selectedProv;
|
||||
};
|
||||
ProvisionsService.prototype.timeRunning = function (p) {
|
||||
var now = new Date();
|
||||
var runningFromTime = p.runningFrom ? new Date(p.runningFrom).getTime() : new Date(p.created).getTime();
|
||||
var totalRunningTime = p.timeRunning * 1000 * 60;
|
||||
if (p.statusVms !== 'Stopped' && p.statusVms !== 'Starting' && !p.isDestroyed) {
|
||||
totalRunningTime = totalRunningTime + Math.abs(now.getTime() - runningFromTime);
|
||||
}
|
||||
var authShutdownDate = new Date(runningFromTime);
|
||||
authShutdownDate.setDate(authShutdownDate.getDate() + this.RUNNING_PERIOD);
|
||||
var autoshutDown = authShutdownDate.getTime() - now.getTime();
|
||||
var durationAutoShutdown = moment.duration(autoshutDown);
|
||||
var duration = moment.duration(totalRunningTime);
|
||||
p.runningDays = Math.floor(duration.asDays());
|
||||
p.runningHours = duration.hours();
|
||||
p.runningMinutes = duration.minutes();
|
||||
p.autoshutdownDays = Math.floor(durationAutoShutdown.asDays());
|
||||
p.autoshutdownHours = durationAutoShutdown.hours();
|
||||
p.autoshutdownMinutes = durationAutoShutdown.minutes();
|
||||
};
|
||||
ProvisionsService = __decorate([
|
||||
Injectable({
|
||||
providedIn: 'root'
|
||||
}),
|
||||
__metadata("design:paramtypes", [HttpClient])
|
||||
], ProvisionsService);
|
||||
return ProvisionsService;
|
||||
}());
|
||||
export { ProvisionsService };
|
||||
//# sourceMappingURL=provisions.service.js.map
|
||||
1
dist/out-tsc/src/app/services/provisions.service.js.map
vendored
Normal file
1
dist/out-tsc/src/app/services/provisions.service.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"provisions.service.js","sourceRoot":"","sources":["../../../../../src/app/services/provisions.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAE9D,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAElE,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAMjC;IAKE,2BAAqB,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;QAF3C,mBAAc,GAAY,CAAC,CAAC;IAEoB,CAAC;IAEjD,8CAAkB,GAAlB,UAAoB,MAAY;QAC9B,2BAA2B;QAC3B,IAAI,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;QAC9B,IAAK,MAAM,EAAE;YACX,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,EAA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AAC;YACV,UAAU,EAAE,MAAM;SACnB,CAAC;yCAMiC,UAAU;OALhC,iBAAiB,CA0G7B;IAAD,wBAAC;CAAA,AA1GD,IA0GC;SA1GY,iBAAiB"}
|
||||
10
dist/out-tsc/src/app/services/provisions.service.spec.js
vendored
Normal file
10
dist/out-tsc/src/app/services/provisions.service.spec.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import { TestBed } from '@angular/core/testing';
|
||||
import { ProvisionsService } from './provisions.service';
|
||||
describe('ProvisionsService', function () {
|
||||
beforeEach(function () { return TestBed.configureTestingModule({}); });
|
||||
it('should be created', function () {
|
||||
var service = TestBed.get(ProvisionsService);
|
||||
expect(service).toBeTruthy();
|
||||
});
|
||||
});
|
||||
//# sourceMappingURL=provisions.service.spec.js.map
|
||||
1
dist/out-tsc/src/app/services/provisions.service.spec.js.map
vendored
Normal file
1
dist/out-tsc/src/app/services/provisions.service.spec.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"provisions.service.spec.js","sourceRoot":"","sources":["../../../../../src/app/services/provisions.service.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,QAAQ,CAAC,mBAAmB,EAAE;IAC5B,UAAU,CAAC,cAAM,OAAA,OAAO,CAAC,sBAAsB,CAAC,EAAE,CAAC,EAAlC,CAAkC,CAAC,CAAC;IAErD,EAAE,CAAC,mBAAmB,EAAE;QACtB,IAAM,OAAO,GAAsB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QAClE,MAAM,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,CAAC;IAC/B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
||||
35
dist/out-tsc/src/app/services/scenarios.service.js
vendored
Normal file
35
dist/out-tsc/src/app/services/scenarios.service.js
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Injectable } from '@angular/core';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { environment } from '../../environments/environment.prod';
|
||||
var ScenariosService = /** @class */ (function () {
|
||||
function ScenariosService(httpClient) {
|
||||
this.httpClient = httpClient;
|
||||
}
|
||||
ScenariosService.prototype.getScenarios = function () {
|
||||
return this.httpClient.get(environment.apiVersionPath + "/scenarios");
|
||||
};
|
||||
ScenariosService.prototype.getScenariosAll = function () {
|
||||
return this.httpClient.get(environment.apiVersionPath + "/scenarios/all");
|
||||
};
|
||||
ScenariosService.prototype.getScenarioVmtypes = function () {
|
||||
return this.httpClient.get(environment.apiVersionPath + "/scenarios/vmtypes");
|
||||
};
|
||||
ScenariosService = __decorate([
|
||||
Injectable({
|
||||
providedIn: 'root'
|
||||
}),
|
||||
__metadata("design:paramtypes", [HttpClient])
|
||||
], ScenariosService);
|
||||
return ScenariosService;
|
||||
}());
|
||||
export { ScenariosService };
|
||||
//# sourceMappingURL=scenarios.service.js.map
|
||||
1
dist/out-tsc/src/app/services/scenarios.service.js.map
vendored
Normal file
1
dist/out-tsc/src/app/services/scenarios.service.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"scenarios.service.js","sourceRoot":"","sources":["../../../../../src/app/services/scenarios.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAKlE;IAEE,0BAAqB,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAK,CAAC;IAEjD,uCAAY,GAAZ;QACE,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAI,WAAW,CAAC,cAAc,eAAY,CAAC,CAAC;IACxE,CAAC;IAED,0CAAe,GAAf;QACE,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAI,WAAW,CAAC,cAAc,mBAAgB,CAAC,CAAC;IAC5E,CAAC;IAED,6CAAkB,GAAlB;QACE,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAI,WAAW,CAAC,cAAc,uBAAoB,CAAC,CAAC;IAChF,CAAC;IAdU,gBAAgB;QAH5B,UAAU,CAAC;YACV,UAAU,EAAE,MAAM;SACnB,CAAC;yCAGiC,UAAU;OAFhC,gBAAgB,CAgB5B;IAAD,uBAAC;CAAA,AAhBD,IAgBC;SAhBY,gBAAgB"}
|
||||
10
dist/out-tsc/src/app/services/scenarios.service.spec.js
vendored
Normal file
10
dist/out-tsc/src/app/services/scenarios.service.spec.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import { TestBed } from '@angular/core/testing';
|
||||
import { ScenariosService } from './scenarios.service';
|
||||
describe('ScenariosService', function () {
|
||||
beforeEach(function () { return TestBed.configureTestingModule({}); });
|
||||
it('should be created', function () {
|
||||
var service = TestBed.get(ScenariosService);
|
||||
expect(service).toBeTruthy();
|
||||
});
|
||||
});
|
||||
//# sourceMappingURL=scenarios.service.spec.js.map
|
||||
1
dist/out-tsc/src/app/services/scenarios.service.spec.js.map
vendored
Normal file
1
dist/out-tsc/src/app/services/scenarios.service.spec.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"scenarios.service.spec.js","sourceRoot":"","sources":["../../../../../src/app/services/scenarios.service.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,QAAQ,CAAC,kBAAkB,EAAE;IAC3B,UAAU,CAAC,cAAM,OAAA,OAAO,CAAC,sBAAsB,CAAC,EAAE,CAAC,EAAlC,CAAkC,CAAC,CAAC;IAErD,EAAE,CAAC,mBAAmB,EAAE;QACtB,IAAM,OAAO,GAAqB,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;QAChE,MAAM,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,CAAC;IAC/B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
||||
35
dist/out-tsc/src/app/services/users.service.js
vendored
Normal file
35
dist/out-tsc/src/app/services/users.service.js
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Injectable } from '@angular/core';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { environment } from '../../environments/environment.prod';
|
||||
var UsersService = /** @class */ (function () {
|
||||
function UsersService(httpClient) {
|
||||
this.httpClient = httpClient;
|
||||
}
|
||||
UsersService.prototype.getMe = function () {
|
||||
return this.httpClient.get(environment.apiVersionPath + "/users/me");
|
||||
};
|
||||
UsersService.prototype.getUsers = function () {
|
||||
return this.httpClient.get(environment.apiVersionPath + "/users");
|
||||
};
|
||||
UsersService.prototype.updateUser = function (userId, patchData) {
|
||||
return this.httpClient.put(environment.apiVersionPath + "/users/" + userId, patchData);
|
||||
};
|
||||
UsersService = __decorate([
|
||||
Injectable({
|
||||
providedIn: 'root'
|
||||
}),
|
||||
__metadata("design:paramtypes", [HttpClient])
|
||||
], UsersService);
|
||||
return UsersService;
|
||||
}());
|
||||
export { UsersService };
|
||||
//# sourceMappingURL=users.service.js.map
|
||||
1
dist/out-tsc/src/app/services/users.service.js.map
vendored
Normal file
1
dist/out-tsc/src/app/services/users.service.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"users.service.js","sourceRoot":"","sources":["../../../../../src/app/services/users.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAKlE;IAEE,sBAAqB,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAK,CAAC;IAEjD,4BAAK,GAAL;QACE,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAI,WAAW,CAAC,cAAc,cAAW,CAAC,CAAC;IACvE,CAAC;IAED,+BAAQ,GAAR;QACE,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAI,WAAW,CAAC,cAAc,WAAQ,CAAC,CAAC;IACpE,CAAC;IAED,iCAAU,GAAV,UAAW,MAAM,EAAE,SAAS;QAC1B,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAI,WAAW,CAAC,cAAc,eAAU,MAAQ,EAAE,SAAS,CAAC,CAAC;IACzF,CAAC;IAdU,YAAY;QAHxB,UAAU,CAAC;YACV,UAAU,EAAE,MAAM;SACnB,CAAC;yCAGiC,UAAU;OAFhC,YAAY,CAexB;IAAD,mBAAC;CAAA,AAfD,IAeC;SAfY,YAAY"}
|
||||
10
dist/out-tsc/src/app/services/users.service.spec.js
vendored
Normal file
10
dist/out-tsc/src/app/services/users.service.spec.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import { TestBed } from '@angular/core/testing';
|
||||
import { UsersService } from './users.service';
|
||||
describe('UsersService', function () {
|
||||
beforeEach(function () { return TestBed.configureTestingModule({}); });
|
||||
it('should be created', function () {
|
||||
var service = TestBed.get(UsersService);
|
||||
expect(service).toBeTruthy();
|
||||
});
|
||||
});
|
||||
//# sourceMappingURL=users.service.spec.js.map
|
||||
1
dist/out-tsc/src/app/services/users.service.spec.js.map
vendored
Normal file
1
dist/out-tsc/src/app/services/users.service.spec.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"users.service.spec.js","sourceRoot":"","sources":["../../../../../src/app/services/users.service.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,QAAQ,CAAC,cAAc,EAAE;IACvB,UAAU,CAAC,cAAM,OAAA,OAAO,CAAC,sBAAsB,CAAC,EAAE,CAAC,EAAlC,CAAkC,CAAC,CAAC;IAErD,EAAE,CAAC,mBAAmB,EAAE;QACtB,IAAM,OAAO,GAAiB,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QACxD,MAAM,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,CAAC;IAC/B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
||||
286
dist/out-tsc/src/app/tables/table-admin.component.js
vendored
Normal file
286
dist/out-tsc/src/app/tables/table-admin.component.js
vendored
Normal file
@@ -0,0 +1,286 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Component, HostListener, ViewChild, ChangeDetectorRef } from '@angular/core';
|
||||
import { MdbTableDirective, MdbTablePaginationComponent, MDBModalService } from 'angular-bootstrap-md';
|
||||
import { ProvisionsService } from '../services/provisions.service';
|
||||
import { AlertService } from '../services/alert.service';
|
||||
import { ModalInfoComponent } from '../alert/modalinfo.component';
|
||||
import { ModalConfirmComponent } from '../alert/confirm.component';
|
||||
import { ScenariosService } from '../services/scenarios.service';
|
||||
import { timer } from 'rxjs';
|
||||
import { switchMap } from 'rxjs/operators';
|
||||
var TableAdminComponent = /** @class */ (function () {
|
||||
function TableAdminComponent(modalService, _scenariosService, _alertService, cdRef, _provisionsService) {
|
||||
this.modalService = modalService;
|
||||
this._scenariosService = _scenariosService;
|
||||
this._alertService = _alertService;
|
||||
this.cdRef = cdRef;
|
||||
this._provisionsService = _provisionsService;
|
||||
this.pagingIsDisabled = false;
|
||||
this.searchText = '';
|
||||
this.selectedprov = null;
|
||||
this.showInfo = false;
|
||||
this.logShow = false;
|
||||
this.logstype = 'provision';
|
||||
this.maxVisibleItems = 10;
|
||||
this.filterParams = {
|
||||
isDestroyed: false
|
||||
};
|
||||
}
|
||||
TableAdminComponent.prototype.oninput = function () {
|
||||
this.mdbTablePagination.searchText = this.searchText;
|
||||
};
|
||||
TableAdminComponent.prototype._process = function (provisions) {
|
||||
var _this = this;
|
||||
provisions.forEach(function (p) {
|
||||
p._scenario = _this.scenarios.filter(function (s) { return s.name === p.scenario; });
|
||||
_this._provisionsService.timeRunning(p);
|
||||
});
|
||||
if (!this.provisions) {
|
||||
this.provisions = provisions;
|
||||
}
|
||||
else {
|
||||
this.provisions.forEach(function (p, index, object) {
|
||||
var found = provisions.filter(function (a) { return a._id.toString() === p._id.toString(); });
|
||||
if (found.length) {
|
||||
p.status = found[0].status;
|
||||
p.statusVms = found[0].statusVms;
|
||||
p.isDestroyed = found[0].isDestroyed;
|
||||
p.outputs = found[0].outputs;
|
||||
p.destroy = found[0].destroy;
|
||||
this._provisionsService.timeRunning(p);
|
||||
}
|
||||
else {
|
||||
object.splice(index, 1);
|
||||
}
|
||||
}.bind(this));
|
||||
provisions.forEach(function (p) {
|
||||
var found = this.provisions.filter(function (a) { return a._id.toString() === p._id.toString(); });
|
||||
if (found.length === 0) {
|
||||
this.provisions.unshift(p);
|
||||
}
|
||||
}.bind(this));
|
||||
}
|
||||
this._initElements(this.provisions);
|
||||
};
|
||||
TableAdminComponent.prototype._initElements = function (items) {
|
||||
this.mdbTable.setDataSource(items);
|
||||
this.elements = this.mdbTable.getDataSource();
|
||||
this.previous = this.mdbTable.getDataSource();
|
||||
};
|
||||
TableAdminComponent.prototype.ngOnInit = function () {
|
||||
var _this = this;
|
||||
var scenariosSub = this._scenariosService.getScenariosAll().subscribe(function (res) {
|
||||
scenariosSub.unsubscribe();
|
||||
_this.scenarios = res.results;
|
||||
_this.subscription = timer(0, 8000).pipe(switchMap(function () { return _this._provisionsService.getProvisionsAdmin(_this.filterParams); })).subscribe(function (provisions) {
|
||||
_this._process(provisions.results);
|
||||
});
|
||||
});
|
||||
this.mdbTablePagination.paginationChange().subscribe(function (data) {
|
||||
/*let page = data.last - data.first;
|
||||
if (page < this.limit && page > 0) {
|
||||
page = Math.ceil(data.last / this.limit);
|
||||
if (this.page !== page) {
|
||||
this.page = Math.ceil(data.last / this.limit);
|
||||
this.loadTable();
|
||||
}
|
||||
}*/
|
||||
});
|
||||
//this._initElements();
|
||||
};
|
||||
TableAdminComponent.prototype.ngAfterViewInit = function () {
|
||||
if (this.mdbTablePagination) {
|
||||
this.mdbTablePagination.setMaxVisibleItemsNumberTo(this.maxVisibleItems);
|
||||
this.mdbTablePagination.calculateFirstItemIndex();
|
||||
this.mdbTablePagination.calculateLastItemIndex();
|
||||
this.cdRef.detectChanges();
|
||||
}
|
||||
};
|
||||
TableAdminComponent.prototype.searchItems = function () {
|
||||
var _this = this;
|
||||
var prev = this.mdbTable.getDataSource();
|
||||
if (!this.searchText) {
|
||||
this.mdbTable.setDataSource(this.previous);
|
||||
this.elements = this.mdbTable.getDataSource();
|
||||
}
|
||||
if (this.searchText) {
|
||||
this.elements = this.mdbTable.searchLocalDataBy(this.searchText);
|
||||
this.mdbTable.setDataSource(prev);
|
||||
}
|
||||
if (this.mdbTablePagination) {
|
||||
this.mdbTablePagination.calculateFirstItemIndex();
|
||||
this.mdbTablePagination.calculateLastItemIndex();
|
||||
this.mdbTable.searchDataObservable(this.searchText).subscribe(function () {
|
||||
_this.mdbTablePagination.calculateFirstItemIndex();
|
||||
_this.mdbTablePagination.calculateLastItemIndex();
|
||||
});
|
||||
}
|
||||
};
|
||||
TableAdminComponent.prototype.showLogs = function ($event, provision, type) {
|
||||
$event.preventDefault();
|
||||
$event.stopPropagation();
|
||||
this.logstype = type;
|
||||
this.logShow = false;
|
||||
this.selectedprov = provision;
|
||||
this.logShow = true;
|
||||
};
|
||||
TableAdminComponent.prototype.onLogsClose = function () {
|
||||
this.selectedprov = null;
|
||||
this.logShow = false;
|
||||
};
|
||||
TableAdminComponent.prototype.openConfirmStartModal = function (provision) {
|
||||
var _this = this;
|
||||
var modalRef = this.modalService.show(ModalConfirmComponent, {
|
||||
class: 'modal-sm modal-notify modal-info',
|
||||
containerClass: '',
|
||||
data: {
|
||||
info: {
|
||||
title: 'Confirm Start VMs?',
|
||||
icon: 'play',
|
||||
buttonColor: 'grey'
|
||||
}
|
||||
}
|
||||
});
|
||||
var sub = modalRef.content.action.subscribe(function (result) {
|
||||
sub.unsubscribe();
|
||||
_this._startVms(provision);
|
||||
});
|
||||
};
|
||||
TableAdminComponent.prototype._startVms = function (provision) {
|
||||
var _this = this;
|
||||
var sub = this._provisionsService.startVms(provision._id.toString(), provision.user._id).subscribe(function (res) {
|
||||
provision.startVms = res.startVms;
|
||||
sub.unsubscribe();
|
||||
_this._alertService.showAlert({
|
||||
type: 'alert-primary',
|
||||
text: "Starting all VMs for scenario '" + provision.scenario + "'..."
|
||||
});
|
||||
});
|
||||
};
|
||||
TableAdminComponent.prototype.openConfirmStopModal = function (provision) {
|
||||
var _this = this;
|
||||
var modalRef = this.modalService.show(ModalConfirmComponent, {
|
||||
class: 'modal-sm modal-notify modal-info',
|
||||
containerClass: '',
|
||||
data: {
|
||||
info: {
|
||||
title: 'Confirm Stop VMs?',
|
||||
icon: 'stop',
|
||||
buttonColor: 'grey'
|
||||
}
|
||||
}
|
||||
});
|
||||
var sub = modalRef.content.action.subscribe(function (result) {
|
||||
sub.unsubscribe();
|
||||
_this._stopVms(provision);
|
||||
});
|
||||
};
|
||||
TableAdminComponent.prototype._stopVms = function (provision) {
|
||||
var _this = this;
|
||||
var sub = this._provisionsService.stopVms(provision._id.toString(), provision.user._id).subscribe(function (res) {
|
||||
provision.startVms = res.startVms;
|
||||
sub.unsubscribe();
|
||||
_this._alertService.showAlert({
|
||||
type: 'alert-primary',
|
||||
text: "Stopping all VMs for scenario '" + provision.scenario + "'..."
|
||||
});
|
||||
});
|
||||
};
|
||||
TableAdminComponent.prototype.openInfoModal = function (provision) {
|
||||
this.modalService.show(ModalInfoComponent, {
|
||||
backdrop: true,
|
||||
keyboard: true,
|
||||
focus: true,
|
||||
show: false,
|
||||
ignoreBackdropClick: false,
|
||||
class: 'modal-lg',
|
||||
containerClass: '',
|
||||
animated: true,
|
||||
data: {
|
||||
info: provision
|
||||
}
|
||||
});
|
||||
};
|
||||
TableAdminComponent.prototype.openConfirmDestroyModal = function (provision) {
|
||||
var _this = this;
|
||||
var modalRef = this.modalService.show(ModalConfirmComponent, {
|
||||
class: 'modal-sm modal-notify modal-danger',
|
||||
containerClass: '',
|
||||
data: {
|
||||
info: {
|
||||
title: 'Confirm destroy this provision?',
|
||||
icon: 'times-circle'
|
||||
}
|
||||
}
|
||||
});
|
||||
var sub = modalRef.content.action.subscribe(function (result) {
|
||||
sub.unsubscribe();
|
||||
_this._provisionsService.newDestroy(provision._id.toString(), provision.user._id).subscribe(function (provUpdated) {
|
||||
_this._alertService.showAlert({
|
||||
type: 'alert-primary',
|
||||
text: "Provision of scenario '" + provision.scenario + "' is going to be destroyed"
|
||||
});
|
||||
provision.destroy = provUpdated.destroy;
|
||||
});
|
||||
});
|
||||
};
|
||||
TableAdminComponent.prototype.openConfirmDeleteModal = function (provision) {
|
||||
var _this = this;
|
||||
var modalRef = this.modalService.show(ModalConfirmComponent, {
|
||||
class: 'modal-sm modal-notify modal-danger',
|
||||
containerClass: '',
|
||||
data: {
|
||||
info: {
|
||||
title: 'Confirm delete?',
|
||||
icon: 'trash-alt'
|
||||
}
|
||||
}
|
||||
});
|
||||
var sub = modalRef.content.action.subscribe(function (result) {
|
||||
sub.unsubscribe();
|
||||
_this._provisionsService.delProvision(provision._id, provision.user._id).subscribe(function (res) {
|
||||
_this.elements = _this.elements.filter(function (e) {
|
||||
return e._id.toString() !== provision._id.toString();
|
||||
});
|
||||
_this._initElements(_this.elements);
|
||||
_this._alertService.showAlert({
|
||||
type: 'alert-primary',
|
||||
text: "Provision entry '" + provision.scenario + "' was deleted"
|
||||
});
|
||||
});
|
||||
});
|
||||
};
|
||||
__decorate([
|
||||
ViewChild(MdbTablePaginationComponent, { static: true }),
|
||||
__metadata("design:type", MdbTablePaginationComponent)
|
||||
], TableAdminComponent.prototype, "mdbTablePagination", void 0);
|
||||
__decorate([
|
||||
ViewChild(MdbTableDirective, { static: true }),
|
||||
__metadata("design:type", MdbTableDirective)
|
||||
], TableAdminComponent.prototype, "mdbTable", void 0);
|
||||
__decorate([
|
||||
HostListener('input'),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", []),
|
||||
__metadata("design:returntype", void 0)
|
||||
], TableAdminComponent.prototype, "oninput", null);
|
||||
TableAdminComponent = __decorate([
|
||||
Component({
|
||||
selector: 'table-admin',
|
||||
templateUrl: './table-admin.component.html',
|
||||
styleUrls: ['./table-admin.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [MDBModalService, ScenariosService, AlertService, ChangeDetectorRef, ProvisionsService])
|
||||
], TableAdminComponent);
|
||||
return TableAdminComponent;
|
||||
}());
|
||||
export { TableAdminComponent };
|
||||
//# sourceMappingURL=table-admin.component.js.map
|
||||
1
dist/out-tsc/src/app/tables/table-admin.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/tables/table-admin.component.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
109
dist/out-tsc/src/app/tables/table-users.component.js
vendored
Normal file
109
dist/out-tsc/src/app/tables/table-users.component.js
vendored
Normal file
@@ -0,0 +1,109 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { MdbTablePaginationComponent, MdbTableDirective } from 'angular-bootstrap-md';
|
||||
import { Component, ViewChild, HostListener, ChangeDetectorRef, Input } from '@angular/core';
|
||||
import { AuthGuard } from '../services/auth.guard';
|
||||
import { UsersService } from '../services/users.service';
|
||||
var TableUsersComponent = /** @class */ (function () {
|
||||
function TableUsersComponent(cdRef, _usersService, _auth) {
|
||||
var _this = this;
|
||||
this.cdRef = cdRef;
|
||||
this._usersService = _usersService;
|
||||
this._auth = _auth;
|
||||
this.previous = [];
|
||||
this.searchText = '';
|
||||
this.maxVisibleItems = 8;
|
||||
this._auth.getUserInfo().subscribe(function (value) {
|
||||
_this.currentUser = value;
|
||||
});
|
||||
}
|
||||
TableUsersComponent.prototype.oninput = function () {
|
||||
this.mdbTablePagination.searchText = this.searchText;
|
||||
};
|
||||
TableUsersComponent.prototype._initElements = function () {
|
||||
this.mdbTable.setDataSource(this.elements);
|
||||
this.elements = this.mdbTable.getDataSource();
|
||||
this.previous = this.mdbTable.getDataSource();
|
||||
};
|
||||
TableUsersComponent.prototype.ngOnInit = function () {
|
||||
this._initElements();
|
||||
};
|
||||
TableUsersComponent.prototype.ngAfterViewInit = function () {
|
||||
this.mdbTablePagination.setMaxVisibleItemsNumberTo(this.maxVisibleItems);
|
||||
this.mdbTablePagination.calculateFirstItemIndex();
|
||||
this.mdbTablePagination.calculateLastItemIndex();
|
||||
this.cdRef.detectChanges();
|
||||
};
|
||||
TableUsersComponent.prototype.searchItems = function () {
|
||||
var _this = this;
|
||||
var prev = this.mdbTable.getDataSource();
|
||||
if (!this.searchText) {
|
||||
this.mdbTable.setDataSource(this.previous);
|
||||
this.elements = this.mdbTable.getDataSource();
|
||||
}
|
||||
if (this.searchText) {
|
||||
this.elements = this.mdbTable.searchLocalDataBy(this.searchText);
|
||||
this.mdbTable.setDataSource(prev);
|
||||
}
|
||||
this.mdbTablePagination.calculateFirstItemIndex();
|
||||
this.mdbTablePagination.calculateLastItemIndex();
|
||||
this.mdbTable.searchDataObservable(this.searchText).subscribe(function () {
|
||||
_this.mdbTablePagination.calculateFirstItemIndex();
|
||||
_this.mdbTablePagination.calculateLastItemIndex();
|
||||
});
|
||||
};
|
||||
TableUsersComponent.prototype.setAdmin = function (user) {
|
||||
var _this = this;
|
||||
this._usersService.updateUser(user._id, { "role": "admin" }).subscribe(function (res1) {
|
||||
_this._usersService.getUsers().subscribe(function (res) {
|
||||
_this.elements = res.results;
|
||||
_this._initElements();
|
||||
});
|
||||
});
|
||||
};
|
||||
TableUsersComponent.prototype.removeAdmin = function (user) {
|
||||
var _this = this;
|
||||
this._usersService.updateUser(user._id, { "role": "user" }).subscribe(function (res1) {
|
||||
_this._usersService.getUsers().subscribe(function (res) {
|
||||
_this.elements = res.results;
|
||||
_this._initElements();
|
||||
});
|
||||
});
|
||||
};
|
||||
__decorate([
|
||||
ViewChild(MdbTablePaginationComponent, { static: true }),
|
||||
__metadata("design:type", MdbTablePaginationComponent)
|
||||
], TableUsersComponent.prototype, "mdbTablePagination", void 0);
|
||||
__decorate([
|
||||
ViewChild(MdbTableDirective, { static: true }),
|
||||
__metadata("design:type", MdbTableDirective)
|
||||
], TableUsersComponent.prototype, "mdbTable", void 0);
|
||||
__decorate([
|
||||
Input(),
|
||||
__metadata("design:type", Object)
|
||||
], TableUsersComponent.prototype, "elements", void 0);
|
||||
__decorate([
|
||||
HostListener('input'),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", []),
|
||||
__metadata("design:returntype", void 0)
|
||||
], TableUsersComponent.prototype, "oninput", null);
|
||||
TableUsersComponent = __decorate([
|
||||
Component({
|
||||
selector: 'table-users',
|
||||
templateUrl: './table-users.component.html',
|
||||
styleUrls: ['./table-users.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [ChangeDetectorRef, UsersService, AuthGuard])
|
||||
], TableUsersComponent);
|
||||
return TableUsersComponent;
|
||||
}());
|
||||
export { TableUsersComponent };
|
||||
//# sourceMappingURL=table-users.component.js.map
|
||||
1
dist/out-tsc/src/app/tables/table-users.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/tables/table-users.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"table-users.component.js","sourceRoot":"","sources":["../../../../../src/app/tables/table-users.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,2BAA2B,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEtF,OAAO,EAAE,SAAS,EAAU,SAAS,EAAE,YAAY,EAAiB,iBAAiB,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACpH,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAOzD;IAiBE,6BAAoB,KAAwB,EAAU,aAA2B,EAAU,KAAgB;QAA3G,iBAIC;QAJmB,UAAK,GAAL,KAAK,CAAmB;QAAU,kBAAa,GAAb,aAAa,CAAc;QAAU,UAAK,GAAL,KAAK,CAAW;QAZ3G,aAAQ,GAAQ,EAAE,CAAC;QACnB,eAAU,GAAW,EAAE,CAAC;QACxB,oBAAe,GAAW,CAAC,CAAC;QAW1B,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,SAAS,CAAE,UAAA,KAAK;YACrC,KAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QAC3B,CAAC,CAAC,CAAC;IACP,CAAC;IARsB,qCAAO,GAAP;QACrB,IAAI,CAAC,kBAAkB,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;IACvD,CAAC;IAQO,2CAAa,GAArB;QACE,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC3C,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC;QAC9C,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC;IAChD,CAAC;IAED,sCAAQ,GAAR;QACE,IAAI,CAAC,aAAa,EAAE,CAAC;IACvB,CAAC;IAED,6CAAe,GA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ui/footer/footer.component.js
vendored
Normal file
27
dist/out-tsc/src/app/ui/footer/footer.component.js
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Component } from '@angular/core';
|
||||
var FooterComponent = /** @class */ (function () {
|
||||
function FooterComponent() {
|
||||
}
|
||||
FooterComponent.prototype.ngOnInit = function () {
|
||||
};
|
||||
FooterComponent = __decorate([
|
||||
Component({
|
||||
selector: 'app-footer',
|
||||
templateUrl: './footer.component.html',
|
||||
styleUrls: ['./footer.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [])
|
||||
], FooterComponent);
|
||||
return FooterComponent;
|
||||
}());
|
||||
export { FooterComponent };
|
||||
//# sourceMappingURL=footer.component.js.map
|
||||
1
dist/out-tsc/src/app/ui/footer/footer.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/ui/footer/footer.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"footer.component.js","sourceRoot":"","sources":["../../../../../../src/app/ui/footer/footer.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAU,MAAM,eAAe,CAAC;AAOlD;IAEE;IAAgB,CAAC;IAEjB,kCAAQ,GAAR;IACA,CAAC;IALU,eAAe;QAL3B,SAAS,CAAC;YACT,QAAQ,EAAE,YAAY;YACtB,WAAW,EAAE,yBAAyB;YACtC,SAAS,EAAE,CAAC,yBAAyB,CAAC;SACvC,CAAC;;OACW,eAAe,CAO3B;IAAD,sBAAC;CAAA,AAPD,IAOC;SAPY,eAAe"}
|
||||
21
dist/out-tsc/src/app/ui/footer/footer.component.spec.js
vendored
Normal file
21
dist/out-tsc/src/app/ui/footer/footer.component.spec.js
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import { async, TestBed } from '@angular/core/testing';
|
||||
import { FooterComponent } from './footer.component';
|
||||
describe('FooterComponent', function () {
|
||||
var component;
|
||||
var fixture;
|
||||
beforeEach(async(function () {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [FooterComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
beforeEach(function () {
|
||||
fixture = TestBed.createComponent(FooterComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
it('should create', function () {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
//# sourceMappingURL=footer.component.spec.js.map
|
||||
1
dist/out-tsc/src/app/ui/footer/footer.component.spec.js.map
vendored
Normal file
1
dist/out-tsc/src/app/ui/footer/footer.component.spec.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"footer.component.spec.js","sourceRoot":"","sources":["../../../../../../src/app/ui/footer/footer.component.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAoB,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,QAAQ,CAAC,iBAAiB,EAAE;IAC1B,IAAI,SAA0B,CAAC;IAC/B,IAAI,OAA0C,CAAC;IAE/C,UAAU,CAAC,KAAK,CAAC;QACf,OAAO,CAAC,sBAAsB,CAAC;YAC7B,YAAY,EAAE,CAAE,eAAe,CAAE;SAClC,CAAC;aACD,iBAAiB,EAAE,CAAC;IACvB,CAAC,CAAC,CAAC,CAAC;IAEJ,UAAU,CAAC;QACT,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC;QACnD,SAAS,GAAG,OAAO,CAAC,iBAAiB,CAAC;QACtC,OAAO,CAAC,aAAa,EAAE,CAAC;IAC1B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,eAAe,EAAE;QAClB,MAAM,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
||||
43
dist/out-tsc/src/app/ui/header/header.component.js
vendored
Normal file
43
dist/out-tsc/src/app/ui/header/header.component.js
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Component } from '@angular/core';
|
||||
import { AuthGuard } from '../../services/auth.guard';
|
||||
var HeaderComponent = /** @class */ (function () {
|
||||
function HeaderComponent(_auth) {
|
||||
var _this = this;
|
||||
this._auth = _auth;
|
||||
this.subs = this._auth.getUserInfo().subscribe(function (value) {
|
||||
_this.user = value;
|
||||
console.log("USER", _this.user);
|
||||
});
|
||||
}
|
||||
HeaderComponent.prototype.ngOnInit = function () {
|
||||
};
|
||||
HeaderComponent.prototype.logout = function ($event) {
|
||||
$event.preventDefault();
|
||||
$event.stopPropagation();
|
||||
window.location.href = "/logout";
|
||||
this._auth.clearUser();
|
||||
};
|
||||
HeaderComponent.prototype.ngOnDestroy = function () {
|
||||
this.subs.unsubscribe();
|
||||
};
|
||||
HeaderComponent = __decorate([
|
||||
Component({
|
||||
selector: 'app-header',
|
||||
templateUrl: './header.component.html',
|
||||
styleUrls: ['./header.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [AuthGuard])
|
||||
], HeaderComponent);
|
||||
return HeaderComponent;
|
||||
}());
|
||||
export { HeaderComponent };
|
||||
//# sourceMappingURL=header.component.js.map
|
||||
1
dist/out-tsc/src/app/ui/header/header.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/ui/header/header.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"header.component.js","sourceRoot":"","sources":["../../../../../../src/app/ui/header/header.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAU,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAQtD;IAKE,yBAAqB,KAAgB;QAArC,iBAKC;QALoB,UAAK,GAAL,KAAK,CAAW;QACnC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,SAAS,CAAE,UAAA,KAAK;YACnD,KAAI,CAAC,IAAI,GAAG,KAAK,CAAC;YAClB,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,KAAI,CAAC,IAAI,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;IACL,CAAC;IAED,kCAAQ,GAAR;IAEA,CAAC;IAED,gCAAM,GAAN,UAAO,MAAM;QACX,MAAM,CAAC,cAAc,EAAE,CAAC;QACxB,MAAM,CAAC,eAAe,EAAE,CAAC;QACzB,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,SAAS,CAAC;QACjC,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;IACzB,CAAC;IAED,qCAAW,GAAX;QACE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;IAC1B,CAAC;IAzBU,eAAe;QAL3B,SAAS,CAAC;YACT,QAAQ,EAAE,YAAY;YACtB,WAAW,EAAE,yBAAyB;YACtC,SAAS,EAAE,CAAC,yBAAyB,CAAC;SACvC,CAAC;yCAM4B,SAAS;OAL1B,eAAe,CA2B3B;IAAD,sBAAC;CAAA,AA3BD,IA2BC;SA3BY,eAAe"}
|
||||
21
dist/out-tsc/src/app/ui/header/header.component.spec.js
vendored
Normal file
21
dist/out-tsc/src/app/ui/header/header.component.spec.js
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import { async, TestBed } from '@angular/core/testing';
|
||||
import { HeaderComponent } from './header.component';
|
||||
describe('HeaderComponent', function () {
|
||||
var component;
|
||||
var fixture;
|
||||
beforeEach(async(function () {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [HeaderComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
beforeEach(function () {
|
||||
fixture = TestBed.createComponent(HeaderComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
it('should create', function () {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
//# sourceMappingURL=header.component.spec.js.map
|
||||
1
dist/out-tsc/src/app/ui/header/header.component.spec.js.map
vendored
Normal file
1
dist/out-tsc/src/app/ui/header/header.component.spec.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"header.component.spec.js","sourceRoot":"","sources":["../../../../../../src/app/ui/header/header.component.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAoB,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,QAAQ,CAAC,iBAAiB,EAAE;IAC1B,IAAI,SAA0B,CAAC;IAC/B,IAAI,OAA0C,CAAC;IAE/C,UAAU,CAAC,KAAK,CAAC;QACf,OAAO,CAAC,sBAAsB,CAAC;YAC7B,YAAY,EAAE,CAAE,eAAe,CAAE;SAClC,CAAC;aACD,iBAAiB,EAAE,CAAC;IACvB,CAAC,CAAC,CAAC,CAAC;IAEJ,UAAU,CAAC;QACT,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC;QACnD,SAAS,GAAG,OAAO,CAAC,iBAAiB,CAAC;QACtC,OAAO,CAAC,aAAa,EAAE,CAAC;IAC1B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,eAAe,EAAE;QAClB,MAAM,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
||||
27
dist/out-tsc/src/app/ui/layout/layout.component.js
vendored
Normal file
27
dist/out-tsc/src/app/ui/layout/layout.component.js
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Component } from '@angular/core';
|
||||
var LayoutComponent = /** @class */ (function () {
|
||||
function LayoutComponent() {
|
||||
}
|
||||
LayoutComponent.prototype.ngOnInit = function () {
|
||||
};
|
||||
LayoutComponent = __decorate([
|
||||
Component({
|
||||
selector: 'app-layout',
|
||||
templateUrl: './layout.component.html',
|
||||
styleUrls: ['./layout.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [])
|
||||
], LayoutComponent);
|
||||
return LayoutComponent;
|
||||
}());
|
||||
export { LayoutComponent };
|
||||
//# sourceMappingURL=layout.component.js.map
|
||||
1
dist/out-tsc/src/app/ui/layout/layout.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/ui/layout/layout.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"layout.component.js","sourceRoot":"","sources":["../../../../../../src/app/ui/layout/layout.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAU,MAAM,eAAe,CAAC;AAOlD;IAEE;IAAgB,CAAC;IAEjB,kCAAQ,GAAR;IACA,CAAC;IALU,eAAe;QAL3B,SAAS,CAAC;YACT,QAAQ,EAAE,YAAY;YACtB,WAAW,EAAE,yBAAyB;YACtC,SAAS,EAAE,CAAC,yBAAyB,CAAC;SACvC,CAAC;;OACW,eAAe,CAO3B;IAAD,sBAAC;CAAA,AAPD,IAOC;SAPY,eAAe"}
|
||||
21
dist/out-tsc/src/app/ui/layout/layout.component.spec.js
vendored
Normal file
21
dist/out-tsc/src/app/ui/layout/layout.component.spec.js
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import { async, TestBed } from '@angular/core/testing';
|
||||
import { LayoutComponent } from './layout.component';
|
||||
describe('LayoutComponent', function () {
|
||||
var component;
|
||||
var fixture;
|
||||
beforeEach(async(function () {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [LayoutComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
beforeEach(function () {
|
||||
fixture = TestBed.createComponent(LayoutComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
it('should create', function () {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
//# sourceMappingURL=layout.component.spec.js.map
|
||||
1
dist/out-tsc/src/app/ui/layout/layout.component.spec.js.map
vendored
Normal file
1
dist/out-tsc/src/app/ui/layout/layout.component.spec.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"layout.component.spec.js","sourceRoot":"","sources":["../../../../../../src/app/ui/layout/layout.component.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAoB,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,QAAQ,CAAC,iBAAiB,EAAE;IAC1B,IAAI,SAA0B,CAAC;IAC/B,IAAI,OAA0C,CAAC;IAE/C,UAAU,CAAC,KAAK,CAAC;QACf,OAAO,CAAC,sBAAsB,CAAC;YAC7B,YAAY,EAAE,CAAE,eAAe,CAAE;SAClC,CAAC;aACD,iBAAiB,EAAE,CAAC;IACvB,CAAC,CAAC,CAAC,CAAC;IAEJ,UAAU,CAAC;QACT,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC;QACnD,SAAS,GAAG,OAAO,CAAC,iBAAiB,CAAC;QACtC,OAAO,CAAC,aAAa,EAAE,CAAC;IAC1B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,eAAe,EAAE;QAClB,MAAM,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
||||
32
dist/out-tsc/src/app/ui/ui.module.js
vendored
Normal file
32
dist/out-tsc/src/app/ui/ui.module.js
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { LayoutComponent } from './layout/layout.component';
|
||||
import { HeaderComponent } from './header/header.component';
|
||||
import { FooterComponent } from './footer/footer.component';
|
||||
import { AppRoutingModule } from '../app-routing.module';
|
||||
var UiModule = /** @class */ (function () {
|
||||
function UiModule() {
|
||||
}
|
||||
UiModule = __decorate([
|
||||
NgModule({
|
||||
declarations: [LayoutComponent, HeaderComponent, FooterComponent],
|
||||
imports: [
|
||||
CommonModule,
|
||||
AppRoutingModule
|
||||
],
|
||||
exports: [LayoutComponent],
|
||||
schemas: [
|
||||
CUSTOM_ELEMENTS_SCHEMA
|
||||
]
|
||||
})
|
||||
], UiModule);
|
||||
return UiModule;
|
||||
}());
|
||||
export { UiModule };
|
||||
//# sourceMappingURL=ui.module.js.map
|
||||
1
dist/out-tsc/src/app/ui/ui.module.js.map
vendored
Normal file
1
dist/out-tsc/src/app/ui/ui.module.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ui.module.js","sourceRoot":"","sources":["../../../../../src/app/ui/ui.module.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAazD;IAAA;IAAwB,CAAC;IAAZ,QAAQ;QAXpB,QAAQ,CAAC;YACR,YAAY,EAAE,CAAC,eAAe,EAAE,eAAe,EAAE,eAAe,CAAC;YACjE,OAAO,EAAE;gBACP,YAAY;gBACZ,gBAAgB;aACjB;YACD,OAAO,EAAE,CAAC,eAAe,CAAC;YAC1B,OAAO,EAAE;gBACP,sBAAsB;aACvB;SACF,CAAC;OACW,QAAQ,CAAI;IAAD,eAAC;CAAA,AAAzB,IAAyB;SAAZ,QAAQ"}
|
||||
5
dist/out-tsc/src/environments/environment.js
vendored
Normal file
5
dist/out-tsc/src/environments/environment.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
export var environment = {
|
||||
production: false,
|
||||
apiVersionPath: '/api/v1'
|
||||
};
|
||||
//# sourceMappingURL=environment.js.map
|
||||
1
dist/out-tsc/src/environments/environment.js.map
vendored
Normal file
1
dist/out-tsc/src/environments/environment.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"environment.js","sourceRoot":"","sources":["../../../../src/environments/environment.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,WAAW,GAAG;IACzB,UAAU,EAAE,KAAK;IACjB,cAAc,EAAE,SAAS;CAC1B,CAAC"}
|
||||
5
dist/out-tsc/src/environments/environment.prod.js
vendored
Normal file
5
dist/out-tsc/src/environments/environment.prod.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
export var environment = {
|
||||
production: true,
|
||||
apiVersionPath: '/api/v1'
|
||||
};
|
||||
//# sourceMappingURL=environment.prod.js.map
|
||||
1
dist/out-tsc/src/environments/environment.prod.js.map
vendored
Normal file
1
dist/out-tsc/src/environments/environment.prod.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"environment.prod.js","sourceRoot":"","sources":["../../../../src/environments/environment.prod.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,WAAW,GAAG;IACzB,UAAU,EAAE,IAAI;IAChB,cAAc,EAAE,SAAS;CAC1B,CAAC"}
|
||||
10
dist/out-tsc/src/main.js
vendored
Normal file
10
dist/out-tsc/src/main.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import { enableProdMode } from '@angular/core';
|
||||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
||||
import { AppModule } from './app/app.module';
|
||||
import { environment } from './environments/environment';
|
||||
if (environment.production) {
|
||||
enableProdMode();
|
||||
}
|
||||
platformBrowserDynamic().bootstrapModule(AppModule)
|
||||
.catch(function (err) { return console.error(err); });
|
||||
//# sourceMappingURL=main.js.map
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user