Compare commits
568 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6283dddb22 | ||
|
|
c3b8bd119f | ||
|
|
2e31fe279c | ||
|
|
899fd2fda7 | ||
|
|
dc116c9f7f | ||
|
|
455cc3e75d | ||
|
|
16f574f744 | ||
|
|
1486e2fd21 | ||
|
|
c0349f440e | ||
|
|
1a99589c8b | ||
|
|
b54a590f51 | ||
|
|
eafd78f91c | ||
|
|
243c65c64b | ||
|
|
672ba4194a | ||
|
|
9f539bd96a | ||
|
|
55b9f0c032 | ||
|
|
00dcb33872 | ||
|
|
429838cfc5 | ||
|
|
3a2d6eb0b6 | ||
|
|
4290406c19 | ||
|
|
9057f58342 | ||
|
|
6d03a4f6ed | ||
|
|
5d914c890f | ||
|
|
b1286a1b2b | ||
|
|
a5b5f2a8ca | ||
|
|
8bb7856102 | ||
|
|
8280b32872 | ||
|
|
39ab3fe6dd | ||
|
|
fbe30b740c | ||
|
|
ab5ab80765 | ||
|
|
180a20c8d6 | ||
|
|
91d7017b03 | ||
|
|
5b6cb73b09 | ||
|
|
2003a039f2 | ||
|
|
96b1302520 | ||
|
|
891acb714e | ||
|
|
7cf4e7b5e7 | ||
|
|
0c78992958 | ||
|
|
ed44eb7fef | ||
|
|
8ed6612686 | ||
|
|
793b8f8739 | ||
|
|
a9b3b57414 | ||
|
|
69b92a64bc | ||
|
|
f84ecd7212 | ||
|
|
5b6bb90119 | ||
|
|
d5637065c2 | ||
|
|
6d322c3cc2 | ||
|
|
e0ba340ca1 | ||
|
|
79ec7af773 | ||
|
|
752a3329be | ||
|
|
36a246504f | ||
|
|
b2a4b41023 | ||
|
|
852c943f99 | ||
|
|
96e33ca765 | ||
|
|
bae80ec847 | ||
|
|
ce55788a26 | ||
|
|
17e128099e | ||
|
|
17f391ffbd | ||
|
|
23bf5f58f6 | ||
|
|
b36616f28a | ||
|
|
5e266a4461 | ||
|
|
0dd199d5f8 | ||
|
|
0f020e96a7 | ||
|
|
0dcba31636 | ||
|
|
04221eb03a | ||
|
|
c12039d354 | ||
|
|
c5dcc547a9 | ||
|
|
5c3e10f9df | ||
|
|
e1848da829 | ||
|
|
a4ae065d8b | ||
|
|
8e0ffd72fa | ||
|
|
fafe697af5 | ||
|
|
2cf319175d | ||
|
|
643cb9775d | ||
|
|
66085e49c5 | ||
|
|
fd85d65aeb | ||
|
|
24a3573f73 | ||
|
|
048fc6d89d | ||
|
|
bf20f4efd4 | ||
|
|
2fd05a2b54 | ||
|
|
03ce50c255 | ||
|
|
171f552571 | ||
|
|
1843907b42 | ||
|
|
d88a6f2359 | ||
|
|
d273bc937e | ||
|
|
6777d2f0d8 | ||
|
|
3d2506639d | ||
|
|
a9806bd94e | ||
|
|
783642f083 | ||
|
|
2a7fec03d7 | ||
|
|
aed18cccfa | ||
|
|
0f12ee6649 | ||
|
|
fbc727a66e | ||
|
|
897fa2a631 | ||
|
|
43a428592e | ||
|
|
c3796b478f | ||
|
|
e12f60516b | ||
|
|
84fe322c96 | ||
|
|
84263b08dd | ||
|
|
895e069326 | ||
|
|
da4c940055 | ||
|
|
f9e608c06c | ||
|
|
15e8c12508 | ||
|
|
1e543b1e6f | ||
|
|
00739082f2 | ||
|
|
aacf23f57b | ||
|
|
ca037b42ef | ||
|
|
96300e1e99 | ||
|
|
721fbe24b8 | ||
|
|
b20a6fe858 | ||
|
|
658bd6a131 | ||
|
|
be5c9ef85e | ||
|
|
5cc6f7a3c6 | ||
|
|
5fdd26306a | ||
|
|
0e74d8873f | ||
|
|
3f8e9290de | ||
|
|
034dde5e1d | ||
|
|
d0e274cd5f | ||
|
|
b3de18bbda | ||
|
|
e02ac30cde | ||
|
|
49b444cfc8 | ||
|
|
1ab9055fc5 | ||
|
|
fd8e542467 | ||
|
|
7699978f39 | ||
|
|
902db15c17 | ||
|
|
49bd59df62 | ||
|
|
b7e44f436c | ||
|
|
aa26928716 | ||
|
|
8509a520cf | ||
|
|
0037634b70 | ||
|
|
6dfab50871 | ||
|
|
fcc46cdb1a | ||
|
|
06c4fae9c2 | ||
|
|
8b18a65303 | ||
|
|
e4ad1dde54 | ||
|
|
a2b82501aa | ||
|
|
ad0c4cbbd1 | ||
|
|
1a638c16bf | ||
|
|
7dd9fc79c2 | ||
|
|
d492c5e4a8 | ||
|
|
c2a14e5f79 | ||
|
|
c888c068b4 | ||
|
|
7b0bacc990 | ||
|
|
4d66c40c07 | ||
|
|
8a86130fe6 | ||
|
|
b7db4a5f00 | ||
|
|
f3b9869d4f | ||
|
|
0801f84b10 | ||
|
|
9dd091f982 | ||
|
|
190967a889 | ||
|
|
510254922b | ||
|
|
91da6199b3 | ||
|
|
9374a60e2a | ||
|
|
0e1817947e | ||
|
|
870ad47cbc | ||
|
|
4304c56685 | ||
|
|
b7dfee506f | ||
|
|
022b414766 | ||
|
|
05143c78c0 | ||
|
|
04ed3a22ef | ||
|
|
d3f0513224 | ||
|
|
d5efa608bc | ||
|
|
040d2187cb | ||
|
|
2d254ae238 | ||
|
|
82861f2130 | ||
|
|
e0270e6925 | ||
|
|
dc2180af03 | ||
|
|
d240b06c5c | ||
|
|
2434d2d157 | ||
|
|
c631fb141e | ||
|
|
4e27a35e4e | ||
|
|
1b458ab2df | ||
|
|
082e98c01a | ||
|
|
c6d1f84c57 | ||
|
|
c3b9e8532f | ||
|
|
4194973884 | ||
|
|
57a47d7794 | ||
|
|
953930bc42 | ||
|
|
35d78b4db0 | ||
|
|
b8a8b8bace | ||
|
|
e09d03f1ef | ||
|
|
dd2f328f45 | ||
|
|
b3895be44a | ||
|
|
7516f46903 | ||
|
|
3c7327ed57 | ||
|
|
8e1c027038 | ||
|
|
f8fe33039c | ||
|
|
bf6ea3cd51 | ||
|
|
e3aeeea51f | ||
|
|
1fba40289e | ||
|
|
b32c18a349 | ||
|
|
9fc6bdd5a3 | ||
|
|
755fd11f1a | ||
|
|
82984673aa | ||
|
|
de600d1525 | ||
|
|
c1335fdf25 | ||
|
|
36eced4232 | ||
|
|
3f11e36b42 | ||
|
|
db2a3a4d60 | ||
|
|
d7222c6cf0 | ||
|
|
fca71efb1e | ||
|
|
6943d7eaa4 | ||
|
|
4b343830c9 | ||
|
|
f50d81651b | ||
|
|
7ac86a435a | ||
|
|
e2dd677c7f | ||
|
|
1a8a59fd77 | ||
|
|
80c085ca38 | ||
|
|
6f079a6361 | ||
|
|
b2cf816e2f | ||
|
|
6c176726f2 | ||
|
|
47c6a51c39 | ||
|
|
04f509c76b | ||
|
|
261a3518ee | ||
|
|
eb277aa5e8 | ||
|
|
c4b6ef56e6 | ||
|
|
886d8fa202 | ||
|
|
60ce0dcb3e | ||
|
|
35748fe333 | ||
|
|
aa826eb5f3 | ||
|
|
e25619b601 | ||
|
|
12b2e612aa | ||
|
|
b6f095d504 | ||
|
|
c5a9cbde58 | ||
|
|
dc8cae1853 | ||
|
|
e22168f39c | ||
|
|
3319c400b5 | ||
|
|
6725d91663 | ||
|
|
7a78cb6b21 | ||
|
|
0dc76aaf94 | ||
|
|
58daa3a31e | ||
|
|
beb2330bcd | ||
|
|
f38aef13be | ||
|
|
7920909308 | ||
|
|
d9a2df002c | ||
|
|
5ba87ef2c5 | ||
|
|
b83b599553 | ||
|
|
646d49fa2e | ||
|
|
b1535d74a1 | ||
|
|
8606e31bc5 | ||
|
|
4b87a7584a | ||
|
|
5234295a87 | ||
|
|
aba7919400 | ||
|
|
3fdd58db33 | ||
|
|
6651510249 | ||
|
|
326481521a | ||
|
|
b34895a8ae | ||
|
|
3663462bb4 | ||
|
|
815df437c7 | ||
|
|
cfa47cd47d | ||
|
|
fbfd0b5f4c | ||
|
|
ea9a002e01 | ||
|
|
6f8f7b12ab | ||
|
|
bec0ebc623 | ||
|
|
5f863d6ec4 | ||
|
|
d3345aa685 | ||
|
|
aa48199e58 | ||
|
|
028d9822bb | ||
|
|
08deb29ae8 | ||
|
|
1a7537ef27 | ||
|
|
e4ef581049 | ||
|
|
c642c5a5e9 | ||
|
|
0821049fc1 | ||
|
|
996be45987 | ||
|
|
44f654c085 | ||
|
|
98fe966f32 | ||
|
|
159c9a80c1 | ||
|
|
f407ed5899 | ||
|
|
77ed627312 | ||
|
|
57030be78f | ||
|
|
c8953e46d5 | ||
|
|
e18fbd7e6e | ||
|
|
551ad78345 | ||
|
|
dbabd39967 | ||
|
|
5cf2f37e7c | ||
|
|
fb82a18a5a | ||
|
|
930a9dab4a | ||
|
|
382b9b1576 | ||
|
|
524b16fd75 | ||
|
|
07f29da574 | ||
|
|
ecb6ad4d86 | ||
|
|
0c79d43ba1 | ||
|
|
52f8d098b3 | ||
|
|
e4230d58fa | ||
|
|
8df6915b38 | ||
|
|
2616332b4a | ||
|
|
8218f0469b | ||
|
|
8bfd76981f | ||
|
|
2205a9520d | ||
|
|
3f73c93eb2 | ||
|
|
5dfd363ecd | ||
|
|
c69125c5f2 | ||
|
|
50d68d0078 | ||
|
|
73f37b7567 | ||
|
|
d7b2ae93bb | ||
|
|
1ab433daec | ||
|
|
4fa0f78b42 | ||
|
|
fdea228ed1 | ||
|
|
707f0c6830 | ||
|
|
f71ef166b5 | ||
|
|
89462fd21a | ||
|
|
5f99f553c5 | ||
|
|
dddc1314e7 | ||
|
|
c5f50cb6b1 | ||
|
|
885f2986ef | ||
|
|
e45445f919 | ||
|
|
2040c9f914 | ||
|
|
93884ebeea | ||
|
|
dc9354a36a | ||
|
|
5e1e193688 | ||
|
|
ac420b448c | ||
|
|
9a7fcfc885 | ||
|
|
d545acd5eb | ||
|
|
50e2bf7562 | ||
|
|
ac846624df | ||
|
|
37ae3a6cac | ||
|
|
4bff8d0ecd | ||
|
|
a0fe0dc055 | ||
|
|
640ddf1726 | ||
|
|
81262b2c14 | ||
|
|
2159eb67e0 | ||
|
|
9a362f2d52 | ||
|
|
e974a4bd08 | ||
|
|
a4867225d6 | ||
|
|
08188fdf27 | ||
|
|
7ccaa69a6a | ||
|
|
1a06334920 | ||
|
|
e4f070826d | ||
|
|
bf84db1254 | ||
|
|
36ea9bbba1 | ||
|
|
f191fbd7be | ||
|
|
beef010d40 | ||
|
|
4177c357c2 | ||
|
|
7aa064b7a8 | ||
|
|
60d7d4fb00 | ||
|
|
bd63ef3837 | ||
|
|
2ce1939161 | ||
|
|
0283850cce | ||
|
|
13150ff2c8 | ||
|
|
456bd00d47 | ||
|
|
5a2a73a671 | ||
|
|
4fc3ea8ad2 | ||
|
|
dd1380f13b | ||
|
|
6988f95e4a | ||
|
|
9f37068d7c | ||
|
|
717fb16e64 | ||
|
|
4c84bbc464 | ||
|
|
86142a0ca3 | ||
|
|
811c1560c4 | ||
|
|
257cc64d8d | ||
|
|
7abf246fd5 | ||
|
|
3aea0e6acc | ||
|
|
d3bf735edc | ||
|
|
de09fe22a7 | ||
|
|
75bbf452d2 | ||
|
|
c5f3ddc4f2 | ||
|
|
6751e8f0e3 | ||
|
|
aa4e6a9008 | ||
|
|
9ef992752c | ||
|
|
9ca0d8c374 | ||
|
|
0ba99ed104 | ||
|
|
a4b2262699 | ||
|
|
6f93a796a5 | ||
|
|
2388fb6796 | ||
|
|
a920087c2c | ||
|
|
676057c583 | ||
|
|
bc9d2979f0 | ||
|
|
4f79244f41 | ||
|
|
297fe7bdbf | ||
|
|
52f4d11085 | ||
|
|
c4fe70cd9a | ||
|
|
422e5223c0 | ||
|
|
ccfb966afa | ||
|
|
a4a0c0a8d6 | ||
|
|
749e607634 | ||
|
|
ae7c30cf23 | ||
|
|
72e18a5758 | ||
|
|
8fdef58216 | ||
|
|
493d0f255d | ||
|
|
aba0eeff9c | ||
|
|
600390ba5d | ||
|
|
14d1c929a8 | ||
|
|
22b0f5f66e | ||
|
|
368d1fb318 | ||
|
|
fd7f2011ba | ||
|
|
4d55ea40f1 | ||
|
|
3436b762bb | ||
|
|
d154688afc | ||
|
|
d40f7b2aef | ||
|
|
ef53b8856e | ||
|
|
4cf3611134 | ||
|
|
a33bfa3012 | ||
|
|
2fe3ff5a0d | ||
|
|
e6b03ad6b7 | ||
|
|
b7fb34bf07 | ||
|
|
a87924e6e6 | ||
|
|
4d58eff50b | ||
|
|
5cf2e46c20 | ||
|
|
89c431d651 | ||
|
|
f7b21062d4 | ||
|
|
1486130bb2 | ||
|
|
52d612ce3e | ||
|
|
f44aad53d9 | ||
|
|
e3fd3151c9 | ||
|
|
a8288938f5 | ||
|
|
3c3d6b0477 | ||
|
|
695943a194 | ||
|
|
40f3ad19e0 | ||
|
|
57d0c14aa5 | ||
|
|
f715a0c910 | ||
|
|
6f97c0e712 | ||
|
|
1ba83095d4 | ||
|
|
d798fe4b40 | ||
|
|
b8d9d60df9 | ||
|
|
6da9570384 | ||
|
|
031c989747 | ||
|
|
d57936a780 | ||
|
|
558f1523d4 | ||
|
|
183d743600 | ||
|
|
47688990ff | ||
|
|
7fea117e64 | ||
|
|
a2b623a36c | ||
|
|
00bbd12e6d | ||
|
|
29dd07c1bd | ||
|
|
646c075ebe | ||
|
|
6c00375362 | ||
|
|
2baaa1e0d5 | ||
|
|
007b2bcc97 | ||
|
|
7e74f80e0f | ||
|
|
3833e45655 | ||
|
|
825bdfb3e1 | ||
|
|
e924252a21 | ||
|
|
dd3078b943 | ||
|
|
bfa1c9201a | ||
|
|
dbd7a10202 | ||
|
|
0328373022 | ||
|
|
a072653cac | ||
|
|
794eb8c908 | ||
|
|
62cc26e65d | ||
|
|
f7a0968a5e | ||
|
|
3acba670ee | ||
|
|
3a3cb3196e | ||
|
|
d742a4ff2f | ||
|
|
990b0d80e3 | ||
|
|
2d512b49be | ||
|
|
61b57d5bc7 | ||
|
|
8f48cfbc69 | ||
|
|
9cee830fd4 | ||
|
|
4f481fd88f | ||
|
|
2faf109353 | ||
|
|
19a0fa715e | ||
|
|
2e194b72b8 | ||
|
|
039a13bd30 | ||
|
|
26fa09541a | ||
|
|
cfbe52efc1 | ||
|
|
a267fedaef | ||
|
|
d6cb0fc78f | ||
|
|
1fbbbde1a1 | ||
|
|
08721bb810 | ||
|
|
68d2bef6ba | ||
|
|
5199cabd26 | ||
|
|
59546838ac | ||
|
|
4740163572 | ||
|
|
22af7f903e | ||
|
|
e921182575 | ||
|
|
b88e356536 | ||
|
|
9292bba09a | ||
|
|
8b1e978e7c | ||
|
|
24b1252911 | ||
|
|
edece4f91c | ||
|
|
b84d6631b3 | ||
|
|
73a427bb09 | ||
|
|
0063e27bb2 | ||
|
|
24708f2bd8 | ||
|
|
317266e09a | ||
|
|
a9ad3d34f9 | ||
|
|
2b2554e4f7 | ||
|
|
343c14d846 | ||
|
|
fd158a2e56 | ||
|
|
dd542457de | ||
|
|
74cacd2854 | ||
|
|
5fada4feed | ||
|
|
4ef3df4d1d | ||
|
|
d7ba6dca3b | ||
|
|
0702c2a058 | ||
|
|
3fb9c3b522 | ||
|
|
22d7b724a1 | ||
|
|
9a627d4927 | ||
|
|
c8fddfe18d | ||
|
|
805a93dc60 | ||
|
|
f65391ef6d | ||
|
|
6ed9bedae0 | ||
|
|
6b4757df36 | ||
|
|
e1970e716b | ||
|
|
b996cf004c | ||
|
|
92f325a67b | ||
|
|
81919c8e9d | ||
|
|
2a3eccfe30 | ||
|
|
14158d3f60 | ||
|
|
fbec2def38 | ||
|
|
b610a376f1 | ||
|
|
d9f7eff0f2 | ||
|
|
8399f18e11 | ||
|
|
067dc2c7da | ||
|
|
a7f8c42983 | ||
|
|
8d041ee600 | ||
|
|
186fb52ac1 | ||
|
|
2814c92a2e | ||
|
|
fb5abbdee0 | ||
|
|
6c29373a0f | ||
|
|
ece1183e55 | ||
|
|
54973c7306 | ||
|
|
cd99761892 | ||
|
|
e764eac338 | ||
|
|
663e1f577d | ||
|
|
2b29df5164 | ||
|
|
a6dc7dacdd | ||
|
|
818114a701 | ||
|
|
a42eb85772 | ||
|
|
130e0d8de9 | ||
|
|
8a770ec0fa | ||
|
|
7d15711bb2 | ||
|
|
39e3d777bc | ||
|
|
8b6dac3216 | ||
|
|
9f412be93c | ||
|
|
0b43901c11 | ||
|
|
c15fa47244 | ||
|
|
8de21b4bbf | ||
|
|
3c3e987c62 | ||
|
|
f2d2d740d7 | ||
|
|
8ff19f260a | ||
|
|
5a8056adee | ||
|
|
665871ba78 | ||
|
|
1e937414d3 | ||
|
|
356e1a3827 | ||
|
|
98f1f1c08f | ||
|
|
c7f50a776b | ||
|
|
a7b7551b52 | ||
|
|
8123a7a850 | ||
|
|
7fbb3318e9 | ||
|
|
379f373b86 | ||
|
|
30825a6271 | ||
|
|
45ad35308e | ||
|
|
b2fe88b6c7 | ||
|
|
a8f111c463 | ||
|
|
70e5113ef9 | ||
|
|
fae6276267 | ||
|
|
ad08d71da1 | ||
|
|
fd29c6c3ca | ||
|
|
c1caefc207 | ||
|
|
5149a2c5e1 | ||
|
|
cb51334761 | ||
|
|
45281587f7 | ||
|
|
1131a8607d | ||
|
|
1ced9bbc9e | ||
|
|
353355a101 | ||
|
|
ca081f0bdd | ||
|
|
629c2a03da | ||
|
|
ab15a02d54 | ||
|
|
17a93838f9 | ||
|
|
e3802d2af2 | ||
|
|
7cbe9dbf90 | ||
|
|
6c60ccd08f | ||
|
|
14daf2fa8e | ||
|
|
0744654d3e | ||
|
|
0ae75f82dc | ||
|
|
872f07f043 | ||
|
|
19c22fbfec |
4
.gitignore
vendored
4
.gitignore
vendored
@@ -5,7 +5,7 @@
|
||||
/out-tsc
|
||||
|
||||
# dependencies
|
||||
/node_modules
|
||||
**/node_modules
|
||||
|
||||
# IDEs and editors
|
||||
/.idea
|
||||
@@ -48,4 +48,4 @@ secrets.json
|
||||
|
||||
qmi-cloud-tf-modules/
|
||||
*.pfx
|
||||
|
||||
/photos/*
|
||||
|
||||
@@ -9,7 +9,9 @@ stages:
|
||||
stage: build
|
||||
only:
|
||||
- master
|
||||
- dev
|
||||
script:
|
||||
- echo $DOCKER_REGISTRY_USER
|
||||
- chmod +x ./gitlab-ci.sh
|
||||
- ./gitlab-ci.sh
|
||||
|
||||
|
||||
25
Dockerfile
25
Dockerfile
@@ -1,3 +1,26 @@
|
||||
FROM node:13.8-alpine
|
||||
# Stage 1:
|
||||
FROM node:15.12.0-alpine AS sources
|
||||
|
||||
RUN apk --no-cache add yarn git
|
||||
|
||||
WORKDIR /var/www/app
|
||||
|
||||
ADD ./package.json ./
|
||||
ADD ./yarn.lock ./
|
||||
ADD ./qmi-cloud-common ./qmi-cloud-common
|
||||
|
||||
RUN yarn install --production
|
||||
|
||||
# Stage 2:
|
||||
FROM node:15.12.0-alpine AS production
|
||||
WORKDIR /var/www/app
|
||||
COPY --from=sources /var/www/app/node_modules ./node_modules
|
||||
COPY --from=sources /var/www/app/package.json ./package.json
|
||||
COPY ./server ./server
|
||||
COPY ./dist ./dist
|
||||
COPY ./mystatsmashup ./mystatsmashup
|
||||
|
||||
EXPOSE 3000
|
||||
EXPOSE 3100
|
||||
|
||||
CMD ["node", "-r", "esm", "server/server"]
|
||||
|
||||
38
README.md
38
README.md
@@ -1,8 +1,11 @@
|
||||
# QMI Cloud
|
||||
|
||||
[](https://gitlab.com/qmi/qmi-cloud/-/commits/master)
|
||||
|
||||
## Pre-requisites
|
||||
- Docker (desktop for Mac - temporary)
|
||||
- A file named secrets.json with this JSON information
|
||||
- Docker
|
||||
- Docker-Compose
|
||||
- A file named secrets.json with this JSON information (as Manuel Romero for this details)
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -12,8 +15,11 @@
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
## Run it
|
||||
|
||||
It will build necessary images if they don't exist.
|
||||
|
||||
```shell
|
||||
git clone git@gitlab.com:qmi/qmi-cloud.git
|
||||
cd qmi-cloud
|
||||
@@ -24,9 +30,13 @@ Wait until this line shows up:
|
||||
|
||||
```qmi-cloud-app | MongoDB connected...```
|
||||
|
||||
|
||||
On another terminal, run:
|
||||
|
||||
```shell
|
||||
docker container ls
|
||||
```
|
||||
|
||||
Should show these containers:
|
||||
```
|
||||
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||||
@@ -37,41 +47,33 @@ ad01a01a4903 qlikgear/qmi-cloud-app "docker-entrypoint.s…" 4 hou
|
||||
94a1414554aa redis "redis-server --appe…" 4 hours ago Up 2 minutes 6379/tcp qmi-cloud-redis
|
||||
```
|
||||
|
||||
## TEST
|
||||
|
||||
## Authentication
|
||||
Go to: http://localhost:3000
|
||||
|
||||
### Authentication
|
||||
Authentication with Azure AD (Qlik).
|
||||
|
||||
## Bull QUEUE system
|
||||
### Bull QUEUE system
|
||||
It is used to queue Terraform executions in Docker containers.
|
||||
|
||||
UI: http://localhost:3000/arena
|
||||
|
||||
|
||||
## Mongo / Mongo Express Client
|
||||
### Mongo / Mongo Express Client
|
||||
Mongo is for managment.
|
||||
|
||||
UI: http://localhost:8081
|
||||
|
||||
Basic-Auth: qlik / Qlik1234
|
||||
|
||||
Database: qmi
|
||||
http://localhost:8081/db/qmi/
|
||||
Database: qmicloud
|
||||
|
||||
## API / Swagger API-DOCS
|
||||
### API / Swagger API-DOCS
|
||||
It shows available endpoints
|
||||
|
||||
http://localhost:3000/api-docs
|
||||
|
||||
## TEST
|
||||
|
||||
- Go to: http://localhost:3000
|
||||
- Authenticate
|
||||
- Go to: http://localhost:3000/provisions
|
||||
|
||||
|
||||
|
||||
### Available Scenarios that will deploy to Azure
|
||||
|
||||
- azqmi-qdc-sn
|
||||
|
||||
__NOTE: WARNING!!! It's using MANUEL's personal account "Visual Studio Professional" credits in Azure for now.__
|
||||
|
||||
19
angular.json
19
angular.json
@@ -27,18 +27,26 @@
|
||||
"src/assets"
|
||||
],
|
||||
"styles": [
|
||||
"src/styles.scss",
|
||||
"node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss",
|
||||
"node_modules/@fortawesome/fontawesome-free/scss/solid.scss",
|
||||
"node_modules/@fortawesome/fontawesome-free/scss/regular.scss",
|
||||
"node_modules/@fortawesome/fontawesome-free/scss/brands.scss",
|
||||
"node_modules/angular-bootstrap-md/assets/scss/bootstrap/bootstrap.scss",
|
||||
"node_modules/angular-bootstrap-md/assets/scss/mdb.scss",
|
||||
"node_modules/animate.css/animate.css"
|
||||
"node_modules/animate.css/animate.css",
|
||||
"node_modules/prismjs/themes/prism.css",
|
||||
"src/styles.scss"
|
||||
],
|
||||
"scripts": [
|
||||
|
||||
"node_modules/chart.js/dist/Chart.js",
|
||||
"node_modules/hammerjs/hammer.min.js"
|
||||
"node_modules/hammerjs/hammer.min.js",
|
||||
"node_modules/marked/lib/marked.js",
|
||||
"node_modules/prismjs/prism.js",
|
||||
"node_modules/prismjs/plugins/line-highlight/prism-line-highlight.js",
|
||||
"node_modules/prismjs/plugins/line-numbers/prism-line-numbers.js",
|
||||
"src/assets/js/qdt-components.js",
|
||||
"src/assets/js/qlikMashupQCS.js"
|
||||
]
|
||||
},
|
||||
"configurations": {
|
||||
@@ -145,5 +153,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"defaultProject": "qmi-cloud"
|
||||
"defaultProject": "qmi-cloud",
|
||||
"cli": {
|
||||
"analytics": false
|
||||
}
|
||||
}
|
||||
0
costexport/.keep
Normal file
0
costexport/.keep
Normal file
1
costexport/sample.json
Normal file
1
costexport/sample.json
Normal file
@@ -0,0 +1 @@
|
||||
{"test": "ok"}
|
||||
107
dist/out-tsc/src/app/admin/admin.component.js
vendored
107
dist/out-tsc/src/app/admin/admin.component.js
vendored
@@ -8,112 +8,17 @@ 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;
|
||||
});
|
||||
function AdminComponent() {
|
||||
this.sections = ['Provisions', 'Scenarios', 'Scenario Deploy Opts', 'Users', 'Notifications', 'API keys', 'VM Types'];
|
||||
this.tab = 'Provisions';
|
||||
}
|
||||
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) {
|
||||
AdminComponent.prototype.tabSelect = function ($event, tab) {
|
||||
$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;
|
||||
});
|
||||
});
|
||||
this.tab = tab;
|
||||
};
|
||||
AdminComponent = __decorate([
|
||||
Component({
|
||||
@@ -121,7 +26,7 @@ var AdminComponent = /** @class */ (function () {
|
||||
templateUrl: './admin.component.html',
|
||||
styleUrls: ['./admin.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [UsersService, ProvisionsService, AuthGuard])
|
||||
__metadata("design:paramtypes", [])
|
||||
], AdminComponent);
|
||||
return AdminComponent;
|
||||
}());
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"admin.component.js","sourceRoot":"","sources":["../../../../../src/app/admin/admin.component.ts"],"names":[],"mappings":";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U,MAAM,eAAe,CAAC;AAOlD;IAKE;QAHA,aAAQ,GAAG,CAAC,YAAY,EAAE,WAAW,EAAG,sBAAsB,EAAE,OAAO,EAAE,eAAe,EAAC,UAAU,EAAE,UAAU,CAAC,CAAC;QACjH,QAAG,GAAa,YAAY,CAAC;IAEb,CAAC;IAEjB,iCAAQ,GAAR;IACA,CAAC;IAED,kCAAS,GAAT,UAAU,MAAM,EAAE,GAAG;QACnB,MAAM,CAAC,cAAc,EAAE,CAAC;QACxB,MAAM,CAAC,eAAe,EAAE,CAAC;QACzB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IAdU,cAAc;QAL1B,SAAS,CAAC;YACT,QAAQ,EAAE,WAAW;YACrB,WAAW,EAAE,wBAAwB;YACrC,SAAS,EAAE,CAAC,wBAAwB,CAAC;SACtC,CAAC;;OACW,cAAc,CAgB1B;IAAD,qBAAC;CAAA,AAhBD,IAgBC;SAhBY,cAAc"}
|
||||
43
dist/out-tsc/src/app/alert/alert.component.js
vendored
Normal file
43
dist/out-tsc/src/app/alert/alert.component.js
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Component, ViewChild, ElementRef } from '@angular/core';
|
||||
import { AlertService } from '../services/alert.service';
|
||||
var AlertComponent = /** @class */ (function () {
|
||||
function AlertComponent(_alertService) {
|
||||
this._alertService = _alertService;
|
||||
this.alert = null;
|
||||
}
|
||||
AlertComponent.prototype.ngOnInit = function () {
|
||||
this.subscription = this._alertService.getAlertEmitter().subscribe(function (data) {
|
||||
this.alert = data;
|
||||
}.bind(this));
|
||||
};
|
||||
AlertComponent.prototype.ngOnDestroy = function () {
|
||||
this.subscription.unsubscribe();
|
||||
};
|
||||
AlertComponent.prototype.closeAlert = function () {
|
||||
this.alert = null;
|
||||
};
|
||||
__decorate([
|
||||
ViewChild('qmialert', { static: true }),
|
||||
__metadata("design:type", ElementRef)
|
||||
], AlertComponent.prototype, "alertEl", void 0);
|
||||
AlertComponent = __decorate([
|
||||
Component({
|
||||
selector: 'qmi-alert',
|
||||
templateUrl: './alert.component.html',
|
||||
styleUrls: ['./alert.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [AlertService])
|
||||
], AlertComponent);
|
||||
return AlertComponent;
|
||||
}());
|
||||
export { AlertComponent };
|
||||
//# sourceMappingURL=alert.component.js.map
|
||||
1
dist/out-tsc/src/app/alert/alert.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/alert/alert.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"alert.component.js","sourceRoot":"","sources":["../../../../../src/app/alert/alert.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAqB,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACpF,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAQzD;IAME,wBAAoB,aAA2B;QAA3B,kBAAa,GAAb,aAAa,CAAc;QAF/C,UAAK,GAAS,IAAI,CAAC;IAE+B,CAAC;IAEnD,iCAAQ,GAAR;QACE,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC,eAAe,EAAE,CAAC,SAAS,CAAC,UAAS,IAAI;YAC5E,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QACtB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAChB,CAAC;IAED,oCAAW,GAAX;QACE,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC;IAClC,CAAC;IAED,mCAAU,GAAV;QACI,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACtB,CAAC;IAlBwC;QAAxC,SAAS,CAAC,UAAU,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;kCAAU,UAAU;mDAAC;IAFlD,cAAc;QAL1B,SAAS,CAAC;YACT,QAAQ,EAAE,WAAW;YACrB,WAAW,EAAE,wBAAwB;YACrC,SAAS,EAAE,CAAC,wBAAwB,CAAC;SACtC,CAAC;yCAOmC,YAAY;OANpC,cAAc,CAsB1B;IAAD,qBAAC;CAAA,AAtBD,IAsBC;SAtBY,cAAc"}
|
||||
40
dist/out-tsc/src/app/alert/confirm.component.js
vendored
Normal file
40
dist/out-tsc/src/app/alert/confirm.component.js
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Component } from '@angular/core';
|
||||
import { MDBModalRef } from 'angular-bootstrap-md';
|
||||
import { Subject } from 'rxjs';
|
||||
var ModalConfirmComponent = /** @class */ (function () {
|
||||
function ModalConfirmComponent(modalRef) {
|
||||
this.modalRef = modalRef;
|
||||
this.action = new Subject();
|
||||
}
|
||||
ModalConfirmComponent.prototype.ngOnInit = function () {
|
||||
if (!this.info.buttonColor) {
|
||||
this.info.buttonColor = "danger";
|
||||
}
|
||||
};
|
||||
ModalConfirmComponent.prototype.ngOnDestroy = function () {
|
||||
};
|
||||
ModalConfirmComponent.prototype.confirm = function () {
|
||||
this.action.next();
|
||||
this.modalRef.hide();
|
||||
};
|
||||
ModalConfirmComponent = __decorate([
|
||||
Component({
|
||||
selector: 'qmi-modalconfirm',
|
||||
templateUrl: './confirm.component.html',
|
||||
styleUrls: ['./confirm.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [MDBModalRef])
|
||||
], ModalConfirmComponent);
|
||||
return ModalConfirmComponent;
|
||||
}());
|
||||
export { ModalConfirmComponent };
|
||||
//# sourceMappingURL=confirm.component.js.map
|
||||
1
dist/out-tsc/src/app/alert/confirm.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/alert/confirm.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"confirm.component.js","sourceRoot":"","sources":["../../../../../src/app/alert/confirm.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAA4B,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAO/B;IAKE,+BAAoB,QAAqB;QAArB,aAAQ,GAAR,QAAQ,CAAa;QAFzC,WAAM,GAAiB,IAAI,OAAO,EAAE,CAAC;IAEQ,CAAC;IAE9C,wCAAQ,GAAR;QACE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;YAC1B,IAAI,CAAC,IAAI,CAAC,WAAW,GAAG,QAAQ,CAAC;SAClC;IACH,CAAC;IAED,2CAAW,GAAX;IAEA,CAAC;IAED,uCAAO,GAAP;QACI,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;QACnB,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;IACzB,CAAC;IApBU,qBAAqB;QALjC,SAAS,CAAC;YACT,QAAQ,EAAE,kBAAkB;YAC5B,WAAW,EAAE,0BAA0B;YACvC,SAAS,EAAE,CAAC,0BAA0B,CAAC;SACxC,CAAC;yCAM8B,WAAW;OAL9B,qBAAqB,CAsBjC;IAAD,4BAAC;CAAA,AAtBD,IAsBC;SAtBY,qBAAqB"}
|
||||
99
dist/out-tsc/src/app/alert/edit-scenario.component.js
vendored
Normal file
99
dist/out-tsc/src/app/alert/edit-scenario.component.js
vendored
Normal file
@@ -0,0 +1,99 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Component } from '@angular/core';
|
||||
import { MDBModalRef } from 'angular-bootstrap-md';
|
||||
import { Subject } from 'rxjs';
|
||||
import { ScenariosService } from '../services/scenarios.service';
|
||||
import { SubscriptionsService } from '../services/subscriptions.service';
|
||||
var ScenarioModalComponent = /** @class */ (function () {
|
||||
function ScenarioModalComponent(modalRef, _scenariosService, _subscriptionsService) {
|
||||
this.modalRef = modalRef;
|
||||
this._scenariosService = _scenariosService;
|
||||
this._subscriptionsService = _subscriptionsService;
|
||||
this.action = new Subject();
|
||||
this.sendData = {
|
||||
availableProductVersions: [{
|
||||
product: 'String: <ie: Qlik Sense>',
|
||||
vmTypeDefault: 'String: <i.e: Standard_D8s_v3>',
|
||||
diskSizeGbDefault: 'Integer: <values: 128,250,500,750,1000>',
|
||||
index: 'vm1',
|
||||
versions: []
|
||||
}]
|
||||
};
|
||||
}
|
||||
ScenarioModalComponent.prototype.ngOnInit = function () {
|
||||
var _this = this;
|
||||
this._subscriptionsService.getSubscriptions().subscribe(function (res) {
|
||||
_this.subscriptions = res.results;
|
||||
if (_this.scenario) {
|
||||
_this.sendData = JSON.parse(JSON.stringify(_this.scenario));
|
||||
}
|
||||
if (!_this.sendData.subscription) {
|
||||
_this.sendData.subscription = res.results[0]._id;
|
||||
}
|
||||
});
|
||||
};
|
||||
ScenarioModalComponent.prototype.ngOnDestroy = function () {
|
||||
};
|
||||
ScenarioModalComponent.prototype.confirm = function () {
|
||||
var _this = this;
|
||||
console.log("sendData", this.sendData);
|
||||
//this.action.next(this.sendData);
|
||||
if (this.sendData._id) {
|
||||
var id = this.sendData._id.toString();
|
||||
this.sendData._id = undefined;
|
||||
this._scenariosService.updateScenario(id, this.sendData).subscribe(function (res) {
|
||||
console.log("done", res);
|
||||
_this.action.next("DONE!!!");
|
||||
_this.modalRef.hide();
|
||||
});
|
||||
}
|
||||
else {
|
||||
this._scenariosService.addScenario(this.sendData).subscribe(function (res) {
|
||||
console.log("done", res);
|
||||
_this.action.next("DONE!!!");
|
||||
_this.modalRef.hide();
|
||||
});
|
||||
}
|
||||
};
|
||||
ScenarioModalComponent.prototype.delete = function () {
|
||||
var _this = this;
|
||||
this._scenariosService.deleteScenario(this.sendData._id).subscribe(function (res) {
|
||||
console.log("done", res);
|
||||
_this.action.next("DONE!!!");
|
||||
_this.modalRef.hide();
|
||||
});
|
||||
};
|
||||
ScenarioModalComponent.prototype.checkOnchange = function ($event, field) {
|
||||
console.log("Checked?", $event.checked);
|
||||
this.sendData[field] = $event.checked;
|
||||
};
|
||||
ScenarioModalComponent.prototype.updateJson = function (event, property) {
|
||||
var editField = event.target.textContent.trim();
|
||||
try {
|
||||
var value = JSON.parse(editField);
|
||||
this.sendData[property] = value;
|
||||
}
|
||||
catch (e) {
|
||||
console.log("error json", e);
|
||||
}
|
||||
};
|
||||
ScenarioModalComponent = __decorate([
|
||||
Component({
|
||||
selector: 'qmi-new-scenario',
|
||||
templateUrl: './edit-scenario.component.html',
|
||||
styleUrls: ['./edit-scenario.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [MDBModalRef, ScenariosService, SubscriptionsService])
|
||||
], ScenarioModalComponent);
|
||||
return ScenarioModalComponent;
|
||||
}());
|
||||
export { ScenarioModalComponent };
|
||||
//# sourceMappingURL=edit-scenario.component.js.map
|
||||
1
dist/out-tsc/src/app/alert/edit-scenario.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/alert/edit-scenario.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"edit-scenario.component.js","sourceRoot":"","sources":["../../../../../src/app/alert/edit-scenario.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAqB,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAgB,MAAM,MAAM,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAOzE;IAgBE,gCAAoB,QAAqB,EAAU,iBAAmC,EAAU,qBAA2C;QAAvH,aAAQ,GAAR,QAAQ,CAAa;QAAU,sBAAiB,GAAjB,iBAAiB,CAAkB;QAAU,0BAAqB,GAArB,qBAAqB,CAAsB;QAb3I,WAAM,GAAiB,IAAI,OAAO,EAAE,CAAC;QAGrC,aAAQ,GAAS;YACf,wBAAwB,EAAE,CAAC;oBACzB,OAAO,EAAE,0BAA0B;oBACnC,aAAa,EAAE,gCAAgC;oBAC/C,iBAAiB,EAAE,yC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YAAY,EAAE,CAAC,CAAC,CAAC;SAChC;IACH,CAAC;IA/EU,sBAAsB;QALlC,SAAS,CAAC;YACT,QAAQ,EAAE,kBAAkB;YAC5B,WAAW,EAAE,gCAAgC;YAC7C,SAAS,EAAE,CAAC,gCAAgC,CAAC;SAC9C,CAAC;yCAiB8B,WAAW,EAA6B,gBAAgB,EAAiC,oBAAoB;OAhBhI,sBAAsB,CAgFlC;IAAD,6BAAC;CAAA,AAhFD,IAgFC;SAhFY,sBAAsB"}
|
||||
68
dist/out-tsc/src/app/alert/edit-subscription.component.js
vendored
Normal file
68
dist/out-tsc/src/app/alert/edit-subscription.component.js
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Component } from '@angular/core';
|
||||
import { MDBModalRef } from 'angular-bootstrap-md';
|
||||
import { Subject } from 'rxjs';
|
||||
import { SubscriptionsService } from '../services/subscriptions.service';
|
||||
var SubscriptionModalComponent = /** @class */ (function () {
|
||||
function SubscriptionModalComponent(modalRef, _subscriptionsService) {
|
||||
this.modalRef = modalRef;
|
||||
this._subscriptionsService = _subscriptionsService;
|
||||
this.action = new Subject();
|
||||
this.sendData = {};
|
||||
}
|
||||
SubscriptionModalComponent.prototype.ngOnInit = function () {
|
||||
if (this.subscription) {
|
||||
this.sendData = JSON.parse(JSON.stringify(this.subscription));
|
||||
}
|
||||
};
|
||||
SubscriptionModalComponent.prototype.ngOnDestroy = function () {
|
||||
};
|
||||
SubscriptionModalComponent.prototype.confirm = function () {
|
||||
var _this = this;
|
||||
console.log("sendData", this.sendData);
|
||||
//this.action.next(this.sendData);
|
||||
if (this.sendData._id) {
|
||||
var id = this.sendData._id.toString();
|
||||
this.sendData._id = undefined;
|
||||
this._subscriptionsService.updateSubscription(id, this.sendData).subscribe(function (res) {
|
||||
console.log("done", res);
|
||||
_this.action.next("DONE!!!");
|
||||
_this.modalRef.hide();
|
||||
});
|
||||
}
|
||||
else {
|
||||
this._subscriptionsService.addSubscription(this.sendData).subscribe(function (res) {
|
||||
console.log("done", res);
|
||||
_this.action.next("DONE!!!");
|
||||
_this.modalRef.hide();
|
||||
});
|
||||
}
|
||||
};
|
||||
SubscriptionModalComponent.prototype.delete = function () {
|
||||
var _this = this;
|
||||
this._subscriptionsService.deleteScenario(this.sendData._id).subscribe(function (res) {
|
||||
console.log("done", res);
|
||||
_this.action.next("DONE!!!");
|
||||
_this.modalRef.hide();
|
||||
});
|
||||
};
|
||||
SubscriptionModalComponent = __decorate([
|
||||
Component({
|
||||
selector: 'qmi-new-subscription',
|
||||
templateUrl: './edit-subscription.component.html',
|
||||
styleUrls: ['./edit-subscription.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [MDBModalRef, SubscriptionsService])
|
||||
], SubscriptionModalComponent);
|
||||
return SubscriptionModalComponent;
|
||||
}());
|
||||
export { SubscriptionModalComponent };
|
||||
//# sourceMappingURL=edit-subscription.component.js.map
|
||||
1
dist/out-tsc/src/app/alert/edit-subscription.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/alert/edit-subscription.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"edit-subscription.component.js","sourceRoot":"","sources":["../../../../../src/app/alert/edit-subscription.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EA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M;YACL,IAAI,CAAC,qBAAqB,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAE,UAAA,GAAG;gBACtE,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;gBACzB,KAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;gBAC5B,KAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;YACvB,CAAC,CAAC,CAAC;SACJ;IAGL,CAAC;IAED,2CAAM,GAAN;QAAA,iBAMC;QALC,IAAI,CAAC,qBAAqB,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,SAAS,CAAE,UAAA,GAAG;YACzE,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;YACzB,KAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAC5B,KAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;QACvB,CAAC,CAAC,CAAC;IACL,CAAC;IAlDU,0BAA0B;QALtC,SAAS,CAAC;YACT,QAAQ,EAAE,sBAAsB;YAChC,WAAW,EAAE,oCAAoC;YACjD,SAAS,EAAE,CAAC,oCAAoC,CAAC;SAClD,CAAC;yCAU8B,WAAW,EAAiC,oBAAoB;OATnF,0BAA0B,CAoDtC;IAAD,iCAAC;CAAA,AApDD,IAoDC;SApDY,0BAA0B"}
|
||||
31
dist/out-tsc/src/app/alert/modalinfo.component.js
vendored
Normal file
31
dist/out-tsc/src/app/alert/modalinfo.component.js
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Component } from '@angular/core';
|
||||
import { MDBModalRef } from 'angular-bootstrap-md';
|
||||
var ModalInfoComponent = /** @class */ (function () {
|
||||
function ModalInfoComponent(modalRef) {
|
||||
this.modalRef = modalRef;
|
||||
}
|
||||
ModalInfoComponent.prototype.ngOnInit = function () {
|
||||
};
|
||||
ModalInfoComponent.prototype.ngOnDestroy = function () {
|
||||
};
|
||||
ModalInfoComponent = __decorate([
|
||||
Component({
|
||||
selector: 'qmi-modalinfo',
|
||||
templateUrl: './modalinfo.component.html',
|
||||
styleUrls: ['./modalinfo.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [MDBModalRef])
|
||||
], ModalInfoComponent);
|
||||
return ModalInfoComponent;
|
||||
}());
|
||||
export { ModalInfoComponent };
|
||||
//# sourceMappingURL=modalinfo.component.js.map
|
||||
1
dist/out-tsc/src/app/alert/modalinfo.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/alert/modalinfo.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"modalinfo.component.js","sourceRoot":"","sources":["../../../../../src/app/alert/modalinfo.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAA4B,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAOnD;IAIE,4BAAoB,QAAqB;QAArB,aAAQ,GAAR,QAAQ,CAAa;IAAI,CAAC;IAE9C,qCAAQ,GAAR;IAEA,CAAC;IAED,wCAAW,GAAX;IAEA,CAAC;IAZU,kBAAkB;QAL9B,SAAS,CAAC;YACT,QAAQ,EAAE,eAAe;YACzB,WAAW,EAAE,4BAA4B;YACzC,SAAS,EAAE,CAAC,4BAA4B,CAAC;SAC1C,CAAC;yCAK8B,WAAW;OAJ9B,kBAAkB,CAc9B;IAAD,yBAAC;CAAA,AAdD,IAcC;SAdY,kBAAkB"}
|
||||
104
dist/out-tsc/src/app/alert/new-provision.component.js
vendored
Normal file
104
dist/out-tsc/src/app/alert/new-provision.component.js
vendored
Normal file
@@ -0,0 +1,104 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Component } from '@angular/core';
|
||||
import { MDBModalRef } from 'angular-bootstrap-md';
|
||||
import { Subject } from 'rxjs';
|
||||
import { ScenariosService } from '../services/scenarios.service';
|
||||
var NewProvisionConfirmComponent = /** @class */ (function () {
|
||||
function NewProvisionConfirmComponent(modalRef, _scenariosService) {
|
||||
this.modalRef = modalRef;
|
||||
this._scenariosService = _scenariosService;
|
||||
this.action = new Subject();
|
||||
this.sendData = {
|
||||
description: "",
|
||||
servers: null,
|
||||
isExternalAccess: false,
|
||||
};
|
||||
this.selectedProductVersion = {};
|
||||
this.selectedVmType = {};
|
||||
this.selectedNodeCount = {};
|
||||
this.selectedDiskSizeGb = {};
|
||||
this.servers = {};
|
||||
}
|
||||
NewProvisionConfirmComponent.prototype.ngOnInit = function () {
|
||||
var _this = this;
|
||||
this.vmTypesSub = this._scenariosService.getScenarioVmtypes().subscribe(function (res) {
|
||||
_this.vmTypes = res.results;
|
||||
if (_this.scenario.availableProductVersions.length) {
|
||||
_this.scenario.availableProductVersions.forEach(function (server) {
|
||||
if (server.vmTypeDefault) {
|
||||
_this.selectedVmType[server.index] = server.vmTypeDefault;
|
||||
}
|
||||
if (server.nodeCount) {
|
||||
_this.selectedNodeCount[server.index] = server.nodeCount;
|
||||
}
|
||||
_this.selectedDiskSizeGb[server.index] = server.diskSizeGbDefault || 500;
|
||||
if (server.versions && server.versions.length) {
|
||||
var lastIndex = server.versions.length - 1;
|
||||
_this.selectedProductVersion[server.index] = server.productVersionDefault ? server.productVersionDefault : server.versions[lastIndex].name;
|
||||
}
|
||||
});
|
||||
}
|
||||
_this.vmTypesSub.unsubscribe();
|
||||
});
|
||||
};
|
||||
NewProvisionConfirmComponent.prototype.ngOnDestroy = function () {
|
||||
};
|
||||
NewProvisionConfirmComponent.prototype.confirm = function () {
|
||||
var _this = this;
|
||||
if (!this.sendData.description || this.sendData.description.trim() === "") {
|
||||
return;
|
||||
}
|
||||
this.sendData.servers = {};
|
||||
var _loop_1 = function (key) {
|
||||
if (!this_1.sendData.servers[key]) {
|
||||
this_1.sendData.servers[key] = {};
|
||||
}
|
||||
if (this_1.selectedVmType[key]) {
|
||||
this_1.sendData.servers[key].vmType = this_1.selectedVmType[key];
|
||||
}
|
||||
if (this_1.selectedNodeCount[key]) {
|
||||
this_1.sendData.servers[key].nodeCount = this_1.selectedNodeCount[key];
|
||||
}
|
||||
if (this_1.selectedDiskSizeGb[key]) {
|
||||
this_1.sendData.servers[key].diskSizeGb = this_1.selectedDiskSizeGb[key];
|
||||
}
|
||||
this_1.scenario.availableProductVersions.forEach(function (server) {
|
||||
server.versions.forEach(function (v) {
|
||||
if (v.name === _this.selectedProductVersion[key]) {
|
||||
_this.sendData.servers[key].version = v;
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
var this_1 = this;
|
||||
for (var key in this.selectedVmType) {
|
||||
_loop_1(key);
|
||||
}
|
||||
console.log("sendData", this.sendData);
|
||||
this.action.next(this.sendData);
|
||||
this.modalRef.hide();
|
||||
};
|
||||
NewProvisionConfirmComponent.prototype.checkOnchange = function ($event) {
|
||||
console.log("Checked?", $event.checked);
|
||||
this.sendData.isExternalAccess = $event.checked;
|
||||
};
|
||||
NewProvisionConfirmComponent = __decorate([
|
||||
Component({
|
||||
selector: 'qmi-new-provision',
|
||||
templateUrl: './new-provision.component.html',
|
||||
styleUrls: ['./new-provision.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [MDBModalRef, ScenariosService])
|
||||
], NewProvisionConfirmComponent);
|
||||
return NewProvisionConfirmComponent;
|
||||
}());
|
||||
export { NewProvisionConfirmComponent };
|
||||
//# sourceMappingURL=new-provision.component.js.map
|
||||
1
dist/out-tsc/src/app/alert/new-provision.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/alert/new-provision.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"new-provision.component.js","sourceRoot":"","sources":["../../../../../src/app/alert/new-provision.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAqB,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAgB,MAAM,MAAM,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAOjE;IAiBE,sCAAoB,QAAqB,EAAU,iBAAmC;QAAlE,aAAQ,GAAR,QAAQ,CAAa;QAAU,sBAAiB,GAAjB,iBAAiB,CAAkB;QAdtF,WAAM,GAAiB,IAAI,OAAO,EAAE,CAAC;QAErC,aAAQ,GAAG;YACT,WAAW,EAAE,EAAE;YACf,OAAO,EAAE,IAAI;YACb,gBAAgB,EAAE,KAAK;SACxB,CAAC;QACF,2BAAsB,GAAQ,EAAE,CAAC;QACjC,mBAAc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O,GAAG,CAAC,CAAC;qBACxC;gBACH,CAAC,CAAC,CAAA;YACJ,CAAC,CAAC,CAAC;;;QArBL,KAAK,IAAI,GAAG,IAAI,IAAI,CAAC,cAAc;oBAA1B,GAAG;SAsBX;QACD,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QACvC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAChC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;IACzB,CAAC;IAED,oDAAa,GAAb,UAAc,MAAM;QAClB,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;QACxC,IAAI,CAAC,QAAQ,CAAC,gBAAgB,GAAG,MAAM,CAAC,OAAO,CAAC;IAClD,CAAC;IAzFU,4BAA4B;QALxC,SAAS,CAAC;YACT,QAAQ,EAAE,mBAAmB;YAC7B,WAAW,EAAE,gCAAgC;YAC7C,SAAS,EAAE,CAAC,gCAAgC,CAAC;SAC9C,CAAC;yCAkB8B,WAAW,EAA6B,gBAAgB;OAjB3E,4BAA4B,CA2FxC;IAAD,mCAAC;CAAA,AA3FD,IA2FC;SA3FY,4BAA4B"}
|
||||
4
dist/out-tsc/src/app/app-routing.module.js
vendored
4
dist/out-tsc/src/app/app-routing.module.js
vendored
@@ -8,12 +8,16 @@ import { NgModule } from '@angular/core';
|
||||
import { RouterModule } from '@angular/router';
|
||||
import { ProvisionsComponent } from './provisions/provisions.component';
|
||||
import { AdminComponent } from './admin/admin.component';
|
||||
import { StatsComponent } from './stats/stats.component';
|
||||
import { HomeComponent } from './home/home.component';
|
||||
import { AuthGuard } from './services/auth.guard';
|
||||
import { FaqComponent } from './faq/faq.component';
|
||||
var routes = [
|
||||
{ path: 'home', component: HomeComponent },
|
||||
{ path: 'faq', component: FaqComponent },
|
||||
{ path: 'provisions', component: ProvisionsComponent, canActivate: [AuthGuard] },
|
||||
{ path: 'admin', component: AdminComponent, canActivate: [AuthGuard] },
|
||||
{ path: 'stats', component: StatsComponent },
|
||||
{ path: '',
|
||||
redirectTo: '/home',
|
||||
pathMatch: 'full'
|
||||
|
||||
@@ -1 +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"}
|
||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,gBAAgB,CAAI;IAAD,uBAAC;CAAA,AAAjC,IAAiC;SAApB,gBAAgB"}
|
||||
71
dist/out-tsc/src/app/app.module.js
vendored
71
dist/out-tsc/src/app/app.module.js
vendored
@@ -15,11 +15,43 @@ 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 { MDBBootstrapModule } from 'angular-bootstrap-md';
|
||||
import { MarkdownModule, MarkedRenderer } from 'ngx-markdown';
|
||||
import { HttpClientModule, HttpClient } from '@angular/common/http';
|
||||
import { LogsComponent } from './logs/logs.component';
|
||||
import { ScenariosComponent } from './scenarios/scenarios.component';
|
||||
import { AdminComponent } from './admin/admin.component';
|
||||
import { PopoverconfirmComponent } from './popoverconfirm/popoverconfirm.component';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
import { MyHttpInterceptor } from './interceptors/http.interceptor';
|
||||
import { HTTP_INTERCEPTORS } from '@angular/common/http';
|
||||
import { TableProvisionsAdminComponent } from './tables/table-provisions.component';
|
||||
import { TableScenariosComponent } from './tables/table-scenarios.component';
|
||||
import { TableUsersComponent } from './tables/table-users.component';
|
||||
import { TableNotificationsComponent } from './tables/table-notifications.component';
|
||||
import { AlertComponent } from './modals/alert.component';
|
||||
import { AlertService } from './services/alert.service';
|
||||
import { ModalInfoComponent } from './modals/modalinfo.component';
|
||||
import { ModalConfirmComponent } from './modals/confirm.component';
|
||||
import { FilterPipe } from './filter.pipe';
|
||||
import { FaqComponent } from './faq/faq.component';
|
||||
import { NewProvisionConfirmComponent } from './modals/new-provision.component';
|
||||
import { ScenarioModalComponent } from './modals/edit-scenario.component';
|
||||
import { SubscriptionModalComponent } from './modals/edit-subscription.component';
|
||||
import { TableSubsComponent } from './tables/table-subscriptions.component';
|
||||
import { TableVmTypesComponent } from './tables/table-vmtypes.component';
|
||||
import { SubscriptionsService } from './services/deployopts.service';
|
||||
import { TableApiKeysComponent } from './tables/table-apikeys.component';
|
||||
import { ApikeyModalComponent } from './modals/edit-apikey.component';
|
||||
import { VmTypeModalComponent } from './modals/edit-vmtype.component';
|
||||
import { StatsComponent } from './stats/stats.component';
|
||||
export function markedOptions() {
|
||||
var renderer = new MarkedRenderer();
|
||||
renderer.blockquote = function (text) {
|
||||
return '<blockquote class="blockquote"><p>' + text + '</p></blockquote>';
|
||||
};
|
||||
return { renderer: renderer };
|
||||
}
|
||||
var AppModule = /** @class */ (function () {
|
||||
function AppModule() {
|
||||
}
|
||||
@@ -32,15 +64,46 @@ var AppModule = /** @class */ (function () {
|
||||
LogsComponent,
|
||||
ScenariosComponent,
|
||||
AdminComponent,
|
||||
PopoverconfirmComponent
|
||||
PopoverconfirmComponent,
|
||||
TableProvisionsAdminComponent,
|
||||
TableUsersComponent,
|
||||
AlertComponent,
|
||||
ModalInfoComponent,
|
||||
ModalConfirmComponent,
|
||||
FilterPipe,
|
||||
FaqComponent,
|
||||
NewProvisionConfirmComponent,
|
||||
TableScenariosComponent,
|
||||
TableNotificationsComponent,
|
||||
ScenarioModalComponent,
|
||||
SubscriptionModalComponent,
|
||||
TableSubsComponent,
|
||||
TableApiKeysComponent,
|
||||
ApikeyModalComponent,
|
||||
TableVmTypesComponent,
|
||||
VmTypeModalComponent,
|
||||
StatsComponent
|
||||
],
|
||||
imports: [
|
||||
BrowserModule,
|
||||
AppRoutingModule,
|
||||
UiModule,
|
||||
HttpClientModule
|
||||
HttpClientModule,
|
||||
FormsModule,
|
||||
MDBBootstrapModule.forRoot(),
|
||||
MarkdownModule.forRoot({
|
||||
loader: HttpClient
|
||||
}),
|
||||
],
|
||||
providers: [
|
||||
{ provide: HTTP_INTERCEPTORS, useClass: MyHttpInterceptor, multi: true },
|
||||
ProvisionsService,
|
||||
ScenariosService,
|
||||
SubscriptionsService,
|
||||
UsersService,
|
||||
AlertService,
|
||||
AuthGuard
|
||||
],
|
||||
providers: [ProvisionsService, ScenariosService, UsersService, AuthGuard],
|
||||
bootstrap: [AppComponent]
|
||||
})
|
||||
], AppModule);
|
||||
|
||||
2
dist/out-tsc/src/app/app.module.js.map
vendored
2
dist/out-tsc/src/app/app.module.js.map
vendored
@@ -1 +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,cA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I;IAAD,gBAAC;CAAA,AAA1B,IAA0B;SAAb,SAAS"}
|
||||
33
dist/out-tsc/src/app/faq/faq.component.js
vendored
Normal file
33
dist/out-tsc/src/app/faq/faq.component.js
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Component } from '@angular/core';
|
||||
var FaqComponent = /** @class */ (function () {
|
||||
function FaqComponent() {
|
||||
}
|
||||
FaqComponent.prototype.ngOnInit = function () {
|
||||
};
|
||||
FaqComponent.prototype.onLoad = function (event) {
|
||||
console.log("nice", event);
|
||||
};
|
||||
FaqComponent.prototype.onError = function (event) {
|
||||
console.log("error", event);
|
||||
};
|
||||
FaqComponent = __decorate([
|
||||
Component({
|
||||
selector: 'app-faq-component',
|
||||
templateUrl: './faq.component.html',
|
||||
styleUrls: ['./faq.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [])
|
||||
], FaqComponent);
|
||||
return FaqComponent;
|
||||
}());
|
||||
export { FaqComponent };
|
||||
//# sourceMappingURL=faq.component.js.map
|
||||
1
dist/out-tsc/src/app/faq/faq.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/faq/faq.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"faq.component.js","sourceRoot":"","sources":["../../../../../src/app/faq/faq.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAU,MAAM,eAAe,CAAC;AAOlD;IAEE;IAAgB,CAAC;IAEjB,+BAAQ,GAAR;IACA,CAAC;IAED,6BAAM,GAAN,UAAO,KAAK;QACV,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAC7B,CAAC;IAED,8BAAO,GAAP,UAAQ,KAAK;QACX,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAC9B,CAAC;IAbU,YAAY;QALxB,SAAS,CAAC;YACT,QAAQ,EAAE,mBAAmB;YAC7B,WAAW,EAAE,sBAAsB;YACnC,SAAS,EAAE,CAAC,sBAAsB,CAAC;SACpC,CAAC;;OACW,YAAY,CAexB;IAAD,mBAAC;CAAA,AAfD,IAeC;SAfY,YAAY"}
|
||||
21
dist/out-tsc/src/app/faq/faq.component.spec.js
vendored
Normal file
21
dist/out-tsc/src/app/faq/faq.component.spec.js
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import { async, TestBed } from '@angular/core/testing';
|
||||
import { FaqComponent } from './faq.component';
|
||||
describe('FaqComponentComponent', function () {
|
||||
var component;
|
||||
var fixture;
|
||||
beforeEach(async(function () {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [FaqComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
beforeEach(function () {
|
||||
fixture = TestBed.createComponent(FaqComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
it('should create', function () {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
//# sourceMappingURL=faq.component.spec.js.map
|
||||
1
dist/out-tsc/src/app/faq/faq.component.spec.js.map
vendored
Normal file
1
dist/out-tsc/src/app/faq/faq.component.spec.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"faq.component.spec.js","sourceRoot":"","sources":["../../../../../src/app/faq/faq.component.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAoB,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,QAAQ,CAAC,uBAAuB,EAAE;IAChC,IAAI,SAAuB,CAAC;IAC5B,IAAI,OAAuC,CAAC;IAE5C,UAAU,CAAC,KAAK,CAAC;QACf,OAAO,CAAC,sBAAsB,CAAC;YAC7B,YAAY,EAAE,CAAE,YAAY,CAAE;SAC/B,CAAC;aACD,iBAAiB,EAAE,CAAC;IACvB,CAAC,CAAC,CAAC,CAAC;IAEJ,UAAU,CAAC;QACT,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC;QAChD,SAAS,GAAG,OAAO,CAAC,iBAAiB,CAAC;QACtC,OAAO,CAAC,aAAa,EAAE,CAAC;IAC1B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,eAAe,EAAE;QAClB,MAAM,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
||||
31
dist/out-tsc/src/app/filter.pipe.js
vendored
Normal file
31
dist/out-tsc/src/app/filter.pipe.js
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
import { Pipe } from '@angular/core';
|
||||
var FilterPipe = /** @class */ (function () {
|
||||
function FilterPipe() {
|
||||
}
|
||||
FilterPipe.prototype.transform = function (items, searchText) {
|
||||
if (!items) {
|
||||
return [];
|
||||
}
|
||||
if (!searchText) {
|
||||
return items;
|
||||
}
|
||||
searchText = searchText.toLocaleLowerCase();
|
||||
return items.filter(function (it) {
|
||||
return JSON.stringify(it).toLocaleLowerCase().includes(searchText);
|
||||
});
|
||||
};
|
||||
FilterPipe = __decorate([
|
||||
Pipe({
|
||||
name: 'filter'
|
||||
})
|
||||
], FilterPipe);
|
||||
return FilterPipe;
|
||||
}());
|
||||
export { FilterPipe };
|
||||
//# sourceMappingURL=filter.pipe.js.map
|
||||
1
dist/out-tsc/src/app/filter.pipe.js.map
vendored
Normal file
1
dist/out-tsc/src/app/filter.pipe.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"filter.pipe.js","sourceRoot":"","sources":["../../../../src/app/filter.pipe.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;AAKpD;IAAA;IAeA,CAAC;IAdC,8BAAS,GAAT,UAAU,KAAY,EAAE,UAAkB;QAExC,IAAI,CAAC,KAAK,EAAE;YACV,OAAO,EAAE,CAAC;SACX;QACD,IAAI,CAAC,UAAU,EAAE;YACf,OAAO,KAAK,CAAC;SACd;QACD,UAAU,GAAG,UAAU,CAAC,iBAAiB,EAAE,CAAC;QAE5C,OAAO,KAAK,CAAC,MAAM,CAAC,UAAA,EAAE;YACpB,OAAO,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,iBAAiB,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;QACrE,CAAC,CAAC,CAAC;IACL,CAAC;IAdU,UAAU;QAHtB,IAAI,CAAC;YACJ,IAAI,EAAE,QAAQ;SACf,CAAC;OACW,UAAU,CAetB;IAAD,iBAAC;CAAA,AAfD,IAeC;SAfY,UAAU"}
|
||||
8
dist/out-tsc/src/app/filter.pipe.spec.js
vendored
Normal file
8
dist/out-tsc/src/app/filter.pipe.spec.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import { FilterPipe } from './filter.pipe';
|
||||
describe('FilterPipe', function () {
|
||||
it('create an instance', function () {
|
||||
var pipe = new FilterPipe();
|
||||
expect(pipe).toBeTruthy();
|
||||
});
|
||||
});
|
||||
//# sourceMappingURL=filter.pipe.spec.js.map
|
||||
1
dist/out-tsc/src/app/filter.pipe.spec.js.map
vendored
Normal file
1
dist/out-tsc/src/app/filter.pipe.spec.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"filter.pipe.spec.js","sourceRoot":"","sources":["../../../../src/app/filter.pipe.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,QAAQ,CAAC,YAAY,EAAE;IACrB,EAAE,CAAC,oBAAoB,EAAE;QACvB,IAAM,IAAI,GAAG,IAAI,UAAU,EAAE,CAAC;QAC9B,MAAM,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IAC5B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
||||
3
dist/out-tsc/src/app/home/home.component.js
vendored
3
dist/out-tsc/src/app/home/home.component.js
vendored
@@ -23,6 +23,9 @@ var HomeComponent = /** @class */ (function () {
|
||||
HomeComponent.prototype.ngOnDestroy = function () {
|
||||
this.subs.unsubscribe();
|
||||
};
|
||||
HomeComponent.prototype.popupConfirm = function () {
|
||||
console.log("Confirmed");
|
||||
};
|
||||
HomeComponent = __decorate([
|
||||
Component({
|
||||
selector: 'app-home',
|
||||
|
||||
@@ -1 +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"}
|
||||
{"version":3,"file":"home.component.js","sourceRoot":"","sources":["../../../../../src/app/home/home.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAU,MAAM,eAAe,CAAC;AAElD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AASnD;IAKE,uBAAqB,KAAgB;QAArC,iBAKC;QALoB,UAAK,GAAL,KAAK,CAAW;QACnC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,SAAS,CAAE,UAAA,KAAK;YACnD,KAAI,CAAC,IAAI,GAAG,KAAK,CAAC;YAClB,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,KAAI,CAAC,IAAI,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;IACL,CAAC;IAED,gCAAQ,GAAR;IAEA,CAAC;IAED,mCAAW,GAAX;QACE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;IAC1B,CAAC;IAED,oCAAY,GAAZ;QACE,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAC3B,CAAC;IAtBU,aAAa;QANzB,SAAS,CAAC;YACT,QAAQ,EAAE,UAAU;YACpB,WAAW,EAAE,uBAAuB;YACpC,SAAS,EAAE,CAAC,uBAAuB,CAAC;YACpC,SAAS,EAAE,EAAE;SACd,CAAC;yCAM4B,SAAS;OAL1B,aAAa,CAwBzB;IAAD,oBAAC;CAAA,AAxBD,IAwBC;SAxBY,aAAa"}
|
||||
40
dist/out-tsc/src/app/interceptors/http.interceptor.js
vendored
Normal file
40
dist/out-tsc/src/app/interceptors/http.interceptor.js
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Injectable } from '@angular/core';
|
||||
import { HttpErrorResponse } from '@angular/common/http';
|
||||
import { tap } from 'rxjs/operators';
|
||||
import { Router } from '@angular/router';
|
||||
import { AuthGuard } from '../services/auth.guard';
|
||||
var MyHttpInterceptor = /** @class */ (function () {
|
||||
function MyHttpInterceptor(router, _auth) {
|
||||
this.router = router;
|
||||
this._auth = _auth;
|
||||
}
|
||||
MyHttpInterceptor.prototype.intercept = function (request, next) {
|
||||
var _this = this;
|
||||
return next.handle(request).pipe(tap(function () { }, function (err) {
|
||||
if (err instanceof HttpErrorResponse) {
|
||||
if (err.status !== 401) {
|
||||
return;
|
||||
}
|
||||
console.log("Interceptor error 401!!");
|
||||
_this._auth.clearUser();
|
||||
_this.router.navigate(['home']);
|
||||
}
|
||||
}));
|
||||
};
|
||||
MyHttpInterceptor = __decorate([
|
||||
Injectable(),
|
||||
__metadata("design:paramtypes", [Router, AuthGuard])
|
||||
], MyHttpInterceptor);
|
||||
return MyHttpInterceptor;
|
||||
}());
|
||||
export { MyHttpInterceptor };
|
||||
//# sourceMappingURL=http.interceptor.js.map
|
||||
1
dist/out-tsc/src/app/interceptors/http.interceptor.js.map
vendored
Normal file
1
dist/out-tsc/src/app/interceptors/http.interceptor.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"http.interceptor.js","sourceRoot":"","sources":["../../../../../src/app/interceptors/http.interceptor.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAKL,iBAAiB,EAClB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAC,GAAG,EAAC,MAAM,gBAAgB,CAAC;AACnC,OAAO,EAAC,MAAM,EAAC,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGnD;IAEE,2BAAoB,MAAc,EAAU,KAAgB;QAAxC,WAAM,GAAN,MAAM,CAAQ;QAAU,UAAK,GAAL,KAAK,CAAW;IAAG,CAAC;IAEhE,qCAAS,GAAT,UAAU,OAAyB,EAAE,IAAiB;QAAtD,iBAcC;QAZC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAE,GAAG,CAAC,cAAO,CAAC,EAC5C,UAAC,GAAQ;YAET,IAAI,GAAG,YAAY,iBAAiB,EAAE;gBACpC,IAAI,GAAG,CAAC,MAAM,KAAK,GAAG,EAAE;oBACvB,OAAO;iBACP;gBACD,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;gBACvC,KAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;gBACvB,KAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;aAChC;QACH,CAAC,CAAC,CAAC,CAAC;IACN,CAAC;IAlBU,iBAAiB;QAD7B,UAAU,EAAE;yCAGiB,MAAM,EAAiB,SAAS;OAFjD,iBAAiB,CAmB7B;IAAD,wBAAC;CAAA,AAnBD,IAmBC;SAnBY,iBAAiB"}
|
||||
36
dist/out-tsc/src/app/logs/logs.component.js
vendored
36
dist/out-tsc/src/app/logs/logs.component.js
vendored
@@ -20,7 +20,6 @@ var LogsComponent = /** @class */ (function () {
|
||||
LogsComponent.prototype.onClick = function (targetElement) {
|
||||
var clickedInside = this.insideElement.nativeElement.contains(targetElement);
|
||||
if (!clickedInside) {
|
||||
console.log('outside clicked');
|
||||
this.onClose.emit(false);
|
||||
}
|
||||
};
|
||||
@@ -33,20 +32,45 @@ var LogsComponent = /** @class */ (function () {
|
||||
});
|
||||
}
|
||||
else if (this.type === "destroy") {
|
||||
this.sub = timer(0, 5000).pipe(switchMap(function () { return _this._provisionsService.getDestroyLogs(_this.selectedprov.destroyId); })).subscribe(function (content) {
|
||||
this.sub = timer(0, 5000).pipe(switchMap(function () { return _this._provisionsService.getDestroyLogs(_this.selectedprov.destroy._id); })).subscribe(function (content) {
|
||||
_this.content = content;
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
LogsComponent.prototype.ngOnInit = function () {
|
||||
this.refresh();
|
||||
LogsComponent.prototype.ngOnInit = function () { };
|
||||
LogsComponent.prototype.ngOnChanges = function (changes) {
|
||||
var _this = this;
|
||||
this.content = null;
|
||||
if (this.sub) {
|
||||
this.sub.unsubscribe();
|
||||
this.sub = null;
|
||||
}
|
||||
if (changes.show && changes.show.currentValue) {
|
||||
if (this.type === "provision") {
|
||||
this.sub = timer(0, 5000).pipe(switchMap(function () { return _this._provisionsService.getProvisionLogs(_this.selectedprov._id); })).subscribe(function (content) {
|
||||
_this.content = content;
|
||||
});
|
||||
}
|
||||
else if (this.type === "destroy") {
|
||||
this.sub = timer(0, 5000).pipe(switchMap(function () { return _this._provisionsService.getDestroyLogs(_this.selectedprov.destroy._id); })).subscribe(function (content) {
|
||||
_this.content = content;
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
LogsComponent.prototype.ngOnDestroy = function () {
|
||||
if (this.sub) {
|
||||
this.sub.unsubscribe();
|
||||
this.sub = null;
|
||||
}
|
||||
};
|
||||
LogsComponent.prototype.close = function () {
|
||||
this.content = null;
|
||||
if (this.sub) {
|
||||
this.sub.unsubscribe();
|
||||
this.sub = null;
|
||||
}
|
||||
this.onClose.emit(false);
|
||||
};
|
||||
__decorate([
|
||||
@@ -59,6 +83,10 @@ var LogsComponent = /** @class */ (function () {
|
||||
__metadata("design:paramtypes", [Object]),
|
||||
__metadata("design:returntype", void 0)
|
||||
], LogsComponent.prototype, "onClick", null);
|
||||
__decorate([
|
||||
Input(),
|
||||
__metadata("design:type", Object)
|
||||
], LogsComponent.prototype, "show", void 0);
|
||||
__decorate([
|
||||
Input(),
|
||||
__metadata("design:type", Object)
|
||||
|
||||
@@ -1 +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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,CAAC;IArE2B;QAA3B,SAAS,CAAC,eAAe,CAAC;;wDAAe;IAG1C;QAFC,YAAY,CAAC,gBAAgB,EAAE,CAAC,eAAe,CAAC,CAAC;;;;gDAOjD;IAQQ;QAAR,KAAK,EAAE;;+CAAM;IACL;QAAR,KAAK,EAAE;;uDAAc;IACb;QAAR,KAAK,EAAE;;+CAAM;IACJ;QAAT,MAAM,EAAE;;kDAA8B;IArB5B,aAAa;QALzB,SAAS,CAAC;YACT,QAAQ,EAAE,UAAU;YACpB,WAAW,EAAE,uBAAuB;YACpC,SAAS,EAAE,CAAC,uBAAuB,CAAC;SACrC,CAAC;yCAiBwC,iBAAiB;OAhB9C,aAAa,CAyEzB;IAAD,oBAAC;CAAA,AAzED,IAyEC;SAzEY,aAAa"}
|
||||
43
dist/out-tsc/src/app/modals/alert.component.js
vendored
Normal file
43
dist/out-tsc/src/app/modals/alert.component.js
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Component, ViewChild, ElementRef } from '@angular/core';
|
||||
import { AlertService } from '../services/alert.service';
|
||||
var AlertComponent = /** @class */ (function () {
|
||||
function AlertComponent(_alertService) {
|
||||
this._alertService = _alertService;
|
||||
this.alert = null;
|
||||
}
|
||||
AlertComponent.prototype.ngOnInit = function () {
|
||||
this.subscription = this._alertService.getAlertEmitter().subscribe(function (data) {
|
||||
this.alert = data;
|
||||
}.bind(this));
|
||||
};
|
||||
AlertComponent.prototype.ngOnDestroy = function () {
|
||||
this.subscription.unsubscribe();
|
||||
};
|
||||
AlertComponent.prototype.closeAlert = function () {
|
||||
this.alert = null;
|
||||
};
|
||||
__decorate([
|
||||
ViewChild('qmialert', { static: true }),
|
||||
__metadata("design:type", ElementRef)
|
||||
], AlertComponent.prototype, "alertEl", void 0);
|
||||
AlertComponent = __decorate([
|
||||
Component({
|
||||
selector: 'qmi-alert',
|
||||
templateUrl: './alert.component.html',
|
||||
styleUrls: ['./alert.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [AlertService])
|
||||
], AlertComponent);
|
||||
return AlertComponent;
|
||||
}());
|
||||
export { AlertComponent };
|
||||
//# sourceMappingURL=alert.component.js.map
|
||||
1
dist/out-tsc/src/app/modals/alert.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/modals/alert.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"alert.component.js","sourceRoot":"","sources":["../../../../../src/app/modals/alert.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAqB,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACpF,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAQzD;IAME,wBAAoB,aAA2B;QAA3B,kBAAa,GAAb,aAAa,CAAc;QAF/C,UAAK,GAAS,IAAI,CAAC;IAE+B,CAAC;IAEnD,iCAAQ,GAAR;QACE,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC,eAAe,EAAE,CAAC,SAAS,CAAC,UAAS,IAAI;YAC5E,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QACtB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAChB,CAAC;IAED,oCAAW,GAAX;QACE,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC;IAClC,CAAC;IAED,mCAAU,GAAV;QACI,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACtB,CAAC;IAlBwC;QAAxC,SAAS,CAAC,UAAU,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;kCAAU,UAAU;mDAAC;IAFlD,cAAc;QAL1B,SAAS,CAAC;YACT,QAAQ,EAAE,WAAW;YACrB,WAAW,EAAE,wBAAwB;YACrC,SAAS,EAAE,CAAC,wBAAwB,CAAC;SACtC,CAAC;yCAOmC,YAAY;OANpC,cAAc,CAsB1B;IAAD,qBAAC;CAAA,AAtBD,IAsBC;SAtBY,cAAc"}
|
||||
40
dist/out-tsc/src/app/modals/confirm.component.js
vendored
Normal file
40
dist/out-tsc/src/app/modals/confirm.component.js
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Component } from '@angular/core';
|
||||
import { MDBModalRef } from 'angular-bootstrap-md';
|
||||
import { Subject } from 'rxjs';
|
||||
var ModalConfirmComponent = /** @class */ (function () {
|
||||
function ModalConfirmComponent(modalRef) {
|
||||
this.modalRef = modalRef;
|
||||
this.action = new Subject();
|
||||
}
|
||||
ModalConfirmComponent.prototype.ngOnInit = function () {
|
||||
if (!this.info.buttonColor) {
|
||||
this.info.buttonColor = "danger";
|
||||
}
|
||||
};
|
||||
ModalConfirmComponent.prototype.ngOnDestroy = function () {
|
||||
};
|
||||
ModalConfirmComponent.prototype.confirm = function () {
|
||||
this.action.next();
|
||||
this.modalRef.hide();
|
||||
};
|
||||
ModalConfirmComponent = __decorate([
|
||||
Component({
|
||||
selector: 'qmi-modalconfirm',
|
||||
templateUrl: './confirm.component.html',
|
||||
styleUrls: ['./confirm.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [MDBModalRef])
|
||||
], ModalConfirmComponent);
|
||||
return ModalConfirmComponent;
|
||||
}());
|
||||
export { ModalConfirmComponent };
|
||||
//# sourceMappingURL=confirm.component.js.map
|
||||
1
dist/out-tsc/src/app/modals/confirm.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/modals/confirm.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"confirm.component.js","sourceRoot":"","sources":["../../../../../src/app/modals/confirm.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAA4B,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAO/B;IAKE,+BAAoB,QAAqB;QAArB,aAAQ,GAAR,QAAQ,CAAa;QAFzC,WAAM,GAAiB,IAAI,OAAO,EAAE,CAAC;IAEQ,CAAC;IAE9C,wCAAQ,GAAR;QACE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;YAC1B,IAAI,CAAC,IAAI,CAAC,WAAW,GAAG,QAAQ,CAAC;SAClC;IACH,CAAC;IAED,2CAAW,GAAX;IAEA,CAAC;IAED,uCAAO,GAAP;QACI,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;QACnB,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;IACzB,CAAC;IApBU,qBAAqB;QALjC,SAAS,CAAC;YACT,QAAQ,EAAE,kBAAkB;YAC5B,WAAW,EAAE,0BAA0B;YACvC,SAAS,EAAE,CAAC,0BAA0B,CAAC;SACxC,CAAC;yCAM8B,WAAW;OAL9B,qBAAqB,CAsBjC;IAAD,4BAAC;CAAA,AAtBD,IAsBC;SAtBY,qBAAqB"}
|
||||
65
dist/out-tsc/src/app/modals/edit-apikey.component.js
vendored
Normal file
65
dist/out-tsc/src/app/modals/edit-apikey.component.js
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Component } from '@angular/core';
|
||||
import { MDBModalRef } from 'angular-bootstrap-md';
|
||||
import { Subject } from 'rxjs';
|
||||
import { UsersService } from '../services/users.service';
|
||||
var ApikeyModalComponent = /** @class */ (function () {
|
||||
function ApikeyModalComponent(modalRef, _usersService) {
|
||||
this.modalRef = modalRef;
|
||||
this._usersService = _usersService;
|
||||
this.action = new Subject();
|
||||
this.sendData = {};
|
||||
}
|
||||
ApikeyModalComponent.prototype.ngOnInit = function () {
|
||||
var _this = this;
|
||||
this._usersService.getUsers().subscribe(function (res) {
|
||||
_this.users = res.results;
|
||||
console.log("apiKey", _this.apiKey);
|
||||
if (_this.apiKey) {
|
||||
_this.sendData = JSON.parse(JSON.stringify(_this.apiKey));
|
||||
}
|
||||
if (_this.apiKey.user) {
|
||||
_this.selectedUser = _this.apiKey.user._id;
|
||||
}
|
||||
});
|
||||
};
|
||||
ApikeyModalComponent.prototype.ngOnDestroy = function () {
|
||||
};
|
||||
ApikeyModalComponent.prototype.confirm = function () {
|
||||
var _this = this;
|
||||
this.sendData.user = this.selectedUser;
|
||||
console.log("sendData", this.sendData);
|
||||
this._usersService.addApikey(this.sendData.user).subscribe(function (res) {
|
||||
console.log("done", res);
|
||||
_this.action.next("DONE!!!");
|
||||
_this.modalRef.hide();
|
||||
});
|
||||
};
|
||||
ApikeyModalComponent.prototype.delete = function () {
|
||||
var _this = this;
|
||||
this._usersService.delApikey(this.sendData._id).subscribe(function (res) {
|
||||
console.log("done", res);
|
||||
_this.action.next("DONE!!!");
|
||||
_this.modalRef.hide();
|
||||
});
|
||||
};
|
||||
ApikeyModalComponent = __decorate([
|
||||
Component({
|
||||
selector: 'qmi-new-apikey',
|
||||
templateUrl: './edit-apikey.component.html',
|
||||
styleUrls: ['./edit-apikey.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [MDBModalRef, UsersService])
|
||||
], ApikeyModalComponent);
|
||||
return ApikeyModalComponent;
|
||||
}());
|
||||
export { ApikeyModalComponent };
|
||||
//# sourceMappingURL=edit-apikey.component.js.map
|
||||
1
dist/out-tsc/src/app/modals/edit-apikey.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/modals/edit-apikey.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"edit-apikey.component.js","sourceRoot":"","sources":["../../../../../src/app/modals/edit-apikey.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAqB,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAgB,MAAM,MAAM,CAAC;AAG7C,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAOzD;IASE,8BAAoB,QAAqB,EAAU,aA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AEP,CAAC;IAED,qCAAM,GAAN;QAAA,iBAMC;QALC,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,SAAS,CAAE,UAAA,GAAG;YAC5D,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;YACzB,KAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAC5B,KAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;QACvB,CAAC,CAAC,CAAC;IACL,CAAC;IAhDU,oBAAoB;QALhC,SAAS,CAAC;YACT,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,8BAA8B;YAC3C,SAAS,EAAE,CAAC,8BAA8B,CAAC;SAC5C,CAAC;yCAU8B,WAAW,EAAyB,YAAY;OATnE,oBAAoB,CAkDhC;IAAD,2BAAC;CAAA,AAlDD,IAkDC;SAlDY,oBAAoB"}
|
||||
105
dist/out-tsc/src/app/modals/edit-scenario.component.js
vendored
Normal file
105
dist/out-tsc/src/app/modals/edit-scenario.component.js
vendored
Normal file
@@ -0,0 +1,105 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Component } from '@angular/core';
|
||||
import { MDBModalRef } from 'angular-bootstrap-md';
|
||||
import { Subject } from 'rxjs';
|
||||
import { ScenariosService } from '../services/scenarios.service';
|
||||
import { SubscriptionsService } from '../services/deployopts.service';
|
||||
var ScenarioModalComponent = /** @class */ (function () {
|
||||
function ScenarioModalComponent(modalRef, _scenariosService, _subscriptionsService) {
|
||||
this.modalRef = modalRef;
|
||||
this._scenariosService = _scenariosService;
|
||||
this._subscriptionsService = _subscriptionsService;
|
||||
this.action = new Subject();
|
||||
this.sendData = {
|
||||
availableProductVersions: [{
|
||||
product: 'String: <ie: Qlik Sense>',
|
||||
vmTypeDefault: 'String: <i.e: Standard_D8s_v3>',
|
||||
diskSizeGbDefault: 'Integer: <values: 128,250,500,750,1000>',
|
||||
index: 'vm1',
|
||||
versions: []
|
||||
}]
|
||||
};
|
||||
}
|
||||
ScenarioModalComponent.prototype.ngOnInit = function () {
|
||||
var _this = this;
|
||||
this._subscriptionsService.getSubscriptions().subscribe(function (res) {
|
||||
_this.subscriptions = res.results;
|
||||
console.log("SCENARIO", _this.scenario);
|
||||
if (_this.scenario) {
|
||||
_this.sendData = JSON.parse(JSON.stringify(_this.scenario));
|
||||
}
|
||||
console.log("sendData", _this.sendData);
|
||||
if (_this.scenario.subscription) {
|
||||
_this.selectedSubscription = _this.scenario.subscription._id;
|
||||
}
|
||||
else {
|
||||
_this.selectedSubscription = res.results[0]._id;
|
||||
}
|
||||
});
|
||||
};
|
||||
ScenarioModalComponent.prototype.ngOnDestroy = function () {
|
||||
};
|
||||
ScenarioModalComponent.prototype.confirm = function () {
|
||||
var _this = this;
|
||||
this.sendData.subscription = this.selectedSubscription;
|
||||
console.log("sendData", this.sendData);
|
||||
//this.action.next(this.sendData);
|
||||
if (this.sendData._id) {
|
||||
var id = this.sendData._id.toString();
|
||||
this.sendData._id = undefined;
|
||||
this._scenariosService.updateScenario(id, this.sendData).subscribe(function (res) {
|
||||
console.log("done", res);
|
||||
_this.action.next("DONE!!!");
|
||||
_this.modalRef.hide();
|
||||
});
|
||||
}
|
||||
else {
|
||||
this._scenariosService.addScenario(this.sendData).subscribe(function (res) {
|
||||
console.log("done", res);
|
||||
_this.action.next("DONE!!!");
|
||||
_this.modalRef.hide();
|
||||
});
|
||||
}
|
||||
};
|
||||
ScenarioModalComponent.prototype.delete = function () {
|
||||
var _this = this;
|
||||
this._scenariosService.deleteScenario(this.sendData._id).subscribe(function (res) {
|
||||
console.log("done", res);
|
||||
_this.action.next("DONE!!!");
|
||||
_this.modalRef.hide();
|
||||
});
|
||||
};
|
||||
ScenarioModalComponent.prototype.checkOnchange = function ($event, field) {
|
||||
console.log("Checked?", $event.checked);
|
||||
this.sendData[field] = $event.checked;
|
||||
};
|
||||
ScenarioModalComponent.prototype.updateJson = function (event, property) {
|
||||
var editField = event.target.textContent.trim();
|
||||
try {
|
||||
var value = JSON.parse(editField);
|
||||
this.sendData[property] = value;
|
||||
}
|
||||
catch (e) {
|
||||
console.log("error json", e);
|
||||
}
|
||||
};
|
||||
ScenarioModalComponent = __decorate([
|
||||
Component({
|
||||
selector: 'qmi-new-scenario',
|
||||
templateUrl: './edit-scenario.component.html',
|
||||
styleUrls: ['./edit-scenario.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [MDBModalRef, ScenariosService, SubscriptionsService])
|
||||
], ScenarioModalComponent);
|
||||
return ScenarioModalComponent;
|
||||
}());
|
||||
export { ScenarioModalComponent };
|
||||
//# sourceMappingURL=edit-scenario.component.js.map
|
||||
1
dist/out-tsc/src/app/modals/edit-scenario.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/modals/edit-scenario.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"edit-scenario.component.js","sourceRoot":"","sources":["../../../../../src/app/modals/edit-scenario.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAqB,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAgB,MAAM,MAAM,CAAC;AAC7C,OAA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AG;YACrE,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;YACzB,KAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAC5B,KAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;QACvB,CAAC,CAAC,CAAC;IACL,CAAC;IAED,8CAAa,GAAb,UAAc,MAAM,EAAE,KAAK;QACzB,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;QACxC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC;IACxC,CAAC;IAED,2CAAU,GAAV,UAAW,KAAU,EAAE,QAAgB;QACrC,IAAI,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;QAChD,IAAI;YACA,IAAI,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;YAClC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC;SAEnC;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;SAChC;IACH,CAAC;IAtFU,sBAAsB;QALlC,SAAS,CAAC;YACT,QAAQ,EAAE,kBAAkB;YAC5B,WAAW,EAAE,gCAAgC;YAC7C,SAAS,EAAE,CAAC,gCAAgC,CAAC;SAC9C,CAAC;yCAkB8B,WAAW,EAA6B,gBAAgB,EAAiC,oBAAoB;OAjBhI,sBAAsB,CAuFlC;IAAD,6BAAC;CAAA,AAvFD,IAuFC;SAvFY,sBAAsB"}
|
||||
81
dist/out-tsc/src/app/modals/edit-subscription.component.js
vendored
Normal file
81
dist/out-tsc/src/app/modals/edit-subscription.component.js
vendored
Normal file
@@ -0,0 +1,81 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Component } from '@angular/core';
|
||||
import { MDBModalRef } from 'angular-bootstrap-md';
|
||||
import { Subject } from 'rxjs';
|
||||
import { SubscriptionsService } from '../services/deployopts.service';
|
||||
var SubscriptionModalComponent = /** @class */ (function () {
|
||||
function SubscriptionModalComponent(modalRef, _subscriptionsService) {
|
||||
this.modalRef = modalRef;
|
||||
this._subscriptionsService = _subscriptionsService;
|
||||
this.action = new Subject();
|
||||
this.sendData = {};
|
||||
}
|
||||
SubscriptionModalComponent.prototype.ngOnInit = function () {
|
||||
if (this.subscription) {
|
||||
this.sendData = JSON.parse(JSON.stringify(this.subscription));
|
||||
}
|
||||
};
|
||||
SubscriptionModalComponent.prototype.ngOnDestroy = function () {
|
||||
};
|
||||
SubscriptionModalComponent.prototype.confirm = function () {
|
||||
var _this = this;
|
||||
console.log("sendData", this.sendData);
|
||||
if (!this.sendData.vnetExists) {
|
||||
this.sendData.subnetId = null;
|
||||
this.sendData.appGwSubnetId = null;
|
||||
}
|
||||
else {
|
||||
if (!this.sendData.subnetId || !this.sendData.appGwSubnetId) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
//this.action.next(this.sendData);
|
||||
if (this.sendData._id) {
|
||||
var id = this.sendData._id.toString();
|
||||
this.sendData._id = undefined;
|
||||
this._subscriptionsService.updateSubscription(id, this.sendData).subscribe(function (res) {
|
||||
console.log("done", res);
|
||||
_this.action.next("DONE!!!");
|
||||
_this.modalRef.hide();
|
||||
});
|
||||
}
|
||||
else {
|
||||
this._subscriptionsService.addSubscription(this.sendData).subscribe(function (res) {
|
||||
console.log("done", res);
|
||||
_this.action.next("DONE!!!");
|
||||
_this.modalRef.hide();
|
||||
});
|
||||
}
|
||||
};
|
||||
SubscriptionModalComponent.prototype.checkOnchange = function ($event, field) {
|
||||
console.log("Checked?", $event.checked);
|
||||
this.sendData[field] = $event.checked;
|
||||
};
|
||||
SubscriptionModalComponent.prototype.delete = function () {
|
||||
var _this = this;
|
||||
this._subscriptionsService.deleteScenario(this.sendData._id).subscribe(function (res) {
|
||||
console.log("done", res);
|
||||
_this.action.next("DONE!!!");
|
||||
_this.modalRef.hide();
|
||||
});
|
||||
};
|
||||
SubscriptionModalComponent = __decorate([
|
||||
Component({
|
||||
selector: 'qmi-new-subscription',
|
||||
templateUrl: './edit-subscription.component.html',
|
||||
styleUrls: ['./edit-subscription.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [MDBModalRef, SubscriptionsService])
|
||||
], SubscriptionModalComponent);
|
||||
return SubscriptionModalComponent;
|
||||
}());
|
||||
export { SubscriptionModalComponent };
|
||||
//# sourceMappingURL=edit-subscription.component.js.map
|
||||
1
dist/out-tsc/src/app/modals/edit-subscription.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/modals/edit-subscription.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"edit-subscription.component.js","sourceRoot":"","sources":["../../../../../src/app/modals/edit-subscription.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAqB,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAgB,MAAM,MAAM,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAOtE;IASE,oCAAoB,QAAqB,EAAU,qBAA2C;QAA1E,aAAQ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ist/out-tsc/src/app/modals/edit-vmtype.component.js
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Component } from '@angular/core';
|
||||
import { MDBModalRef } from 'angular-bootstrap-md';
|
||||
import { Subject } from 'rxjs';
|
||||
import { ScenariosService } from '../services/scenarios.service';
|
||||
var VmTypeModalComponent = /** @class */ (function () {
|
||||
function VmTypeModalComponent(modalRef, _scenariosService) {
|
||||
this.modalRef = modalRef;
|
||||
this._scenariosService = _scenariosService;
|
||||
this.action = new Subject();
|
||||
this.sendData = {};
|
||||
}
|
||||
VmTypeModalComponent.prototype.ngOnInit = function () {
|
||||
if (this.item) {
|
||||
this.sendData = JSON.parse(JSON.stringify(this.item));
|
||||
}
|
||||
};
|
||||
VmTypeModalComponent.prototype.ngOnDestroy = function () {
|
||||
};
|
||||
VmTypeModalComponent.prototype.confirm = function () {
|
||||
var _this = this;
|
||||
console.log("sendData", this.sendData);
|
||||
if (this.sendData._id) {
|
||||
this._scenariosService.updateScenarioVmtype(this.sendData._id, this.sendData).subscribe(function (res) {
|
||||
console.log("done", res);
|
||||
_this.action.next("DONE!!!");
|
||||
_this.modalRef.hide();
|
||||
});
|
||||
}
|
||||
else {
|
||||
this._scenariosService.createScenarioVmtype(this.sendData).subscribe(function (res) {
|
||||
console.log("done", res);
|
||||
_this.action.next("DONE!!!");
|
||||
_this.modalRef.hide();
|
||||
});
|
||||
}
|
||||
};
|
||||
VmTypeModalComponent.prototype.delete = function () {
|
||||
var _this = this;
|
||||
this._scenariosService.deleteScenarioVmtype(this.sendData._id).subscribe(function (res) {
|
||||
console.log("done", res);
|
||||
_this.action.next("DONE!!!");
|
||||
_this.modalRef.hide();
|
||||
});
|
||||
};
|
||||
VmTypeModalComponent.prototype.checkOnchange = function ($event, field) {
|
||||
this.sendData[field] = $event.checked;
|
||||
};
|
||||
VmTypeModalComponent = __decorate([
|
||||
Component({
|
||||
selector: 'qmi-new-vmtype',
|
||||
templateUrl: './edit-vmtype.component.html',
|
||||
styleUrls: []
|
||||
}),
|
||||
__metadata("design:paramtypes", [MDBModalRef, ScenariosService])
|
||||
], VmTypeModalComponent);
|
||||
return VmTypeModalComponent;
|
||||
}());
|
||||
export { VmTypeModalComponent };
|
||||
//# sourceMappingURL=edit-vmtype.component.js.map
|
||||
1
dist/out-tsc/src/app/modals/edit-vmtype.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/modals/edit-vmtype.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"edit-vmtype.component.js","sourceRoot":"","sources":["../../../../../src/app/modals/edit-vmtype.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAqB,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAOjE;IAME,8BAAoB,QAAqB,EAAU,iBAAmC;QAAlE,aAAQ,GAAR,QAAQ,CAAa;QAAU,sBAAiB,GAAjB,iBAAiB,CAAkB;QAHtF,WAAM,GAAiB,IAAI,OAAO,EAAE,CAAC;QACrC,aAAQ,GAAS,EAAE,CAAC;IAEsE,CAAC;I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AAG,CAAC,CAAC;YACzB,KAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAC5B,KAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;QACvB,CAAC,CAAC,CAAC;IACL,CAAC;IAED,4CAAa,GAAb,UAAc,MAAM,EAAE,KAAK;QACzB,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC;IACxC,CAAC;IAjDU,oBAAoB;QALhC,SAAS,CAAC;YACT,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,8BAA8B;YAC3C,SAAS,EAAE,EAAE;SACd,CAAC;yCAO8B,WAAW,EAA6B,gBAAgB;OAN3E,oBAAoB,CAmDhC;IAAD,2BAAC;CAAA,AAnDD,IAmDC;SAnDY,oBAAoB"}
|
||||
31
dist/out-tsc/src/app/modals/modalinfo.component.js
vendored
Normal file
31
dist/out-tsc/src/app/modals/modalinfo.component.js
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Component } from '@angular/core';
|
||||
import { MDBModalRef } from 'angular-bootstrap-md';
|
||||
var ModalInfoComponent = /** @class */ (function () {
|
||||
function ModalInfoComponent(modalRef) {
|
||||
this.modalRef = modalRef;
|
||||
}
|
||||
ModalInfoComponent.prototype.ngOnInit = function () {
|
||||
};
|
||||
ModalInfoComponent.prototype.ngOnDestroy = function () {
|
||||
};
|
||||
ModalInfoComponent = __decorate([
|
||||
Component({
|
||||
selector: 'qmi-modalinfo',
|
||||
templateUrl: './modalinfo.component.html',
|
||||
styleUrls: ['./modalinfo.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [MDBModalRef])
|
||||
], ModalInfoComponent);
|
||||
return ModalInfoComponent;
|
||||
}());
|
||||
export { ModalInfoComponent };
|
||||
//# sourceMappingURL=modalinfo.component.js.map
|
||||
1
dist/out-tsc/src/app/modals/modalinfo.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/modals/modalinfo.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"modalinfo.component.js","sourceRoot":"","sources":["../../../../../src/app/modals/modalinfo.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAA4B,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAOnD;IAIE,4BAAoB,QAAqB;QAArB,aAAQ,GAAR,QAAQ,CAAa;IAAI,CAAC;IAE9C,qCAAQ,GAAR;IAEA,CAAC;IAED,wCAAW,GAAX;IAEA,CAAC;IAZU,kBAAkB;QAL9B,SAAS,CAAC;YACT,QAAQ,EAAE,eAAe;YACzB,WAAW,EAAE,4BAA4B;YACzC,SAAS,EAAE,CAAC,4BAA4B,CAAC;SAC1C,CAAC;yCAK8B,WAAW;OAJ9B,kBAAkB,CAc9B;IAAD,yBAAC;CAAA,AAdD,IAcC;SAdY,kBAAkB"}
|
||||
104
dist/out-tsc/src/app/modals/new-provision.component.js
vendored
Normal file
104
dist/out-tsc/src/app/modals/new-provision.component.js
vendored
Normal file
@@ -0,0 +1,104 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Component } from '@angular/core';
|
||||
import { MDBModalRef } from 'angular-bootstrap-md';
|
||||
import { Subject } from 'rxjs';
|
||||
import { ScenariosService } from '../services/scenarios.service';
|
||||
var NewProvisionConfirmComponent = /** @class */ (function () {
|
||||
function NewProvisionConfirmComponent(modalRef, _scenariosService) {
|
||||
this.modalRef = modalRef;
|
||||
this._scenariosService = _scenariosService;
|
||||
this.action = new Subject();
|
||||
this.sendData = {
|
||||
description: "",
|
||||
servers: null,
|
||||
isExternalAccess: false,
|
||||
};
|
||||
this.selectedProductVersion = {};
|
||||
this.selectedVmType = {};
|
||||
this.selectedNodeCount = {};
|
||||
this.selectedDiskSizeGb = {};
|
||||
this.servers = {};
|
||||
}
|
||||
NewProvisionConfirmComponent.prototype.ngOnInit = function () {
|
||||
var _this = this;
|
||||
this.vmTypesSub = this._scenariosService.getScenarioVmtypes().subscribe(function (res) {
|
||||
_this.vmTypes = res.results.filter(function (v) { return !v.disabled; });
|
||||
if (_this.scenario.availableProductVersions.length) {
|
||||
_this.scenario.availableProductVersions.forEach(function (server) {
|
||||
if (server.vmTypeDefault) {
|
||||
_this.selectedVmType[server.index] = server.vmTypeDefault;
|
||||
}
|
||||
if (server.nodeCount) {
|
||||
_this.selectedNodeCount[server.index] = server.nodeCount;
|
||||
}
|
||||
_this.selectedDiskSizeGb[server.index] = server.diskSizeGbDefault || 500;
|
||||
if (server.versions && server.versions.length) {
|
||||
var lastIndex = server.versions.length - 1;
|
||||
_this.selectedProductVersion[server.index] = server.productVersionDefault ? server.productVersionDefault : server.versions[lastIndex].name;
|
||||
}
|
||||
});
|
||||
}
|
||||
_this.vmTypesSub.unsubscribe();
|
||||
});
|
||||
};
|
||||
NewProvisionConfirmComponent.prototype.ngOnDestroy = function () {
|
||||
};
|
||||
NewProvisionConfirmComponent.prototype.confirm = function () {
|
||||
var _this = this;
|
||||
if (!this.sendData.description || this.sendData.description.trim() === "") {
|
||||
return;
|
||||
}
|
||||
this.sendData.servers = {};
|
||||
var _loop_1 = function (key) {
|
||||
if (!this_1.sendData.servers[key]) {
|
||||
this_1.sendData.servers[key] = {};
|
||||
}
|
||||
if (this_1.selectedVmType[key]) {
|
||||
this_1.sendData.servers[key].vmType = this_1.selectedVmType[key];
|
||||
}
|
||||
if (this_1.selectedNodeCount[key]) {
|
||||
this_1.sendData.servers[key].nodeCount = this_1.selectedNodeCount[key];
|
||||
}
|
||||
if (this_1.selectedDiskSizeGb[key]) {
|
||||
this_1.sendData.servers[key].diskSizeGb = this_1.selectedDiskSizeGb[key];
|
||||
}
|
||||
this_1.scenario.availableProductVersions.forEach(function (server) {
|
||||
server.versions.forEach(function (v) {
|
||||
if (v.name === _this.selectedProductVersion[key]) {
|
||||
_this.sendData.servers[key].version = v;
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
var this_1 = this;
|
||||
for (var key in this.selectedVmType) {
|
||||
_loop_1(key);
|
||||
}
|
||||
console.log("sendData", this.sendData);
|
||||
this.action.next(this.sendData);
|
||||
this.modalRef.hide();
|
||||
};
|
||||
NewProvisionConfirmComponent.prototype.checkOnchange = function ($event) {
|
||||
console.log("Checked?", $event.checked);
|
||||
this.sendData.isExternalAccess = $event.checked;
|
||||
};
|
||||
NewProvisionConfirmComponent = __decorate([
|
||||
Component({
|
||||
selector: 'qmi-new-provision',
|
||||
templateUrl: './new-provision.component.html',
|
||||
styleUrls: ['./new-provision.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [MDBModalRef, ScenariosService])
|
||||
], NewProvisionConfirmComponent);
|
||||
return NewProvisionConfirmComponent;
|
||||
}());
|
||||
export { NewProvisionConfirmComponent };
|
||||
//# sourceMappingURL=new-provision.component.js.map
|
||||
1
dist/out-tsc/src/app/modals/new-provision.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/modals/new-provision.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"new-provision.component.js","sourceRoot":"","sources":["../../../../../src/app/modals/new-provision.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAqB,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAgB,MAAM,MAAM,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAOjE;IAiBE,sCAAoB,QAAqB,EAAU,iBAAmC;QAAlE,aAAQ,GAAR,QAAQ,CAAa;QAAU,sBAAiB,GAAjB,iBAAiB,CAAkB;QAdtF,WAAM,GAAiB,IAAI,OAAO,EAAE,CAAC;QAErC,aAAQ,GAAG;YACT,WAAW,EAAE,EAAE;YACf,OAAO,EAAE,IAAI;YACb,gBAAgB,EAAE,KAAK;SACxB,CAAC;QACF,2BAAsB,GAAQ,EAAE,CAAC;QACjC,mBAAc,GAAQ,EAAE,CAAC;QACzB,sBAAiB,GAAQ,EAAE,CAAC;QAC5B,uBAAkB,GAAQ,EAAE,CAAC;QAG7B,YAAO,GAAQ,EAAE,CAAC;IACwE,CAAC;IAE3F,+CAAQ,GAAR;QAAA,iBA0BC;QAzBC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,EAAE,CAAC,SAAS,CAAG,UAAA,GAAG;YAC3E,KAAI,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,UAAA,CAAC,IAAE,OAAA,C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,CAAC,CAAC;QAChC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;IACzB,CAAC;IAED,oDAAa,GAAb,UAAc,MAAM;QAClB,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;QACxC,IAAI,CAAC,QAAQ,CAAC,gBAAgB,GAAG,MAAM,CAAC,OAAO,CAAC;IAClD,CAAC;IAvFU,4BAA4B;QALxC,SAAS,CAAC;YACT,QAAQ,EAAE,mBAAmB;YAC7B,WAAW,EAAE,gCAAgC;YAC7C,SAAS,EAAE,CAAC,gCAAgC,CAAC;SAC9C,CAAC;yCAkB8B,WAAW,EAA6B,gBAAgB;OAjB3E,4BAA4B,CAyFxC;IAAD,mCAAC;CAAA,AAzFD,IAyFC;SAzFY,4BAA4B"}
|
||||
@@ -7,37 +7,63 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
||||
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';
|
||||
import { Component, ElementRef, EventEmitter, ViewChild, Input, Output } from '@angular/core';
|
||||
var PopoverconfirmComponent = /** @class */ (function () {
|
||||
function PopoverconfirmComponent(myElement) {
|
||||
this.onConfirm = new EventEmitter();
|
||||
this.element = myElement;
|
||||
}
|
||||
PopoverconfirmComponent.prototype.open = function () {
|
||||
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);
|
||||
var viewportOffset = this.element.nativeElement.getBoundingClientRect();
|
||||
var top = viewportOffset.top;
|
||||
var left = viewportOffset.left;
|
||||
this.popovercontent.nativeElement.style.display = 'block';
|
||||
this.popovercontent.nativeElement.style.position = 'absolute';
|
||||
if (this.dock.indexOf('left') !== -1) {
|
||||
this.left = -this.popovercontent.nativeElement.offsetWidth;
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
else if (this.dock.indexOf('right') !== -1) {
|
||||
this.left = this.element.nativeElement.offsetWidth;
|
||||
}
|
||||
|
||||
ok(): void {
|
||||
this.popover.close();
|
||||
this.top = 0;
|
||||
if (this.dock.indexOf('top') !== -1) {
|
||||
this.top = -this.popovercontent.nativeElement.offsetHeight;
|
||||
}
|
||||
|
||||
cancel(): void {
|
||||
this.popover.close();
|
||||
else if (this.dock.indexOf('bottom') !== -1) {
|
||||
this.top = this.element.nativeElement.offsetHeight;
|
||||
}
|
||||
}
|
||||
|
||||
this.popovercontent.nativeElement.style.top = (top + this.top) + 'px';
|
||||
this.popovercontent.nativeElement.style.left = (left + this.left) + 'px';
|
||||
};
|
||||
PopoverconfirmComponent.prototype.ngOnInit = function () {
|
||||
};
|
||||
PopoverconfirmComponent.prototype.ok = function () {
|
||||
this.popovercontent.nativeElement.style.display = 'none';
|
||||
this.onConfirm.emit(true);
|
||||
};
|
||||
PopoverconfirmComponent.prototype.cancel = function () {
|
||||
this.popovercontent.nativeElement.style.display = 'none';
|
||||
};
|
||||
__decorate([
|
||||
ViewChild('popovercontent'),
|
||||
__metadata("design:type", ElementRef)
|
||||
], PopoverconfirmComponent.prototype, "popovercontent", void 0);
|
||||
__decorate([
|
||||
Input(),
|
||||
__metadata("design:type", Object)
|
||||
], PopoverconfirmComponent.prototype, "dock", void 0);
|
||||
__decorate([
|
||||
Input(),
|
||||
__metadata("design:type", Object)
|
||||
], PopoverconfirmComponent.prototype, "buttonConfig", void 0);
|
||||
__decorate([
|
||||
Input(),
|
||||
__metadata("design:type", Object)
|
||||
], PopoverconfirmComponent.prototype, "popupConfig", void 0);
|
||||
__decorate([
|
||||
Output(),
|
||||
__metadata("design:type", Object)
|
||||
], PopoverconfirmComponent.prototype, "onConfirm", void 0);
|
||||
PopoverconfirmComponent = __decorate([
|
||||
Component({
|
||||
selector: 'app-popoverconfirm',
|
||||
@@ -49,25 +75,4 @@ var PopoverconfirmComponent = /** @class */ (function () {
|
||||
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 +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,uBA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AuB"}
|
||||
@@ -12,33 +12,53 @@ import { ProvisionsService } from '../services/provisions.service';
|
||||
import { timer } from 'rxjs';
|
||||
import { switchMap } from 'rxjs/operators';
|
||||
import { AuthGuard } from '../services/auth.guard';
|
||||
import { ScenariosService } from '../services/scenarios.service';
|
||||
import { AlertService } from '../services/alert.service';
|
||||
import { MDBModalService } from 'angular-bootstrap-md';
|
||||
import { ModalInfoComponent } from '../modals/modalinfo.component';
|
||||
import { ModalConfirmComponent } from '../modals/confirm.component';
|
||||
var ProvisionsComponent = /** @class */ (function () {
|
||||
function ProvisionsComponent(_provisionsService, _auth) {
|
||||
function ProvisionsComponent(modalService, _alertService, _provisionsService, _scenariosService, _auth) {
|
||||
var _this = this;
|
||||
this.modalService = modalService;
|
||||
this._alertService = _alertService;
|
||||
this._provisionsService = _provisionsService;
|
||||
this._scenariosService = _scenariosService;
|
||||
this._auth = _auth;
|
||||
this.logShow = false;
|
||||
this.logstype = 'provision';
|
||||
this.selectedprov = null;
|
||||
this._auth.getUserInfo().subscribe(function (value) {
|
||||
_this._userId = value._id;
|
||||
_this._userId = value ? value._id : null;
|
||||
});
|
||||
}
|
||||
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 = this._provisionsService.getProvisionsByUser(this._userId).subscribe(function (provisions) {
|
||||
provisions = provisions.results;
|
||||
provisions.forEach(function (p) {
|
||||
p._scenario = _this.scenarios.filter(function (s) { return s.name === p.scenario; });
|
||||
_this._provisionsService.timeRunning(p);
|
||||
});
|
||||
_this.provisions = provisions.filter(function (p) { return !p.destroy || !p.destroy.status || p.destroy.status !== 'destroyed'; });
|
||||
_this.destroys = provisions.filter(function (p) { return p.destroy && p.destroy.status === 'destroyed'; });
|
||||
_this.instantSubs.unsubscribe();
|
||||
});
|
||||
};
|
||||
ProvisionsComponent.prototype.ngOnInit = function () {
|
||||
var _this = this;
|
||||
this.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];
|
||||
this.scenariosSub = this._scenariosService.getScenariosAll().subscribe(function (res) {
|
||||
_this.scenarios = res.results;
|
||||
_this.scenariosSub.unsubscribe();
|
||||
_this.subscription = timer(0, 8000).pipe(switchMap(function () { return _this._provisionsService.getProvisionsByUser(_this._userId); })).subscribe(function (provisions) {
|
||||
provisions = provisions.results;
|
||||
provisions.forEach(function (p) {
|
||||
p._scenario = _this.scenarios.filter(function (s) { return s.name === p.scenario; });
|
||||
_this._provisionsService.timeRunning(p);
|
||||
});
|
||||
_this.provisions = provisions.filter(function (p) { return !p.destroy || !p.destroy.status || p.destroy.status !== 'destroyed'; });
|
||||
_this.destroys = provisions.filter(function (p) { return p.destroy && p.destroy.status === 'destroyed'; });
|
||||
});
|
||||
});
|
||||
};
|
||||
ProvisionsComponent.prototype.ngOnDestroy = function () {
|
||||
@@ -47,18 +67,122 @@ var ProvisionsComponent = /** @class */ (function () {
|
||||
this.instantSubs.unsubscribe();
|
||||
}
|
||||
};
|
||||
ProvisionsComponent.prototype.setModal = function (provision, frame) {
|
||||
frame.show();
|
||||
this._provisionsService.setSelectedProv(provision);
|
||||
};
|
||||
ProvisionsComponent.prototype.del = function (provision) {
|
||||
var _this = this;
|
||||
this._provisionsService.delProvision(provision._id.toString(), this._userId).subscribe(function (res) {
|
||||
console.log("Done!", res);
|
||||
_this._refresh();
|
||||
_this._alertService.showAlert({
|
||||
type: 'alert-primary',
|
||||
text: "Provision entry '" + provision.scenario + "' was deleted from your history"
|
||||
});
|
||||
});
|
||||
};
|
||||
ProvisionsComponent.prototype.destroy = function (provision) {
|
||||
ProvisionsComponent.prototype.openConfirmDestroyModal = function (provision) {
|
||||
var _this = this;
|
||||
this._provisionsService.newDestroy({ "id": provision._id.toString() }, this._userId).subscribe(function (res) {
|
||||
console.log("Done!", res);
|
||||
var modalRef = this.modalService.show(ModalConfirmComponent, {
|
||||
class: 'modal-sm modal-notify modal-danger',
|
||||
containerClass: '',
|
||||
data: {
|
||||
info: {
|
||||
title: 'Confirm destroy this provision?',
|
||||
icon: 'times-circle'
|
||||
}
|
||||
}
|
||||
});
|
||||
var sub = modalRef.content.action.subscribe(function (result) {
|
||||
sub.unsubscribe();
|
||||
_this._provisionsService.newDestroy(provision._id.toString(), _this._userId).subscribe(function (res) {
|
||||
_this._refresh();
|
||||
_this._alertService.showAlert({
|
||||
type: 'alert-primary',
|
||||
text: "Provision of scenario '" + provision.scenario + "' is going to be destroyed"
|
||||
});
|
||||
});
|
||||
});
|
||||
};
|
||||
ProvisionsComponent.prototype.openConfirmStopModal = function (provision) {
|
||||
var _this = this;
|
||||
var modalRef = this.modalService.show(ModalConfirmComponent, {
|
||||
class: 'modal-sm modal-notify modal-info',
|
||||
containerClass: '',
|
||||
data: {
|
||||
info: {
|
||||
title: 'Confirm Stop VMs?',
|
||||
icon: 'stop',
|
||||
buttonColor: 'grey'
|
||||
}
|
||||
}
|
||||
});
|
||||
var sub = modalRef.content.action.subscribe(function (result) {
|
||||
sub.unsubscribe();
|
||||
_this._provisionsService.stopVms(provision._id.toString(), _this._userId).subscribe(function (res) {
|
||||
provision.statusVms = res.statusVms;
|
||||
provision.timeRunning = res.timeRunning;
|
||||
provision.runningFrom = res.runningFrom;
|
||||
_this._provisionsService.timeRunning(provision);
|
||||
_this._alertService.showAlert({
|
||||
type: 'alert-primary',
|
||||
text: "Stopping all VMs for scenario '" + provision.scenario + "'..."
|
||||
});
|
||||
});
|
||||
});
|
||||
};
|
||||
ProvisionsComponent.prototype.openConfirmStartModal = function (provision) {
|
||||
var _this = this;
|
||||
var modalRef = this.modalService.show(ModalConfirmComponent, {
|
||||
class: 'modal-sm modal-notify modal-info',
|
||||
containerClass: '',
|
||||
data: {
|
||||
info: {
|
||||
title: 'Confirm Start VMs?',
|
||||
icon: 'play',
|
||||
buttonColor: 'grey'
|
||||
}
|
||||
}
|
||||
});
|
||||
var sub = modalRef.content.action.subscribe(function (result) {
|
||||
sub.unsubscribe();
|
||||
_this._provisionsService.startVms(provision._id.toString(), _this._userId).subscribe(function (res) {
|
||||
provision.statusVms = res.statusVms;
|
||||
provision.timeRunning = res.timeRunning;
|
||||
provision.runningFrom = res.runningFrom;
|
||||
_this._provisionsService.timeRunning(provision);
|
||||
_this._alertService.showAlert({
|
||||
type: 'alert-primary',
|
||||
text: "Starting all VMs for scenario '" + provision.scenario + "'..."
|
||||
});
|
||||
});
|
||||
});
|
||||
};
|
||||
ProvisionsComponent.prototype.openConfirmExtendModal = function (provision) {
|
||||
var _this = this;
|
||||
var modalRef = this.modalService.show(ModalConfirmComponent, {
|
||||
class: 'modal-sm modal-notify modal-info',
|
||||
containerClass: '',
|
||||
data: {
|
||||
info: {
|
||||
title: "Extend running VMs for " + this._provisionsService.RUNNING_PERIOD + " days?",
|
||||
icon: 'plus-square',
|
||||
buttonColor: 'grey'
|
||||
}
|
||||
}
|
||||
});
|
||||
var sub = modalRef.content.action.subscribe(function (result) {
|
||||
sub.unsubscribe();
|
||||
_this._provisionsService.extend(provision._id.toString(), _this._userId).subscribe(function (res) {
|
||||
provision.countExtend = res.countExtend;
|
||||
provision.timeRunning = res.timeRunning;
|
||||
provision.runningFrom = res.runningFrom;
|
||||
_this._provisionsService.timeRunning(provision);
|
||||
_this._alertService.showAlert({
|
||||
type: 'alert-primary',
|
||||
text: "Running period extended another " + _this._provisionsService.RUNNING_PERIOD + " days (from now) for provision '" + provision.scenario + "'"
|
||||
});
|
||||
});
|
||||
});
|
||||
};
|
||||
ProvisionsComponent.prototype.showLogs = function ($event, provision, type) {
|
||||
@@ -69,12 +193,24 @@ var ProvisionsComponent = /** @class */ (function () {
|
||||
this.selectedprov = provision;
|
||||
this.logShow = true;
|
||||
};
|
||||
ProvisionsComponent.prototype.onLogsClose = function ($event) {
|
||||
ProvisionsComponent.prototype.openModal = function (provision) {
|
||||
this.modalService.show(ModalInfoComponent, {
|
||||
class: 'modal-lg',
|
||||
containerClass: '',
|
||||
data: {
|
||||
info: provision
|
||||
}
|
||||
});
|
||||
};
|
||||
ProvisionsComponent.prototype.onLogsClose = function () {
|
||||
this.selectedprov = null;
|
||||
this.logShow = false;
|
||||
};
|
||||
ProvisionsComponent.prototype.onStartProvision = function ($event) {
|
||||
console.log("onStartProvision");
|
||||
ProvisionsComponent.prototype.onStartProvision = function (scenario) {
|
||||
this._alertService.showAlert({
|
||||
type: 'alert-primary',
|
||||
text: "Scenario '" + scenario.name + "' is going to be provisioned. Scroll up to your Provisions to watch out progress."
|
||||
});
|
||||
this._refresh();
|
||||
};
|
||||
ProvisionsComponent = __decorate([
|
||||
@@ -84,7 +220,7 @@ var ProvisionsComponent = /** @class */ (function () {
|
||||
styleUrls: ['./provisions.component.scss'],
|
||||
providers: [ProvisionsService]
|
||||
}),
|
||||
__metadata("design:paramtypes", [ProvisionsService, AuthGuard])
|
||||
__metadata("design:paramtypes", [MDBModalService, AlertService, ProvisionsService, ScenariosService, AuthGuard])
|
||||
], ProvisionsComponent);
|
||||
return ProvisionsComponent;
|
||||
}());
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -11,28 +11,52 @@ import { Component, Output, EventEmitter } from '@angular/core';
|
||||
import { ProvisionsService } from '../services/provisions.service';
|
||||
import { ScenariosService } from '../services/scenarios.service';
|
||||
import { AuthGuard } from '../services/auth.guard';
|
||||
import { NewProvisionConfirmComponent } from '../modals/new-provision.component';
|
||||
import { MDBModalService } from 'angular-bootstrap-md';
|
||||
var ScenariosComponent = /** @class */ (function () {
|
||||
function ScenariosComponent(_provisionsService, _scenariosService, _auth) {
|
||||
function ScenariosComponent(modalService, _provisionsService, _scenariosService, _auth) {
|
||||
var _this = this;
|
||||
this.modalService = modalService;
|
||||
this._provisionsService = _provisionsService;
|
||||
this._scenariosService = _scenariosService;
|
||||
this._auth = _auth;
|
||||
this.onStartProvision = new EventEmitter();
|
||||
this._auth.getUserInfo().subscribe(function (value) {
|
||||
_this._userId = value._id;
|
||||
_this.user = value;
|
||||
});
|
||||
}
|
||||
ScenariosComponent.prototype.ngOnInit = function () {
|
||||
var _this = this;
|
||||
this._scenariosService.getScenarios().subscribe(function (res) {
|
||||
_this.scenarios = res;
|
||||
this.scenariosSub = this._scenariosService.getScenarios().subscribe(function (res) {
|
||||
_this.scenarios = res.results;
|
||||
_this.scenariosSub.unsubscribe();
|
||||
console.log("scenarios", _this.scenarios);
|
||||
});
|
||||
};
|
||||
ScenariosComponent.prototype.provision = function (scenario) {
|
||||
ScenariosComponent.prototype.ngOnDestroy = function () { };
|
||||
ScenariosComponent.prototype.openNewProvisionConfirmModal = function (scenario) {
|
||||
var _this = this;
|
||||
this._provisionsService.newProvision({ "scenario": scenario.name }, this._userId).subscribe(function (res) {
|
||||
var modalRef = this.modalService.show(NewProvisionConfirmComponent, {
|
||||
class: 'modal-md modal-notify',
|
||||
containerClass: '',
|
||||
data: {
|
||||
scenario: scenario
|
||||
}
|
||||
});
|
||||
var sub = modalRef.content.action.subscribe(function (data) {
|
||||
sub.unsubscribe();
|
||||
var postData = {
|
||||
scenario: scenario.name,
|
||||
description: data.description,
|
||||
isExternalAccess: data.isExternalAccess
|
||||
};
|
||||
if (data.servers) {
|
||||
postData["vmImage"] = data.servers;
|
||||
}
|
||||
_this._provisionsService.newProvision(postData, _this.user._id).subscribe(function (res) {
|
||||
console.log("Done!", res);
|
||||
_this.onStartProvision.emit();
|
||||
_this.onStartProvision.emit(scenario);
|
||||
});
|
||||
});
|
||||
};
|
||||
__decorate([
|
||||
@@ -45,7 +69,7 @@ var ScenariosComponent = /** @class */ (function () {
|
||||
templateUrl: './scenarios.component.html',
|
||||
styleUrls: ['./scenarios.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [ProvisionsService, ScenariosService, AuthGuard])
|
||||
__metadata("design:paramtypes", [MDBModalService, ProvisionsService, ScenariosService, AuthGuard])
|
||||
], ScenariosComponent);
|
||||
return ScenariosComponent;
|
||||
}());
|
||||
|
||||
@@ -1 +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,GAA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AAE,GAAG,CAAC,CAAC;gBAC1B,KAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YACvC,CAAC,CAAC,CAAC;QAEL,CAAC,CAAC,CAAC;IACL,CAAC;IA7CS;QAAT,MAAM,EAAE;;gEAA+C;IAV7C,kBAAkB;QAL9B,SAAS,CAAC;YACT,QAAQ,EAAE,eAAe;YACzB,WAAW,EAAE,4BAA4B;YACzC,SAAS,EAAE,CAAC,4BAA4B,CAAC;SAC1C,CAAC;yCAKkC,eAAe,EAA8B,iBAAiB,EAA6B,gBAAgB,EAAiB,SAAS;OAJ5J,kBAAkB,CAyD9B;IAAD,yBAAC;CAAA,AAzDD,IAyDC;SAzDY,kBAAkB"}
|
||||
36
dist/out-tsc/src/app/services/alert.service.js
vendored
Normal file
36
dist/out-tsc/src/app/services/alert.service.js
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Injectable, EventEmitter } from '@angular/core';
|
||||
var AlertService = /** @class */ (function () {
|
||||
function AlertService() {
|
||||
this.alertEmitter = new EventEmitter();
|
||||
}
|
||||
AlertService.prototype.showAlert = function (alert) {
|
||||
this.alertEmitter.emit(alert);
|
||||
if (this.to) {
|
||||
clearTimeout(this.to);
|
||||
}
|
||||
this.to = setTimeout(function () {
|
||||
this.alertEmitter.emit(null);
|
||||
}.bind(this), 5000);
|
||||
};
|
||||
AlertService.prototype.getAlertEmitter = function () {
|
||||
return this.alertEmitter;
|
||||
};
|
||||
AlertService = __decorate([
|
||||
Injectable({
|
||||
providedIn: 'root'
|
||||
}),
|
||||
__metadata("design:paramtypes", [])
|
||||
], AlertService);
|
||||
return AlertService;
|
||||
}());
|
||||
export { AlertService };
|
||||
//# sourceMappingURL=alert.service.js.map
|
||||
1
dist/out-tsc/src/app/services/alert.service.js.map
vendored
Normal file
1
dist/out-tsc/src/app/services/alert.service.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"alert.service.js","sourceRoot":"","sources":["../../../../../src/app/services/alert.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAKzD;IAIE;QAFA,iBAAY,GAAG,IAAI,YAAY,EAAE,CAAC;IAElB,CAAC;IAGjB,gCAAS,GAAT,UAAU,KAAK;QACb,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC9B,IAAK,IAAI,CAAC,EAAE,EAAG;YACb,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;SACvB;QACD,IAAI,CAAC,EAAE,GAAG,UAAU,CAAE;YAClB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;IACvB,CAAC;IAED,sCAAe,GAAf;QACE,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAnBU,YAAY;QAHxB,UAAU,CAAC;YACV,UAAU,EAAE,MAAM;SACnB,CAAC;;OACW,YAAY,CAqBxB;IAAD,mBAAC;CAAA,AArBD,IAqBC;SArBY,YAAY"}
|
||||
24
dist/out-tsc/src/app/services/auth.guard.js
vendored
24
dist/out-tsc/src/app/services/auth.guard.js
vendored
@@ -12,30 +12,32 @@ import { Router } from '@angular/router';
|
||||
import { of, BehaviorSubject } from 'rxjs';
|
||||
import { map, catchError } from 'rxjs/operators';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { UsersService } from './users.service';
|
||||
var AuthGuard = /** @class */ (function () {
|
||||
// Inject Router so we can hand off the user to the Login Page
|
||||
function AuthGuard(httpClient, router) {
|
||||
var _this = this;
|
||||
function AuthGuard(_userService, httpClient, router) {
|
||||
this._userService = _userService;
|
||||
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));
|
||||
});
|
||||
var user = localStorage.getItem("user");
|
||||
this.userInfo.next(JSON.parse(user));
|
||||
}
|
||||
AuthGuard.prototype.canActivate = function (route) {
|
||||
var _this = this;
|
||||
return this.getMe().pipe(map(function (res) {
|
||||
console.log("CanActivate?");
|
||||
return this._userService.getMe().pipe(map(function (res) {
|
||||
localStorage.setItem("user", JSON.stringify(res));
|
||||
_this.userInfo.next(res);
|
||||
return true;
|
||||
}), catchError(function (err) {
|
||||
_this.userInfo.next(null);
|
||||
_this.clearUser();
|
||||
return of(false);
|
||||
}));
|
||||
};
|
||||
AuthGuard.prototype.getMe = function () {
|
||||
return this.httpClient.get('/api/users/me');
|
||||
AuthGuard.prototype.clearUser = function () {
|
||||
localStorage.setItem("user", null);
|
||||
this.userInfo.next(null);
|
||||
};
|
||||
AuthGuard.prototype.getUserInfo = function () {
|
||||
return this.userInfo;
|
||||
@@ -44,7 +46,7 @@ var AuthGuard = /** @class */ (function () {
|
||||
Injectable({
|
||||
providedIn: 'root'
|
||||
}),
|
||||
__metadata("design:paramtypes", [HttpClient, Router])
|
||||
__metadata("design:paramtypes", [UsersService, HttpClient, Router])
|
||||
], AuthGuard);
|
||||
return AuthGuard;
|
||||
}());
|
||||
|
||||
@@ -1 +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CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,IAAI,CACnC,GAAG,CAAC,UAAA,GAAG;YACL,YAAY,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;YAClD,KAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACxB,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,EACF,UAAU,CAAC,UAAC,GAAG;YACb,KAAI,CAAC,SAAS,EAAE,CAAC;YACjB,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC;QACnB,CAAC,CAAC,CACH,CAAC;IACJ,CAAC;IAID,6BAAS,GAAT;QACE,YAAY,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QACnC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;IAED,+BAAW,GAAX;QACE,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAlCU,SAAS;QAHrB,UAAU,CAAC;YACV,UAAU,EAAE,MAAM;SACnB,CAAC;yCAMkC,YAAY,EAAsB,UAAU,EAAkB,MAAM;OAL3F,SAAS,CAmCrB;IAAD,gBAAC;CAAA,AAnCD,IAmCC;SAnCY,SAAS"}
|
||||
38
dist/out-tsc/src/app/services/deployopts.service.js
vendored
Normal file
38
dist/out-tsc/src/app/services/deployopts.service.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 { Injectable } from '@angular/core';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { environment } from '../../environments/environment.prod';
|
||||
var SubscriptionsService = /** @class */ (function () {
|
||||
function SubscriptionsService(httpClient) {
|
||||
this.httpClient = httpClient;
|
||||
}
|
||||
SubscriptionsService.prototype.getSubscriptions = function () {
|
||||
return this.httpClient.get(environment.apiVersionPath + "/deployopts");
|
||||
};
|
||||
SubscriptionsService.prototype.addSubscription = function (data) {
|
||||
return this.httpClient.post(environment.apiVersionPath + "/deployopts", data);
|
||||
};
|
||||
SubscriptionsService.prototype.updateSubscription = function (id, patchData) {
|
||||
return this.httpClient.put(environment.apiVersionPath + "/deployopts/" + id, patchData);
|
||||
};
|
||||
SubscriptionsService.prototype.deleteScenario = function (id) {
|
||||
return this.httpClient.delete(environment.apiVersionPath + "/deployopts/" + id);
|
||||
};
|
||||
SubscriptionsService = __decorate([
|
||||
Injectable({
|
||||
providedIn: 'root'
|
||||
}),
|
||||
__metadata("design:paramtypes", [HttpClient])
|
||||
], SubscriptionsService);
|
||||
return SubscriptionsService;
|
||||
}());
|
||||
export { SubscriptionsService };
|
||||
//# sourceMappingURL=deployopts.service.js.map
|
||||
1
dist/out-tsc/src/app/services/deployopts.service.js.map
vendored
Normal file
1
dist/out-tsc/src/app/services/deployopts.service.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"deployopts.service.js","sourceRoot":"","sources":["../../../../../src/app/services/deployopts.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAKlE;IAEE,8BAAqB,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAK,CAAC;IAEjD,+CAAgB,GAAhB;QACE,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAI,WAAW,CAAC,cAAc,gBAAa,CAAC,CAAC;IACzE,CAAC;IAED,8CAAe,GAAf,UAAgB,IAAI;QAClB,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAI,WAAW,CAAC,cAAc,gBAAa,EAAE,IAAI,CAAC,CAAC;IAChF,CAAC;IAED,iDAAkB,GAAlB,UAAmB,EAAE,EAAE,SAAS;QAC9B,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAI,WAAW,CAAC,cAAc,oBAAe,EAAI,EAAE,SAAS,CAAC,CAAC;IAC1F,CAAC;IAED,6CAAc,GAAd,UAAe,EAAE;QACf,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAI,WAAW,CAAC,cAAc,oBAAe,EAAI,CAAC,CAAC;IAClF,CAAC;IAlBU,oBAAoB;QAHhC,UAAU,CAAC;YACV,UAAU,EAAE,MAAM;SACnB,CAAC;yCAGiC,UAAU;OAFhC,oBAAoB,CAoBhC;IAAD,2BAAC;CAAA,AApBD,IAoBC;SApBY,oBAAoB"}
|
||||
118
dist/out-tsc/src/app/services/provisions.service.js
vendored
118
dist/out-tsc/src/app/services/provisions.service.js
vendored
@@ -8,57 +8,111 @@ 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';
|
||||
import { HttpClient, HttpParams } from '@angular/common/http';
|
||||
import { environment } from '../../environments/environment.prod';
|
||||
import * as moment from 'moment';
|
||||
var ProvisionsService = /** @class */ (function () {
|
||||
function ProvisionsService(httpClient) {
|
||||
this.httpClient = httpClient;
|
||||
this.RUNNING_PERIOD = 4;
|
||||
this.STOP_PERIOD = 20;
|
||||
}
|
||||
ProvisionsService.prototype.getProvisionsAdmin = function () {
|
||||
return this.httpClient.get("/api/provisions");
|
||||
ProvisionsService.prototype.getProvisionsAdmin = function (filter) {
|
||||
// Initialize Params Object
|
||||
var params = new HttpParams();
|
||||
if (filter) {
|
||||
params = params.append("filter", JSON.stringify(filter));
|
||||
}
|
||||
return this.httpClient.get(environment.apiVersionPath + "/provisions", { params: params });
|
||||
};
|
||||
ProvisionsService.prototype.getProvisionsByUser = function (userId) {
|
||||
return this.httpClient.get(environment.apiVersionPath + "/users/" + userId + "/provisions");
|
||||
};
|
||||
ProvisionsService.prototype.getDestroyProvisionsAdmin = function () {
|
||||
return this.httpClient.get("/api/destroyprovisions");
|
||||
};
|
||||
ProvisionsService.prototype.getProvisions = function (userId) {
|
||||
return this.httpClient.get("/api/users/" + userId + "/provisions");
|
||||
return this.httpClient.get(environment.apiVersionPath + "/destroyprovisions");
|
||||
};
|
||||
ProvisionsService.prototype.newProvision = function (body, userId) {
|
||||
return this.httpClient.post("/api/users/" + userId + "/provisions", body);
|
||||
return this.httpClient.post(environment.apiVersionPath + "/users/" + userId + "/provisions", body);
|
||||
};
|
||||
ProvisionsService.prototype.delProvision = function (id, userId) {
|
||||
return this.httpClient.delete("/api/users/" + userId + "/provisions/" + id);
|
||||
return this.httpClient.delete(environment.apiVersionPath + "/users/" + userId + "/provisions/" + id);
|
||||
};
|
||||
ProvisionsService.prototype.newDestroy = function (body, userId) {
|
||||
return this.httpClient.post("/api/users/" + userId + "/destroyprovisions", body);
|
||||
ProvisionsService.prototype.newDestroy = function (id, userId) {
|
||||
return this.httpClient.post(environment.apiVersionPath + "/users/" + userId + "/provisions/" + id + "/destroy", null);
|
||||
};
|
||||
ProvisionsService.prototype.getDestroyProvisions = function (userId) {
|
||||
return this.httpClient.get("/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());
|
||||
return this.httpClient.get(environment.apiVersionPath + "/users/" + userId + "/destroyprovisions");
|
||||
};
|
||||
/*
|
||||
getCombinedProvisions(userId): Observable<any> {
|
||||
return forkJoin(this.getProvisionsByUser(userId), this.getDestroyProvisions(userId))
|
||||
}
|
||||
|
||||
getCombinedProvisionsAdmin(): Observable<any> {
|
||||
return forkJoin(this.getProvisionsAdmin(), this.getDestroyProvisionsAdmin())
|
||||
}*/
|
||||
ProvisionsService.prototype.getProvisionLogs = function (id) {
|
||||
return this.httpClient.get("/api/provisions/" + id + "/logs", { responseType: 'text' });
|
||||
return this.httpClient.get(environment.apiVersionPath + "/provisions/" + id + "/logs", { responseType: 'text' });
|
||||
};
|
||||
ProvisionsService.prototype.getDestroyLogs = function (id) {
|
||||
return this.httpClient.get("/api/destroyprovisions/" + id + "/logs", { responseType: 'text' });
|
||||
return this.httpClient.get(environment.apiVersionPath + "/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;
|
||||
ProvisionsService.prototype.stopVms = function (id, userId) {
|
||||
return this.httpClient.post(environment.apiVersionPath + "/users/" + userId + "/provisions/" + id + "/deallocatevms", null);
|
||||
};
|
||||
ProvisionsService.prototype.startVms = function (id, userId) {
|
||||
return this.httpClient.post(environment.apiVersionPath + "/users/" + userId + "/provisions/" + id + "/startvms", null);
|
||||
};
|
||||
ProvisionsService.prototype.extend = function (id, userId) {
|
||||
return this.httpClient.post(environment.apiVersionPath + "/users/" + userId + "/provisions/" + id + "/extend", null);
|
||||
};
|
||||
ProvisionsService.prototype.setSelectedProv = function (provision) {
|
||||
if (provision) {
|
||||
this.selectedProv = provision;
|
||||
}
|
||||
else {
|
||||
this.selectedProv = null;
|
||||
}
|
||||
};
|
||||
ProvisionsService.prototype.getSelectedProv = function () {
|
||||
return this.selectedProv;
|
||||
};
|
||||
ProvisionsService.prototype.timeRunning = function (p) {
|
||||
if (!p.statusVms) {
|
||||
return;
|
||||
}
|
||||
var now = new Date();
|
||||
var runningFromTime = p.runningFrom ? new Date(p.runningFrom).getTime() : new Date(p.created).getTime();
|
||||
var totalRunningTime = p.timeRunning * 1000 * 60;
|
||||
if (p.statusVms !== 'Stopped' && p.statusVms !== 'Starting' && !p.isDestroyed) {
|
||||
totalRunningTime = totalRunningTime + Math.abs(now.getTime() - runningFromTime);
|
||||
}
|
||||
var authShutdownDate = new Date(runningFromTime);
|
||||
authShutdownDate.setDate(authShutdownDate.getDate() + this.RUNNING_PERIOD);
|
||||
var autoshutDown = authShutdownDate.getTime() - now.getTime();
|
||||
var durationAutoShutdown = moment.duration(autoshutDown);
|
||||
var duration = moment.duration(totalRunningTime);
|
||||
p.runningDays = Math.floor(duration.asDays());
|
||||
p.runningHours = duration.hours();
|
||||
p.runningMinutes = duration.minutes();
|
||||
p.autoshutdownDays = Math.floor(durationAutoShutdown.asDays());
|
||||
p.autoshutdownHours = durationAutoShutdown.hours();
|
||||
p.autoshutdownMinutes = durationAutoShutdown.minutes();
|
||||
if ((p.statusVms === 'Stopped' || p.statusVms === 'Starting') && !p.isDestroyed) {
|
||||
var autoDestroyDate = new Date(p.stoppedFrom);
|
||||
autoDestroyDate.setDate(autoDestroyDate.getDate() + this.STOP_PERIOD);
|
||||
var autoDestroy = autoDestroyDate.getTime() - now.getTime();
|
||||
var durationStop = moment.duration(autoDestroy);
|
||||
p.autoDestroyDays = Math.floor(durationStop.asDays());
|
||||
p.autoDestroyHours = durationStop.hours();
|
||||
p.autoDestroyMinutes = durationStop.minutes();
|
||||
var inactiveDate = new Date(p.stoppedFrom);
|
||||
var inactive = Math.abs(inactiveDate.getTime() - now.getTime());
|
||||
var durationInactive = moment.duration(inactive);
|
||||
p.inactiveDays = Math.floor(durationInactive.asDays());
|
||||
p.inactiveHours = durationInactive.hours();
|
||||
p.inactiveMinutes = durationInactive.minutes();
|
||||
}
|
||||
});
|
||||
return pair;
|
||||
};
|
||||
ProvisionsService = __decorate([
|
||||
Injectable({
|
||||
|
||||
@@ -1 +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,GAAV,UAAU,CAAY;IAAK,CAAC;IAEjD,8CAAkB,GAAlB;QACE,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IAChD,CAAC;IAED,qDAAyB,GAAzB;QACE,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;IACvD,CAAC;IAED,yCAAa,GAAb,UAAc,MAAM;QAClB,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,gBAAc,MAAM,gBAAa,CAAC,CAAC;IAChE,CAAC;IAED,wCAAY,GAAZ,UAAa,IAAI,EAAE,MAAM;QACvB,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,gBAAc,MAAM,gBAAa,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;IAED,wCAAY,GAAZ,UAAa,EAAE,EAAE,MAAM;QACrB,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,gBA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,37 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
};
|
||||
import { Injectable } from '@angular/core';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { environment } from '../../environments/environment.prod';
|
||||
var ScenariosService = /** @class */ (function () {
|
||||
function ScenariosService(httpClient) {
|
||||
this.httpClient = httpClient;
|
||||
}
|
||||
ScenariosService.prototype.getScenarios = function () {
|
||||
return this.httpClient.get("/api/scenarios");
|
||||
return this.httpClient.get(environment.apiVersionPath + "/scenarios");
|
||||
};
|
||||
ScenariosService.prototype.getScenariosAll = function () {
|
||||
return this.httpClient.get(environment.apiVersionPath + "/scenarios/all");
|
||||
};
|
||||
ScenariosService.prototype.updateScenario = function (id, patchData) {
|
||||
return this.httpClient.put(environment.apiVersionPath + "/scenarios/" + id, patchData);
|
||||
};
|
||||
ScenariosService.prototype.addScenario = function (data) {
|
||||
return this.httpClient.post(environment.apiVersionPath + "/scenarios", data);
|
||||
};
|
||||
ScenariosService.prototype.deleteScenario = function (id) {
|
||||
return this.httpClient.delete(environment.apiVersionPath + "/scenarios/" + id);
|
||||
};
|
||||
ScenariosService.prototype.getScenarioVmtypes = function () {
|
||||
return this.httpClient.get(environment.apiVersionPath + "/scenarios/vmtypes");
|
||||
};
|
||||
ScenariosService.prototype.createScenarioVmtype = function (data) {
|
||||
return this.httpClient.post(environment.apiVersionPath + "/scenarios/vmtypes", data);
|
||||
};
|
||||
ScenariosService.prototype.updateScenarioVmtype = function (id, data) {
|
||||
return this.httpClient.put(environment.apiVersionPath + "/scenarios/vmtypes/" + id, data);
|
||||
};
|
||||
ScenariosService.prototype.deleteScenarioVmtype = function (id) {
|
||||
return this.httpClient.delete(environment.apiVersionPath + "/scenarios/vmtypes/" + id);
|
||||
};
|
||||
ScenariosService = __decorate([
|
||||
Injectable({
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"scenarios.service.js","sourceRoot":"","sources":["../../../../../src/app/services/scenarios.service.ts"],"names":[],"mappings":";;;;;;;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,eAAY,EAAE,IAAI,CAAC,CAAC;IAC/E,CAAC;IAED,yCAAc,GAAd,UAAe,EAAE;QACf,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAI,WAAW,CAAC,cAAc,mBAAc,EAAI,CAAC,CAAC;IACjF,CAAC;IAGD,6CAAkB,GAAlB;QACE,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAI,WAAW,CAAC,cAAc,uBAAoB,CAAC,CAAC;IAChF,CAAC;IAED,+CAAoB,GAApB,UAAqB,IAAI;QACvB,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAI,WAAW,CAAC,cAAc,uBAAoB,EAAE,IAAI,CAAC,CAAC;IACvF,CAAC;IAED,+CAAoB,GAApB,UAAqB,EAAE,EAAE,IAAI;QAC3B,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAI,WAAW,CAAC,cAAc,2BAAsB,EAAI,EAAE,IAAI,CAAC,CAAC;IAC5F,CAAC;IAED,+CAAoB,GAApB,UAAqB,EAAE;QACrB,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAI,WAAW,CAAC,cAAc,2BAAsB,EAAI,CAAC,CAAC;IACzF,CAAC;IAvCU,gBAAgB;QAH5B,UAAU,CAAC;YACV,UAAU,EAAE,MAAM;SACnB,CAAC;yCAGiC,UAAU;OAFhC,gBAAgB,CAyC5B;IAAD,uBAAC;CAAA,AAzCD,IAyCC;SAzCY,gBAAgB"}
|
||||
38
dist/out-tsc/src/app/services/subscriptions.service.js
vendored
Normal file
38
dist/out-tsc/src/app/services/subscriptions.service.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 { Injectable } from '@angular/core';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { environment } from '../../environments/environment.prod';
|
||||
var SubscriptionsService = /** @class */ (function () {
|
||||
function SubscriptionsService(httpClient) {
|
||||
this.httpClient = httpClient;
|
||||
}
|
||||
SubscriptionsService.prototype.getSubscriptions = function () {
|
||||
return this.httpClient.get(environment.apiVersionPath + "/subscriptions");
|
||||
};
|
||||
SubscriptionsService.prototype.addSubscription = function (data) {
|
||||
return this.httpClient.post(environment.apiVersionPath + "/subscriptions", data);
|
||||
};
|
||||
SubscriptionsService.prototype.updateSubscription = function (id, patchData) {
|
||||
return this.httpClient.put(environment.apiVersionPath + "/subscriptions/" + id, patchData);
|
||||
};
|
||||
SubscriptionsService.prototype.deleteScenario = function (id) {
|
||||
return this.httpClient.delete(environment.apiVersionPath + "/subscriptions/" + id);
|
||||
};
|
||||
SubscriptionsService = __decorate([
|
||||
Injectable({
|
||||
providedIn: 'root'
|
||||
}),
|
||||
__metadata("design:paramtypes", [HttpClient])
|
||||
], SubscriptionsService);
|
||||
return SubscriptionsService;
|
||||
}());
|
||||
export { SubscriptionsService };
|
||||
//# sourceMappingURL=subscriptions.service.js.map
|
||||
1
dist/out-tsc/src/app/services/subscriptions.service.js.map
vendored
Normal file
1
dist/out-tsc/src/app/services/subscriptions.service.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"subscriptions.service.js","sourceRoot":"","sources":["../../../../../src/app/services/subscriptions.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAKlE;IAEE,8BAAqB,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAK,CAAC;IAEjD,+CAAgB,GAAhB;QACE,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAI,WAAW,CAAC,cAAc,mBAAgB,CAAC,CAAC;IAC5E,CAAC;IAED,8CAAe,GAAf,UAAgB,IAAI;QAClB,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAI,WAAW,CAAC,cAAc,mBAAgB,EAAE,IAAI,CAAC,CAAC;IACnF,CAAC;IAED,iDAAkB,GAAlB,UAAmB,EAAE,EAAE,SAAS;QAC9B,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAI,WAAW,CAAC,cAAc,uBAAkB,EAAI,EAAE,SAAS,CAAC,CAAC;IAC7F,CAAC;IAED,6CAAc,GAAd,UAAe,EAAE;QACf,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAI,WAAW,CAAC,cAAc,uBAAkB,EAAI,CAAC,CAAC;IACrF,CAAC;IAlBU,oBAAoB;QAHhC,UAAU,CAAC;YACV,UAAU,EAAE,MAAM;SACnB,CAAC;yCAGiC,UAAU;OAFhC,oBAAoB,CAoBhC;IAAD,2BAAC;CAAA,AApBD,IAoBC;SApBY,oBAAoB"}
|
||||
20
dist/out-tsc/src/app/services/users.service.js
vendored
20
dist/out-tsc/src/app/services/users.service.js
vendored
@@ -9,15 +9,31 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
};
|
||||
import { Injectable } from '@angular/core';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { environment } from '../../environments/environment.prod';
|
||||
var UsersService = /** @class */ (function () {
|
||||
function UsersService(httpClient) {
|
||||
this.httpClient = httpClient;
|
||||
}
|
||||
UsersService.prototype.getMe = function () {
|
||||
return this.httpClient.get(environment.apiVersionPath + "/users/me");
|
||||
};
|
||||
UsersService.prototype.getUsers = function () {
|
||||
return this.httpClient.get("/api/users");
|
||||
return this.httpClient.get(environment.apiVersionPath + "/users");
|
||||
};
|
||||
UsersService.prototype.updateUser = function (userId, patchData) {
|
||||
return this.httpClient.put("/api/users/" + userId, patchData);
|
||||
return this.httpClient.put(environment.apiVersionPath + "/users/" + userId, patchData);
|
||||
};
|
||||
UsersService.prototype.getNotifications = function () {
|
||||
return this.httpClient.get(environment.apiVersionPath + "/notifications");
|
||||
};
|
||||
UsersService.prototype.getApiKeys = function () {
|
||||
return this.httpClient.get(environment.apiVersionPath + "/apikeys");
|
||||
};
|
||||
UsersService.prototype.addApikey = function (userId) {
|
||||
return this.httpClient.post(environment.apiVersionPath + "/apikeys/" + userId, null);
|
||||
};
|
||||
UsersService.prototype.delApikey = function (id) {
|
||||
return this.httpClient.put(environment.apiVersionPath + "/apikeys/" + id, null);
|
||||
};
|
||||
UsersService = __decorate([
|
||||
Injectable({
|
||||
|
||||
@@ -1 +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;I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AE,IAAI,CAAC,CAAC;IAClF,CAAC;IA9BU,YAAY;QAHxB,UAAU,CAAC;YACV,UAAU,EAAE,MAAM;SACnB,CAAC;yCAGiC,UAAU;OAFhC,YAAY,CA+BxB;IAAD,mBAAC;CAAA,AA/BD,IA+BC;SA/BY,YAAY"}
|
||||
138
dist/out-tsc/src/app/stats/stats.component.js
vendored
Normal file
138
dist/out-tsc/src/app/stats/stats.component.js
vendored
Normal file
@@ -0,0 +1,138 @@
|
||||
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 * as require from '../../assets/js/require.js';
|
||||
//import * as jquery from 'src/assets/js/jquery';
|
||||
var StatsComponent = /** @class */ (function () {
|
||||
//scripts : [ "../../assets/js/require.js" ];
|
||||
function StatsComponent() {
|
||||
this.sections = ['Overview', 'Historical'];
|
||||
this.tab = 'Overview';
|
||||
var config = {
|
||||
host: 'qmi-qs-72a4',
|
||||
prefix: 'office365',
|
||||
port: 443,
|
||||
isSecure: true
|
||||
};
|
||||
require.config({
|
||||
baseUrl: (config.isSecure ? "https://" : "http://") + config.host + (config.port ? ":" + config.port : "") + config.prefix + "resources"
|
||||
});
|
||||
require(["js/qlik"], function (qlik) {
|
||||
console.log("QLIK", qlik);
|
||||
//qlik.on( "error", function ( error ) {
|
||||
//$( '#popupText' ).append( error.message + "<br>" );
|
||||
//$( '#popup' ).fadeIn( 1000 );
|
||||
//} );
|
||||
//$( "#closePopup" ).click( function () {
|
||||
//$( '#popup' ).hide();
|
||||
/*var app = qlik.openApp('dae8a66d-facf-4554-9ca7-236680144b2c', config );
|
||||
app.getObject('QV01','dEAEcX' );
|
||||
} );
|
||||
|
||||
//callbacks -- inserted here --
|
||||
//open apps -- inserted here --
|
||||
//get objects -- inserted here --
|
||||
//create cubes and lists -- inserted here --
|
||||
|
||||
//var app = qlik.openApp('dae8a66d-facf-4554-9ca7-236680144b2c', config );
|
||||
//app.getObject('QV01','dEAEcX' );
|
||||
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
console.log("I'm the TD BANK mashup", event);
|
||||
}
|
||||
|
||||
tabSelect($event, tab) {
|
||||
$event.preventDefault();
|
||||
$event.stopPropagation();
|
||||
this.tab = tab;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
//qlik.on( "error", function ( error ) {
|
||||
//$( '#popupText' ).append( error.message + "<br>" );
|
||||
//$( '#popup' ).fadeIn( 1000 );
|
||||
//} );
|
||||
//$( "#closePopup" ).click( function () {
|
||||
//$( '#popup' ).hide();
|
||||
/*var app = qlik.openApp('dae8a66d-facf-4554-9ca7-236680144b2c', config );
|
||||
app.getObject('QV01','dEAEcX' );
|
||||
} );
|
||||
|
||||
//callbacks -- inserted here --
|
||||
//open apps -- inserted here --
|
||||
//get objects -- inserted here --
|
||||
//create cubes and lists -- inserted here --
|
||||
|
||||
//var app = qlik.openApp('dae8a66d-facf-4554-9ca7-236680144b2c', config );
|
||||
//app.getObject('QV01','dEAEcX' );
|
||||
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
console.log("I'm the TD BANK mashup", event);
|
||||
}
|
||||
|
||||
tabSelect($event, tab) {
|
||||
$event.preventDefault();
|
||||
$event.stopPropagation();
|
||||
this.tab = tab;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
StatsComponent = __decorate([
|
||||
Component({
|
||||
selector: 'app-stats',
|
||||
templateUrl: './stats.component.html',
|
||||
styleUrls: ['./stats.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [])
|
||||
], StatsComponent);
|
||||
return StatsComponent;
|
||||
}());
|
||||
export { StatsComponent };
|
||||
//qlik.on( "error", function ( error ) {
|
||||
//$( '#popupText' ).append( error.message + "<br>" );
|
||||
//$( '#popup' ).fadeIn( 1000 );
|
||||
//} );
|
||||
//$( "#closePopup" ).click( function () {
|
||||
//$( '#popup' ).hide();
|
||||
/*var app = qlik.openApp('dae8a66d-facf-4554-9ca7-236680144b2c', config );
|
||||
app.getObject('QV01','dEAEcX' );
|
||||
} );
|
||||
|
||||
//callbacks -- inserted here --
|
||||
//open apps -- inserted here --
|
||||
//get objects -- inserted here --
|
||||
//create cubes and lists -- inserted here --
|
||||
|
||||
//var app = qlik.openApp('dae8a66d-facf-4554-9ca7-236680144b2c', config );
|
||||
//app.getObject('QV01','dEAEcX' );
|
||||
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
console.log("I'm the TD BANK mashup", event);
|
||||
}
|
||||
|
||||
tabSelect($event, tab) {
|
||||
$event.preventDefault();
|
||||
$event.stopPropagation();
|
||||
this.tab = tab;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//# sourceMappingURL=stats.component.js.map
|
||||
1
dist/out-tsc/src/app/stats/stats.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/stats/stats.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"stats.component.js","sourceRoot":"","sources":["../../../../../src/app/stats/stats.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAU,MAAM,eAAe,CAAC;AAClD,OAAO,KAAK,OAAO,MAAM,4BAA4B,CAAC;AACtD,iDAAiD;AAQjD;IAIE,6CAA6C;IAG7C;QALA,aAAQ,GAAG,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QACtC,QAAG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}
|
||||
21
dist/out-tsc/src/app/stats/stats.component.spec.js
vendored
Normal file
21
dist/out-tsc/src/app/stats/stats.component.spec.js
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import { async, TestBed } from '@angular/core/testing';
|
||||
import { StatsComponent } from './stats.component';
|
||||
describe('StatsComponent', function () {
|
||||
var component;
|
||||
var fixture;
|
||||
beforeEach(async(function () {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [StatsComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
beforeEach(function () {
|
||||
fixture = TestBed.createComponent(StatsComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
it('should create', function () {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
//# sourceMappingURL=stats.component.spec.js.map
|
||||
1
dist/out-tsc/src/app/stats/stats.component.spec.js.map
vendored
Normal file
1
dist/out-tsc/src/app/stats/stats.component.spec.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"stats.component.spec.js","sourceRoot":"","sources":["../../../../../src/app/stats/stats.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"}
|
||||
286
dist/out-tsc/src/app/tables/table-admin.component.js
vendored
Normal file
286
dist/out-tsc/src/app/tables/table-admin.component.js
vendored
Normal file
@@ -0,0 +1,286 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Component, HostListener, ViewChild, ChangeDetectorRef } from '@angular/core';
|
||||
import { MdbTableDirective, MdbTablePaginationComponent, MDBModalService } from 'angular-bootstrap-md';
|
||||
import { ProvisionsService } from '../services/provisions.service';
|
||||
import { AlertService } from '../services/alert.service';
|
||||
import { ModalInfoComponent } from '../alert/modalinfo.component';
|
||||
import { ModalConfirmComponent } from '../alert/confirm.component';
|
||||
import { ScenariosService } from '../services/scenarios.service';
|
||||
import { timer } from 'rxjs';
|
||||
import { switchMap } from 'rxjs/operators';
|
||||
var TableAdminComponent = /** @class */ (function () {
|
||||
function TableAdminComponent(modalService, _scenariosService, _alertService, cdRef, _provisionsService) {
|
||||
this.modalService = modalService;
|
||||
this._scenariosService = _scenariosService;
|
||||
this._alertService = _alertService;
|
||||
this.cdRef = cdRef;
|
||||
this._provisionsService = _provisionsService;
|
||||
this.pagingIsDisabled = false;
|
||||
this.searchText = '';
|
||||
this.selectedprov = null;
|
||||
this.showInfo = false;
|
||||
this.logShow = false;
|
||||
this.logstype = 'provision';
|
||||
this.maxVisibleItems = 10;
|
||||
this.filterParams = {
|
||||
isDestroyed: false
|
||||
};
|
||||
}
|
||||
TableAdminComponent.prototype.oninput = function () {
|
||||
this.mdbTablePagination.searchText = this.searchText;
|
||||
};
|
||||
TableAdminComponent.prototype._process = function (provisions) {
|
||||
var _this = this;
|
||||
provisions.forEach(function (p) {
|
||||
p._scenario = _this.scenarios.filter(function (s) { return s.name === p.scenario; });
|
||||
_this._provisionsService.timeRunning(p);
|
||||
});
|
||||
if (!this.provisions) {
|
||||
this.provisions = provisions;
|
||||
}
|
||||
else {
|
||||
this.provisions.forEach(function (p, index, object) {
|
||||
var found = provisions.filter(function (a) { return a._id.toString() === p._id.toString(); });
|
||||
if (found.length) {
|
||||
p.status = found[0].status;
|
||||
p.statusVms = found[0].statusVms;
|
||||
p.isDestroyed = found[0].isDestroyed;
|
||||
p.outputs = found[0].outputs;
|
||||
p.destroy = found[0].destroy;
|
||||
this._provisionsService.timeRunning(p);
|
||||
}
|
||||
else {
|
||||
object.splice(index, 1);
|
||||
}
|
||||
}.bind(this));
|
||||
provisions.forEach(function (p) {
|
||||
var found = this.provisions.filter(function (a) { return a._id.toString() === p._id.toString(); });
|
||||
if (found.length === 0) {
|
||||
this.provisions.unshift(p);
|
||||
}
|
||||
}.bind(this));
|
||||
}
|
||||
this._initElements(this.provisions);
|
||||
};
|
||||
TableAdminComponent.prototype._initElements = function (items) {
|
||||
this.mdbTable.setDataSource(items);
|
||||
this.elements = this.mdbTable.getDataSource();
|
||||
this.previous = this.mdbTable.getDataSource();
|
||||
};
|
||||
TableAdminComponent.prototype.ngOnInit = function () {
|
||||
var _this = this;
|
||||
var scenariosSub = this._scenariosService.getScenariosAll().subscribe(function (res) {
|
||||
scenariosSub.unsubscribe();
|
||||
_this.scenarios = res.results;
|
||||
_this.subscription = timer(0, 8000).pipe(switchMap(function () { return _this._provisionsService.getProvisionsAdmin(_this.filterParams); })).subscribe(function (provisions) {
|
||||
_this._process(provisions.results);
|
||||
});
|
||||
});
|
||||
this.mdbTablePagination.paginationChange().subscribe(function (data) {
|
||||
/*let page = data.last - data.first;
|
||||
if (page < this.limit && page > 0) {
|
||||
page = Math.ceil(data.last / this.limit);
|
||||
if (this.page !== page) {
|
||||
this.page = Math.ceil(data.last / this.limit);
|
||||
this.loadTable();
|
||||
}
|
||||
}*/
|
||||
});
|
||||
//this._initElements();
|
||||
};
|
||||
TableAdminComponent.prototype.ngAfterViewInit = function () {
|
||||
if (this.mdbTablePagination) {
|
||||
this.mdbTablePagination.setMaxVisibleItemsNumberTo(this.maxVisibleItems);
|
||||
this.mdbTablePagination.calculateFirstItemIndex();
|
||||
this.mdbTablePagination.calculateLastItemIndex();
|
||||
this.cdRef.detectChanges();
|
||||
}
|
||||
};
|
||||
TableAdminComponent.prototype.searchItems = function () {
|
||||
var _this = this;
|
||||
var prev = this.mdbTable.getDataSource();
|
||||
if (!this.searchText) {
|
||||
this.mdbTable.setDataSource(this.previous);
|
||||
this.elements = this.mdbTable.getDataSource();
|
||||
}
|
||||
if (this.searchText) {
|
||||
this.elements = this.mdbTable.searchLocalDataBy(this.searchText);
|
||||
this.mdbTable.setDataSource(prev);
|
||||
}
|
||||
if (this.mdbTablePagination) {
|
||||
this.mdbTablePagination.calculateFirstItemIndex();
|
||||
this.mdbTablePagination.calculateLastItemIndex();
|
||||
this.mdbTable.searchDataObservable(this.searchText).subscribe(function () {
|
||||
_this.mdbTablePagination.calculateFirstItemIndex();
|
||||
_this.mdbTablePagination.calculateLastItemIndex();
|
||||
});
|
||||
}
|
||||
};
|
||||
TableAdminComponent.prototype.showLogs = function ($event, provision, type) {
|
||||
$event.preventDefault();
|
||||
$event.stopPropagation();
|
||||
this.logstype = type;
|
||||
this.logShow = false;
|
||||
this.selectedprov = provision;
|
||||
this.logShow = true;
|
||||
};
|
||||
TableAdminComponent.prototype.onLogsClose = function () {
|
||||
this.selectedprov = null;
|
||||
this.logShow = false;
|
||||
};
|
||||
TableAdminComponent.prototype.openConfirmStartModal = function (provision) {
|
||||
var _this = this;
|
||||
var modalRef = this.modalService.show(ModalConfirmComponent, {
|
||||
class: 'modal-sm modal-notify modal-info',
|
||||
containerClass: '',
|
||||
data: {
|
||||
info: {
|
||||
title: 'Confirm Start VMs?',
|
||||
icon: 'play',
|
||||
buttonColor: 'grey'
|
||||
}
|
||||
}
|
||||
});
|
||||
var sub = modalRef.content.action.subscribe(function (result) {
|
||||
sub.unsubscribe();
|
||||
_this._startVms(provision);
|
||||
});
|
||||
};
|
||||
TableAdminComponent.prototype._startVms = function (provision) {
|
||||
var _this = this;
|
||||
var sub = this._provisionsService.startVms(provision._id.toString(), provision.user._id).subscribe(function (res) {
|
||||
provision.startVms = res.startVms;
|
||||
sub.unsubscribe();
|
||||
_this._alertService.showAlert({
|
||||
type: 'alert-primary',
|
||||
text: "Starting all VMs for scenario '" + provision.scenario + "'..."
|
||||
});
|
||||
});
|
||||
};
|
||||
TableAdminComponent.prototype.openConfirmStopModal = function (provision) {
|
||||
var _this = this;
|
||||
var modalRef = this.modalService.show(ModalConfirmComponent, {
|
||||
class: 'modal-sm modal-notify modal-info',
|
||||
containerClass: '',
|
||||
data: {
|
||||
info: {
|
||||
title: 'Confirm Stop VMs?',
|
||||
icon: 'stop',
|
||||
buttonColor: 'grey'
|
||||
}
|
||||
}
|
||||
});
|
||||
var sub = modalRef.content.action.subscribe(function (result) {
|
||||
sub.unsubscribe();
|
||||
_this._stopVms(provision);
|
||||
});
|
||||
};
|
||||
TableAdminComponent.prototype._stopVms = function (provision) {
|
||||
var _this = this;
|
||||
var sub = this._provisionsService.stopVms(provision._id.toString(), provision.user._id).subscribe(function (res) {
|
||||
provision.startVms = res.startVms;
|
||||
sub.unsubscribe();
|
||||
_this._alertService.showAlert({
|
||||
type: 'alert-primary',
|
||||
text: "Stopping all VMs for scenario '" + provision.scenario + "'..."
|
||||
});
|
||||
});
|
||||
};
|
||||
TableAdminComponent.prototype.openInfoModal = function (provision) {
|
||||
this.modalService.show(ModalInfoComponent, {
|
||||
backdrop: true,
|
||||
keyboard: true,
|
||||
focus: true,
|
||||
show: false,
|
||||
ignoreBackdropClick: false,
|
||||
class: 'modal-lg',
|
||||
containerClass: '',
|
||||
animated: true,
|
||||
data: {
|
||||
info: provision
|
||||
}
|
||||
});
|
||||
};
|
||||
TableAdminComponent.prototype.openConfirmDestroyModal = function (provision) {
|
||||
var _this = this;
|
||||
var modalRef = this.modalService.show(ModalConfirmComponent, {
|
||||
class: 'modal-sm modal-notify modal-danger',
|
||||
containerClass: '',
|
||||
data: {
|
||||
info: {
|
||||
title: 'Confirm destroy this provision?',
|
||||
icon: 'times-circle'
|
||||
}
|
||||
}
|
||||
});
|
||||
var sub = modalRef.content.action.subscribe(function (result) {
|
||||
sub.unsubscribe();
|
||||
_this._provisionsService.newDestroy(provision._id.toString(), provision.user._id).subscribe(function (provUpdated) {
|
||||
_this._alertService.showAlert({
|
||||
type: 'alert-primary',
|
||||
text: "Provision of scenario '" + provision.scenario + "' is going to be destroyed"
|
||||
});
|
||||
provision.destroy = provUpdated.destroy;
|
||||
});
|
||||
});
|
||||
};
|
||||
TableAdminComponent.prototype.openConfirmDeleteModal = function (provision) {
|
||||
var _this = this;
|
||||
var modalRef = this.modalService.show(ModalConfirmComponent, {
|
||||
class: 'modal-sm modal-notify modal-danger',
|
||||
containerClass: '',
|
||||
data: {
|
||||
info: {
|
||||
title: 'Confirm delete?',
|
||||
icon: 'trash-alt'
|
||||
}
|
||||
}
|
||||
});
|
||||
var sub = modalRef.content.action.subscribe(function (result) {
|
||||
sub.unsubscribe();
|
||||
_this._provisionsService.delProvision(provision._id, provision.user._id).subscribe(function (res) {
|
||||
_this.elements = _this.elements.filter(function (e) {
|
||||
return e._id.toString() !== provision._id.toString();
|
||||
});
|
||||
_this._initElements(_this.elements);
|
||||
_this._alertService.showAlert({
|
||||
type: 'alert-primary',
|
||||
text: "Provision entry '" + provision.scenario + "' was deleted"
|
||||
});
|
||||
});
|
||||
});
|
||||
};
|
||||
__decorate([
|
||||
ViewChild(MdbTablePaginationComponent, { static: true }),
|
||||
__metadata("design:type", MdbTablePaginationComponent)
|
||||
], TableAdminComponent.prototype, "mdbTablePagination", void 0);
|
||||
__decorate([
|
||||
ViewChild(MdbTableDirective, { static: true }),
|
||||
__metadata("design:type", MdbTableDirective)
|
||||
], TableAdminComponent.prototype, "mdbTable", void 0);
|
||||
__decorate([
|
||||
HostListener('input'),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", []),
|
||||
__metadata("design:returntype", void 0)
|
||||
], TableAdminComponent.prototype, "oninput", null);
|
||||
TableAdminComponent = __decorate([
|
||||
Component({
|
||||
selector: 'table-admin',
|
||||
templateUrl: './table-admin.component.html',
|
||||
styleUrls: ['./table-admin.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [MDBModalService, ScenariosService, AlertService, ChangeDetectorRef, ProvisionsService])
|
||||
], TableAdminComponent);
|
||||
return TableAdminComponent;
|
||||
}());
|
||||
export { TableAdminComponent };
|
||||
//# sourceMappingURL=table-admin.component.js.map
|
||||
1
dist/out-tsc/src/app/tables/table-admin.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/tables/table-admin.component.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
132
dist/out-tsc/src/app/tables/table-apikeys.component.js
vendored
Normal file
132
dist/out-tsc/src/app/tables/table-apikeys.component.js
vendored
Normal file
@@ -0,0 +1,132 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { MdbTablePaginationComponent, MdbTableDirective, MDBModalService } from 'angular-bootstrap-md';
|
||||
import { Component, ViewChild, HostListener, ChangeDetectorRef } from '@angular/core';
|
||||
import { UsersService } from '../services/users.service';
|
||||
import { ApikeyModalComponent } from '../modals/edit-apikey.component';
|
||||
import { ModalConfirmComponent } from '../modals/confirm.component';
|
||||
var TableApiKeysComponent = /** @class */ (function () {
|
||||
function TableApiKeysComponent(modalService, cdRef, _usersService) {
|
||||
this.modalService = modalService;
|
||||
this.cdRef = cdRef;
|
||||
this._usersService = _usersService;
|
||||
this.previous = [];
|
||||
this.searchText = '';
|
||||
this.maxVisibleItems = 25;
|
||||
this.loading = false;
|
||||
this.elements = [];
|
||||
}
|
||||
TableApiKeysComponent.prototype.oninput = function () {
|
||||
this.mdbTablePagination.searchText = this.searchText;
|
||||
};
|
||||
TableApiKeysComponent.prototype._initElements = function () {
|
||||
this.mdbTable.setDataSource(this.elements);
|
||||
this.elements = this.mdbTable.getDataSource();
|
||||
this.previous = this.mdbTable.getDataSource();
|
||||
};
|
||||
TableApiKeysComponent.prototype.ngOnInit = function () {
|
||||
this.refreshData();
|
||||
};
|
||||
TableApiKeysComponent.prototype.refreshData = function () {
|
||||
var _this = this;
|
||||
this.loading = true;
|
||||
this.searchText = "";
|
||||
var sub = this._usersService.getApiKeys().subscribe(function (res) {
|
||||
sub.unsubscribe();
|
||||
_this.elements = res.results;
|
||||
_this.loading = false;
|
||||
_this._initElements();
|
||||
});
|
||||
};
|
||||
TableApiKeysComponent.prototype.ngAfterViewInit = function () {
|
||||
this.mdbTablePagination.setMaxVisibleItemsNumberTo(this.maxVisibleItems);
|
||||
this.mdbTablePagination.calculateFirstItemIndex();
|
||||
this.mdbTablePagination.calculateLastItemIndex();
|
||||
this.cdRef.detectChanges();
|
||||
};
|
||||
TableApiKeysComponent.prototype.searchItems = function () {
|
||||
var _this = this;
|
||||
var prev = this.mdbTable.getDataSource();
|
||||
if (!this.searchText) {
|
||||
this.mdbTable.setDataSource(this.previous);
|
||||
this.elements = this.mdbTable.getDataSource();
|
||||
}
|
||||
if (this.searchText) {
|
||||
this.elements = this.mdbTable.searchLocalDataBy(this.searchText);
|
||||
this.mdbTable.setDataSource(prev);
|
||||
}
|
||||
this.mdbTablePagination.calculateFirstItemIndex();
|
||||
this.mdbTablePagination.calculateLastItemIndex();
|
||||
this.mdbTable.searchDataObservable(this.searchText).subscribe(function () {
|
||||
_this.mdbTablePagination.calculateFirstItemIndex();
|
||||
_this.mdbTablePagination.calculateLastItemIndex();
|
||||
});
|
||||
};
|
||||
TableApiKeysComponent.prototype.openNewApiKeyModal = function (apiKey) {
|
||||
var _this = this;
|
||||
var modalRef = this.modalService.show(ApikeyModalComponent, {
|
||||
class: 'modal-lg modal-notify',
|
||||
containerClass: '',
|
||||
data: {
|
||||
apiKey: apiKey
|
||||
}
|
||||
});
|
||||
var sub = modalRef.content.action.subscribe(function (data) {
|
||||
sub.unsubscribe();
|
||||
console.log("new api key data", data);
|
||||
_this.refreshData();
|
||||
});
|
||||
};
|
||||
TableApiKeysComponent.prototype.openConfirmDeleteModal = function (apiKey) {
|
||||
var _this = this;
|
||||
var modalRef = this.modalService.show(ModalConfirmComponent, {
|
||||
class: 'modal-sm modal-notify modal-danger',
|
||||
containerClass: '',
|
||||
data: {
|
||||
info: {
|
||||
title: 'Confirm revoke?',
|
||||
icon: ''
|
||||
}
|
||||
}
|
||||
});
|
||||
var sub = modalRef.content.action.subscribe(function (result) {
|
||||
sub.unsubscribe();
|
||||
_this._usersService.delApikey(apiKey._id).subscribe(function (res) {
|
||||
console.log("done", res);
|
||||
_this.refreshData();
|
||||
});
|
||||
});
|
||||
};
|
||||
__decorate([
|
||||
ViewChild(MdbTablePaginationComponent, { static: true }),
|
||||
__metadata("design:type", MdbTablePaginationComponent)
|
||||
], TableApiKeysComponent.prototype, "mdbTablePagination", void 0);
|
||||
__decorate([
|
||||
ViewChild(MdbTableDirective, { static: true }),
|
||||
__metadata("design:type", MdbTableDirective)
|
||||
], TableApiKeysComponent.prototype, "mdbTable", void 0);
|
||||
__decorate([
|
||||
HostListener('input'),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", []),
|
||||
__metadata("design:returntype", void 0)
|
||||
], TableApiKeysComponent.prototype, "oninput", null);
|
||||
TableApiKeysComponent = __decorate([
|
||||
Component({
|
||||
selector: 'table-apikeys',
|
||||
templateUrl: './table-apikeys.component.html',
|
||||
styleUrls: ['./table-apikeys.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [MDBModalService, ChangeDetectorRef, UsersService])
|
||||
], TableApiKeysComponent);
|
||||
return TableApiKeysComponent;
|
||||
}());
|
||||
export { TableApiKeysComponent };
|
||||
//# sourceMappingURL=table-apikeys.component.js.map
|
||||
1
dist/out-tsc/src/app/tables/table-apikeys.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/tables/table-apikeys.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"table-apikeys.component.js","sourceRoot":"","sources":["../../../../../src/app/tables/table-apikeys.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,2BAA2B,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvG,OAAO,EAAE,SAAS,EAAU,SAAS,EAAE,YAAY,EAAiB,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC7G,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AA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C,SAAS,CAAC;YACT,QAAQ,EAAE,eAAe;YACzB,WAAW,EAAE,gCAAgC;YAC7C,SAAS,EAAE,CAAC,gCAAgC,CAAC;SAC9C,CAAC;yCAiBkC,eAAe,EAAiB,iBAAiB,EAAyB,YAAY;OAhB7G,qBAAqB,CA6GjC;IAAD,4BAAC;CAAA,AA7GD,IA6GC;SA7GY,qBAAqB"}
|
||||
94
dist/out-tsc/src/app/tables/table-notifications.component.js
vendored
Normal file
94
dist/out-tsc/src/app/tables/table-notifications.component.js
vendored
Normal file
@@ -0,0 +1,94 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { MdbTablePaginationComponent, MdbTableDirective } from 'angular-bootstrap-md';
|
||||
import { Component, ViewChild, HostListener, ChangeDetectorRef } from '@angular/core';
|
||||
import { UsersService } from '../services/users.service';
|
||||
var TableNotificationsComponent = /** @class */ (function () {
|
||||
function TableNotificationsComponent(cdRef, _usersService) {
|
||||
this.cdRef = cdRef;
|
||||
this._usersService = _usersService;
|
||||
this.previous = [];
|
||||
this.searchText = '';
|
||||
this.maxVisibleItems = 25;
|
||||
this.loading = false;
|
||||
this.elements = [];
|
||||
}
|
||||
TableNotificationsComponent.prototype.oninput = function () {
|
||||
this.mdbTablePagination.searchText = this.searchText;
|
||||
};
|
||||
TableNotificationsComponent.prototype._initElements = function () {
|
||||
this.mdbTable.setDataSource(this.elements);
|
||||
this.elements = this.mdbTable.getDataSource();
|
||||
this.previous = this.mdbTable.getDataSource();
|
||||
};
|
||||
TableNotificationsComponent.prototype.ngOnInit = function () {
|
||||
this.refreshData();
|
||||
};
|
||||
TableNotificationsComponent.prototype.refreshData = function () {
|
||||
var _this = this;
|
||||
this.loading = true;
|
||||
this.searchText = "";
|
||||
var sub = this._usersService.getNotifications().subscribe(function (res) {
|
||||
sub.unsubscribe();
|
||||
_this.elements = res.results;
|
||||
_this.loading = false;
|
||||
_this._initElements();
|
||||
});
|
||||
};
|
||||
TableNotificationsComponent.prototype.ngAfterViewInit = function () {
|
||||
this.mdbTablePagination.setMaxVisibleItemsNumberTo(this.maxVisibleItems);
|
||||
this.mdbTablePagination.calculateFirstItemIndex();
|
||||
this.mdbTablePagination.calculateLastItemIndex();
|
||||
this.cdRef.detectChanges();
|
||||
};
|
||||
TableNotificationsComponent.prototype.searchItems = function () {
|
||||
var _this = this;
|
||||
var prev = this.mdbTable.getDataSource();
|
||||
if (!this.searchText) {
|
||||
this.mdbTable.setDataSource(this.previous);
|
||||
this.elements = this.mdbTable.getDataSource();
|
||||
}
|
||||
if (this.searchText) {
|
||||
this.elements = this.mdbTable.searchLocalDataBy(this.searchText);
|
||||
this.mdbTable.setDataSource(prev);
|
||||
}
|
||||
this.mdbTablePagination.calculateFirstItemIndex();
|
||||
this.mdbTablePagination.calculateLastItemIndex();
|
||||
this.mdbTable.searchDataObservable(this.searchText).subscribe(function () {
|
||||
_this.mdbTablePagination.calculateFirstItemIndex();
|
||||
_this.mdbTablePagination.calculateLastItemIndex();
|
||||
});
|
||||
};
|
||||
__decorate([
|
||||
ViewChild(MdbTablePaginationComponent, { static: true }),
|
||||
__metadata("design:type", MdbTablePaginationComponent)
|
||||
], TableNotificationsComponent.prototype, "mdbTablePagination", void 0);
|
||||
__decorate([
|
||||
ViewChild(MdbTableDirective, { static: true }),
|
||||
__metadata("design:type", MdbTableDirective)
|
||||
], TableNotificationsComponent.prototype, "mdbTable", void 0);
|
||||
__decorate([
|
||||
HostListener('input'),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", []),
|
||||
__metadata("design:returntype", void 0)
|
||||
], TableNotificationsComponent.prototype, "oninput", null);
|
||||
TableNotificationsComponent = __decorate([
|
||||
Component({
|
||||
selector: 'table-notifications',
|
||||
templateUrl: './table-notifications.component.html',
|
||||
styleUrls: ['./table-notifications.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [ChangeDetectorRef, UsersService])
|
||||
], TableNotificationsComponent);
|
||||
return TableNotificationsComponent;
|
||||
}());
|
||||
export { TableNotificationsComponent };
|
||||
//# sourceMappingURL=table-notifications.component.js.map
|
||||
1
dist/out-tsc/src/app/tables/table-notifications.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/tables/table-notifications.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"table-notifications.component.js","sourceRoot":"","sources":["../../../../../src/app/tables/table-notifications.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,2BAA2B,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEtF,OAAO,EAAE,SAAS,EAAU,SAAS,EAAE,YAAY,EAAiB,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC7G,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAOzD;IAgBE,qCAAoB,KAAwB,EAAU,aAA2B;QAA7D,UAAK,GAAL,KAAK,CAAmB;QAAU,kBAAa,GAAb,aAAa,CAAc;QAXjF,aAAQ,GAAQ,EAAE,CAAC;QACnB,eAAU,GAAW,EAAE,CAAC;QACxB,oBAAe,GAAW,EAAE,CAAC;QAE7B,YAAO,GAAY,KAAK,CAAC;QACzB,aAAQ,GAAG,EAAE,CAAC;IAOd,CAAC;IALsB,6CAAO,GAAP;QACrB,IAAI,CAAC,kBAAkB,CAAC,UAAU,GAAG,IAAI,CAAC,UAA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CAAC;YAC3C,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC;SAC/C;QAED,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YACjE,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;SACnC;QAED,IAAI,CAAC,kBAAkB,CAAC,uBAAuB,EAAE,CAAC;QAClD,IAAI,CAAC,kBAAkB,CAAC,sBAAsB,EAAE,CAAC;QAEjD,IAAI,CAAC,QAAQ,CAAC,oBAAoB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC;YAC5D,KAAI,CAAC,kBAAkB,CAAC,uBAAuB,EAAE,CAAC;YAClD,KAAI,CAAC,kBAAkB,CAAC,sBAAsB,EAAE,CAAC;QACnD,CAAC,CAAC,CAAC;IACL,CAAC;IAnEyD;QAAzD,SAAS,CAAC,2BAA2B,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;kCAAqB,2BAA2B;2EAAC;IAC1D;QAA/C,SAAS,CAAC,iBAAiB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;kCAAW,iBAAiB;iEAAC;IASrD;QAAtB,YAAY,CAAC,OAAO,CAAC;;;;8DAErB;IAdU,2BAA2B;QALvC,SAAS,CAAC;YACT,QAAQ,EAAE,qBAAqB;YAC/B,WAAW,EAAE,sCAAsC;YACnD,SAAS,EAAE,CAAC,sCAAsC,CAAC;SACpD,CAAC;yCAiB2B,iBAAiB,EAAyB,YAAY;OAhBtE,2BAA2B,CAuEvC;IAAD,kCAAC;CAAA,AAvED,IAuEC;SAvEY,2BAA2B"}
|
||||
331
dist/out-tsc/src/app/tables/table-provisions.component.js
vendored
Normal file
331
dist/out-tsc/src/app/tables/table-provisions.component.js
vendored
Normal file
@@ -0,0 +1,331 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { Component, HostListener, ViewChild, ChangeDetectorRef } from '@angular/core';
|
||||
import { MdbTableDirective, MdbTablePaginationComponent, MDBModalService } from 'angular-bootstrap-md';
|
||||
import { ProvisionsService } from '../services/provisions.service';
|
||||
import { AlertService } from '../services/alert.service';
|
||||
import { ModalInfoComponent } from '../modals/modalinfo.component';
|
||||
import { ModalConfirmComponent } from '../modals/confirm.component';
|
||||
import { ScenariosService } from '../services/scenarios.service';
|
||||
var TableProvisionsAdminComponent = /** @class */ (function () {
|
||||
function TableProvisionsAdminComponent(modalService, _scenariosService, _alertService, cdRef, _provisionsService) {
|
||||
this.modalService = modalService;
|
||||
this._scenariosService = _scenariosService;
|
||||
this._alertService = _alertService;
|
||||
this.cdRef = cdRef;
|
||||
this._provisionsService = _provisionsService;
|
||||
this.filter = {
|
||||
showDestroyed: false
|
||||
};
|
||||
this.filterParams = {
|
||||
isDestroyed: false
|
||||
};
|
||||
this.loading = false;
|
||||
this.pagingIsDisabled = false;
|
||||
//@ViewChild('row', { static: true }) row: ElementRef;
|
||||
this.elements = [];
|
||||
this.searchText = '';
|
||||
this.selectedprov = null;
|
||||
this.showInfo = false;
|
||||
this.logShow = false;
|
||||
this.logstype = 'provision';
|
||||
this.maxVisibleItems = 25;
|
||||
}
|
||||
TableProvisionsAdminComponent.prototype.oninput = function () {
|
||||
this.mdbTablePagination.searchText = this.searchText;
|
||||
};
|
||||
TableProvisionsAdminComponent.prototype._initElements = function () {
|
||||
this.mdbTable.setDataSource(this.elements);
|
||||
this.elements = this.mdbTable.getDataSource();
|
||||
this.previous = this.mdbTable.getDataSource();
|
||||
};
|
||||
TableProvisionsAdminComponent.prototype._process = function (provisions) {
|
||||
var _this = this;
|
||||
provisions.forEach(function (p) {
|
||||
p._scenario = _this.scenarios.filter(function (s) { return s.name === p.scenario; });
|
||||
_this._provisionsService.timeRunning(p);
|
||||
});
|
||||
if (this.elements.length === 0) {
|
||||
this.elements = provisions;
|
||||
}
|
||||
else {
|
||||
this.elements.forEach(function (p, index, object) {
|
||||
var found = provisions.filter(function (a) { return a._id.toString() === p._id.toString(); });
|
||||
if (found.length) {
|
||||
p.status = found[0].status;
|
||||
p.statusVms = found[0].statusVms;
|
||||
p.isDestroyed = found[0].isDestroyed;
|
||||
p.outputs = found[0].outputs;
|
||||
p.destroy = found[0].destroy;
|
||||
this._provisionsService.timeRunning(p);
|
||||
}
|
||||
else {
|
||||
object.splice(index, 1);
|
||||
}
|
||||
}.bind(this));
|
||||
provisions.forEach(function (p) {
|
||||
var found = this.elements.filter(function (a) { return a._id.toString() === p._id.toString(); });
|
||||
if (found.length === 0) {
|
||||
this.elements.unshift(p);
|
||||
}
|
||||
}.bind(this));
|
||||
}
|
||||
this._initElements();
|
||||
};
|
||||
TableProvisionsAdminComponent.prototype.ngOnInit = function () {
|
||||
var _this = this;
|
||||
var scenariosSub = this._scenariosService.getScenariosAll().subscribe(function (res) {
|
||||
scenariosSub.unsubscribe();
|
||||
_this.scenarios = res.results;
|
||||
/*this.subscription = timer(0, 8000).pipe( switchMap(() => this._provisionsService.getProvisionsAdmin(this.filterParams) ) ).subscribe(provisions => {
|
||||
this._process(provisions.results);
|
||||
});*/
|
||||
_this.refreshData();
|
||||
});
|
||||
//this._initElements();
|
||||
};
|
||||
TableProvisionsAdminComponent.prototype.ngOnDestroy = function () {
|
||||
if (this.subscription) {
|
||||
this.subscription.unsubscribe();
|
||||
}
|
||||
};
|
||||
TableProvisionsAdminComponent.prototype.ngAfterViewInit = function () {
|
||||
if (this.mdbTablePagination) {
|
||||
this.mdbTablePagination.setMaxVisibleItemsNumberTo(this.maxVisibleItems);
|
||||
this.mdbTablePagination.calculateFirstItemIndex();
|
||||
this.mdbTablePagination.calculateLastItemIndex();
|
||||
this.cdRef.detectChanges();
|
||||
}
|
||||
};
|
||||
TableProvisionsAdminComponent.prototype.searchItems = function () {
|
||||
var _this = this;
|
||||
var prev = this.mdbTable.getDataSource();
|
||||
if (!this.searchText) {
|
||||
this.mdbTable.setDataSource(this.previous);
|
||||
this.elements = this.mdbTable.getDataSource();
|
||||
}
|
||||
if (this.searchText) {
|
||||
this.elements = this.mdbTable.searchLocalDataBy(this.searchText);
|
||||
this.mdbTable.setDataSource(prev);
|
||||
}
|
||||
if (this.mdbTablePagination) {
|
||||
this.mdbTablePagination.calculateFirstItemIndex();
|
||||
this.mdbTablePagination.calculateLastItemIndex();
|
||||
this.mdbTable.searchDataObservable(this.searchText).subscribe(function () {
|
||||
_this.mdbTablePagination.calculateFirstItemIndex();
|
||||
_this.mdbTablePagination.calculateLastItemIndex();
|
||||
});
|
||||
}
|
||||
};
|
||||
TableProvisionsAdminComponent.prototype.showLogs = function ($event, provision, type) {
|
||||
$event.preventDefault();
|
||||
$event.stopPropagation();
|
||||
this.logstype = type;
|
||||
this.logShow = false;
|
||||
this.selectedprov = provision;
|
||||
this.logShow = true;
|
||||
};
|
||||
TableProvisionsAdminComponent.prototype.onLogsClose = function () {
|
||||
this.selectedprov = null;
|
||||
this.logShow = false;
|
||||
};
|
||||
TableProvisionsAdminComponent.prototype.openConfirmStartModal = function (provision) {
|
||||
var _this = this;
|
||||
var modalRef = this.modalService.show(ModalConfirmComponent, {
|
||||
class: 'modal-sm modal-notify modal-info',
|
||||
containerClass: '',
|
||||
data: {
|
||||
info: {
|
||||
title: 'Confirm Start VMs?',
|
||||
icon: 'play',
|
||||
buttonColor: 'grey'
|
||||
}
|
||||
}
|
||||
});
|
||||
var sub = modalRef.content.action.subscribe(function (result) {
|
||||
sub.unsubscribe();
|
||||
_this._startVms(provision);
|
||||
});
|
||||
};
|
||||
TableProvisionsAdminComponent.prototype._startVms = function (provision) {
|
||||
var _this = this;
|
||||
var sub = this._provisionsService.startVms(provision._id.toString(), provision.user._id).subscribe(function (res) {
|
||||
provision.startVms = res.startVms;
|
||||
sub.unsubscribe();
|
||||
_this._alertService.showAlert({
|
||||
type: 'alert-primary',
|
||||
text: "Starting all VMs for scenario '" + provision.scenario + "'..."
|
||||
});
|
||||
});
|
||||
};
|
||||
TableProvisionsAdminComponent.prototype.openConfirmStopModal = function (provision) {
|
||||
var _this = this;
|
||||
var modalRef = this.modalService.show(ModalConfirmComponent, {
|
||||
class: 'modal-sm modal-notify modal-info',
|
||||
containerClass: '',
|
||||
data: {
|
||||
info: {
|
||||
title: 'Confirm Stop VMs?',
|
||||
icon: 'stop',
|
||||
buttonColor: 'grey'
|
||||
}
|
||||
}
|
||||
});
|
||||
var sub = modalRef.content.action.subscribe(function (result) {
|
||||
sub.unsubscribe();
|
||||
_this._stopVms(provision);
|
||||
});
|
||||
};
|
||||
TableProvisionsAdminComponent.prototype._stopVms = function (provision) {
|
||||
var _this = this;
|
||||
var sub = this._provisionsService.stopVms(provision._id.toString(), provision.user._id).subscribe(function (res) {
|
||||
provision.startVms = res.startVms;
|
||||
sub.unsubscribe();
|
||||
_this._alertService.showAlert({
|
||||
type: 'alert-primary',
|
||||
text: "Stopping all VMs for scenario '" + provision.scenario + "'..."
|
||||
});
|
||||
});
|
||||
};
|
||||
TableProvisionsAdminComponent.prototype.openInfoModal = function (provision) {
|
||||
this.modalService.show(ModalInfoComponent, {
|
||||
backdrop: true,
|
||||
keyboard: true,
|
||||
focus: true,
|
||||
show: false,
|
||||
ignoreBackdropClick: false,
|
||||
class: 'modal-lg',
|
||||
containerClass: '',
|
||||
animated: true,
|
||||
data: {
|
||||
info: provision
|
||||
}
|
||||
});
|
||||
};
|
||||
TableProvisionsAdminComponent.prototype.openConfirmDestroyModal = function (provision) {
|
||||
var _this = this;
|
||||
var modalRef = this.modalService.show(ModalConfirmComponent, {
|
||||
class: 'modal-sm modal-notify modal-danger',
|
||||
containerClass: '',
|
||||
data: {
|
||||
info: {
|
||||
title: 'Confirm destroy this provision?',
|
||||
icon: 'times-circle'
|
||||
}
|
||||
}
|
||||
});
|
||||
var sub = modalRef.content.action.subscribe(function (result) {
|
||||
sub.unsubscribe();
|
||||
_this._provisionsService.newDestroy(provision._id.toString(), provision.user._id).subscribe(function (provUpdated) {
|
||||
_this._alertService.showAlert({
|
||||
type: 'alert-primary',
|
||||
text: "Provision of scenario '" + provision.scenario + "' is going to be destroyed"
|
||||
});
|
||||
provision.destroy = provUpdated.destroy;
|
||||
});
|
||||
});
|
||||
};
|
||||
TableProvisionsAdminComponent.prototype.openConfirmDeleteModal = function (provision) {
|
||||
var _this = this;
|
||||
var modalRef = this.modalService.show(ModalConfirmComponent, {
|
||||
class: 'modal-sm modal-notify modal-danger',
|
||||
containerClass: '',
|
||||
data: {
|
||||
info: {
|
||||
title: 'Confirm delete?',
|
||||
icon: 'trash-alt'
|
||||
}
|
||||
}
|
||||
});
|
||||
var sub = modalRef.content.action.subscribe(function (result) {
|
||||
sub.unsubscribe();
|
||||
_this._provisionsService.delProvision(provision._id, provision.user._id).subscribe(function (res) {
|
||||
_this.elements = _this.elements.filter(function (e) {
|
||||
return e._id.toString() !== provision._id.toString();
|
||||
});
|
||||
_this._initElements();
|
||||
_this._alertService.showAlert({
|
||||
type: 'alert-primary',
|
||||
text: "Provision entry '" + provision.scenario + "' was deleted"
|
||||
});
|
||||
});
|
||||
});
|
||||
};
|
||||
TableProvisionsAdminComponent.prototype.refreshData = function () {
|
||||
var _this = this;
|
||||
this.elements = [];
|
||||
this.loading = true;
|
||||
this.searchText = "";
|
||||
var instantSubs = this._provisionsService.getProvisionsAdmin(this.filterParams).subscribe(function (provisions) {
|
||||
instantSubs.unsubscribe();
|
||||
_this.loading = false;
|
||||
_this._process(provisions.results);
|
||||
});
|
||||
};
|
||||
TableProvisionsAdminComponent.prototype.onCheckValue = function () {
|
||||
this.filterParams = {};
|
||||
if (!this.filter.showDestroyed) {
|
||||
this.filterParams.isDestroyed = false;
|
||||
}
|
||||
this.refreshData();
|
||||
};
|
||||
TableProvisionsAdminComponent.prototype.openConfirmExtendModal = function (provision) {
|
||||
var _this = this;
|
||||
var modalRef = this.modalService.show(ModalConfirmComponent, {
|
||||
class: 'modal-sm modal-notify modal-info',
|
||||
containerClass: '',
|
||||
data: {
|
||||
info: {
|
||||
title: "Extend running VMs for " + this._provisionsService.RUNNING_PERIOD + " days?",
|
||||
icon: 'plus-square',
|
||||
buttonColor: 'grey'
|
||||
}
|
||||
}
|
||||
});
|
||||
var sub = modalRef.content.action.subscribe(function (result) {
|
||||
sub.unsubscribe();
|
||||
_this._provisionsService.extend(provision._id.toString(), provision.user._id).subscribe(function (res) {
|
||||
provision.countExtend = res.countExtend;
|
||||
provision.timeRunning = res.timeRunning;
|
||||
provision.runningFrom = res.runningFrom;
|
||||
_this._provisionsService.timeRunning(provision);
|
||||
_this._alertService.showAlert({
|
||||
type: 'alert-primary',
|
||||
text: "Running period extended another " + _this._provisionsService.RUNNING_PERIOD + " days (from now) for provision '" + provision.scenario + "'"
|
||||
});
|
||||
});
|
||||
});
|
||||
};
|
||||
__decorate([
|
||||
ViewChild(MdbTablePaginationComponent, { static: true }),
|
||||
__metadata("design:type", MdbTablePaginationComponent)
|
||||
], TableProvisionsAdminComponent.prototype, "mdbTablePagination", void 0);
|
||||
__decorate([
|
||||
ViewChild(MdbTableDirective, { static: true }),
|
||||
__metadata("design:type", MdbTableDirective)
|
||||
], TableProvisionsAdminComponent.prototype, "mdbTable", void 0);
|
||||
__decorate([
|
||||
HostListener('input'),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", []),
|
||||
__metadata("design:returntype", void 0)
|
||||
], TableProvisionsAdminComponent.prototype, "oninput", null);
|
||||
TableProvisionsAdminComponent = __decorate([
|
||||
Component({
|
||||
selector: 'table-provisions',
|
||||
templateUrl: './table-provisions.component.html',
|
||||
styleUrls: ['./table-provisions.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [MDBModalService, ScenariosService, AlertService, ChangeDetectorRef, ProvisionsService])
|
||||
], TableProvisionsAdminComponent);
|
||||
return TableProvisionsAdminComponent;
|
||||
}());
|
||||
export { TableProvisionsAdminComponent };
|
||||
//# sourceMappingURL=table-provisions.component.js.map
|
||||
1
dist/out-tsc/src/app/tables/table-provisions.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/tables/table-provisions.component.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
155
dist/out-tsc/src/app/tables/table-scenarios.component.js
vendored
Normal file
155
dist/out-tsc/src/app/tables/table-scenarios.component.js
vendored
Normal file
@@ -0,0 +1,155 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { MdbTablePaginationComponent, MdbTableDirective, MDBModalService } from 'angular-bootstrap-md';
|
||||
import { Component, ViewChild, HostListener, ChangeDetectorRef } from '@angular/core';
|
||||
import { ScenariosService } from '../services/scenarios.service';
|
||||
import { ScenarioModalComponent } from '../modals/edit-scenario.component';
|
||||
var TableScenariosComponent = /** @class */ (function () {
|
||||
function TableScenariosComponent(modalService, cdRef, _scenariosService) {
|
||||
this.modalService = modalService;
|
||||
this.cdRef = cdRef;
|
||||
this._scenariosService = _scenariosService;
|
||||
this.previous = [];
|
||||
this.searchText = '';
|
||||
this.maxVisibleItems = 25;
|
||||
this.elements = [];
|
||||
}
|
||||
TableScenariosComponent.prototype.oninput = function () {
|
||||
this.mdbTablePagination.searchText = this.searchText;
|
||||
};
|
||||
TableScenariosComponent.prototype._initElements = function () {
|
||||
this.mdbTable.setDataSource(this.elements);
|
||||
this.elements = this.mdbTable.getDataSource();
|
||||
this.previous = this.mdbTable.getDataSource();
|
||||
};
|
||||
TableScenariosComponent.prototype._refresh = function () {
|
||||
var _this = this;
|
||||
var scenariosSub = this._scenariosService.getScenariosAll().subscribe(function (res) {
|
||||
scenariosSub.unsubscribe();
|
||||
_this.scenarios = res.results;
|
||||
_this.elements = res.results;
|
||||
_this._initElements();
|
||||
});
|
||||
};
|
||||
TableScenariosComponent.prototype.ngOnInit = function () {
|
||||
this._refresh();
|
||||
};
|
||||
TableScenariosComponent.prototype.ngAfterViewInit = function () {
|
||||
this.mdbTablePagination.setMaxVisibleItemsNumberTo(this.maxVisibleItems);
|
||||
this.mdbTablePagination.calculateFirstItemIndex();
|
||||
this.mdbTablePagination.calculateLastItemIndex();
|
||||
this.cdRef.detectChanges();
|
||||
};
|
||||
TableScenariosComponent.prototype.searchItems = function () {
|
||||
var _this = this;
|
||||
var prev = this.mdbTable.getDataSource();
|
||||
if (!this.searchText) {
|
||||
this.mdbTable.setDataSource(this.previous);
|
||||
this.elements = this.mdbTable.getDataSource();
|
||||
}
|
||||
if (this.searchText) {
|
||||
this.elements = this.mdbTable.searchLocalDataBy(this.searchText);
|
||||
this.mdbTable.setDataSource(prev);
|
||||
}
|
||||
this.mdbTablePagination.calculateFirstItemIndex();
|
||||
this.mdbTablePagination.calculateLastItemIndex();
|
||||
this.mdbTable.searchDataObservable(this.searchText).subscribe(function () {
|
||||
_this.mdbTablePagination.calculateFirstItemIndex();
|
||||
_this.mdbTablePagination.calculateLastItemIndex();
|
||||
});
|
||||
};
|
||||
TableScenariosComponent.prototype.changeValue = function (scenario, property, event) {
|
||||
this.editField = event.target.textContent;
|
||||
//console.log("changeValue editField", id, this.editField);
|
||||
};
|
||||
TableScenariosComponent.prototype.updateList = function (scenario, property, event) {
|
||||
var _this = this;
|
||||
this.editField = event.target.textContent;
|
||||
var patch = {};
|
||||
patch[property] = this.editField.trim();
|
||||
if (!patch[property] || patch[property] === "" || patch[property] === scenario[property]) {
|
||||
return;
|
||||
}
|
||||
this._scenariosService.updateScenario(scenario._id.toString(), patch).subscribe(function (res) {
|
||||
console.log("done", res);
|
||||
_this._refresh();
|
||||
});
|
||||
};
|
||||
TableScenariosComponent.prototype.updateJson = function (scenario, property, event) {
|
||||
var _this = this;
|
||||
this.editField = event.target.textContent.trim();
|
||||
try {
|
||||
var patch = {};
|
||||
var value = JSON.parse(this.editField);
|
||||
if (JSON.stringify(value) === JSON.stringify(scenario[property])) {
|
||||
return;
|
||||
}
|
||||
patch[property] = value;
|
||||
console.log("editField", patch);
|
||||
this._scenariosService.updateScenario(scenario._id.toString(), patch).subscribe(function (res) {
|
||||
console.log("done", res);
|
||||
_this._refresh();
|
||||
});
|
||||
}
|
||||
catch (e) {
|
||||
console.log("error json", e);
|
||||
this._refresh();
|
||||
}
|
||||
};
|
||||
TableScenariosComponent.prototype.FieldsChange = function (scenario, property, value) {
|
||||
var _this = this;
|
||||
var patch = {};
|
||||
patch[property] = value.checked;
|
||||
this._scenariosService.updateScenario(scenario._id.toString(), patch).subscribe(function (res) {
|
||||
console.log("done", res);
|
||||
_this._refresh();
|
||||
});
|
||||
};
|
||||
TableScenariosComponent.prototype.openNewScenarioModal = function (scenario) {
|
||||
var _this = this;
|
||||
var modalRef = this.modalService.show(ScenarioModalComponent, {
|
||||
class: 'modal-lg modal-notify',
|
||||
containerClass: '',
|
||||
data: {
|
||||
scenario: scenario
|
||||
}
|
||||
});
|
||||
var sub = modalRef.content.action.subscribe(function (data) {
|
||||
sub.unsubscribe();
|
||||
console.log("new scenario data", data);
|
||||
_this._refresh();
|
||||
});
|
||||
};
|
||||
__decorate([
|
||||
ViewChild(MdbTablePaginationComponent, { static: true }),
|
||||
__metadata("design:type", MdbTablePaginationComponent)
|
||||
], TableScenariosComponent.prototype, "mdbTablePagination", void 0);
|
||||
__decorate([
|
||||
ViewChild(MdbTableDirective, { static: true }),
|
||||
__metadata("design:type", MdbTableDirective)
|
||||
], TableScenariosComponent.prototype, "mdbTable", void 0);
|
||||
__decorate([
|
||||
HostListener('input'),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", []),
|
||||
__metadata("design:returntype", void 0)
|
||||
], TableScenariosComponent.prototype, "oninput", null);
|
||||
TableScenariosComponent = __decorate([
|
||||
Component({
|
||||
selector: 'table-scenarios',
|
||||
templateUrl: './table-scenarios.component.html',
|
||||
styleUrls: ['./table-scenarios.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [MDBModalService, ChangeDetectorRef, ScenariosService])
|
||||
], TableScenariosComponent);
|
||||
return TableScenariosComponent;
|
||||
}());
|
||||
export { TableScenariosComponent };
|
||||
//# sourceMappingURL=table-scenarios.component.js.map
|
||||
1
dist/out-tsc/src/app/tables/table-scenarios.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/tables/table-scenarios.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"table-scenarios.component.js","sourceRoot":"","sources":["../../../../../src/app/tables/table-scenarios.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,2BAA2B,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvG,OAAO,EAAE,SAAS,EAAU,SAAS,EAAE,YAAY,EAAiB,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC7G,OAAO,EAAE,gBAAg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AAC,CAAC,CAAC;IACL,CAAC;IA3IyD;QAAzD,SAAS,CAAC,2BAA2B,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;kCAAqB,2BAA2B;uEAAC;IAC1D;QAA/C,SAAS,CAAC,iBAAiB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;kCAAW,iBAAiB;6DAAC;IAYrD;QAAtB,YAAY,CAAC,OAAO,CAAC;;;;0DAErB;IAjBU,uBAAuB;QALnC,SAAS,CAAC;YACT,QAAQ,EAAE,iBAAiB;YAC3B,WAAW,EAAE,kCAAkC;YAC/C,SAAS,EAAE,CAAC,kCAAkC,CAAC;SAChD,CAAC;yCAoBkC,eAAe,EAAiB,iBAAiB,EAA6B,gBAAgB;OAnBrH,uBAAuB,CA+InC;IAAD,8BAAC;CAAA,AA/ID,IA+IC;SA/IY,uBAAuB"}
|
||||
111
dist/out-tsc/src/app/tables/table-subs.component.js
vendored
Normal file
111
dist/out-tsc/src/app/tables/table-subs.component.js
vendored
Normal file
@@ -0,0 +1,111 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { MdbTablePaginationComponent, MdbTableDirective, MDBModalService } from 'angular-bootstrap-md';
|
||||
import { Component, ViewChild, HostListener, ChangeDetectorRef } from '@angular/core';
|
||||
import { SubscriptionModalComponent } from '../alert/edit-subscription.component';
|
||||
import { SubscriptionsService } from '../services/subscriptions.service';
|
||||
var TableSubsComponent = /** @class */ (function () {
|
||||
function TableSubsComponent(modalService, cdRef, _subscriptionsService) {
|
||||
this.modalService = modalService;
|
||||
this.cdRef = cdRef;
|
||||
this._subscriptionsService = _subscriptionsService;
|
||||
this.previous = [];
|
||||
this.searchText = '';
|
||||
this.maxVisibleItems = 25;
|
||||
this.loading = false;
|
||||
this.elements = [];
|
||||
}
|
||||
TableSubsComponent.prototype.oninput = function () {
|
||||
this.mdbTablePagination.searchText = this.searchText;
|
||||
};
|
||||
TableSubsComponent.prototype._initElements = function () {
|
||||
this.mdbTable.setDataSource(this.elements);
|
||||
this.elements = this.mdbTable.getDataSource();
|
||||
this.previous = this.mdbTable.getDataSource();
|
||||
};
|
||||
TableSubsComponent.prototype.ngOnInit = function () {
|
||||
this.refreshData();
|
||||
};
|
||||
TableSubsComponent.prototype.refreshData = function () {
|
||||
var _this = this;
|
||||
this.loading = true;
|
||||
this.searchText = "";
|
||||
var usersSub = this._subscriptionsService.getSubscriptions().subscribe(function (res) {
|
||||
usersSub.unsubscribe();
|
||||
_this.elements = res.results;
|
||||
_this.loading = false;
|
||||
_this._initElements();
|
||||
});
|
||||
};
|
||||
TableSubsComponent.prototype.ngAfterViewInit = function () {
|
||||
this.mdbTablePagination.setMaxVisibleItemsNumberTo(this.maxVisibleItems);
|
||||
this.mdbTablePagination.calculateFirstItemIndex();
|
||||
this.mdbTablePagination.calculateLastItemIndex();
|
||||
this.cdRef.detectChanges();
|
||||
};
|
||||
TableSubsComponent.prototype.searchItems = function () {
|
||||
var _this = this;
|
||||
var prev = this.mdbTable.getDataSource();
|
||||
if (!this.searchText) {
|
||||
this.mdbTable.setDataSource(this.previous);
|
||||
this.elements = this.mdbTable.getDataSource();
|
||||
}
|
||||
if (this.searchText) {
|
||||
this.elements = this.mdbTable.searchLocalDataBy(this.searchText);
|
||||
this.mdbTable.setDataSource(prev);
|
||||
}
|
||||
this.mdbTablePagination.calculateFirstItemIndex();
|
||||
this.mdbTablePagination.calculateLastItemIndex();
|
||||
this.mdbTable.searchDataObservable(this.searchText).subscribe(function () {
|
||||
_this.mdbTablePagination.calculateFirstItemIndex();
|
||||
_this.mdbTablePagination.calculateLastItemIndex();
|
||||
});
|
||||
};
|
||||
TableSubsComponent.prototype.openNewSubsModal = function (subscription) {
|
||||
var _this = this;
|
||||
var modalRef = this.modalService.show(SubscriptionModalComponent, {
|
||||
class: 'modal-md modal-notify',
|
||||
containerClass: '',
|
||||
data: {
|
||||
subscription: subscription
|
||||
}
|
||||
});
|
||||
var sub = modalRef.content.action.subscribe(function (data) {
|
||||
sub.unsubscribe();
|
||||
console.log("new subs data", data);
|
||||
_this.refreshData();
|
||||
});
|
||||
};
|
||||
__decorate([
|
||||
ViewChild(MdbTablePaginationComponent, { static: true }),
|
||||
__metadata("design:type", MdbTablePaginationComponent)
|
||||
], TableSubsComponent.prototype, "mdbTablePagination", void 0);
|
||||
__decorate([
|
||||
ViewChild(MdbTableDirective, { static: true }),
|
||||
__metadata("design:type", MdbTableDirective)
|
||||
], TableSubsComponent.prototype, "mdbTable", void 0);
|
||||
__decorate([
|
||||
HostListener('input'),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", []),
|
||||
__metadata("design:returntype", void 0)
|
||||
], TableSubsComponent.prototype, "oninput", null);
|
||||
TableSubsComponent = __decorate([
|
||||
Component({
|
||||
selector: 'table-subscriptions',
|
||||
templateUrl: './table-subscriptions.component.html',
|
||||
styleUrls: ['./table-subscriptions.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [MDBModalService, ChangeDetectorRef, SubscriptionsService])
|
||||
], TableSubsComponent);
|
||||
return TableSubsComponent;
|
||||
}());
|
||||
export { TableSubsComponent };
|
||||
//# sourceMappingURL=table-subs.component.js.map
|
||||
1
dist/out-tsc/src/app/tables/table-subs.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/tables/table-subs.component.js.map
vendored
Normal file
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/table-subscriptions.component.js
vendored
Normal file
111
dist/out-tsc/src/app/tables/table-subscriptions.component.js
vendored
Normal file
@@ -0,0 +1,111 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { MdbTablePaginationComponent, MdbTableDirective, MDBModalService } from 'angular-bootstrap-md';
|
||||
import { Component, ViewChild, HostListener, ChangeDetectorRef } from '@angular/core';
|
||||
import { SubscriptionModalComponent } from '../modals/edit-subscription.component';
|
||||
import { SubscriptionsService } from '../services/deployopts.service';
|
||||
var TableSubsComponent = /** @class */ (function () {
|
||||
function TableSubsComponent(modalService, cdRef, _subscriptionsService) {
|
||||
this.modalService = modalService;
|
||||
this.cdRef = cdRef;
|
||||
this._subscriptionsService = _subscriptionsService;
|
||||
this.previous = [];
|
||||
this.searchText = '';
|
||||
this.maxVisibleItems = 25;
|
||||
this.loading = false;
|
||||
this.elements = [];
|
||||
}
|
||||
TableSubsComponent.prototype.oninput = function () {
|
||||
this.mdbTablePagination.searchText = this.searchText;
|
||||
};
|
||||
TableSubsComponent.prototype._initElements = function () {
|
||||
this.mdbTable.setDataSource(this.elements);
|
||||
this.elements = this.mdbTable.getDataSource();
|
||||
this.previous = this.mdbTable.getDataSource();
|
||||
};
|
||||
TableSubsComponent.prototype.ngOnInit = function () {
|
||||
this.refreshData();
|
||||
};
|
||||
TableSubsComponent.prototype.refreshData = function () {
|
||||
var _this = this;
|
||||
this.loading = true;
|
||||
this.searchText = "";
|
||||
var usersSub = this._subscriptionsService.getSubscriptions().subscribe(function (res) {
|
||||
usersSub.unsubscribe();
|
||||
_this.elements = res.results;
|
||||
_this.loading = false;
|
||||
_this._initElements();
|
||||
});
|
||||
};
|
||||
TableSubsComponent.prototype.ngAfterViewInit = function () {
|
||||
this.mdbTablePagination.setMaxVisibleItemsNumberTo(this.maxVisibleItems);
|
||||
this.mdbTablePagination.calculateFirstItemIndex();
|
||||
this.mdbTablePagination.calculateLastItemIndex();
|
||||
this.cdRef.detectChanges();
|
||||
};
|
||||
TableSubsComponent.prototype.searchItems = function () {
|
||||
var _this = this;
|
||||
var prev = this.mdbTable.getDataSource();
|
||||
if (!this.searchText) {
|
||||
this.mdbTable.setDataSource(this.previous);
|
||||
this.elements = this.mdbTable.getDataSource();
|
||||
}
|
||||
if (this.searchText) {
|
||||
this.elements = this.mdbTable.searchLocalDataBy(this.searchText);
|
||||
this.mdbTable.setDataSource(prev);
|
||||
}
|
||||
this.mdbTablePagination.calculateFirstItemIndex();
|
||||
this.mdbTablePagination.calculateLastItemIndex();
|
||||
this.mdbTable.searchDataObservable(this.searchText).subscribe(function () {
|
||||
_this.mdbTablePagination.calculateFirstItemIndex();
|
||||
_this.mdbTablePagination.calculateLastItemIndex();
|
||||
});
|
||||
};
|
||||
TableSubsComponent.prototype.openNewSubsModal = function (subscription) {
|
||||
var _this = this;
|
||||
var modalRef = this.modalService.show(SubscriptionModalComponent, {
|
||||
class: 'modal-md modal-notify',
|
||||
containerClass: '',
|
||||
data: {
|
||||
subscription: subscription
|
||||
}
|
||||
});
|
||||
var sub = modalRef.content.action.subscribe(function (data) {
|
||||
sub.unsubscribe();
|
||||
console.log("new subs data", data);
|
||||
_this.refreshData();
|
||||
});
|
||||
};
|
||||
__decorate([
|
||||
ViewChild(MdbTablePaginationComponent, { static: true }),
|
||||
__metadata("design:type", MdbTablePaginationComponent)
|
||||
], TableSubsComponent.prototype, "mdbTablePagination", void 0);
|
||||
__decorate([
|
||||
ViewChild(MdbTableDirective, { static: true }),
|
||||
__metadata("design:type", MdbTableDirective)
|
||||
], TableSubsComponent.prototype, "mdbTable", void 0);
|
||||
__decorate([
|
||||
HostListener('input'),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", []),
|
||||
__metadata("design:returntype", void 0)
|
||||
], TableSubsComponent.prototype, "oninput", null);
|
||||
TableSubsComponent = __decorate([
|
||||
Component({
|
||||
selector: 'table-subscriptions',
|
||||
templateUrl: './table-subscriptions.component.html',
|
||||
styleUrls: ['./table-subscriptions.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [MDBModalService, ChangeDetectorRef, SubscriptionsService])
|
||||
], TableSubsComponent);
|
||||
return TableSubsComponent;
|
||||
}());
|
||||
export { TableSubsComponent };
|
||||
//# sourceMappingURL=table-subscriptions.component.js.map
|
||||
1
dist/out-tsc/src/app/tables/table-subscriptions.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/tables/table-subscriptions.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"table-subscriptions.component.js","sourceRoot":"","sources":["../../../../../src/app/tables/table-subscriptions.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,2BAA2B,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvG,OAAO,EAAE,SAAS,EAAU,SAAS,EAAE,YAAY,EAAiB,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAE7G,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAOtE;IAiBE,4BAAoB,YAA6B,EAAU,KAAwB,EAAU,qBAA2C;QAApH,iBAAY,GAAZ,YAAY,CAAiB;QAAU,UAAK,GAAL,KAAK,CAAmB;QAAU,0BAAqB,GAArB,qBAAqB,CAAs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WAAW,EAAE,CAAC;YAElB,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC;YACnC,KAAI,CAAC,WAAW,EAAE,CAAC;QACrB,CAAC,CAAC,CAAC;IACP,CAAC;IArFyD;QAAzD,SAAS,CAAC,2BAA2B,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;kCAAqB,2BAA2B;kEAAC;IAC1D;QAA/C,SAAS,CAAC,iBAAiB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;kCAAW,iBAAiB;wDAAC;IAUrD;QAAtB,YAAY,CAAC,OAAO,CAAC;;;;qDAErB;IAfU,kBAAkB;QAL9B,SAAS,CAAC;YACT,QAAQ,EAAE,qBAAqB;YAC/B,WAAW,EAAE,sCAAsC;YACnD,SAAS,EAAE,CAAC,sCAAsC,CAAC;SACpD,CAAC;yCAkBkC,eAAe,EAAiB,iBAAiB,EAAiC,oBAAoB;OAjB7H,kBAAkB,CAyF9B;IAAD,yBAAC;CAAA,AAzFD,IAyFC;SAzFY,kBAAkB"}
|
||||
109
dist/out-tsc/src/app/tables/table-users.component.js
vendored
Normal file
109
dist/out-tsc/src/app/tables/table-users.component.js
vendored
Normal file
@@ -0,0 +1,109 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { MdbTablePaginationComponent, MdbTableDirective } from 'angular-bootstrap-md';
|
||||
import { Component, ViewChild, HostListener, ChangeDetectorRef } from '@angular/core';
|
||||
import { AuthGuard } from '../services/auth.guard';
|
||||
import { UsersService } from '../services/users.service';
|
||||
var TableUsersComponent = /** @class */ (function () {
|
||||
function TableUsersComponent(cdRef, _usersService, _auth) {
|
||||
var _this = this;
|
||||
this.cdRef = cdRef;
|
||||
this._usersService = _usersService;
|
||||
this._auth = _auth;
|
||||
this.previous = [];
|
||||
this.searchText = '';
|
||||
this.maxVisibleItems = 25;
|
||||
this.loading = false;
|
||||
this.elements = [];
|
||||
this._auth.getUserInfo().subscribe(function (value) {
|
||||
_this.currentUser = value;
|
||||
});
|
||||
}
|
||||
TableUsersComponent.prototype.oninput = function () {
|
||||
this.mdbTablePagination.searchText = this.searchText;
|
||||
};
|
||||
TableUsersComponent.prototype._initElements = function () {
|
||||
this.mdbTable.setDataSource(this.elements);
|
||||
this.elements = this.mdbTable.getDataSource();
|
||||
this.previous = this.mdbTable.getDataSource();
|
||||
};
|
||||
TableUsersComponent.prototype.ngOnInit = function () {
|
||||
this.refreshData();
|
||||
};
|
||||
TableUsersComponent.prototype.refreshData = function () {
|
||||
var _this = this;
|
||||
this.loading = true;
|
||||
this.searchText = "";
|
||||
var usersSub = this._usersService.getUsers().subscribe(function (res) {
|
||||
usersSub.unsubscribe();
|
||||
res.results.forEach(function (u) {
|
||||
u.lastLogin = u.lastLogin || u.created;
|
||||
});
|
||||
_this.elements = res.results;
|
||||
_this.loading = false;
|
||||
_this._initElements();
|
||||
});
|
||||
};
|
||||
TableUsersComponent.prototype.ngAfterViewInit = function () {
|
||||
this.mdbTablePagination.setMaxVisibleItemsNumberTo(this.maxVisibleItems);
|
||||
this.mdbTablePagination.calculateFirstItemIndex();
|
||||
this.mdbTablePagination.calculateLastItemIndex();
|
||||
this.cdRef.detectChanges();
|
||||
};
|
||||
TableUsersComponent.prototype.searchItems = function () {
|
||||
var _this = this;
|
||||
var prev = this.mdbTable.getDataSource();
|
||||
if (!this.searchText) {
|
||||
this.mdbTable.setDataSource(this.previous);
|
||||
this.elements = this.mdbTable.getDataSource();
|
||||
}
|
||||
if (this.searchText) {
|
||||
this.elements = this.mdbTable.searchLocalDataBy(this.searchText);
|
||||
this.mdbTable.setDataSource(prev);
|
||||
}
|
||||
this.mdbTablePagination.calculateFirstItemIndex();
|
||||
this.mdbTablePagination.calculateLastItemIndex();
|
||||
this.mdbTable.searchDataObservable(this.searchText).subscribe(function () {
|
||||
_this.mdbTablePagination.calculateFirstItemIndex();
|
||||
_this.mdbTablePagination.calculateLastItemIndex();
|
||||
});
|
||||
};
|
||||
TableUsersComponent.prototype.FieldsChange = function (user, value) {
|
||||
var patchData = { "role": value.checked ? "admin" : "user" };
|
||||
this._usersService.updateUser(user._id, patchData).subscribe(function (res1) {
|
||||
user.role = res1.role;
|
||||
});
|
||||
};
|
||||
__decorate([
|
||||
ViewChild(MdbTablePaginationComponent, { static: true }),
|
||||
__metadata("design:type", MdbTablePaginationComponent)
|
||||
], TableUsersComponent.prototype, "mdbTablePagination", void 0);
|
||||
__decorate([
|
||||
ViewChild(MdbTableDirective, { static: true }),
|
||||
__metadata("design:type", MdbTableDirective)
|
||||
], TableUsersComponent.prototype, "mdbTable", void 0);
|
||||
__decorate([
|
||||
HostListener('input'),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", []),
|
||||
__metadata("design:returntype", void 0)
|
||||
], TableUsersComponent.prototype, "oninput", null);
|
||||
TableUsersComponent = __decorate([
|
||||
Component({
|
||||
selector: 'table-users',
|
||||
templateUrl: './table-users.component.html',
|
||||
styleUrls: ['./table-users.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [ChangeDetectorRef, UsersService, AuthGuard])
|
||||
], TableUsersComponent);
|
||||
return TableUsersComponent;
|
||||
}());
|
||||
export { TableUsersComponent };
|
||||
//# sourceMappingURL=table-users.component.js.map
|
||||
1
dist/out-tsc/src/app/tables/table-users.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/tables/table-users.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"table-users.component.js","sourceRoot":"","sources":["../../../../../src/app/tables/table-users.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,2BAA2B,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEtF,OAAO,EAAE,SAAS,EAAU,SAAS,EAAE,YAAY,EAAiB,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC7G,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAOzD;IAiBE,6BAAoB,KAAwB,EAAU,aAA2B,EAAU,KAAgB;QAA3G,iBAIC;QAJmB,UAAK,GAAL,KAAK,CAAmB;QAAU,kBAAa,GAAb,aAAa,CAAc;QAAU,UAAK,GAAL,KAAK,CAAW;QAZ3G,aAAQ,GAAQ,EAAE,CAAC;QACnB,eAAU,GAAW,EAAE,CAAC;QACxB,oBAAe,GAAW,EAAE,CAAC;QAG7B,YAAO,GAAY,KAAK,CAAC;QACzB,aAAQ,GAAG,EAAE,CAAC;QAOZ,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,SAAS,CAAE,UAAA,KAAK;YACrC,KAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QAC3B,CAAC,CAAC,CAAC;IACP,CAAC;IARsB,qCAAO,GAAP;QACrB,IAAI,CAAC,kBAAkB,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;IACvD,CAAC;IAQO,2CAAa,GAArB;QACE,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC3C,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC;QAC9C,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,CAA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AS,EAAE,CAAC,8BAA8B,CAAC;SAC5C,CAAC;yCAkB2B,iBAAiB,EAAyB,YAAY,EAAiB,SAAS;OAjBhG,mBAAmB,CAqF/B;IAAD,0BAAC;CAAA,AArFD,IAqFC;SArFY,mBAAmB"}
|
||||
131
dist/out-tsc/src/app/tables/table-vmtypes.component.js
vendored
Normal file
131
dist/out-tsc/src/app/tables/table-vmtypes.component.js
vendored
Normal file
@@ -0,0 +1,131 @@
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
import { MdbTablePaginationComponent, MdbTableDirective, MDBModalService } from 'angular-bootstrap-md';
|
||||
import { Component, ViewChild, HostListener, ChangeDetectorRef } from '@angular/core';
|
||||
import { ModalConfirmComponent } from '../modals/confirm.component';
|
||||
import { ScenariosService } from '../services/scenarios.service';
|
||||
import { VmTypeModalComponent } from '../modals/edit-vmtype.component';
|
||||
var TableVmTypesComponent = /** @class */ (function () {
|
||||
function TableVmTypesComponent(modalService, cdRef, _scenariosService) {
|
||||
this.modalService = modalService;
|
||||
this.cdRef = cdRef;
|
||||
this._scenariosService = _scenariosService;
|
||||
this.previous = [];
|
||||
this.searchText = '';
|
||||
this.maxVisibleItems = 25;
|
||||
this.loading = false;
|
||||
this.elements = [];
|
||||
}
|
||||
TableVmTypesComponent.prototype.oninput = function () {
|
||||
this.mdbTablePagination.searchText = this.searchText;
|
||||
};
|
||||
TableVmTypesComponent.prototype._initElements = function () {
|
||||
this.mdbTable.setDataSource(this.elements);
|
||||
this.elements = this.mdbTable.getDataSource();
|
||||
this.previous = this.mdbTable.getDataSource();
|
||||
};
|
||||
TableVmTypesComponent.prototype.ngOnInit = function () {
|
||||
this.refreshData();
|
||||
};
|
||||
TableVmTypesComponent.prototype.refreshData = function () {
|
||||
var _this = this;
|
||||
this.loading = true;
|
||||
this.searchText = "";
|
||||
var sub = this._scenariosService.getScenarioVmtypes().subscribe(function (res) {
|
||||
sub.unsubscribe();
|
||||
_this.elements = res.results;
|
||||
_this.loading = false;
|
||||
_this._initElements();
|
||||
});
|
||||
};
|
||||
TableVmTypesComponent.prototype.ngAfterViewInit = function () {
|
||||
this.mdbTablePagination.setMaxVisibleItemsNumberTo(this.maxVisibleItems);
|
||||
this.mdbTablePagination.calculateFirstItemIndex();
|
||||
this.mdbTablePagination.calculateLastItemIndex();
|
||||
this.cdRef.detectChanges();
|
||||
};
|
||||
TableVmTypesComponent.prototype.searchItems = function () {
|
||||
var _this = this;
|
||||
var prev = this.mdbTable.getDataSource();
|
||||
if (!this.searchText) {
|
||||
this.mdbTable.setDataSource(this.previous);
|
||||
this.elements = this.mdbTable.getDataSource();
|
||||
}
|
||||
if (this.searchText) {
|
||||
this.elements = this.mdbTable.searchLocalDataBy(this.searchText);
|
||||
this.mdbTable.setDataSource(prev);
|
||||
}
|
||||
this.mdbTablePagination.calculateFirstItemIndex();
|
||||
this.mdbTablePagination.calculateLastItemIndex();
|
||||
this.mdbTable.searchDataObservable(this.searchText).subscribe(function () {
|
||||
_this.mdbTablePagination.calculateFirstItemIndex();
|
||||
_this.mdbTablePagination.calculateLastItemIndex();
|
||||
});
|
||||
};
|
||||
TableVmTypesComponent.prototype.openNewVmTypeModal = function (apiKey) {
|
||||
var _this = this;
|
||||
var modalRef = this.modalService.show(VmTypeModalComponent, {
|
||||
class: 'modal-lg modal-notify',
|
||||
containerClass: '',
|
||||
data: {
|
||||
item: apiKey
|
||||
}
|
||||
});
|
||||
var sub = modalRef.content.action.subscribe(function (data) {
|
||||
sub.unsubscribe();
|
||||
console.log("new api key data", data);
|
||||
_this.refreshData();
|
||||
});
|
||||
};
|
||||
TableVmTypesComponent.prototype.openConfirmDeleteModal = function (apiKey) {
|
||||
var modalRef = this.modalService.show(ModalConfirmComponent, {
|
||||
class: 'modal-sm modal-notify modal-danger',
|
||||
containerClass: '',
|
||||
data: {
|
||||
info: {
|
||||
title: 'Confirm revoke?',
|
||||
icon: ''
|
||||
}
|
||||
}
|
||||
});
|
||||
var sub = modalRef.content.action.subscribe(function (result) {
|
||||
sub.unsubscribe();
|
||||
/*this._usersService.delApikey(apiKey._id).subscribe( res=> {
|
||||
console.log("done", res);
|
||||
this.refreshData();
|
||||
});*/
|
||||
});
|
||||
};
|
||||
__decorate([
|
||||
ViewChild(MdbTablePaginationComponent, { static: true }),
|
||||
__metadata("design:type", MdbTablePaginationComponent)
|
||||
], TableVmTypesComponent.prototype, "mdbTablePagination", void 0);
|
||||
__decorate([
|
||||
ViewChild(MdbTableDirective, { static: true }),
|
||||
__metadata("design:type", MdbTableDirective)
|
||||
], TableVmTypesComponent.prototype, "mdbTable", void 0);
|
||||
__decorate([
|
||||
HostListener('input'),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", []),
|
||||
__metadata("design:returntype", void 0)
|
||||
], TableVmTypesComponent.prototype, "oninput", null);
|
||||
TableVmTypesComponent = __decorate([
|
||||
Component({
|
||||
selector: 'table-vmtypes',
|
||||
templateUrl: './table-vmtypes.component.html',
|
||||
styleUrls: ['./table-vmtypes.component.scss']
|
||||
}),
|
||||
__metadata("design:paramtypes", [MDBModalService, ChangeDetectorRef, ScenariosService])
|
||||
], TableVmTypesComponent);
|
||||
return TableVmTypesComponent;
|
||||
}());
|
||||
export { TableVmTypesComponent };
|
||||
//# sourceMappingURL=table-vmtypes.component.js.map
|
||||
1
dist/out-tsc/src/app/tables/table-vmtypes.component.js.map
vendored
Normal file
1
dist/out-tsc/src/app/tables/table-vmtypes.component.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"table-vmtypes.component.js","sourceRoot":"","sources":["../../../../../src/app/tables/table-vmtypes.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,2BAA2B,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvG,OAAO,EAAE,SAAS,EAAU,SAAS,EAAE,YAAY,EAAiB,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAG7G,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAOvE;IAgBE,+BAAoB,YAA6B,EAAU,KAAwB,EAAU,iBAAmC;QAA5G,iBAAY,GAAZ,YAAY,CAAiB;QAAU,UAAK,GAAL,KAAK,CAAmB;QAAU,sBAAiB,GAAjB,iBAAiB,CAAkB;QAXhI,aAAQ,GAAQ,EAAE,CAAC;QACnB,eAAU,GAAW,EAAE,CAAC;QACxB,oBAAe,GAAW,EAAE,CAAC;QAE7B,YAAO,GAAY,KAAK,CAAC;QACzB,aAAQ,GAAG,EAAE,CAAC;IAOd,CAAC;IALsB,uCAAO,GAAP;QACrB,IAAI,CAAC,kBAAkB,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;IACvD,CAAC;IAKO,6CAAa,GAArB;QACE,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC3C,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC;QAC9C,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC;IAChD,CAAC;IAED,wCAAQ,GAAR;QACE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;YAClB;;;iBAGK;QACP,CAAC,CAAC,CAAC;IACL,CAAC;IAzG2D;QAAzD,SAAS,CAAC,2BAA2B,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;kCAAqB,2BAA2B;qEAAC;IAC1D;QAA/C,SAAS,CAAC,iBAAiB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;kCAAW,iBAAiB;2DAAC;IASrD;QAAtB,YAAY,CAAC,OAAO,CAAC;;;;wDAErB;IAdU,qBAAqB;QALjC,SAAS,CAAC;YACT,QAAQ,EAAE,eAAe;YACzB,WAAW,EAAE,gCAAgC;YAC7C,SAAS,EAAE,CAAC,gCAAgC,CAAC;SAC9C,CAAC;yCAiBkC,eAAe,EAAiB,iBAAiB,EAA6B,gBAAgB;OAhBrH,qBAAqB,CA6GjC;IAAD,4BAAC;CAAA,AA7GD,IA6GC;SA7GY,qBAAqB"}
|
||||
@@ -20,6 +20,12 @@ var HeaderComponent = /** @class */ (function () {
|
||||
}
|
||||
HeaderComponent.prototype.ngOnInit = function () {
|
||||
};
|
||||
HeaderComponent.prototype.logout = function ($event) {
|
||||
$event.preventDefault();
|
||||
$event.stopPropagation();
|
||||
window.location.href = "/logout";
|
||||
this._auth.clearUser();
|
||||
};
|
||||
HeaderComponent.prototype.ngOnDestroy = function () {
|
||||
this.subs.unsubscribe();
|
||||
};
|
||||
|
||||
@@ -1 +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"}
|
||||
{"version":3,"file":"header.component.js","sourceRoot":"","sources":["../../../../../../src/app/ui/header/header.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAU,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAQtD;IAKE,yBAAqB,KAAgB;QAArC,iBAKC;QALoB,UAAK,GAAL,KAAK,CAAW;QACnC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,SAAS,CAAE,UAAA,KAAK;YACnD,KAAI,CAAC,IAAI,GAAG,KAAK,CAAC;YAClB,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,KAAI,CAAC,IAAI,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;IACL,CAAC;IAED,kCAAQ,GAAR;IAEA,CAAC;IAED,gCAAM,GAAN,UAAO,MAAM;QACX,MAAM,CAAC,cAAc,EAAE,CAAC;QACxB,MAAM,CAAC,eAAe,EAAE,CAAC;QACzB,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,SAAS,CAAC;QACjC,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;IACzB,CAAC;IAED,qCAAW,GAAX;QACE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;IAC1B,CAAC;IAzBU,eAAe;QAL3B,SAAS,CAAC;YACT,QAAQ,EAAE,YAAY;YACtB,WAAW,EAAE,yBAAyB;YACtC,SAAS,EAAE,CAAC,yBAAyB,CAAC;SACvC,CAAC;yCAM4B,SAAS;OAL1B,eAAe,CA2B3B;IAAD,sBAAC;CAAA,AA3BD,IA2BC;SA3BY,eAAe"}
|
||||
9
dist/out-tsc/src/environments/environment.js
vendored
9
dist/out-tsc/src/environments/environment.js
vendored
@@ -1,12 +1,5 @@
|
||||
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'
|
||||
}
|
||||
}
|
||||
apiVersionPath: '/api/v1'
|
||||
};
|
||||
//# sourceMappingURL=environment.js.map
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user