Compare commits
635 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
69dffe0710 | ||
|
|
97b9f1831e | ||
|
|
abb8205004 | ||
|
|
8e72203c73 | ||
|
|
ea0747a722 | ||
|
|
38cc793016 | ||
|
|
272415faf0 | ||
|
|
191ab040f1 | ||
|
|
101a6980a2 | ||
|
|
7389960a80 | ||
|
|
3507057324 | ||
|
|
ecf21b4dda | ||
|
|
b6c015caa4 | ||
|
|
ab6fcd7d11 | ||
|
|
9582570926 | ||
|
|
a13e01c013 | ||
|
|
e71e85aed3 | ||
|
|
ae943222fa | ||
|
|
d05c9a0e84 | ||
|
|
c1be523f7f | ||
|
|
426f2a90a3 | ||
|
|
b2bbe6f429 | ||
|
|
511e5e16d8 | ||
|
|
5a5d97dcaa | ||
|
|
e891854efb | ||
|
|
f01eee5d9e | ||
|
|
3b95e35173 | ||
|
|
f3c6bfbba5 | ||
|
|
267ee5f93e | ||
|
|
f47e84aab0 | ||
|
|
3d287adec2 | ||
|
|
637da5371d | ||
|
|
5d3889f414 | ||
|
|
1d3b79eb5d | ||
|
|
9bbccfc948 | ||
|
|
52c475c7e2 | ||
|
|
6c17c2f8cd | ||
|
|
ed76f9c591 | ||
|
|
71aaf68cc9 | ||
|
|
13bb5dedff | ||
|
|
624296ea28 | ||
|
|
f84ecac14f | ||
|
|
f2d26011c1 | ||
|
|
2f6487683c | ||
|
|
b700c10669 | ||
|
|
be19759f10 | ||
|
|
82654e0fc1 | ||
|
|
3d0d4d7831 | ||
|
|
a8775f83c8 | ||
|
|
20b6187197 | ||
|
|
80f38f988c | ||
|
|
0fefa8d707 | ||
|
|
fb3f5f149e | ||
|
|
9699d2c4ee | ||
|
|
9f7fcc2d16 | ||
|
|
0d72e2565a | ||
|
|
a15e93668c | ||
|
|
8d1774ebaf | ||
|
|
c14d9efa44 | ||
|
|
3e822193c7 | ||
|
|
00bcff469b | ||
|
|
22768d1040 | ||
|
|
2705872861 | ||
|
|
4503d22fa0 | ||
|
|
d92ad7f163 | ||
|
|
641a25a0d5 | ||
|
|
0cbca39114 | ||
|
|
7ebea24eba | ||
|
|
ada4f64f7f | ||
|
|
2efedf0d6c | ||
|
|
4e7386956b | ||
|
|
0f0e201f3e | ||
|
|
2eb43544ef | ||
|
|
e3e14d60b5 | ||
|
|
87b4d5a27f | ||
|
|
3197e1e4f2 | ||
|
|
b43adf4c77 | ||
|
|
c01f1c922e | ||
|
|
9bdd1eebaf | ||
|
|
fe1c3e8fc6 | ||
|
|
4e70bd2a25 | ||
|
|
5c73924af2 | ||
|
|
e581d7c8b5 | ||
|
|
e09075134d | ||
|
|
2e015a70b3 | ||
|
|
5238ad3810 | ||
|
|
a69143d8fb | ||
|
|
2ffef5ff21 | ||
|
|
dcd45d11c8 | ||
|
|
c4e5c9f8ce | ||
|
|
f62f0b8253 | ||
|
|
4d2b33cde6 | ||
|
|
bfb6c7a744 | ||
|
|
45bb67b33e | ||
|
|
79645e3d9f | ||
|
|
b86c2a399f | ||
|
|
34cb059ac6 | ||
|
|
5349f28d96 | ||
|
|
6fc191af6a | ||
|
|
64bbb0ea71 | ||
|
|
6d8985403a | ||
|
|
600663fe27 | ||
|
|
90d3ab407d | ||
|
|
aebc0237ee | ||
|
|
d552f393af | ||
|
|
e33cf9721b | ||
|
|
584a23210e | ||
|
|
45f69eee4f | ||
|
|
8134050821 | ||
|
|
49d2dc1730 | ||
|
|
e97acf235d | ||
|
|
eaa29f3818 | ||
|
|
1392677f83 | ||
|
|
cf3aa345e1 | ||
|
|
f0aa411676 | ||
|
|
1baa295d8c | ||
|
|
be336cab08 | ||
|
|
c9dac49ed4 | ||
|
|
cad96ec9e6 | ||
|
|
5450052f65 | ||
|
|
cf075df421 | ||
|
|
b53c020796 | ||
|
|
5fa9787266 | ||
|
|
8e800a26ac | ||
|
|
f606afbe55 | ||
|
|
b954da0d0e | ||
|
|
ccc1534444 | ||
|
|
4e82694daa | ||
|
|
11ad48d01c | ||
|
|
60c32b415e | ||
|
|
dfe95386ac | ||
|
|
e2750ca5be | ||
|
|
75aaa94527 | ||
|
|
f01dfeeba0 | ||
|
|
ec8ca3d161 | ||
|
|
43551dd089 | ||
|
|
729cfe4980 | ||
|
|
aa9ab0b33b | ||
|
|
f9093c57b3 | ||
|
|
9e5ae3df6e | ||
|
|
dd22981883 | ||
|
|
2c6a9c1886 | ||
|
|
0d4b38acc9 | ||
|
|
3d9e8ccd20 | ||
|
|
f81770e658 | ||
|
|
bc9c1bab8a | ||
|
|
4a30c3c4ff | ||
|
|
f67a7f12c7 | ||
|
|
00a42b084c | ||
|
|
d879849625 | ||
|
|
c32c4fbb4e | ||
|
|
a31471afd2 | ||
|
|
8f47fd6917 | ||
|
|
dcc4358b2a | ||
|
|
482fea60b6 | ||
|
|
69d7c197aa | ||
|
|
553a6a528e | ||
|
|
6c6909a468 | ||
|
|
38a8d8f86c | ||
|
|
1502acaf44 | ||
|
|
9601dbf5cd | ||
|
|
039fe0bbc2 | ||
|
|
8ee9a489a2 | ||
|
|
e1edefcbb1 | ||
|
|
b8deb9ad46 | ||
|
|
dd3c61da4f | ||
|
|
7f64898f25 | ||
|
|
7378abaf3a | ||
|
|
258d772027 | ||
|
|
a6e1371601 | ||
|
|
8c376c3056 | ||
|
|
8236a9fad1 | ||
|
|
11d42317fc | ||
|
|
fe4fac6767 | ||
|
|
4922ad62da | ||
|
|
4810ca613d | ||
|
|
bacf9edf27 | ||
|
|
88ce06e271 | ||
|
|
f087692e76 | ||
|
|
e8cc84d993 | ||
|
|
b407116a8d | ||
|
|
412be44231 | ||
|
|
facb95ec2d | ||
|
|
989167bba9 | ||
|
|
7293003952 | ||
|
|
9cb7674768 | ||
|
|
e1afb66267 | ||
|
|
b178f3d7ac | ||
|
|
13f1c9cfac | ||
|
|
3a8bc61d10 | ||
|
|
5e80311c2b | ||
|
|
25e77d905a | ||
|
|
c383bd5996 | ||
|
|
888aaf3ca5 | ||
|
|
68fdadb612 | ||
|
|
dbdd96d41a | ||
|
|
5a8d7f336f | ||
|
|
85580c01e2 | ||
|
|
aac5c53024 | ||
|
|
18a7f57570 | ||
|
|
b93d9eb4e6 | ||
|
|
9dc7b5f192 | ||
|
|
8083c49857 | ||
|
|
c76c90dd35 | ||
|
|
edaf885715 | ||
|
|
8b553892bf | ||
|
|
a68f83acb7 | ||
|
|
5b1c57d3ee | ||
|
|
ea44c95307 | ||
|
|
399fd83d3a | ||
|
|
c2f4ee1716 | ||
|
|
7f5d8151ca | ||
|
|
5e01850099 | ||
|
|
997acf2d9f | ||
|
|
7e20dcaaad | ||
|
|
cd5308942e | ||
|
|
7f76d433c5 | ||
|
|
99b1694a81 | ||
|
|
0bf02618f4 | ||
|
|
e2588e4743 | ||
|
|
6462c06b2a | ||
|
|
fd1f514843 | ||
|
|
cb253e6fee | ||
|
|
504a928fae | ||
|
|
205118b36d | ||
|
|
4c65faf7b3 | ||
|
|
d53a41a621 | ||
|
|
67da6db525 | ||
|
|
4a69e40ae9 | ||
|
|
5fc83b2522 | ||
|
|
9c85de9eb9 | ||
|
|
935ac401fa | ||
|
|
a799a33c69 | ||
|
|
1cbe69ea99 | ||
|
|
0fee8fcbe3 | ||
|
|
5b5051bab7 | ||
|
|
1919b0482a | ||
|
|
0f26e92eea | ||
|
|
ff3e9bee77 | ||
|
|
dc2ff34955 | ||
|
|
8375e1241b | ||
|
|
369f80d5e6 | ||
|
|
ee76b43bf4 | ||
|
|
0310e71452 | ||
|
|
399999b172 | ||
|
|
bbeffee828 | ||
|
|
b980c2d4a1 | ||
|
|
5e28f2af2c | ||
|
|
258113fb61 | ||
|
|
1ffc6ef8b2 | ||
|
|
ff6fa02e94 | ||
|
|
1946316ff4 | ||
|
|
4bb97afc26 | ||
|
|
a77eaf6b1e | ||
|
|
40eef35b4f | ||
|
|
afc96b5817 | ||
|
|
01a0035e30 | ||
|
|
b669a699db | ||
|
|
bc95c0bd1c | ||
|
|
8d89026fff | ||
|
|
0333675016 | ||
|
|
b30fd84c8f | ||
|
|
996abae180 | ||
|
|
835cab0214 | ||
|
|
6b901af7d9 | ||
|
|
9dcb269bc2 | ||
|
|
1cfbf4da37 | ||
|
|
6a2494aea3 | ||
|
|
de876ede03 | ||
|
|
718630d9d4 | ||
|
|
89a67d0d6f | ||
|
|
610f8e7bbc | ||
|
|
ab4052c35c | ||
|
|
79ae38b76b | ||
|
|
cd91a6c41f | ||
|
|
2ca4bacf79 | ||
|
|
149284d265 | ||
|
|
6af1e8dcd5 | ||
|
|
02d29c42a3 | ||
|
|
4ea4d5089b | ||
|
|
5d5421ae6d | ||
|
|
24ff7fc9bb | ||
|
|
4cb9b6c6db | ||
|
|
5a132667b0 | ||
|
|
814ed4cbc5 | ||
|
|
57d9ad937e | ||
|
|
b9a4beb133 | ||
|
|
cd94b1a3ef | ||
|
|
208b9e2162 | ||
|
|
01154d1f7b | ||
|
|
6e95169f9f | ||
|
|
0d51516fcf | ||
|
|
bc05ba0a0d | ||
|
|
e5beaa4902 | ||
|
|
a4fd8f0b14 | ||
|
|
cf61520eef | ||
|
|
9ca17e2363 | ||
|
|
01a98d9642 | ||
|
|
9ee489ef5a | ||
|
|
c2f26ae478 | ||
|
|
19e94b031a | ||
|
|
7843a26962 | ||
|
|
7040d5d030 | ||
|
|
66111af16f | ||
|
|
1eae012704 | ||
|
|
6f7db33e89 | ||
|
|
af323e1f91 | ||
|
|
3607b8019f | ||
|
|
b85d5d1a2d | ||
|
|
6c6e1c27b1 | ||
|
|
08714427b3 | ||
|
|
1aabf5dd45 | ||
|
|
03ed7b74db | ||
|
|
036ab4077c | ||
|
|
1888a447d7 | ||
|
|
4e99e55373 | ||
|
|
a31d3324ad | ||
|
|
092726c3f9 | ||
|
|
630a35d528 | ||
|
|
f82c844f6b | ||
|
|
24f9c51559 | ||
|
|
3ceffc97fb | ||
|
|
dcc48ae5d3 | ||
|
|
b03fc86168 | ||
|
|
0784f7bdfb | ||
|
|
71d26dbb9a | ||
|
|
dd4487edcd | ||
|
|
f805f78ef3 | ||
|
|
73206b556d | ||
|
|
397f3c1251 | ||
|
|
d5d7a128d2 | ||
|
|
1f1e9f5b21 | ||
|
|
d262735c4e | ||
|
|
ecac686e25 | ||
|
|
f1c9a6e87e | ||
|
|
fcba362cc0 | ||
|
|
c3d23d7415 | ||
|
|
84303d0632 | ||
|
|
44b6a6d658 | ||
|
|
4e90027630 | ||
|
|
b207b9b3c4 | ||
|
|
213867ed77 | ||
|
|
4412216b6c | ||
|
|
70014e9021 | ||
|
|
a3704bd4f0 | ||
|
|
ca0b30f37e | ||
|
|
7e9ec60b8e | ||
|
|
adb4f54c54 | ||
|
|
eacba70919 | ||
|
|
a68143af97 | ||
|
|
a95e4e691d | ||
|
|
d4578bef28 | ||
|
|
ae04d5f62d | ||
|
|
c3ea7ba384 | ||
|
|
bca55b62df | ||
|
|
36741b06ad | ||
|
|
e7cb9b149d | ||
|
|
8129378fc8 | ||
|
|
f3d34321cd | ||
|
|
2a1525670c | ||
|
|
a7e36d0119 | ||
|
|
2ba046310f | ||
|
|
6ed942d954 | ||
|
|
0af1c4d4c9 | ||
|
|
811220f882 | ||
|
|
caeef42000 | ||
|
|
90a3cf176f | ||
|
|
44cec9cc31 | ||
|
|
e04cec01e6 | ||
|
|
9df38c142e | ||
|
|
51bf4c8064 | ||
|
|
cca7714f19 | ||
|
|
fc6d9437a9 | ||
|
|
537123c6aa | ||
|
|
373258f402 | ||
|
|
6f2a3b75d4 | ||
|
|
ed4cd383df | ||
|
|
3cd7e1d4ae | ||
|
|
7264710bb5 | ||
|
|
004c425738 | ||
|
|
cd50c47b4a | ||
|
|
93d240e9f2 | ||
|
|
01640adde7 | ||
|
|
c3c1c76acb | ||
|
|
7e58cbc685 | ||
|
|
5e7ad89fdb | ||
|
|
f1be3b7730 | ||
|
|
08286e3172 | ||
|
|
f16683a421 | ||
|
|
ce7f97839b | ||
|
|
7e39db8dbd | ||
|
|
5c029d8976 | ||
|
|
bc76634bca | ||
|
|
fcb8365fe4 | ||
|
|
b2f4a41c0d | ||
|
|
811ca7ca70 | ||
|
|
1fcec290b6 | ||
|
|
d9d2ac29b9 | ||
|
|
28e3c12b23 | ||
|
|
1eff5089f2 | ||
|
|
b0520064e8 | ||
|
|
b3262d9acb | ||
|
|
272cb32e74 | ||
|
|
577246830d | ||
|
|
7fed166c29 | ||
|
|
294a3a8d2d | ||
|
|
835d162ede | ||
|
|
8f8c18490a | ||
|
|
dbcdd6974b | ||
|
|
61071e1d00 | ||
|
|
1aa83a1d5b | ||
|
|
f9c27e4b3d | ||
|
|
cb10e425d7 | ||
|
|
8827940789 | ||
|
|
30e099ee2e | ||
|
|
834aff2a9d | ||
|
|
975b84a3b2 | ||
|
|
14d1690100 | ||
|
|
4bbd86e82f | ||
|
|
ba30495cc8 | ||
|
|
368d58070c | ||
|
|
54f05b11c4 | ||
|
|
77b599ec83 | ||
|
|
2cbcb9dd5d | ||
|
|
0f0d050599 | ||
|
|
99d9a1a053 | ||
|
|
1c9d5e5ce2 | ||
|
|
56748c4478 | ||
|
|
41cdb46fc2 | ||
|
|
515fd749e6 | ||
|
|
2574278b68 | ||
|
|
395c495130 | ||
|
|
075815a6b5 | ||
|
|
29c6bcad1e | ||
|
|
35408b7b1f | ||
|
|
04d8d41b05 | ||
|
|
7700675a76 | ||
|
|
2b57b2535d | ||
|
|
ddc36dbfcf | ||
|
|
2ab78335a2 | ||
|
|
fed9ad156c | ||
|
|
b8e06f91ef | ||
|
|
de56713e96 | ||
|
|
3515158bb0 | ||
|
|
a5ed3edd84 | ||
|
|
e2d32d954e | ||
|
|
baf2b3776c | ||
|
|
f48e32230b | ||
|
|
3338f66c0b | ||
|
|
8d34b3d4af | ||
|
|
023a3fa89d | ||
|
|
ad6d7a1082 | ||
|
|
8e8a23454a | ||
|
|
2cea8c6c8a | ||
|
|
ce795f99f0 | ||
|
|
fcda1da75b | ||
|
|
199d11d22e | ||
|
|
dd819b17ce | ||
|
|
2b93f3f986 | ||
|
|
1cf448c823 | ||
|
|
6618b80964 | ||
|
|
3215f559d4 | ||
|
|
cb634636f5 | ||
|
|
c9b8ed3e58 | ||
|
|
6e6233232c | ||
|
|
642ac66b9f | ||
|
|
319ab11274 | ||
|
|
5e928f2e67 | ||
|
|
26b65b5752 | ||
|
|
b677044fa6 | ||
|
|
bafcd504f2 | ||
|
|
f41a9f76c1 | ||
|
|
37c8f97493 | ||
|
|
9aac529d70 | ||
|
|
3d59581432 | ||
|
|
469e1244cc | ||
|
|
1735edf494 | ||
|
|
b02b258d77 | ||
|
|
222056574c | ||
|
|
6748b3518f | ||
|
|
29ccb721f5 | ||
|
|
26706a154b | ||
|
|
131be49e5f | ||
|
|
b7e57ef49c | ||
|
|
6f57285db0 | ||
|
|
6694637fc1 | ||
|
|
e84ffa16d0 | ||
|
|
10b492b3d2 | ||
|
|
ab0866d36a | ||
|
|
deb29c0224 | ||
|
|
c8944543cc | ||
|
|
6ae1472d6c | ||
|
|
9c2c0393e1 | ||
|
|
062e3c89fd | ||
|
|
c08db405f4 | ||
|
|
e7ebfa7f4c | ||
|
|
46a908fb3c | ||
|
|
36a9fbed56 | ||
|
|
63965ec26e | ||
|
|
8b09158148 | ||
|
|
fc10564ab5 | ||
|
|
4c5b65aa38 | ||
|
|
94e392d3ef | ||
|
|
ebc7924049 | ||
|
|
689b789864 | ||
|
|
c3b0470c20 | ||
|
|
3501cf72aa | ||
|
|
3464bfa85a | ||
|
|
671b1b79ed | ||
|
|
b823e82411 | ||
|
|
25c1462848 | ||
|
|
fb1308556c | ||
|
|
d85f521b53 | ||
|
|
9105755afe | ||
|
|
b3b157641e | ||
|
|
55678c9e91 | ||
|
|
7e173a2a5f | ||
|
|
41b0001886 | ||
|
|
75efcbc3a1 | ||
|
|
3c3641040c | ||
|
|
fce686972c | ||
|
|
d28a7b5f26 | ||
|
|
9372e47589 | ||
|
|
b5af6c0959 | ||
|
|
7ec3c6b1c5 | ||
|
|
12f0e627a1 | ||
|
|
ec6149c127 | ||
|
|
06050b2796 | ||
|
|
704319b27a | ||
|
|
c868e7000e | ||
|
|
85f9c826cf | ||
|
|
7d65d736bc | ||
|
|
2208e362c2 | ||
|
|
ac1933d881 | ||
|
|
b95570b769 | ||
|
|
b52b5a0df7 | ||
|
|
1cedcb791d | ||
|
|
a20e677954 | ||
|
|
2ea8877a76 | ||
|
|
f272b030fb | ||
|
|
0de582a750 | ||
|
|
df6d28fd37 | ||
|
|
d3149ad1b3 | ||
|
|
e35873ab54 | ||
|
|
7071eb6907 | ||
|
|
852b68eaba | ||
|
|
9063951aa7 | ||
|
|
f69abbcda9 | ||
|
|
45f936ee7c | ||
|
|
39663ba9ad | ||
|
|
58d50b2552 | ||
|
|
32a1abce22 | ||
|
|
30388bf064 | ||
|
|
a4bc5e4e7b | ||
|
|
1e450bf019 | ||
|
|
e65215448a | ||
|
|
fbd2d8d829 | ||
|
|
d531463e67 | ||
|
|
28b792fe76 | ||
|
|
c19e4ca60a | ||
|
|
9749e98aee | ||
|
|
b49895045d | ||
|
|
ca21757199 | ||
|
|
2e98be3fca | ||
|
|
3b86ac7777 | ||
|
|
295d1ffb30 | ||
|
|
26eb86193c | ||
|
|
9e2cf17ab7 | ||
|
|
4600969f16 | ||
|
|
332df80b1d | ||
|
|
0a534eed37 | ||
|
|
900a6abeb7 | ||
|
|
9b81646219 | ||
|
|
ca8d26c119 | ||
|
|
245bd0d90e | ||
|
|
67ec379e1d | ||
|
|
3e73e1a561 | ||
|
|
55ccfab66c | ||
|
|
23ae12bf2e | ||
|
|
e8de86da66 | ||
|
|
13a297d58d | ||
|
|
f2aa774acd | ||
|
|
721b478d00 | ||
|
|
4ee672ea3b | ||
|
|
acd210da93 | ||
|
|
4c853a7b20 | ||
|
|
51f20a9e2d | ||
|
|
18a17ea761 | ||
|
|
60c5bc543a | ||
|
|
0aa1dc0c74 | ||
|
|
f5b85b25ed | ||
|
|
4245694b10 | ||
|
|
24c99df65a | ||
|
|
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 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -24,6 +24,7 @@
|
|||||||
!.vscode/extensions.json
|
!.vscode/extensions.json
|
||||||
|
|
||||||
# misc
|
# misc
|
||||||
|
/.angular/cache
|
||||||
/.sass-cache
|
/.sass-cache
|
||||||
/connect.lock
|
/connect.lock
|
||||||
/coverage
|
/coverage
|
||||||
|
|||||||
@@ -2,17 +2,17 @@ image: docker:stable
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- docker:dind
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
|
||||||
'Docker build and push':
|
build-app:
|
||||||
stage: build
|
stage: build
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
- dev
|
- dev
|
||||||
|
before_script:
|
||||||
|
- echo "$DOCKER_REGISTRY_PASSWORD" | docker login --username "$DOCKER_REGISTRY_USER" --password-stdin
|
||||||
script:
|
script:
|
||||||
- echo $DOCKER_REGISTRY_USER
|
- chmod +x ./ci/gitlab-ci-app.sh
|
||||||
- chmod +x ./gitlab-ci.sh
|
- ./ci/gitlab-ci-app.sh
|
||||||
- ./gitlab-ci.sh
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
27
Dockerfile
27
Dockerfile
@@ -1,26 +1,29 @@
|
|||||||
# Stage 1:
|
# Stage 1:
|
||||||
FROM node:15.12.0-alpine AS sources
|
FROM node:20.14-alpine AS sources
|
||||||
|
|
||||||
RUN apk --no-cache add yarn git
|
WORKDIR /app
|
||||||
|
|
||||||
WORKDIR /var/www/app
|
|
||||||
|
|
||||||
ADD ./package.json ./
|
ADD ./package.json ./
|
||||||
ADD ./yarn.lock ./
|
ADD ./.npmrc ./
|
||||||
ADD ./qmi-cloud-common ./qmi-cloud-common
|
|
||||||
|
|
||||||
RUN yarn install --production
|
RUN yarn install --production
|
||||||
|
|
||||||
# Stage 2:
|
# Stage 2:
|
||||||
FROM node:15.12.0-alpine AS production
|
FROM node:20.14-alpine AS production
|
||||||
WORKDIR /var/www/app
|
|
||||||
COPY --from=sources /var/www/app/node_modules ./node_modules
|
ARG BUILD_ENV
|
||||||
COPY --from=sources /var/www/app/package.json ./package.json
|
|
||||||
|
RUN echo "Building enviroment is: $BUILD_ENV"
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=sources /app/node_modules ./node_modules
|
||||||
|
COPY --from=sources /app/package.json ./package.json
|
||||||
COPY ./server ./server
|
COPY ./server ./server
|
||||||
COPY ./dist ./dist
|
COPY ./config ./config
|
||||||
|
COPY ./dist${BUILD_ENV} ./dist
|
||||||
COPY ./mystatsmashup ./mystatsmashup
|
COPY ./mystatsmashup ./mystatsmashup
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
EXPOSE 3100
|
EXPOSE 3100
|
||||||
|
|
||||||
CMD ["node", "-r", "esm", "server/server"]
|
CMD ["node", "server/server"]
|
||||||
|
|||||||
@@ -9,9 +9,9 @@
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"AZURE_TENANT_ID" : "xxxxxxxx",
|
"IDENTITY_METADATA" : "xxxxxxxx",
|
||||||
"AZURE_CLIENT_ID": "yyyyyyyy",
|
"CLIENT_ID": "yyyyyyyy",
|
||||||
"AZURE_CLIENT_SECRET": "zzzzzzzz"
|
"CLIENT_SECRET": "zzzzzzzz"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
82
angular.json
82
angular.json
@@ -23,8 +23,10 @@
|
|||||||
"polyfills": "src/polyfills.ts",
|
"polyfills": "src/polyfills.ts",
|
||||||
"tsConfig": "src/tsconfig.app.json",
|
"tsConfig": "src/tsconfig.app.json",
|
||||||
"assets": [
|
"assets": [
|
||||||
"src/favicon.ico",
|
"src/favicon.svg",
|
||||||
"src/assets"
|
"src/assets",
|
||||||
|
"src/env.js",
|
||||||
|
"src/oauth-callback.html"
|
||||||
],
|
],
|
||||||
"styles": [
|
"styles": [
|
||||||
"node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss",
|
"node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss",
|
||||||
@@ -34,20 +36,17 @@
|
|||||||
"node_modules/angular-bootstrap-md/assets/scss/bootstrap/bootstrap.scss",
|
"node_modules/angular-bootstrap-md/assets/scss/bootstrap/bootstrap.scss",
|
||||||
"node_modules/angular-bootstrap-md/assets/scss/mdb.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"
|
"src/styles.scss"
|
||||||
],
|
],
|
||||||
"scripts": [
|
"scripts": [
|
||||||
|
],
|
||||||
"node_modules/chart.js/dist/Chart.js",
|
"aot": false,
|
||||||
"node_modules/hammerjs/hammer.min.js",
|
"vendorChunk": true,
|
||||||
"node_modules/marked/lib/marked.js",
|
"extractLicenses": false,
|
||||||
"node_modules/prismjs/prism.js",
|
"buildOptimizer": false,
|
||||||
"node_modules/prismjs/plugins/line-highlight/prism-line-highlight.js",
|
"sourceMap": true,
|
||||||
"node_modules/prismjs/plugins/line-numbers/prism-line-numbers.js",
|
"optimization": false,
|
||||||
"src/assets/js/qdt-components.js",
|
"namedChunks": true
|
||||||
"src/assets/js/qlikMashupQCS.js"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"configurations": {
|
"configurations": {
|
||||||
"production": {
|
"production": {
|
||||||
@@ -60,7 +59,6 @@
|
|||||||
"optimization": true,
|
"optimization": true,
|
||||||
"outputHashing": "all",
|
"outputHashing": "all",
|
||||||
"sourceMap": false,
|
"sourceMap": false,
|
||||||
"extractCss": true,
|
|
||||||
"namedChunks": false,
|
"namedChunks": false,
|
||||||
"aot": true,
|
"aot": true,
|
||||||
"extractLicenses": true,
|
"extractLicenses": true,
|
||||||
@@ -70,20 +68,48 @@
|
|||||||
{
|
{
|
||||||
"type": "initial",
|
"type": "initial",
|
||||||
"maximumWarning": "2mb",
|
"maximumWarning": "2mb",
|
||||||
"maximumError": "5mb"
|
"maximumError": "10mb"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"staging": {
|
||||||
|
"optimization": true,
|
||||||
|
"outputHashing": "all",
|
||||||
|
"sourceMap": false,
|
||||||
|
"namedChunks": false,
|
||||||
|
"aot": true,
|
||||||
|
"extractLicenses": true,
|
||||||
|
"vendorChunk": false,
|
||||||
|
"buildOptimizer": true,
|
||||||
|
"outputPath": "diststaging/qmi-cloud",
|
||||||
|
"index": {
|
||||||
|
"input": "src/index-dev.html",
|
||||||
|
"output": "index.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"local": {
|
||||||
|
"index": {
|
||||||
|
"input": "src/index-local.html",
|
||||||
|
"output": "index.html"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"defaultConfiguration": ""
|
||||||
|
},
|
||||||
"serve": {
|
"serve": {
|
||||||
"builder": "@angular-devkit/build-angular:dev-server",
|
"builder": "@angular-devkit/build-angular:dev-server",
|
||||||
"options": {
|
"options": {
|
||||||
"browserTarget": "qmi-cloud:build"
|
"browserTarget": "qmi-cloud:build",
|
||||||
|
"proxyConfig": "proxy.conf.json"
|
||||||
},
|
},
|
||||||
"configurations": {
|
"configurations": {
|
||||||
"production": {
|
"production": {
|
||||||
"browserTarget": "qmi-cloud:build:production"
|
"browserTarget": "qmi-cloud:build:production"
|
||||||
|
},"staging": {
|
||||||
|
"browserTarget": "qmi-cloud:build:staging"
|
||||||
|
},
|
||||||
|
"local": {
|
||||||
|
"browserTarget": "qmi-cloud:build:local"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -105,22 +131,10 @@
|
|||||||
],
|
],
|
||||||
"scripts": [],
|
"scripts": [],
|
||||||
"assets": [
|
"assets": [
|
||||||
"src/favicon.ico",
|
"src/favicon.svg",
|
||||||
"src/assets"
|
"src/assets"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"lint": {
|
|
||||||
"builder": "@angular-devkit/build-angular:tslint",
|
|
||||||
"options": {
|
|
||||||
"tsConfig": [
|
|
||||||
"src/tsconfig.app.json",
|
|
||||||
"src/tsconfig.spec.json"
|
|
||||||
],
|
|
||||||
"exclude": [
|
|
||||||
"**/node_modules/**"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -140,20 +154,10 @@
|
|||||||
"devServerTarget": "qmi-cloud:serve:production"
|
"devServerTarget": "qmi-cloud:serve:production"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"lint": {
|
|
||||||
"builder": "@angular-devkit/build-angular:tslint",
|
|
||||||
"options": {
|
|
||||||
"tsConfig": "e2e/tsconfig.e2e.json",
|
|
||||||
"exclude": [
|
|
||||||
"**/node_modules/**"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"defaultProject": "qmi-cloud",
|
|
||||||
"cli": {
|
"cli": {
|
||||||
"analytics": false
|
"analytics": false
|
||||||
}
|
}
|
||||||
|
|||||||
23
ci/gitlab-ci-app.sh
Executable file
23
ci/gitlab-ci-app.sh
Executable file
@@ -0,0 +1,23 @@
|
|||||||
|
echo "--- Building QMI Cloud docker images for branch $CI_COMMIT_REF_NAME"
|
||||||
|
|
||||||
|
IMAGE_NAME="qlikgear/qmi-cloud-app"
|
||||||
|
PROJECT_FOLDER="."
|
||||||
|
|
||||||
|
export VERSION=$(cat $PROJECT_FOLDER/package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]')
|
||||||
|
|
||||||
|
export TAG=$VERSION
|
||||||
|
export STABLE_TAG="latest"
|
||||||
|
export BUILD_ENV=""
|
||||||
|
|
||||||
|
if [ "$CI_COMMIT_REF_NAME" != "master" ]; then
|
||||||
|
TAG="$VERSION-$CI_COMMIT_REF_NAME"
|
||||||
|
STABLE_TAG="latestdev"
|
||||||
|
BUILD_ENV="staging"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "--- Building image: $IMAGE_NAME:$TAG"
|
||||||
|
docker build -f $PROJECT_FOLDER/Dockerfile --build-arg BUILD_ENV=$BUILD_ENV -t $IMAGE_NAME:$TAG ./
|
||||||
|
echo "--- Pushing image: $IMAGE_NAME:$TAG"
|
||||||
|
docker push $IMAGE_NAME:$TAG
|
||||||
|
docker image tag $IMAGE_NAME:$TAG $IMAGE_NAME:$STABLE_TAG
|
||||||
|
docker push $IMAGE_NAME:$STABLE_TAG
|
||||||
6
config/qmi-config.json
Normal file
6
config/qmi-config.json
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"forced_destroy_groups":[
|
||||||
|
"SG-okta-cloud-team-admin-access"
|
||||||
|
],
|
||||||
|
"forced_destroy_period_days": 60
|
||||||
|
}
|
||||||
12
dist/out-tsc/e2e/src/app.e2e-spec.js
vendored
12
dist/out-tsc/e2e/src/app.e2e-spec.js
vendored
@@ -1,12 +0,0 @@
|
|||||||
import { AppPage } from './app.po';
|
|
||||||
describe('workspace-project App', function () {
|
|
||||||
var page;
|
|
||||||
beforeEach(function () {
|
|
||||||
page = new AppPage();
|
|
||||||
});
|
|
||||||
it('should display welcome message', function () {
|
|
||||||
page.navigateTo();
|
|
||||||
expect(page.getTitleText()).toEqual('Welcome to qmi-cloud!');
|
|
||||||
});
|
|
||||||
});
|
|
||||||
//# sourceMappingURL=app.e2e-spec.js.map
|
|
||||||
1
dist/out-tsc/e2e/src/app.e2e-spec.js.map
vendored
1
dist/out-tsc/e2e/src/app.e2e-spec.js.map
vendored
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"app.e2e-spec.js","sourceRoot":"","sources":["../../../../e2e/src/app.e2e-spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEnC,QAAQ,CAAC,uBAAuB,EAAE;IAChC,IAAI,IAAa,CAAC;IAElB,UAAU,CAAC;QACT,IAAI,GAAG,IAAI,OAAO,EAAE,CAAC;IACvB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,gCAAgC,EAAE;QACnC,IAAI,CAAC,UAAU,EAAE,CAAC;QAClB,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAC/D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
||||||
14
dist/out-tsc/e2e/src/app.po.js
vendored
14
dist/out-tsc/e2e/src/app.po.js
vendored
@@ -1,14 +0,0 @@
|
|||||||
import { browser, by, element } from 'protractor';
|
|
||||||
var AppPage = /** @class */ (function () {
|
|
||||||
function AppPage() {
|
|
||||||
}
|
|
||||||
AppPage.prototype.navigateTo = function () {
|
|
||||||
return browser.get('/');
|
|
||||||
};
|
|
||||||
AppPage.prototype.getTitleText = function () {
|
|
||||||
return element(by.css('app-root h1')).getText();
|
|
||||||
};
|
|
||||||
return AppPage;
|
|
||||||
}());
|
|
||||||
export { AppPage };
|
|
||||||
//# sourceMappingURL=app.po.js.map
|
|
||||||
1
dist/out-tsc/e2e/src/app.po.js.map
vendored
1
dist/out-tsc/e2e/src/app.po.js.map
vendored
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"app.po.js","sourceRoot":"","sources":["../../../../e2e/src/app.po.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAElD;IAAA;IAQA,CAAC;IAPC,4BAAU,GAAV;QACE,OAAO,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC1B,CAAC;IAED,8BAAY,GAAZ;QACE,OAAO,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IAClD,CAAC;IACH,cAAC;AAAD,CAAC,AARD,IAQC"}
|
|
||||||
34
dist/out-tsc/src/app/admin/admin.component.js
vendored
34
dist/out-tsc/src/app/admin/admin.component.js
vendored
@@ -1,34 +0,0 @@
|
|||||||
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 AdminComponent = /** @class */ (function () {
|
|
||||||
function AdminComponent() {
|
|
||||||
this.sections = ['Provisions', 'Scenarios', 'Scenario Deploy Opts', 'Users', 'Notifications', 'API keys', 'VM Types'];
|
|
||||||
this.tab = 'Provisions';
|
|
||||||
}
|
|
||||||
AdminComponent.prototype.ngOnInit = function () {
|
|
||||||
};
|
|
||||||
AdminComponent.prototype.tabSelect = function ($event, tab) {
|
|
||||||
$event.preventDefault();
|
|
||||||
$event.stopPropagation();
|
|
||||||
this.tab = tab;
|
|
||||||
};
|
|
||||||
AdminComponent = __decorate([
|
|
||||||
Component({
|
|
||||||
selector: 'app-admin',
|
|
||||||
templateUrl: './admin.component.html',
|
|
||||||
styleUrls: ['./admin.component.scss']
|
|
||||||
}),
|
|
||||||
__metadata("design:paramtypes", [])
|
|
||||||
], AdminComponent);
|
|
||||||
return AdminComponent;
|
|
||||||
}());
|
|
||||||
export { AdminComponent };
|
|
||||||
//# sourceMappingURL=admin.component.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"admin.component.js","sourceRoot":"","sources":["../../../../../src/app/admin/admin.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAU,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"}
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
import { async, TestBed } from '@angular/core/testing';
|
|
||||||
import { AdminComponent } from './admin.component';
|
|
||||||
describe('AdminComponent', function () {
|
|
||||||
var component;
|
|
||||||
var fixture;
|
|
||||||
beforeEach(async(function () {
|
|
||||||
TestBed.configureTestingModule({
|
|
||||||
declarations: [AdminComponent]
|
|
||||||
})
|
|
||||||
.compileComponents();
|
|
||||||
}));
|
|
||||||
beforeEach(function () {
|
|
||||||
fixture = TestBed.createComponent(AdminComponent);
|
|
||||||
component = fixture.componentInstance;
|
|
||||||
fixture.detectChanges();
|
|
||||||
});
|
|
||||||
it('should create', function () {
|
|
||||||
expect(component).toBeTruthy();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
//# sourceMappingURL=admin.component.spec.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"admin.component.spec.js","sourceRoot":"","sources":["../../../../../src/app/admin/admin.component.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAoB,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,QAAQ,CAAC,gBAAgB,EAAE;IACzB,IAAI,SAAyB,CAAC;IAC9B,IAAI,OAAyC,CAAC;IAE9C,UAAU,CAAC,KAAK,CAAC;QACf,OAAO,CAAC,sBAAsB,CAAC;YAC7B,YAAY,EAAE,CAAE,cAAc,CAAE;SACjC,CAAC;aACD,iBAAiB,EAAE,CAAC;IACvB,CAAC,CAAC,CAAC,CAAC;IAEJ,UAAU,CAAC;QACT,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC;QAClD,SAAS,GAAG,OAAO,CAAC,iBAAiB,CAAC;QACtC,OAAO,CAAC,aAAa,EAAE,CAAC;IAC1B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,eAAe,EAAE;QAClB,MAAM,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
||||||
43
dist/out-tsc/src/app/alert/alert.component.js
vendored
43
dist/out-tsc/src/app/alert/alert.component.js
vendored
@@ -1,43 +0,0 @@
|
|||||||
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 +0,0 @@
|
|||||||
{"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
40
dist/out-tsc/src/app/alert/confirm.component.js
vendored
@@ -1,40 +0,0 @@
|
|||||||
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 +0,0 @@
|
|||||||
{"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"}
|
|
||||||
@@ -1,99 +0,0 @@
|
|||||||
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 +0,0 @@
|
|||||||
{"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,yCAAyC;oBAC5D,KAAK,EAAE,KAAK;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ChC;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"}
|
|
||||||
@@ -1,68 +0,0 @@
|
|||||||
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 +0,0 @@
|
|||||||
{"version":3,"file":"edit-subscription.component.js","sourceRoot":"","sources":["../../../../../src/app/alert/edit-subscription.component.ts"],"names":[],"mappings":";;;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YACvB,CAAC,CAAC,CAAC;SACJ;aAAM;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"}
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
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 +0,0 @@
|
|||||||
{"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"}
|
|
||||||
@@ -1,104 +0,0 @@
|
|||||||
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 +0,0 @@
|
|||||||
{"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,G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AC,OAAO,CAAC,UAAA,CAAC;oBACvB,IAAI,CAAC,CAAC,IAAI,KAAK,KAAI,CAAC,sBAAsB,CAAC,GAAG,CAAC,EAAC;wBAC9C,KAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC;qBACxC;gBACH,CAAC,CAAC,CAAA;YACJ,CAAC,CAAC,CAAC;;;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"}
|
|
||||||
39
dist/out-tsc/src/app/app-routing.module.js
vendored
39
dist/out-tsc/src/app/app-routing.module.js
vendored
@@ -1,39 +0,0 @@
|
|||||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
||||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
||||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
||||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
||||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
||||||
};
|
|
||||||
import { NgModule } from '@angular/core';
|
|
||||||
import { RouterModule } from '@angular/router';
|
|
||||||
import { ProvisionsComponent } from './provisions/provisions.component';
|
|
||||||
import { AdminComponent } from './admin/admin.component';
|
|
||||||
import { 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'
|
|
||||||
},
|
|
||||||
{ path: '**', redirectTo: '/home' }
|
|
||||||
];
|
|
||||||
var AppRoutingModule = /** @class */ (function () {
|
|
||||||
function AppRoutingModule() {
|
|
||||||
}
|
|
||||||
AppRoutingModule = __decorate([
|
|
||||||
NgModule({
|
|
||||||
imports: [RouterModule.forRoot(routes)],
|
|
||||||
exports: [RouterModule]
|
|
||||||
})
|
|
||||||
], AppRoutingModule);
|
|
||||||
return AppRoutingModule;
|
|
||||||
}());
|
|
||||||
export { AppRoutingModule };
|
|
||||||
//# sourceMappingURL=app-routing.module.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"app-routing.module.js","sourceRoot":"","sources":["../../../../src/app/app-routing.module.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,QAAQ,EAA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out-tsc/src/app/app.component.js
vendored
@@ -1,26 +0,0 @@
|
|||||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
||||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
||||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
||||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
||||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
||||||
};
|
|
||||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
||||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
||||||
};
|
|
||||||
import { Component } from '@angular/core';
|
|
||||||
var AppComponent = /** @class */ (function () {
|
|
||||||
function AppComponent() {
|
|
||||||
this.title = 'qmi-cloud';
|
|
||||||
}
|
|
||||||
AppComponent = __decorate([
|
|
||||||
Component({
|
|
||||||
selector: 'app-root',
|
|
||||||
templateUrl: './app.component.html',
|
|
||||||
styleUrls: ['./app.component.scss']
|
|
||||||
}),
|
|
||||||
__metadata("design:paramtypes", [])
|
|
||||||
], AppComponent);
|
|
||||||
return AppComponent;
|
|
||||||
}());
|
|
||||||
export { AppComponent };
|
|
||||||
//# sourceMappingURL=app.component.js.map
|
|
||||||
1
dist/out-tsc/src/app/app.component.js.map
vendored
1
dist/out-tsc/src/app/app.component.js.map
vendored
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"app.component.js","sourceRoot":"","sources":["../../../../src/app/app.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAQ1C;IAEE;QADA,UAAK,GAAG,WAAW,CAAC;IAGpB,CAAC;IAJU,YAAY;QANxB,SAAS,CAAC;YACT,QAAQ,EAAE,UAAU;YACpB,WAAW,EAAE,sBAAsB;YACnC,SAAS,EAAE,CAAC,sBAAsB,CAAC;SACpC,CAAC;;OAEW,YAAY,CAKxB;IAAD,mBAAC;CAAA,AALD,IAKC;SALY,YAAY"}
|
|
||||||
32
dist/out-tsc/src/app/app.component.spec.js
vendored
32
dist/out-tsc/src/app/app.component.spec.js
vendored
@@ -1,32 +0,0 @@
|
|||||||
import { TestBed, async } from '@angular/core/testing';
|
|
||||||
import { RouterTestingModule } from '@angular/router/testing';
|
|
||||||
import { AppComponent } from './app.component';
|
|
||||||
describe('AppComponent', function () {
|
|
||||||
beforeEach(async(function () {
|
|
||||||
TestBed.configureTestingModule({
|
|
||||||
imports: [
|
|
||||||
RouterTestingModule
|
|
||||||
],
|
|
||||||
declarations: [
|
|
||||||
AppComponent
|
|
||||||
],
|
|
||||||
}).compileComponents();
|
|
||||||
}));
|
|
||||||
it('should create the app', function () {
|
|
||||||
var fixture = TestBed.createComponent(AppComponent);
|
|
||||||
var app = fixture.debugElement.componentInstance;
|
|
||||||
expect(app).toBeTruthy();
|
|
||||||
});
|
|
||||||
it("should have as title 'qmi-cloud'", function () {
|
|
||||||
var fixture = TestBed.createComponent(AppComponent);
|
|
||||||
var app = fixture.debugElement.componentInstance;
|
|
||||||
expect(app.title).toEqual('qmi-cloud');
|
|
||||||
});
|
|
||||||
it('should render title in a h1 tag', function () {
|
|
||||||
var fixture = TestBed.createComponent(AppComponent);
|
|
||||||
fixture.detectChanges();
|
|
||||||
var compiled = fixture.debugElement.nativeElement;
|
|
||||||
expect(compiled.querySelector('h1').textContent).toContain('Welcome to qmi-cloud!');
|
|
||||||
});
|
|
||||||
});
|
|
||||||
//# sourceMappingURL=app.component.spec.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"app.component.spec.js","sourceRoot":"","sources":["../../../../src/app/app.component.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AACvD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js
vendored
113
dist/out-tsc/src/app/app.module.js
vendored
@@ -1,113 +0,0 @@
|
|||||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
||||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
||||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
||||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
||||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
||||||
};
|
|
||||||
import { BrowserModule } from '@angular/platform-browser';
|
|
||||||
import { NgModule } from '@angular/core';
|
|
||||||
import { AppRoutingModule } from './app-routing.module';
|
|
||||||
import { AppComponent } from './app.component';
|
|
||||||
import { UiModule } from './ui/ui.module';
|
|
||||||
import { HomeComponent } from './home/home.component';
|
|
||||||
import { ProvisionsComponent } from './provisions/provisions.component';
|
|
||||||
import { AuthGuard } from './services/auth.guard';
|
|
||||||
import { ProvisionsService } from './services/provisions.service';
|
|
||||||
import { ScenariosService } from './services/scenarios.service';
|
|
||||||
import { UsersService } from './services/users.service';
|
|
||||||
import { MDBBootstrapModule } from 'angular-bootstrap-md';
|
|
||||||
import { MarkdownModule, MarkedRenderer } from 'ngx-markdown';
|
|
||||||
import { HttpClientModule, HttpClient } from '@angular/common/http';
|
|
||||||
import { LogsComponent } from './logs/logs.component';
|
|
||||||
import { ScenariosComponent } from './scenarios/scenarios.component';
|
|
||||||
import { AdminComponent } from './admin/admin.component';
|
|
||||||
import { PopoverconfirmComponent } from './popoverconfirm/popoverconfirm.component';
|
|
||||||
import { FormsModule } from '@angular/forms';
|
|
||||||
import { MyHttpInterceptor } from './interceptors/http.interceptor';
|
|
||||||
import { HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
||||||
import { 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() {
|
|
||||||
}
|
|
||||||
AppModule = __decorate([
|
|
||||||
NgModule({
|
|
||||||
declarations: [
|
|
||||||
AppComponent,
|
|
||||||
HomeComponent,
|
|
||||||
ProvisionsComponent,
|
|
||||||
LogsComponent,
|
|
||||||
ScenariosComponent,
|
|
||||||
AdminComponent,
|
|
||||||
PopoverconfirmComponent,
|
|
||||||
TableProvisionsAdminComponent,
|
|
||||||
TableUsersComponent,
|
|
||||||
AlertComponent,
|
|
||||||
ModalInfoComponent,
|
|
||||||
ModalConfirmComponent,
|
|
||||||
FilterPipe,
|
|
||||||
FaqComponent,
|
|
||||||
NewProvisionConfirmComponent,
|
|
||||||
TableScenariosComponent,
|
|
||||||
TableNotificationsComponent,
|
|
||||||
ScenarioModalComponent,
|
|
||||||
SubscriptionModalComponent,
|
|
||||||
TableSubsComponent,
|
|
||||||
TableApiKeysComponent,
|
|
||||||
ApikeyModalComponent,
|
|
||||||
TableVmTypesComponent,
|
|
||||||
VmTypeModalComponent,
|
|
||||||
StatsComponent
|
|
||||||
],
|
|
||||||
imports: [
|
|
||||||
BrowserModule,
|
|
||||||
AppRoutingModule,
|
|
||||||
UiModule,
|
|
||||||
HttpClientModule,
|
|
||||||
FormsModule,
|
|
||||||
MDBBootstrapModule.forRoot(),
|
|
||||||
MarkdownModule.forRoot({
|
|
||||||
loader: HttpClient
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
providers: [
|
|
||||||
{ provide: HTTP_INTERCEPTORS, useClass: MyHttpInterceptor, multi: true },
|
|
||||||
ProvisionsService,
|
|
||||||
ScenariosService,
|
|
||||||
SubscriptionsService,
|
|
||||||
UsersService,
|
|
||||||
AlertService,
|
|
||||||
AuthGuard
|
|
||||||
],
|
|
||||||
bootstrap: [AppComponent]
|
|
||||||
})
|
|
||||||
], AppModule);
|
|
||||||
return AppModule;
|
|
||||||
}());
|
|
||||||
export { AppModule };
|
|
||||||
//# sourceMappingURL=app.module.js.map
|
|
||||||
1
dist/out-tsc/src/app/app.module.js.map
vendored
1
dist/out-tsc/src/app/app.module.js.map
vendored
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"app.module.js","sourceRoot":"","sources":["../../../../src/app/app.module.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAmB,MAAM,eAAe,CAAC;AAE1D,OAAO,EAAE,gB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B;gBACvB,6BAA6B;gBAC7B,mBAAmB;gBACnB,cAAc;gBACd,kBAAkB;gBAClB,qBAAqB;gBACrB,UAAU;gBACV,YAAY;gBACZ,4BAA4B;gBAC5B,uBAAuB;gBACvB,2BAA2B;gBAC3B,sBAAsB;gBACtB,0BAA0B;gBAC1B,kBAAkB;gBAClB,qBAAqB;gBACrB,oBAAoB;gBACpB,qBAAqB;gBACrB,oBAAoB;gBACpB,cAAc;aACf;YACD,OAAO,EAAE;gBACP,aAAa;gBACb,gBAAgB;gBAChB,QAAQ;gBACR,gBAAgB;gBAChB,WAAW;gBACX,kBAAkB,CAAC,OAAO,EAAE;gBAC5B,cAAc,CAAC,OAAO,CAAC;oBACrB,MAAM,EAAE,UAAU;iBACnB,CAAC;aACH;YACD,SAAS,EAAE;gBACT,EAAE,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,iBAAiB,EAAE,KAAK,EAAE,IAAI,EAAE;gBACxE,iBAAiB;gBACjB,gBAAgB;gBAChB,oBAAoB;gBACpB,YAAY;gBACZ,YAAY;gBACZ,SAAS;aACV;YACD,SAAS,EAAE,CAAC,YAAY,CAAC;SAC1B,CAAC;OACW,SAAS,CAAI;IAAD,gBAAC;CAAA,AAA1B,IAA0B;SAAb,SAAS"}
|
|
||||||
33
dist/out-tsc/src/app/faq/faq.component.js
vendored
33
dist/out-tsc/src/app/faq/faq.component.js
vendored
@@ -1,33 +0,0 @@
|
|||||||
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 +0,0 @@
|
|||||||
{"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
21
dist/out-tsc/src/app/faq/faq.component.spec.js
vendored
@@ -1,21 +0,0 @@
|
|||||||
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 +0,0 @@
|
|||||||
{"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
31
dist/out-tsc/src/app/filter.pipe.js
vendored
@@ -1,31 +0,0 @@
|
|||||||
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
1
dist/out-tsc/src/app/filter.pipe.js.map
vendored
@@ -1 +0,0 @@
|
|||||||
{"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
8
dist/out-tsc/src/app/filter.pipe.spec.js
vendored
@@ -1,8 +0,0 @@
|
|||||||
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
1
dist/out-tsc/src/app/filter.pipe.spec.js.map
vendored
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"filter.pipe.spec.js","sourceRoot":"","sources":["../../../../src/app/filter.pipe.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,QAAQ,CAAC,YAAY,EAAE;IACrB,EAAE,CAAC,oBAAoB,EAAE;QACvB,IAAM,IAAI,GAAG,IAAI,UAAU,EAAE,CAAC;QAC9B,MAAM,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IAC5B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
||||||
41
dist/out-tsc/src/app/home/home.component.js
vendored
41
dist/out-tsc/src/app/home/home.component.js
vendored
@@ -1,41 +0,0 @@
|
|||||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
||||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
||||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
||||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
||||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
||||||
};
|
|
||||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
||||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
||||||
};
|
|
||||||
import { Component } from '@angular/core';
|
|
||||||
import { AuthGuard } from '../services/auth.guard';
|
|
||||||
var HomeComponent = /** @class */ (function () {
|
|
||||||
function HomeComponent(_auth) {
|
|
||||||
var _this = this;
|
|
||||||
this._auth = _auth;
|
|
||||||
this.subs = this._auth.getUserInfo().subscribe(function (value) {
|
|
||||||
_this.user = value;
|
|
||||||
console.log("USER", _this.user);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
HomeComponent.prototype.ngOnInit = function () {
|
|
||||||
};
|
|
||||||
HomeComponent.prototype.ngOnDestroy = function () {
|
|
||||||
this.subs.unsubscribe();
|
|
||||||
};
|
|
||||||
HomeComponent.prototype.popupConfirm = function () {
|
|
||||||
console.log("Confirmed");
|
|
||||||
};
|
|
||||||
HomeComponent = __decorate([
|
|
||||||
Component({
|
|
||||||
selector: 'app-home',
|
|
||||||
templateUrl: './home.component.html',
|
|
||||||
styleUrls: ['./home.component.scss'],
|
|
||||||
providers: []
|
|
||||||
}),
|
|
||||||
__metadata("design:paramtypes", [AuthGuard])
|
|
||||||
], HomeComponent);
|
|
||||||
return HomeComponent;
|
|
||||||
}());
|
|
||||||
export { HomeComponent };
|
|
||||||
//# sourceMappingURL=home.component.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"home.component.js","sourceRoot":"","sources":["../../../../../src/app/home/home.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAU,MAAM,eAAe,CAAC;AAElD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AASnD;IAKE,uBAAqB,KAAgB;QAArC,iBAKC;QALoB,UAAK,GAAL,KAAK,CAAW;QACnC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,SAAS,CAAE,UAAA,KAAK;YACnD,KAAI,CAAC,IAAI,GAAG,KAAK,CAAC;YAClB,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,KAAI,CAAC,IAAI,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;IACL,CAAC;IAED,gCAAQ,GAAR;IAEA,CAAC;IAED,mCAAW,GAAX;QACE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;IAC1B,CAAC;IAED,oCAAY,GAAZ;QACE,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAC3B,CAAC;IAtBU,aAAa;QANzB,SAAS,CAAC;YACT,QAAQ,EAAE,UAAU;YACpB,WAAW,EAAE,uBAAuB;YACpC,SAAS,EAAE,CAAC,uBAAuB,CAAC;YACpC,SAAS,EAAE,EAAE;SACd,CAAC;yCAM4B,SAAS;OAL1B,aAAa,CAwBzB;IAAD,oBAAC;CAAA,AAxBD,IAwBC;SAxBY,aAAa"}
|
|
||||||
21
dist/out-tsc/src/app/home/home.component.spec.js
vendored
21
dist/out-tsc/src/app/home/home.component.spec.js
vendored
@@ -1,21 +0,0 @@
|
|||||||
import { async, TestBed } from '@angular/core/testing';
|
|
||||||
import { HomeComponent } from './home.component';
|
|
||||||
describe('ProvisionsComponent', function () {
|
|
||||||
var component;
|
|
||||||
var fixture;
|
|
||||||
beforeEach(async(function () {
|
|
||||||
TestBed.configureTestingModule({
|
|
||||||
declarations: [HomeComponent]
|
|
||||||
})
|
|
||||||
.compileComponents();
|
|
||||||
}));
|
|
||||||
beforeEach(function () {
|
|
||||||
fixture = TestBed.createComponent(HomeComponent);
|
|
||||||
component = fixture.componentInstance;
|
|
||||||
fixture.detectChanges();
|
|
||||||
});
|
|
||||||
it('should create', function () {
|
|
||||||
expect(component).toBeTruthy();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
//# sourceMappingURL=home.component.spec.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"home.component.spec.js","sourceRoot":"","sources":["../../../../../src/app/home/home.component.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAoB,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,QAAQ,CAAC,qBAAqB,EAAE;IAC9B,IAAI,SAAwB,CAAC;IAC7B,IAAI,OAAwC,CAAC;IAE7C,UAAU,CAAC,KAAK,CAAC;QACf,OAAO,CAAC,sBAAsB,CAAC;YAC7B,YAAY,EAAE,CAAE,aAAa,CAAE;SAChC,CAAC;aACD,iBAAiB,EAAE,CAAC;IACvB,CAAC,CAAC,CAAC,CAAC;IAEJ,UAAU,CAAC;QACT,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;QACjD,SAAS,GAAG,OAAO,CAAC,iBAAiB,CAAC;QACtC,OAAO,CAAC,aAAa,EAAE,CAAC;IAC1B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,eAAe,EAAE;QAClB,MAAM,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
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 +0,0 @@
|
|||||||
{"version":3,"file":"http.interceptor.js","sourceRoot":"","sources":["../../../../../src/app/interceptors/http.interceptor.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAKL,iBAAiB,EAClB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAC,GAAG,EAAC,MAAM,gBAAgB,CAAC;AACnC,OAAO,EAAC,MAAM,EAAC,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGnD;IAEE,2BAAoB,MAAc,EAAU,KAAgB;QAAxC,WAAM,GAAN,MAAM,CAAQ;QAAU,UAAK,GAAL,KAAK,CAAW;IAAG,CAAC;IAEhE,qCAAS,GAAT,UAAU,OAAyB,EAAE,IAAiB;QAAtD,iBAcC;QAZC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAE,GAAG,CAAC,cAAO,CAAC,EAC5C,UAAC,GAAQ;YAET,IAAI,GAAG,YAAY,iBAAiB,EAAE;gBACpC,IAAI,GAAG,CAAC,MAAM,KAAK,GAAG,EAAE;oBACvB,OAAO;iBACP;gBACD,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;gBACvC,KAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;gBACvB,KAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;aAChC;QACH,CAAC,CAAC,CAAC,CAAC;IACN,CAAC;IAlBU,iBAAiB;QAD7B,UAAU,EAAE;yCAGiB,MAAM,EAAiB,SAAS;OAFjD,iBAAiB,CAmB7B;IAAD,wBAAC;CAAA,AAnBD,IAmBC;SAnBY,iBAAiB"}
|
|
||||||
113
dist/out-tsc/src/app/logs/logs.component.js
vendored
113
dist/out-tsc/src/app/logs/logs.component.js
vendored
@@ -1,113 +0,0 @@
|
|||||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
||||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
||||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
||||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
||||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
||||||
};
|
|
||||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
||||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
||||||
};
|
|
||||||
import { Component, Input, Output, EventEmitter, ViewChild, HostListener } from '@angular/core';
|
|
||||||
import { ProvisionsService } from '../services/provisions.service';
|
|
||||||
import { timer } from 'rxjs';
|
|
||||||
import { switchMap } from 'rxjs/operators';
|
|
||||||
var LogsComponent = /** @class */ (function () {
|
|
||||||
function LogsComponent(_provisionsService) {
|
|
||||||
this._provisionsService = _provisionsService;
|
|
||||||
this.content = null;
|
|
||||||
this.onClose = new EventEmitter();
|
|
||||||
}
|
|
||||||
LogsComponent.prototype.onClick = function (targetElement) {
|
|
||||||
var clickedInside = this.insideElement.nativeElement.contains(targetElement);
|
|
||||||
if (!clickedInside) {
|
|
||||||
this.onClose.emit(false);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
LogsComponent.prototype.refresh = function () {
|
|
||||||
var _this = this;
|
|
||||||
if (!this.content) {
|
|
||||||
if (this.type === "provision") {
|
|
||||||
this.sub = timer(0, 5000).pipe(switchMap(function () { return _this._provisionsService.getProvisionLogs(_this.selectedprov._id); })).subscribe(function (content) {
|
|
||||||
_this.content = content;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else if (this.type === "destroy") {
|
|
||||||
this.sub = timer(0, 5000).pipe(switchMap(function () { return _this._provisionsService.getDestroyLogs(_this.selectedprov.destroy._id); })).subscribe(function (content) {
|
|
||||||
_this.content = content;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
LogsComponent.prototype.ngOnInit = function () { };
|
|
||||||
LogsComponent.prototype.ngOnChanges = function (changes) {
|
|
||||||
var _this = this;
|
|
||||||
this.content = null;
|
|
||||||
if (this.sub) {
|
|
||||||
this.sub.unsubscribe();
|
|
||||||
this.sub = null;
|
|
||||||
}
|
|
||||||
if (changes.show && changes.show.currentValue) {
|
|
||||||
if (this.type === "provision") {
|
|
||||||
this.sub = timer(0, 5000).pipe(switchMap(function () { return _this._provisionsService.getProvisionLogs(_this.selectedprov._id); })).subscribe(function (content) {
|
|
||||||
_this.content = content;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else if (this.type === "destroy") {
|
|
||||||
this.sub = timer(0, 5000).pipe(switchMap(function () { return _this._provisionsService.getDestroyLogs(_this.selectedprov.destroy._id); })).subscribe(function (content) {
|
|
||||||
_this.content = content;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
LogsComponent.prototype.ngOnDestroy = function () {
|
|
||||||
if (this.sub) {
|
|
||||||
this.sub.unsubscribe();
|
|
||||||
this.sub = null;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
LogsComponent.prototype.close = function () {
|
|
||||||
this.content = null;
|
|
||||||
if (this.sub) {
|
|
||||||
this.sub.unsubscribe();
|
|
||||||
this.sub = null;
|
|
||||||
}
|
|
||||||
this.onClose.emit(false);
|
|
||||||
};
|
|
||||||
__decorate([
|
|
||||||
ViewChild("insideElement"),
|
|
||||||
__metadata("design:type", Object)
|
|
||||||
], LogsComponent.prototype, "insideElement", void 0);
|
|
||||||
__decorate([
|
|
||||||
HostListener('document:click', ['$event.target']),
|
|
||||||
__metadata("design:type", Function),
|
|
||||||
__metadata("design:paramtypes", [Object]),
|
|
||||||
__metadata("design:returntype", void 0)
|
|
||||||
], LogsComponent.prototype, "onClick", null);
|
|
||||||
__decorate([
|
|
||||||
Input(),
|
|
||||||
__metadata("design:type", Object)
|
|
||||||
], LogsComponent.prototype, "show", void 0);
|
|
||||||
__decorate([
|
|
||||||
Input(),
|
|
||||||
__metadata("design:type", Object)
|
|
||||||
], LogsComponent.prototype, "selectedprov", void 0);
|
|
||||||
__decorate([
|
|
||||||
Input(),
|
|
||||||
__metadata("design:type", Object)
|
|
||||||
], LogsComponent.prototype, "type", void 0);
|
|
||||||
__decorate([
|
|
||||||
Output(),
|
|
||||||
__metadata("design:type", Object)
|
|
||||||
], LogsComponent.prototype, "onClose", void 0);
|
|
||||||
LogsComponent = __decorate([
|
|
||||||
Component({
|
|
||||||
selector: 'app-logs',
|
|
||||||
templateUrl: './logs.component.html',
|
|
||||||
styleUrls: ['./logs.component.scss']
|
|
||||||
}),
|
|
||||||
__metadata("design:paramtypes", [ProvisionsService])
|
|
||||||
], LogsComponent);
|
|
||||||
return LogsComponent;
|
|
||||||
}());
|
|
||||||
export { LogsComponent };
|
|
||||||
//# sourceMappingURL=logs.component.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"logs.component.js","sourceRoot":"","sources":["../../../../../src/app/logs/logs.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAU,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAa,MAAM,eAAe,CAAC;AACnH,OAAO,EA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IAAK,IAAI,CAAC,GAAG,EAAG;YACd,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;YACvB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC;SACjB;IACH,CAAC;IAED,6BAAK,GAAL;QACE,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QACpB,IAAK,IAAI,CAAC,GAAG,EAAG;YACd,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;YACvB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC;SACjB;QACD,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC;IArE2B;QAA3B,SAAS,CAAC,eAAe,CAAC;;wDAAe;IAG1C;QAFC,YAAY,CAAC,gBAAgB,EAAE,CAAC,eAAe,CAAC,CAAC;;;;gDAOjD;IAQQ;QAAR,KAAK,EAAE;;+CAAM;IACL;QAAR,KAAK,EAAE;;uDAAc;IACb;QAAR,KAAK,EAAE;;+CAAM;IACJ;QAAT,MAAM,EAAE;;kDAA8B;IArB5B,aAAa;QALzB,SAAS,CAAC;YACT,QAAQ,EAAE,UAAU;YACpB,WAAW,EAAE,uBAAuB;YACpC,SAAS,EAAE,CAAC,uBAAuB,CAAC;SACrC,CAAC;yCAiBwC,iBAAiB;OAhB9C,aAAa,CAyEzB;IAAD,oBAAC;CAAA,AAzED,IAyEC;SAzEY,aAAa"}
|
|
||||||
21
dist/out-tsc/src/app/logs/logs.component.spec.js
vendored
21
dist/out-tsc/src/app/logs/logs.component.spec.js
vendored
@@ -1,21 +0,0 @@
|
|||||||
import { async, TestBed } from '@angular/core/testing';
|
|
||||||
import { LogsComponent } from './logs.component';
|
|
||||||
describe('LogsComponent', function () {
|
|
||||||
var component;
|
|
||||||
var fixture;
|
|
||||||
beforeEach(async(function () {
|
|
||||||
TestBed.configureTestingModule({
|
|
||||||
declarations: [LogsComponent]
|
|
||||||
})
|
|
||||||
.compileComponents();
|
|
||||||
}));
|
|
||||||
beforeEach(function () {
|
|
||||||
fixture = TestBed.createComponent(LogsComponent);
|
|
||||||
component = fixture.componentInstance;
|
|
||||||
fixture.detectChanges();
|
|
||||||
});
|
|
||||||
it('should create', function () {
|
|
||||||
expect(component).toBeTruthy();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
//# sourceMappingURL=logs.component.spec.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"logs.component.spec.js","sourceRoot":"","sources":["../../../../../src/app/logs/logs.component.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAoB,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,QAAQ,CAAC,eAAe,EAAE;IACxB,IAAI,SAAwB,CAAC;IAC7B,IAAI,OAAwC,CAAC;IAE7C,UAAU,CAAC,KAAK,CAAC;QACf,OAAO,CAAC,sBAAsB,CAAC;YAC7B,YAAY,EAAE,CAAE,aAAa,CAAE;SAChC,CAAC;aACD,iBAAiB,EAAE,CAAC;IACvB,CAAC,CAAC,CAAC,CAAC;IAEJ,UAAU,CAAC;QACT,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;QACjD,SAAS,GAAG,OAAO,CAAC,iBAAiB,CAAC;QACtC,OAAO,CAAC,aAAa,EAAE,CAAC;IAC1B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,eAAe,EAAE;QAClB,MAAM,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
||||||
43
dist/out-tsc/src/app/modals/alert.component.js
vendored
43
dist/out-tsc/src/app/modals/alert.component.js
vendored
@@ -1,43 +0,0 @@
|
|||||||
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 +0,0 @@
|
|||||||
{"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
40
dist/out-tsc/src/app/modals/confirm.component.js
vendored
@@ -1,40 +0,0 @@
|
|||||||
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 +0,0 @@
|
|||||||
{"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"}
|
|
||||||
@@ -1,65 +0,0 @@
|
|||||||
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 +0,0 @@
|
|||||||
{"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,aAA2B;QAA1D,aAAQ,GAAR,QAAQ,CAAa;QAAU,kBAAa,GAAb,aAAa,CAAc;QAN9E,WAAM,GAAiB,IAAI,OAAO,EAAE,CAAC;QAIrC,aAAQ,GAAS,EAAE,CAAC;IAE8D,CAAC;IAEnF,uCAAQ,GAAR;QAAA,iBAYC;QAXC,IAAI,CAAC,aAAa,CAAC,QAAQ,EAAE,CAAC,SAAS,CAAC,UAAA,GAAG;YACzC,KAAI,CAAC,KAAK,GAAG,GAAG,CAAC,OAAO,CAAC;YACvB,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAC,KAAI,CAAC,MAAM,CAAC,CAAC;YAClC,IAAI,KAAI,CAAC,MAAM,EAAE;gBACf,KAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,KAAI,CAAC,MA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OATnE,oBAAoB,CAkDhC;IAAD,2BAAC;CAAA,AAlDD,IAkDC;SAlDY,oBAAoB"}
|
|
||||||
@@ -1,105 +0,0 @@
|
|||||||
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 +0,0 @@
|
|||||||
{"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,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAOtE;IAiBE,gCAAoB,QAAqB,EAAU,iBAAmC,EAAU,qBAA2C;QAAvH,aAAQ,GAAR,QAAQ,CAAa;QAAU,sBAAiB,GAAjB,iBAAiB,CAAkB;QAAU,0BAAqB,GAArB,qBAAqB,CAAsB;QAd3I,WAAM,GAAiB,IAAI,OAAO,EAAE,CAAC;QAIrC,aAAQ,GAAS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xC,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"}
|
|
||||||
@@ -1,81 +0,0 @@
|
|||||||
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 +0,0 @@
|
|||||||
{"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,GAAR,QAAQ,CAAa;QAAU,0BAAqB,GAArB,qBAAqB,CAAsB;QAN9F,WAAM,GAAiB,IAAI,OAAO,EAAE,CAAC;QAGrC,aAAQ,GAAS,EAChB,CAAC;IAEgG,CAAC;IAEnG,6CAAQ,GAAR;QACI,IAAI,IAAI,CAAC,YAAY,EAAE;YACrB,IAA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,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,kDAAa,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,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;IA/DU,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,CAiEtC;IAAD,iCAAC;CAAA,AAjED,IAiEC;SAjEY,0BAA0B"}
|
|
||||||
@@ -1,68 +0,0 @@
|
|||||||
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 +0,0 @@
|
|||||||
{"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;IAE3F,uCAAQ,GAAR;QACE,IAAI,IAAI,CAAC,IAAI,EAAE;YACb,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,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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"}
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
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 +0,0 @@
|
|||||||
{"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"}
|
|
||||||
@@ -1,104 +0,0 @@
|
|||||||
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 +0,0 @@
|
|||||||
{"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,CAAC,CAA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AAC;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"}
|
|
||||||
@@ -1,78 +0,0 @@
|
|||||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
||||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
||||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
||||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
||||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
||||||
};
|
|
||||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
||||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
||||||
};
|
|
||||||
import { Component, ElementRef, EventEmitter, ViewChild, Input, Output } from '@angular/core';
|
|
||||||
var PopoverconfirmComponent = /** @class */ (function () {
|
|
||||||
function PopoverconfirmComponent(myElement) {
|
|
||||||
this.onConfirm = new EventEmitter();
|
|
||||||
this.element = myElement;
|
|
||||||
}
|
|
||||||
PopoverconfirmComponent.prototype.open = function () {
|
|
||||||
var viewportOffset = this.element.nativeElement.getBoundingClientRect();
|
|
||||||
var top = viewportOffset.top;
|
|
||||||
var left = viewportOffset.left;
|
|
||||||
this.popovercontent.nativeElement.style.display = 'block';
|
|
||||||
this.popovercontent.nativeElement.style.position = 'absolute';
|
|
||||||
if (this.dock.indexOf('left') !== -1) {
|
|
||||||
this.left = -this.popovercontent.nativeElement.offsetWidth;
|
|
||||||
}
|
|
||||||
else if (this.dock.indexOf('right') !== -1) {
|
|
||||||
this.left = this.element.nativeElement.offsetWidth;
|
|
||||||
}
|
|
||||||
this.top = 0;
|
|
||||||
if (this.dock.indexOf('top') !== -1) {
|
|
||||||
this.top = -this.popovercontent.nativeElement.offsetHeight;
|
|
||||||
}
|
|
||||||
else if (this.dock.indexOf('bottom') !== -1) {
|
|
||||||
this.top = this.element.nativeElement.offsetHeight;
|
|
||||||
}
|
|
||||||
this.popovercontent.nativeElement.style.top = (top + this.top) + 'px';
|
|
||||||
this.popovercontent.nativeElement.style.left = (left + this.left) + 'px';
|
|
||||||
};
|
|
||||||
PopoverconfirmComponent.prototype.ngOnInit = function () {
|
|
||||||
};
|
|
||||||
PopoverconfirmComponent.prototype.ok = function () {
|
|
||||||
this.popovercontent.nativeElement.style.display = 'none';
|
|
||||||
this.onConfirm.emit(true);
|
|
||||||
};
|
|
||||||
PopoverconfirmComponent.prototype.cancel = function () {
|
|
||||||
this.popovercontent.nativeElement.style.display = 'none';
|
|
||||||
};
|
|
||||||
__decorate([
|
|
||||||
ViewChild('popovercontent'),
|
|
||||||
__metadata("design:type", ElementRef)
|
|
||||||
], PopoverconfirmComponent.prototype, "popovercontent", void 0);
|
|
||||||
__decorate([
|
|
||||||
Input(),
|
|
||||||
__metadata("design:type", Object)
|
|
||||||
], PopoverconfirmComponent.prototype, "dock", void 0);
|
|
||||||
__decorate([
|
|
||||||
Input(),
|
|
||||||
__metadata("design:type", Object)
|
|
||||||
], PopoverconfirmComponent.prototype, "buttonConfig", void 0);
|
|
||||||
__decorate([
|
|
||||||
Input(),
|
|
||||||
__metadata("design:type", Object)
|
|
||||||
], PopoverconfirmComponent.prototype, "popupConfig", void 0);
|
|
||||||
__decorate([
|
|
||||||
Output(),
|
|
||||||
__metadata("design:type", Object)
|
|
||||||
], PopoverconfirmComponent.prototype, "onConfirm", void 0);
|
|
||||||
PopoverconfirmComponent = __decorate([
|
|
||||||
Component({
|
|
||||||
selector: 'app-popoverconfirm',
|
|
||||||
templateUrl: './popoverconfirm.component.html',
|
|
||||||
styleUrls: ['./popoverconfirm.component.scss']
|
|
||||||
}),
|
|
||||||
__metadata("design:paramtypes", [ElementRef])
|
|
||||||
], PopoverconfirmComponent);
|
|
||||||
return PopoverconfirmComponent;
|
|
||||||
}());
|
|
||||||
export { PopoverconfirmComponent };
|
|
||||||
//# sourceMappingURL=popoverconfirm.component.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"popoverconfirm.component.js","sourceRoot":"","sources":["../../../../../src/app/popoverconfirm/popoverconfirm.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAU,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,KAAK,EAAgB,MAAM,EAAE,MAAM,eAAe,CAAC;AAOpH;IAOE,iCAAa,SAAqB;QAQxB,cAAS,GAAG,IAAI,YAAY,EAAE,CAAC;QAPvC,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC;IAC3B,CAAC;IAWD,sCAAI,GAAJ;QACE,IAAI,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,qBAAqB,EAAE,CAAC;QACxE,IAAI,GAAG,GAAG,cAAc,CAAC,GAAG,CAAC;QAC7B,IAAI,IAAI,GAAG,cAAc,CAAC,IAAI,CAAC;QAE/B,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC;QAC1D,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,KAAK,CAAC,QAAQ,GAAG,UA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I,CAAC,cAAc,CAAC,aAAa,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC;IAC3D,CAAC;IAnDD;QADC,SAAS,CAAC,gBAAgB,CAAC;kCACH,UAAU;mEAAC;IAM3B;QAAR,KAAK,EAAE;;yDAAM;IACL;QAAR,KAAK,EAAE;;iEAAc;IACb;QAAR,KAAK,EAAE;;gEAAa;IAEX;QAAT,MAAM,EAAE;;8DAAgC;IAf9B,uBAAuB;QALnC,SAAS,CAAC;YACT,QAAQ,EAAE,oBAAoB;YAC9B,WAAW,EAAE,iCAAiC;YAC9C,SAAS,EAAE,CAAC,iCAAiC,CAAC;SAC/C,CAAC;yCAQwB,UAAU;OAPvB,uBAAuB,CAyDnC;IAAD,8BAAC;CAAA,AAzDD,IAyDC;SAzDY,uBAAuB"}
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
import { async, TestBed } from '@angular/core/testing';
|
|
||||||
import { PopoverconfirmComponent } from './popoverconfirm.component';
|
|
||||||
describe('PopoverconfirmComponent', function () {
|
|
||||||
var component;
|
|
||||||
var fixture;
|
|
||||||
beforeEach(async(function () {
|
|
||||||
TestBed.configureTestingModule({
|
|
||||||
declarations: [PopoverconfirmComponent]
|
|
||||||
})
|
|
||||||
.compileComponents();
|
|
||||||
}));
|
|
||||||
beforeEach(function () {
|
|
||||||
fixture = TestBed.createComponent(PopoverconfirmComponent);
|
|
||||||
component = fixture.componentInstance;
|
|
||||||
fixture.detectChanges();
|
|
||||||
});
|
|
||||||
it('should create', function () {
|
|
||||||
expect(component).toBeTruthy();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
//# sourceMappingURL=popoverconfirm.component.spec.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"popoverconfirm.component.spec.js","sourceRoot":"","sources":["../../../../../src/app/popoverconfirm/popoverconfirm.component.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAoB,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAErE,QAAQ,CAAC,yBAAyB,EAAE;IAClC,IAAI,SAAkC,CAAC;IACvC,IAAI,OAAkD,CAAC;IAEvD,UAAU,CAAC,KAAK,CAAC;QACf,OAAO,CAAC,sBAAsB,CAAC;YAC7B,YAAY,EAAE,CAAE,uBAAuB,CAAE;SAC1C,CAAC;aACD,iBAAiB,EAAE,CAAC;IACvB,CAAC,CAAC,CAAC,CAAC;IAEJ,UAAU,CAAC;QACT,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,uBAAuB,CAAC,CAAC;QAC3D,SAAS,GAAG,OAAO,CAAC,iBAAiB,CAAC;QACtC,OAAO,CAAC,aAAa,EAAE,CAAC;IAC1B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,eAAe,EAAE;QAClB,MAAM,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
||||||
@@ -1,228 +0,0 @@
|
|||||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
||||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
||||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
||||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
||||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
||||||
};
|
|
||||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
||||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
||||||
};
|
|
||||||
import { Component } from '@angular/core';
|
|
||||||
import { ProvisionsService } from '../services/provisions.service';
|
|
||||||
import { timer } from 'rxjs';
|
|
||||||
import { switchMap } from 'rxjs/operators';
|
|
||||||
import { AuthGuard } from '../services/auth.guard';
|
|
||||||
import { ScenariosService } from '../services/scenarios.service';
|
|
||||||
import { AlertService } from '../services/alert.service';
|
|
||||||
import { MDBModalService } from 'angular-bootstrap-md';
|
|
||||||
import { ModalInfoComponent } from '../modals/modalinfo.component';
|
|
||||||
import { ModalConfirmComponent } from '../modals/confirm.component';
|
|
||||||
var ProvisionsComponent = /** @class */ (function () {
|
|
||||||
function ProvisionsComponent(modalService, _alertService, _provisionsService, _scenariosService, _auth) {
|
|
||||||
var _this = this;
|
|
||||||
this.modalService = modalService;
|
|
||||||
this._alertService = _alertService;
|
|
||||||
this._provisionsService = _provisionsService;
|
|
||||||
this._scenariosService = _scenariosService;
|
|
||||||
this._auth = _auth;
|
|
||||||
this.logShow = false;
|
|
||||||
this.logstype = 'provision';
|
|
||||||
this.selectedprov = null;
|
|
||||||
this._auth.getUserInfo().subscribe(function (value) {
|
|
||||||
_this._userId = value ? value._id : null;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
ProvisionsComponent.prototype._refresh = function () {
|
|
||||||
var _this = this;
|
|
||||||
this.instantSubs = this._provisionsService.getProvisionsByUser(this._userId).subscribe(function (provisions) {
|
|
||||||
provisions = provisions.results;
|
|
||||||
provisions.forEach(function (p) {
|
|
||||||
p._scenario = _this.scenarios.filter(function (s) { return s.name === p.scenario; });
|
|
||||||
_this._provisionsService.timeRunning(p);
|
|
||||||
});
|
|
||||||
_this.provisions = provisions.filter(function (p) { return !p.destroy || !p.destroy.status || p.destroy.status !== 'destroyed'; });
|
|
||||||
_this.destroys = provisions.filter(function (p) { return p.destroy && p.destroy.status === 'destroyed'; });
|
|
||||||
_this.instantSubs.unsubscribe();
|
|
||||||
});
|
|
||||||
};
|
|
||||||
ProvisionsComponent.prototype.ngOnInit = function () {
|
|
||||||
var _this = this;
|
|
||||||
this.scenariosSub = this._scenariosService.getScenariosAll().subscribe(function (res) {
|
|
||||||
_this.scenarios = res.results;
|
|
||||||
_this.scenariosSub.unsubscribe();
|
|
||||||
_this.subscription = timer(0, 8000).pipe(switchMap(function () { return _this._provisionsService.getProvisionsByUser(_this._userId); })).subscribe(function (provisions) {
|
|
||||||
provisions = provisions.results;
|
|
||||||
provisions.forEach(function (p) {
|
|
||||||
p._scenario = _this.scenarios.filter(function (s) { return s.name === p.scenario; });
|
|
||||||
_this._provisionsService.timeRunning(p);
|
|
||||||
});
|
|
||||||
_this.provisions = provisions.filter(function (p) { return !p.destroy || !p.destroy.status || p.destroy.status !== 'destroyed'; });
|
|
||||||
_this.destroys = provisions.filter(function (p) { return p.destroy && p.destroy.status === 'destroyed'; });
|
|
||||||
});
|
|
||||||
});
|
|
||||||
};
|
|
||||||
ProvisionsComponent.prototype.ngOnDestroy = function () {
|
|
||||||
this.subscription.unsubscribe();
|
|
||||||
if (this.instantSubs) {
|
|
||||||
this.instantSubs.unsubscribe();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
ProvisionsComponent.prototype.setModal = function (provision, frame) {
|
|
||||||
frame.show();
|
|
||||||
this._provisionsService.setSelectedProv(provision);
|
|
||||||
};
|
|
||||||
ProvisionsComponent.prototype.del = function (provision) {
|
|
||||||
var _this = this;
|
|
||||||
this._provisionsService.delProvision(provision._id.toString(), this._userId).subscribe(function (res) {
|
|
||||||
_this._refresh();
|
|
||||||
_this._alertService.showAlert({
|
|
||||||
type: 'alert-primary',
|
|
||||||
text: "Provision entry '" + provision.scenario + "' was deleted from your history"
|
|
||||||
});
|
|
||||||
});
|
|
||||||
};
|
|
||||||
ProvisionsComponent.prototype.openConfirmDestroyModal = function (provision) {
|
|
||||||
var _this = this;
|
|
||||||
var modalRef = this.modalService.show(ModalConfirmComponent, {
|
|
||||||
class: 'modal-sm modal-notify modal-danger',
|
|
||||||
containerClass: '',
|
|
||||||
data: {
|
|
||||||
info: {
|
|
||||||
title: 'Confirm destroy this provision?',
|
|
||||||
icon: 'times-circle'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
var sub = modalRef.content.action.subscribe(function (result) {
|
|
||||||
sub.unsubscribe();
|
|
||||||
_this._provisionsService.newDestroy(provision._id.toString(), _this._userId).subscribe(function (res) {
|
|
||||||
_this._refresh();
|
|
||||||
_this._alertService.showAlert({
|
|
||||||
type: 'alert-primary',
|
|
||||||
text: "Provision of scenario '" + provision.scenario + "' is going to be destroyed"
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
};
|
|
||||||
ProvisionsComponent.prototype.openConfirmStopModal = function (provision) {
|
|
||||||
var _this = this;
|
|
||||||
var modalRef = this.modalService.show(ModalConfirmComponent, {
|
|
||||||
class: 'modal-sm modal-notify modal-info',
|
|
||||||
containerClass: '',
|
|
||||||
data: {
|
|
||||||
info: {
|
|
||||||
title: 'Confirm Stop VMs?',
|
|
||||||
icon: 'stop',
|
|
||||||
buttonColor: 'grey'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
var sub = modalRef.content.action.subscribe(function (result) {
|
|
||||||
sub.unsubscribe();
|
|
||||||
_this._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) {
|
|
||||||
$event.preventDefault();
|
|
||||||
$event.stopPropagation();
|
|
||||||
this.logstype = type;
|
|
||||||
this.logShow = false;
|
|
||||||
this.selectedprov = provision;
|
|
||||||
this.logShow = true;
|
|
||||||
};
|
|
||||||
ProvisionsComponent.prototype.openModal = function (provision) {
|
|
||||||
this.modalService.show(ModalInfoComponent, {
|
|
||||||
class: 'modal-lg',
|
|
||||||
containerClass: '',
|
|
||||||
data: {
|
|
||||||
info: provision
|
|
||||||
}
|
|
||||||
});
|
|
||||||
};
|
|
||||||
ProvisionsComponent.prototype.onLogsClose = function () {
|
|
||||||
this.selectedprov = null;
|
|
||||||
this.logShow = false;
|
|
||||||
};
|
|
||||||
ProvisionsComponent.prototype.onStartProvision = function (scenario) {
|
|
||||||
this._alertService.showAlert({
|
|
||||||
type: 'alert-primary',
|
|
||||||
text: "Scenario '" + scenario.name + "' is going to be provisioned. Scroll up to your Provisions to watch out progress."
|
|
||||||
});
|
|
||||||
this._refresh();
|
|
||||||
};
|
|
||||||
ProvisionsComponent = __decorate([
|
|
||||||
Component({
|
|
||||||
selector: 'app-provisions',
|
|
||||||
templateUrl: './provisions.component.html',
|
|
||||||
styleUrls: ['./provisions.component.scss'],
|
|
||||||
providers: [ProvisionsService]
|
|
||||||
}),
|
|
||||||
__metadata("design:paramtypes", [MDBModalService, AlertService, ProvisionsService, ScenariosService, AuthGuard])
|
|
||||||
], ProvisionsComponent);
|
|
||||||
return ProvisionsComponent;
|
|
||||||
}());
|
|
||||||
export { ProvisionsComponent };
|
|
||||||
//# sourceMappingURL=provisions.component.js.map
|
|
||||||
File diff suppressed because one or more lines are too long
@@ -1,21 +0,0 @@
|
|||||||
import { async, TestBed } from '@angular/core/testing';
|
|
||||||
import { ProvisionsComponent } from './provisions.component';
|
|
||||||
describe('ProvisionsComponent', function () {
|
|
||||||
var component;
|
|
||||||
var fixture;
|
|
||||||
beforeEach(async(function () {
|
|
||||||
TestBed.configureTestingModule({
|
|
||||||
declarations: [ProvisionsComponent]
|
|
||||||
})
|
|
||||||
.compileComponents();
|
|
||||||
}));
|
|
||||||
beforeEach(function () {
|
|
||||||
fixture = TestBed.createComponent(ProvisionsComponent);
|
|
||||||
component = fixture.componentInstance;
|
|
||||||
fixture.detectChanges();
|
|
||||||
});
|
|
||||||
it('should create', function () {
|
|
||||||
expect(component).toBeTruthy();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
//# sourceMappingURL=provisions.component.spec.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"provisions.component.spec.js","sourceRoot":"","sources":["../../../../../src/app/provisions/provisions.component.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAoB,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D,QAAQ,CAAC,qBAAqB,EAAE;IAC9B,IAAI,SAA8B,CAAC;IACnC,IAAI,OAA8C,CAAC;IAEnD,UAAU,CAAC,KAAK,CAAC;QACf,OAAO,CAAC,sBAAsB,CAAC;YAC7B,YAAY,EAAE,CAAE,mBAAmB,CAAE;SACtC,CAAC;aACD,iBAAiB,EAAE,CAAC;IACvB,CAAC,CAAC,CAAC,CAAC;IAEJ,UAAU,CAAC;QACT,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,mBAAmB,CAAC,CAAC;QACvD,SAAS,GAAG,OAAO,CAAC,iBAAiB,CAAC;QACtC,OAAO,CAAC,aAAa,EAAE,CAAC;IAC1B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,eAAe,EAAE;QAClB,MAAM,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
||||||
@@ -1,77 +0,0 @@
|
|||||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
||||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
||||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
||||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
||||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
||||||
};
|
|
||||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
||||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
||||||
};
|
|
||||||
import { Component, Output, EventEmitter } from '@angular/core';
|
|
||||||
import { ProvisionsService } from '../services/provisions.service';
|
|
||||||
import { ScenariosService } from '../services/scenarios.service';
|
|
||||||
import { AuthGuard } from '../services/auth.guard';
|
|
||||||
import { NewProvisionConfirmComponent } from '../modals/new-provision.component';
|
|
||||||
import { MDBModalService } from 'angular-bootstrap-md';
|
|
||||||
var ScenariosComponent = /** @class */ (function () {
|
|
||||||
function ScenariosComponent(modalService, _provisionsService, _scenariosService, _auth) {
|
|
||||||
var _this = this;
|
|
||||||
this.modalService = modalService;
|
|
||||||
this._provisionsService = _provisionsService;
|
|
||||||
this._scenariosService = _scenariosService;
|
|
||||||
this._auth = _auth;
|
|
||||||
this.onStartProvision = new EventEmitter();
|
|
||||||
this._auth.getUserInfo().subscribe(function (value) {
|
|
||||||
_this.user = value;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
ScenariosComponent.prototype.ngOnInit = function () {
|
|
||||||
var _this = this;
|
|
||||||
this.scenariosSub = this._scenariosService.getScenarios().subscribe(function (res) {
|
|
||||||
_this.scenarios = res.results;
|
|
||||||
_this.scenariosSub.unsubscribe();
|
|
||||||
console.log("scenarios", _this.scenarios);
|
|
||||||
});
|
|
||||||
};
|
|
||||||
ScenariosComponent.prototype.ngOnDestroy = function () { };
|
|
||||||
ScenariosComponent.prototype.openNewProvisionConfirmModal = function (scenario) {
|
|
||||||
var _this = this;
|
|
||||||
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(scenario);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
};
|
|
||||||
__decorate([
|
|
||||||
Output(),
|
|
||||||
__metadata("design:type", Object)
|
|
||||||
], ScenariosComponent.prototype, "onStartProvision", void 0);
|
|
||||||
ScenariosComponent = __decorate([
|
|
||||||
Component({
|
|
||||||
selector: 'app-scenarios',
|
|
||||||
templateUrl: './scenarios.component.html',
|
|
||||||
styleUrls: ['./scenarios.component.scss']
|
|
||||||
}),
|
|
||||||
__metadata("design:paramtypes", [MDBModalService, ProvisionsService, ScenariosService, AuthGuard])
|
|
||||||
], ScenariosComponent);
|
|
||||||
return ScenariosComponent;
|
|
||||||
}());
|
|
||||||
export { ScenariosComponent };
|
|
||||||
//# sourceMappingURL=scenarios.component.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"scenarios.component.js","sourceRoot":"","sources":["../../../../../src/app/scenarios/scenarios.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAU,YAAY,EAAa,MAAM,eAAe,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,E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C,MAAM,CAAC,SAAS,CAAE,UAAC,IAAS;YACrD,GAAG,CAAC,WAAW,EAAE,CAAC;YAElB,IAAM,QAAQ,GAAG;gBACf,QAAQ,EAAE,QAAQ,CAAC,IAAI;gBACvB,WAAW,EAAE,IAAI,CAAC,WAAW;gBAC7B,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;aACxC,CAAC;YAEF,IAAK,IAAI,CAAC,OAAO,EAAG;gBAChB,QAAQ,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC;aACtC;YAED,KAAI,CAAC,kBAAkB,CAAC,YAAY,CAAC,QAAQ,EAAE,KAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,SAAS,CAAE,UAAA,GAAG;gBAC1E,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,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"}
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
import { async, TestBed } from '@angular/core/testing';
|
|
||||||
import { ScenariosComponent } from './scenarios.component';
|
|
||||||
describe('ScenariosComponent', function () {
|
|
||||||
var component;
|
|
||||||
var fixture;
|
|
||||||
beforeEach(async(function () {
|
|
||||||
TestBed.configureTestingModule({
|
|
||||||
declarations: [ScenariosComponent]
|
|
||||||
})
|
|
||||||
.compileComponents();
|
|
||||||
}));
|
|
||||||
beforeEach(function () {
|
|
||||||
fixture = TestBed.createComponent(ScenariosComponent);
|
|
||||||
component = fixture.componentInstance;
|
|
||||||
fixture.detectChanges();
|
|
||||||
});
|
|
||||||
it('should create', function () {
|
|
||||||
expect(component).toBeTruthy();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
//# sourceMappingURL=scenarios.component.spec.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"scenarios.component.spec.js","sourceRoot":"","sources":["../../../../../src/app/scenarios/scenarios.component.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAoB,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,QAAQ,CAAC,oBAAoB,EAAE;IAC7B,IAAI,SAA6B,CAAC;IAClC,IAAI,OAA6C,CAAC;IAElD,UAAU,CAAC,KAAK,CAAC;QACf,OAAO,CAAC,sBAAsB,CAAC;YAC7B,YAAY,EAAE,CAAE,kBAAkB,CAAE;SACrC,CAAC;aACD,iBAAiB,EAAE,CAAC;IACvB,CAAC,CAAC,CAAC,CAAC;IAEJ,UAAU,CAAC;QACT,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,kBAAkB,CAAC,CAAC;QACtD,SAAS,GAAG,OAAO,CAAC,iBAAiB,CAAC;QACtC,OAAO,CAAC,aAAa,EAAE,CAAC;IAC1B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,eAAe,EAAE;QAClB,MAAM,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
||||||
36
dist/out-tsc/src/app/services/alert.service.js
vendored
36
dist/out-tsc/src/app/services/alert.service.js
vendored
@@ -1,36 +0,0 @@
|
|||||||
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 +0,0 @@
|
|||||||
{"version":3,"file":"alert.service.js","sourceRoot":"","sources":["../../../../../src/app/services/alert.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAKzD;IAIE;QAFA,iBAAY,GAAG,IAAI,YAAY,EAAE,CAAC;IAElB,CAAC;IAGjB,gCAAS,GAAT,UAAU,KAAK;QACb,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC9B,IAAK,IAAI,CAAC,EAAE,EAAG;YACb,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;SACvB;QACD,IAAI,CAAC,EAAE,GAAG,UAAU,CAAE;YAClB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;IACvB,CAAC;IAED,sCAAe,GAAf;QACE,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAnBU,YAAY;QAHxB,UAAU,CAAC;YACV,UAAU,EAAE,MAAM;SACnB,CAAC;;OACW,YAAY,CAqBxB;IAAD,mBAAC;CAAA,AArBD,IAqBC;SArBY,YAAY"}
|
|
||||||
54
dist/out-tsc/src/app/services/auth.guard.js
vendored
54
dist/out-tsc/src/app/services/auth.guard.js
vendored
@@ -1,54 +0,0 @@
|
|||||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
||||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
||||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
||||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
||||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
||||||
};
|
|
||||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
||||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
||||||
};
|
|
||||||
import { Injectable } from '@angular/core';
|
|
||||||
import { Router } from '@angular/router';
|
|
||||||
import { of, BehaviorSubject } from 'rxjs';
|
|
||||||
import { map, catchError } from 'rxjs/operators';
|
|
||||||
import { HttpClient } from '@angular/common/http';
|
|
||||||
import { UsersService } from './users.service';
|
|
||||||
var AuthGuard = /** @class */ (function () {
|
|
||||||
// Inject Router so we can hand off the user to the Login Page
|
|
||||||
function AuthGuard(_userService, httpClient, router) {
|
|
||||||
this._userService = _userService;
|
|
||||||
this.httpClient = httpClient;
|
|
||||||
this.router = router;
|
|
||||||
this.userInfo = new BehaviorSubject(null);
|
|
||||||
var user = localStorage.getItem("user");
|
|
||||||
this.userInfo.next(JSON.parse(user));
|
|
||||||
}
|
|
||||||
AuthGuard.prototype.canActivate = function (route) {
|
|
||||||
var _this = this;
|
|
||||||
console.log("CanActivate?");
|
|
||||||
return this._userService.getMe().pipe(map(function (res) {
|
|
||||||
localStorage.setItem("user", JSON.stringify(res));
|
|
||||||
_this.userInfo.next(res);
|
|
||||||
return true;
|
|
||||||
}), catchError(function (err) {
|
|
||||||
_this.clearUser();
|
|
||||||
return of(false);
|
|
||||||
}));
|
|
||||||
};
|
|
||||||
AuthGuard.prototype.clearUser = function () {
|
|
||||||
localStorage.setItem("user", null);
|
|
||||||
this.userInfo.next(null);
|
|
||||||
};
|
|
||||||
AuthGuard.prototype.getUserInfo = function () {
|
|
||||||
return this.userInfo;
|
|
||||||
};
|
|
||||||
AuthGuard = __decorate([
|
|
||||||
Injectable({
|
|
||||||
providedIn: 'root'
|
|
||||||
}),
|
|
||||||
__metadata("design:paramtypes", [UsersService, HttpClient, Router])
|
|
||||||
], AuthGuard);
|
|
||||||
return AuthGuard;
|
|
||||||
}());
|
|
||||||
export { AuthGuard };
|
|
||||||
//# sourceMappingURL=auth.guard.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"auth.guard.js","sourceRoot":"","sources":["../../../../../src/app/services/auth.guard.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAA4D,MA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AAI,CAAC,CAAC;QACnC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;IAED,+BAAW,GAAX;QACE,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAlCU,SAAS;QAHrB,UAAU,CAAC;YACV,UAAU,EAAE,MAAM;SACnB,CAAC;yCAMkC,YAAY,EAAsB,UAAU,EAAkB,MAAM;OAL3F,SAAS,CAmCrB;IAAD,gBAAC;CAAA,AAnCD,IAmCC;SAnCY,SAAS"}
|
|
||||||
13
dist/out-tsc/src/app/services/auth.guard.spec.js
vendored
13
dist/out-tsc/src/app/services/auth.guard.spec.js
vendored
@@ -1,13 +0,0 @@
|
|||||||
import { TestBed, inject } from '@angular/core/testing';
|
|
||||||
import { AuthGuard } from './auth.guard';
|
|
||||||
describe('AuthGuard', function () {
|
|
||||||
beforeEach(function () {
|
|
||||||
TestBed.configureTestingModule({
|
|
||||||
providers: [AuthGuard]
|
|
||||||
});
|
|
||||||
});
|
|
||||||
it('should ...', inject([AuthGuard], function (guard) {
|
|
||||||
expect(guard).toBeTruthy();
|
|
||||||
}));
|
|
||||||
});
|
|
||||||
//# sourceMappingURL=auth.guard.spec.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"auth.guard.spec.js","sourceRoot":"","sources":["../../../../../src/app/services/auth.guard.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAS,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,QAAQ,CAAC,WAAW,EAAE;IACpB,UAAU,CAAC;QACT,OAAO,CAAC,sBAAsB,CAAC;YAC7B,SAAS,EAAE,CAAC,SAAS,CAAC;SACvB,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,SAAS,CAAC,EAAE,UAAC,KAAgB;QACpD,MAAM,CAAC,KAAK,CAAC,CAAC,UAAU,EAAE,CAAC;IAC7B,CAAC,CAAC,CAAC,CAAC;AACN,CAAC,CAAC,CAAC"}
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
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 +0,0 @@
|
|||||||
{"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"}
|
|
||||||
126
dist/out-tsc/src/app/services/provisions.service.js
vendored
126
dist/out-tsc/src/app/services/provisions.service.js
vendored
@@ -1,126 +0,0 @@
|
|||||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
||||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
||||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
||||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
||||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
||||||
};
|
|
||||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
||||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
||||||
};
|
|
||||||
import { Injectable } from '@angular/core';
|
|
||||||
import { HttpClient, HttpParams } from '@angular/common/http';
|
|
||||||
import { environment } from '../../environments/environment.prod';
|
|
||||||
import * as moment from 'moment';
|
|
||||||
var ProvisionsService = /** @class */ (function () {
|
|
||||||
function ProvisionsService(httpClient) {
|
|
||||||
this.httpClient = httpClient;
|
|
||||||
this.RUNNING_PERIOD = 4;
|
|
||||||
this.STOP_PERIOD = 20;
|
|
||||||
}
|
|
||||||
ProvisionsService.prototype.getProvisionsAdmin = function (filter) {
|
|
||||||
// Initialize Params Object
|
|
||||||
var params = new HttpParams();
|
|
||||||
if (filter) {
|
|
||||||
params = params.append("filter", JSON.stringify(filter));
|
|
||||||
}
|
|
||||||
return this.httpClient.get(environment.apiVersionPath + "/provisions", { params: params });
|
|
||||||
};
|
|
||||||
ProvisionsService.prototype.getProvisionsByUser = function (userId) {
|
|
||||||
return this.httpClient.get(environment.apiVersionPath + "/users/" + userId + "/provisions");
|
|
||||||
};
|
|
||||||
ProvisionsService.prototype.getDestroyProvisionsAdmin = function () {
|
|
||||||
return this.httpClient.get(environment.apiVersionPath + "/destroyprovisions");
|
|
||||||
};
|
|
||||||
ProvisionsService.prototype.newProvision = function (body, userId) {
|
|
||||||
return this.httpClient.post(environment.apiVersionPath + "/users/" + userId + "/provisions", body);
|
|
||||||
};
|
|
||||||
ProvisionsService.prototype.delProvision = function (id, userId) {
|
|
||||||
return this.httpClient.delete(environment.apiVersionPath + "/users/" + userId + "/provisions/" + id);
|
|
||||||
};
|
|
||||||
ProvisionsService.prototype.newDestroy = function (id, userId) {
|
|
||||||
return this.httpClient.post(environment.apiVersionPath + "/users/" + userId + "/provisions/" + id + "/destroy", null);
|
|
||||||
};
|
|
||||||
ProvisionsService.prototype.getDestroyProvisions = function (userId) {
|
|
||||||
return this.httpClient.get(environment.apiVersionPath + "/users/" + userId + "/destroyprovisions");
|
|
||||||
};
|
|
||||||
/*
|
|
||||||
getCombinedProvisions(userId): Observable<any> {
|
|
||||||
return forkJoin(this.getProvisionsByUser(userId), this.getDestroyProvisions(userId))
|
|
||||||
}
|
|
||||||
|
|
||||||
getCombinedProvisionsAdmin(): Observable<any> {
|
|
||||||
return forkJoin(this.getProvisionsAdmin(), this.getDestroyProvisionsAdmin())
|
|
||||||
}*/
|
|
||||||
ProvisionsService.prototype.getProvisionLogs = function (id) {
|
|
||||||
return this.httpClient.get(environment.apiVersionPath + "/provisions/" + id + "/logs", { responseType: 'text' });
|
|
||||||
};
|
|
||||||
ProvisionsService.prototype.getDestroyLogs = function (id) {
|
|
||||||
return this.httpClient.get(environment.apiVersionPath + "/destroyprovisions/" + id + "/logs", { responseType: 'text' });
|
|
||||||
};
|
|
||||||
ProvisionsService.prototype.stopVms = function (id, userId) {
|
|
||||||
return this.httpClient.post(environment.apiVersionPath + "/users/" + userId + "/provisions/" + id + "/deallocatevms", null);
|
|
||||||
};
|
|
||||||
ProvisionsService.prototype.startVms = function (id, userId) {
|
|
||||||
return this.httpClient.post(environment.apiVersionPath + "/users/" + userId + "/provisions/" + id + "/startvms", null);
|
|
||||||
};
|
|
||||||
ProvisionsService.prototype.extend = function (id, userId) {
|
|
||||||
return this.httpClient.post(environment.apiVersionPath + "/users/" + userId + "/provisions/" + id + "/extend", null);
|
|
||||||
};
|
|
||||||
ProvisionsService.prototype.setSelectedProv = function (provision) {
|
|
||||||
if (provision) {
|
|
||||||
this.selectedProv = provision;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
this.selectedProv = null;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
ProvisionsService.prototype.getSelectedProv = function () {
|
|
||||||
return this.selectedProv;
|
|
||||||
};
|
|
||||||
ProvisionsService.prototype.timeRunning = function (p) {
|
|
||||||
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();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
ProvisionsService = __decorate([
|
|
||||||
Injectable({
|
|
||||||
providedIn: 'root'
|
|
||||||
}),
|
|
||||||
__metadata("design:paramtypes", [HttpClient])
|
|
||||||
], ProvisionsService);
|
|
||||||
return ProvisionsService;
|
|
||||||
}());
|
|
||||||
export { ProvisionsService };
|
|
||||||
//# sourceMappingURL=provisions.service.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"provisions.service.js","sourceRoot":"","sources":["../../../../../src/app/services/provisions.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAE9D,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAElE,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAMjC;IAME,2BAAqB,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;QAH3C,mBAAc,GAAY,CAAC,CAAC;QAC5B,gBAAW,GAAY,EAAE,CAAC;IAEsB,CAAC;IAE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G,gBAAgB,CAAC,KAAK,EAAE,CAAC;YAC3C,CAAC,CAAC,eAAe,GAAG,gBAAgB,CAAC,OAAO,EAAE,CAAC;SAChD;IAEH,CAAC;IA/HU,iBAAiB;QAH7B,UAAU,CAAC;YACV,UAAU,EAAE,MAAM;SACnB,CAAC;yCAOiC,UAAU;OANhC,iBAAiB,CAiI7B;IAAD,wBAAC;CAAA,AAjID,IAiIC;SAjIY,iBAAiB"}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
import { TestBed } from '@angular/core/testing';
|
|
||||||
import { ProvisionsService } from './provisions.service';
|
|
||||||
describe('ProvisionsService', function () {
|
|
||||||
beforeEach(function () { return TestBed.configureTestingModule({}); });
|
|
||||||
it('should be created', function () {
|
|
||||||
var service = TestBed.get(ProvisionsService);
|
|
||||||
expect(service).toBeTruthy();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
//# sourceMappingURL=provisions.service.spec.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"provisions.service.spec.js","sourceRoot":"","sources":["../../../../../src/app/services/provisions.service.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,QAAQ,CAAC,mBAAmB,EAAE;IAC5B,UAAU,CAAC,cAAM,OAAA,OAAO,CAAC,sBAAsB,CAAC,EAAE,CAAC,EAAlC,CAAkC,CAAC,CAAC;IAErD,EAAE,CAAC,mBAAmB,EAAE;QACtB,IAAM,OAAO,GAAsB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QAClE,MAAM,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,CAAC;IAC/B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
||||||
@@ -1,53 +0,0 @@
|
|||||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
||||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
||||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
||||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
||||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
||||||
};
|
|
||||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
||||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
||||||
};
|
|
||||||
import { Injectable } from '@angular/core';
|
|
||||||
import { HttpClient } from '@angular/common/http';
|
|
||||||
import { environment } from '../../environments/environment.prod';
|
|
||||||
var ScenariosService = /** @class */ (function () {
|
|
||||||
function ScenariosService(httpClient) {
|
|
||||||
this.httpClient = httpClient;
|
|
||||||
}
|
|
||||||
ScenariosService.prototype.getScenarios = function () {
|
|
||||||
return this.httpClient.get(environment.apiVersionPath + "/scenarios");
|
|
||||||
};
|
|
||||||
ScenariosService.prototype.getScenariosAll = function () {
|
|
||||||
return this.httpClient.get(environment.apiVersionPath + "/scenarios/all");
|
|
||||||
};
|
|
||||||
ScenariosService.prototype.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({
|
|
||||||
providedIn: 'root'
|
|
||||||
}),
|
|
||||||
__metadata("design:paramtypes", [HttpClient])
|
|
||||||
], ScenariosService);
|
|
||||||
return ScenariosService;
|
|
||||||
}());
|
|
||||||
export { ScenariosService };
|
|
||||||
//# sourceMappingURL=scenarios.service.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"scenarios.service.js","sourceRoot":"","sources":["../../../../../src/app/services/scenarios.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAKlE;IAEE,0BAAqB,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAK,CAAC;IAEjD,uCAAY,GAAZ;QACE,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAI,WAAW,CAAC,cAAc,eAAY,CAAC,CAAC;IACxE,CAAC;IAED,0CAAe,GAAf;QACE,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAI,WAAW,CAAC,cAAc,mBAAgB,CAAC,CAAC;IAC5E,CAAC;IAED,yCAAc,GAAd,UAAe,EAAE,EAAE,SAAS;QAC1B,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAI,WAAW,CAAC,cAAc,mBAAc,EAAI,EAAE,SAAS,CAAC,CAAC;IACzF,CAAC;IAED,sCAAW,GAAX,UAAY,IAAI;QACd,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAI,WAAW,CAAC,cAAc,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"}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
import { TestBed } from '@angular/core/testing';
|
|
||||||
import { ScenariosService } from './scenarios.service';
|
|
||||||
describe('ScenariosService', function () {
|
|
||||||
beforeEach(function () { return TestBed.configureTestingModule({}); });
|
|
||||||
it('should be created', function () {
|
|
||||||
var service = TestBed.get(ScenariosService);
|
|
||||||
expect(service).toBeTruthy();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
//# sourceMappingURL=scenarios.service.spec.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"scenarios.service.spec.js","sourceRoot":"","sources":["../../../../../src/app/services/scenarios.service.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,QAAQ,CAAC,kBAAkB,EAAE;IAC3B,UAAU,CAAC,cAAM,OAAA,OAAO,CAAC,sBAAsB,CAAC,EAAE,CAAC,EAAlC,CAAkC,CAAC,CAAC;IAErD,EAAE,CAAC,mBAAmB,EAAE;QACtB,IAAM,OAAO,GAAqB,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;QAChE,MAAM,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,CAAC;IAC/B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
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 +0,0 @@
|
|||||||
{"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"}
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user