Compare commits
91 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
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
@@ -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
@@ -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
|
||||
11
README.md
@@ -2,6 +2,15 @@
|
||||
|
||||
## 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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
14
angular.json
@@ -10,7 +10,7 @@
|
||||
"prefix": "app",
|
||||
"schematics": {
|
||||
"@schematics/angular:component": {
|
||||
"styleext": "scss"
|
||||
"style": "scss"
|
||||
}
|
||||
},
|
||||
"architect": {
|
||||
@@ -27,9 +27,19 @@
|
||||
"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",
|
||||
"src/styles.scss"
|
||||
],
|
||||
"scripts": []
|
||||
"scripts": [
|
||||
"node_modules/chart.js/dist/Chart.js",
|
||||
"node_modules/hammerjs/hammer.min.js"
|
||||
]
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
|
||||
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
@@ -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
@@ -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
@@ -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"}
|
||||
129
dist/out-tsc/src/app/admin/admin.component.js
vendored
Normal file
@@ -0,0 +1,129 @@
|
||||
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 { timer } from 'rxjs';
|
||||
import { switchMap } from 'rxjs/operators';
|
||||
import { AuthGuard } from '../services/auth.guard';
|
||||
var AdminComponent = /** @class */ (function () {
|
||||
function AdminComponent(_usersService, _provisionsService, _auth) {
|
||||
var _this = this;
|
||||
this._usersService = _usersService;
|
||||
this._provisionsService = _provisionsService;
|
||||
this._auth = _auth;
|
||||
this.logShow = false;
|
||||
this.logstype = 'provision';
|
||||
this.selectedprov = null;
|
||||
this._auth.getUserInfo().subscribe(function (value) {
|
||||
_this.currentUser = value;
|
||||
});
|
||||
}
|
||||
AdminComponent.prototype._fillUser = function (pair) {
|
||||
var _this = this;
|
||||
pair['0'].forEach(function (prov) {
|
||||
var foundDes = _this.users.filter(function (u) {
|
||||
return u._id.toString() === prov.userId.toString();
|
||||
});
|
||||
if (foundDes.length) {
|
||||
prov.user = foundDes[0].displayName;
|
||||
}
|
||||
});
|
||||
};
|
||||
AdminComponent.prototype._getUsers = function () {
|
||||
};
|
||||
AdminComponent.prototype.ngOnInit = function () {
|
||||
var _this = this;
|
||||
this._usersService.getUsers().subscribe(function (res) {
|
||||
_this.users = res;
|
||||
_this.subscription = timer(0, 5000).pipe(switchMap(function () { return _this._provisionsService.getCombinedProvisionsAdmin(); })).subscribe(function (pair) {
|
||||
_this._provisionsService.composePair(pair);
|
||||
_this._fillUser(pair);
|
||||
_this.destroys = pair[1];
|
||||
_this.provisions = pair[0];
|
||||
});
|
||||
});
|
||||
};
|
||||
AdminComponent.prototype._refresh = function () {
|
||||
var _this = this;
|
||||
this.instantSubs = this._provisionsService.getCombinedProvisionsAdmin().subscribe(function (pair) {
|
||||
_this._provisionsService.composePair(pair);
|
||||
_this._fillUser(pair);
|
||||
_this.destroys = pair[1];
|
||||
_this.provisions = pair[0];
|
||||
_this.instantSubs.unsubscribe();
|
||||
});
|
||||
};
|
||||
AdminComponent.prototype.ngOnDestroy = function () {
|
||||
this.subscription.unsubscribe();
|
||||
if (this.instantSubs) {
|
||||
this.instantSubs.unsubscribe();
|
||||
}
|
||||
};
|
||||
AdminComponent.prototype.del = function (provision) {
|
||||
var _this = this;
|
||||
this._provisionsService.delProvision(provision._id.toString(), provision.userId).subscribe(function (res) {
|
||||
console.log("Done!", res);
|
||||
_this._refresh();
|
||||
});
|
||||
};
|
||||
AdminComponent.prototype.destroy = function (provision) {
|
||||
var _this = this;
|
||||
this._provisionsService.newDestroy({ "id": provision._id.toString() }, provision.userId).subscribe(function (res) {
|
||||
console.log("Done!", res);
|
||||
_this._refresh();
|
||||
});
|
||||
};
|
||||
AdminComponent.prototype.showLogs = function ($event, provision, type) {
|
||||
$event.preventDefault();
|
||||
$event.stopPropagation();
|
||||
this.logstype = type;
|
||||
this.logShow = false;
|
||||
this.selectedprov = provision;
|
||||
this.logShow = true;
|
||||
};
|
||||
AdminComponent.prototype.onLogsClose = function ($event) {
|
||||
this.selectedprov = null;
|
||||
this.logShow = false;
|
||||
};
|
||||
AdminComponent.prototype.onStartProvision = function ($event) {
|
||||
console.log("onStartProvision");
|
||||
this._refresh();
|
||||
};
|
||||
AdminComponent.prototype.setAdmin = function (user) {
|
||||
var _this = this;
|
||||
this._usersService.updateUser(user._id, { "role": "admin" }).subscribe(function (res1) {
|
||||
console.log("Updated", res1);
|
||||
_this._usersService.getUsers().subscribe(function (res) {
|
||||
_this.users = res;
|
||||
});
|
||||
});
|
||||
};
|
||||
AdminComponent.prototype.removeAdmin = function (user) {
|
||||
var _this = this;
|
||||
this._usersService.updateUser(user._id, { "role": null }).subscribe(function (res1) {
|
||||
console.log("Updated", res1);
|
||||
_this._usersService.getUsers().subscribe(function (res) {
|
||||
_this.users = res;
|
||||
});
|
||||
});
|
||||
};
|
||||
AdminComponent = __decorate([
|
||||
Component({
|
||||
selector: 'app-admin',
|
||||
templateUrl: './admin.component.html',
|
||||
styleUrls: ['./admin.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [UsersService, ProvisionsService, AuthGuard])
|
||||
], AdminComponent);
|
||||
return AdminComponent;
|
||||
}());
|
||||
export { AdminComponent };
|
||||
//# sourceMappingURL=admin.component.js.map
|
||||
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,MAA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,CAAC,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAC,CAAC,CAAC,SAAS,CAAE,UAAA,IAAI;YACxE,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;YAC7B,KAAI,CAAC,aAAa,CAAC,QAAQ,EAAE,CAAC,SAAS,CAAE,UAAA,GAAG;gBAC1C,KAAI,CAAC,KAAK,GAAG,GAAG,CAAC;YACnB,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAA;IACJ,CAAC;IAED,oCAAW,GAAX,UAAY,IAAI;QAAhB,iBAOC;QANC,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,EAAC,MAAM,EAAE,IAAI,EAAC,CAAC,CAAC,SAAS,CAAE,UAAA,IAAI;YACrE,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;YAC7B,KAAI,CAAC,aAAa,CAAC,QAAQ,EAAE,CAAC,SAAS,CAAE,UAAA,GAAG;gBAC1C,KAAI,CAAC,KAAK,GAAG,GAAG,CAAC;YACnB,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAA;IACJ,CAAC;IAjHU,cAAc;QAL1B,SAAS,CAAC;YACT,QAAQ,EAAE,WAAW;YACrB,WAAW,EAAE,wBAAwB;YACrC,SAAS,EAAE,CAAC,wBAAwB,CAAC;SACtC,CAAC;yCAaoC,YAAY,EAA8B,iBAAiB,EAAiB,SAAS;OAZ9G,cAAc,CAkH1B;IAAD,qBAAC;CAAA,AAlHD,IAkHC;SAlHY,cAAc"}
|
||||
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
@@ -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"}
|
||||
35
dist/out-tsc/src/app/app-routing.module.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;
|
||||
};
|
||||
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';
|
||||
var routes = [
|
||||
{ path: 'home', component: HomeComponent },
|
||||
{ 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
@@ -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;AAElD,IAAM,MAAM,GAAW;IACrB,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAC;IACzC,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
@@ -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
@@ -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
@@ -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
@@ -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"}
|
||||
50
dist/out-tsc/src/app/app.module.js
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
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 { HttpClientModule } 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';
|
||||
var AppModule = /** @class */ (function () {
|
||||
function AppModule() {
|
||||
}
|
||||
AppModule = __decorate([
|
||||
NgModule({
|
||||
declarations: [
|
||||
AppComponent,
|
||||
HomeComponent,
|
||||
ProvisionsComponent,
|
||||
LogsComponent,
|
||||
ScenariosComponent,
|
||||
AdminComponent,
|
||||
PopoverconfirmComponent
|
||||
],
|
||||
imports: [
|
||||
BrowserModule,
|
||||
AppRoutingModule,
|
||||
UiModule,
|
||||
HttpClientModule
|
||||
],
|
||||
providers: [ProvisionsService, ScenariosService, UsersService, 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
@@ -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,EAAE,MAAM,eAAe,CAAC;AAEzC,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,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AAqBpF;IAAA;IAAyB,CAAC;IAAb,SAAS;QAnBrB,QAAQ,CAAC;YACR,YAAY,EAAE;gBACZ,YAAY;gBACZ,aAAa;gBACb,mBAAmB;gBACnB,aAAa;gBACb,kBAAkB;gBAClB,cAAc;gBACd,uBAAuB;aACxB;YACD,OAAO,EAAE;gBACP,aAAa;gBACb,gBAAgB;gBAChB,QAAQ;gBACR,gBAAgB;aACjB;YACD,SAAS,EAAE,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,YAAY,EAAE,SAAS,CAAC;YACzE,SAAS,EAAE,CAAC,YAAY,CAAC;SAC1B,CAAC;OACW,SAAS,CAAI;IAAD,gBAAC;CAAA,AAA1B,IAA0B;SAAb,SAAS"}
|
||||
38
dist/out-tsc/src/app/home/home.component.js
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
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 = __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
@@ -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;IAlBU,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,CAoBzB;IAAD,oBAAC;CAAA,AApBD,IAoBC;SApBY,aAAa"}
|
||||
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
@@ -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"}
|
||||
85
dist/out-tsc/src/app/logs/logs.component.js
vendored
Normal file
@@ -0,0 +1,85 @@
|
||||
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) {
|
||||
console.log('outside clicked');
|
||||
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.destroyId); })).subscribe(function (content) {
|
||||
_this.content = content;
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
LogsComponent.prototype.ngOnInit = function () {
|
||||
this.refresh();
|
||||
};
|
||||
LogsComponent.prototype.ngOnDestroy = function () {
|
||||
this.sub.unsubscribe();
|
||||
};
|
||||
LogsComponent.prototype.close = function () {
|
||||
this.sub.unsubscribe();
|
||||
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, "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
@@ -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,EAAE,MAAM,eAAe,CAAC;AACxG,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,uBAAkB,GAAlB,kBAAkB,CAAmB;QAHzD,YAAO,GAAW,IAAI,CAAC;QAOb,YAAO,GAAG,IAAI,YAAY,EAAE,CAAC;IAJsB,CAAC;IAXvD,+BAAO,GAAd,UAAe,aAAa;QAC1B,IAAM,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;QAC/E,IAAI,CAAC,aAAa,EAAE;YAClB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;YAC/B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAC1B;IACH,CAAC;IAWD,+BAAO,GAAP;QAAA,iBAYC;QAXC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAC;YAChB,IAAK,IAAI,CAAC,IAAI,KAAK,WAAW,EAAG;gBAC/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QAAQ,EAAE,UAAU;YACpB,WAAW,EAAE,uBAAuB;YACpC,SAAS,EAAE,CAAC,uBAAuB,CAAC;SACrC,CAAC;yCAiBwC,iBAAiB;OAhB9C,aAAa,CAgDzB;IAAD,oBAAC;CAAA,AAhDD,IAgDC;SAhDY,aAAa"}
|
||||
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
@@ -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"}
|
||||
73
dist/out-tsc/src/app/popoverconfirm/popoverconfirm.component.js
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
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 } from '@angular/core';
|
||||
import * as leonardoui from 'leonardo-ui';
|
||||
var PopoverconfirmComponent = /** @class */ (function () {
|
||||
function PopoverconfirmComponent(myElement) {
|
||||
this.element = myElement;
|
||||
}
|
||||
PopoverconfirmComponent.prototype.open = function () {
|
||||
console.log("myElement", this.element);
|
||||
console.log("open popover", leonardoui);
|
||||
/*this.popover = leonardoui.popover( {
|
||||
content: this.element[0],
|
||||
closeOnEscape: true,
|
||||
dock: "bottom",
|
||||
alignTo: this.element
|
||||
} );
|
||||
console.log("this.popover", this.popover);
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
ok(): void {
|
||||
this.popover.close();
|
||||
}
|
||||
|
||||
cancel(): void {
|
||||
this.popover.close();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
PopoverconfirmComponent = __decorate([
|
||||
Component({
|
||||
selector: 'app-popoverconfirm',
|
||||
templateUrl: './popoverconfirm.component.html',
|
||||
styleUrls: ['./popoverconfirm.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [ElementRef])
|
||||
], PopoverconfirmComponent);
|
||||
return PopoverconfirmComponent;
|
||||
}());
|
||||
export { PopoverconfirmComponent };
|
||||
/*this.popover = leonardoui.popover( {
|
||||
content: this.element[0],
|
||||
closeOnEscape: true,
|
||||
dock: "bottom",
|
||||
alignTo: this.element
|
||||
} );
|
||||
console.log("this.popover", this.popover);
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
ok(): void {
|
||||
this.popover.close();
|
||||
}
|
||||
|
||||
cancel(): void {
|
||||
this.popover.close();
|
||||
}
|
||||
}
|
||||
|
||||
//# sourceMappingURL=popoverconfirm.component.js.map
|
||||
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,MAAM,eAAe,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,aAAa,CAAC;AAO1C;IAKE,iCAAa,SAAqB;QAChC,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC;IAC3B,CAAC;IAED,sCAAI,GAAJ;QACE,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACvC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;QACxC;;;;;;;;;;;;;;;;;;;;QAoBJ;IAAA,CAAC,AArB2C;IAX/B,uBAAuB;QALnC,SAAS,CAAC;YACT,QAAQ,EAAE,oBAAoB;YAC9B,WAAW,EAAE,iCAAiC;YAC9C,SAAS,EAAE,CAAC,iCAAiC,CAAC;SAC/C,CAAC;yCAMwB,UAAU;OALvB,uBAAuB,CAWQ;IAqB5C,8BAAC;CArB2C,AAX5C,IAW4C;SAX/B,uBAAuB;AAYhC;;;;;;;;;;;;;;;;;;;;AAoBJ"}
|
||||
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
@@ -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"}
|
||||
92
dist/out-tsc/src/app/provisions/provisions.component.js
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
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';
|
||||
var ProvisionsComponent = /** @class */ (function () {
|
||||
function ProvisionsComponent(_provisionsService, _auth) {
|
||||
var _this = this;
|
||||
this._provisionsService = _provisionsService;
|
||||
this._auth = _auth;
|
||||
this.logShow = false;
|
||||
this.logstype = 'provision';
|
||||
this.selectedprov = null;
|
||||
this._auth.getUserInfo().subscribe(function (value) {
|
||||
_this._userId = value._id;
|
||||
});
|
||||
}
|
||||
ProvisionsComponent.prototype._refresh = function () {
|
||||
var _this = this;
|
||||
this.instantSubs = this._provisionsService.getCombinedProvisions(this._userId).subscribe(function (pair) {
|
||||
_this._provisionsService.composePair(pair);
|
||||
_this.destroys = pair[1];
|
||||
_this.provisions = pair[0];
|
||||
_this.instantSubs.unsubscribe();
|
||||
});
|
||||
};
|
||||
ProvisionsComponent.prototype.ngOnInit = function () {
|
||||
var _this = this;
|
||||
this.subscription = timer(0, 5000).pipe(switchMap(function () { return _this._provisionsService.getCombinedProvisions(_this._userId); })).subscribe(function (pair) {
|
||||
_this._provisionsService.composePair(pair);
|
||||
_this.destroys = pair[1];
|
||||
_this.provisions = pair[0];
|
||||
});
|
||||
};
|
||||
ProvisionsComponent.prototype.ngOnDestroy = function () {
|
||||
this.subscription.unsubscribe();
|
||||
if (this.instantSubs) {
|
||||
this.instantSubs.unsubscribe();
|
||||
}
|
||||
};
|
||||
ProvisionsComponent.prototype.del = function (provision) {
|
||||
var _this = this;
|
||||
this._provisionsService.delProvision(provision._id.toString(), this._userId).subscribe(function (res) {
|
||||
console.log("Done!", res);
|
||||
_this._refresh();
|
||||
});
|
||||
};
|
||||
ProvisionsComponent.prototype.destroy = function (provision) {
|
||||
var _this = this;
|
||||
this._provisionsService.newDestroy({ "id": provision._id.toString() }, this._userId).subscribe(function (res) {
|
||||
console.log("Done!", res);
|
||||
_this._refresh();
|
||||
});
|
||||
};
|
||||
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.onLogsClose = function ($event) {
|
||||
this.selectedprov = null;
|
||||
this.logShow = false;
|
||||
};
|
||||
ProvisionsComponent.prototype.onStartProvision = function ($event) {
|
||||
console.log("onStartProvision");
|
||||
this._refresh();
|
||||
};
|
||||
ProvisionsComponent = __decorate([
|
||||
Component({
|
||||
selector: 'app-provisions',
|
||||
templateUrl: './provisions.component.html',
|
||||
styleUrls: ['./provisions.component.scss'],
|
||||
providers: [ProvisionsService]
|
||||
}),
|
||||
__metadata("design:paramtypes", [ProvisionsService, 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
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"provisions.component.js","sourceRoot":"","sources":["../../../../../src/app/provisions/provisions.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAU,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAgB,KAAK,EAAC,MAAM,MAAM,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AASnD;IAWE,6BAAoB,kBAAqC,EAAU,KAAgB;QAAnF,iBAIC;QAJmB,uBAAkB,GAAlB,kBAAkB,CAAmB;QAAU,UAAK,GAAL,KAAK,CAAW;QAJnF,YAAO,GAAY,KAAK,CAAC;QACzB,aAAQ,GAAW,WAAW,CAAC;QAC/B,iBAAY,GAAW,IAAI,CAAC;QAG1B,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,SAAS,CAAE,UAAA,KAAK;YACvC,KAAI,CAAC,OAAO,GAAG,KAAK,CAAC,GAAG,CAAC;QAC3B,CAAC,CAAC,CAAC;IACL,CAAC;IAEO,sCAAQ,GAAhB;QAAA,iBAOC;QANC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,kBAAkB,CAAC,qBAAqB,CAAC,IAAI,CA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5ED,IA4EC;SA5EY,mBAAmB"}
|
||||
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
@@ -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"}
|
||||
53
dist/out-tsc/src/app/scenarios/scenarios.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, Output, EventEmitter } from '@angular/core';
|
||||
import { ProvisionsService } from '../services/provisions.service';
|
||||
import { ScenariosService } from '../services/scenarios.service';
|
||||
import { AuthGuard } from '../services/auth.guard';
|
||||
var ScenariosComponent = /** @class */ (function () {
|
||||
function ScenariosComponent(_provisionsService, _scenariosService, _auth) {
|
||||
var _this = this;
|
||||
this._provisionsService = _provisionsService;
|
||||
this._scenariosService = _scenariosService;
|
||||
this._auth = _auth;
|
||||
this.onStartProvision = new EventEmitter();
|
||||
this._auth.getUserInfo().subscribe(function (value) {
|
||||
_this._userId = value._id;
|
||||
});
|
||||
}
|
||||
ScenariosComponent.prototype.ngOnInit = function () {
|
||||
var _this = this;
|
||||
this._scenariosService.getScenarios().subscribe(function (res) {
|
||||
_this.scenarios = res;
|
||||
});
|
||||
};
|
||||
ScenariosComponent.prototype.provision = function (scenario) {
|
||||
var _this = this;
|
||||
this._provisionsService.newProvision({ "scenario": scenario.name }, this._userId).subscribe(function (res) {
|
||||
console.log("Done!", res);
|
||||
_this.onStartProvision.emit();
|
||||
});
|
||||
};
|
||||
__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", [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
@@ -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,EAAE,MAAM,eAAe,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAOnD;IAEE,4BAAoB,kBAAqC,EAAU,iBAAmC,EAAU,KAAgB;QAAhI,iBAIC;QAJmB,uBAAkB,GAAlB,kBAAkB,CAAmB;QAAU,sBAAiB,GAAjB,iBAAiB,CAAkB;QAAU,UAAK,GAAL,KAAK,CAAW;QAMtH,qBAAgB,GAAG,IAAI,YAAY,EAAE,CAAC;QAL9C,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,SAAS,CAAE,UAAA,KAAK;YACvC,KAAI,CAAC,OAAO,GAAG,KAAK,CAAC,GAAG,CAAC;QAC3B,CAAC,CAAC,CAAC;IACL,CAAC;IAOD,qCAAQ,GAAR;QAAA,iBAIC;QAHC,IAAI,CAAC,iBAAiB,CAAC,YAAY,EAAE,CAAC,SAAS,CAAE,UAAA,GAAG;YAClD,KAAI,CAAC,SAAS,GAAG,GAAG,CAAC;QACvB,CAAC,CAAC,CAAA;IACJ,CAAC;IAED,sCAAS,GAAT,UAAU,QAAQ;QAAlB,iBAKC;QAJC,IAAI,CAAC,kBAAkB,CAAC,YAAY,CAAC,EAAC,UAAU,EAAE,QAAQ,CAAC,IAAI,EAAC,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,SAAS,CAAE,UAAA,GAAG;YAC5F,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;YAC1B,KAAI,CAAC,gBAAgB,CAAC,IAAI,EAAE,CAAC;QAC/B,CAAC,CAAC,CAAA;IACJ,CAAC;IAhBS;QAAT,MAAM,EAAE;;gEAAuC;IARrC,kBAAkB;QAL9B,SAAS,CAAC;YACT,QAAQ,EAAE,eAAe;YACzB,WAAW,EAAE,4BAA4B;YACzC,SAAS,EAAE,CAAC,4BAA4B,CAAC;SAC1C,CAAC;yCAGwC,iBAAiB,EAA6B,gBAAgB,EAAiB,SAAS;OAFrH,kBAAkB,CA0B9B;IAAD,yBAAC;CAAA,AA1BD,IA0BC;SA1BY,kBAAkB"}
|
||||
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
@@ -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"}
|
||||
52
dist/out-tsc/src/app/services/auth.guard.js
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
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';
|
||||
var AuthGuard = /** @class */ (function () {
|
||||
// Inject Router so we can hand off the user to the Login Page
|
||||
function AuthGuard(httpClient, router) {
|
||||
var _this = this;
|
||||
this.httpClient = httpClient;
|
||||
this.router = router;
|
||||
this.userInfo = new BehaviorSubject(null);
|
||||
this.getMe().subscribe(function (value) {
|
||||
_this.userInfo.next(value);
|
||||
localStorage.setItem("user", JSON.stringify(value));
|
||||
});
|
||||
}
|
||||
AuthGuard.prototype.canActivate = function (route) {
|
||||
var _this = this;
|
||||
return this.getMe().pipe(map(function (res) {
|
||||
_this.userInfo.next(res);
|
||||
return true;
|
||||
}), catchError(function (err) {
|
||||
_this.userInfo.next(null);
|
||||
return of(false);
|
||||
}));
|
||||
};
|
||||
AuthGuard.prototype.getMe = function () {
|
||||
return this.httpClient.get('/api/users/me');
|
||||
};
|
||||
AuthGuard.prototype.getUserInfo = function () {
|
||||
return this.userInfo;
|
||||
};
|
||||
AuthGuard = __decorate([
|
||||
Injectable({
|
||||
providedIn: 'root'
|
||||
}),
|
||||
__metadata("design:paramtypes", [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
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"auth.guard.js","sourceRoot":"","sources":["../../../../../src/app/services/auth.guard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C,CAAC;IAED,+BAAW,GAAX;QACE,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAjCU,SAAS;QAHrB,UAAU,CAAC;YACV,UAAU,EAAE,MAAM;SACnB,CAAC;yCAMgC,UAAU,EAAkB,MAAM;OALvD,SAAS,CAkCrB;IAAD,gBAAC;CAAA,AAlCD,IAkCC;SAlCY,SAAS"}
|
||||
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
@@ -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"}
|
||||
72
dist/out-tsc/src/app/services/provisions.service.js
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
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 { forkJoin } from 'rxjs';
|
||||
var ProvisionsService = /** @class */ (function () {
|
||||
function ProvisionsService(httpClient) {
|
||||
this.httpClient = httpClient;
|
||||
}
|
||||
ProvisionsService.prototype.getProvisionsAdmin = function () {
|
||||
return this.httpClient.get("/api/provisions");
|
||||
};
|
||||
ProvisionsService.prototype.getDestroyProvisionsAdmin = function () {
|
||||
return this.httpClient.get("/api/destroyprovisions");
|
||||
};
|
||||
ProvisionsService.prototype.getProvisions = function (userId) {
|
||||
return this.httpClient.get("/api/users/" + userId + "/provisions");
|
||||
};
|
||||
ProvisionsService.prototype.newProvision = function (body, userId) {
|
||||
return this.httpClient.post("/api/users/" + userId + "/provisions", body);
|
||||
};
|
||||
ProvisionsService.prototype.delProvision = function (id, userId) {
|
||||
return this.httpClient.delete("/api/users/" + userId + "/provisions/" + id);
|
||||
};
|
||||
ProvisionsService.prototype.newDestroy = function (body, userId) {
|
||||
return this.httpClient.post("/api/users/" + userId + "/destroyprovisions", body);
|
||||
};
|
||||
ProvisionsService.prototype.getDestroyProvisions = function (userId) {
|
||||
return this.httpClient.get("/api/users/" + userId + "/destroyprovisions");
|
||||
};
|
||||
ProvisionsService.prototype.getCombinedProvisions = function (userId) {
|
||||
return forkJoin(this.getProvisions(userId), this.getDestroyProvisions(userId));
|
||||
};
|
||||
ProvisionsService.prototype.getCombinedProvisionsAdmin = function () {
|
||||
return forkJoin(this.getProvisionsAdmin(), this.getDestroyProvisionsAdmin());
|
||||
};
|
||||
ProvisionsService.prototype.getProvisionLogs = function (id) {
|
||||
return this.httpClient.get("/api/provisions/" + id + "/logs", { responseType: 'text' });
|
||||
};
|
||||
ProvisionsService.prototype.getDestroyLogs = function (id) {
|
||||
return this.httpClient.get("/api/destroyprovisions/" + id + "/logs", { responseType: 'text' });
|
||||
};
|
||||
ProvisionsService.prototype.composePair = function (pair) {
|
||||
pair['0'].forEach(function (prov) {
|
||||
var foundDes = pair['1'].filter(function (d) {
|
||||
return d.provId.toString() === prov._id.toString();
|
||||
});
|
||||
if (foundDes.length) {
|
||||
prov.destroyId = foundDes[0]._id.toString();
|
||||
prov.statusDestroy = foundDes[0].status;
|
||||
prov.dateDestroy = foundDes[0].created;
|
||||
}
|
||||
});
|
||||
return pair;
|
||||
};
|
||||
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
@@ -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,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAc,QAAQ,EAAE,MAAM,MAAM,CAAC;AAO5C;IAGE,2BAAqB,UAAsB;QAAtB,eAAU,GA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UAAiB,EAAE;QACjB,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,qBAAmB,EAAE,UAAO,EAAE,EAAC,YAAY,EAAE,MAAM,EAAC,CAAC,CAAC;IACnF,CAAC;IAED,0CAAc,GAAd,UAAe,EAAE;QACf,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,4BAA0B,EAAE,UAAO,EAAE,EAAC,YAAY,EAAE,MAAM,EAAC,CAAC,CAAC;IAC1F,CAAC;IAED,uCAAW,GAAX,UAAY,IAAI;QACd,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,UAAA,IAAI;YACpB,IAAI,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,UAAA,CAAC;gBAC/B,OAAO,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE,KAAK,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAA;YACpD,CAAC,CAAC,CAAC;YACH,IAAI,QAAQ,CAAC,MAAM,EAAC;gBAClB,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;gBAC5C,IAAI,CAAC,aAAa,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;gBACxC,IAAI,CAAC,WAAW,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;aACxC;QACH,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IA9DU,iBAAiB;QAH7B,UAAU,CAAC;YACV,UAAU,EAAE,MAAM;SACnB,CAAC;yCAIiC,UAAU;OAHhC,iBAAiB,CAgE7B;IAAD,wBAAC;CAAA,AAhED,IAgEC;SAhEY,iBAAiB"}
|
||||
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
@@ -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"}
|
||||
28
dist/out-tsc/src/app/services/scenarios.service.js
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
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';
|
||||
var ScenariosService = /** @class */ (function () {
|
||||
function ScenariosService(httpClient) {
|
||||
this.httpClient = httpClient;
|
||||
}
|
||||
ScenariosService.prototype.getScenarios = function () {
|
||||
return this.httpClient.get("/api/scenarios");
|
||||
};
|
||||
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
@@ -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;AAMlD;IAEE,0BAAqB,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAK,CAAC;IAEjD,uCAAY,GAAZ;QACE,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAC/C,CAAC;IANU,gBAAgB;QAH5B,UAAU,CAAC;YACV,UAAU,EAAE,MAAM;SACnB,CAAC;yCAGiC,UAAU;OAFhC,gBAAgB,CAO5B;IAAD,uBAAC;CAAA,AAPD,IAOC;SAPY,gBAAgB"}
|
||||
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
@@ -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"}
|
||||
31
dist/out-tsc/src/app/services/users.service.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 { Injectable } from '@angular/core';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
var UsersService = /** @class */ (function () {
|
||||
function UsersService(httpClient) {
|
||||
this.httpClient = httpClient;
|
||||
}
|
||||
UsersService.prototype.getUsers = function () {
|
||||
return this.httpClient.get("/api/users");
|
||||
};
|
||||
UsersService.prototype.updateUser = function (userId, patchData) {
|
||||
return this.httpClient.put("/api/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
@@ -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;AAMlD;IAEE,sBAAqB,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAK,CAAC;IAEjD,+BAAQ,GAAR;QACE,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IAC3C,CAAC;IAED,iCAAU,GAAV,UAAW,MAAM,EAAE,SAAS;QAC1B,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,gBAAc,MAAQ,EAAE,SAAS,CAAC,CAAC;IAChE,CAAC;IAVU,YAAY;QAHxB,UAAU,CAAC;YACV,UAAU,EAAE,MAAM;SACnB,CAAC;yCAGiC,UAAU;OAFhC,YAAY,CAWxB;IAAD,mBAAC;CAAA,AAXD,IAWC;SAXY,YAAY"}
|
||||
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
@@ -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"}
|
||||
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
@@ -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
@@ -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
@@ -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"}
|
||||
37
dist/out-tsc/src/app/ui/header/header.component.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;
|
||||
};
|
||||
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.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
@@ -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,qCAAW,GAAX;QACE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;IAC1B,CAAC;IAlBU,eAAe;QAL3B,SAAS,CAAC;YACT,QAAQ,EAAE,YAAY;YACtB,WAAW,EAAE,yBAAyB;YACtC,SAAS,EAAE,CAAC,yBAAyB,CAAC;SACvC,CAAC;yCAM4B,SAAS;OAL1B,eAAe,CAoB3B;IAAD,sBAAC;CAAA,AApBD,IAoBC;SApBY,eAAe"}
|
||||
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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"}
|
||||
12
dist/out-tsc/src/environments/environment.js
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
export var environment = {
|
||||
production: false,
|
||||
config: {
|
||||
tenant: 'c21eeb5f-f5a6-44e8-a997-124f2f7a497c',
|
||||
clientId: '40742f13-bde8-4b1b-ac07-54c11b36b779',
|
||||
postLogoutRedirectUri: 'http://localhost:4200',
|
||||
endpoints: {
|
||||
'http://localhost:4200/': 'the id'
|
||||
}
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=environment.js.map
|
||||
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,MAAM,EAAE;QACN,MAAM,EAAE,sCAAsC;QAC9C,QAAQ,EAAE,sCAAsC;QAChD,qBAAqB,EAAE,uBAAuB;QAC9C,SAAS,EAAE;YACT,wBAAwB,EAAE,QAAQ;SACnC;KACF;CACF,CAAC"}
|
||||
4
dist/out-tsc/src/environments/environment.prod.js
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export var environment = {
|
||||
production: true
|
||||
};
|
||||
//# sourceMappingURL=environment.prod.js.map
|
||||
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;CACjB,CAAC"}
|
||||
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
|
||||
1
dist/out-tsc/src/main.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD,IAAI,WAAW,CAAC,UAAU,EAAE;IAC1B,cAAc,EAAE,CAAC;CAClB;AAED,sBAAsB,EAAE,CAAC,eAAe,CAAC,SAAS,CAAC;KAChD,KAAK,CAAC,UAAA,GAAG,IAAI,OAAA,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,EAAlB,CAAkB,CAAC,CAAC"}
|
||||
69
dist/out-tsc/src/polyfills.js
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
/**
|
||||
* This file includes polyfills needed by Angular and is loaded before the app.
|
||||
* You can add your own extra polyfills to this file.
|
||||
*
|
||||
* This file is divided into 2 sections:
|
||||
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
|
||||
* 2. Application imports. Files imported after ZoneJS that should be loaded before your main
|
||||
* file.
|
||||
*
|
||||
* The current setup is for so-called "evergreen" browsers; the last versions of browsers that
|
||||
* automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
|
||||
* Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
|
||||
*
|
||||
* Learn more in https://angular.io/guide/browser-support
|
||||
*/
|
||||
/***************************************************************************************************
|
||||
* BROWSER POLYFILLS
|
||||
*/
|
||||
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
|
||||
// import 'core-js/es6/symbol';
|
||||
// import 'core-js/es6/object';
|
||||
// import 'core-js/es6/function';
|
||||
// import 'core-js/es6/parse-int';
|
||||
// import 'core-js/es6/parse-float';
|
||||
// import 'core-js/es6/number';
|
||||
// import 'core-js/es6/math';
|
||||
// import 'core-js/es6/string';
|
||||
// import 'core-js/es6/date';
|
||||
// import 'core-js/es6/array';
|
||||
// import 'core-js/es6/regexp';
|
||||
// import 'core-js/es6/map';
|
||||
// import 'core-js/es6/weak-map';
|
||||
// import 'core-js/es6/set';
|
||||
/**
|
||||
* If the application will be indexed by Google Search, the following is required.
|
||||
* Googlebot uses a renderer based on Chrome 41.
|
||||
* https://developers.google.com/search/docs/guides/rendering
|
||||
**/
|
||||
// import 'core-js/es6/array';
|
||||
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
|
||||
// import 'classlist.js'; // Run `npm install --save classlist.js`.
|
||||
/** IE10 and IE11 requires the following for the Reflect API. */
|
||||
// import 'core-js/es6/reflect';
|
||||
/**
|
||||
* Web Animations `@angular/platform-browser/animations`
|
||||
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
|
||||
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
|
||||
**/
|
||||
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
|
||||
/**
|
||||
* By default, zone.js will patch all possible macroTask and DomEvents
|
||||
* user can disable parts of macroTask/DomEvents patch by setting following flags
|
||||
*/
|
||||
// (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
|
||||
// (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
|
||||
// (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
|
||||
/*
|
||||
* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
|
||||
* with the following flag, it will bypass `zone.js` patch for IE/Edge
|
||||
*/
|
||||
// (window as any).__Zone_enable_cross_context_check = true;
|
||||
/***************************************************************************************************
|
||||
* Zone JS is required by default for Angular itself.
|
||||
*/
|
||||
import 'zone.js/dist/zone'; // Included with Angular CLI.
|
||||
/***************************************************************************************************
|
||||
* APPLICATION IMPORTS
|
||||
*/
|
||||
//# sourceMappingURL=polyfills.js.map
|
||||
1
dist/out-tsc/src/polyfills.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"polyfills.js","sourceRoot":"","sources":["../../../src/polyfills.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;GAEG;AAEH,mEAAmE;AACnE,+BAA+B;AAC/B,+BAA+B;AAC/B,iCAAiC;AACjC,kCAAkC;AAClC,oCAAoC;AACpC,+BAA+B;AAC/B,6BAA6B;AAC7B,+BAA+B;AAC/B,6BAA6B;AAC7B,8BAA8B;AAC9B,+BAA+B;AAC/B,4BAA4B;AAC5B,iCAAiC;AACjC,4BAA4B;AAE5B;;;;IAII;AACJ,8BAA8B;AAE9B,+EAA+E;AAC/E,oEAAoE;AAEpE,gEAAgE;AAChE,gCAAgC;AAEhC;;;;IAII;AACJ,8EAA8E;AAE9E;;;GAGG;AAEF,sGAAsG;AACtG,iGAAiG;AACjG,sHAAsH;AAEtH;;;EAGE;AACH,4DAA4D;AAE5D;;GAEG;AACH,OAAO,mBAAmB,CAAC,CAAE,6BAA6B;AAG1D;;GAEG"}
|
||||
11
dist/out-tsc/src/test.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
|
||||
import 'zone.js/dist/zone-testing';
|
||||
import { getTestBed } from '@angular/core/testing';
|
||||
import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing';
|
||||
// First, initialize the Angular testing environment.
|
||||
getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting());
|
||||
// Then we find all the tests.
|
||||
var context = require.context('./', true, /\.spec\.ts$/);
|
||||
// And load the modules.
|
||||
context.keys().map(context);
|
||||
//# sourceMappingURL=test.js.map
|
||||
1
dist/out-tsc/src/test.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../src/test.ts"],"names":[],"mappings":"AAAA,iGAAiG;AAEjG,OAAO,2BAA2B,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,EAC9B,MAAM,2CAA2C,CAAC;AAInD,qDAAqD;AACrD,UAAU,EAAE,CAAC,mBAAmB,CAC9B,2BAA2B,EAC3B,6BAA6B,EAAE,CAChC,CAAC;AACF,8BAA8B;AAC9B,IAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,aAAa,CAAC,CAAC;AAC3D,wBAAwB;AACxB,OAAO,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC"}
|
||||
BIN
dist/qmi-cloud/01.0a3750e6fdb29fcd632e.png
vendored
Normal file
|
After Width: | Height: | Size: 211 B |
BIN
dist/qmi-cloud/02.351bd6828f980ec53eb3.png
vendored
Normal file
|
After Width: | Height: | Size: 213 B |
BIN
dist/qmi-cloud/03.e438ea2aabdb1087dc4f.png
vendored
Normal file
|
After Width: | Height: | Size: 209 B |
BIN
dist/qmi-cloud/04.0284d042a6c29213aaa1.png
vendored
Normal file
|
After Width: | Height: | Size: 211 B |
BIN
dist/qmi-cloud/05.5014f9cce435c71ade63.png
vendored
Normal file
|
After Width: | Height: | Size: 213 B |
BIN
dist/qmi-cloud/06.21612b9d3e9d84e7e876.png
vendored
Normal file
|
After Width: | Height: | Size: 211 B |
BIN
dist/qmi-cloud/07.f8da0281186df8f17f73.png
vendored
Normal file
|
After Width: | Height: | Size: 215 B |
BIN
dist/qmi-cloud/08.975f7e0074400e7561ba.png
vendored
Normal file
|
After Width: | Height: | Size: 146 B |
BIN
dist/qmi-cloud/09.fd19309a1932b4751387.png
vendored
Normal file
|
After Width: | Height: | Size: 137 B |
BIN
dist/qmi-cloud/3rdpartylicenses.txt
vendored
Normal file
4
dist/qmi-cloud/arrow_left.270f72df47e036d9cfa1.svg
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<svg fill="#FFFFFF" height="36" viewBox="0 0 24 24" width="36" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"/>
|
||||
<path d="M0-.5h24v24H0z" fill="none"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 215 B |
4
dist/qmi-cloud/arrow_right.d9ccc77c8240ad0dc272.svg
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<svg fill="#FFFFFF" height="36" viewBox="0 0 24 24" width="36" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"/>
|
||||
<path d="M0-.25h24v24H0z" fill="none"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 214 B |
33
dist/qmi-cloud/assets/album.css
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
.jumbotron {
|
||||
padding-top: 3rem;
|
||||
padding-bottom: 3rem;
|
||||
margin-bottom: 0;
|
||||
background-color: #fff;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.jumbotron {
|
||||
padding-top: 6rem;
|
||||
padding-bottom: 6rem;
|
||||
}
|
||||
}
|
||||
|
||||
.jumbotron p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.jumbotron h1 {
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.jumbotron .container {
|
||||
max-width: 50rem;
|
||||
}
|
||||
|
||||
footer {
|
||||
padding-top: 3rem;
|
||||
padding-bottom: 3rem;
|
||||
}
|
||||
|
||||
footer p {
|
||||
margin-bottom: .25rem;
|
||||
}
|
||||
BIN
dist/qmi-cloud/assets/cloud.png
vendored
Normal file
|
After Width: | Height: | Size: 152 KiB |
BIN
dist/qmi-cloud/assets/favicon.ico
vendored
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
dist/qmi-cloud/fa-brands-400.067595ad77ecc0db9c81.woff2
vendored
Normal file
BIN
dist/qmi-cloud/fa-brands-400.57dcda6f368ea90179f7.eot
vendored
Normal file
3570
dist/qmi-cloud/fa-brands-400.9d67fa1429375bd2a899.svg
vendored
Normal file
|
After Width: | Height: | Size: 699 KiB |