Compare commits
2511 Commits
xo-web/3.0
...
xo-web/v5.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
67b8b15cd8 | ||
|
|
09d80afa69 | ||
|
|
c0d95304f6 | ||
|
|
5a0d67a9f6 | ||
|
|
08305b4b93 | ||
|
|
04d5612946 | ||
|
|
3dcb6f1f61 | ||
|
|
4e7684e38b | ||
|
|
a692b7571f | ||
|
|
a098618efa | ||
|
|
71381e75f1 | ||
|
|
05b345db4a | ||
|
|
f85f6eab9e | ||
|
|
b6dc8b507d | ||
|
|
831308ee05 | ||
|
|
eb5bcb759f | ||
|
|
8286570811 | ||
|
|
10b511f0ed | ||
|
|
751e335bc0 | ||
|
|
cb107521f2 | ||
|
|
e56af57b74 | ||
|
|
a2a1cbab6e | ||
|
|
306a021a8d | ||
|
|
d8c414af2f | ||
|
|
ec4c76b2e0 | ||
|
|
e23b8a6891 | ||
|
|
34006bcbf6 | ||
|
|
ed9aeabf6a | ||
|
|
799fc5089f | ||
|
|
683d510aa6 | ||
|
|
ebd7e58f61 | ||
|
|
9a498b54ac | ||
|
|
2687f45e6e | ||
|
|
f79a17fcec | ||
|
|
8fd377d1e2 | ||
|
|
fda06fbd29 | ||
|
|
cee4378e6d | ||
|
|
ab6d342886 | ||
|
|
9954c08993 | ||
|
|
3ae80aeab3 | ||
|
|
2a3534f659 | ||
|
|
fc39de0d5a | ||
|
|
64e4b79d41 | ||
|
|
53887da3da | ||
|
|
7c60d68f56 | ||
|
|
2ac1b991b1 | ||
|
|
8257714cdb | ||
|
|
1b8bacbf5a | ||
|
|
1d5b84389d | ||
|
|
f7dcf52977 | ||
|
|
e26dd5147a | ||
|
|
bb8f96c2e2 | ||
|
|
95d4cc9055 | ||
|
|
cb84a85f8b | ||
|
|
0a8aa2ecf5 | ||
|
|
5941321e84 | ||
|
|
8cf62280f4 | ||
|
|
4cea142b57 | ||
|
|
64d9245bc4 | ||
|
|
2d78c0c4c3 | ||
|
|
aa585e2d25 | ||
|
|
325ab17dcc | ||
|
|
443ea44bcd | ||
|
|
07958d8efa | ||
|
|
f19affe599 | ||
|
|
f7b7c27b6c | ||
|
|
c7af5b384c | ||
|
|
436a9dfc14 | ||
|
|
1d6d8ccb28 | ||
|
|
7d0862ecfd | ||
|
|
7de059919b | ||
|
|
dfd1fb86cb | ||
|
|
847a92433f | ||
|
|
53af4df47b | ||
|
|
09db7c999e | ||
|
|
1b4c958aba | ||
|
|
9368d5df01 | ||
|
|
f3b5026190 | ||
|
|
19dcd81639 | ||
|
|
d38c171151 | ||
|
|
af3049925f | ||
|
|
a79825d18c | ||
|
|
c4b456b470 | ||
|
|
ccdf28767a | ||
|
|
2561f7d793 | ||
|
|
57bd8c1a49 | ||
|
|
8387e4ae04 | ||
|
|
5c02935017 | ||
|
|
726ffb9b1b | ||
|
|
5dcc3f4076 | ||
|
|
4639d7872f | ||
|
|
71cb6af8c4 | ||
|
|
52060301bd | ||
|
|
dfa3e6d8e4 | ||
|
|
f38f3fe5c9 | ||
|
|
24bf031270 | ||
|
|
eeadd72e1f | ||
|
|
e4139bab04 | ||
|
|
7c7205849b | ||
|
|
03b2b13f14 | ||
|
|
8caf9f7fde | ||
|
|
5b8a5ac6b6 | ||
|
|
4429bed1cf | ||
|
|
b9beda3484 | ||
|
|
354c9bc927 | ||
|
|
a2d88f7fbf | ||
|
|
83cad000e7 | ||
|
|
1b78791aa9 | ||
|
|
2b05fbf6a0 | ||
|
|
7b677cddaf | ||
|
|
18a8fcaa70 | ||
|
|
dd1bc757d5 | ||
|
|
27ca0fdfcc | ||
|
|
578de05a40 | ||
|
|
cd3e1d6bd4 | ||
|
|
de160bb51b | ||
|
|
14417e14c0 | ||
|
|
f2d8b4e444 | ||
|
|
b7c41fee28 | ||
|
|
4f0678d6a2 | ||
|
|
880c624935 | ||
|
|
0fa0902262 | ||
|
|
a2ab3ccaee | ||
|
|
77a0d1c2ff | ||
|
|
7fdb022819 | ||
|
|
878a630b69 | ||
|
|
fbcfc69983 | ||
|
|
a1bd327524 | ||
|
|
e62829debd | ||
|
|
d9d669964f | ||
|
|
ced17b632a | ||
|
|
0aada62a5a | ||
|
|
2fece7a8fe | ||
|
|
6680373c76 | ||
|
|
68ae43fd72 | ||
|
|
6b6f452d06 | ||
|
|
7153ff17e8 | ||
|
|
0fde5a1b3d | ||
|
|
b17fbdd19b | ||
|
|
61ae522486 | ||
|
|
bd414ae9f2 | ||
|
|
7579db5876 | ||
|
|
994ce8dab2 | ||
|
|
e8a84dce7d | ||
|
|
fdca9eda90 | ||
|
|
e007009a00 | ||
|
|
1d5cc209dd | ||
|
|
09b18e1563 | ||
|
|
363db0edea | ||
|
|
e500240a35 | ||
|
|
6694977b87 | ||
|
|
b173dc1f28 | ||
|
|
aa91f5649f | ||
|
|
74efd563ab | ||
|
|
b0b389fb4d | ||
|
|
e2d9131a07 | ||
|
|
3b1c8216b9 | ||
|
|
7f259a43cf | ||
|
|
874a504df3 | ||
|
|
6a4c6318e3 | ||
|
|
09bf2b87dc | ||
|
|
9c5c9838ae | ||
|
|
3924033d9a | ||
|
|
d81e45e456 | ||
|
|
631a762b56 | ||
|
|
a9cf79942f | ||
|
|
bd31476933 | ||
|
|
9b9e4c2ffa | ||
|
|
ec93daac7e | ||
|
|
3431b2dfb1 | ||
|
|
4270abaf1c | ||
|
|
0bd288afbd | ||
|
|
b72d5d50a1 | ||
|
|
d51889c233 | ||
|
|
332b093ee9 | ||
|
|
8be332208f | ||
|
|
85d1188628 | ||
|
|
56896996c3 | ||
|
|
896374e069 | ||
|
|
ac36505fb2 | ||
|
|
d36df1a8ae | ||
|
|
edd939c069 | ||
|
|
f80225ba54 | ||
|
|
3ccd87b369 | ||
|
|
59d3dd9255 | ||
|
|
392f08059d | ||
|
|
0d5c9a2bba | ||
|
|
f27de8015b | ||
|
|
3b7bdee814 | ||
|
|
397ed9d581 | ||
|
|
a098880669 | ||
|
|
047d4cb650 | ||
|
|
736904c579 | ||
|
|
e883c668b5 | ||
|
|
14181aa8a7 | ||
|
|
0b1ba99afa | ||
|
|
88a6215939 | ||
|
|
d5ebd33038 | ||
|
|
b2ac214c0f | ||
|
|
3dee41a511 | ||
|
|
934818c07d | ||
|
|
4dc614a58e | ||
|
|
35ea095b75 | ||
|
|
ae1a4c73b3 | ||
|
|
b58dbe89be | ||
|
|
1b4551b622 | ||
|
|
72a8f819d3 | ||
|
|
df8e16379c | ||
|
|
7dbbc7e25c | ||
|
|
1eaae70adb | ||
|
|
d4a61782c4 | ||
|
|
0e39c6f895 | ||
|
|
fcc3ede485 | ||
|
|
f001e7e713 | ||
|
|
3fb8fae821 | ||
|
|
349f3185c5 | ||
|
|
b457b8409f | ||
|
|
c61e5e1ac8 | ||
|
|
9e60f9d9fd | ||
|
|
a95d40078f | ||
|
|
515798bd9f | ||
|
|
20b28135a3 | ||
|
|
33d2b8bbeb | ||
|
|
7c2059af2b | ||
|
|
1e0f57bd1a | ||
|
|
9484f1dbe6 | ||
|
|
658766c9e4 | ||
|
|
9e47d9acf1 | ||
|
|
5a1247c021 | ||
|
|
a8b7972f3c | ||
|
|
836c2127f7 | ||
|
|
6cef200aed | ||
|
|
c9c80b1d62 | ||
|
|
04328bc2d1 | ||
|
|
d909d0eeeb | ||
|
|
80f5e913ec | ||
|
|
57eca31a9c | ||
|
|
c645fc7ad1 | ||
|
|
78b524b2e8 | ||
|
|
1ff1b6931b | ||
|
|
29ac883616 | ||
|
|
467a147603 | ||
|
|
7b49b6304c | ||
|
|
25991027b9 | ||
|
|
fce83dfa66 | ||
|
|
8603d5d468 | ||
|
|
bd17f85140 | ||
|
|
037dddb945 | ||
|
|
dd2151e611 | ||
|
|
a1e0cdadd6 | ||
|
|
8d36efa66c | ||
|
|
b9a12a6dcc | ||
|
|
08e4fe9990 | ||
|
|
2333fec181 | ||
|
|
05676a78e3 | ||
|
|
02aaae240c | ||
|
|
158924fe3c | ||
|
|
0341b926b9 | ||
|
|
69d1f93ea4 | ||
|
|
423fb56ae0 | ||
|
|
c5fc8d437f | ||
|
|
0811addf9c | ||
|
|
e6f8108dc0 | ||
|
|
4aa4a8c75d | ||
|
|
bbe0467d16 | ||
|
|
88ca69138b | ||
|
|
6a0d9c8805 | ||
|
|
1a57f9f134 | ||
|
|
109aedd3ae | ||
|
|
bd9f9344e5 | ||
|
|
5190873e99 | ||
|
|
c5fe7eb0dd | ||
|
|
fef1b14d69 | ||
|
|
472fc02533 | ||
|
|
ed29524cf3 | ||
|
|
69f35436c2 | ||
|
|
a0ca1cddb5 | ||
|
|
be4ffd8308 | ||
|
|
8e246f08ee | ||
|
|
73eda65300 | ||
|
|
be4df02844 | ||
|
|
7de461319f | ||
|
|
970fc16aab | ||
|
|
5db2c5804d | ||
|
|
6c2924a08a | ||
|
|
32511fe6a0 | ||
|
|
94d5b0f083 | ||
|
|
0e957b9566 | ||
|
|
ec93f21f0a | ||
|
|
bbc4f3beb4 | ||
|
|
c271a25a51 | ||
|
|
c986bf0c46 | ||
|
|
6f994b75e5 | ||
|
|
a227039260 | ||
|
|
ee38c07a3f | ||
|
|
9678ebd71e | ||
|
|
82ce0d3461 | ||
|
|
8315c79ef7 | ||
|
|
69cb6d30b5 | ||
|
|
f4beef514e | ||
|
|
f002677134 | ||
|
|
6270d2d3af | ||
|
|
83625e4ba7 | ||
|
|
d039112b5b | ||
|
|
d8481af288 | ||
|
|
ea902c1073 | ||
|
|
db62c18a39 | ||
|
|
d004e2f759 | ||
|
|
1f7e457c64 | ||
|
|
4eae9398d8 | ||
|
|
4766121570 | ||
|
|
3180641e33 | ||
|
|
9273002905 | ||
|
|
3fc9c5ec90 | ||
|
|
3266cea1d6 | ||
|
|
97839c06dc | ||
|
|
304f290e42 | ||
|
|
52a241f300 | ||
|
|
1c1ea0dcc4 | ||
|
|
d998b384e8 | ||
|
|
9184afa6de | ||
|
|
3e1b4d724f | ||
|
|
5b6f50b25b | ||
|
|
b757025359 | ||
|
|
52e97edbd5 | ||
|
|
def88db128 | ||
|
|
d04702e5d4 | ||
|
|
f6407771b5 | ||
|
|
f6a6e125b6 | ||
|
|
2303b8a89f | ||
|
|
93f286b6ac | ||
|
|
75e5f931eb | ||
|
|
b215e89572 | ||
|
|
07a7e8cf0a | ||
|
|
52000edd7d | ||
|
|
3e4c07c86f | ||
|
|
92ce69c603 | ||
|
|
a338e0a3f1 | ||
|
|
143e09b65f | ||
|
|
e5cc5abdc9 | ||
|
|
dfc96ebb99 | ||
|
|
9397d0121d | ||
|
|
d8a1f3c73a | ||
|
|
a07cb425a4 | ||
|
|
a89b33dfdf | ||
|
|
486d33448b | ||
|
|
2299d397cb | ||
|
|
0173c4709f | ||
|
|
42fdf8b61f | ||
|
|
0253723652 | ||
|
|
5ca51d3510 | ||
|
|
466dc0127d | ||
|
|
32f610485c | ||
|
|
429e1b54ee | ||
|
|
268c037487 | ||
|
|
c146f3105e | ||
|
|
81e0c04722 | ||
|
|
5d156695d2 | ||
|
|
f71438347c | ||
|
|
a3081d607f | ||
|
|
ca81f445b9 | ||
|
|
1c22ce6d76 | ||
|
|
a0d482ba88 | ||
|
|
0c050cc053 | ||
|
|
9645d624f2 | ||
|
|
f29cb94d9f | ||
|
|
e239206626 | ||
|
|
35d1065eaf | ||
|
|
8384d6f9d7 | ||
|
|
5b3282ba51 | ||
|
|
bd1043f034 | ||
|
|
c847dcec15 | ||
|
|
f66994f0b5 | ||
|
|
eba27f1823 | ||
|
|
ad1bbb2a00 | ||
|
|
42506ab37d | ||
|
|
6bae33826d | ||
|
|
914c2b89c5 | ||
|
|
e79926cf29 | ||
|
|
1f15d2c736 | ||
|
|
fadd27fd23 | ||
|
|
d5aeb8db55 | ||
|
|
d5dbdd9986 | ||
|
|
352c977dc7 | ||
|
|
bf008eba99 | ||
|
|
76b7777fff | ||
|
|
9292d990da | ||
|
|
87fe715823 | ||
|
|
25e32e0600 | ||
|
|
41c901a05c | ||
|
|
fdaba2faf4 | ||
|
|
0c73ad4f46 | ||
|
|
36c44bc3d4 | ||
|
|
d612598bd0 | ||
|
|
2d75b6086f | ||
|
|
3345674604 | ||
|
|
1eeaeeeca5 | ||
|
|
b0bea8b3ba | ||
|
|
0e3e5edd17 | ||
|
|
ec1287a2f4 | ||
|
|
9d2c857c59 | ||
|
|
077f4f201c | ||
|
|
9a2154a2ce | ||
|
|
f4c111c1c2 | ||
|
|
9483a06e8a | ||
|
|
df2a90dc1d | ||
|
|
246c190ccd | ||
|
|
4640817a14 | ||
|
|
9c7690d39b | ||
|
|
160805af05 | ||
|
|
39e85730f0 | ||
|
|
da692e1a92 | ||
|
|
23bc60f1ac | ||
|
|
ce0f759509 | ||
|
|
1793e5943a | ||
|
|
201b5db155 | ||
|
|
c588ac6777 | ||
|
|
28c01fd4e1 | ||
|
|
0715e7a31f | ||
|
|
b497c38e34 | ||
|
|
8a08dce405 | ||
|
|
a620c348bf | ||
|
|
fe750b7270 | ||
|
|
4aa9d56dfc | ||
|
|
4b2ebf2a3a | ||
|
|
6290446ea5 | ||
|
|
42f5d06960 | ||
|
|
85e8006137 | ||
|
|
7c29d4c644 | ||
|
|
7378bc852d | ||
|
|
67ed137cfa | ||
|
|
02e08e54a2 | ||
|
|
6b2dd24334 | ||
|
|
131d5becad | ||
|
|
157e0a83b1 | ||
|
|
d0d3abce3e | ||
|
|
b965c41a45 | ||
|
|
42f824e034 | ||
|
|
2768d9d49d | ||
|
|
c9a86dcae3 | ||
|
|
e1d307ea2c | ||
|
|
98ece12ae8 | ||
|
|
4cf3db7c2a | ||
|
|
7c2f79d980 | ||
|
|
fe064f8b6a | ||
|
|
2bad2f6b80 | ||
|
|
2ba9c5193f | ||
|
|
331695c10a | ||
|
|
f299193f05 | ||
|
|
de8130abc2 | ||
|
|
1cbde7f2e1 | ||
|
|
d1c796d9a7 | ||
|
|
af43061353 | ||
|
|
1b2ca8e69e | ||
|
|
a9e6679b08 | ||
|
|
9408760122 | ||
|
|
c25e804d61 | ||
|
|
b18b2262eb | ||
|
|
570440dc7d | ||
|
|
aef660fb2f | ||
|
|
17671c7282 | ||
|
|
8216ab44b4 | ||
|
|
5902d43a94 | ||
|
|
a6eb04d3f9 | ||
|
|
a71780e860 | ||
|
|
c2d815ef66 | ||
|
|
bf4679aa9b | ||
|
|
4dd74bbb16 | ||
|
|
10530146ca | ||
|
|
75d49da3d4 | ||
|
|
af026b0c52 | ||
|
|
bcd4f70d0e | ||
|
|
54cc31d1a0 | ||
|
|
3f0553861a | ||
|
|
e1b3c51d2c | ||
|
|
58a0e3fad6 | ||
|
|
6bb235650a | ||
|
|
0bf0bc4c33 | ||
|
|
3085749e92 | ||
|
|
de3abbf6b8 | ||
|
|
925469689f | ||
|
|
631e58a585 | ||
|
|
63571d06bf | ||
|
|
1979758fab | ||
|
|
6ef5a23000 | ||
|
|
ae4aa23d27 | ||
|
|
710d1f13cd | ||
|
|
57a4d366d7 | ||
|
|
8060c66c08 | ||
|
|
d5a58fbec2 | ||
|
|
059256de3e | ||
|
|
2c52d4c867 | ||
|
|
d9bfde2e47 | ||
|
|
757acd8d92 | ||
|
|
3e92252e2e | ||
|
|
ce7aeb1a27 | ||
|
|
236d2ad39a | ||
|
|
63b37714b1 | ||
|
|
dc81fd0622 | ||
|
|
ccec2bf7ee | ||
|
|
c93b93331e | ||
|
|
1f194f1680 | ||
|
|
2251123c1d | ||
|
|
1bfe1c3370 | ||
|
|
0044eeb6d1 | ||
|
|
669302d46b | ||
|
|
fce2f44197 | ||
|
|
64db1df248 | ||
|
|
9109d55019 | ||
|
|
412e13ccd5 | ||
|
|
0c7e0528b6 | ||
|
|
ccb22a2f40 | ||
|
|
2f3e463aca | ||
|
|
c548e08aea | ||
|
|
150e0171f0 | ||
|
|
bfcaca7bc0 | ||
|
|
fcb0482193 | ||
|
|
714ea7c236 | ||
|
|
cc30799f0d | ||
|
|
df71259a10 | ||
|
|
9a0ae5d4b9 | ||
|
|
eea4648ada | ||
|
|
2883398c2a | ||
|
|
84f6e14b89 | ||
|
|
30fb9ed65a | ||
|
|
a809f2d1f2 | ||
|
|
6b5a19983d | ||
|
|
2471f447b3 | ||
|
|
413e944d7a | ||
|
|
3b952819d6 | ||
|
|
2445c10c1c | ||
|
|
7e26593d04 | ||
|
|
73595c683b | ||
|
|
570f56a4cc | ||
|
|
f9e940871e | ||
|
|
c2b724a54a | ||
|
|
f52db472ed | ||
|
|
324fe98a5b | ||
|
|
2fd9833580 | ||
|
|
0ab4827d6f | ||
|
|
f0bd7d7eee | ||
|
|
8cd1209602 | ||
|
|
e2781adc81 | ||
|
|
b91ac2fe89 | ||
|
|
683a7a1851 | ||
|
|
8b05aa7b59 | ||
|
|
883f839bfd | ||
|
|
90dc00ac6b | ||
|
|
9c1cecbb7d | ||
|
|
1fce11bfba | ||
|
|
fba3ebdf49 | ||
|
|
e9585e08a4 | ||
|
|
24a89985fb | ||
|
|
33026e8281 | ||
|
|
50d9b832a9 | ||
|
|
1df82c3380 | ||
|
|
0a8db4ebbf | ||
|
|
928b19aef4 | ||
|
|
a7ec98cef6 | ||
|
|
67326a1859 | ||
|
|
631a8a5edf | ||
|
|
7e5e463ef2 | ||
|
|
add65e41da | ||
|
|
351b4571cd | ||
|
|
793258a91f | ||
|
|
ed3e1933c3 | ||
|
|
2f63b26458 | ||
|
|
f1d14da3dd | ||
|
|
4a3d90bdf3 | ||
|
|
f8f24fbc37 | ||
|
|
8f6c53e111 | ||
|
|
c23f55b1d4 | ||
|
|
88f94f5d6f | ||
|
|
3e99a179b7 | ||
|
|
c7271f94a5 | ||
|
|
5c0ced942c | ||
|
|
d9b07e76f9 | ||
|
|
c75793df20 | ||
|
|
1bee5121f0 | ||
|
|
932e7eb374 | ||
|
|
abdbcfe42b | ||
|
|
a62e888732 | ||
|
|
16b982b953 | ||
|
|
e92b87095b | ||
|
|
e5f1aa689b | ||
|
|
f39a05cd8d | ||
|
|
c5e22b785a | ||
|
|
11f93a125c | ||
|
|
38a9cb002d | ||
|
|
cf1a38a004 | ||
|
|
d6e823d19d | ||
|
|
763a23d9d0 | ||
|
|
f266577f2f | ||
|
|
1bb5e73668 | ||
|
|
b07bc755f6 | ||
|
|
db4b39c54b | ||
|
|
ffd95261c3 | ||
|
|
82f38040c1 | ||
|
|
7bb4f9f8e3 | ||
|
|
c2345df275 | ||
|
|
b0c341da3f | ||
|
|
b1ccc16da7 | ||
|
|
16856a5911 | ||
|
|
d4ee364349 | ||
|
|
db62ca7b4b | ||
|
|
d0b99b854d | ||
|
|
b3b13b3e01 | ||
|
|
5cb738b82b | ||
|
|
cfe3b15cbe | ||
|
|
a1bde80925 | ||
|
|
4c958dd584 | ||
|
|
a05d4d3d18 | ||
|
|
503b6dc914 | ||
|
|
141cbcd1c0 | ||
|
|
e340d2d3f5 | ||
|
|
436d5a3a66 | ||
|
|
3e04fd4790 | ||
|
|
3f6d149f9d | ||
|
|
977fc7832a | ||
|
|
2e2f0e2e3d | ||
|
|
5628beee72 | ||
|
|
a88fea560b | ||
|
|
5832345b96 | ||
|
|
d3d2daa12f | ||
|
|
f6f90982f4 | ||
|
|
98323b08f0 | ||
|
|
8f3112a5e2 | ||
|
|
3408bd41ad | ||
|
|
68e12e86c1 | ||
|
|
890e0b4906 | ||
|
|
3aca7c7ae5 | ||
|
|
e8077ddbc5 | ||
|
|
6e04907357 | ||
|
|
3d8c9a99fe | ||
|
|
730768705b | ||
|
|
13f75a37ab | ||
|
|
f74c69ea6f | ||
|
|
fe7be0f518 | ||
|
|
2f0e656c45 | ||
|
|
de489b799b | ||
|
|
6250ef49b6 | ||
|
|
afdab8dcde | ||
|
|
8e1d39f37f | ||
|
|
2a8c346a65 | ||
|
|
71e431e744 | ||
|
|
265cb75d70 | ||
|
|
4d0470838a | ||
|
|
d4ed3aeac0 | ||
|
|
89fa89fe98 | ||
|
|
2d663f0ac5 | ||
|
|
bc9b3f1c5c | ||
|
|
2f0a46a46d | ||
|
|
9559604d1e | ||
|
|
b779ab9bc5 | ||
|
|
481943051c | ||
|
|
cb49b7a906 | ||
|
|
090e4b3117 | ||
|
|
9a40d5f784 | ||
|
|
1485637c6d | ||
|
|
b0ec8e26e8 | ||
|
|
e4c12e08cb | ||
|
|
a1675745b5 | ||
|
|
40beb5b104 | ||
|
|
e49e2f51c2 | ||
|
|
99669f2678 | ||
|
|
9aa88b9dad | ||
|
|
10de29795a | ||
|
|
c4767e74f4 | ||
|
|
19f8666e1e | ||
|
|
2e2bbdf0d7 | ||
|
|
973bee0ffa | ||
|
|
9470cdf774 | ||
|
|
ab198ea60b | ||
|
|
c78f4bb6d2 | ||
|
|
ff054ca47f | ||
|
|
30cc804022 | ||
|
|
890d733bf8 | ||
|
|
a554a9c4a1 | ||
|
|
9ef212937d | ||
|
|
82d9c53f3e | ||
|
|
d9d91c4953 | ||
|
|
dd5f5282e0 | ||
|
|
cc116defc6 | ||
|
|
90c755e120 | ||
|
|
85d1c80581 | ||
|
|
5bb04d3857 | ||
|
|
dde8404242 | ||
|
|
7940bd2dcc | ||
|
|
da48d117a0 | ||
|
|
ffc74967fc | ||
|
|
c7388d5836 | ||
|
|
ee4b8fc66f | ||
|
|
c73f22ca45 | ||
|
|
bafa053fd1 | ||
|
|
a00406d2b3 | ||
|
|
df91e17dc6 | ||
|
|
7c6eeababc | ||
|
|
911a5067f9 | ||
|
|
bfa0fe9c51 | ||
|
|
7dafe31d51 | ||
|
|
1271ecedb4 | ||
|
|
80be18068f | ||
|
|
ecbf2c0958 | ||
|
|
cfb84b677f | ||
|
|
dfbd7a5d76 | ||
|
|
8e157f8ff7 | ||
|
|
c75580e852 | ||
|
|
e21934fd55 | ||
|
|
844f1609c8 | ||
|
|
6f7de28672 | ||
|
|
247212d768 | ||
|
|
6592b880ea | ||
|
|
e27a4bf119 | ||
|
|
dce5a83093 | ||
|
|
78c70f35a1 | ||
|
|
f4b84a0902 | ||
|
|
b16237b514 | ||
|
|
b0077539fa | ||
|
|
63602216eb | ||
|
|
2f93935009 | ||
|
|
c0a0b653c1 | ||
|
|
24d6354467 | ||
|
|
54a07469fd | ||
|
|
12f37bead1 | ||
|
|
8d76dc2511 | ||
|
|
8ef7d6defc | ||
|
|
2f2cbbe3f0 | ||
|
|
2662ac719b | ||
|
|
1b0fe6e847 | ||
|
|
9fa9e26324 | ||
|
|
cb434df099 | ||
|
|
e3cb3002fe | ||
|
|
8b2a09b522 | ||
|
|
03265d2545 | ||
|
|
9b25e07b5e | ||
|
|
60a21ca58d | ||
|
|
05172492ef | ||
|
|
a9c089a994 | ||
|
|
988d018c8e | ||
|
|
853c611fde | ||
|
|
0886f5335f | ||
|
|
024d481a4d | ||
|
|
b80de1af95 | ||
|
|
da44268f0d | ||
|
|
b921a3ed8e | ||
|
|
d2c9c824f9 | ||
|
|
21c255051c | ||
|
|
dccf09c5dd | ||
|
|
0772a17e4c | ||
|
|
644ee782d2 | ||
|
|
ea180cc415 | ||
|
|
68e3c4e6ed | ||
|
|
47b1c2d680 | ||
|
|
2e513043b7 | ||
|
|
ea942635f7 | ||
|
|
8a5f5cc673 | ||
|
|
6cc673035d | ||
|
|
02d717e5a8 | ||
|
|
77d83b06bd | ||
|
|
e3d8eabb05 | ||
|
|
0596b0106f | ||
|
|
765bbd90fc | ||
|
|
3799902a8a | ||
|
|
ca1dbb4556 | ||
|
|
df551d457c | ||
|
|
278d518d8f | ||
|
|
b06fa191f7 | ||
|
|
13d73f6f27 | ||
|
|
d59af117c0 | ||
|
|
69efd85ad6 | ||
|
|
ead51787a8 | ||
|
|
4bf0fee20d | ||
|
|
209693ee3f | ||
|
|
796d4f5b08 | ||
|
|
96914c9901 | ||
|
|
9e6073bf56 | ||
|
|
f8ad58159c | ||
|
|
ede4a02315 | ||
|
|
e25faba990 | ||
|
|
4ccf272e53 | ||
|
|
5ad0951db3 | ||
|
|
f72fcb76e3 | ||
|
|
8ca00c81b2 | ||
|
|
5c7f87b8ae | ||
|
|
9f4f7ec88c | ||
|
|
ba7676f778 | ||
|
|
ac248c32bb | ||
|
|
dd6a3e8535 | ||
|
|
69b538cfd6 | ||
|
|
e248c22f4b | ||
|
|
eff3c43483 | ||
|
|
1cbfc3ccd4 | ||
|
|
2fa72838f9 | ||
|
|
a559ec1fda | ||
|
|
8ddbc8b1fb | ||
|
|
c650a43d38 | ||
|
|
ab4cc20c8c | ||
|
|
30d613ff04 | ||
|
|
b93da5a281 | ||
|
|
9e2cf67a93 | ||
|
|
e87720ffdd | ||
|
|
5108ed7da5 | ||
|
|
77936d86f2 | ||
|
|
cbe8927d73 | ||
|
|
47a7e98da8 | ||
|
|
d4f27cd2e0 | ||
|
|
c355ad7a86 | ||
|
|
c8c9ec081d | ||
|
|
1289e46401 | ||
|
|
0b54292130 | ||
|
|
d1e2b91116 | ||
|
|
cd96b3e8f6 | ||
|
|
9119f4d06f | ||
|
|
4e6ccf2c81 | ||
|
|
6294e43762 | ||
|
|
feca78e55d | ||
|
|
0c86526ad2 | ||
|
|
9fd1d26067 | ||
|
|
5ec02078d1 | ||
|
|
012c6f3d41 | ||
|
|
8e89d492fc | ||
|
|
69fe2f0443 | ||
|
|
ebd7f4ae1b | ||
|
|
f9ca4f339e | ||
|
|
5919020e1c | ||
|
|
9d09c2356d | ||
|
|
3cfb597fc6 | ||
|
|
03f2da19e5 | ||
|
|
951e62d984 | ||
|
|
146039c4c5 | ||
|
|
98a216fdb9 | ||
|
|
28ea09a0c4 | ||
|
|
a98a772360 | ||
|
|
4f1da8a24b | ||
|
|
cb83e71f2b | ||
|
|
646d174616 | ||
|
|
34cf78fd33 | ||
|
|
457e1bee2f | ||
|
|
6b95c63c1e | ||
|
|
e965f222db | ||
|
|
d1591bc01c | ||
|
|
a72846be7a | ||
|
|
5072661369 | ||
|
|
5417a83662 | ||
|
|
23be006932 | ||
|
|
e28553767e | ||
|
|
c1f64c043d | ||
|
|
9e6d0183d4 | ||
|
|
8dc7f3fb9e | ||
|
|
ac7b3b9b67 | ||
|
|
af0ebba5db | ||
|
|
b454709e5e | ||
|
|
78684607bd | ||
|
|
3790cad5e5 | ||
|
|
77b7c091a8 | ||
|
|
450ad62fa9 | ||
|
|
1d138c33a4 | ||
|
|
fb2a0e4a1e | ||
|
|
da3db0b0f9 | ||
|
|
bc8aaadd90 | ||
|
|
e6054a4971 | ||
|
|
26548e1929 | ||
|
|
4424cf8190 | ||
|
|
67c1aacd54 | ||
|
|
39b046f18b | ||
|
|
d630f04872 | ||
|
|
35403c87bd | ||
|
|
f2b247e042 | ||
|
|
94022bd9f2 | ||
|
|
ccb2abb950 | ||
|
|
cbafc15292 | ||
|
|
e12c52294a | ||
|
|
63b529da00 | ||
|
|
e4be2fd19e | ||
|
|
269bf4feec | ||
|
|
9d4c4a1e2b | ||
|
|
2e41fdcb41 | ||
|
|
2e48218623 | ||
|
|
8576a54056 | ||
|
|
79d924f920 | ||
|
|
305beb3af8 | ||
|
|
06fceded14 | ||
|
|
0eadfd5a58 | ||
|
|
eea34a4f6c | ||
|
|
500ec36522 | ||
|
|
ca525bd08c | ||
|
|
ac2ffc4586 | ||
|
|
5781269557 | ||
|
|
e4422b9fe7 | ||
|
|
269f76d546 | ||
|
|
540e3f0aaa | ||
|
|
5f64ae28e0 | ||
|
|
ece364c823 | ||
|
|
f669f64fcb | ||
|
|
2a53ed93c4 | ||
|
|
2b731fb30c | ||
|
|
be2db2dd8e | ||
|
|
09c08df1b9 | ||
|
|
9ccd3438ad | ||
|
|
393bcbcca5 | ||
|
|
7fac0958b8 | ||
|
|
c6a0874b3b | ||
|
|
9c80470185 | ||
|
|
2034445f5b | ||
|
|
fd8da5ffba | ||
|
|
e987af87f6 | ||
|
|
0074cc3933 | ||
|
|
5f2ce89316 | ||
|
|
60492c48a6 | ||
|
|
eed2d70017 | ||
|
|
b859adaa8c | ||
|
|
89a587f9ae | ||
|
|
fb56bcff80 | ||
|
|
99eb6907dd | ||
|
|
3743fad899 | ||
|
|
c1e59a7e03 | ||
|
|
b34dee1f83 | ||
|
|
6edd65ad8f | ||
|
|
0959ca6a40 | ||
|
|
1287fa2cd0 | ||
|
|
a5a07f250d | ||
|
|
089fb526f5 | ||
|
|
af58b7593a | ||
|
|
d4508b25ce | ||
|
|
9edc218eaa | ||
|
|
3790f753aa | ||
|
|
82b30d8388 | ||
|
|
e9a0dc7826 | ||
|
|
8ce3a4f904 | ||
|
|
1d42e9c348 | ||
|
|
2340a6bc37 | ||
|
|
be0b9c7e53 | ||
|
|
6d75cd9025 | ||
|
|
345d6f369e | ||
|
|
959ea86d85 | ||
|
|
b67a99af3d | ||
|
|
fa3b848d40 | ||
|
|
0f971e9e7d | ||
|
|
c17f76c009 | ||
|
|
bf23b5d295 | ||
|
|
09c7256d42 | ||
|
|
eaee8a2fbb | ||
|
|
3b18dd67be | ||
|
|
c3f87b4248 | ||
|
|
f6b91ad652 | ||
|
|
1c79edc52f | ||
|
|
fe2dfd0e8f | ||
|
|
fa6056c1b1 | ||
|
|
d5762c7ad8 | ||
|
|
d9c9dd2a4f | ||
|
|
3a4d945c68 | ||
|
|
f4a364816b | ||
|
|
931bc03cab | ||
|
|
1abd4937cd | ||
|
|
0df8b51c62 | ||
|
|
e5b7190015 | ||
|
|
279b8aacf6 | ||
|
|
9eebaab2f4 | ||
|
|
16e9d60033 | ||
|
|
335b378e9a | ||
|
|
9c41bc33a3 | ||
|
|
7f7d6b4d5d | ||
|
|
cc0e3bbce0 | ||
|
|
2eead65fef | ||
|
|
e664be451f | ||
|
|
d2d8160096 | ||
|
|
3bd503c28d | ||
|
|
aa1df8eb33 | ||
|
|
c1aace45ae | ||
|
|
217a60aadc | ||
|
|
5654f528ca | ||
|
|
4da036a064 | ||
|
|
2256b3d262 | ||
|
|
d84ecc307d | ||
|
|
237313d5fb | ||
|
|
7caf766bca | ||
|
|
0a3f9f5ef1 | ||
|
|
e890b8f7c1 | ||
|
|
dc4d5f0ecb | ||
|
|
a2f0980731 | ||
|
|
0a5c029f8b | ||
|
|
85bb79e4fb | ||
|
|
f18d1e50f8 | ||
|
|
943b10dd5d | ||
|
|
0a48e17c88 | ||
|
|
da1381e14e | ||
|
|
bdffb0ee10 | ||
|
|
7bdb7d2ca8 | ||
|
|
92567561b8 | ||
|
|
335bdcd89d | ||
|
|
4c2fc13abb | ||
|
|
7f8f29daa2 | ||
|
|
8fac845ecb | ||
|
|
d8076e7630 | ||
|
|
b370bc27c4 | ||
|
|
334c3f4488 | ||
|
|
33822109c0 | ||
|
|
b1f18b0f5b | ||
|
|
c0d6284368 | ||
|
|
16e294f6fc | ||
|
|
5f7925b2b8 | ||
|
|
2e001b0ce4 | ||
|
|
c1ca3ff5b5 | ||
|
|
1de33cd4ca | ||
|
|
77b773388f | ||
|
|
3e668ee439 | ||
|
|
0d3ea9af36 | ||
|
|
0d81bc8056 | ||
|
|
e4b532a34d | ||
|
|
61f86c0ac3 | ||
|
|
66fad37116 | ||
|
|
c7bbd8c823 | ||
|
|
dc6f8baf1e | ||
|
|
0e76e65d65 | ||
|
|
877dbed999 | ||
|
|
668fd05fae | ||
|
|
3e49998f41 | ||
|
|
99b183ac17 | ||
|
|
bb04cddc48 | ||
|
|
ba3f095dd8 | ||
|
|
f8438421c8 | ||
|
|
334361860b | ||
|
|
23bd211758 | ||
|
|
4cc8fb9891 | ||
|
|
ed3cd690fe | ||
|
|
9a40c7cdc6 | ||
|
|
ae4c9ce819 | ||
|
|
2f8bae1356 | ||
|
|
2dfcd5b7ef | ||
|
|
739926f64e | ||
|
|
a18dde07de | ||
|
|
6480017a91 | ||
|
|
4467ec52f7 | ||
|
|
072d82a10e | ||
|
|
b50b759f4f | ||
|
|
c1477ad45f | ||
|
|
679d45399b | ||
|
|
0e15a789ff | ||
|
|
dff5b3f497 | ||
|
|
483e49a6ae | ||
|
|
a689b5b917 | ||
|
|
1363d98280 | ||
|
|
405f3dcbdd | ||
|
|
4b48408bc9 | ||
|
|
d6f1e2d7e2 | ||
|
|
c04c8e3aa4 | ||
|
|
ff5a08d3b0 | ||
|
|
d2049c759e | ||
|
|
f940cb0ace | ||
|
|
507f2f4af4 | ||
|
|
deca7099f3 | ||
|
|
46a741825a | ||
|
|
14fdcd3052 | ||
|
|
c76b01608a | ||
|
|
be709d6601 | ||
|
|
7dc8fac198 | ||
|
|
29ae7d57fd | ||
|
|
1bf9ce872b | ||
|
|
0071c9504f | ||
|
|
594a872c84 | ||
|
|
0d1f78e82e | ||
|
|
a12de51897 | ||
|
|
74fa084dd0 | ||
|
|
a1ee258da5 | ||
|
|
c1af171c5d | ||
|
|
e36c9560fa | ||
|
|
5cd19ddc8d | ||
|
|
ac243e5d11 | ||
|
|
b480d019f6 | ||
|
|
cc13ab97d6 | ||
|
|
fee1d2ed04 | ||
|
|
4144d5faa6 | ||
|
|
38a23c0bee | ||
|
|
8fcfebe170 | ||
|
|
f917fa8138 | ||
|
|
f60b611304 | ||
|
|
a54624e5c8 | ||
|
|
370b14b82e | ||
|
|
88205adeb2 | ||
|
|
351ce995d9 | ||
|
|
a9aa92de90 | ||
|
|
9ea665dea2 | ||
|
|
30b52527e7 | ||
|
|
bb4125153b | ||
|
|
f0d5b2b1da | ||
|
|
30c4048e4a | ||
|
|
93770ca9ce | ||
|
|
e788783d12 | ||
|
|
1314444d7c | ||
|
|
2a14664d34 | ||
|
|
07a03940a0 | ||
|
|
5f2f6fff56 | ||
|
|
353548660c | ||
|
|
912f07225c | ||
|
|
a23b7eeff1 | ||
|
|
574f0d71b2 | ||
|
|
a368312035 | ||
|
|
2f88b1ab65 | ||
|
|
f85f97e061 | ||
|
|
30dec13903 | ||
|
|
3057e5c997 | ||
|
|
6c413eb1ba | ||
|
|
dcdd9132e2 | ||
|
|
d9b1c36055 | ||
|
|
a593a247d7 | ||
|
|
155debc864 | ||
|
|
a5975ac38b | ||
|
|
204f1cfd6b | ||
|
|
2d22e043a0 | ||
|
|
c26cacaf4e | ||
|
|
f0048544e2 | ||
|
|
cf227dbfa2 | ||
|
|
a5f8bdbe61 | ||
|
|
e442553c6f | ||
|
|
7134acfcd6 | ||
|
|
82439f444e | ||
|
|
1a17908488 | ||
|
|
9af30e99f8 | ||
|
|
6f942c3417 | ||
|
|
57083c90cd | ||
|
|
e28bcdd978 | ||
|
|
0b4a5ab2eb | ||
|
|
034704a330 | ||
|
|
5c60eaf6ab | ||
|
|
f5709eac2c | ||
|
|
5a5e714aca | ||
|
|
747d48e4d9 | ||
|
|
07a0200f30 | ||
|
|
1c5313f2d9 | ||
|
|
05e08719fb | ||
|
|
ca0e616f88 | ||
|
|
a8d20caba4 | ||
|
|
0d4bbb0a48 | ||
|
|
b9cc219530 | ||
|
|
e204ab5871 | ||
|
|
16d0c05b4b | ||
|
|
6f8329d191 | ||
|
|
d751463b26 | ||
|
|
d3b66eff59 | ||
|
|
4257d0332a | ||
|
|
ccbcaa94fe | ||
|
|
b80442c061 | ||
|
|
3a0f6820ad | ||
|
|
1bc92f5363 | ||
|
|
818ddcf01e | ||
|
|
618ba361c7 | ||
|
|
599160a325 | ||
|
|
35fba6f4ed | ||
|
|
a14aad75fd | ||
|
|
3513e85b0b | ||
|
|
66c0390fc7 | ||
|
|
a6549ccb08 | ||
|
|
15d2878014 | ||
|
|
d271be8723 | ||
|
|
6f9d2d99dd | ||
|
|
5d62664ee3 | ||
|
|
7124d9f2f8 | ||
|
|
0459744771 | ||
|
|
417544b781 | ||
|
|
f9028cb366 | ||
|
|
0ffa9d4225 | ||
|
|
9a264719a9 | ||
|
|
96c213dcc4 | ||
|
|
dec1a8e204 | ||
|
|
a17fd697e2 | ||
|
|
a6ab66e799 | ||
|
|
17095ec3c6 | ||
|
|
82687147b8 | ||
|
|
ba76422c1f | ||
|
|
083b3c4ece | ||
|
|
5ecfdf38a8 | ||
|
|
dd1acf3c2a | ||
|
|
76e9c2d196 | ||
|
|
15f046959d | ||
|
|
bf3ba04624 | ||
|
|
d997894d9a | ||
|
|
c1059db6e5 | ||
|
|
8ad29a2836 | ||
|
|
93a454b835 | ||
|
|
da899386ec | ||
|
|
05d22903ea | ||
|
|
33945520f1 | ||
|
|
40284809cf | ||
|
|
efc18aaaec | ||
|
|
348441b046 | ||
|
|
66601b2e7c | ||
|
|
724c5e4b73 | ||
|
|
7eff29bc65 | ||
|
|
ca002003c2 | ||
|
|
f0675f1f3c | ||
|
|
976186c525 | ||
|
|
89d5777e52 | ||
|
|
8dbb69809c | ||
|
|
7348bd5d15 | ||
|
|
9a46a466f7 | ||
|
|
fafc5c8553 | ||
|
|
4ffdfaa506 | ||
|
|
e3989840ee | ||
|
|
b3e6f531a1 | ||
|
|
4f6ee34592 | ||
|
|
3ae58a323e | ||
|
|
26b958c270 | ||
|
|
12a4af5900 | ||
|
|
69479d538c | ||
|
|
829397dd5a | ||
|
|
2bc89026db | ||
|
|
ebbc44d181 | ||
|
|
2228a1e36b | ||
|
|
a8cbf3e8ff | ||
|
|
fa32e3d734 | ||
|
|
0d17148ff0 | ||
|
|
aa38411cf7 | ||
|
|
4913c8699d | ||
|
|
1035a11487 | ||
|
|
15c2efe706 | ||
|
|
d7fd71bb62 | ||
|
|
b11ee993fa | ||
|
|
614aa7873c | ||
|
|
1adf31fe15 | ||
|
|
824ffd7b5b | ||
|
|
c31c6fdebb | ||
|
|
83f3276429 | ||
|
|
d21f68ce54 | ||
|
|
18b1e1b133 | ||
|
|
0edaa40052 | ||
|
|
627077c8f3 | ||
|
|
a897b1798d | ||
|
|
50e39993bf | ||
|
|
5e397dd01e | ||
|
|
f57ff5d5e0 | ||
|
|
5c3e40917c | ||
|
|
90a2dc4581 | ||
|
|
b64243fdd6 | ||
|
|
42db87d305 | ||
|
|
e7ab1b589a | ||
|
|
e9979c9887 | ||
|
|
3bb9bb56f0 | ||
|
|
5a99474c55 | ||
|
|
182ee6c25f | ||
|
|
4d3f0a06db | ||
|
|
0e182c519b | ||
|
|
b1ee30ce7d | ||
|
|
93ba764e23 | ||
|
|
433e17bb81 | ||
|
|
61c09083ad | ||
|
|
018377e724 | ||
|
|
b76f9513ba | ||
|
|
40ebb7ba75 | ||
|
|
a9e52e8954 | ||
|
|
3c8876cac7 | ||
|
|
b7e005f9c7 | ||
|
|
e6fe0a19fa | ||
|
|
fba11b6a44 | ||
|
|
c270e7f5dd | ||
|
|
9ee00d345e | ||
|
|
0379fbc4eb | ||
|
|
9748a3ae91 | ||
|
|
1881944748 | ||
|
|
3721fa194c | ||
|
|
8c3fcad20b | ||
|
|
decf373d0b | ||
|
|
ff1d50f993 | ||
|
|
ef34204b59 | ||
|
|
270b636d80 | ||
|
|
ac01da2ae9 | ||
|
|
0136310c54 | ||
|
|
ecf4cf852e | ||
|
|
c66384adfb | ||
|
|
98bdda629d | ||
|
|
a8286f9cba | ||
|
|
fa3db4fcf6 | ||
|
|
ddac0cfee1 | ||
|
|
9368673459 | ||
|
|
43dc999ab5 | ||
|
|
3b7333e866 | ||
|
|
bc0ddbaf16 | ||
|
|
45f0ae7e1c | ||
|
|
a521c4ae01 | ||
|
|
8e5dee79e0 | ||
|
|
5b8238adeb | ||
|
|
ec330474fa | ||
|
|
ece28904a8 | ||
|
|
4f1c495afb | ||
|
|
5fdd27b7e6 | ||
|
|
91f449af9a | ||
|
|
efc0a0dfe3 | ||
|
|
fee47baa66 | ||
|
|
9abd9d20ec | ||
|
|
0ad7bfc7e7 | ||
|
|
bd64143ae1 | ||
|
|
ec982ba9a3 | ||
|
|
6280f6ff98 | ||
|
|
35d20390a9 | ||
|
|
c487c5042f | ||
|
|
aaf7927aa2 | ||
|
|
3c677f3d21 | ||
|
|
94eb76b3a6 | ||
|
|
a921cb2d0d | ||
|
|
f3aaa363d8 | ||
|
|
45a79e1920 | ||
|
|
6fd9b2a453 | ||
|
|
01d8e89a71 | ||
|
|
c89fa63910 | ||
|
|
9fc5c49dbf | ||
|
|
7dfc269df9 | ||
|
|
76d0b397db | ||
|
|
5413f887af | ||
|
|
b3d0c61f0e | ||
|
|
4ce0441d68 | ||
|
|
72be34e18d | ||
|
|
d2961b7650 | ||
|
|
fdca1bbf72 | ||
|
|
ab7a2f9dee | ||
|
|
7b72857a3b | ||
|
|
4787146658 | ||
|
|
430f9356c3 | ||
|
|
70a3b3518f | ||
|
|
c0944c17e0 | ||
|
|
da1b2a91e7 | ||
|
|
aa27492713 | ||
|
|
afe589dec3 | ||
|
|
978d140c8f | ||
|
|
2ce213b62c | ||
|
|
7748266078 | ||
|
|
83783d07a1 | ||
|
|
49a1f2c7c5 | ||
|
|
ddfc0151fc | ||
|
|
81c508e13c | ||
|
|
7195cfc3cf | ||
|
|
93fe5e2cf7 | ||
|
|
a2bf795d12 | ||
|
|
c8d78f39e0 | ||
|
|
d9ab8a1c8b | ||
|
|
5125ad4889 | ||
|
|
951e85b04b | ||
|
|
711d922695 | ||
|
|
3692ffcde7 | ||
|
|
b049420c59 | ||
|
|
241103c369 | ||
|
|
2128367113 | ||
|
|
f555c8190d | ||
|
|
d5df633def | ||
|
|
fe7dc859e3 | ||
|
|
569c5046c6 | ||
|
|
e0210ae2d8 | ||
|
|
f85dc3b7e7 | ||
|
|
92d4363120 | ||
|
|
6c69220de2 | ||
|
|
3a1229b072 | ||
|
|
45538c9f62 | ||
|
|
0c173fde53 | ||
|
|
77db2bbfec | ||
|
|
2987185a9d | ||
|
|
7a7baf7175 | ||
|
|
5645cc0af2 | ||
|
|
63a6756fed | ||
|
|
9f408c98a6 | ||
|
|
26d6998d82 | ||
|
|
6bee44acb7 | ||
|
|
441992cf37 | ||
|
|
490c224ac3 | ||
|
|
f5c55048de | ||
|
|
8139e124c2 | ||
|
|
cba73a5139 | ||
|
|
de0c9367e5 | ||
|
|
630060860c | ||
|
|
dccd11fb7b | ||
|
|
b8a4b2cf16 | ||
|
|
e52f55bfba | ||
|
|
1cb99e02a9 | ||
|
|
c9c5c35e56 | ||
|
|
bc7c9f9c01 | ||
|
|
e4bfc4cb8d | ||
|
|
d64995c4a1 | ||
|
|
2952ea7404 | ||
|
|
f34c807a2c | ||
|
|
b1f9704055 | ||
|
|
9382829ba5 | ||
|
|
373a6ea912 | ||
|
|
72eb4e7b3b | ||
|
|
315c0870ed | ||
|
|
200fa621bf | ||
|
|
80348c1980 | ||
|
|
856dd8403c | ||
|
|
0bb9acd4c1 | ||
|
|
047a80917f | ||
|
|
e6e8fe4763 | ||
|
|
6cd212398e | ||
|
|
44ad6d4247 | ||
|
|
7302782853 | ||
|
|
7fa1aba6b8 | ||
|
|
2fed4e3e8b | ||
|
|
bd343c51a3 | ||
|
|
8a05f06efa | ||
|
|
27b049eada | ||
|
|
2d1afb5291 | ||
|
|
63c17a3abf | ||
|
|
94f9bc5fca | ||
|
|
ab273430d2 | ||
|
|
0b3dc315ad | ||
|
|
f26a2d2f13 | ||
|
|
8edf9bf508 | ||
|
|
415381cebd | ||
|
|
59accec1c0 | ||
|
|
dd2699fcc1 | ||
|
|
0986a5f985 | ||
|
|
fa77229b72 | ||
|
|
78b5080c9a | ||
|
|
0641da786c | ||
|
|
3291f3bb3c | ||
|
|
a0cfef8bda | ||
|
|
4d033f4a03 | ||
|
|
562820180c | ||
|
|
a29832207e | ||
|
|
2afd549826 | ||
|
|
8a71b2c6dd | ||
|
|
d633d2691d | ||
|
|
f9b1608fd2 | ||
|
|
4d8ed3f00e | ||
|
|
359e7d0543 | ||
|
|
07bf93e022 | ||
|
|
57e27da0c4 | ||
|
|
9ecbf62d25 | ||
|
|
48ffa591ca | ||
|
|
b7dd617bb1 | ||
|
|
392f9d0775 | ||
|
|
4361b11c68 | ||
|
|
28bccad010 | ||
|
|
29d31a0deb | ||
|
|
1d9960d349 | ||
|
|
2747b241ab | ||
|
|
6b8035b116 | ||
|
|
33ad5f4d45 | ||
|
|
af7ad9251a | ||
|
|
4ec9975aa3 | ||
|
|
c6b0841583 | ||
|
|
9312435076 | ||
|
|
49427f1c54 | ||
|
|
82e7e06dc4 | ||
|
|
76cf82bb19 | ||
|
|
4f8ad2962e | ||
|
|
fe4be48bff | ||
|
|
66fc0b421b | ||
|
|
c0b4867659 | ||
|
|
95253fbc76 | ||
|
|
df519b3042 | ||
|
|
9ed963ef70 | ||
|
|
1dd7993e7a | ||
|
|
386b33b65d | ||
|
|
416deb8711 | ||
|
|
3c7fdac55e | ||
|
|
392a6af47f | ||
|
|
6b03e3f603 | ||
|
|
9397f6beda | ||
|
|
d17b386fd6 | ||
|
|
f6d2e1a447 | ||
|
|
bd95ef5db6 | ||
|
|
6e76c621b8 | ||
|
|
3e58bee0eb | ||
|
|
8c2ed1f581 | ||
|
|
500dd3bfaf | ||
|
|
bc7bacd654 | ||
|
|
fa16b990b6 | ||
|
|
9d5e9dd9e5 | ||
|
|
4046f9dde1 | ||
|
|
fcd82ada14 | ||
|
|
d616da7f67 | ||
|
|
0c81202bbb | ||
|
|
6284bd3f17 | ||
|
|
7adc9d94b4 | ||
|
|
73e030d2f5 | ||
|
|
3a3b45aa04 | ||
|
|
81c19e9964 | ||
|
|
df856bc4a0 | ||
|
|
8558dc7ee4 | ||
|
|
087d5f6e58 | ||
|
|
9540bc350a | ||
|
|
09153c6c30 | ||
|
|
f66d81f147 | ||
|
|
75925143b6 | ||
|
|
e7dc00991e | ||
|
|
dd9da82ed3 | ||
|
|
c995b8fa81 | ||
|
|
e7c2994ea3 | ||
|
|
106997b26c | ||
|
|
fa842c1566 | ||
|
|
be03dd82f9 | ||
|
|
39c46995e1 | ||
|
|
97adc01e8d | ||
|
|
36be881741 | ||
|
|
955cc6dff5 | ||
|
|
2be1399eda | ||
|
|
ef5d2a7654 | ||
|
|
1cd00cab62 | ||
|
|
7652c231f6 | ||
|
|
e17cdf0ca7 | ||
|
|
3317791e68 | ||
|
|
c3871bc2ec | ||
|
|
ebba86f741 | ||
|
|
5ac84a6a02 | ||
|
|
cf3e9704e8 | ||
|
|
37eac8afcf | ||
|
|
692a0535ff | ||
|
|
0f0d804052 | ||
|
|
d189e6b53d | ||
|
|
5da31691a9 | ||
|
|
4059a4fd9a | ||
|
|
e56da71856 | ||
|
|
91e10f627f | ||
|
|
338c686e8d | ||
|
|
0007e9ea2b | ||
|
|
1e09e9b322 | ||
|
|
43c358119a | ||
|
|
7a0f251ebd | ||
|
|
e989321c5f | ||
|
|
56f27e6aaa | ||
|
|
7c4e5aa667 | ||
|
|
d253d826bb | ||
|
|
888fa20ca3 | ||
|
|
598dbb2b7a | ||
|
|
71eb1eab14 | ||
|
|
62a6bd99e8 | ||
|
|
174cdf2149 | ||
|
|
5267fbce7b | ||
|
|
dd814e7e95 | ||
|
|
f806b45d3d | ||
|
|
8575e9eabe | ||
|
|
6ff9e22049 | ||
|
|
caa86fdab7 | ||
|
|
48246716cc | ||
|
|
6e07429e8a | ||
|
|
1a271c32b6 | ||
|
|
3fddec8f20 | ||
|
|
ac3944aece | ||
|
|
958cc2a50c | ||
|
|
058dfcfa9f | ||
|
|
9dbb1ca386 | ||
|
|
4d1def6e9d | ||
|
|
ff763b0278 | ||
|
|
74f611e0fd | ||
|
|
61f8be1c60 | ||
|
|
96b18dab00 | ||
|
|
0a21b239bc | ||
|
|
9c3589aea4 | ||
|
|
2433485d13 | ||
|
|
6b5f254e0a | ||
|
|
e1b41b1e26 | ||
|
|
bd7a265df0 | ||
|
|
039cca9529 | ||
|
|
963347dbc2 | ||
|
|
697cc9f758 | ||
|
|
3892225584 | ||
|
|
a7880a0ef5 | ||
|
|
dd574830f5 | ||
|
|
71a0d15c35 | ||
|
|
8a33c4f09a | ||
|
|
d223ce062a | ||
|
|
39c8f12963 | ||
|
|
bd4ba8c826 | ||
|
|
3d38c8e088 | ||
|
|
ce58c80c6d | ||
|
|
19b3a0781c | ||
|
|
b42c1971b9 | ||
|
|
02440941e0 | ||
|
|
cd2f986c50 | ||
|
|
e7cbd6b31f | ||
|
|
a7f6d5eebd | ||
|
|
4f3b8c0906 | ||
|
|
7126c71943 | ||
|
|
489cf16af8 | ||
|
|
b012f44259 | ||
|
|
5ce765bd27 | ||
|
|
2450edd070 | ||
|
|
fc2a61835c | ||
|
|
d06d73d5f7 | ||
|
|
2c10996bb3 | ||
|
|
b9c85bb1bf | ||
|
|
f436afb9aa | ||
|
|
750efe4152 | ||
|
|
99cee95cd5 | ||
|
|
ec10b84fa6 | ||
|
|
f0442fe2ce | ||
|
|
7907969696 | ||
|
|
8dbab73d2b | ||
|
|
ade8acb4e2 | ||
|
|
9cb78e6954 | ||
|
|
e9127bdbb3 | ||
|
|
9b750bc756 | ||
|
|
c3349e8cc7 | ||
|
|
f4d7c7f739 | ||
|
|
19d51cb1a4 | ||
|
|
cc9983aa16 | ||
|
|
81f8467f66 | ||
|
|
df6b23e3c7 | ||
|
|
4dd81e7d59 | ||
|
|
54ce7067b4 | ||
|
|
2673f790e6 | ||
|
|
69bea2ec9b | ||
|
|
37037cf797 | ||
|
|
2a1586aab3 | ||
|
|
915281d138 | ||
|
|
b53a179ea0 | ||
|
|
7077e8b50e | ||
|
|
d9181277d9 | ||
|
|
810c2d6a1a | ||
|
|
f31113fb90 | ||
|
|
1702b9dd37 | ||
|
|
f8e61c713c | ||
|
|
643132754a | ||
|
|
4f0a131bd2 | ||
|
|
52aa0350cf | ||
|
|
c9884f32fe | ||
|
|
aea3ae3d37 | ||
|
|
10f7c3045f | ||
|
|
bf4e158c30 | ||
|
|
4a3155ed22 | ||
|
|
29f1c89fa5 | ||
|
|
4a92e8a99f | ||
|
|
c6cffb1156 | ||
|
|
f6e4e59905 | ||
|
|
3a0736c4bf | ||
|
|
47455b2029 | ||
|
|
05eb7d765f | ||
|
|
5e786686d0 | ||
|
|
5cb8e3a7c3 | ||
|
|
84bd077eac | ||
|
|
db39b27119 | ||
|
|
f2d2b35543 | ||
|
|
5dfd5766f2 | ||
|
|
0e4c3e1e92 | ||
|
|
221f42606c | ||
|
|
742f092ed3 | ||
|
|
36bffa1475 | ||
|
|
936abc1b1a | ||
|
|
584bdd545f | ||
|
|
99debc18d7 | ||
|
|
56b896eda0 | ||
|
|
cab102528d | ||
|
|
1875cdcda2 | ||
|
|
386dcc8d43 | ||
|
|
e6d59a47b1 | ||
|
|
2659393f33 | ||
|
|
916b2363d9 | ||
|
|
bb513790b5 | ||
|
|
e5ab15a727 | ||
|
|
bbaa750fda | ||
|
|
a46e19210a | ||
|
|
9d6772edd1 | ||
|
|
3aeaa564a2 | ||
|
|
8baad494e3 | ||
|
|
fb04753d52 | ||
|
|
ea37c4ccd8 | ||
|
|
80f02b52e1 | ||
|
|
55464845d6 | ||
|
|
8aef4bb455 | ||
|
|
d8a2adbca2 | ||
|
|
02e56da08a | ||
|
|
9d9f857e73 | ||
|
|
b140c1e65f | ||
|
|
81ff03462e | ||
|
|
2ea7c09c84 | ||
|
|
4163ed212c | ||
|
|
c83722c2df | ||
|
|
700db655e6 | ||
|
|
226428f631 | ||
|
|
e2b293e49b | ||
|
|
1f6e9d4660 | ||
|
|
ecf2ee888f | ||
|
|
1e8eeadb1d | ||
|
|
e7ceccdd83 | ||
|
|
5390b4a4b3 | ||
|
|
f25ec34bc3 | ||
|
|
53ece86816 | ||
|
|
9b128cdfcc | ||
|
|
c047386755 | ||
|
|
b0ffb272b3 | ||
|
|
956e21c8db | ||
|
|
95057a2b09 | ||
|
|
788aa24a80 | ||
|
|
0a72ef91cc | ||
|
|
f0f4e0985a | ||
|
|
a6bedea4b6 | ||
|
|
055316e1ca | ||
|
|
25fece5947 | ||
|
|
5ec3cdbcc5 | ||
|
|
b530ab2ef6 | ||
|
|
5164f60c98 | ||
|
|
19ba3015f7 | ||
|
|
fb00b2672c | ||
|
|
3e0f936d2a | ||
|
|
f5be146dbb | ||
|
|
95431a0874 | ||
|
|
f76b130ca4 | ||
|
|
d19f8259d0 | ||
|
|
68cd62d756 | ||
|
|
ea4a55d3dd | ||
|
|
788bdcd35b | ||
|
|
ebd7e24830 | ||
|
|
0b7fbffa0a | ||
|
|
2afda9a055 | ||
|
|
28dd275bd8 | ||
|
|
9a3cf182ac | ||
|
|
dd278c28be | ||
|
|
37572122b0 | ||
|
|
5348f75b5e | ||
|
|
6b8873d385 | ||
|
|
8db18d87e5 | ||
|
|
444920d15c | ||
|
|
8aa2fab603 | ||
|
|
9ded4386cc | ||
|
|
cc6b1b5aa1 | ||
|
|
74f20da82f | ||
|
|
4c9c838b70 | ||
|
|
9a9d27d37a | ||
|
|
0347d4cec4 | ||
|
|
b1b189288e | ||
|
|
b3220f981b | ||
|
|
a5573e62c6 | ||
|
|
c4ccee8df6 | ||
|
|
fbcf803d06 | ||
|
|
5247b7a9af | ||
|
|
dc218cc992 | ||
|
|
c21761d9d4 | ||
|
|
36c0bf06d7 | ||
|
|
ccdab2b083 | ||
|
|
15a8a56807 | ||
|
|
385d42281b | ||
|
|
b0dc933021 | ||
|
|
b73ee1f638 | ||
|
|
51c2a54179 | ||
|
|
2d71a916a2 | ||
|
|
5f9cf47003 | ||
|
|
16b39185dc | ||
|
|
6f0410f26e | ||
|
|
0b86845852 | ||
|
|
d5f914bd2f | ||
|
|
663c65e42e | ||
|
|
b9de86f96c | ||
|
|
bd9c0ffb25 | ||
|
|
9d763773cf | ||
|
|
540f977146 | ||
|
|
d16b09d3fc | ||
|
|
6f8a8d3b90 | ||
|
|
00ef4166c7 | ||
|
|
b88414735e | ||
|
|
af092fae9b | ||
|
|
b889efc913 | ||
|
|
877dd68a6b | ||
|
|
2805a1c7bc | ||
|
|
c5c000ea6f | ||
|
|
673f1072bf | ||
|
|
d0e93b9b9f | ||
|
|
f239088bcb | ||
|
|
32642f105c | ||
|
|
4adaf6d355 | ||
|
|
291e2a5e40 | ||
|
|
05bdb56203 | ||
|
|
cb71df8345 | ||
|
|
c6c5f5188b | ||
|
|
a7b6ca0914 | ||
|
|
30ba062695 | ||
|
|
a595af7b3f | ||
|
|
b2ee3172d8 | ||
|
|
73992ee8e9 | ||
|
|
78885fd00a | ||
|
|
ce55ac6ccb | ||
|
|
8ce0951e5f | ||
|
|
7788fa9d3e | ||
|
|
7f36552c71 | ||
|
|
16f9437b29 | ||
|
|
0beaff718e | ||
|
|
9b6f37b5d0 | ||
|
|
3d6d4aea6a | ||
|
|
2356a21e54 | ||
|
|
a55e7ed34f | ||
|
|
e355e4d35d | ||
|
|
6dcaf80f3f | ||
|
|
a465114d36 | ||
|
|
07fbcb3488 | ||
|
|
534fbe1b6e | ||
|
|
f5c9c1ba0e | ||
|
|
5d5485f569 | ||
|
|
3d3fa5d18a | ||
|
|
312c41f229 | ||
|
|
2df1dc9028 | ||
|
|
222f245e63 | ||
|
|
2aa7702aed | ||
|
|
0b185c35c2 | ||
|
|
48dcec3cc3 | ||
|
|
8567179fa3 | ||
|
|
79d15ecd7e | ||
|
|
837c7e4bc7 | ||
|
|
2ae7e9920d | ||
|
|
8cf955b674 | ||
|
|
33f897d43e | ||
|
|
ddb0946a0d | ||
|
|
0f5beac4a8 | ||
|
|
974e2f71f9 | ||
|
|
3c427d7e28 | ||
|
|
0f10c8f5df | ||
|
|
7840b51f5c | ||
|
|
6578855182 | ||
|
|
58d68497a4 | ||
|
|
bddcf42a54 | ||
|
|
6318f4e7ac | ||
|
|
0c6cced7ee | ||
|
|
925bf47c9e | ||
|
|
8472b991ff | ||
|
|
ed59c32d96 | ||
|
|
b1981d7499 | ||
|
|
8983dfea57 | ||
|
|
5231b9b22b | ||
|
|
55846a2314 | ||
|
|
1c94f5749d | ||
|
|
90bacd9d31 | ||
|
|
0053cbf782 | ||
|
|
5d120a79e8 | ||
|
|
3389569ea0 | ||
|
|
f546606de0 | ||
|
|
fef95b3aae | ||
|
|
5ba2b72439 | ||
|
|
4bb849f7c9 | ||
|
|
21b5e7e701 | ||
|
|
34a1965497 | ||
|
|
1701682636 | ||
|
|
5d826972f1 | ||
|
|
2467b336e5 | ||
|
|
4f78414c7f | ||
|
|
4532714bae | ||
|
|
352c23b0ba | ||
|
|
8e432ee818 | ||
|
|
47bb2d24f5 | ||
|
|
f3fd4c607d | ||
|
|
0610ceafdf | ||
|
|
032fcdce40 | ||
|
|
636bacd637 | ||
|
|
3f3fbd8bbc | ||
|
|
955e88b4fb | ||
|
|
5954b552c9 | ||
|
|
aaad4c5d20 | ||
|
|
a24c8526ea | ||
|
|
a533535520 | ||
|
|
badded3aa4 | ||
|
|
3055e612d4 | ||
|
|
525cb1a2b6 | ||
|
|
4dd70abc3b | ||
|
|
2ea4c214df | ||
|
|
0a0174a79d | ||
|
|
3db031be1b | ||
|
|
6d3a87fe7d | ||
|
|
8cfd2cdd79 | ||
|
|
9e874e076f | ||
|
|
28192bf184 | ||
|
|
a54957b4de | ||
|
|
f4b1a076b7 | ||
|
|
27a3296d6e | ||
|
|
1aaaee128f | ||
|
|
15a16a2c35 | ||
|
|
db23fe5a58 | ||
|
|
620c88b615 | ||
|
|
99f2fb9764 | ||
|
|
d5a3e67dbd | ||
|
|
55ef81f3e7 | ||
|
|
41699fab1e | ||
|
|
32a1195157 | ||
|
|
f53db2ddfa | ||
|
|
e060f9172b | ||
|
|
4adef88e61 | ||
|
|
d734f2cf89 | ||
|
|
3e81d14bd8 | ||
|
|
e88a94d9e0 | ||
|
|
f4f16e4e87 | ||
|
|
6268f3a3d9 | ||
|
|
06e7c8d19a | ||
|
|
32395232ea | ||
|
|
65d6ef91ff | ||
|
|
4aecc875d1 | ||
|
|
0e649a626c | ||
|
|
5fa249b0f3 | ||
|
|
24ca86aad3 | ||
|
|
8a4f413289 | ||
|
|
6dbad4501d | ||
|
|
9ab6490fee | ||
|
|
a413efa550 | ||
|
|
cd337d444c | ||
|
|
45e1ce0a42 | ||
|
|
e5ef1e6efe | ||
|
|
b1ce3be3d2 | ||
|
|
e13ab73a29 | ||
|
|
aede952b12 | ||
|
|
acc1476b29 | ||
|
|
138bf56624 | ||
|
|
c608de4183 | ||
|
|
ccb6c02c31 | ||
|
|
5cc457b28c | ||
|
|
a353b3d40d | ||
|
|
6f7aca8e5b | ||
|
|
92b0d4561e | ||
|
|
ef8b8346dc | ||
|
|
058058a015 | ||
|
|
fddba7315a | ||
|
|
a5e964ea19 | ||
|
|
3d2152e559 | ||
|
|
50f9c68c26 | ||
|
|
b40207b367 | ||
|
|
6c9305d2b1 | ||
|
|
9fda3c911d | ||
|
|
473c3601ef | ||
|
|
fde8a3720d | ||
|
|
13a6d6b458 | ||
|
|
29d9ba0446 | ||
|
|
71e271774e | ||
|
|
c9db49e255 | ||
|
|
22f35f0e86 | ||
|
|
375f3ac3ac | ||
|
|
b60a02bc34 | ||
|
|
5a4d821c98 | ||
|
|
cd0305c71d | ||
|
|
371459ff5e | ||
|
|
5a8a7c6a0f | ||
|
|
69db541300 | ||
|
|
94949866ee | ||
|
|
c22b3e7449 | ||
|
|
096dde922b | ||
|
|
00f26d854f | ||
|
|
6c8ff1717e | ||
|
|
c7288c1d8a | ||
|
|
2e52fe369d | ||
|
|
df3430add5 | ||
|
|
7af848c94b | ||
|
|
f57c462b5f | ||
|
|
6018035908 | ||
|
|
c8b0351786 | ||
|
|
26cc812f82 | ||
|
|
67f98950e6 | ||
|
|
8ba8537b9f | ||
|
|
a7f05a68e0 | ||
|
|
a0db228154 | ||
|
|
eec6fabe58 | ||
|
|
501c038f97 | ||
|
|
e0a0f717fd | ||
|
|
4dd3f7487c | ||
|
|
99d1cddaa5 | ||
|
|
2158e1a47e | ||
|
|
059238759a | ||
|
|
8d3ea7548a | ||
|
|
221b411b63 | ||
|
|
e2c173990f | ||
|
|
a609a8d5d6 | ||
|
|
c5c2afddc2 | ||
|
|
409d87f210 | ||
|
|
78baa4b01e | ||
|
|
b41c66c4af | ||
|
|
d6b7388c2e | ||
|
|
b0dc681d48 | ||
|
|
c20b460f2d | ||
|
|
cd0a46fd7f | ||
|
|
0a9c868678 | ||
|
|
027d1e8cb1 | ||
|
|
a5c9880318 | ||
|
|
e09988e1d7 | ||
|
|
21a1629dfa | ||
|
|
7644c626c8 | ||
|
|
2c91b73016 | ||
|
|
ae54b8eba8 | ||
|
|
47bcaa8659 | ||
|
|
73dc6fb050 | ||
|
|
a4ced510c6 | ||
|
|
40d9fe873c | ||
|
|
d06fe4a7c7 | ||
|
|
52d71e5c4a | ||
|
|
d86c2b64f2 | ||
|
|
84449f4e2e | ||
|
|
835dbac81a | ||
|
|
4d190b91a5 | ||
|
|
c4cddca84a | ||
|
|
bfe9598ce4 | ||
|
|
3421222c2f | ||
|
|
3ca95feb7c | ||
|
|
903bc364ba | ||
|
|
16fd498c29 | ||
|
|
ca45776739 | ||
|
|
c849f06ce8 | ||
|
|
77aa74e9c3 | ||
|
|
8dc0a92c52 | ||
|
|
30b7cfb53d | ||
|
|
0caeb71603 | ||
|
|
a40ad2eab9 | ||
|
|
1fba0cd31f | ||
|
|
e6ce672bc5 | ||
|
|
1418f0b697 | ||
|
|
81aa972108 | ||
|
|
c36ac49cca | ||
|
|
5bf069f307 | ||
|
|
1837d3d291 | ||
|
|
8fe3a788d7 | ||
|
|
c622f9a295 | ||
|
|
ba72a48e02 | ||
|
|
b1bd74c5b7 | ||
|
|
8f3a5780a9 | ||
|
|
177143b57c | ||
|
|
36dcfc1517 | ||
|
|
50d8cb0b5d | ||
|
|
c7845c4009 | ||
|
|
4ab23e4303 | ||
|
|
2b42a44bc4 | ||
|
|
225d7501d3 | ||
|
|
ab7af6a254 | ||
|
|
968f1027a7 | ||
|
|
46258d5481 | ||
|
|
250eff22b5 | ||
|
|
ec73dca5c4 | ||
|
|
e66e11d9e8 | ||
|
|
61d4f740b0 | ||
|
|
f93d756190 | ||
|
|
e93a9ba7ba | ||
|
|
5e90912b0c | ||
|
|
64a0e2d951 | ||
|
|
76e41067da | ||
|
|
906a9bda11 | ||
|
|
340ab06825 | ||
|
|
2fd0a76142 | ||
|
|
e457d95b7e | ||
|
|
274f401d92 | ||
|
|
e60f009ea2 | ||
|
|
cc2b660dfc | ||
|
|
b3e264aa33 | ||
|
|
857bd4d932 | ||
|
|
f784162da8 | ||
|
|
6030de647e | ||
|
|
0b09d672d2 | ||
|
|
d045b1af9b | ||
|
|
b3a2e21bc8 | ||
|
|
328ade2f0a | ||
|
|
1dd1a25b31 | ||
|
|
6458c0dde9 | ||
|
|
4bdcefca8f | ||
|
|
62399f78b9 | ||
|
|
26e364a5d6 | ||
|
|
de011857be | ||
|
|
8bc9880951 | ||
|
|
a51cd95c60 | ||
|
|
013ae0e254 | ||
|
|
90acba21ab | ||
|
|
130024c18d | ||
|
|
02f7e77b48 | ||
|
|
a97cd91950 | ||
|
|
fd543ca614 | ||
|
|
6330eac5f8 | ||
|
|
39bc6bff2f | ||
|
|
5012adf8f9 | ||
|
|
a27f91d8f2 | ||
|
|
39c206be91 | ||
|
|
d19d297ea4 | ||
|
|
cfc8cbd08b | ||
|
|
32cd323b54 | ||
|
|
e0af48955a | ||
|
|
08a334812b | ||
|
|
56fc278c73 | ||
|
|
d52f168e09 | ||
|
|
3c9026ce83 | ||
|
|
67577d8ec5 | ||
|
|
edc5fd9500 | ||
|
|
8af0272588 | ||
|
|
c6ec04bcf6 | ||
|
|
7ef41adc26 | ||
|
|
a161b63663 | ||
|
|
5b65a31d24 | ||
|
|
6f4115d160 | ||
|
|
b5de07de9d | ||
|
|
5bec09cfdc | ||
|
|
c3a8a89c61 | ||
|
|
e1a0988440 | ||
|
|
115dfb58f6 | ||
|
|
8e689e9e9e | ||
|
|
ff0e79536a | ||
|
|
34c53f5ba4 | ||
|
|
15c5fc7e4b | ||
|
|
fe7c8679b9 | ||
|
|
75840445c5 | ||
|
|
2aa7448f76 | ||
|
|
0f7a0f77f2 | ||
|
|
0771ffeb71 | ||
|
|
f410403107 | ||
|
|
74e9c86b61 | ||
|
|
712ea98e41 | ||
|
|
849f5bcd0e | ||
|
|
22a36dc6a8 | ||
|
|
f02c19f637 | ||
|
|
cafc82c3a5 | ||
|
|
9bc2f4100f | ||
|
|
c9735c034f | ||
|
|
a455af71af | ||
|
|
c5a90545c8 | ||
|
|
7da7904093 | ||
|
|
bd7653f682 | ||
|
|
30335a1ce9 | ||
|
|
c6f1250abc | ||
|
|
4c495f3828 | ||
|
|
c31fbc723d | ||
|
|
60e11055d2 | ||
|
|
fbbc765460 | ||
|
|
4e759eaa92 | ||
|
|
60e6dfb8e5 | ||
|
|
cf33726652 | ||
|
|
eb87c7c591 | ||
|
|
902d137d8e | ||
|
|
0a04d43514 | ||
|
|
07e0a68249 | ||
|
|
5ede3e18fb | ||
|
|
c1e8e0c84c | ||
|
|
dbb980cd45 | ||
|
|
aab7c5c398 | ||
|
|
8916b5db54 | ||
|
|
ed2ce4b999 | ||
|
|
0cfbc31241 | ||
|
|
1368b747be | ||
|
|
92d44f4061 | ||
|
|
f280717cb3 | ||
|
|
fdb3ff0afd | ||
|
|
66dde2fb36 | ||
|
|
7ffcd3282b | ||
|
|
f0a3fb4cbb | ||
|
|
416417dfc6 | ||
|
|
acc4130347 | ||
|
|
69cf3c99f4 | ||
|
|
3c11444302 | ||
|
|
dd32ded29b | ||
|
|
effa95fb31 | ||
|
|
dc46475e4e | ||
|
|
8b81de1141 | ||
|
|
cf0fcad340 | ||
|
|
a769906330 | ||
|
|
d49a935598 | ||
|
|
522d02d529 | ||
|
|
7246e48428 | ||
|
|
3a847c9115 | ||
|
|
db3006acaf | ||
|
|
03a7de8fe7 | ||
|
|
67e0c5af02 | ||
|
|
6658077bda | ||
|
|
929fce6adb | ||
|
|
cd1fc7308e | ||
|
|
c0a5e9fdcc | ||
|
|
a3e6a580d9 | ||
|
|
5d01c9f56a | ||
|
|
9cf291f5a3 | ||
|
|
d8738ae581 | ||
|
|
4a4effe5cf | ||
|
|
a2a2f5541f | ||
|
|
499e3c3456 | ||
|
|
b66187a24f | ||
|
|
f2615e93b7 | ||
|
|
c722dc9328 | ||
|
|
27a45d6b8c | ||
|
|
46849590c5 | ||
|
|
c9e7e4af8f | ||
|
|
28887d68c2 | ||
|
|
3322a90320 | ||
|
|
3d679d3810 | ||
|
|
b52269ab34 | ||
|
|
8632cc2ff0 | ||
|
|
f42faf8e97 | ||
|
|
567de44508 | ||
|
|
a6d2505211 | ||
|
|
e3d641b999 | ||
|
|
d0f88db388 | ||
|
|
14de6b0075 | ||
|
|
0092edc16f | ||
|
|
04de57cf9f | ||
|
|
d15a46bd15 | ||
|
|
2e992dca67 | ||
|
|
57dbbaad78 | ||
|
|
3ec6cd7fee | ||
|
|
049e5ac6ac | ||
|
|
2ead2465c8 | ||
|
|
e3ce6c05bb | ||
|
|
730c9fcec8 | ||
|
|
85925c027a | ||
|
|
9256e5c3ea | ||
|
|
44f4c3a22d | ||
|
|
fa390f4374 | ||
|
|
a282acd137 | ||
|
|
8bd167033f | ||
|
|
4afcf4900a | ||
|
|
4a8c47dffb | ||
|
|
fada93bae3 | ||
|
|
5d6ae5ce5e | ||
|
|
db42fcc583 | ||
|
|
e904714202 | ||
|
|
0ca59704f9 | ||
|
|
c7865613e1 | ||
|
|
eb4dfd9dde | ||
|
|
28eb595a56 | ||
|
|
037091f155 | ||
|
|
eecffb1782 | ||
|
|
912f5294d6 | ||
|
|
f6e410e461 | ||
|
|
ddddebfe27 | ||
|
|
57930e2c90 | ||
|
|
81238c78fe | ||
|
|
7e511313a3 | ||
|
|
56f4f1ca03 | ||
|
|
b25ef4bcc3 | ||
|
|
aaeac9c6eb | ||
|
|
8bccb82f5d | ||
|
|
b7437d6a74 | ||
|
|
fbd2f519e6 | ||
|
|
e1b3e67b7a | ||
|
|
dd9374fd50 | ||
|
|
c1f3b53ed7 | ||
|
|
627b11abde | ||
|
|
d68caf85d0 | ||
|
|
79857a0ed4 | ||
|
|
1688adbcbe | ||
|
|
096e722a74 | ||
|
|
9f361e441c | ||
|
|
47a5d39354 | ||
|
|
ec92b79a3d | ||
|
|
a55b6055c2 | ||
|
|
de8ad9e08a | ||
|
|
9bd662d6d1 | ||
|
|
c855fb8c6a | ||
|
|
07d5c85886 | ||
|
|
c9424f2f54 | ||
|
|
cdc0887895 | ||
|
|
6b15e866f8 | ||
|
|
5192358dce | ||
|
|
5758e1c550 | ||
|
|
2b5857affe | ||
|
|
556fadc9f5 | ||
|
|
1d04d33981 | ||
|
|
52b81ccb16 | ||
|
|
58e841e5c7 | ||
|
|
30beb81d9a | ||
|
|
8da6ac7cfb | ||
|
|
4b7effe3ee | ||
|
|
ea1ca34644 | ||
|
|
b1dbb47890 | ||
|
|
80d9cd8fa2 | ||
|
|
b50ed96f2e | ||
|
|
32f45e9ab7 | ||
|
|
2b2e07e767 | ||
|
|
bdb40f801e | ||
|
|
644a54d6fe | ||
|
|
28bbe17822 | ||
|
|
79344c2793 | ||
|
|
da6c18e45b | ||
|
|
f0de0514bf | ||
|
|
c48429888e | ||
|
|
e96486e130 | ||
|
|
3058e37d45 | ||
|
|
169241875b | ||
|
|
cc0f9acccd | ||
|
|
b36c2f1729 | ||
|
|
ea6df8b653 | ||
|
|
e720f6449d | ||
|
|
abb2039312 | ||
|
|
7e69c0b7be | ||
|
|
379c1bbd3d | ||
|
|
6fd41b15dc | ||
|
|
b240562356 | ||
|
|
44fd81773d | ||
|
|
6d529a7498 | ||
|
|
c5e7e0b3fb | ||
|
|
576bfed15f | ||
|
|
2471b4b155 | ||
|
|
238339373b | ||
|
|
da0218a3ce | ||
|
|
e44072e5a7 | ||
|
|
5d2bbb61f8 | ||
|
|
96dcd90005 | ||
|
|
b749122076 | ||
|
|
ccde455de1 | ||
|
|
a980513cba | ||
|
|
7d5cd8b00f | ||
|
|
a7c70b0b50 | ||
|
|
b5a995656d | ||
|
|
8b4c7ff521 | ||
|
|
c243fbc011 | ||
|
|
493e4497c8 | ||
|
|
84967b717c | ||
|
|
21493424fe | ||
|
|
2f73d528f8 | ||
|
|
b91f6314bd | ||
|
|
92aefa79e3 | ||
|
|
411e5dc35a | ||
|
|
0159fffab9 | ||
|
|
c98c2f93e2 | ||
|
|
1d2cacbb02 | ||
|
|
2d57958f6f | ||
|
|
88c36aa272 | ||
|
|
05ae37cb4d | ||
|
|
96fdaff82a | ||
|
|
07b64465c6 | ||
|
|
366e9be4de | ||
|
|
261c9e2240 | ||
|
|
c03973867c | ||
|
|
ca6984f4a5 | ||
|
|
4fbc2680ba | ||
|
|
9a5b0a8104 | ||
|
|
ad998f7a63 | ||
|
|
91043e4b52 | ||
|
|
8f3bd0145b | ||
|
|
ace0051147 | ||
|
|
83720c6673 | ||
|
|
f1ce4de1eb | ||
|
|
013b23c918 | ||
|
|
d03debf59c | ||
|
|
00b55d893a | ||
|
|
085b92df9c | ||
|
|
8516ff7cb3 | ||
|
|
56d64d8adc | ||
|
|
5d68e48312 | ||
|
|
8b0be0a8c5 | ||
|
|
d6e4d6d927 | ||
|
|
bbfe60ffd2 | ||
|
|
c9cc0b5ce3 | ||
|
|
f0bf19f286 | ||
|
|
6492e55954 | ||
|
|
c9fd1d5833 | ||
|
|
e8f73cae6c | ||
|
|
7d436b40d0 | ||
|
|
55cd6d2a74 | ||
|
|
01a2585edf | ||
|
|
bb329b73ef | ||
|
|
9b4008f39c | ||
|
|
ef52f20993 | ||
|
|
f2a207e790 | ||
|
|
40f502492b | ||
|
|
c5f1cf94ac | ||
|
|
2e286d4a50 | ||
|
|
94a27fa79e | ||
|
|
0adec1dbe2 | ||
|
|
c38c53957d | ||
|
|
498eb0134e | ||
|
|
d34f9182c2 | ||
|
|
324f21cf3d | ||
|
|
200c0110fd | ||
|
|
5694b0054b | ||
|
|
8825fdcdaf | ||
|
|
7805bc172e | ||
|
|
aa321b4b22 | ||
|
|
c74df7abc5 | ||
|
|
c6ffe8978d | ||
|
|
6761e0df15 | ||
|
|
cc47225f24 | ||
|
|
58c47a325f | ||
|
|
706f7f3b7b | ||
|
|
4d67f8bd0b | ||
|
|
d5227e00ff | ||
|
|
62fa1d570c | ||
|
|
899b4ab29a | ||
|
|
a2801f0b7b | ||
|
|
84694fedef | ||
|
|
c0005741bd | ||
|
|
150a341510 | ||
|
|
e486713026 | ||
|
|
0201dfa8e3 | ||
|
|
78269a1b7b | ||
|
|
d1bf60ab17 | ||
|
|
6c368dc8cb | ||
|
|
10ac67c1e0 | ||
|
|
ba3b38d941 | ||
|
|
47044d93d3 | ||
|
|
423ac4ea04 | ||
|
|
b114b40f88 | ||
|
|
030ce18d65 | ||
|
|
44116b3559 | ||
|
|
78332c7bfd | ||
|
|
dd8ac28240 | ||
|
|
81818222e5 | ||
|
|
4a25af03f4 | ||
|
|
6515d73534 | ||
|
|
006fc9acd3 | ||
|
|
1aa878b3a6 | ||
|
|
23dc475905 | ||
|
|
a827ab6ffd | ||
|
|
f55784ce6a | ||
|
|
f7110ac472 | ||
|
|
52a94e0f47 | ||
|
|
c25eb678a8 | ||
|
|
5128efbbf4 | ||
|
|
c73ee3c531 | ||
|
|
54ba67f882 | ||
|
|
395bfe6eb5 | ||
|
|
e0ecf65aac | ||
|
|
a7c651c98c | ||
|
|
ed473f457a | ||
|
|
a572c1132d | ||
|
|
ba314c7135 | ||
|
|
a0788ab050 | ||
|
|
8885f0be10 | ||
|
|
9d433ed1d0 | ||
|
|
0125c9445e | ||
|
|
a3454d4143 | ||
|
|
ad3c224b10 | ||
|
|
43d186d464 | ||
|
|
a3671e776d | ||
|
|
862ce07f8d | ||
|
|
a78bc7d195 | ||
|
|
b0ce4404ea | ||
|
|
cd5641d2f3 | ||
|
|
51dd9f0419 | ||
|
|
6d0a76756d | ||
|
|
6e8342fbf4 | ||
|
|
8d227724d7 | ||
|
|
eab91ffa83 | ||
|
|
6488198a06 | ||
|
|
07b4c67b5c | ||
|
|
70077a1eac | ||
|
|
03763a6556 | ||
|
|
3cb8d77977 | ||
|
|
c8d7940451 | ||
|
|
2253aa1229 | ||
|
|
d5a16855fb | ||
|
|
1aec909c10 | ||
|
|
7b60980959 | ||
|
|
097424e2ee | ||
|
|
a99b17d240 | ||
|
|
7526230b69 | ||
|
|
6b8f9a6319 | ||
|
|
8e74556613 | ||
|
|
26a3086b81 | ||
|
|
6dd70137db | ||
|
|
94ab475a31 | ||
|
|
e77b6f3b85 | ||
|
|
4000b44d90 | ||
|
|
ad09d98d81 | ||
|
|
567d5e7676 | ||
|
|
123b0a331e | ||
|
|
11f1f3d132 | ||
|
|
a44ce0c538 | ||
|
|
23348c5d8c | ||
|
|
176c6524a2 | ||
|
|
6765b0218a | ||
|
|
b7fd209987 | ||
|
|
e11f0595d8 | ||
|
|
a01410f287 | ||
|
|
6e53682854 | ||
|
|
e5a19d73e1 | ||
|
|
42d72a7786 | ||
|
|
30a29b179b | ||
|
|
6a7ae710c5 | ||
|
|
7622fa88cb | ||
|
|
2f7aee02cc | ||
|
|
75848f0d6e | ||
|
|
c81c4ffc97 | ||
|
|
5bbd8e7102 | ||
|
|
f8fb69ac03 | ||
|
|
a2b703d450 | ||
|
|
25739d9f6f | ||
|
|
1b12be55b2 | ||
|
|
ae7bfa6ee2 | ||
|
|
c012149b63 | ||
|
|
0210d87573 | ||
|
|
35b8cf3769 | ||
|
|
a1bd76d5fd | ||
|
|
c0551eb5dc | ||
|
|
f9e6118bfa | ||
|
|
69052c1de9 | ||
|
|
050dd7b47c | ||
|
|
7d5e1009cb | ||
|
|
9b3b0d22f8 | ||
|
|
d2035a0609 | ||
|
|
4dcd9e3066 | ||
|
|
744cf692aa | ||
|
|
eb2a85ff1a | ||
|
|
5eaf40b84e | ||
|
|
9dc12b4b8e | ||
|
|
2a3e6a9599 | ||
|
|
3ad7d6dfed | ||
|
|
28f82e2572 | ||
|
|
89274268ea | ||
|
|
116048d7a2 | ||
|
|
9f3c97c9bc | ||
|
|
79e7c56419 | ||
|
|
d00c390e03 | ||
|
|
ce39ee7b29 | ||
|
|
df1596b785 | ||
|
|
12aaf86a8e | ||
|
|
62bca19beb | ||
|
|
5551fa6612 | ||
|
|
73ef8c8c09 | ||
|
|
da695dffb3 | ||
|
|
efad2c3461 | ||
|
|
b5cb8d3c16 | ||
|
|
e9f81a8a50 | ||
|
|
4d75cce22a | ||
|
|
4c5f4dd443 | ||
|
|
ddb8d1d8f6 | ||
|
|
0da59a8339 | ||
|
|
4323bc8c11 | ||
|
|
90a69bd063 | ||
|
|
d55332d999 | ||
|
|
aac3a02a89 | ||
|
|
6c79b74657 | ||
|
|
bf79f13689 | ||
|
|
fa3cb5d725 | ||
|
|
b48e40e5ab | ||
|
|
f4d5b30e85 | ||
|
|
2fcf590355 | ||
|
|
6f29ee74da | ||
|
|
70ed981957 | ||
|
|
04dbcb05bd | ||
|
|
b649d507df | ||
|
|
803abf4448 | ||
|
|
de92dbdbdd | ||
|
|
be28fdcd9f | ||
|
|
5b840b41fe | ||
|
|
678064baba |
@@ -1,21 +1,65 @@
|
||||
# EditorConfig helps developers define and maintain consistent
|
||||
# coding styles between different editors and IDEs
|
||||
# editorconfig.org
|
||||
# http://EditorConfig.org
|
||||
#
|
||||
# Julien Fontanet's configuration
|
||||
# https://gist.github.com/julien-f/8096213
|
||||
|
||||
# Top-most EditorConfig file.
|
||||
root = true
|
||||
|
||||
|
||||
# Common config.
|
||||
[*]
|
||||
|
||||
# Change these settings to your own preference
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
# We recommend you to keep these unchanged
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespaces = true
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
# CoffeeScript
|
||||
#
|
||||
# https://github.com/polarmobile/coffeescript-style-guide/blob/master/README.md
|
||||
[*.{,lit}coffee]
|
||||
indent_size = 2
|
||||
indent_style = space
|
||||
|
||||
# Markdown
|
||||
[*.{md,mdwn,mdown,markdown}]
|
||||
indent_size = 4
|
||||
indent_style = space
|
||||
|
||||
# Package.json
|
||||
#
|
||||
# This indentation style is the one used by npm.
|
||||
[/package.json]
|
||||
indent_size = 2
|
||||
indent_style = space
|
||||
|
||||
# Jade
|
||||
[*.jade]
|
||||
indent_size = 2
|
||||
indent_style = space
|
||||
|
||||
# JavaScript
|
||||
#
|
||||
# Two spaces seems to be the standard most common style, at least in
|
||||
# Node.js (http://nodeguide.com/style.html#tabs-vs-spaces).
|
||||
[*.js]
|
||||
indent_size = 2
|
||||
indent_style = space
|
||||
|
||||
# Less
|
||||
[*.less]
|
||||
indent_size = 2
|
||||
indent_style = space
|
||||
|
||||
# Sass
|
||||
#
|
||||
# Style used for http://libsass.com
|
||||
[*.s[ac]ss]
|
||||
indent_size = 2
|
||||
indent_style = space
|
||||
|
||||
# YAML
|
||||
#
|
||||
# Only spaces are allowed.
|
||||
[*.yaml]
|
||||
indent_size = 2
|
||||
indent_style = space
|
||||
|
||||
1
.gitattributes
vendored
@@ -1 +0,0 @@
|
||||
* text=auto
|
||||
14
.gitignore
vendored
@@ -1,5 +1,9 @@
|
||||
node_modules
|
||||
dist
|
||||
.tmp
|
||||
.sass-cache
|
||||
app/bower_components
|
||||
/.nyc_output/
|
||||
/bower_components/
|
||||
/dist/
|
||||
|
||||
npm-debug.log
|
||||
npm-debug.log.*
|
||||
|
||||
!node_modules/*
|
||||
node_modules/*/
|
||||
|
||||
24
.jshintrc
@@ -1,24 +0,0 @@
|
||||
{
|
||||
"node": true,
|
||||
"browser": true,
|
||||
"esnext": true,
|
||||
"bitwise": true,
|
||||
"camelcase": true,
|
||||
"curly": true,
|
||||
"eqeqeq": true,
|
||||
"immed": true,
|
||||
"indent": 2,
|
||||
"latedef": true,
|
||||
"newcap": true,
|
||||
"noarg": true,
|
||||
"quotmark": "single",
|
||||
"regexp": true,
|
||||
"undef": true,
|
||||
"unused": true,
|
||||
"strict": true,
|
||||
"trailing": true,
|
||||
"smarttabs": true,
|
||||
"globals": {
|
||||
"angular": false
|
||||
}
|
||||
}
|
||||
10
.npmignore
Normal file
@@ -0,0 +1,10 @@
|
||||
/examples/
|
||||
example.js
|
||||
example.js.map
|
||||
*.example.js
|
||||
*.example.js.map
|
||||
|
||||
/test/
|
||||
/tests/
|
||||
*.spec.js
|
||||
*.spec.js.map
|
||||
15
.travis.yml
@@ -1,7 +1,12 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- '0.8'
|
||||
- '0.10'
|
||||
before_script:
|
||||
- 'npm install -g bower grunt-cli'
|
||||
- 'bower install'
|
||||
- 'stable'
|
||||
#- '4' # Disabled for now because npm 2 cannot properly handled broken peer dependencies.
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- node_modules
|
||||
|
||||
# Use containers.
|
||||
# http://docs.travis-ci.com/user/workers/container-based-infrastructure/
|
||||
sudo: false
|
||||
|
||||
804
CHANGELOG.md
Normal file
@@ -0,0 +1,804 @@
|
||||
# ChangeLog
|
||||
|
||||
## **5.0.0** (2016-06-24)
|
||||
|
||||
### Enhancements
|
||||
|
||||
- Handle failed quiesce in snapshots [\#1088](https://github.com/vatesfr/xo-web/issues/1088)
|
||||
- Sparklines stats [\#1061](https://github.com/vatesfr/xo-web/issues/1061)
|
||||
- Task view [\#1060](https://github.com/vatesfr/xo-web/issues/1060)
|
||||
- Improved import system [\#1048](https://github.com/vatesfr/xo-web/issues/1048)
|
||||
- Backup restore view improvements [\#1021](https://github.com/vatesfr/xo-web/issues/1021)
|
||||
- Restore VM - Wrong VLAN on the VMs interface [\#1016](https://github.com/vatesfr/xo-web/issues/1016)
|
||||
- Fast Disk Cloning [\#960](https://github.com/vatesfr/xo-web/issues/960)
|
||||
- Disaster recovery job should target SRs, not pools [\#955](https://github.com/vatesfr/xo-web/issues/955)
|
||||
- Improve Header/Content interaction in a page [\#926](https://github.com/vatesfr/xo-web/issues/926)
|
||||
- New default view [\#912](https://github.com/vatesfr/xo-web/issues/912)
|
||||
- Xen Patching - Restart Pending [\#883](https://github.com/vatesfr/xo-web/issues/883)
|
||||
- Hide About page for user that are not admin [\#877](https://github.com/vatesfr/xo-web/issues/877)
|
||||
- ACL: Ability to view/sort/group by User/Group, Objects or Role [\#875](https://github.com/vatesfr/xo-web/issues/875)
|
||||
- ACL: Ability to select multiple users & group when creating a rule [\#874](https://github.com/vatesfr/xo-web/issues/874)
|
||||
- Translation [\#839](https://github.com/vatesfr/xo-web/issues/839)
|
||||
- XO offer useless network interfaces for XenMontion [\#833](https://github.com/vatesfr/xo-web/issues/833)
|
||||
- Show HVM, PVM, PVHVM modes in guest details [\#806](https://github.com/vatesfr/xo-web/issues/806)
|
||||
- Tree view: display cpu available/total for each host [\#696](https://github.com/vatesfr/xo-web/issues/696)
|
||||
- Greenkeeper integration [\#667](https://github.com/vatesfr/xo-web/issues/667)
|
||||
- Clarify vCPUs and RAM editor [\#658](https://github.com/vatesfr/xo-web/issues/658)
|
||||
- Backup LZ4 compression [\#647](https://github.com/vatesfr/xo-web/issues/647)
|
||||
- Support enum in plugins configuration [\#638](https://github.com/vatesfr/xo-web/issues/638)
|
||||
- Add configuration option to disable xoa-updater [\#535](https://github.com/vatesfr/xo-web/issues/535)
|
||||
- Use cursors to add more context to actions [\#523](https://github.com/vatesfr/xo-web/issues/523)
|
||||
- Review UI for flat view [\#354](https://github.com/vatesfr/xo-web/issues/354)
|
||||
- Review UI for the tree view [\#353](https://github.com/vatesfr/xo-web/issues/353)
|
||||
- Tag filtering [\#233](https://github.com/vatesfr/xo-web/issues/233)
|
||||
- GUI review [\#230](https://github.com/vatesfr/xo-web/issues/230)
|
||||
- Review UI for VM creation [\#214](https://github.com/vatesfr/xo-web/issues/214)
|
||||
- Ability to collapse pools/hosts in main view [\#173](https://github.com/vatesfr/xo-web/issues/173)
|
||||
- Issue importing .xva VM via xo-web [\#1022](https://github.com/vatesfr/xo-web/issues/1022)
|
||||
- Enhancement Proposal - Cancel In Progress Backups [\#1003](https://github.com/vatesfr/xo-web/issues/1003)
|
||||
- Can't create VM with CloudConfigDrive [\#917](https://github.com/vatesfr/xo-web/issues/917)
|
||||
- Auth: LDAP User causes problems [\#893](https://github.com/vatesfr/xo-web/issues/893)
|
||||
- No tags in Continuous Replication [\#838](https://github.com/vatesfr/xo-web/issues/838)
|
||||
- Delta backup Depth not working [\#802](https://github.com/vatesfr/xo-web/issues/802)
|
||||
- Update Section - Running version info missing - gui enhancement [\#795](https://github.com/vatesfr/xo-web/issues/795)
|
||||
- On reboot, vnc console wrongly scaled [\#722](https://github.com/vatesfr/xo-web/issues/722)
|
||||
- Make the object name \(title\) "sticky" at the top of the page [\#705](https://github.com/vatesfr/xo-web/issues/705)
|
||||
- pool view: display Local SR from hosts in the current pool [\#692](https://github.com/vatesfr/xo-web/issues/692)
|
||||
- tree view: display all IPs [\#689](https://github.com/vatesfr/xo-web/issues/689)
|
||||
- XO5 parallel distribution [\#462](https://github.com/vatesfr/xo-web/issues/462)
|
||||
- Load balancing with XO [\#423](https://github.com/vatesfr/xo-web/issues/423)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- vCPUs number when no tools installed [\#1089](https://github.com/vatesfr/xo-web/issues/1089)
|
||||
- Config Drive textbox disappears when content is deleted [\#1012](https://github.com/vatesfr/xo-web/issues/1012)
|
||||
- storage status not changed in host view page after disconnect/connect [\#1009](https://github.com/vatesfr/xo-web/issues/1009)
|
||||
- Cannot Delete Logs From Backup Overview [\#1004](https://github.com/vatesfr/xo-web/issues/1004)
|
||||
- \[v5.x\] Plugins configuration: optional non-used objects are sent [\#1000](https://github.com/vatesfr/xo-web/issues/1000)
|
||||
- "@" char in remote password break the remote view [\#997](https://github.com/vatesfr/xo-web/issues/997)
|
||||
- Handle MEMORY\_CONSTRAINT\_VIOLATION correctly [\#970](https://github.com/vatesfr/xo-web/issues/970)
|
||||
- VM creation error on XenServer Dundee [\#964](https://github.com/vatesfr/xo-web/issues/964)
|
||||
- Copy VMs doesn't display all SRs [\#945](https://github.com/vatesfr/xo-web/issues/945)
|
||||
- Autopower\_on wrong value [\#937](https://github.com/vatesfr/xo-web/issues/937)
|
||||
- Correctly handle unknown users in group view [\#900](https://github.com/vatesfr/xo-web/issues/900)
|
||||
- Importing into Dundee [\#887](https://github.com/vatesfr/xo-web/issues/887)
|
||||
- update status - gui resize issue [\#803](https://github.com/vatesfr/xo-web/issues/803)
|
||||
- Backup Remote Stores Problem [\#751](https://github.com/vatesfr/xo-web/issues/751)
|
||||
- VM view is broken when changing a disk SR twice [\#670](https://github.com/vatesfr/xo-web/issues/670)
|
||||
- console mouse sync [\#280](https://github.com/vatesfr/xo-web/issues/280)
|
||||
|
||||
## **4.16.0** (2016-04-29)
|
||||
|
||||
Maintenance release
|
||||
|
||||
### Enhancements
|
||||
|
||||
- TOO\_MANY\_PENDING\_TASKS [\#861](https://github.com/vatesfr/xo-web/issues/861)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- Incorrect VM target name with continuous replication [\#904](https://github.com/vatesfr/xo-web/issues/904)
|
||||
- Error while deleting users [\#901](https://github.com/vatesfr/xo-web/issues/901)
|
||||
- Use an available path to the SR to create a config drive [\#882](https://github.com/vatesfr/xo-web/issues/882)
|
||||
- VM autoboot don't set the right pool parameter [\#879](https://github.com/vatesfr/xo-web/issues/879)
|
||||
- BUG: ACL with NFS ISO Library not working! [\#870](https://github.com/vatesfr/xo-web/issues/870)
|
||||
- Broken paths in backups in SMB [\#865](https://github.com/vatesfr/xo-web/issues/865)
|
||||
- Plugins page loads users/groups multiple times [\#829](https://github.com/vatesfr/xo-web/issues/829)
|
||||
- "Ghost" VM remains after migration [\#769](https://github.com/vatesfr/xo-web/issues/769)
|
||||
|
||||
## **4.15.0** (2016-03-21)
|
||||
|
||||
Load balancing, SMB delta support, advanced network operations...
|
||||
|
||||
### Enhancements
|
||||
|
||||
- Add the job name inside the backup email report [\#819](https://github.com/vatesfr/xo-web/issues/819)
|
||||
- Delta backup with quiesce [\#812](https://github.com/vatesfr/xo-web/issues/812)
|
||||
- Hosts: No user feedback when error occurs with SR connect / disconnect [\#810](https://github.com/vatesfr/xo-web/issues/810)
|
||||
- Expose components versions [\#807](https://github.com/vatesfr/xo-web/issues/807)
|
||||
- Rework networks/PIFs management [\#805](https://github.com/vatesfr/xo-web/issues/805)
|
||||
- Displaying all SRs and a list of available hosts for creating VM from a pool [\#790](https://github.com/vatesfr/xo-web/issues/790)
|
||||
- Add "Source network" on "VM migration" screen [\#785](https://github.com/vatesfr/xo-web/issues/785)
|
||||
- Migration queue [\#783](https://github.com/vatesfr/xo-web/issues/783)
|
||||
- Match network names for VM migration [\#782](https://github.com/vatesfr/xo-web/issues/782)
|
||||
- Disk names [\#780](https://github.com/vatesfr/xo-web/issues/780)
|
||||
- Self service: should the user be able to set the CPU weight? [\#767](https://github.com/vatesfr/xo-web/issues/767)
|
||||
- host & pool Citrix license status [\#763](https://github.com/vatesfr/xo-web/issues/763)
|
||||
- pool view: Provide "updates" section [\#762](https://github.com/vatesfr/xo-web/issues/762)
|
||||
- XOA ISO image: ambigious root disk label [\#761](https://github.com/vatesfr/xo-web/issues/761)
|
||||
- Host info: provide system serial number [\#760](https://github.com/vatesfr/xo-web/issues/760)
|
||||
- CIFS ISO SR Creation [\#731](https://github.com/vatesfr/xo-web/issues/731)
|
||||
- MAC address not preserved on VM restore [\#707](https://github.com/vatesfr/xo-web/issues/707)
|
||||
- Failing replication job should send reports [\#659](https://github.com/vatesfr/xo-web/issues/659)
|
||||
- Display networks in the Pool view [\#226](https://github.com/vatesfr/xo-web/issues/226)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- Broken link to backup remote [\#821](https://github.com/vatesfr/xo-web/issues/821)
|
||||
- Issue with self-signed cert for email plugin [\#817](https://github.com/vatesfr/xo-web/issues/817)
|
||||
- Plugins view, reset form and errors [\#815](https://github.com/vatesfr/xo-web/issues/815)
|
||||
- HVM recovery mode is broken [\#794](https://github.com/vatesfr/xo-web/issues/794)
|
||||
- Disk bug when creating vm from template [\#778](https://github.com/vatesfr/xo-web/issues/778)
|
||||
- Can't mount NFS shares in remote stores [\#775](https://github.com/vatesfr/xo-web/issues/775)
|
||||
- VM disk name and description not passed during creation [\#774](https://github.com/vatesfr/xo-web/issues/774)
|
||||
- NFS mount problem for Windows share [\#771](https://github.com/vatesfr/xo-web/issues/771)
|
||||
- lodash.pluck not installed [\#757](https://github.com/vatesfr/xo-web/issues/757)
|
||||
- this.\_getAuthenticationTokensForUser is not a function [\#755](https://github.com/vatesfr/xo-web/issues/755)
|
||||
- CentOS 6.x 64bit template creates a VM that won't boot [\#733](https://github.com/vatesfr/xo-web/issues/733)
|
||||
- Lot of xo:perf leading to XO crash [\#575](https://github.com/vatesfr/xo-web/issues/575)
|
||||
- New collection checklist [\#262](https://github.com/vatesfr/xo-web/issues/262)
|
||||
|
||||
## **4.14.0** (2016-02-23)
|
||||
|
||||
Self service, custom CloudInit...
|
||||
|
||||
### Enhancements
|
||||
|
||||
- VM creation self service with quotas [\#285](https://github.com/vatesfr/xo-web/issues/285)
|
||||
- Cloud config custom user data [\#706](https://github.com/vatesfr/xo-web/issues/706)
|
||||
- Patches behind a proxy [\#737](https://github.com/vatesfr/xo-web/issues/737)
|
||||
- Remote store status indicator [\#728](https://github.com/vatesfr/xo-web/issues/728)
|
||||
- Patch list order [\#724](https://github.com/vatesfr/xo-web/issues/724)
|
||||
- Enable reporting on additional backup types [\#717](https://github.com/vatesfr/xo-web/issues/717)
|
||||
- Tooltip name for cancel [\#703](https://github.com/vatesfr/xo-web/issues/703)
|
||||
- Portable VHD merging [\#646](https://github.com/vatesfr/xo-web/issues/646)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- Avoid merge between two delta vdi backups [\#702](https://github.com/vatesfr/xo-web/issues/702)
|
||||
- Text in table is not cut anymore [\#713](https://github.com/vatesfr/xo-web/issues/713)
|
||||
- Disk size edition issue with float numbers [\#719](https://github.com/vatesfr/xo-web/issues/719)
|
||||
- Create vm, summary is not refreshed [\#721](https://github.com/vatesfr/xo-web/issues/721)
|
||||
- Boot order problem [\#726](https://github.com/vatesfr/xo-web/issues/726)
|
||||
|
||||
## **4.13.0** (2016-02-05)
|
||||
|
||||
Backup checksum, SMB remotes...
|
||||
|
||||
### Enhancements
|
||||
|
||||
- Add SMB mount for remote [\#338](https://github.com/vatesfr/xo-web/issues/338)
|
||||
- Centralize Perm in a lib [\#345](https://github.com/vatesfr/xo-web/issues/345)
|
||||
- Expose interpool migration details [\#567](https://github.com/vatesfr/xo-web/issues/567)
|
||||
- Add checksum for delta backup [\#617](https://github.com/vatesfr/xo-web/issues/617)
|
||||
- Redirect from HTTP to HTTPS [\#626](https://github.com/vatesfr/xo-web/issues/626)
|
||||
- Expose vCPU weight [\#633](https://github.com/vatesfr/xo-web/issues/633)
|
||||
- Avoid metadata in delta backup [\#651](https://github.com/vatesfr/xo-web/issues/651)
|
||||
- Button to clear logs [\#661](https://github.com/vatesfr/xo-web/issues/661)
|
||||
- Units for RAM and disks [\#666](https://github.com/vatesfr/xo-web/issues/666)
|
||||
- Remove multiple VDIs at once [\#676](https://github.com/vatesfr/xo-web/issues/676)
|
||||
- Find orphaned VDI snapshots [\#679](https://github.com/vatesfr/xo-web/issues/679)
|
||||
- New health view in Dashboard [\#680](https://github.com/vatesfr/xo-web/issues/680)
|
||||
- Use physical usage for VDI and SR [\#682](https://github.com/vatesfr/xo-web/issues/682)
|
||||
- TLS configuration [\#685](https://github.com/vatesfr/xo-web/issues/685)
|
||||
- Better VM info on tree view [\#688](https://github.com/vatesfr/xo-web/issues/688)
|
||||
- Absolute values in tooltips for tree view [\#690](https://github.com/vatesfr/xo-web/issues/690)
|
||||
- Absolute values for host memory [\#691](https://github.com/vatesfr/xo-web/issues/691)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- Issues on host console screen [\#672](https://github.com/vatesfr/xo-web/issues/672)
|
||||
- NFS remote mount fails in particular case [\#665](https://github.com/vatesfr/xo-web/issues/665)
|
||||
- Unresponsive pages [\#662](https://github.com/vatesfr/xo-web/issues/662)
|
||||
- Live migration fail in the same pool with local SR fails [\#655](https://github.com/vatesfr/xo-web/issues/655)
|
||||
|
||||
## **4.12.0** (2016-01-18)
|
||||
|
||||
Continuous Replication, Continuous Delta backup...
|
||||
|
||||
### Enhancements
|
||||
|
||||
- Continuous VM replication [\#582](https://github.com/vatesfr/xo-web/issues/582)
|
||||
- Continuous Delta Backup [\#576](https://github.com/vatesfr/xo-web/issues/576)
|
||||
- Scheduler should not run job again if previous instance is not finished [\#642](https://github.com/vatesfr/xo-web/issues/642)
|
||||
- Boot VM automatically after creation [\#635](https://github.com/vatesfr/xo-web/issues/635)
|
||||
- Manage existing VIFs in templates [\#630](https://github.com/vatesfr/xo-web/issues/630)
|
||||
- Support templates with existing install repository [\#627](https://github.com/vatesfr/xo-web/issues/627)
|
||||
- Remove running VMs [\#616](https://github.com/vatesfr/xo-web/issues/616)
|
||||
- Prevent a VM to start before delta import is finished [\#613](https://github.com/vatesfr/xo-web/issues/613)
|
||||
- Spawn multiple VMs at once [\#606](https://github.com/vatesfr/xo-web/issues/606)
|
||||
- Fixed `suspendVM` in tree view. [\#619](https://github.com/vatesfr/xo-web/pull/619) ([pdonias](https://github.com/pdonias))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- User defined MAC address is not fetch in VM install [\#643](https://github.com/vatesfr/xo-web/issues/643)
|
||||
- CoreOsCloudConfig is not shown with CoreOS [\#639](https://github.com/vatesfr/xo-web/issues/639)
|
||||
- Plugin activation/deactivation in web UI seems broken [\#637](https://github.com/vatesfr/xo-web/issues/637)
|
||||
- Issue when creating CloudConfig drive [\#636](https://github.com/vatesfr/xo-web/issues/636)
|
||||
- CloudConfig hostname shouldn't have space [\#634](https://github.com/vatesfr/xo-web/issues/634)
|
||||
- Cloned VIFs are not properly deleted on VM creation [\#632](https://github.com/vatesfr/xo-web/issues/632)
|
||||
- Default PV args missing during VM creation [\#628](https://github.com/vatesfr/xo-web/issues/628)
|
||||
- VM creation problems from custom templates [\#625](https://github.com/vatesfr/xo-web/issues/625)
|
||||
- Emergency shutdown race condition [\#622](https://github.com/vatesfr/xo-web/issues/622)
|
||||
- `vm.delete\(\)` should not delete VDIs attached to other VMs [\#621](https://github.com/vatesfr/xo-web/issues/621)
|
||||
- VM creation error from template with a disk [\#581](https://github.com/vatesfr/xo-web/issues/581)
|
||||
- Only delete VDI exports when VM backup is successful [\#644](https://github.com/vatesfr/xo-web/issues/644)
|
||||
- Change the name of an imported VM during the import process [\#641](https://github.com/vatesfr/xo-web/issues/641)
|
||||
- Creating a new VIF in view is partially broken [\#652](https://github.com/vatesfr/xo-web/issues/652)
|
||||
- Grey out the "create button" during VM creation [\#654](https://github.com/vatesfr/xo-web/issues/654)
|
||||
|
||||
## **4.11.0** (2015-12-22)
|
||||
|
||||
Delta backup, CloudInit...
|
||||
|
||||
### Enhancements
|
||||
|
||||
- Visible list of SR inside a VM [\#601](https://github.com/vatesfr/xo-web/issues/601)
|
||||
- VDI move [\#591](https://github.com/vatesfr/xo-web/issues/591)
|
||||
- Edit pre-existing disk configuration during VM creation [\#589](https://github.com/vatesfr/xo-web/issues/589)
|
||||
- Allow disk size edition [\#587](https://github.com/vatesfr/xo-web/issues/587)
|
||||
- Better VDI resize support [\#585](https://github.com/vatesfr/xo-web/issues/585)
|
||||
- Remove manual VM export metadata in UI [\#580](https://github.com/vatesfr/xo-web/issues/580)
|
||||
- Support import VM metadata [\#579](https://github.com/vatesfr/xo-web/issues/579)
|
||||
- Set a default pool SR [\#572](https://github.com/vatesfr/xo-web/issues/572)
|
||||
- ISOs should be sorted by name [\#565](https://github.com/vatesfr/xo-web/issues/565)
|
||||
- Button to boot a VM from a disc once [\#564](https://github.com/vatesfr/xo-web/issues/564)
|
||||
- Ability to boot a PV VM from a disc [\#563](https://github.com/vatesfr/xo-web/issues/563)
|
||||
- Add an option to manually run backup jobs [\#562](https://github.com/vatesfr/xo-web/issues/562)
|
||||
- backups to unmounted storage [\#561](https://github.com/vatesfr/xo-web/issues/561)
|
||||
- Root integer properties cannot be edited in plugins configuration form [\#550](https://github.com/vatesfr/xo-web/issues/550)
|
||||
- Generic CloudConfig drive [\#549](https://github.com/vatesfr/xo-web/issues/549)
|
||||
- Auto-discovery of installed xo-server plugins [\#546](https://github.com/vatesfr/xo-web/issues/546)
|
||||
- Hide info on flat view [\#545](https://github.com/vatesfr/xo-web/issues/545)
|
||||
- Config plugin boolean properties must have a default value \(undefined prohibited\) [\#543](https://github.com/vatesfr/xo-web/issues/543)
|
||||
- Present detailed errors on plugin configuration failures [\#530](https://github.com/vatesfr/xo-web/issues/530)
|
||||
- Do not reset form on failures in plugins configuration [\#529](https://github.com/vatesfr/xo-web/issues/529)
|
||||
- XMPP alert plugin [\#518](https://github.com/vatesfr/xo-web/issues/518)
|
||||
- Hide tag adders depending on ACLs [\#516](https://github.com/vatesfr/xo-web/issues/516)
|
||||
- Choosing a framework for xo-web 5 [\#514](https://github.com/vatesfr/xo-web/issues/514)
|
||||
- Prevent adding a host in an existing XAPI connection [\#466](https://github.com/vatesfr/xo-web/issues/466)
|
||||
- Read only connection to Xen servers/pools [\#439](https://github.com/vatesfr/xo-web/issues/439)
|
||||
- generic notification system [\#391](https://github.com/vatesfr/xo-web/issues/391)
|
||||
- Data architecture review [\#384](https://github.com/vatesfr/xo-web/issues/384)
|
||||
- Make filtering easier to understand/add some "default" filters [\#207](https://github.com/vatesfr/xo-web/issues/207)
|
||||
- Improve performance [\#148](https://github.com/vatesfr/xo-web/issues/148)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- VM metadata export should not require a snapshot [\#615](https://github.com/vatesfr/xo-web/issues/615)
|
||||
- Missing patch for all hosts is continuously refreshed [\#609](https://github.com/vatesfr/xo-web/issues/609)
|
||||
- Backup import memory issue [\#608](https://github.com/vatesfr/xo-web/issues/608)
|
||||
- Host list missing patch is buggy [\#604](https://github.com/vatesfr/xo-web/issues/604)
|
||||
- Servers infos should not been refreshed while a field is being edited [\#595](https://github.com/vatesfr/xo-web/issues/595)
|
||||
- Servers list should not been re-order while a field is being edited [\#594](https://github.com/vatesfr/xo-web/issues/594)
|
||||
- Correctly display size in interface \(binary scale\) [\#592](https://github.com/vatesfr/xo-web/issues/592)
|
||||
- Display failures on VM boot order modification [\#560](https://github.com/vatesfr/xo-web/issues/560)
|
||||
- `vm.setBootOrder\(\)` should throw errors on failures \(non-HVM VMs\) [\#559](https://github.com/vatesfr/xo-web/issues/559)
|
||||
- Hide boot order form for non-HVM VMs [\#558](https://github.com/vatesfr/xo-web/issues/558)
|
||||
- Allow editing PV args even when empty \(but only for PV VMs\) [\#557](https://github.com/vatesfr/xo-web/issues/557)
|
||||
- Crashes when using legacy event system [\#556](https://github.com/vatesfr/xo-web/issues/556)
|
||||
- XenServer patches check error for 6.1 [\#555](https://github.com/vatesfr/xo-web/issues/555)
|
||||
- activation plugin xo-server-transport-email [\#553](https://github.com/vatesfr/xo-web/issues/553)
|
||||
- Server error with JSON on 32 bits Dom0 [\#552](https://github.com/vatesfr/xo-web/issues/552)
|
||||
- Cloud Config drive shouldn't be created on default SR [\#548](https://github.com/vatesfr/xo-web/issues/548)
|
||||
- Deep properties cannot be edited in plugins configuration form [\#521](https://github.com/vatesfr/xo-web/issues/521)
|
||||
- Aborted VM export should cancel the operation [\#490](https://github.com/vatesfr/xo-web/issues/490)
|
||||
- VM missing with same UUID after an inter-pool migration [\#284](https://github.com/vatesfr/xo-web/issues/284)
|
||||
|
||||
## **4.10.0** (2015-11-27)
|
||||
|
||||
Job management, email notifications, CoreOS/Docker, Quiesce snapshots...
|
||||
|
||||
### Enhancements
|
||||
|
||||
- Job management ([xo-web#487](https://github.com/vatesfr/xo-web/issues/487))
|
||||
- Patch upload on all connected servers ([xo-web#168](https://github.com/vatesfr/xo-web/issues/168))
|
||||
- Emergency shutdown ([xo-web#185](https://github.com/vatesfr/xo-web/issues/185))
|
||||
- CoreOS/docker template install ([xo-web#246](https://github.com/vatesfr/xo-web/issues/246))
|
||||
- Email for backups ([xo-web#308](https://github.com/vatesfr/xo-web/issues/308))
|
||||
- Console Clipboard ([xo-web#408](https://github.com/vatesfr/xo-web/issues/408))
|
||||
- Logs from CLI ([xo-web#486](https://github.com/vatesfr/xo-web/issues/486))
|
||||
- Save disconnected servers ([xo-web#489](https://github.com/vatesfr/xo-web/issues/489))
|
||||
- Snapshot with quiesce ([xo-web#491](https://github.com/vatesfr/xo-web/issues/491))
|
||||
- Start VM in reovery mode ([xo-web#495](https://github.com/vatesfr/xo-web/issues/495))
|
||||
- Username in logs ([xo-web#498](https://github.com/vatesfr/xo-web/issues/498))
|
||||
- Delete associated tokens with user ([xo-web#500](https://github.com/vatesfr/xo-web/issues/500))
|
||||
- Validate plugin configuration ([xo-web#503](https://github.com/vatesfr/xo-web/issues/503))
|
||||
- Avoid non configured plugins to be loaded ([xo-web#504](https://github.com/vatesfr/xo-web/issues/504))
|
||||
- Verbose API logs if configured ([xo-web#505](https://github.com/vatesfr/xo-web/issues/505))
|
||||
- Better backup overview ([xo-web#512](https://github.com/vatesfr/xo-web/issues/512))
|
||||
- VM auto power on ([xo-web#519](https://github.com/vatesfr/xo-web/issues/519))
|
||||
- Title property supported in config schema ([xo-web#522](https://github.com/vatesfr/xo-web/issues/522))
|
||||
- Start VM export only when necessary ([xo-web#534](https://github.com/vatesfr/xo-web/issues/534))
|
||||
- Input type should be number ([xo-web#538](https://github.com/vatesfr/xo-web/issues/538))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- Numbers/int support in plugins config ([xo-web#531](https://github.com/vatesfr/xo-web/issues/531))
|
||||
- Boolean support in plugins config ([xo-web#528](https://github.com/vatesfr/xo-web/issues/528))
|
||||
- Keyboard unusable outside console ([xo-web#513](https://github.com/vatesfr/xo-web/issues/513))
|
||||
- UsernameField for SAML ([xo-web#513](https://github.com/vatesfr/xo-web/issues/513))
|
||||
- Wrong display of "no plugin found" ([xo-web#508](https://github.com/vatesfr/xo-web/issues/508))
|
||||
- Bower build error ([xo-web#488](https://github.com/vatesfr/xo-web/issues/488))
|
||||
- VM cloning should require SR permission ([xo-web#472](https://github.com/vatesfr/xo-web/issues/472))
|
||||
- Xen tools status ([xo-web#471](https://github.com/vatesfr/xo-web/issues/471))
|
||||
- Can't delete ghost user ([xo-web#464](https://github.com/vatesfr/xo-web/issues/464))
|
||||
- Stats with old versions of Node ([xo-web#463](https://github.com/vatesfr/xo-web/issues/463))
|
||||
|
||||
## **4.9.0** (2015-11-13)
|
||||
|
||||
Automated DR, restore backup, VM copy
|
||||
|
||||
### Enhancements
|
||||
|
||||
- DR: schedule VM export on other host ([xo-web#447](https://github.com/vatesfr/xo-web/issues/447))
|
||||
- Scheduler logs ([xo-web#390](https://github.com/vatesfr/xo-web/issues/390) and [xo-web#477](https://github.com/vatesfr/xo-web/issues/477))
|
||||
- Restore backups ([xo-web#450](https://github.com/vatesfr/xo-web/issues/350))
|
||||
- Disable backup compression ([xo-web#467](https://github.com/vatesfr/xo-web/issues/467))
|
||||
- Copy VM to another SR (even remote) ([xo-web#475](https://github.com/vatesfr/xo-web/issues/475))
|
||||
- VM stats without time sync ([xo-web#460](https://github.com/vatesfr/xo-web/issues/460))
|
||||
- Stats perfs for high CPU numbers ([xo-web#461](https://github.com/vatesfr/xo-web/issues/461))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- Rolling backup bug ([xo-web#484](https://github.com/vatesfr/xo-web/issues/484))
|
||||
- vCPUs/CPUs inversion in dashboard ([xo-web#481](https://github.com/vatesfr/xo-web/issues/481))
|
||||
- Machine to template ([xo-web#459](https://github.com/vatesfr/xo-web/issues/459))
|
||||
|
||||
### Misc
|
||||
|
||||
- Console fix in XenServer ([xo-web#406](https://github.com/vatesfr/xo-web/issues/406))
|
||||
|
||||
## **4.8.0** (2015-10-29)
|
||||
|
||||
Fully automated patch system, ACLs inheritance, stats performance improved.
|
||||
|
||||
### Enhancements
|
||||
|
||||
- ACLs inheritance ([xo-web#279](https://github.com/vatesfr/xo-web/issues/279))
|
||||
- Patch automatically all missing updates ([xo-web#281](https://github.com/vatesfr/xo-web/issues/281))
|
||||
- Intelligent stats polling ([xo-web#432](https://github.com/vatesfr/xo-web/issues/432))
|
||||
- Cache latest result of stats request ([xo-web#431](https://github.com/vatesfr/xo-web/issues/431))
|
||||
- Improve stats polling on multiple objects ([xo-web#433](https://github.com/vatesfr/xo-web/issues/433))
|
||||
- Patch upload task should display the patch name ([xo-web#449](https://github.com/vatesfr/xo-web/issues/449))
|
||||
- Backup filename for Windows ([xo-web#448](https://github.com/vatesfr/xo-web/issues/448))
|
||||
- Specific distro icons ([xo-web#446](https://github.com/vatesfr/xo-web/issues/446))
|
||||
- PXE boot for HVM ([xo-web#436](https://github.com/vatesfr/xo-web/issues/436))
|
||||
- Favicon display before sign in ([xo-web#428](https://github.com/vatesfr/xo-web/issues/428))
|
||||
- Registration renewal ([xo-web#424](https://github.com/vatesfr/xo-web/issues/424))
|
||||
- Reconnect to the host if pool merge fails ([xo-web#403](https://github.com/vatesfr/xo-web/issues/403))
|
||||
- Avoid brute force login ([xo-web#339](https://github.com/vatesfr/xo-web/issues/339))
|
||||
- Missing FreeBSD icon ([xo-web#136](https://github.com/vatesfr/xo-web/issues/136))
|
||||
- Hide halted objects in the Health view ([xo-web#457](https://github.com/vatesfr/xo-web/issues/457))
|
||||
- Click on "Remember me" label ([xo-web#438](https://github.com/vatesfr/xo-web/issues/438))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- Pool patches in multiple pools not displayed ([xo-web#442](https://github.com/vatesfr/xo-web/issues/442))
|
||||
- VM Import crashes with Chrome ([xo-web#427](https://github.com/vatesfr/xo-web/issues/427))
|
||||
- Cannot open a direct link ([xo-web#371](https://github.com/vatesfr/xo-web/issues/371))
|
||||
- Patch display edge case ([xo-web#309](https://github.com/vatesfr/xo-web/issues/309))
|
||||
- VM snapshot should require user permission on SR ([xo-web#429](https://github.com/vatesfr/xo-web/issues/429))
|
||||
|
||||
## **4.7.0** (2015-10-12)
|
||||
|
||||
Plugin config management and browser notifications.
|
||||
|
||||
### Enhancements
|
||||
|
||||
- Plugin management in the web interface ([xo-web#352](https://github.com/vatesfr/xo-web/issues/352))
|
||||
- Browser notifications ([xo-web#402](https://github.com/vatesfr/xo-web/issues/402))
|
||||
- Graph selector ([xo-web#400](https://github.com/vatesfr/xo-web/issues/400))
|
||||
- Circle packing visualization ([xo-web#374](https://github.com/vatesfr/xo-web/issues/374))
|
||||
- Password generation ([xo-web#397](https://github.com/vatesfr/xo-web/issues/397))
|
||||
- Password reveal during user creation ([xo-web#396](https://github.com/vatesfr/xo-web/issues/396))
|
||||
- Add host to a pool ([xo-web#62](https://github.com/vatesfr/xo-web/issues/62))
|
||||
- Better modal when removing a host from a pool ([xo-web#405](https://github.com/vatesfr/xo-web/issues/405))
|
||||
- Drop focus on CD/ISO selector ([xo-web#290](https://github.com/vatesfr/xo-web/issues/290))
|
||||
- Allow non persistent session ([xo-web#243](https://github.com/vatesfr/xo-web/issues/243))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- VM export permission corrected ([xo-web#410](https://github.com/vatesfr/xo-web/issues/410))
|
||||
- Proper host removal in a pool ([xo-web#402](https://github.com/vatesfr/xo-web/issues/402))
|
||||
- Sub-optimal tooltip placement ([xo-web#421](https://github.com/vatesfr/xo-web/issues/421))
|
||||
- VM migrate host incorrect target ([xo-web#419](https://github.com/vatesfr/xo-web/issues/419))
|
||||
- Alone host can't leave its pool ([xo-web#414](https://github.com/vatesfr/xo-web/issues/414))
|
||||
|
||||
## **4.6.0** (2015-09-25)
|
||||
|
||||
Tags management and new visualization.
|
||||
|
||||
### Enhancements
|
||||
|
||||
- Multigraph for correlation ([xo-web#358](https://github.com/vatesfr/xo-web/issues/358))
|
||||
- Tags management ([xo-web#367](https://github.com/vatesfr/xo-web/issues/367))
|
||||
- Google Provider for authentication ([xo-web#363](https://github.com/vatesfr/xo-web/issues/363))
|
||||
- Password change for users ([xo-web#362](https://github.com/vatesfr/xo-web/issues/362))
|
||||
- Better live migration process ([xo-web#237](https://github.com/vatesfr/xo-web/issues/237))
|
||||
- VDI search filter in SR view ([xo-web#222](https://github.com/vatesfr/xo-web/issues/222))
|
||||
- PV args during VM creation ([xo-web#112](https://github.com/vatesfr/xo-web/issues/330))
|
||||
- PV args management ([xo-web#394](https://github.com/vatesfr/xo-web/issues/394))
|
||||
- Confirmation dialog on important actions ([xo-web#350](https://github.com/vatesfr/xo-web/issues/350))
|
||||
- New favicon ([xo-web#369](https://github.com/vatesfr/xo-web/issues/369))
|
||||
- Filename of VM for exports ([xo-web#370](https://github.com/vatesfr/xo-web/issues/370))
|
||||
- ACLs rights edited on the fly ([xo-web#323](https://github.com/vatesfr/xo-web/issues/323))
|
||||
- Heatmap values now human readable ([xo-web#342](https://github.com/vatesfr/xo-web/issues/342))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- Export backup fails if no tags specified ([xo-web#383](https://github.com/vatesfr/xo-web/issues/383))
|
||||
- Wrong login give an obscure error message ([xo-web#373](https://github.com/vatesfr/xo-web/issues/373))
|
||||
- Update view is broken during updates ([xo-web#356](https://github.com/vatesfr/xo-web/issues/356))
|
||||
- Settings/dashboard menu incorrect display ([xo-web#357](https://github.com/vatesfr/xo-web/issues/357))
|
||||
- Console View Not refreshing if the VM restart ([xo-web#107](https://github.com/vatesfr/xo-web/issues/107))
|
||||
|
||||
## **4.5.1** (2015-09-16)
|
||||
|
||||
An issue in `xo-web` with the VM view.
|
||||
|
||||
### Bug fix
|
||||
|
||||
- Attach disk/new disk/create interface is broken ([xo-web#378](https://github.com/vatesfr/xo-web/issues/378))
|
||||
|
||||
## **4.5.0** (2015-09-11)
|
||||
|
||||
A new dataviz (parallel coord), a new provider (GitHub) and faster consoles.
|
||||
|
||||
### Enhancements
|
||||
|
||||
- Parallel coordinates view ([xo-web#333](https://github.com/vatesfr/xo-web/issues/333))
|
||||
- Faster consoles ([xo-web#337](https://github.com/vatesfr/xo-web/issues/337))
|
||||
- Disable/hide button ([xo-web#268](https://github.com/vatesfr/xo-web/issues/268))
|
||||
- More details on missing-guest-tools ([xo-web#304](https://github.com/vatesfr/xo-web/issues/304))
|
||||
- Scheduler meta data export ([xo-web#315](https://github.com/vatesfr/xo-web/issues/315))
|
||||
- Better heatmap ([xo-web#330](https://github.com/vatesfr/xo-web/issues/330))
|
||||
- Faster dashboard ([xo-web#331](https://github.com/vatesfr/xo-web/issues/331))
|
||||
- Faster sunburst ([xo-web#332](https://github.com/vatesfr/xo-web/issues/332))
|
||||
- GitHub provider for auth ([xo-web#334](https://github.com/vatesfr/xo-web/issues/334))
|
||||
- Filter networks for users ([xo-web#347](https://github.com/vatesfr/xo-web/issues/347))
|
||||
- Add networks in ACLs ([xo-web#348](https://github.com/vatesfr/xo-web/issues/348))
|
||||
- Better looking login page ([xo-web#341](https://github.com/vatesfr/xo-web/issues/341))
|
||||
- Real time dataviz (dashboard) ([xo-web#349](https://github.com/vatesfr/xo-web/issues/349))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- Typo in dashboard ([xo-web#355](https://github.com/vatesfr/xo-web/issues/355))
|
||||
- Global RAM usage fix ([xo-web#356](https://github.com/vatesfr/xo-web/issues/356))
|
||||
- Re-allowing XO behind a reverse proxy ([xo-web#361](https://github.com/vatesfr/xo-web/issues/361))
|
||||
|
||||
## **4.4.0** (2015-08-28)
|
||||
|
||||
SSO and Dataviz are the main features for this release.
|
||||
|
||||
### Enhancements
|
||||
|
||||
- Dataviz storage usage ([xo-web#311](https://github.com/vatesfr/xo-web/issues/311))
|
||||
- Heatmap in health view ([xo-web#329](https://github.com/vatesfr/xo-web/issues/329))
|
||||
- SSO for SAML and other providers ([xo-web#327](https://github.com/vatesfr/xo-web/issues/327))
|
||||
- Better UI for ACL objects attribution ([xo-web#320](https://github.com/vatesfr/xo-web/issues/320))
|
||||
- Refresh the browser after an update ([xo-web#318](https://github.com/vatesfr/xo-web/issues/318))
|
||||
- Clean CSS and Flexbox usage ([xo-web#239](https://github.com/vatesfr/xo-web/issues/239))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- Admin only accessible views ([xo-web#328](https://github.com/vatesfr/xo-web/issues/328))
|
||||
- Hide "base copy" VDIs ([xo-web#324](https://github.com/vatesfr/xo-web/issues/324))
|
||||
- ACLs on VIFs for non-admins ([xo-web#322](https://github.com/vatesfr/xo-web/issues/322))
|
||||
- Updater display problems ([xo-web#313](https://github.com/vatesfr/xo-web/issues/313))
|
||||
|
||||
## **4.3.0** (2015-07-22)
|
||||
|
||||
Scheduler for rolling backups
|
||||
|
||||
### Enhancements
|
||||
|
||||
- Rolling backup scheduler ([xo-web#278](https://github.com/vatesfr/xo-web/issues/278))
|
||||
- Clean snapshots of removed VMs ([xo-web#301](https://github.com/vatesfr/xo-web/issues/301))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- VM export ([xo-web#307](https://github.com/vatesfr/xo-web/issues/307))
|
||||
- Remove VM VDIs ([xo-web#303](https://github.com/vatesfr/xo-web/issues/303))
|
||||
- Pagination fails ([xo-web#302](https://github.com/vatesfr/xo-web/issues/302))
|
||||
|
||||
## **4.2.0** (2015-06-29)
|
||||
|
||||
Huge performance boost, scheduler for rolling snapshots and backward compatibility for XS 5.x series
|
||||
|
||||
### Enhancements
|
||||
|
||||
- Rolling snapshots scheduler ([xo-web#176](https://github.com/vatesfr/xo-web/issues/176))
|
||||
- Huge perf boost ([xen-api#1](https://github.com/julien-f/js-xen-api/issues/1))
|
||||
- Backward compatibility ([xo-web#296](https://github.com/vatesfr/xo-web/issues/296))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- VDI attached on a VM missing in SR view ([xo-web#294](https://github.com/vatesfr/xo-web/issues/294))
|
||||
- Better VM creation process ([xo-web#292](https://github.com/vatesfr/xo-web/issues/292))
|
||||
|
||||
## **4.1.0** (2015-06-10)
|
||||
|
||||
Add the drag'n drop support from VM live migration, better ACLs groups UI.
|
||||
|
||||
### Enhancements
|
||||
|
||||
- Drag'n drop VM in tree view for live migration ([xo-web#277](https://github.com/vatesfr/xo-web/issues/277))
|
||||
- Better group view with objects ACLs ([xo-web#276](https://github.com/vatesfr/xo-web/issues/276))
|
||||
- Hide non-visible objects ([xo-web#272](https://github.com/vatesfr/xo-web/issues/272))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- Convert to template displayed when the VM is not halted ([xo-web#286](https://github.com/vatesfr/xo-web/issues/286))
|
||||
- Lost some data when refresh some views ([xo-web#271](https://github.com/vatesfr/xo-web/issues/271))
|
||||
- Suspend button don't trigger any permission message ([xo-web#270](https://github.com/vatesfr/xo-web/issues/270))
|
||||
- Create network interfaces shouldn't call xoApi directly ([xo-web#269](https://github.com/vatesfr/xo-web/issues/269))
|
||||
- Don't plug automatically a disk or a VIF if the VM is not running ([xo-web#287](https://github.com/vatesfr/xo-web/issues/287))
|
||||
|
||||
## **4.0.2** (2015-06-01)
|
||||
|
||||
An issue in `xo-server` with the password of default admin account and also a UI fix.
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- Cannot modify admin account ([xo-web#265](https://github.com/vatesfr/xo-web/issues/265))
|
||||
- Password field seems to keep empty/reset itself after 1-2 seconds ([xo-web#264](https://github.com/vatesfr/xo-web/issues/264))
|
||||
|
||||
## **4.0.1** (2015-05-30)
|
||||
|
||||
An issue with the updater in HTTPS was left in the *4.0.0*. This patch release fixed
|
||||
it.
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- allow updater to work in HTTPS ([xo-web#266](https://github.com/vatesfr/xo-web/issues/266))
|
||||
|
||||
## **4.0.0** (2015-05-29)
|
||||
|
||||
[Blog post of this release](https://xen-orchestra.com/blog/xen-orchestra-4-0).
|
||||
|
||||
### Enhancements
|
||||
|
||||
- advanced ACLs ([xo-web#209](https://github.com/vatesfr/xo-web/issues/209))
|
||||
- xenserver update management ([xo-web#174](https://github.com/vatesfr/xo-web/issues/174) & [xo-web#259](https://github.com/vatesfr/xo-web/issues/259))
|
||||
- docker control ([xo-web#211](https://github.com/vatesfr/xo-web/issues/211))
|
||||
- better responsive design ([xo-web#252](https://github.com/vatesfr/xo-web/issues/252))
|
||||
- host stats ([xo-web#255](https://github.com/vatesfr/xo-web/issues/255))
|
||||
- pagination ([xo-web#221](https://github.com/vatesfr/xo-web/issues/221))
|
||||
- web updater
|
||||
- better VM creation process([xo-web#256](https://github.com/vatesfr/xo-web/issues/256))
|
||||
- VM boot order([xo-web#251](https://github.com/vatesfr/xo-web/issues/251))
|
||||
- new mapped collection([xo-server#47](https://github.com/vatesfr/xo-server/issues/47))
|
||||
- resource location in ACL view ([xo-web#245](https://github.com/vatesfr/xo-web/issues/245))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- wrong calulation of RAM amounts ([xo-web#51](https://github.com/vatesfr/xo-web/issues/51))
|
||||
- checkbox not aligned ([xo-web#253](https://github.com/vatesfr/xo-web/issues/253))
|
||||
- VM stats behavior more robust ([xo-web#250](https://github.com/vatesfr/xo-web/issues/250))
|
||||
- XO not on the root of domain ([xo-web#254](https://github.com/vatesfr/xo-web/issues/254))
|
||||
|
||||
|
||||
## **3.9.1** (2015-04-21)
|
||||
|
||||
A few bugs hve made their way into *3.9.0*, this minor release fixes
|
||||
them.
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- correctly keep the VM guest metrics up to date ([xo-web#172](https://github.com/vatesfr/xo-web/issues/172))
|
||||
- fix edition of a VM snapshot ([b04111c](https://github.com/vatesfr/xo-server/commit/b04111c79ba8937778b84cb861bb7c2431162c11))
|
||||
- do not fetch stats if the VM state is transitioning ([a5c9880](https://github.com/vatesfr/xo-web/commit/a5c98803182792d2fe5ceb840ae1e23a8b767923))
|
||||
- fix broken Angular due to new version of Babel which breaks ngAnnotate ([0a9c868](https://github.com/vatesfr/xo-web/commit/0a9c868678d239e5b3e54b4d2bc3bd14b5400120))
|
||||
- feedback when connecting/disconnecting a server ([027d1e8](https://github.com/vatesfr/xo-web/commit/027d1e8cb1f2431e67042e1eec51690b2bc54ad7))
|
||||
- clearer error message if a server is unreachable ([06ca007](https://github.com/vatesfr/xo-server/commit/06ca0079b321e757aaa4112caa6f92a43193e35d))
|
||||
|
||||
## **3.9.0** (2015-04-20)
|
||||
|
||||
[Blog post of this release](https://xen-orchestra.com/blog/xen-orchestra-3-9).
|
||||
|
||||
### Enhancements
|
||||
|
||||
- ability to manually connect/disconnect a server ([xo-web#88](https://github.com/vatesfr/xo-web/issues/88) & [xo-web#234](https://github.com/vatesfr/xo-web/issues/234))
|
||||
- display the connection status of a server ([xo-web#103](https://github.com/vatesfr/xo-web/issues/103))
|
||||
- better feedback when connecting to a server ([xo-web#210](https://github.com/vatesfr/xo-web/issues/210))
|
||||
- ability to add a local LVM SR ([xo-web#219](https://github.com/vatesfr/xo-web/issues/219))
|
||||
- display virtual GPUs in VM view ([xo-web#223](https://github.com/vatesfr/xo-web/issues/223))
|
||||
- ability to automatically start a VM with its host ([xo-web#224](https://github.com/vatesfr/xo-web/issues/224))
|
||||
- ability to create networks ([xo-web#225](https://github.com/vatesfr/xo-web/issues/225))
|
||||
- live charts for a VM CPU/disk/network & RAM ([xo-web#228](https://github.com/vatesfr/xo-web/issues/228) & [xo-server#51](https://github.com/vatesfr/xo-server/issues/51))
|
||||
- remove VM import progress notifications (redundant with the tasks list) ([xo-web#235](https://github.com/vatesfr/xo-web/issues/235))
|
||||
- XO-Server sources are compiled to JS prior distribution: less bugs & faster startups ([xo-server#50](https://github.com/vatesfr/xo-server/issues/50))
|
||||
- use XAPI `event.from()` instead of `event.next()` which leads to faster connection ([xo-server#52](https://github.com/vatesfr/xo-server/issues/52))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- removed servers are properly disconnected ([xo-web#61](https://github.com/vatesfr/xo-web/issues/61))
|
||||
- fix VM creation with multiple interfaces ([xo-wb#229](https://github.com/vatesfr/xo-wb/issues/229))
|
||||
- disconnected servers are properly removed from the interface ([xo-web#234](https://github.com/vatesfr/xo-web/issues/234))
|
||||
|
||||
## **3.8.0** (2015-03-27)
|
||||
|
||||
[Blog post of this release](https://xen-orchestra.com/blog/xen-orchestra-3-8).
|
||||
|
||||
### Enhancements
|
||||
|
||||
- initial plugin system ([xo-server#37](https://github.com/vatesfr/xo-server/issues/37))
|
||||
- new authentication system based on providers ([xo-server#39](https://github.com/vatesfr/xo-server/issues/39))
|
||||
- LDAP authentication plugin for XO-Server ([xo-server#40](https://github.com/vatesfr/xo-server/issues/40))
|
||||
- disk creation on the VM page ([xo-web#215](https://github.com/vatesfr/xo-web/issues/215))
|
||||
- network creation on the VM page ([xo-web#216](https://github.com/vatesfr/xo-web/issues/216))
|
||||
- charts on the host and SR pages ([xo-web#217](https://github.com/vatesfr/xo-web/issues/217))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- fix *Invalid parameter(s)* message on the settings page ([xo-server#49](https://github.com/vatesfr/xo-server/issues/49))
|
||||
- fix mouse clicks in console ([xo-web#205](https://github.com/vatesfr/xo-web/issues/205))
|
||||
- fix user editing on the settings page ([xo-web#206](https://github.com/vatesfr/xo-web/issues/206))
|
||||
|
||||
## **3.7.0** (2015-03-06)
|
||||
|
||||
*Highlights in this release are the [initial ACLs implementation](https://xen-orchestra.com/blog/xen-orchestra-3-7-is-out-acls-in-early-access), [live migration for VDIs](https://xen-orchestra.com/blog/moving-vdi-in-live) and the ability to [create a new storage repository](https://xen-orchestra.com/blog/create-a-storage-repository-with-xen-orchestra/).*
|
||||
|
||||
### Enhancements
|
||||
|
||||
- ability to live migrate a VM between hosts with different CPUs ([xo-web#126](https://github.com/vatesfr/xo-web/issues/126))
|
||||
- ability to live migrate a VDI ([xo-web#177](https://github.com/vatesfr/xo-web/issues/177))
|
||||
- display a notification on VM creation ([xo-web#178](https://github.com/vatesfr/xo-web/issues/178))
|
||||
- ability to create/attach a iSCSI/NFS/ISO SR ([xo-web#179](https://github.com/vatesfr/xo-web/issues/179))
|
||||
- display SR available space on VM creation ([xo-web#180](https://github.com/vatesfr/xo-web/issues/180))
|
||||
- ability to enable and disable host on the tree view ([xo-web#181](https://github.com/vatesfr/xo-web/issues/181) & [xo-web#182](https://github.com/vatesfr/xo-web/issues/182))
|
||||
- ability to suspend/resume a VM ([xo-web#186](https://github.com/vatesfr/xo-web/issues/186))
|
||||
- display Linux icon for SUSE Linux Enterprise Server distribution ([xo-web#187](https://github.com/vatesfr/xo-web/issues/187))
|
||||
- correctly handle incorrectly formated token in cookies ([xo-web#192](https://github.com/vatesfr/xo-web/issues/192))
|
||||
- display host manufacturer in host view ([xo-web#195](https://github.com/vatesfr/xo-web/issues/195))
|
||||
- only display task concerning authorized objects ([xo-web#197](https://github.com/vatesfr/xo-web/issues/197))
|
||||
- better welcome message ([xo-web#199](https://github.com/vatesfr/xo-web/issues/199))
|
||||
- initial ACLs ([xo-web#202](https://github.com/vatesfr/xo-web/issues/202))
|
||||
- display an action panel to rescan, remove, attach and forget a SR ([xo-web#203](https://github.com/vatesfr/xo-web/issues/203))
|
||||
- display current active tasks in navbar ([xo-web#204](https://github.com/vatesfr/xo-web/issues/204))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- implements a proxy which fixes consoles over HTTPs ([xo#14](https://github.com/vatesfr/xo/issues/14))
|
||||
- fix tasks listing in host view ([xo-server#43](https://github.com/vatesfr/xo-server/issues/43))
|
||||
- fix console view on IE ([xo-web#184](https://github.com/vatesfr/xo-web/issues/184))
|
||||
- fix out of sync objects in XO-Web ([xo-web#142](https://github.com/vatesfr/xo-web/issues/142))
|
||||
- fix incorrect connection status displayed in login view ([xo-web#193](https://github.com/vatesfr/xo-web/issues/193))
|
||||
- fix *flickering* tree view ([xo-web#194](https://github.com/vatesfr/xo-web/issues/194))
|
||||
- single host pools should not have a dropdown menu in tree view ([xo-web#198](https://github.com/vatesfr/xo-web/issues/198))
|
||||
|
||||
## **3.6.0** (2014-11-28)
|
||||
|
||||
### Enhancements
|
||||
|
||||
- upload and apply patches to hosts/pools ([xo-web#150](https://github.com/vatesfr/xo-web/issues/150))
|
||||
- import VMs ([xo-web#151](https://github.com/vatesfr/xo-web/issues/151))
|
||||
- export VMs ([xo-web#152](https://github.com/vatesfr/xo-web/issues/152))
|
||||
- migrate VMs to another pool ([xo-web#153](https://github.com/vatesfr/xo-web/issues/153))
|
||||
- display pool even for single host ([xo-web#155](https://github.com/vatesfr/xo-web/issues/155))
|
||||
- start halted hosts with wake-on-LAN ([xo-web#154](https://github.com/vatesfr/xo-web/issues/154))
|
||||
- list of uploaded/applied patches ([xo-web#156](https://github.com/vatesfr/xo-web/issues/156))
|
||||
- use Angular 1.3 from npm ([xo-web#157](https://github.com/vatesfr/xo-web/issues/157) & [xo-web#160](https://github.com/vatesfr/xo-web/issues/160))
|
||||
- more feedbacks on actions ([xo-web#165](https://github.com/vatesfr/xo-web/issues/165))
|
||||
- only buttons compatible with VM states are displayed ([xo-web#166](https://github.com/vatesfr/xo-web/issues/166))
|
||||
- export VM snapshot ([xo-web#167](https://github.com/vatesfr/xo-web/issues/167))
|
||||
- plug/unplug a SR to a host ([xo-web#169](https://github.com/vatesfr/xo-web/issues/169))
|
||||
- plug a SR to all available hosts ([xo-web#170](https://github.com/vatesfr/xo-web/issues/170))
|
||||
- disks editing on SR page ([xo-web#171](https://github.com/vatesfr/xo-web/issues/171))
|
||||
- export of running VMs ([xo-server#36](https://github.com/vatesfr/xo-server/issues/36))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- disks editing on VM page should work ([xo-web#86](https://github.com/vatesfr/xo-web/issues/86))
|
||||
- dropdown menus should close after selecting an item ([xo-web#140](https://github.com/vatesfr/xo-web/issues/140))
|
||||
- user creation should require a password ([xo-web#143](https://github.com/vatesfr/xo-web/issues/143))
|
||||
- server connection should require a user and a password ([xo-web#144](https://github.com/vatesfr/xo-web/issues/144))
|
||||
- snapshot deletion should work ([xo-server#147](https://github.com/vatesfr/xo-server/issues/147))
|
||||
- VM console should work in Chrome ([xo-web#149](https://github.com/vatesfr/xo-web/issues/149))
|
||||
- tooltips should work ([xo-web#163](https://github.com/vatesfr/xo-web/issues/163))
|
||||
- disk plugged status should be automatically refreshed ([xo-web#164](https://github.com/vatesfr/xo-web/issues/164))
|
||||
- deleting users without tokens should not trigger an error ([xo-server#34](https://github.com/vatesfr/xo-server/issues/34))
|
||||
- live pool master change should work ([xo-server#20](https://github.com/vatesfr/xo-server/issues/20))
|
||||
|
||||
## **3.5.1** (2014-08-19)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- pool view works again ([#139](https://github.com/vatesfr/xo-web/issues/139))
|
||||
|
||||
## **3.5.0** (2014-08-14)
|
||||
|
||||
*[XO-Web](https://www.npmjs.org/package/xo-web) and [XO-Server](https://www.npmjs.org/package/xo-server) are now available as npm packages!*
|
||||
|
||||
### Enhancements
|
||||
|
||||
- XO-Server published on npm ([#26](https://github.com/vatesfr/xo-server/issues/26))
|
||||
- XO-Server config is now in `/etc/xo-server/config.yaml` ([#33](https://github.com/vatesfr/xo-server/issues/33))
|
||||
- paths in XO-Server's config are now relative to the config file ([#19](https://github.com/vatesfr/xo-server/issues/19))
|
||||
- use the Linux icon for Fedora ([#131](https://github.com/vatesfr/xo-web/issues/131))
|
||||
- start/stop/reboot buttons on console page ([#121](https://github.com/vatesfr/xo-web/issues/121))
|
||||
- settings page now only accessible to admin ([#77](https://github.com/vatesfr/xo-web/issues/77))
|
||||
- redirection to the home page when a VM is deleted from its own page ([#56](https://github.com/vatesfr/xo-web/issues/56))
|
||||
- XO-Web published on npm ([#123](https://github.com/vatesfr/xo-web/issues/123))
|
||||
- buid process now use Browserify (([#125](https://github.com/vatesfr/xo-web/issues/125), [#135](https://github.com/vatesfr/xo-web/issues/135)))
|
||||
- view are now written in Jade instead of HTML ([#124](https://github.com/vatesfr/xo-web/issues/124))
|
||||
- CSS autoprefixer to improve compatibility ([#132](https://github.com/vatesfr/xo-web/issues/132), [#137](https://github.com/vatesfr/xo-web/issues/137))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- force shutdown does not attempt a clean shutdown first anymore ([#29](https://github.com/vatesfr/xo-server/issues/29))
|
||||
- shutdown hosts are now correctly reported as such ([#31](https://github.com/vatesfr/xo-web/issues/31))
|
||||
- incorrect VM metrics ([#54](https://github.com/vatesfr/xo-web/issues/54), [#68](https://github.com/vatesfr/xo-web/issues/68), [#108](https://github.com/vatesfr/xo-web/issues/108))
|
||||
- an user cannot delete itself ([#104](https://github.com/vatesfr/xo-web/issues/104))
|
||||
- in VM creation, required fields are now marked as such ([#113](https://github.com/vatesfr/xo-web/issues/113), [#114](https://github.com/vatesfr/xo-web/issues/114))
|
||||
|
||||
## **3.4.0** (2014-05-22)
|
||||
|
||||
*Highlight in this release is the new events system between XO-Web
|
||||
and XO-Server which results in less bandwidth consumption as well as
|
||||
better performance and reactivity.*
|
||||
|
||||
### Enhancements
|
||||
|
||||
- events system between XO-Web and XO-Server ([#52](https://github.com/vatesfr/xo-web/issues/52))
|
||||
- ability to clone/copy a VM ([#116](https://github.com/vatesfr/xo-web/issues/116))
|
||||
- mandatory log in page ([#120](https://github.com/vatesfr/xo-web/issues/120))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- failure in VM creation ([#111](https://github.com/vatesfr/xo-web/issues/111))
|
||||
|
||||
## **3.3.1** (2014-03-28)
|
||||
|
||||
### Enhancements
|
||||
|
||||
- console view is now prettier ([#92](https://github.com/vatesfr/xo-web/issues/92))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- VM creation fails to incorrect dependencies ([xo-server/#24](https://github.com/vatesfr/xo-server/issues/24))
|
||||
- VDIs list in SR view is blinking ([#109](https://github.com/vatesfr/xo-web/issues/109))
|
||||
|
||||
## **3.3.0** (2014-03-07)
|
||||
|
||||
### Enhancements
|
||||
|
||||
- [Grunt](http://gruntjs.com/) has been replaced by [gulp.js](http://gulpjs.com/) ([#91](https://github.com/vatesfr/xo-web/issues/91))
|
||||
- a host can be detached from a pool ([#98](https://github.com/vatesfr/xo-web/issues/98))
|
||||
- snapshots management in VM view ([#99](https://github.com/vatesfr/xo-web/issues/99))
|
||||
- log deletion in VM view ([#100](https://github.com/vatesfr/xo-web/issues/100))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- *Snapshot* not working in VM view ([#95](https://github.com/vatesfr/xo-web/issues/95))
|
||||
- Host *Reboot*/*Restart toolstack*/*Shutdown* not working in main view ([#97](https://github.com/vatesfr/xo-web/issues/97))
|
||||
- Bower cannot install `angular` automatically due to a version conflict ([#101](https://github.com/vatesfr/xo-web/issues/101))
|
||||
- Bower installs an incorrect version of `angular-animate` ([#102](https://github.com/vatesfr/xo-web/issues/102))
|
||||
|
||||
## **3.2.0** (2014-02-21)
|
||||
|
||||
### Enhancements
|
||||
|
||||
- dependencies' versions should be fixed to ease deployment ([#93](https://github.com/vatesfr/xo-web/issues/93))
|
||||
- badges added to the README to see whether dependencies are up to date ([#90](https://github.com/vatesfr/xo-web/issues/90))
|
||||
- an error notification has been added when the connection to XO-Server failed ([#89](https://github.com/vatesfr/xo-web/issues/89))
|
||||
- in host view, there is now a link to the host console ([#87](https://github.com/vatesfr/xo-web/issues/87))
|
||||
- in VM view, deleting a disk requires a confirmation ([#85](https://github.com/vatesfr/xo-web/issues/85))
|
||||
- the VM and console icons are now different ([#80](https://github.com/vatesfr/xo-web/issues/80))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- consoles now work in Google Chrome \o/ ([#46](https://github.com/vatesfr/xo-web/issues/46))
|
||||
- in host view, many buttons were not working ([#79](https://github.com/vatesfr/xo-web/issues/79))
|
||||
- in main view, incorrect icons were fixes ([#81](https://github.com/vatesfr/xo-web/issues/81))
|
||||
- MAC addresses should not be ignored during VM creation ([#94](https://github.com/vatesfr/xo-web/issues/94))
|
||||
|
||||
## **3.1.0** (2014-02-14)
|
||||
|
||||
### Enhancements
|
||||
|
||||
- in VM view, interfaces' network should be displayed ([#64](https://github.com/vatesfr/xo-web/issues/64))
|
||||
- middle-click or `Ctrl`+click should open new windows (even on pseudo-links) ([#66](https://github.com/vatesfr/xo-web/issues/66))
|
||||
- lists should use natural sorting (e.g. *VM 2* before *VM 10*) ([#69](https://github.com/vatesfr/xo-web/issues/69))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- consoles are not implemented for hosts ([#57](https://github.com/vatesfr/xo-web/issues/57))
|
||||
- it makes no sense to remove a stand-alone host from a pool (58)
|
||||
- in VM view, the migrate button is not working ([#59](https://github.com/vatesfr/xo-web/issues/59))
|
||||
- pool and host names overflow their box in the main view ([#63](https://github.com/vatesfr/xo-web/issues/63))
|
||||
- in host view, interfaces incorrectly named *networks* and VLAN not shown ([#70](https://github.com/vatesfr/xo-web/issues/70))
|
||||
- VM suspended state is not properly handled ([#71](https://github.com/vatesfr/xo-web/issues/71))
|
||||
- unauthenticated users should not be able to access to consoles ([#73](https://github.com/vatesfr/xo-web/issues/73))
|
||||
- incorrect scroll (under the navbar) when the view changes ([#74](https://github.com/vatesfr/xo-web/issues/74))
|
||||
410
Gruntfile.js
@@ -1,410 +0,0 @@
|
||||
// Generated on 2013-11-12 using generator-angular 0.6.0-rc.1
|
||||
'use strict';
|
||||
|
||||
// # Globbing
|
||||
// for performance reasons we're only matching one level down:
|
||||
// 'test/spec/{,*/}*.js'
|
||||
// use this if you want to recursively match all subfolders:
|
||||
// 'test/spec/**/*.js'
|
||||
|
||||
module.exports = function (grunt) {
|
||||
require('load-grunt-tasks')(grunt);
|
||||
require('time-grunt')(grunt);
|
||||
|
||||
grunt.initConfig({
|
||||
|
||||
// Defines some variables.
|
||||
yeoman: {
|
||||
// configurable paths
|
||||
app: require('./bower.json').appPath || 'app',
|
||||
dist: 'dist'
|
||||
},
|
||||
|
||||
// Runs appropriate tasks whenever a file changes.
|
||||
watch: {
|
||||
coffee: {
|
||||
files: ['<%= yeoman.app %>/scripts/{,*/}*.coffee'],
|
||||
tasks: ['coffee:dist']
|
||||
},
|
||||
coffeeTest: {
|
||||
files: ['test/spec/{,*/}*.coffee'],
|
||||
tasks: ['coffee:test']
|
||||
},
|
||||
compass: {
|
||||
files: ['<%= yeoman.app %>/styles/{,*/}*.{scss,sass}'],
|
||||
tasks: ['compass:server', 'autoprefixer']
|
||||
},
|
||||
styles: {
|
||||
files: ['<%= yeoman.app %>/styles/{,*/}*.css'],
|
||||
tasks: ['copy:styles', 'autoprefixer']
|
||||
},
|
||||
livereload: {
|
||||
options: {
|
||||
livereload: '<%= connect.options.livereload %>'
|
||||
},
|
||||
files: [
|
||||
'<%= yeoman.app %>/{,*/}*.html',
|
||||
'.tmp/styles/{,*/}*.css',
|
||||
'{.tmp,<%= yeoman.app %>}/scripts/{,*/}*.js',
|
||||
'<%= yeoman.app %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}'
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
// Automatically prefixes CSS rules.
|
||||
autoprefixer: {
|
||||
options: ['last 1 version'],
|
||||
dist: {
|
||||
files: [{
|
||||
expand: true,
|
||||
cwd: '.tmp/styles/',
|
||||
src: '{,*/}*.css',
|
||||
dest: '.tmp/styles/'
|
||||
}]
|
||||
}
|
||||
},
|
||||
|
||||
// Starts an HTTP server.
|
||||
connect: {
|
||||
options: {
|
||||
port: 9000,
|
||||
// Change this to '0.0.0.0' to access the server from outside.
|
||||
hostname: 'localhost',
|
||||
livereload: 35729
|
||||
},
|
||||
livereload: {
|
||||
options: {
|
||||
base: [
|
||||
'.tmp',
|
||||
'<%= yeoman.app %>'
|
||||
]
|
||||
}
|
||||
},
|
||||
test: {
|
||||
options: {
|
||||
port: 9001,
|
||||
base: [
|
||||
'.tmp',
|
||||
'test',
|
||||
'<%= yeoman.app %>'
|
||||
]
|
||||
}
|
||||
},
|
||||
dist: {
|
||||
options: {
|
||||
base: '<%= yeoman.dist %>'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
// Deletes dirty files before build.
|
||||
clean: {
|
||||
dist: {
|
||||
files: [{
|
||||
dot: true,
|
||||
src: [
|
||||
'.tmp',
|
||||
'<%= yeoman.dist %>/*',
|
||||
'!<%= yeoman.dist %>/.git*'
|
||||
]
|
||||
}]
|
||||
},
|
||||
server: '.tmp'
|
||||
},
|
||||
|
||||
// Checks JavaScript files for errors and potential problems.
|
||||
jshint: {
|
||||
options: {
|
||||
jshintrc: '.jshintrc',
|
||||
reporter: require('jshint-stylish')
|
||||
},
|
||||
all: [
|
||||
'Gruntfile.js',
|
||||
'<%= yeoman.app %>/scripts/{,*/}*.js'
|
||||
]
|
||||
},
|
||||
|
||||
// Compiles CoffeeScript files to JavaScript.
|
||||
coffee: {
|
||||
options: {
|
||||
sourceMap: true,
|
||||
sourceRoot: ''
|
||||
},
|
||||
dist: {
|
||||
files: [{
|
||||
expand: true,
|
||||
cwd: '<%= yeoman.app %>/scripts',
|
||||
src: '{,*/}*.coffee',
|
||||
dest: '.tmp/scripts',
|
||||
ext: '.js'
|
||||
}]
|
||||
},
|
||||
test: {
|
||||
files: [{
|
||||
expand: true,
|
||||
cwd: 'test/spec',
|
||||
src: '{,*/}*.coffee',
|
||||
dest: '.tmp/spec',
|
||||
ext: '.js'
|
||||
}]
|
||||
}
|
||||
},
|
||||
|
||||
// Compiles SASS/SCSS files to CSS using Compass.
|
||||
compass: {
|
||||
options: {
|
||||
sassDir: '<%= yeoman.app %>/styles',
|
||||
cssDir: '.tmp/styles',
|
||||
generatedImagesDir: '.tmp/images/generated',
|
||||
imagesDir: '<%= yeoman.app %>/images',
|
||||
javascriptsDir: '<%= yeoman.app %>/scripts',
|
||||
fontsDir: '<%= yeoman.app %>/fonts',
|
||||
importPath: '<%= yeoman.app %>/bower_components',
|
||||
httpImagesPath: '/images',
|
||||
httpGeneratedImagesPath: '/images/generated',
|
||||
httpFontsPath: '/fonts',
|
||||
relativeAssets: false
|
||||
},
|
||||
dist: {},
|
||||
server: {
|
||||
options: {
|
||||
debugInfo: true
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
// not used since Uglify task does concat,
|
||||
// but still available if needed
|
||||
/*concat: {
|
||||
dist: {}
|
||||
},*/
|
||||
|
||||
// Adds assets hash to their filename (useful for caching).
|
||||
rev: {
|
||||
dist: {
|
||||
files: {
|
||||
src: [
|
||||
'<%= yeoman.dist %>/scripts/{,*/}*.js',
|
||||
'<%= yeoman.dist %>/styles/{,*/}*.css',
|
||||
'<%= yeoman.dist %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}',
|
||||
'<%= yeoman.dist %>/styles/fonts/*'
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
//
|
||||
useminPrepare: {
|
||||
html: '<%= yeoman.app %>/index.html',
|
||||
options: {
|
||||
dest: '<%= yeoman.dist %>'
|
||||
}
|
||||
},
|
||||
|
||||
//
|
||||
usemin: {
|
||||
html: ['<%= yeoman.dist %>/{,*/}*.html'],
|
||||
css: ['<%= yeoman.dist %>/styles/{,*/}*.css'],
|
||||
options: {
|
||||
assetsDirs: ['<%= yeoman.dist %>']
|
||||
}
|
||||
},
|
||||
|
||||
// Compresses PNG and JPG images.
|
||||
imagemin: {
|
||||
dist: {
|
||||
files: [{
|
||||
expand: true,
|
||||
cwd: '<%= yeoman.app %>/images',
|
||||
src: '{,*/}*.{png,jpg,jpeg}',
|
||||
dest: '<%= yeoman.dist %>/images'
|
||||
}]
|
||||
}
|
||||
},
|
||||
|
||||
// Compresses SVG images.
|
||||
svgmin: {
|
||||
dist: {
|
||||
files: [{
|
||||
expand: true,
|
||||
cwd: '<%= yeoman.app %>/images',
|
||||
src: '{,*/}*.svg',
|
||||
dest: '<%= yeoman.dist %>/images'
|
||||
}]
|
||||
}
|
||||
},
|
||||
|
||||
// Compresses CSS stylesheets.
|
||||
cssmin: {
|
||||
// By default, your `index.html` <!-- Usemin Block --> will take care of
|
||||
// minification. This option is pre-configured if you do not wish to use
|
||||
// Usemin blocks.
|
||||
// dist: {
|
||||
// files: {
|
||||
// '<%= yeoman.dist %>/styles/main.css': [
|
||||
// '.tmp/styles/{,*/}*.css',
|
||||
// '<%= yeoman.app %>/styles/{,*/}*.css'
|
||||
// ]
|
||||
// }
|
||||
// }
|
||||
},
|
||||
|
||||
// Compresses HTML pages.
|
||||
htmlmin: {
|
||||
dist: {
|
||||
options: {
|
||||
/*removeCommentsFromCDATA: true,
|
||||
// https://github.com/yeoman/grunt-usemin/issues/44
|
||||
//collapseWhitespace: true,
|
||||
collapseBooleanAttributes: true,
|
||||
removeAttributeQuotes: true,
|
||||
removeRedundantAttributes: true,
|
||||
useShortDoctype: true,
|
||||
removeEmptyAttributes: true,
|
||||
removeOptionalTags: true*/
|
||||
},
|
||||
files: [{
|
||||
expand: true,
|
||||
cwd: '<%= yeoman.app %>',
|
||||
src: ['*.html', 'views/*.html'],
|
||||
dest: '<%= yeoman.dist %>'
|
||||
}]
|
||||
}
|
||||
},
|
||||
|
||||
// Put files not handled in other tasks here
|
||||
copy: {
|
||||
dist: {
|
||||
files: [{
|
||||
expand: true,
|
||||
dot: true,
|
||||
cwd: '<%= yeoman.app %>',
|
||||
dest: '<%= yeoman.dist %>',
|
||||
src: [
|
||||
'*.{ico,png,txt}',
|
||||
'.htaccess',
|
||||
'bower_components/**/*',
|
||||
'images/{,*/}*.{gif,webp}',
|
||||
'fonts/*'
|
||||
]
|
||||
}, {
|
||||
expand: true,
|
||||
cwd: '.tmp/images',
|
||||
dest: '<%= yeoman.dist %>/images',
|
||||
src: [
|
||||
'generated/*'
|
||||
]
|
||||
}]
|
||||
},
|
||||
styles: {
|
||||
expand: true,
|
||||
cwd: '<%= yeoman.app %>/styles',
|
||||
dest: '.tmp/styles/',
|
||||
src: '{,*/}*.css'
|
||||
}
|
||||
},
|
||||
|
||||
// Runs some tasks concurrently.
|
||||
concurrent: {
|
||||
server: [
|
||||
'coffee:dist',
|
||||
'compass:server',
|
||||
'copy:styles'
|
||||
],
|
||||
test: [
|
||||
'coffee',
|
||||
'compass',
|
||||
'copy:styles'
|
||||
],
|
||||
dist: [
|
||||
'coffee',
|
||||
'compass:dist',
|
||||
'copy:styles',
|
||||
'imagemin',
|
||||
'svgmin',
|
||||
'htmlmin'
|
||||
]
|
||||
},
|
||||
|
||||
// Runs the test configuration.
|
||||
karma: {
|
||||
unit: {
|
||||
configFile: 'karma.conf.js',
|
||||
singleRun: true
|
||||
}
|
||||
},
|
||||
|
||||
// Updates HTML pages to use Google CDN for assets when possible.
|
||||
cdnify: {
|
||||
dist: {
|
||||
html: ['<%= yeoman.dist %>/*.html']
|
||||
}
|
||||
},
|
||||
|
||||
// Ensures the Angular code will still work after minification.
|
||||
ngmin: {
|
||||
dist: {
|
||||
files: [{
|
||||
expand: true,
|
||||
cwd: '.tmp/concat/scripts',
|
||||
src: '*.js',
|
||||
dest: '.tmp/concat/scripts'
|
||||
}]
|
||||
}
|
||||
},
|
||||
|
||||
// Minifies JavaScript files.
|
||||
uglify: {
|
||||
dist: {
|
||||
files: {
|
||||
'<%= yeoman.dist %>/scripts/scripts.js': [
|
||||
'<%= yeoman.dist %>/scripts/scripts.js'
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
grunt.registerTask('server', 'Runs a web server.', function (target) {
|
||||
if (target === 'dist') {
|
||||
return grunt.task.run(['build', 'connect:dist:keepalive']);
|
||||
}
|
||||
|
||||
grunt.task.run([
|
||||
'clean:server',
|
||||
'concurrent:server',
|
||||
'autoprefixer',
|
||||
'connect:livereload',
|
||||
'watch'
|
||||
]);
|
||||
});
|
||||
|
||||
grunt.registerTask('test', 'Runs the application\'s tests.', [
|
||||
'clean:server',
|
||||
'concurrent:test',
|
||||
'autoprefixer',
|
||||
'connect:test',
|
||||
'karma'
|
||||
]);
|
||||
|
||||
grunt.registerTask('build', 'Builds the application for distribution.', [
|
||||
'clean:dist',
|
||||
'useminPrepare',
|
||||
'concurrent:dist',
|
||||
'autoprefixer',
|
||||
'concat',
|
||||
'ngmin',
|
||||
'copy:dist',
|
||||
'cdnify',
|
||||
'cssmin',
|
||||
'uglify',
|
||||
'rev',
|
||||
'usemin'
|
||||
]);
|
||||
|
||||
grunt.registerTask('default', 'Tests and build the application.', [
|
||||
'jshint',
|
||||
'test',
|
||||
'build'
|
||||
]);
|
||||
};
|
||||
28
ISSUE_TEMPLATE.md
Normal file
@@ -0,0 +1,28 @@
|
||||
<!--
|
||||
Welcome to the issue section of Xen Orchestra!
|
||||
|
||||
Here you can:
|
||||
- report an issue
|
||||
- propose an enhancement
|
||||
- ask a question
|
||||
|
||||
The template below is only a proposition for your ticket, feel free to
|
||||
change it as appropriate :)
|
||||
-->
|
||||
|
||||
### Context
|
||||
|
||||
- **XO version**: XO appliance / `stable` branch / `next-release` branch
|
||||
|
||||
If from the sources:
|
||||
|
||||
- **Component**: xo-web / xo-server / *unknown*
|
||||
- **Node/npm version**: *just execute `npm version`*
|
||||
|
||||
### Expected behavior
|
||||
|
||||
<!-- What you expect to happen -->
|
||||
|
||||
### Current behavior
|
||||
|
||||
<!-- What is actually happening -->
|
||||
661
LICENSE
Normal file
@@ -0,0 +1,661 @@
|
||||
GNU AFFERO GENERAL PUBLIC LICENSE
|
||||
Version 3, 19 November 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU Affero General Public License is a free, copyleft license for
|
||||
software and other kinds of works, specifically designed to ensure
|
||||
cooperation with the community in the case of network server software.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
our General Public Licenses are intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
Developers that use our General Public Licenses protect your rights
|
||||
with two steps: (1) assert copyright on the software, and (2) offer
|
||||
you this License which gives you legal permission to copy, distribute
|
||||
and/or modify the software.
|
||||
|
||||
A secondary benefit of defending all users' freedom is that
|
||||
improvements made in alternate versions of the program, if they
|
||||
receive widespread use, become available for other developers to
|
||||
incorporate. Many developers of free software are heartened and
|
||||
encouraged by the resulting cooperation. However, in the case of
|
||||
software used on network servers, this result may fail to come about.
|
||||
The GNU General Public License permits making a modified version and
|
||||
letting the public access it on a server without ever releasing its
|
||||
source code to the public.
|
||||
|
||||
The GNU Affero General Public License is designed specifically to
|
||||
ensure that, in such cases, the modified source code becomes available
|
||||
to the community. It requires the operator of a network server to
|
||||
provide the source code of the modified version running there to the
|
||||
users of that server. Therefore, public use of a modified version, on
|
||||
a publicly accessible server, gives the public access to the source
|
||||
code of the modified version.
|
||||
|
||||
An older license, called the Affero General Public License and
|
||||
published by Affero, was designed to accomplish similar goals. This is
|
||||
a different license, not a version of the Affero GPL, but Affero has
|
||||
released a new version of the Affero GPL which permits relicensing under
|
||||
this license.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU Affero General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Remote Network Interaction; Use with the GNU General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, if you modify the
|
||||
Program, your modified version must prominently offer all users
|
||||
interacting with it remotely through a computer network (if your version
|
||||
supports such interaction) an opportunity to receive the Corresponding
|
||||
Source of your version by providing access to the Corresponding Source
|
||||
from a network server at no charge, through some standard or customary
|
||||
means of facilitating copying of software. This Corresponding Source
|
||||
shall include the Corresponding Source for any work covered by version 3
|
||||
of the GNU General Public License that is incorporated pursuant to the
|
||||
following paragraph.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the work with which it is combined will remain governed by version
|
||||
3 of the GNU General Public License.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU Affero General Public License from time to time. Such new versions
|
||||
will be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU Affero General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU Affero General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU Affero General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as published
|
||||
by the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If your software can interact with users remotely through a computer
|
||||
network, you should also make sure that it provides a way for users to
|
||||
get its source. For example, if your program is a web application, its
|
||||
interface could display a "Source" link that leads users to an archive
|
||||
of the code. There are many ways you could offer source, and different
|
||||
solutions will be better for different programs; see section 13 for the
|
||||
specific requirements.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU AGPL, see
|
||||
<http://www.gnu.org/licenses/>.
|
||||
80
README.md
@@ -1,15 +1,91 @@
|
||||
# Xen Orchestra Web
|
||||
# Xen Orchestra Web [](https://travis-ci.org/vatesfr/xo-web)
|
||||
|
||||

|
||||
|
||||
XO-Web is part of [Xen Orchestra](https://github.com/vatesfr/xo), a web interface for XenServer or XAPI enabled hosts.
|
||||
|
||||
It is a web client for [XO-Server](https://github.com/vatesfr/xo-server).
|
||||
|
||||
___
|
||||
|
||||
## Installation
|
||||
|
||||
Ask us on *freenode/#vates* or wait for updates ;)
|
||||
XOA or manual install procedure is [available here](https://github.com/vatesfr/xo/blob/master/doc/installation/README.md)
|
||||
|
||||
## Compilation
|
||||
|
||||
Production build:
|
||||
|
||||
```
|
||||
$ npm run build
|
||||
```
|
||||
|
||||
Development build:
|
||||
|
||||
```
|
||||
$ npm run dev
|
||||
```
|
||||
|
||||
### Environment
|
||||
|
||||
#### `NODE_ENV`
|
||||
|
||||
Set to *production* it disables many checks which result in increased
|
||||
performance.
|
||||
|
||||
#### `XOA_PLAN`
|
||||
|
||||
- 1: Free
|
||||
- 2: Starter
|
||||
- 3: Enterprise
|
||||
- 4: Premium
|
||||
- 5: Sources
|
||||
|
||||
```js
|
||||
if (process.env.XOA_PLAN < 5) {
|
||||
console.log('included only in XOA')
|
||||
}
|
||||
|
||||
if (process.env.XOA_PLAN > 3) {
|
||||
console.log('included only in Premium and Sources')
|
||||
}
|
||||
```
|
||||
|
||||
## How to report a bug?
|
||||
|
||||
If you are certain the bug is exclusively related to XO-Web, you may use the [bugtracker of this repository](https://github.com/vatesfr/xo-web/issues).
|
||||
|
||||
Otherwise, please consider using the [bugtracker of the general repository](https://github.com/vatesfr/xo/issues).
|
||||
|
||||
## Process for new release
|
||||
|
||||
```bash
|
||||
# Switch to the stable branch.
|
||||
git checkout stable
|
||||
|
||||
# Fetches latest changes.
|
||||
git pull --ff-only
|
||||
|
||||
# Merge changes of the next-release branch.
|
||||
git merge next-release
|
||||
|
||||
# Increment the version (patch, minor or major).
|
||||
npm version minor
|
||||
|
||||
# Go back to the next-release branch.
|
||||
git checkout next-release
|
||||
|
||||
# Fetches the last changes (the merge and version bump) from stable to
|
||||
# next-release.
|
||||
git merge --ff-only stable
|
||||
|
||||
# Push the changes on git.
|
||||
git push --follow-tags origin stable next-release
|
||||
|
||||
# Publish this release to npm.
|
||||
npm publish
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
AGPL3 © [Vates SAS](http://vates.fr)
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
*.coffee
|
||||
543
app/.htaccess
@@ -1,543 +0,0 @@
|
||||
# Apache Configuration File
|
||||
|
||||
# (!) Using `.htaccess` files slows down Apache, therefore, if you have access
|
||||
# to the main server config file (usually called `httpd.conf`), you should add
|
||||
# this logic there: http://httpd.apache.org/docs/current/howto/htaccess.html.
|
||||
|
||||
# ##############################################################################
|
||||
# # CROSS-ORIGIN RESOURCE SHARING (CORS) #
|
||||
# ##############################################################################
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# | Cross-domain AJAX requests |
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# Enable cross-origin AJAX requests.
|
||||
# http://code.google.com/p/html5security/wiki/CrossOriginRequestSecurity
|
||||
# http://enable-cors.org/
|
||||
|
||||
# <IfModule mod_headers.c>
|
||||
# Header set Access-Control-Allow-Origin "*"
|
||||
# </IfModule>
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# | CORS-enabled images |
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# Send the CORS header for images when browsers request it.
|
||||
# https://developer.mozilla.org/en/CORS_Enabled_Image
|
||||
# http://blog.chromium.org/2011/07/using-cross-domain-images-in-webgl-and.html
|
||||
# http://hacks.mozilla.org/2011/11/using-cors-to-load-webgl-textures-from-cross-domain-images/
|
||||
|
||||
<IfModule mod_setenvif.c>
|
||||
<IfModule mod_headers.c>
|
||||
<FilesMatch "\.(gif|ico|jpe?g|png|svg|svgz|webp)$">
|
||||
SetEnvIf Origin ":" IS_CORS
|
||||
Header set Access-Control-Allow-Origin "*" env=IS_CORS
|
||||
</FilesMatch>
|
||||
</IfModule>
|
||||
</IfModule>
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# | Web fonts access |
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# Allow access from all domains for web fonts
|
||||
|
||||
<IfModule mod_headers.c>
|
||||
<FilesMatch "\.(eot|font.css|otf|ttc|ttf|woff)$">
|
||||
Header set Access-Control-Allow-Origin "*"
|
||||
</FilesMatch>
|
||||
</IfModule>
|
||||
|
||||
|
||||
# ##############################################################################
|
||||
# # ERRORS #
|
||||
# ##############################################################################
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# | 404 error prevention for non-existing redirected folders |
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# Prevent Apache from returning a 404 error for a rewrite if a directory
|
||||
# with the same name does not exist.
|
||||
# http://httpd.apache.org/docs/current/content-negotiation.html#multiviews
|
||||
# http://www.webmasterworld.com/apache/3808792.htm
|
||||
|
||||
Options -MultiViews
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# | Custom error messages / pages |
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# You can customize what Apache returns to the client in case of an error (see
|
||||
# http://httpd.apache.org/docs/current/mod/core.html#errordocument), e.g.:
|
||||
|
||||
ErrorDocument 404 /404.html
|
||||
|
||||
|
||||
# ##############################################################################
|
||||
# # INTERNET EXPLORER #
|
||||
# ##############################################################################
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# | Better website experience |
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# Force IE to render pages in the highest available mode in the various
|
||||
# cases when it may not: http://hsivonen.iki.fi/doctype/ie-mode.pdf.
|
||||
|
||||
<IfModule mod_headers.c>
|
||||
Header set X-UA-Compatible "IE=edge"
|
||||
# `mod_headers` can't match based on the content-type, however, we only
|
||||
# want to send this header for HTML pages and not for the other resources
|
||||
<FilesMatch "\.(appcache|crx|css|eot|gif|htc|ico|jpe?g|js|m4a|m4v|manifest|mp4|oex|oga|ogg|ogv|otf|pdf|png|safariextz|svg|svgz|ttf|vcf|webapp|webm|webp|woff|xml|xpi)$">
|
||||
Header unset X-UA-Compatible
|
||||
</FilesMatch>
|
||||
</IfModule>
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# | Cookie setting from iframes |
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# Allow cookies to be set from iframes in IE.
|
||||
|
||||
# <IfModule mod_headers.c>
|
||||
# Header set P3P "policyref=\"/w3c/p3p.xml\", CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\""
|
||||
# </IfModule>
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# | Screen flicker |
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# Stop screen flicker in IE on CSS rollovers (this only works in
|
||||
# combination with the `ExpiresByType` directives for images from below).
|
||||
|
||||
# BrowserMatch "MSIE" brokenvary=1
|
||||
# BrowserMatch "Mozilla/4.[0-9]{2}" brokenvary=1
|
||||
# BrowserMatch "Opera" !brokenvary
|
||||
# SetEnvIf brokenvary 1 force-no-vary
|
||||
|
||||
|
||||
# ##############################################################################
|
||||
# # MIME TYPES AND ENCODING #
|
||||
# ##############################################################################
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# | Proper MIME types for all files |
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
<IfModule mod_mime.c>
|
||||
|
||||
# Audio
|
||||
AddType audio/mp4 m4a f4a f4b
|
||||
AddType audio/ogg oga ogg
|
||||
|
||||
# JavaScript
|
||||
# Normalize to standard type (it's sniffed in IE anyways):
|
||||
# http://tools.ietf.org/html/rfc4329#section-7.2
|
||||
AddType application/javascript js jsonp
|
||||
AddType application/json json
|
||||
|
||||
# Video
|
||||
AddType video/mp4 mp4 m4v f4v f4p
|
||||
AddType video/ogg ogv
|
||||
AddType video/webm webm
|
||||
AddType video/x-flv flv
|
||||
|
||||
# Web fonts
|
||||
AddType application/font-woff woff
|
||||
AddType application/vnd.ms-fontobject eot
|
||||
|
||||
# Browsers usually ignore the font MIME types and sniff the content,
|
||||
# however, Chrome shows a warning if other MIME types are used for the
|
||||
# following fonts.
|
||||
AddType application/x-font-ttf ttc ttf
|
||||
AddType font/opentype otf
|
||||
|
||||
# Make SVGZ fonts work on iPad:
|
||||
# https://twitter.com/FontSquirrel/status/14855840545
|
||||
AddType image/svg+xml svg svgz
|
||||
AddEncoding gzip svgz
|
||||
|
||||
# Other
|
||||
AddType application/octet-stream safariextz
|
||||
AddType application/x-chrome-extension crx
|
||||
AddType application/x-opera-extension oex
|
||||
AddType application/x-shockwave-flash swf
|
||||
AddType application/x-web-app-manifest+json webapp
|
||||
AddType application/x-xpinstall xpi
|
||||
AddType application/xml atom rdf rss xml
|
||||
AddType image/webp webp
|
||||
AddType image/x-icon ico
|
||||
AddType text/cache-manifest appcache manifest
|
||||
AddType text/vtt vtt
|
||||
AddType text/x-component htc
|
||||
AddType text/x-vcard vcf
|
||||
|
||||
</IfModule>
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# | UTF-8 encoding |
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# Use UTF-8 encoding for anything served as `text/html` or `text/plain`.
|
||||
AddDefaultCharset utf-8
|
||||
|
||||
# Force UTF-8 for certain file formats.
|
||||
<IfModule mod_mime.c>
|
||||
AddCharset utf-8 .atom .css .js .json .rss .vtt .webapp .xml
|
||||
</IfModule>
|
||||
|
||||
|
||||
# ##############################################################################
|
||||
# # URL REWRITES #
|
||||
# ##############################################################################
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# | Rewrite engine |
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# Turning on the rewrite engine and enabling the `FollowSymLinks` option is
|
||||
# necessary for the following directives to work.
|
||||
|
||||
# If your web host doesn't allow the `FollowSymlinks` option, you may need to
|
||||
# comment it out and use `Options +SymLinksIfOwnerMatch` but, be aware of the
|
||||
# performance impact: http://httpd.apache.org/docs/current/misc/perf-tuning.html#symlinks
|
||||
|
||||
# Also, some cloud hosting services require `RewriteBase` to be set:
|
||||
# http://www.rackspace.com/knowledge_center/frequently-asked-question/why-is-mod-rewrite-not-working-on-my-site
|
||||
|
||||
<IfModule mod_rewrite.c>
|
||||
Options +FollowSymlinks
|
||||
# Options +SymLinksIfOwnerMatch
|
||||
RewriteEngine On
|
||||
# RewriteBase /
|
||||
</IfModule>
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# | Suppressing / Forcing the "www." at the beginning of URLs |
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# The same content should never be available under two different URLs especially
|
||||
# not with and without "www." at the beginning. This can cause SEO problems
|
||||
# (duplicate content), therefore, you should choose one of the alternatives and
|
||||
# redirect the other one.
|
||||
|
||||
# By default option 1 (no "www.") is activated:
|
||||
# http://no-www.org/faq.php?q=class_b
|
||||
|
||||
# If you'd prefer to use option 2, just comment out all the lines from option 1
|
||||
# and uncomment the ones from option 2.
|
||||
|
||||
# IMPORTANT: NEVER USE BOTH RULES AT THE SAME TIME!
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
# Option 1: rewrite www.example.com → example.com
|
||||
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteCond %{HTTPS} !=on
|
||||
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
|
||||
RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L]
|
||||
</IfModule>
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
# Option 2: rewrite example.com → www.example.com
|
||||
|
||||
# Be aware that the following might not be a good idea if you use "real"
|
||||
# subdomains for certain parts of your website.
|
||||
|
||||
# <IfModule mod_rewrite.c>
|
||||
# RewriteCond %{HTTPS} !=on
|
||||
# RewriteCond %{HTTP_HOST} !^www\..+$ [NC]
|
||||
# RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
|
||||
# </IfModule>
|
||||
|
||||
|
||||
# ##############################################################################
|
||||
# # SECURITY #
|
||||
# ##############################################################################
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# | Content Security Policy (CSP) |
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# You can mitigate the risk of cross-site scripting and other content-injection
|
||||
# attacks by setting a Content Security Policy which whitelists trusted sources
|
||||
# of content for your site.
|
||||
|
||||
# The example header below allows ONLY scripts that are loaded from the current
|
||||
# site's origin (no inline scripts, no CDN, etc). This almost certainly won't
|
||||
# work as-is for your site!
|
||||
|
||||
# To get all the details you'll need to craft a reasonable policy for your site,
|
||||
# read: http://html5rocks.com/en/tutorials/security/content-security-policy (or
|
||||
# see the specification: http://w3.org/TR/CSP).
|
||||
|
||||
# <IfModule mod_headers.c>
|
||||
# Header set Content-Security-Policy "script-src 'self'; object-src 'self'"
|
||||
# <FilesMatch "\.(appcache|crx|css|eot|gif|htc|ico|jpe?g|js|m4a|m4v|manifest|mp4|oex|oga|ogg|ogv|otf|pdf|png|safariextz|svg|svgz|ttf|vcf|webapp|webm|webp|woff|xml|xpi)$">
|
||||
# Header unset Content-Security-Policy
|
||||
# </FilesMatch>
|
||||
# </IfModule>
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# | File access |
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# Block access to directories without a default document.
|
||||
# Usually you should leave this uncommented because you shouldn't allow anyone
|
||||
# to surf through every directory on your server (which may includes rather
|
||||
# private places like the CMS's directories).
|
||||
|
||||
<IfModule mod_autoindex.c>
|
||||
Options -Indexes
|
||||
</IfModule>
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
# Block access to hidden files and directories.
|
||||
# This includes directories used by version control systems such as Git and SVN.
|
||||
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteCond %{SCRIPT_FILENAME} -d [OR]
|
||||
RewriteCond %{SCRIPT_FILENAME} -f
|
||||
RewriteRule "(^|/)\." - [F]
|
||||
</IfModule>
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
# Block access to backup and source files.
|
||||
# These files may be left by some text editors and can pose a great security
|
||||
# danger when anyone has access to them.
|
||||
|
||||
<FilesMatch "(^#.*#|\.(bak|config|dist|fla|inc|ini|log|psd|sh|sql|sw[op])|~)$">
|
||||
Order allow,deny
|
||||
Deny from all
|
||||
Satisfy All
|
||||
</FilesMatch>
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# | Secure Sockets Layer (SSL) |
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# Rewrite secure requests properly to prevent SSL certificate warnings, e.g.:
|
||||
# prevent `https://www.example.com` when your certificate only allows
|
||||
# `https://secure.example.com`.
|
||||
|
||||
# <IfModule mod_rewrite.c>
|
||||
# RewriteCond %{SERVER_PORT} !^443
|
||||
# RewriteRule ^ https://example-domain-please-change-me.com%{REQUEST_URI} [R=301,L]
|
||||
# </IfModule>
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
# Force client-side SSL redirection.
|
||||
|
||||
# If a user types "example.com" in his browser, the above rule will redirect him
|
||||
# to the secure version of the site. That still leaves a window of opportunity
|
||||
# (the initial HTTP connection) for an attacker to downgrade or redirect the
|
||||
# request. The following header ensures that browser will ONLY connect to your
|
||||
# server via HTTPS, regardless of what the users type in the address bar.
|
||||
# http://www.html5rocks.com/en/tutorials/security/transport-layer-security/
|
||||
|
||||
# <IfModule mod_headers.c>
|
||||
# Header set Strict-Transport-Security max-age=16070400;
|
||||
# </IfModule>
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# | Server software information |
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# Avoid displaying the exact Apache version number, the description of the
|
||||
# generic OS-type and the information about Apache's compiled-in modules.
|
||||
|
||||
# ADD THIS DIRECTIVE IN THE `httpd.conf` AS IT WILL NOT WORK IN THE `.htaccess`!
|
||||
|
||||
# ServerTokens Prod
|
||||
|
||||
|
||||
# ##############################################################################
|
||||
# # WEB PERFORMANCE #
|
||||
# ##############################################################################
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# | Compression |
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
<IfModule mod_deflate.c>
|
||||
|
||||
# Force compression for mangled headers.
|
||||
# http://developer.yahoo.com/blogs/ydn/posts/2010/12/pushing-beyond-gzipping
|
||||
<IfModule mod_setenvif.c>
|
||||
<IfModule mod_headers.c>
|
||||
SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
|
||||
RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
|
||||
</IfModule>
|
||||
</IfModule>
|
||||
|
||||
# Compress all output labeled with one of the following MIME-types
|
||||
# (for Apache versions below 2.3.7, you don't need to enable `mod_filter`
|
||||
# and can remove the `<IfModule mod_filter.c>` and `</IfModule>` lines
|
||||
# as `AddOutputFilterByType` is still in the core directives).
|
||||
<IfModule mod_filter.c>
|
||||
AddOutputFilterByType DEFLATE application/atom+xml \
|
||||
application/javascript \
|
||||
application/json \
|
||||
application/rss+xml \
|
||||
application/vnd.ms-fontobject \
|
||||
application/x-font-ttf \
|
||||
application/x-web-app-manifest+json \
|
||||
application/xhtml+xml \
|
||||
application/xml \
|
||||
font/opentype \
|
||||
image/svg+xml \
|
||||
image/x-icon \
|
||||
text/css \
|
||||
text/html \
|
||||
text/plain \
|
||||
text/x-component \
|
||||
text/xml
|
||||
</IfModule>
|
||||
|
||||
</IfModule>
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# | Content transformations |
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# Prevent some of the mobile network providers from modifying the content of
|
||||
# your site: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.5.
|
||||
|
||||
# <IfModule mod_headers.c>
|
||||
# Header set Cache-Control "no-transform"
|
||||
# </IfModule>
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# | ETag removal |
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# Since we're sending far-future expires headers (see below), ETags can
|
||||
# be removed: http://developer.yahoo.com/performance/rules.html#etags.
|
||||
|
||||
# `FileETag None` is not enough for every server.
|
||||
<IfModule mod_headers.c>
|
||||
Header unset ETag
|
||||
</IfModule>
|
||||
|
||||
FileETag None
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# | Expires headers (for better cache control) |
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# The following expires headers are set pretty far in the future. If you don't
|
||||
# control versioning with filename-based cache busting, consider lowering the
|
||||
# cache time for resources like CSS and JS to something like 1 week.
|
||||
|
||||
<IfModule mod_expires.c>
|
||||
|
||||
ExpiresActive on
|
||||
ExpiresDefault "access plus 1 month"
|
||||
|
||||
# CSS
|
||||
ExpiresByType text/css "access plus 1 year"
|
||||
|
||||
# Data interchange
|
||||
ExpiresByType application/json "access plus 0 seconds"
|
||||
ExpiresByType application/xml "access plus 0 seconds"
|
||||
ExpiresByType text/xml "access plus 0 seconds"
|
||||
|
||||
# Favicon (cannot be renamed!)
|
||||
ExpiresByType image/x-icon "access plus 1 week"
|
||||
|
||||
# HTML components (HTCs)
|
||||
ExpiresByType text/x-component "access plus 1 month"
|
||||
|
||||
# HTML
|
||||
ExpiresByType text/html "access plus 0 seconds"
|
||||
|
||||
# JavaScript
|
||||
ExpiresByType application/javascript "access plus 1 year"
|
||||
|
||||
# Manifest files
|
||||
ExpiresByType application/x-web-app-manifest+json "access plus 0 seconds"
|
||||
ExpiresByType text/cache-manifest "access plus 0 seconds"
|
||||
|
||||
# Media
|
||||
ExpiresByType audio/ogg "access plus 1 month"
|
||||
ExpiresByType image/gif "access plus 1 month"
|
||||
ExpiresByType image/jpeg "access plus 1 month"
|
||||
ExpiresByType image/png "access plus 1 month"
|
||||
ExpiresByType video/mp4 "access plus 1 month"
|
||||
ExpiresByType video/ogg "access plus 1 month"
|
||||
ExpiresByType video/webm "access plus 1 month"
|
||||
|
||||
# Web feeds
|
||||
ExpiresByType application/atom+xml "access plus 1 hour"
|
||||
ExpiresByType application/rss+xml "access plus 1 hour"
|
||||
|
||||
# Web fonts
|
||||
ExpiresByType application/font-woff "access plus 1 month"
|
||||
ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
|
||||
ExpiresByType application/x-font-ttf "access plus 1 month"
|
||||
ExpiresByType font/opentype "access plus 1 month"
|
||||
ExpiresByType image/svg+xml "access plus 1 month"
|
||||
|
||||
</IfModule>
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# | Filename-based cache busting |
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# If you're not using a build process to manage your filename version revving,
|
||||
# you might want to consider enabling the following directives to route all
|
||||
# requests such as `/css/style.12345.css` to `/css/style.css`.
|
||||
|
||||
# To understand why this is important and a better idea than `*.css?v231`, read:
|
||||
# http://stevesouders.com/blog/2008/08/23/revving-filenames-dont-use-querystring
|
||||
|
||||
# <IfModule mod_rewrite.c>
|
||||
# RewriteCond %{REQUEST_FILENAME} !-f
|
||||
# RewriteCond %{REQUEST_FILENAME} !-d
|
||||
# RewriteRule ^(.+)\.(\d+)\.(js|css|png|jpg|gif)$ $1.$3 [L]
|
||||
# </IfModule>
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# | File concatenation |
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# Allow concatenation from within specific CSS and JS files, e.g.:
|
||||
# Inside of `script.combined.js` you could have
|
||||
# <!--#include file="libs/jquery.js" -->
|
||||
# <!--#include file="plugins/jquery.idletimer.js" -->
|
||||
# and they would be included into this single file.
|
||||
|
||||
# <IfModule mod_include.c>
|
||||
# <FilesMatch "\.combined\.js$">
|
||||
# Options +Includes
|
||||
# AddOutputFilterByType INCLUDES application/javascript application/json
|
||||
# SetOutputFilter INCLUDES
|
||||
# </FilesMatch>
|
||||
# <FilesMatch "\.combined\.css$">
|
||||
# Options +Includes
|
||||
# AddOutputFilterByType INCLUDES text/css
|
||||
# SetOutputFilter INCLUDES
|
||||
# </FilesMatch>
|
||||
# </IfModule>
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# | Persistent connections |
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# Allow multiple requests to be sent over the same TCP connection:
|
||||
# http://httpd.apache.org/docs/current/en/mod/core.html#keepalive.
|
||||
|
||||
# Enable if you serve a lot of static content but, be aware of the
|
||||
# possible disadvantages!
|
||||
|
||||
# <IfModule mod_headers.c>
|
||||
# Header set Connection Keep-Alive
|
||||
# </IfModule>
|
||||
157
app/404.html
@@ -1,157 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Page Not Found :(</title>
|
||||
<style>
|
||||
::-moz-selection {
|
||||
background: #b3d4fc;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
::selection {
|
||||
background: #b3d4fc;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
html {
|
||||
padding: 30px 10px;
|
||||
font-size: 20px;
|
||||
line-height: 1.4;
|
||||
color: #737373;
|
||||
background: #f0f0f0;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
-ms-text-size-adjust: 100%;
|
||||
}
|
||||
|
||||
html,
|
||||
input {
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
body {
|
||||
max-width: 500px;
|
||||
_width: 500px;
|
||||
padding: 30px 20px 50px;
|
||||
border: 1px solid #b3b3b3;
|
||||
border-radius: 4px;
|
||||
margin: 0 auto;
|
||||
box-shadow: 0 1px 10px #a7a7a7, inset 0 1px 0 #fff;
|
||||
background: #fcfcfc;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 0 10px;
|
||||
font-size: 50px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
h1 span {
|
||||
color: #bbb;
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin: 1.5em 0 0.5em;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
ul {
|
||||
padding: 0 0 0 40px;
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 380px;
|
||||
_width: 380px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
/* google search */
|
||||
|
||||
#goog-fixurl ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#goog-fixurl form {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#goog-wm-qt,
|
||||
#goog-wm-sb {
|
||||
border: 1px solid #bbb;
|
||||
font-size: 16px;
|
||||
line-height: normal;
|
||||
vertical-align: top;
|
||||
color: #444;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
#goog-wm-qt {
|
||||
width: 220px;
|
||||
height: 20px;
|
||||
padding: 5px;
|
||||
margin: 5px 10px 0 0;
|
||||
box-shadow: inset 0 1px 1px #ccc;
|
||||
}
|
||||
|
||||
#goog-wm-sb {
|
||||
display: inline-block;
|
||||
height: 32px;
|
||||
padding: 0 10px;
|
||||
margin: 5px 0 0;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
background-color: #f5f5f5;
|
||||
background-image: -webkit-linear-gradient(rgba(255,255,255,0), #f1f1f1);
|
||||
background-image: -moz-linear-gradient(rgba(255,255,255,0), #f1f1f1);
|
||||
background-image: -ms-linear-gradient(rgba(255,255,255,0), #f1f1f1);
|
||||
background-image: -o-linear-gradient(rgba(255,255,255,0), #f1f1f1);
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
appearance: none;
|
||||
*overflow: visible;
|
||||
*display: inline;
|
||||
*zoom: 1;
|
||||
}
|
||||
|
||||
#goog-wm-sb:hover,
|
||||
#goog-wm-sb:focus {
|
||||
border-color: #aaa;
|
||||
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
|
||||
background-color: #f8f8f8;
|
||||
}
|
||||
|
||||
#goog-wm-qt:hover,
|
||||
#goog-wm-qt:focus {
|
||||
border-color: #105cb6;
|
||||
outline: 0;
|
||||
color: #222;
|
||||
}
|
||||
|
||||
input::-moz-focus-inner {
|
||||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>Not found <span>:(</span></h1>
|
||||
<p>Sorry, but the page you were trying to view does not exist.</p>
|
||||
<p>It looks like this was the result of either:</p>
|
||||
<ul>
|
||||
<li>a mistyped address</li>
|
||||
<li>an out-of-date link</li>
|
||||
</ul>
|
||||
<script>
|
||||
var GOOG_FIXURL_LANG = (navigator.language || '').slice(0,2),GOOG_FIXURL_SITE = location.host;
|
||||
</script>
|
||||
<script src="//linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
BIN
app/favicon.ico
|
Before Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 5.4 KiB |
|
Before Width: | Height: | Size: 91 B |
|
Before Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 34 KiB |
140
app/index.html
@@ -1,140 +0,0 @@
|
||||
<!-- HTML 5 Doctype -->
|
||||
<!doctype html>
|
||||
|
||||
<!-- The “no-js” class will be automatically removed if JavaScript is
|
||||
- available.
|
||||
-->
|
||||
<html lang="en" dir="ltr" class="no-js">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<!--
|
||||
- This file is a part of Xen Orchestra Web.
|
||||
-
|
||||
- Xen Orchestra Web is free software: you can redistribute it and/or
|
||||
- modify it under the terms of the GNU Affero General Public License
|
||||
- as published by the Free Software Foundation, either version 3 of
|
||||
- the License, or (at your option) any later version.
|
||||
-
|
||||
- Xen Orchestra Web is distributed in the hope that it will be
|
||||
- useful, but WITHOUT ANY WARRANTY; without even the implied warranty
|
||||
- of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
- Affero General Public License for more details.
|
||||
-
|
||||
- You should have received a copy of the GNU Affero General Public License
|
||||
- along with Xen Orchestra Web. If not, see
|
||||
- <http://www.gnu.org/licenses/>.
|
||||
-
|
||||
- @author Olivier Lambert <olivier.lambert@vates.fr>
|
||||
- @license http://www.gnu.org/licenses/agpl-3.0-standalone.html GNU AGPLv3
|
||||
-
|
||||
- @package Xen Orchestra Web
|
||||
-->
|
||||
|
||||
<!-- Makes sure IE is using the last engine available. -->
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
|
||||
<!-- Replaces the “no-js” class by the “js” class if JavaScript
|
||||
- is available.
|
||||
-->
|
||||
<script>!function(d){d.className=d.className.replace(/\bno-js\b/,'js')}(document.documentElement)</script>
|
||||
|
||||
<!-- (To confirm.) For smartphones and tablets: sets the page
|
||||
- width to the device width and prevents the page from being
|
||||
- zoomed in when going to landscape mode.
|
||||
-->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
<title>Xen Orchestra</title>
|
||||
|
||||
<meta name="description" content="Web interface for XenServer/XAPI Hosts" />
|
||||
<meta name="author" content="Vates SAS" />
|
||||
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
|
||||
|
||||
<!-- build:css(.tmp) styles/main.css -->
|
||||
<link rel="stylesheet" href="styles/main.css">
|
||||
<!-- endbuild -->
|
||||
<!-- Angular-xeditable CSS -->
|
||||
<link rel="stylesheet" href="bower_components/angular-xeditable/dist/css/xeditable.css">
|
||||
<!-- Angular UI Select -->
|
||||
<link rel="stylesheet" href="bower_components/select2/select2.css">
|
||||
<link rel="stylesheet" href="bower_components/angular-notify-toaster/toaster.css">
|
||||
</head>
|
||||
<body ng-app="xoWebApp">
|
||||
<!--[if lt IE 7]>
|
||||
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
|
||||
<![endif]-->
|
||||
|
||||
<!--[if lt IE 9]>
|
||||
<script src="bower_components/es5-shim/es5-shim.js"></script>
|
||||
<script src="bower_components/json3/lib/json3.min.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<toaster-container></toaster-container>
|
||||
|
||||
<!-- Navigation bar. -->
|
||||
<div ng-controller="NavBarCtrl">
|
||||
<ng-include src="'views/nav-bar.html'"></ng-include>
|
||||
</div>
|
||||
|
||||
<!-- Main content (managed by the router). -->
|
||||
<div ui-view></div>
|
||||
|
||||
<script src="bower_components/jquery/jquery.js"></script>
|
||||
<script src="bower_components/angular/angular.js"></script>
|
||||
<script src="bower_components/angular-animate/angular-animate.js"></script>
|
||||
<script src="bower_components/angular-cookies/angular-cookies.js"></script>
|
||||
|
||||
<!-- build:js scripts/plugins.js -->
|
||||
<script src="bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js"></script>
|
||||
<script src="bower_components/angular-ui-router/release/angular-ui-router.js"></script>
|
||||
<script src="bower_components/angular-ui-utils/modules/indeterminate/indeterminate.js"></script>
|
||||
<script src="bower_components/angular-ui-utils/modules/route/route.js"></script>
|
||||
<script src="bower_components/angular-notify-toaster/toaster.js"></script>
|
||||
<!-- endbuild -->
|
||||
|
||||
<!-- build:js scripts/modules.js -->
|
||||
<script src="bower_components/angular-xeditable/dist/js/xeditable.js"></script>
|
||||
<script src="bower_components/select2/select2.js"></script>
|
||||
<script src="bower_components/angular-ui-select2/src/select2.js"></script>
|
||||
<!-- endbuild -->
|
||||
|
||||
<!-- noVNC -->
|
||||
<script src="bower_components/noVNC/include/util.js"></script>
|
||||
<script>
|
||||
var INCLUDE_URI = 'bower_components/noVNC/include/';
|
||||
Util.load_scripts([
|
||||
'webutil.js',
|
||||
'base64.js',
|
||||
'websock.js',
|
||||
'des.js',
|
||||
'keysymdef.js',
|
||||
'keyboard.js',
|
||||
'input.js',
|
||||
'display.js',
|
||||
'jsunzip.js',
|
||||
'rfb.js',
|
||||
]);
|
||||
</script>
|
||||
<!-- /noVNC -->
|
||||
|
||||
<!-- build:js({.tmp,app}) scripts/scripts.js -->
|
||||
<script src="scripts/app.js"></script>
|
||||
<script src="scripts/directives.js"></script>
|
||||
<script src="scripts/filters.js"></script>
|
||||
<script src="scripts/services.js"></script>
|
||||
<script src="scripts/controllers/main.js"></script>
|
||||
<script src="scripts/controllers/nav-bar.js"></script>
|
||||
<script src="scripts/controllers/list.js"></script>
|
||||
<script src="scripts/controllers/host.js"></script>
|
||||
<script src="scripts/controllers/sr.js"></script>
|
||||
<script src="scripts/controllers/pool.js"></script>
|
||||
<script src="scripts/controllers/vm.js"></script>
|
||||
<script src="scripts/controllers/console.js"></script>
|
||||
<script src="scripts/controllers/settings.js"></script>
|
||||
<script src="scripts/controllers/new_vm.js"></script>
|
||||
<script src="scripts/controllers/new_sr.js"></script>
|
||||
<script src="scripts/controllers/delete_vms.js"></script>
|
||||
<script src="scripts/controllers/generic_modal.js"></script>
|
||||
<!-- endbuild -->
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,3 +0,0 @@
|
||||
# robotstxt.org
|
||||
|
||||
User-agent: *
|
||||
@@ -1,83 +0,0 @@
|
||||
'use strict'
|
||||
|
||||
angular.module('xoWebApp', [
|
||||
'ngCookies'
|
||||
|
||||
'ui.bootstrap'
|
||||
'ui.indeterminate'
|
||||
'ui.route'
|
||||
'ui.router'
|
||||
'ui.select2'
|
||||
|
||||
'toaster'
|
||||
'xeditable'
|
||||
])
|
||||
.config ($stateProvider, $urlRouterProvider, $tooltipProvider) ->
|
||||
# Redirects unmatched URLs to `/`.
|
||||
$urlRouterProvider.otherwise '/'
|
||||
|
||||
# Sets up the different states for our module.
|
||||
$stateProvider
|
||||
.state 'home',
|
||||
url: '/'
|
||||
controller: 'MainCtrl'
|
||||
templateUrl: 'views/main.html'
|
||||
|
||||
.state 'list',
|
||||
url: '/list'
|
||||
controller: 'ListCtrl'
|
||||
templateUrl: 'views/list.html'
|
||||
|
||||
.state 'hosts_view',
|
||||
url: '/hosts/:id'
|
||||
controller: 'HostCtrl'
|
||||
templateUrl: 'views/host.html'
|
||||
|
||||
.state 'SRs_view',
|
||||
url: '/srs/:id'
|
||||
controller: 'SrCtrl'
|
||||
templateUrl: 'views/sr.html'
|
||||
|
||||
.state 'SRs_new',
|
||||
url: '/srs/new/:container'
|
||||
controller: 'NewSrCtrl'
|
||||
templateUrl: 'views/new_sr.html'
|
||||
|
||||
.state 'pools_view',
|
||||
url: '/pools/:id'
|
||||
controller: 'PoolCtrl'
|
||||
templateUrl: 'views/pool.html'
|
||||
|
||||
.state 'VMs_new',
|
||||
url: '/vms/new/:container'
|
||||
controller: 'NewVmCtrl'
|
||||
templateUrl: 'views/new_vm.html'
|
||||
|
||||
.state 'VMs_view',
|
||||
url: '/vms/:id'
|
||||
controller: 'VmCtrl'
|
||||
templateUrl: 'views/vm.html'
|
||||
|
||||
.state 'consoles_view',
|
||||
url: '/consoles/:id'
|
||||
controller: 'ConsoleCtrl'
|
||||
templateUrl: 'views/console.html'
|
||||
|
||||
.state 'about',
|
||||
url: '/about'
|
||||
templateUrl: 'views/about.html'
|
||||
|
||||
.state 'settings',
|
||||
url: '/settings'
|
||||
controller: 'SettingsCtrl'
|
||||
templateUrl: 'views/settings.html'
|
||||
|
||||
# Changes the default settings for the tooltips.
|
||||
$tooltipProvider.options
|
||||
appendToBody: true
|
||||
placement: 'bottom'
|
||||
|
||||
.run (editableOptions, editableThemes) ->
|
||||
editableThemes.bs3.inputClass = 'input-sm'
|
||||
editableThemes.bs3.buttonsClass = 'btn-sm'
|
||||
editableOptions.theme = 'bs3'
|
||||
@@ -1,55 +0,0 @@
|
||||
'use strict'
|
||||
|
||||
angular.module('xoWebApp')
|
||||
.controller 'ConsoleCtrl', ($scope, $stateParams, xo) ->
|
||||
{id} = $stateParams
|
||||
{get} = xo
|
||||
push = Array::push.apply.bind Array::push
|
||||
merge = do ->
|
||||
(args...) ->
|
||||
result = []
|
||||
for arg in args
|
||||
push result, arg if arg?
|
||||
result
|
||||
|
||||
$scope.$watch(
|
||||
-> xo.revision
|
||||
->
|
||||
VM = $scope.VM = xo.get id
|
||||
return unless VM? and VM.power_state is 'Running'
|
||||
|
||||
pool = get VM.poolRef
|
||||
return unless pool
|
||||
|
||||
$scope.consoleUrl = do ->
|
||||
for console in VM.consoles
|
||||
if console.protocol is 'rfb'
|
||||
return "#{console.location}&session_id=#{pool.$sessionId}"
|
||||
''
|
||||
|
||||
host = get VM.$container # host because the VM is running.
|
||||
return unless host
|
||||
|
||||
# FIXME: We should filter on connected SRs (PBDs)!
|
||||
SRs = get (merge host.SRs, pool.SRs)
|
||||
$scope.VDIs = do ->
|
||||
VDIs = []
|
||||
for SR in SRs
|
||||
push VDIs, SR.VDIs if SR.content_type is 'iso'
|
||||
get VDIs
|
||||
|
||||
cdDrive = do ->
|
||||
return VBD for VBD in (get VM.$VBDs) when VBD.is_cd_drive
|
||||
null
|
||||
|
||||
$scope.mountedIso =
|
||||
if cdDrive and cdDrive.VDI and (VDI = get cdDrive.VDI)
|
||||
VDI.UUID
|
||||
else
|
||||
''
|
||||
)
|
||||
|
||||
$scope.eject = ->
|
||||
xo.vm.ejectCd id
|
||||
$scope.insert = (disc_id) ->
|
||||
xo.vm.insertCd id, disc_id, true
|
||||
@@ -1,17 +0,0 @@
|
||||
'use strict'
|
||||
|
||||
angular.module('xoWebApp')
|
||||
.controller 'DeleteVMsCtrl', ($scope, $modalInstance, xo, VMsIds) ->
|
||||
$scope.$watch(
|
||||
-> xo.revision
|
||||
->
|
||||
$scope.VMs = xo.get VMsIds
|
||||
)
|
||||
|
||||
# Do disks have to be deleted for a given VM.
|
||||
disks = $scope.disks = {}
|
||||
do ->
|
||||
disks[id] = true for id in VMsIds
|
||||
|
||||
$scope.delete = ->
|
||||
$modalInstance.close ([id, disks[id]] for id in VMsIds)
|
||||
@@ -1,9 +0,0 @@
|
||||
'use strict'
|
||||
|
||||
angular.module('xoWebApp')
|
||||
.controller 'GenericModalCtrl', ($scope, $modalInstance, options) ->
|
||||
$scope.title = options.title
|
||||
$scope.message = options.message
|
||||
|
||||
$scope.yesButtonLabel = options.yesButtonLabel ? 'Ok'
|
||||
$scope.noButtonLabel = options.noButtonLabel
|
||||
@@ -1,44 +0,0 @@
|
||||
'use strict'
|
||||
|
||||
angular.module('xoWebApp')
|
||||
.controller 'HostCtrl', ($scope, $stateParams, xoApi, xo) ->
|
||||
$scope.$watch(
|
||||
-> xo.revision
|
||||
->
|
||||
host = $scope.host = xo.get $stateParams.id
|
||||
return unless host?
|
||||
|
||||
$scope.pool = xo.get host.poolRef
|
||||
|
||||
SRsToPBDs = $scope.SRsToPBDs = Object.create null
|
||||
for PBD in host.$PBDs
|
||||
PBD = xo.get PBD
|
||||
|
||||
# If this PBD is unknown, just skips it.
|
||||
continue unless PBD
|
||||
|
||||
SRsToPBDs[PBD.SR] = PBD
|
||||
)
|
||||
|
||||
$scope.removeMessage = xo.message.delete
|
||||
|
||||
$scope.removeTask = xo.task.delete
|
||||
|
||||
$scope.disconnectPBD = xo.pbd.disconnect
|
||||
$scope.removePBD = xo.pbd.delete
|
||||
|
||||
$scope.saveHost = ($data) ->
|
||||
{host} = $scope
|
||||
{name_label, name_description, enabled} = $data
|
||||
|
||||
$data = {
|
||||
id: host.UUID
|
||||
}
|
||||
if name_label isnt host.name_label
|
||||
$data.name_label = name_label
|
||||
if name_description isnt host.name_description
|
||||
$data.name_description = name_description
|
||||
if enabled isnt host.enabled
|
||||
$data.enabled = host.enabled
|
||||
|
||||
xoApi.call 'host.set', $data
|
||||
@@ -1,5 +0,0 @@
|
||||
'use strict'
|
||||
|
||||
angular.module('xoWebApp')
|
||||
.controller 'ListCtrl', ($scope, xo) ->
|
||||
$scope.byTypes = xo.byTypes
|
||||
@@ -1,129 +0,0 @@
|
||||
'use strict'
|
||||
|
||||
angular.module('xoWebApp')
|
||||
.controller 'MainCtrl', ($scope, $modal, xo) ->
|
||||
VMs = []
|
||||
$scope.$watch(
|
||||
-> xo.revision
|
||||
(revision) ->
|
||||
return if revision is 0
|
||||
|
||||
{byTypes} = xo
|
||||
|
||||
$scope.xo = byTypes.xo[0]
|
||||
|
||||
$scope.pools = byTypes.pool
|
||||
$scope.hosts = byTypes.host
|
||||
|
||||
VMs = $scope.VMs = byTypes.VM ? []
|
||||
)
|
||||
$scope.pool_disconnect = xo.pool.disconnect
|
||||
$scope.new_sr = xo.pool.new_sr
|
||||
$scope.pool_removeHost = xo.host.detach
|
||||
$scope.rebootHost = xo.host.restart
|
||||
$scope.restartToolStack = xo.host.restartToolStack
|
||||
$scope.shutdownHost = xo.host.stop
|
||||
|
||||
$scope.startVM = xo.vm.start
|
||||
$scope.stopVM = xo.vm.stop
|
||||
$scope.force_stopVM = (id) -> xo.vm.stop id, true
|
||||
$scope.rebootVM = xo.vm.restart
|
||||
$scope.force_rebootVM = (id) -> xo.vm.restart id, true
|
||||
$scope.migrateVM = xo.vm.migrate
|
||||
$scope.createVMSnapshot = xo.vm.createSnapshot
|
||||
# check if there is any operation pending on a VM
|
||||
$scope.isVMWorking = (VM) ->
|
||||
return true for _ of VM.current_operations
|
||||
false
|
||||
|
||||
# extract a value in a object
|
||||
$scope.values = (object) ->
|
||||
value for _, value of object
|
||||
|
||||
$scope.deleteVMs = ->
|
||||
{selected_VMs} = $scope
|
||||
|
||||
VMsIds = (id for id, selected of selected_VMs when selected)
|
||||
modal = $modal.open {
|
||||
controller: 'DeleteVMsCtrl'
|
||||
templateUrl: 'views/delete_vms.html'
|
||||
resolve: {
|
||||
VMsIds: -> VMsIds
|
||||
}
|
||||
}
|
||||
|
||||
modal.result.then (toDelete) ->
|
||||
for [id, deleteDisks] in toDelete
|
||||
xo.vm.delete id, deleteDisks
|
||||
|
||||
# VMs checkboxes.
|
||||
do ->
|
||||
# This map marks which VMs are selected.
|
||||
selected_VMs = $scope.selected_VMs = Object.create null
|
||||
|
||||
# Number of selected VMs.
|
||||
$scope.n_selected_VMs = 0
|
||||
|
||||
# This is the master checkbox.
|
||||
# Three states: true/false/null
|
||||
$scope.master_selection = false
|
||||
|
||||
# Wheter all VMs are selected.
|
||||
$scope.all = false
|
||||
|
||||
# Whether no VMs are selected.
|
||||
$scope.none = true
|
||||
|
||||
# Updates `all`, `none` and `master_selection` when necessary.
|
||||
$scope.$watch 'n_selected_VMs', (n) ->
|
||||
$scope.all = (VMs.length is n)
|
||||
$scope.none = (n is 0)
|
||||
|
||||
# When the master checkbox is clicked from indeterminate
|
||||
# state, it should go to unchecked like Gmail.
|
||||
$scope.master_selection = (n isnt 0)
|
||||
|
||||
make_matcher = (sieve) ->
|
||||
(item) ->
|
||||
for key, val of sieve
|
||||
return false unless item[key] is val
|
||||
true
|
||||
|
||||
$scope.selectVMs = (sieve) ->
|
||||
if (sieve is true) or (sieve is false)
|
||||
$scope.n_selected_VMs = if sieve then VMs.length else 0
|
||||
selected_VMs[VM.UUID] = sieve for VM in VMs
|
||||
return
|
||||
|
||||
n = 0
|
||||
|
||||
matcher = make_matcher sieve
|
||||
++n for VM in VMs when (selected_VMs[VM.UUID] = matcher VM)
|
||||
|
||||
$scope.n_selected_VMs = n
|
||||
|
||||
$scope.updateVMSelection = (UUID) ->
|
||||
if selected_VMs[UUID]
|
||||
++$scope.n_selected_VMs
|
||||
else
|
||||
--$scope.n_selected_VMs
|
||||
|
||||
$scope.bulkAction = (action, args...) ->
|
||||
fn = $scope[action]
|
||||
unless angular.isFunction fn
|
||||
throw new Error "invalid action #{action}"
|
||||
|
||||
for UUID, selected of selected_VMs
|
||||
fn UUID, args... if selected
|
||||
|
||||
# Unselects all VMs.
|
||||
$scope.selectVMs false
|
||||
|
||||
$scope.osType = (osName) ->
|
||||
switch osName
|
||||
when 'debian','ubuntu','centos','suse','redhat'
|
||||
'linux'
|
||||
when 'windows'
|
||||
'windows'
|
||||
else
|
||||
'other'
|
||||
@@ -1,16 +0,0 @@
|
||||
'use strict'
|
||||
|
||||
angular.module('xoWebApp')
|
||||
.controller 'NavBarCtrl', ($scope, $location, xoApi) ->
|
||||
$scope.$watch(
|
||||
-> xoApi.user
|
||||
(user) ->
|
||||
$scope.user = user
|
||||
)
|
||||
$scope.logIn = xoApi.logIn
|
||||
$scope.logOut = xoApi.logOut
|
||||
|
||||
# When a searched is entered, we must switch to the list view if
|
||||
# necessary.
|
||||
$scope.ensureListView = ->
|
||||
$location.path '/list'
|
||||
@@ -1,10 +0,0 @@
|
||||
'use strict'
|
||||
|
||||
angular.module('xoWebApp')
|
||||
.controller 'NewSrCtrl', ($scope, $stateParams, xo) ->
|
||||
$scope.$watch(
|
||||
-> xo.revision
|
||||
->
|
||||
$scope.container = xo.get $stateParams.container
|
||||
)
|
||||
|
||||
@@ -1,204 +0,0 @@
|
||||
'use strict'
|
||||
|
||||
angular.module('xoWebApp')
|
||||
.controller 'NewVmCtrl', (
|
||||
$scope, $stateParams, $state
|
||||
xoApi, xo
|
||||
bytesToSizeFilter, sizeToBytesFilter
|
||||
notify
|
||||
) ->
|
||||
{get} = xo
|
||||
|
||||
removeItems = do ->
|
||||
splice = Array::splice.call.bind Array::splice
|
||||
(array, index, n) -> splice array, index, n ? 1
|
||||
|
||||
merge = do ->
|
||||
push = Array::push.apply.bind Array::push
|
||||
(args...) ->
|
||||
result = []
|
||||
for arg in args
|
||||
push result, arg if arg?
|
||||
result
|
||||
|
||||
pool = default_SR = null
|
||||
$scope.$watch(
|
||||
-> xo.revision
|
||||
->
|
||||
container = $scope.container = get $stateParams.container
|
||||
|
||||
# If the container was not found, no need to continue.
|
||||
return unless container?
|
||||
|
||||
if container.type is 'host'
|
||||
host = container
|
||||
pool = (get container.poolRef) ? {}
|
||||
else
|
||||
host = {}
|
||||
pool = container
|
||||
|
||||
default_SR = get pool.default_SR
|
||||
default_SR = if default_SR
|
||||
default_SR.UUID
|
||||
else
|
||||
''
|
||||
|
||||
# Computes the list of templates.
|
||||
$scope.templates = get (merge pool.templates, host.templates)
|
||||
|
||||
# FIXME: We should filter on connected SRs (PBDs)!
|
||||
# Computes the list of SRs.
|
||||
SRs = get (merge pool.SRs, host.SRs)
|
||||
|
||||
# Computes the list of ISO SRs.
|
||||
$scope.ISO_SRs = (SR for SR in SRs when SR.content_type is 'iso')
|
||||
|
||||
# Computes the list of writable SRs.
|
||||
$scope.writable_SRs = (SR for SR in SRs when SR.content_type isnt 'iso')
|
||||
|
||||
# Computes the list of networks.
|
||||
$scope.networks = get pool.networks
|
||||
)
|
||||
|
||||
$scope.availableMethods = {}
|
||||
$scope.CPUs = ''
|
||||
$scope.installation_cdrom = ''
|
||||
$scope.installation_method = ''
|
||||
$scope.installation_network = ''
|
||||
$scope.memory = ''
|
||||
$scope.name_description = ''
|
||||
$scope.name_label = ''
|
||||
$scope.template = ''
|
||||
$scope.VDIs = []
|
||||
$scope.VIFs = []
|
||||
|
||||
$scope.addVIF = do ->
|
||||
id = 0
|
||||
->
|
||||
$scope.VIFs.push {
|
||||
id: id++
|
||||
network: ''
|
||||
}
|
||||
$scope.addVIF()
|
||||
|
||||
$scope.removeVIF = (index) -> removeItems $scope.VIFs, index
|
||||
|
||||
$scope.moveVDI = (index, direction) ->
|
||||
{VDIs} = $scope
|
||||
|
||||
newIndex = index + direction
|
||||
[VDIs[index], VDIs[newIndex]] = [VDIs[newIndex], VDIs[index]]
|
||||
|
||||
$scope.removeVDI = (index) -> removeItems $scope.VDIs, index
|
||||
|
||||
VDI_id = 0
|
||||
$scope.addVDI = ->
|
||||
$scope.VDIs.push {
|
||||
id: VDI_id++
|
||||
bootable: false
|
||||
size: ''
|
||||
SR: default_SR
|
||||
type: 'system'
|
||||
}
|
||||
|
||||
# When the selected template changes, updates other variables.
|
||||
$scope.$watch 'template', (template) ->
|
||||
return unless template
|
||||
|
||||
availableMethods = $scope.availableMethods = Object.create null
|
||||
for method in template.template_info.install_methods
|
||||
availableMethods[method] = true
|
||||
|
||||
VDIs = $scope.VDIs = angular.copy template.template_info.disks
|
||||
for VDI in VDIs
|
||||
VDI.id = VDI_id++
|
||||
VDI.size = bytesToSizeFilter VDI.size
|
||||
VDI.SR or= default_SR
|
||||
|
||||
$scope.createVM = ->
|
||||
{
|
||||
CPUs
|
||||
installation_cdrom
|
||||
installation_method
|
||||
installation_network
|
||||
memory
|
||||
name_description
|
||||
name_label
|
||||
template
|
||||
VDIs
|
||||
VIFs
|
||||
} = $scope
|
||||
|
||||
# Does not edit the displayed data directly.
|
||||
VDIs = angular.copy VDIs
|
||||
for VDI, index in VDIs
|
||||
# Removes the dummy identifier used for AngularJS.
|
||||
delete VDI.id
|
||||
|
||||
# Adds the device number based on the index.
|
||||
VDI.device = "#{index}"
|
||||
|
||||
# Transforms the size from human readable format to bytes.
|
||||
VDI.size = sizeToBytesFilter VDI.size
|
||||
# TODO: handles invalid values.
|
||||
|
||||
# Does not edit the displayed data directly.
|
||||
VIFs = angular.copy VIFs
|
||||
for VIF in VIFs
|
||||
# Removes the dummy identifier used for AngularJS.
|
||||
delete VIF.id
|
||||
|
||||
# Removes the MAC address if empty.
|
||||
delete VIF.MAC unless VIF.MAC
|
||||
|
||||
if installation_method is 'cdrom'
|
||||
installation = {
|
||||
method: 'cdrom'
|
||||
repository: installation_cdrom
|
||||
}
|
||||
else
|
||||
matches = /^(http|ftp|nfs)/i.exec installation_network
|
||||
# FIXME: handles invalid methods.
|
||||
installation = {
|
||||
method: matches[1].toLowerCase()
|
||||
repository: installation_network
|
||||
}
|
||||
|
||||
data = {
|
||||
installation
|
||||
name_label
|
||||
template: template.UUID
|
||||
VDIs
|
||||
VIFs
|
||||
}
|
||||
|
||||
# TODO:
|
||||
# - disable the form during creation
|
||||
# - indicate the progress of the operation
|
||||
xoApi.call('vm.create', data).then (id) ->
|
||||
# If nothing to sets, just stops.
|
||||
return id unless CPUs or name_description or memory
|
||||
|
||||
data = {
|
||||
id
|
||||
}
|
||||
data.CPUs = +CPUs if CPUs
|
||||
|
||||
if name_description
|
||||
data.name_description = name_description
|
||||
|
||||
if memory
|
||||
memory = sizeToBytesFilter memory
|
||||
# FIXME: handles invalid entries.
|
||||
data.memory = memory
|
||||
|
||||
xoApi.call('vm.set', data).then -> id
|
||||
.then (id) ->
|
||||
$state.go 'VMs_view', { id }
|
||||
.catch (error) ->
|
||||
notify.error {
|
||||
title: 'VM creation'
|
||||
message: 'The creation failed'
|
||||
}
|
||||
|
||||
console.log error
|
||||
@@ -1,22 +0,0 @@
|
||||
'use strict'
|
||||
|
||||
angular.module('xoWebApp')
|
||||
.controller 'PoolCtrl', ($scope, $stateParams, xoApi, xo) ->
|
||||
$scope.$watch(
|
||||
-> xo.revision
|
||||
-> $scope.pool = xo.get $stateParams.id
|
||||
)
|
||||
|
||||
$scope.savePool = ($data) ->
|
||||
{pool} = $scope
|
||||
{name_label, name_description} = $data
|
||||
|
||||
$data = {
|
||||
id: pool.UUID
|
||||
}
|
||||
if name_label isnt pool.name_label
|
||||
$data.name_label = name_label
|
||||
if name_description isnt pool.name_description
|
||||
$data.name_description = name_description
|
||||
|
||||
xoApi.call 'pool.set', $data
|
||||
@@ -1,159 +0,0 @@
|
||||
'use strict'
|
||||
|
||||
# FIXME: Mutualize the code between users and servers.
|
||||
|
||||
angular.module('xoWebApp')
|
||||
.controller 'SettingsCtrl', ($scope, xoApi) ->
|
||||
$scope.permissions = [
|
||||
{
|
||||
label: 'None'
|
||||
value: 'none'
|
||||
}
|
||||
{
|
||||
label: 'Read'
|
||||
value: 'read'
|
||||
}
|
||||
{
|
||||
label: 'Write'
|
||||
value: 'write'
|
||||
}
|
||||
{
|
||||
label: 'Admin'
|
||||
value: 'admin'
|
||||
}
|
||||
]
|
||||
|
||||
# Users
|
||||
do ->
|
||||
# Fetches them.
|
||||
$scope.users = []
|
||||
xoApi.call('user.getAll').then (users) ->
|
||||
$scope.users = users
|
||||
|
||||
# Which ones are selected?
|
||||
selected = $scope.selectedUsers = {}
|
||||
|
||||
# New users to create.
|
||||
$scope.newUsers = []
|
||||
|
||||
# Add a new user to be created.
|
||||
$scope.addUser = ->
|
||||
$scope.newUsers.push {
|
||||
# Fake (unique) identifier needed by Angular.JS
|
||||
id: Math.random()
|
||||
|
||||
# Default permission.
|
||||
permission: 'none'
|
||||
}
|
||||
$scope.addUser()
|
||||
|
||||
# Saves any modifications.
|
||||
$scope.saveUsers = ->
|
||||
{users, newUsers} = $scope
|
||||
|
||||
# This will be the new list of users with those marked to
|
||||
# delete removed.
|
||||
updateUsers = []
|
||||
|
||||
for user in users
|
||||
{id} = user
|
||||
if selected[id]
|
||||
delete selected[id]
|
||||
xoApi.call 'user.delete', {id}
|
||||
else
|
||||
# Only sets the password if not empty.
|
||||
delete user.password unless user.password
|
||||
|
||||
# TODO: only update users which have been modified.
|
||||
xoApi.call 'user.set', user
|
||||
|
||||
# Remove the password from the interface.
|
||||
delete user.password
|
||||
|
||||
updateUsers.push user
|
||||
|
||||
for user in newUsers
|
||||
{email, permission, password} = user
|
||||
|
||||
# Required field.
|
||||
continue unless email
|
||||
|
||||
# Sends the order to XO-Server.
|
||||
xoApi.call 'user.create', {email, permission, password}
|
||||
|
||||
# The password should not be displayed.
|
||||
delete user.password
|
||||
|
||||
# Adds the user to out local list.
|
||||
updateUsers.push user
|
||||
|
||||
$scope.users = updateUsers
|
||||
$scope.newUsers = []
|
||||
|
||||
# TODO: Retrieves an up to date users list from the server.
|
||||
|
||||
# Servers
|
||||
do ->
|
||||
# Fetches them.
|
||||
$scope.servers = []
|
||||
xoApi.call('server.getAll').then (servers) ->
|
||||
$scope.servers = servers
|
||||
|
||||
# Which ones are selected?
|
||||
selected = $scope.selectedServers = {}
|
||||
|
||||
# New servers to create.
|
||||
$scope.newServers = []
|
||||
|
||||
# Add a new server to be created.
|
||||
$scope.addServer = ->
|
||||
$scope.newServers.push {
|
||||
# Fake (unique) identifier needed by Angular.JS
|
||||
id: Math.random()
|
||||
}
|
||||
$scope.addServer()
|
||||
|
||||
# Saves any modifications.
|
||||
$scope.saveServers = ->
|
||||
{servers, newServers} = $scope
|
||||
|
||||
# This will be the new list of servers with those marked to
|
||||
# delete removed.
|
||||
updateServers = []
|
||||
|
||||
for server in servers
|
||||
{id} = server
|
||||
if selected[id]
|
||||
delete selected[id]
|
||||
xoApi.call 'server.remove', {id}
|
||||
else
|
||||
# Only sets the password if not empty.
|
||||
delete server.password unless server.password
|
||||
|
||||
# TODO: only update servers which have been modified.
|
||||
xoApi.call 'server.set', server
|
||||
|
||||
# Remove the password from the interface.
|
||||
delete server.password
|
||||
|
||||
updateServers.push server
|
||||
|
||||
for server in newServers
|
||||
{host, username, password} = server
|
||||
|
||||
# Required field.
|
||||
continue unless host
|
||||
|
||||
# Sends the order to XO-Server.
|
||||
xoApi.call 'server.add', {host, username, password}
|
||||
|
||||
# The password should not be displayed.
|
||||
delete server.password
|
||||
|
||||
# Adds the server to out local list.
|
||||
updateServers.push server
|
||||
|
||||
$scope.servers = updateServers
|
||||
$scope.newServers = []
|
||||
|
||||
# TODO: Retrieves an up to date servers list from the server.
|
||||
@@ -1,64 +0,0 @@
|
||||
'use strict'
|
||||
|
||||
angular.module('xoWebApp')
|
||||
.controller 'SrCtrl', ($scope, $stateParams, xoApi, xo, modal) ->
|
||||
$scope.$watch(
|
||||
-> xo.revision
|
||||
-> $scope.SR = xo.get $stateParams.id
|
||||
)
|
||||
|
||||
$scope.saveSR = ($data) ->
|
||||
{SR} = $scope
|
||||
{name_label, name_description} = $data
|
||||
|
||||
$data = {
|
||||
id: SR.UUID
|
||||
}
|
||||
if name_label isnt SR.name_label
|
||||
$data.name_label = name_label
|
||||
if name_description isnt SR.name_description
|
||||
$data.name_description = name_description
|
||||
|
||||
xoApi.call 'sr.set', $data
|
||||
|
||||
$scope.deleteVDI = (UUID) ->
|
||||
console.log "Delete VDI #{UUID}"
|
||||
|
||||
modal.confirm({
|
||||
title: 'VDI deletion'
|
||||
message: 'Are you sure you want to delete this VDI? This operation is irreversible.'
|
||||
}).then ->
|
||||
xo.vdi.delete UUID
|
||||
|
||||
$scope.disconnectVBD = (UUID) ->
|
||||
console.log "Disconnect VBD #{UUID}"
|
||||
|
||||
xoApi.call 'vbd.disconnect', {id: UUID}
|
||||
|
||||
$scope.rescanSr = (UUID) ->
|
||||
console.log "Rescan SR #{UUID}"
|
||||
|
||||
xoApi.call 'sr.scan', {id: UUID}
|
||||
|
||||
$scope.saveVDI = ->
|
||||
#results = []
|
||||
# console.log "save"
|
||||
# console.log $scope.VDI
|
||||
# for result in results
|
||||
# console.log result
|
||||
# vdi = $scope.vdi
|
||||
# {VDI} = $scope
|
||||
# {name_label, name_description, size} = $data
|
||||
|
||||
# $data = {
|
||||
# id: VDI.UUID
|
||||
# }
|
||||
# if size isnt $scope.Size and (size = sizeToBytesFilter size)
|
||||
# $data.size = size
|
||||
# $scope.sizeSize = bytesToSizeFilter size
|
||||
# if name_label isnt VDI.name_label
|
||||
# $data.name_label = name_label
|
||||
# if name_description isnt VDI.name_description
|
||||
# $data.name_description = name_description
|
||||
|
||||
# xoApi.call 'vdi.set', $data
|
||||
@@ -1,96 +0,0 @@
|
||||
'use strict'
|
||||
|
||||
angular.module('xoWebApp')
|
||||
.controller 'VmCtrl', (
|
||||
$scope, $stateParams
|
||||
xoApi, xo
|
||||
sizeToBytesFilter, bytesToSizeFilter
|
||||
modal
|
||||
) ->
|
||||
{get} = xo
|
||||
$scope.$watch(
|
||||
-> xo.revision
|
||||
->
|
||||
VM = $scope.VM = get $stateParams.id
|
||||
|
||||
return unless VM?
|
||||
|
||||
# For the edition of this VM.
|
||||
$scope.memorySize = bytesToSizeFilter VM.memory.size
|
||||
|
||||
# build VDI list of this VM
|
||||
$scope.VDIs = []
|
||||
for VBD in VM.$VBDs
|
||||
VDI = get (get VBD)?.VDI
|
||||
$scope.VDIs.push VDI if VDI?
|
||||
)
|
||||
|
||||
# AngularUI select2 component settings
|
||||
$scope.select2Options =
|
||||
'multiple': true
|
||||
'simple_tags': true
|
||||
'tags': []
|
||||
|
||||
$scope.startVM = xo.vm.start
|
||||
$scope.stopVM = xo.vm.stop
|
||||
$scope.force_stopVM = (id) -> xo.vm.stop id, true
|
||||
$scope.rebootVM = xo.vm.restart
|
||||
$scope.force_rebootVM = (id) -> xo.vm.restart id, true
|
||||
$scope.destroyVM = (id) ->
|
||||
modal.confirm({
|
||||
title: 'VM deletion'
|
||||
message: 'Are you sure you want to delete this VM? (including its disks)'
|
||||
}).then ->
|
||||
# FIXME: provides a way to not delete its disks.
|
||||
xo.vm.delete id, true
|
||||
|
||||
$scope.saveVM = ($data) ->
|
||||
{VM} = $scope
|
||||
{CPUs, memory, name_label, name_description} = $data
|
||||
|
||||
$data = {
|
||||
id: VM.UUID
|
||||
}
|
||||
if memory isnt $scope.memorySize and (memory = sizeToBytesFilter memory)
|
||||
$data.memory = memory
|
||||
$scope.memorySize = bytesToSizeFilter memory
|
||||
if CPUs isnt VM.CPUs.number
|
||||
$data.CPUs = +CPUs
|
||||
if name_label isnt VM.name_label
|
||||
$data.name_label = name_label
|
||||
if name_description isnt VM.name_description
|
||||
$data.name_description = name_description
|
||||
|
||||
xoApi.call 'vm.set', $data
|
||||
|
||||
# VDI
|
||||
selected = $scope.selectedVDIs = {}
|
||||
|
||||
$scope.newVDIs = []
|
||||
|
||||
$scope.addVDI = ->
|
||||
$scope.newVDIs.push {
|
||||
# Fake (unique) identifier needed by Angular.JS
|
||||
id: Math.random()
|
||||
}
|
||||
## TODO: Use Angular XEditable Row
|
||||
|
||||
$scope.deleteVDI = (UUID) ->
|
||||
console.log "Delete VDI #{UUID}"
|
||||
|
||||
xoApi.call 'vdi.delete', {id: UUID}
|
||||
|
||||
$scope.disconnectVBD = (UUID) ->
|
||||
console.log "Disconnect VBD #{UUID}"
|
||||
|
||||
xoApi.call 'vbd.disconnect', {id: UUID}
|
||||
|
||||
|
||||
$scope.osType = (osName) ->
|
||||
switch osName
|
||||
when 'debian','ubuntu','centos','suse','redhat'
|
||||
'linux'
|
||||
when 'windows'
|
||||
'windows'
|
||||
else
|
||||
'other'
|
||||
@@ -1,193 +0,0 @@
|
||||
angular.module('xoWebApp')
|
||||
|
||||
# This attribute stops the ascendant propagation of a given event.
|
||||
#
|
||||
# The value of this attribute should be the name of the event to
|
||||
# stop.
|
||||
.directive 'stopEvent', ->
|
||||
(_, $element, attrs) ->
|
||||
$element.on attrs.stopEvent, ($event) -> $event.stopPropagation()
|
||||
|
||||
# This attribute works similarly to `ng-click` but do not handle the
|
||||
# event if the clicked element:
|
||||
# - is an `input`;
|
||||
# - has a `ng-click` attribute;
|
||||
# - has a `xo-click` attribute;
|
||||
# - has a `xo-sref` attribute;
|
||||
# - is a link (`a`) and has a `href` attribute.
|
||||
.directive 'xoClick', ($parse) ->
|
||||
($scope, $element, attrs) ->
|
||||
fn = $parse attrs.xoClick
|
||||
current = $element.get(0)
|
||||
current.addEventListener(
|
||||
'click'
|
||||
(event) ->
|
||||
|
||||
# Browse all parent elements of the element the event
|
||||
# happened to and abort if one of them should handle the
|
||||
# event itself.
|
||||
el = event.target
|
||||
while el isnt current
|
||||
{attributes: attrs, tagName: tag} = el
|
||||
|
||||
return if (
|
||||
tag is 'INPUT' or
|
||||
attrs['ng-click']? or
|
||||
attrs['xo-click']? or
|
||||
attrs['xo-sref']? or
|
||||
(tag is 'A') and attrs.href?
|
||||
)
|
||||
|
||||
el = el.parentNode
|
||||
|
||||
# Stop the propagation.
|
||||
event.stopPropagation()
|
||||
|
||||
# Apply the `xo-click` attribute.
|
||||
$scope.$apply ->
|
||||
fn $scope, {$event: event}
|
||||
true
|
||||
)
|
||||
|
||||
# TODO: create a directive which allows a link on any element.
|
||||
|
||||
# TODO: Mutualize code with `xoClick`.
|
||||
.directive 'xoSref', ($state) ->
|
||||
($scope, $element, attrs) ->
|
||||
current = $element.get(0)
|
||||
current.addEventListener(
|
||||
'click'
|
||||
(event) ->
|
||||
|
||||
# Browse all parent elements of the element the event
|
||||
# happened to and abort if one of them should handle the
|
||||
# event itself.
|
||||
el = event.target
|
||||
while el isnt current
|
||||
{attributes: attrs_, tagName: tag} = el
|
||||
|
||||
return if (
|
||||
tag is 'INPUT' or
|
||||
attrs_['ng-click']? or
|
||||
attrs_['xo-click']? or
|
||||
attrs_['xo-sref']? or
|
||||
(tag is 'A') and attrs_.href?
|
||||
)
|
||||
|
||||
el = el.parentNode
|
||||
|
||||
# Stop the propagation.
|
||||
event.stopPropagation()
|
||||
|
||||
# Extracts the state and its parameters for the `xo-sref`
|
||||
# attribute.
|
||||
match = attrs.xoSref.match /^([^(]+)\s*(?:\((.*)\))?$/
|
||||
throw new Error 'invalid SREF' unless match
|
||||
state = match[1]
|
||||
params = if match[2] then $scope.$eval match[2] else {}
|
||||
|
||||
# Go to this state.
|
||||
$state.go state, params
|
||||
true
|
||||
)
|
||||
|
||||
.directive 'xoVnc', ($window) ->
|
||||
# This helper function parses a URL and returns its components:
|
||||
# protocol, hostname, port, path and query.
|
||||
parseUrl = (url) ->
|
||||
a = $window.document.createElement 'a'
|
||||
a.href = url
|
||||
{protocol, hostname, port, host, pathname, search, hash} = a
|
||||
|
||||
{
|
||||
# Protocol lowercased postfixed with ':'.
|
||||
protocol
|
||||
|
||||
hostname
|
||||
port
|
||||
|
||||
# Same has hostname[:port].
|
||||
host
|
||||
|
||||
# The path excluding the query string.
|
||||
pathname
|
||||
|
||||
# Query string (including '?').
|
||||
search
|
||||
|
||||
# Same has `pathname + search`.
|
||||
path: "#{pathname}#{search}"
|
||||
|
||||
# Fragment (including '#').
|
||||
hash
|
||||
}
|
||||
|
||||
# The directive definition.
|
||||
{
|
||||
restrict: 'E'
|
||||
|
||||
scope: {
|
||||
height: '@?'
|
||||
width: '@?'
|
||||
url: '@'
|
||||
remoteControl: '='
|
||||
}
|
||||
|
||||
replace: true
|
||||
template: '''
|
||||
<canvas height="{{height}}" width="{{width}}">
|
||||
Sorry, your browser does not support the canvas element.
|
||||
</canvas>
|
||||
'''
|
||||
|
||||
link: ($scope, $element, attrs) ->
|
||||
# Default options.
|
||||
$scope.$watch 'height', -> $scope.height ?= 480
|
||||
$scope.$watch 'width', -> $scope.width ?= 640
|
||||
|
||||
rfb = null
|
||||
|
||||
$scope.remoteControl = {
|
||||
sendCtrlAltDel: ->
|
||||
rfb.sendCtrlAltDel() if rfb?
|
||||
}
|
||||
|
||||
# Connects to the specified URL.
|
||||
$scope.$watch 'url', (url) ->
|
||||
# Properly disconnects first if necessary.
|
||||
if rfb?
|
||||
rfb.disconnect()
|
||||
rfb = null
|
||||
|
||||
# If the URL is empty, nothing to do.
|
||||
return unless url
|
||||
|
||||
# Creates the new RFB object.
|
||||
rfb = new $window.RFB {
|
||||
# Options.
|
||||
encrypt: false
|
||||
target: $element[0]
|
||||
|
||||
# Callbacks.
|
||||
onPasswordRequired: (rfb) ->
|
||||
rfb.sendPassword $window.prompt 'Password required:'
|
||||
onUpdateState: (args...) -> console.log args
|
||||
}
|
||||
|
||||
# Parse the URL.
|
||||
url = parseUrl url
|
||||
|
||||
# Connects.
|
||||
rfb.connect(
|
||||
url.hostname
|
||||
80 # Ignores the specified port and always use 80.
|
||||
'' # TODO: comment.
|
||||
url.path.substr 1 # Leading '/' is added by noVNC.
|
||||
)
|
||||
|
||||
# Properly disconnect if the console is closed.
|
||||
$scope.$on '$destroy', ->
|
||||
if rfb?
|
||||
rfb.disconnect()
|
||||
rfb = null
|
||||
}
|
||||
@@ -1,102 +0,0 @@
|
||||
angular.module('xoWebApp')
|
||||
|
||||
# The bytes filters takes a number and formats it using adapted
|
||||
# units (KB, MB, etc.).
|
||||
.filter 'bytesToSize', ->
|
||||
(bytes, unit, base) ->
|
||||
unit ?= 'B'
|
||||
base ?= 1024
|
||||
powers = ['', 'K', 'M', 'G', 'T', 'P']
|
||||
|
||||
i = 0
|
||||
while bytes >= base
|
||||
bytes /= base
|
||||
++i
|
||||
|
||||
if bytes is -1
|
||||
"-"
|
||||
else
|
||||
# Maximum 1 decimals.
|
||||
bytes = ((bytes * 10)|0) / 10
|
||||
"#{bytes}#{powers[i]}B"
|
||||
|
||||
.filter 'sizeToBytes', ->
|
||||
regex = ///^
|
||||
(\d+(?:\.\d+)?) # digits ('.' digits)?
|
||||
\s* # Optional spaces beetween the digits and the unit.
|
||||
([kmgtp])? # Optional unit modifier K/M/G/T/P.
|
||||
b? # Optional unit (“b”), not meaningful.
|
||||
$///i
|
||||
factors = {
|
||||
k: 1024
|
||||
m: 1048576
|
||||
g: 1073741824
|
||||
t: 1099511627776
|
||||
p: 1125899906842624
|
||||
}
|
||||
(size) ->
|
||||
matches = regex.exec size
|
||||
|
||||
# If the input is invalid, just returns null.
|
||||
return null unless matches
|
||||
|
||||
modifier = matches[2]
|
||||
Math.round if modifier and (factor = factors[modifier.toLowerCase()])
|
||||
factor * matches[1]
|
||||
else
|
||||
matches[1]
|
||||
|
||||
# Simply returns the number of elements in the collection.
|
||||
.filter 'count', ->
|
||||
(collection) ->
|
||||
# Array.
|
||||
if angular.isArray collection
|
||||
return collection.length
|
||||
|
||||
# Object.
|
||||
count = 0
|
||||
for key of collection
|
||||
++count if collection.hasOwnProperty key
|
||||
|
||||
count
|
||||
|
||||
# Resolves links between objects.
|
||||
.filter('resolve', (xo) -> xo.get)
|
||||
|
||||
# Applies a function to a list of items.
|
||||
#
|
||||
# If a string is used instead of a function, it will be used as a
|
||||
# property name to extract from each item.
|
||||
#
|
||||
# Note: This filter behaves nicely if the first argument is not an
|
||||
# array.
|
||||
.filter 'map', ->
|
||||
(items, fn) ->
|
||||
unless angular.isArray items
|
||||
return []
|
||||
|
||||
if angular.isString fn
|
||||
property = fn
|
||||
fn = (item) -> item[property]
|
||||
|
||||
fn item for item in items
|
||||
|
||||
.filter '%', ->
|
||||
(value) ->
|
||||
# If `value` is an array of two values, divide the first by the
|
||||
# second and mutiply by 100.
|
||||
if value.length is 2
|
||||
|
||||
# Special case, if the divider is 0, simply returns "N/A".
|
||||
return 'N/A' if value[1] is 0
|
||||
|
||||
result = 100 * value[0] / value[1]
|
||||
if Number.isNaN result
|
||||
return 'N/A'
|
||||
|
||||
value = result
|
||||
|
||||
# No decimals at most.
|
||||
value = (Math.round value * 1e0) / 1e0
|
||||
|
||||
"#{value}%"
|
||||
@@ -1,345 +0,0 @@
|
||||
angular.module('xoWebApp')
|
||||
|
||||
.service 'modal', ($modal) ->
|
||||
{
|
||||
confirm: ({title, message}) ->
|
||||
modal = $modal.open {
|
||||
controller: 'GenericModalCtrl'
|
||||
templateUrl: 'views/generic_modal.html'
|
||||
resolve: {
|
||||
options: -> {
|
||||
title
|
||||
message
|
||||
noButtonLabel: 'Cancel'
|
||||
}
|
||||
}
|
||||
}
|
||||
modal.result
|
||||
}
|
||||
|
||||
.service 'notify', (toaster) ->
|
||||
notifier = (level) ->
|
||||
(options) ->
|
||||
if angular.isString options
|
||||
options = { message: options }
|
||||
else
|
||||
throw new Error 'missing message' unless options.message
|
||||
|
||||
toaster.pop(
|
||||
level
|
||||
options.title ? 'Xen-Orchestra'
|
||||
options.message
|
||||
)
|
||||
|
||||
{
|
||||
warning: notifier 'warning'
|
||||
error: notifier 'error'
|
||||
info: notifier 'info'
|
||||
|
||||
# TODO: It is probably a bad design to have notification for
|
||||
# successful operations.
|
||||
# success: notifier 'success'
|
||||
}
|
||||
|
||||
.service 'xoApi', ($cookieStore, $location, $q, $timeout, notify) ->
|
||||
url = do ->
|
||||
# Note: The path is ignored, the WebSocket must be relative to
|
||||
# root.
|
||||
protocol = if $location.protocol() is 'https' then 'wss:' else 'ws:'
|
||||
host = $location.host()
|
||||
port = $location.port()
|
||||
|
||||
"#{protocol}//#{host}:#{port}/api/"
|
||||
|
||||
# Identifier of the next request.
|
||||
nextId = 0
|
||||
|
||||
# Delay in seconds to the next reconnection attempt, `null` when
|
||||
# no reconnection are attempted (currently connected).
|
||||
delay = null
|
||||
|
||||
# Promises linked to the requests.
|
||||
deferreds = {}
|
||||
|
||||
# When the socket is closed, request are enqueued.
|
||||
queue = []
|
||||
|
||||
# Variable which will contains the webSocket to use.
|
||||
socket = null
|
||||
|
||||
# Currently logged in user.
|
||||
user = null
|
||||
|
||||
# Function used to send requests when the socket is opened.
|
||||
send = (method, params, deferred) ->
|
||||
id = nextId++
|
||||
socket.send JSON.stringify(
|
||||
jsonrpc: '2.0'
|
||||
id: id
|
||||
method: method
|
||||
params: params or []
|
||||
)
|
||||
deferreds[id] = deferred or $q.defer()
|
||||
deferreds[id].promise
|
||||
|
||||
# Function used to enqueue requests when the socket is closed.
|
||||
enqueue = (method, params) ->
|
||||
deferred = $q.defer()
|
||||
queue.push [method, params, deferred]
|
||||
deferred.promise
|
||||
|
||||
# This variable contains the function which be called (initially
|
||||
# it will points to `enqueue`).
|
||||
call = enqueue
|
||||
|
||||
connect = ->
|
||||
# Creation of the WebSocket.
|
||||
socket = new WebSocket url
|
||||
|
||||
# When the WebSocket opens, send any requests enqueued.
|
||||
socket.addEventListener 'open', ->
|
||||
notify.info 'Connected to XO-Server'
|
||||
|
||||
delay = null
|
||||
|
||||
# If there is a token tries to sign in.
|
||||
if (token = $cookieStore.get 'token')
|
||||
send(
|
||||
'session.signInWithToken'
|
||||
{token}
|
||||
).then (loggedInUser) ->
|
||||
user = loggedInUser
|
||||
.catch ->
|
||||
# The authentication failed, removes the token.
|
||||
$cookieStore.remove 'token'
|
||||
|
||||
# Sends queued requests.
|
||||
send entry... while (entry = queue.shift())?
|
||||
|
||||
# New requests are sent directly.
|
||||
call = send
|
||||
|
||||
socket.addEventListener 'close', ->
|
||||
call = enqueue
|
||||
user = null
|
||||
delay ?= 4 # Initial delay.
|
||||
|
||||
notify.error """
|
||||
The connection with XO-Server has been lost.
|
||||
|
||||
Attempt to reconnect in #{delay} seconds.
|
||||
"""
|
||||
|
||||
# Tries to reconnect after a small (increasing) delay.
|
||||
$timeout connect, delay * 1e3
|
||||
|
||||
# FIXME: Use Fibonacci progression instead of exponential.
|
||||
delay *= 2
|
||||
|
||||
# When a message is received, we call the corresponding
|
||||
# deferred (if any).
|
||||
socket.addEventListener 'message', (event) ->
|
||||
response = JSON.parse event.data
|
||||
id = response.id
|
||||
deferred = deferreds[id]
|
||||
delete deferreds[id]
|
||||
|
||||
error = response.error
|
||||
unless error is undefined
|
||||
deferred.reject error
|
||||
return
|
||||
|
||||
result = response.result
|
||||
if result is undefined
|
||||
console.error 'invalid message received', response
|
||||
deferred.reject {
|
||||
message: message
|
||||
object: response
|
||||
}
|
||||
return
|
||||
|
||||
deferred.resolve result
|
||||
|
||||
connect()
|
||||
|
||||
xoApi = {
|
||||
call: (method, params) ->
|
||||
call method, params
|
||||
|
||||
logIn: (email, password, persist) ->
|
||||
call(
|
||||
'session.signInWithPassword'
|
||||
{email, password}
|
||||
).then (loggedInUser) ->
|
||||
user = loggedInUser
|
||||
|
||||
if persist
|
||||
call('token.create').then (token) ->
|
||||
$cookieStore.put 'token', token
|
||||
.catch (error) ->
|
||||
notify.warning {
|
||||
title: 'Authentication failed'
|
||||
message: error.message
|
||||
}
|
||||
|
||||
logOut: ->
|
||||
send 'session.signOut' if socket
|
||||
user = null
|
||||
$cookieStore.remove 'token'
|
||||
}
|
||||
|
||||
Object.defineProperty xoApi, 'user', {
|
||||
get: -> user
|
||||
}
|
||||
|
||||
# This service provides access to XO objects.
|
||||
#
|
||||
# Deprecated: use the service `xo` instead.
|
||||
.service 'xoObjects', ($timeout, xoApi) ->
|
||||
byRefs = Object.create null
|
||||
byUUIDs = Object.create null
|
||||
{
|
||||
all
|
||||
byTypes
|
||||
} = xoObjects = {
|
||||
revision: 0
|
||||
all: []
|
||||
byTypes: Object.create null
|
||||
|
||||
get: (key) ->
|
||||
if angular.isArray key
|
||||
item for item in key when (item = byUUIDs[item] ? byRefs[item])
|
||||
else
|
||||
byUUIDs[key] ? byRefs[key]
|
||||
}
|
||||
|
||||
do helper = ->
|
||||
xoApi.call('xo.getAllObjects').then (objects) ->
|
||||
# Empty collections.
|
||||
delete byTypes[key] for key of byTypes
|
||||
byRefs = Object.create null
|
||||
byUUIDs = Object.create null
|
||||
|
||||
all = objects
|
||||
for object in all
|
||||
byUUIDs[object.UUID] = object if object.UUID?
|
||||
byRefs[object.ref] = object if object.ref?
|
||||
(byTypes[object.type] ?= []).push object
|
||||
|
||||
++xoObjects.revision
|
||||
|
||||
# Fetches objects again after 5 seconds.
|
||||
$timeout helper, 5e3, false
|
||||
|
||||
xoObjects
|
||||
|
||||
.service 'xo', (xoObjects, xoApi, notify) ->
|
||||
action = (name, method, options) ->
|
||||
unless method
|
||||
return ->
|
||||
notify.info {
|
||||
title: name
|
||||
message: 'This feature has not been implemented yet.'
|
||||
}
|
||||
|
||||
# TODO: A (broken) promise should be returned for
|
||||
# consistency.
|
||||
|
||||
{argsMapper, notification} = options ? {}
|
||||
|
||||
argsMapper ?= (id) -> {id}
|
||||
|
||||
(args...) ->
|
||||
xoApi.call(
|
||||
method
|
||||
argsMapper args...
|
||||
).catch (error) ->
|
||||
unless notification is false
|
||||
code = error?.code
|
||||
message = if code is 2
|
||||
'You don\'t have the permission.'
|
||||
else
|
||||
'The action failed for unknown reason.'
|
||||
|
||||
notify.warning {
|
||||
title: name
|
||||
message
|
||||
}
|
||||
|
||||
console.error error
|
||||
|
||||
# Re-throws the error to make it available in the promise
|
||||
# chain.
|
||||
throw error
|
||||
|
||||
# The interface.
|
||||
xo = {
|
||||
objects: xoObjects.all
|
||||
byTypes: xoObjects.byTypes
|
||||
# revision: xoObjects.revision # Implemented below as a getter.
|
||||
|
||||
get: xoObjects.get
|
||||
|
||||
pool: {
|
||||
disconnect: action 'Disconnect pool'
|
||||
new_sr: action 'New SR' #temp fix before creating SR
|
||||
}
|
||||
|
||||
host: {
|
||||
detach: action 'Detach host'#, 'host.detach'
|
||||
restart: action 'Restart host'#, 'host.restart'
|
||||
restartToolStack: action 'Restart tool stack'#, 'host.restartToolStack'
|
||||
start: action 'Start host'#, 'host.start'
|
||||
stop: action 'Stop host'#, 'host.stop'
|
||||
new_sr: action 'New SR' #temp fix before creating SR
|
||||
# TODO: attach/set
|
||||
}
|
||||
|
||||
message: {
|
||||
delete: action, 'Delete message'
|
||||
}
|
||||
|
||||
pbd: {
|
||||
delete: action 'Delete PBD'
|
||||
disconnect: action 'Disconnect PBD'
|
||||
}
|
||||
|
||||
task: {
|
||||
delete: action, 'Delete task'
|
||||
}
|
||||
|
||||
vm: {
|
||||
createSnapshot: action 'Create VM snapshot'
|
||||
delete: action 'Delete VM', 'vm.delete', {
|
||||
argsMapper: (id, delete_disks) -> { id, delete_disks }
|
||||
}
|
||||
ejectCd: action 'Eject disc', 'vm.ejectCd'
|
||||
insertCd: action 'Insert disc', 'vm.insertCd', {
|
||||
argsMapper: (id, cd_id, force = false) -> { id, cd_id, force }
|
||||
}
|
||||
migrate: action 'Migrate VM', 'vm.migrate', {
|
||||
argsMapper: (id, host_id) -> { id, host_id }
|
||||
}
|
||||
restart: action 'Restart VM', 'vm.restart', {
|
||||
argsMapper: (id, force = false) -> { id, force }
|
||||
}
|
||||
start: action 'Start VM', 'vm.start'
|
||||
stop: action 'Stop VM', 'vm.stop', {
|
||||
argsMapper: (id, force = false) -> { id, force }
|
||||
}
|
||||
# TODO: create/set/pause/suspend
|
||||
}
|
||||
|
||||
vdi: {
|
||||
delete: action 'Delete VDI', 'vdi.delete'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
# Adds the revision property.
|
||||
Object.defineProperty xo, 'revision', {
|
||||
get: -> xoObjects.revision
|
||||
}
|
||||
|
||||
# Returns the interface.
|
||||
xo
|
||||
@@ -1,293 +0,0 @@
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// Bootstrap
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
$icon-font-path: "/bower_components/sass-bootstrap/fonts/"
|
||||
|
||||
@import sass-bootstrap/lib/bootstrap
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// Font-Awesome 4.
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
$fa-font-path: "../bower_components/font-awesome/fonts"
|
||||
|
||||
@import font-awesome/scss/font-awesome
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Style applied to a message for outdated browsers (IE <= 7).
|
||||
.browsehappy
|
||||
margin: 0.2em 0
|
||||
background: #ccc
|
||||
color: #000
|
||||
padding: 0.2em 0
|
||||
|
||||
// Some links are used throught JavaScript and therefore does not have
|
||||
// a `href` attribute, they should nevertheless have a *pointer*
|
||||
// cursor.
|
||||
// Same for all elements with the "ng-click" attribute.
|
||||
a, [ng-click], [xo-click], [xo-sref]
|
||||
cursor: pointer
|
||||
|
||||
// TODO: We want all our form inputs to be styled by Bootstrap.
|
||||
//input, textarea, select
|
||||
// @extend .form-control
|
||||
|
||||
// Click-through notifications.
|
||||
#toast-container
|
||||
pointer-events: none
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
// TODO: The styles in this file should be
|
||||
// - commented;
|
||||
// - converted to SASS;
|
||||
// - move into this file.
|
||||
@import to-clean
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// Colors
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
////
|
||||
// Power states
|
||||
////
|
||||
|
||||
.xo-color-running
|
||||
@extend .text-success
|
||||
|
||||
.xo-color-halted
|
||||
@extend .text-danger
|
||||
|
||||
.xo-color-paused
|
||||
@extend .text-info
|
||||
|
||||
.xo-color-unknown
|
||||
@extend .text-muted
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// XO icons
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
////
|
||||
// Alerts
|
||||
////
|
||||
|
||||
.xo-icon-info
|
||||
@extend .fa, .fa-exclamation-circle, .text-muted
|
||||
|
||||
.xo-icon-warning
|
||||
@extend .fa, .fa-exclamation-circle, .text-warning
|
||||
|
||||
.xo-ison-error
|
||||
@extend .fa, .fa-exclamation-circle, .text-error
|
||||
|
||||
////
|
||||
// Objects
|
||||
////
|
||||
|
||||
.xo-icon-pool
|
||||
@extend .fa, .fa-cloud
|
||||
|
||||
.xo-icon-host
|
||||
@extend .fa, .fa-th-large
|
||||
|
||||
.xo-icon-vm, .xo-icon-console
|
||||
@extend .fa, .fa-desktop
|
||||
|
||||
.xo-icon-memory
|
||||
@extend .fa, .fa-tasks
|
||||
|
||||
.xo-icon-cpu
|
||||
@extend .fa, .fa-dashboard
|
||||
|
||||
.xo-icon-network
|
||||
@extend .fa, .fa-sitemap
|
||||
|
||||
.xo-icon-sr
|
||||
@extend .fa, .fa-hdd-o
|
||||
|
||||
.xo-icon-snapshot
|
||||
@extend .fa, .fa-camera
|
||||
|
||||
////
|
||||
// Power states
|
||||
////
|
||||
|
||||
.xo-icon-running
|
||||
@extend .fa, .fa-circle, .xo-color-running
|
||||
|
||||
.xo-icon-halted
|
||||
@extend .fa, .fa-circle, .xo-color-halted
|
||||
|
||||
.xo-icon-paused
|
||||
@extend .fa, .fa-circle, .xo-color-paused
|
||||
|
||||
.xo-icon-unknown
|
||||
@extend .fa, .fa-circle, .xo-color-unknown
|
||||
|
||||
// if current operation
|
||||
.xo-icon-working
|
||||
@extend .fa, .fa-circle, .text-warning
|
||||
|
||||
////
|
||||
// Others.
|
||||
////
|
||||
|
||||
.xo-icon-cpu-low
|
||||
@extend .xo-icon-cpu, .text-success
|
||||
|
||||
.xo-icon-cpu-medium
|
||||
@extend .xo-icon-cpu, .text-warning
|
||||
|
||||
.xo-icon-cpu-high
|
||||
@extend .xo-icon-cpu, .text-danger
|
||||
|
||||
////
|
||||
// Guest OS
|
||||
////
|
||||
|
||||
.xo-icon-linux
|
||||
@extend .fa, .fa-linux
|
||||
color: #666
|
||||
|
||||
.xo-icon-windows
|
||||
@extend .fa, .fa-windows
|
||||
color: #666
|
||||
|
||||
.xo-icon-other
|
||||
@extend .fa, .fa-question-circle
|
||||
color: #666
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// Navbar
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
// The login form
|
||||
.login-form
|
||||
padding: 1em
|
||||
width: 20em
|
||||
|
||||
// small space between fields
|
||||
.input-group
|
||||
margin: .2em
|
||||
|
||||
// adapt button for the global theme (dark/blue/grey)
|
||||
.input-group-addon
|
||||
background-color: #3a87ad
|
||||
color: #f8f8f8
|
||||
border: 0
|
||||
|
||||
button
|
||||
margin-top: 1em
|
||||
|
||||
// adapt form for the global theme
|
||||
.form-control
|
||||
background-color: #666
|
||||
color: #f8f8f8
|
||||
border: 0
|
||||
|
||||
// background dark for the whole form
|
||||
.login-form-dark
|
||||
@extend .login-form
|
||||
background-color: #2e3133
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// Main view
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Notice messages in place of the VMs list in the main page.
|
||||
.vms-notice
|
||||
@extend .text-center, .text-muted
|
||||
font-size: 1.5em
|
||||
|
||||
flex: 1
|
||||
align-self: center
|
||||
justify-content: center
|
||||
|
||||
.quick-buttons
|
||||
display: inline
|
||||
float: right
|
||||
opacity: 0
|
||||
|
||||
a
|
||||
color: #666
|
||||
margin: 0 .3em
|
||||
text-decoration: none
|
||||
|
||||
&:hover
|
||||
color: #000
|
||||
// Quick actions buttons are only visible when over their row.
|
||||
tr:hover .quick-buttons
|
||||
opacity: 1
|
||||
|
||||
// remove icon/button in last row on a table
|
||||
.quick-remove
|
||||
display: inline
|
||||
float: right
|
||||
opacity: 0
|
||||
|
||||
a
|
||||
color: #666
|
||||
text-decoration: none
|
||||
|
||||
&:hover
|
||||
color: #000
|
||||
|
||||
// remove only visible when over its row
|
||||
tr:hover .quick-remove
|
||||
opacity: 1
|
||||
|
||||
// edit icon/button in a panel title
|
||||
.quick-edit
|
||||
display: inline
|
||||
float: right
|
||||
opacity: 1
|
||||
color: #666
|
||||
|
||||
&:hover
|
||||
color: #000
|
||||
|
||||
// Substats (less important host stats)
|
||||
.substats
|
||||
opacity: 0
|
||||
|
||||
// Substat displayed on hover
|
||||
div.host-cell:hover .substats
|
||||
opacity: 1
|
||||
|
||||
// Default SRs (where a new VM will be created).
|
||||
.default-sr
|
||||
@extend .text-primary
|
||||
font-weight: bold
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// Pool view
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Allow progress bar in small spaces, like tables
|
||||
.progress-condensed
|
||||
@extend .progress
|
||||
margin-bottom: 0
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// Host view
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Memory progress bar stacked for host
|
||||
.progress-bar-host
|
||||
@extend .progress-bar
|
||||
border-right: 1px solid white
|
||||
|
||||
// Memory progress bar stacked for VM
|
||||
.progress-bar-vm
|
||||
@extend .progress-bar-success
|
||||
border-right: 1px solid white
|
||||
|
||||
// Hover color for progress bar
|
||||
.progress-bar:hover
|
||||
background-color: #e25440
|
||||
@@ -1,226 +0,0 @@
|
||||
/* Brand color */
|
||||
.navbar-brand {color: #bf0000;}
|
||||
|
||||
input.form-control.inverse {background-color: #666; color: #f8f8f8; border: 0px;}
|
||||
|
||||
/* Search bar */
|
||||
.popover { width: 200px; }
|
||||
/* search button in main bar */
|
||||
/* WARNING: hack because of strange Chrome behavior! Remove static height ASAP */
|
||||
.btn-search {background-color: #3a87ad; color: #f8f8f8; height: 34px;}
|
||||
.btn-search:hover {background-color: #1d4457; color: #f8f8f8;}
|
||||
|
||||
html {
|
||||
background-color: #edece4;
|
||||
/* Possibility to get a wallpaper for the background: see later in admin maybe, for the lulz */
|
||||
/*background: url(bg.jpg) no-repeat center center fixed;
|
||||
-webkit-background-size: cover;
|
||||
-moz-background-size: cover;
|
||||
-o-background-size: cover;
|
||||
background-size: cover;*/
|
||||
}
|
||||
|
||||
body {
|
||||
padding-top: 50px;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.navbar-under { background-color: #f8f8f8;}
|
||||
|
||||
|
||||
td.vcenter {
|
||||
vertical-align: middle;
|
||||
}
|
||||
input[type="checkbox"]{
|
||||
padding-top: 0px;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
input.inverse {margin: 0;}
|
||||
/* progress bar */
|
||||
.progress-small {
|
||||
|
||||
height: 0.6em;
|
||||
width: 4em;
|
||||
display: inline-block;
|
||||
float: center;
|
||||
margin: 3px;
|
||||
}
|
||||
|
||||
// FIXME: What is it?
|
||||
//.i-progress { float: center; margin-right: 0em;}
|
||||
|
||||
.pool-block { margin-left: 1em; margin-right: 1em; margin-top: 0.5em; margin-bottom: 0;}
|
||||
.pool-cell { margin-bottom: 0.5em; margin-left: 2em; margin-right: 1em; min-height: 6em; max-width: 190px; background-color: white; }
|
||||
/* row for all hosts/vms in a pool */
|
||||
.hosts-vms-cells { min-height: 6em; margin-right: -0.5em; }
|
||||
/* individual host element */
|
||||
.host-cell { max-width: 156px; background-color: white; margin-bottom: 0.5em;}
|
||||
/* pool size mini : 195 px ; host : 161 px; */
|
||||
.vm-cell {
|
||||
margin-left: 0.5em;
|
||||
margin-bottom: 0.5em;
|
||||
background-color: white;
|
||||
/* allow empty space */
|
||||
/*align-self: flex-start;*/
|
||||
}
|
||||
.grey {color: #666; font-size: 0.9em;}
|
||||
|
||||
/* drodown head link for pools/hosts */
|
||||
.dropdown-pool { border-bottom: 1px solid #edece4; text-align: center;}
|
||||
.dropdown-pool a {
|
||||
text-decoration: none;
|
||||
color: #333;
|
||||
}
|
||||
.pool-name {font-size: 1.8em;}
|
||||
.host-name {font-size: 20px;}
|
||||
.big-caret {font-size: 1.4em;}
|
||||
|
||||
/* for dropdown menu not centered */
|
||||
.dropdown-menu {background-color: white;}
|
||||
.left {text-align: left;}
|
||||
|
||||
/* VM TABLE */
|
||||
/* grab zone on VM table, for drag and drop */
|
||||
td.grab {padding: 0 !important; margin: 0 !important; width: 6px !important; cursor: move;}
|
||||
|
||||
tr:hover .grab {background: url("../images/grip.png") no-repeat scroll 1px 50% transparent !important}
|
||||
|
||||
table { table-layout: fixed; }
|
||||
table th, table td { overflow: hidden; }
|
||||
|
||||
td.vm-power-state {width: 20px; text-align: center;}
|
||||
|
||||
td.select-vm {width: 1.5em; height: 20px;}
|
||||
|
||||
td.vm-memory-stat {text-align: right;}
|
||||
|
||||
|
||||
|
||||
/* the main bar */
|
||||
.navbar-inverse
|
||||
{
|
||||
background-color: #242628;
|
||||
border-color: #2e3133;
|
||||
//font-variant:small-caps;
|
||||
}
|
||||
.fa {font-variant: normal;}
|
||||
/* the big subbar */
|
||||
.sub-bar
|
||||
{
|
||||
height:50px;
|
||||
top:50px;
|
||||
position: fixed;
|
||||
background:#242628;
|
||||
border-bottom:1px solid #2e3133;
|
||||
width:100%;
|
||||
margin:0px auto;
|
||||
z-index: 1020;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Black theme: inversed colors for drop down menus */
|
||||
a.dropdown-toggle.inverse:hover {background-color:#2e3133 !important;}
|
||||
a.dropdown-toggle.inverse:active {background-color:#2e3133 !important;}
|
||||
a.dropdown-toggle.inverse:focus {background-color:#2e3133 !important;}
|
||||
ul.inverse {background:#2e3133;}
|
||||
ul.inverse a {color:#f8f8f8;}
|
||||
ul.inverse a:hover {background-color:#242628; color: #f8f8f8 ;}
|
||||
ul.inverse li.divider {background-color:#222;}
|
||||
|
||||
|
||||
/* Inversed (black) buttons */
|
||||
button.btn.navbar-btn.btn-default.inversed {background-color:#444; border-color: #222; color: #999999;}
|
||||
a.btn.navbar-btn.btn-default.dropdown-toggle.inversed {background-color:#444; border-color: #222; color: #999999; margin-left: 0.5em;}
|
||||
|
||||
/* change caret color for inversed button */
|
||||
.grey-caret {border-top-color: #999999 !important; border-bottom-color: #999999 !important;}
|
||||
|
||||
/* stats bar */
|
||||
.overview { padding: 1em; color: #a6a6a6 ; max-width: 346px;}
|
||||
.overview i {font-weight: normal;}
|
||||
.small {font-size: 10pt; font-style: normal;}
|
||||
|
||||
/* stats pool and host */
|
||||
.stats {text-align: center; margin-top: 1em; margin-bottom: 0.4em; padding-bottom: 0.4em; }
|
||||
.stats a {text-decoration: none; color: #a6a6a6; margin-right: 0.6em;}
|
||||
.stats a:hover {text-decoration: none; color: #333;}
|
||||
.sr-name {font-size: 10pt;}
|
||||
/* "actionbar" which is select and buttons when one or more VM selected */
|
||||
.before-action-bar { margin-left: 1em;}
|
||||
.action-bar {display: inline;}
|
||||
|
||||
/* SR table (in host and pool) */
|
||||
.no-border {border-top: 0px !important;}
|
||||
/* vm name in table */
|
||||
.vm {display: inline; font-size: 10.5pt; margin: 0;}
|
||||
.no-vm {font-size: 1.5em; margin-top: 1.8em; color: #999;}
|
||||
.vm-cell table {margin: 0;}
|
||||
.vm-cell td {border-bottom: 1px solid #edece4 !important;; border-top: 0px !important;}
|
||||
/* ip display */
|
||||
|
||||
.cpu {display: inline;}
|
||||
.cpu a {text-decoration: none; color: #a6a6a6; margin-left: 0.9em;}
|
||||
.cpu a:hover {text-decoration: none; color: #333;}
|
||||
|
||||
/* tooltip hack to avoid be hidden by other elements */
|
||||
/*
|
||||
.tooltip {
|
||||
position: fixed;
|
||||
}
|
||||
*/
|
||||
|
||||
/* useful global class */
|
||||
.center {text-align: center;}
|
||||
.right {text-align: right;}
|
||||
.small-caps {font-variant:small-caps;}
|
||||
.big {font-size: 2em;}
|
||||
|
||||
|
||||
/* flex */
|
||||
.grid {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.grid-cell {
|
||||
flex: 1;
|
||||
border-radius: 3px 3px 3px 3px;
|
||||
}
|
||||
/* stats name in a grid cell */
|
||||
.stat-name {margin-top: 1em; text-align: center; font-variant: small-caps;}
|
||||
|
||||
/* flat view */
|
||||
.flat-cell {border-radius: 0px; margin-left: 1em; margin-right: 1em; margin-top: 0.5em; margin-bottom: 0.5em;}
|
||||
.flat-cell-name {max-width: 150px; min-width: 150px; font-weight: bold;}
|
||||
.flat-cell-description {max-width: 250px; min-width: 250px;}
|
||||
.flat-cell-type {max-width: 40px; font-size: 2em; text-align: center; margin: auto; margin-left: 0.5em;}
|
||||
.flat-cell-tag {font-size: 11pt; margin: auto; min-height: 2.5em; padding-top: 0.4em; padding-left: 1em; opacity: 0.8;}
|
||||
|
||||
.flat-object {margin: 0.5em; background-color: #fff; border-radius: 3px 3px 3px 3px; margin-top: 0.5em; margin-bottom: 0.5em;}
|
||||
.flat-object:hover {background-color: #f8f8f8;}
|
||||
.flat-panel {background-color: white; margin: 0.5em; border-radius: 3px 3px 3px 3px; padding-left: 0.5em; padding-right: 0.5em;}
|
||||
|
||||
.page-title {text-align: center; font-size: 2em; margin: 0;}
|
||||
.flat-panel-title {border-bottom: 1px solid #edece4; text-align: center; font-size: 1.5em;}
|
||||
|
||||
|
||||
.grid-button {
|
||||
margin-left: 1em;
|
||||
margin-right: 1em;
|
||||
margin-bottom: 0.5em;
|
||||
padding: 0.5em;
|
||||
background-color: #eee;
|
||||
}
|
||||
|
||||
.grid-button:hover {
|
||||
background-color: #e25440;
|
||||
}
|
||||
|
||||
/* With gutters */
|
||||
.grid--gutters {
|
||||
margin-left: -0.5em;
|
||||
}
|
||||
.grid--gutters > .grid-cell {
|
||||
padding-left: 0.5em;
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
<!-- TODO: lots of stuff. -->
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="page-title">About Xen Orchestra</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid">
|
||||
<!-- Vates -->
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title"><i class="fa fa-lightbulb-o" style="color: #e25440;"></i> Vates</p>
|
||||
<p class="text-center">We are the team behind Xen Orchestra, we are Vates! We create Open Source products and we offer commercial support for Xen and Xen Orchestra. Want to know more about us? Go to our website!
|
||||
</p>
|
||||
<p class="text-center"><img src="images/arrow.png"></p><br/>
|
||||
<p class="text-center"><a class="btn btn-success" href="https://vates.fr"><i class="fa fa-hand-o-right"></i> Our website</a></p>
|
||||
</div>
|
||||
|
||||
<!-- Open Source -->
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title"><i class="fa fa-thumbs-up" style="color: #e25440;"></i> Open Source</p>
|
||||
<p class="text-center">This project is Open Source (AGPL), everyone is welcome aboard! You want a specific feature in XO? Report a bug? Go to our project website, read the FAQ and get involved in the project!</p>
|
||||
<p class="text-center"><img src="images/opensource.png"></p><br/>
|
||||
<p class="text-center"><a class="btn btn-info" href="https://xen-orchestra.com"><i class="fa fa-flask"></i> Projet website</a></p>
|
||||
</div>
|
||||
|
||||
<!-- Pro support -->
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title"><i class="fa fa-truck" style="color: #e25440;"></i> Pro Support Delivered</p>
|
||||
<p class="text-center">Our XO Appliance can be delivered with professional support: stay relaxed, we got your back! You can also have assitance for deploying or upgrade your virtualized infrastructure through our deep understanding of Xen.</p>
|
||||
<p class="text-center"><img src="images/support.png"></p>
|
||||
<p class="text-center"><a class="btn btn-primary" href="https://xen-orchestra.com/services/"><i class="fa fa-envelope"></i> Get services</a></p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,47 +0,0 @@
|
||||
<!-- TODO: lots of stuff. -->
|
||||
<div class="row">
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="page-title"><i class="xo-icon-console xo-color-{{vm.power_state | lowercase}}"></i> {{VM.name_label}}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ISO selector and CtrlAltSuppr button -->
|
||||
<div class="row flat-panel">
|
||||
<div class="col-md-5">
|
||||
<select
|
||||
class="form-control"
|
||||
ng-model="mountedIso"
|
||||
ng-change="insert(mountedIso)"
|
||||
ng-options="VDI.UUID as VDI.name_label group by (VDI.$SR | resolve).name_label for VDI in VDIs | orderBy:'name_label'"
|
||||
></select>
|
||||
</div>
|
||||
<div class="col-md-1">
|
||||
<button
|
||||
class="btn btn-default"
|
||||
ng-click="eject()"
|
||||
ng-disabled="!mountedIso"
|
||||
>
|
||||
<i class="fa fa-eject"></i>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col-md-6 text-right">
|
||||
<button
|
||||
class="btn btn-default"
|
||||
ng-click="vncRemote.sendCtrlAltDel()"
|
||||
>
|
||||
<i class="fa fa-keyboard-o"></i> Ctrl+Alt+Del
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- NoVNC panel -->
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-panel">
|
||||
<xo-vnc
|
||||
url="{{consoleUrl}}"
|
||||
remote-control="vncRemote"
|
||||
>
|
||||
</xo-vnc>
|
||||
<br/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,41 +0,0 @@
|
||||
<form ng-submit="delete()">
|
||||
<div class="modal-header">
|
||||
<h3>VMs deletion</h3>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p>
|
||||
You are going to delete the following VMs, this is a <strong>dangerous
|
||||
action</strong>!
|
||||
</p>
|
||||
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th class="col-sm-3">Name</th>
|
||||
<th class="col-sm-6">Description</th>
|
||||
<th class="col-sm-3">Delete disks?</th>
|
||||
</tr>
|
||||
<tbody>
|
||||
<tr ng-repeat="VM in VMs | orderBy:'name_label' track by VM.UUID">
|
||||
<td>{{VM.name_label}}</td>
|
||||
<td>{{VM.name_description}}</td>
|
||||
<td><input type="checkbox" ng-model="disks[VM.UUID]"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button
|
||||
type="submit"
|
||||
class="btn btn-primary"
|
||||
>
|
||||
Delete
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-warning"
|
||||
ng-click="$dismiss()"
|
||||
>
|
||||
Cancel
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
@@ -1,23 +0,0 @@
|
||||
<div class="modal-header">
|
||||
<h3>{{title}}</h3>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
{{message}}
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-primary"
|
||||
ng-click="$close()"
|
||||
>
|
||||
{{yesButtonLabel}}
|
||||
</button>
|
||||
<button
|
||||
ng-if="noButtonLabel"
|
||||
type="button"
|
||||
class="btn btn-warning"
|
||||
ng-click="$dismiss()"
|
||||
>
|
||||
{{noButtonLabel}}
|
||||
</button>
|
||||
</div>
|
||||
@@ -1,364 +0,0 @@
|
||||
<!-- TODO: lots of stuff. -->
|
||||
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="page-title">
|
||||
<i class="xo-icon-host xo-color-{{host.power_state | lowercase}}"></i>
|
||||
{{host.name_label}}
|
||||
<small ng-if="pool.name_label">
|
||||
(<a ui-sref="pools_view({id: pool.UUID})">{{pool.name_label}}</a>)
|
||||
</small>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title"><i class="fa fa-cogs" style="color: #e25440;"></i> General
|
||||
<span class="quick-edit" tooltip="Edit General settings" ng-click="hostSettings.$show()">
|
||||
<i class="fa fa-edit fa-fw"></i>
|
||||
</span>
|
||||
</p>
|
||||
<div class="general-properties">
|
||||
<form editable-form name="hostSettings" onbeforesave="saveHost($data)">
|
||||
<dl class="dl-horizontal">
|
||||
<dt>Name</dt>
|
||||
<dd>
|
||||
<span editable-text="host.name_label" e-name="name_label" e-form="hostSettings">
|
||||
{{host.name_label}}
|
||||
</span>
|
||||
</dd>
|
||||
<dt>Description</dt>
|
||||
<dd>
|
||||
<span editable-text="host.name_description" e-name="name_description" e-form="hostSettings">
|
||||
{{host.name_description}}
|
||||
</span>
|
||||
</dd>
|
||||
<dt>Enabled</dt>
|
||||
<dd>
|
||||
<span editable-checkbox="host.enabled" e-name="enabled" e-form="hostSettings">
|
||||
{{host.enabled}}
|
||||
</span>
|
||||
</dd>
|
||||
<dt>Tags</dt>
|
||||
<dd ng-if="host.tags.length">
|
||||
<span ng-repeat="tag in host.tags">
|
||||
<span class="label label-primary">{{tag}}</span>
|
||||
</span>
|
||||
</dd>
|
||||
<dd ng-if="!host.tags.length">
|
||||
<em>No tags.</em>
|
||||
</dd>
|
||||
<dt>CPUs</dt>
|
||||
<dd>{{host.CPUs["cpu_count"]}}x {{host.CPUs["modelname"]}}</dd>
|
||||
<dt>Hostname</dt>
|
||||
<dd>
|
||||
{{host.hostname}}
|
||||
</dd>
|
||||
<dt>UUID</dt>
|
||||
<dd>{{host.UUID}}</dd>
|
||||
<dt>iQN</dt>
|
||||
<dd>{{host.iSCSI_name}}</dd>
|
||||
</dl>
|
||||
<div class="btn-form" ng-show="hostSettings.$visible">
|
||||
<p class="center">
|
||||
<button type="button" ng-disabled="hostSettings.$waiting" ng-click="hostSettings.$cancel()" class="btn btn-default"><i class="fa fa-times"></i> Cancel</button>
|
||||
<button type="submit" ng-disabled="hostSettings.$waiting" class="btn btn-primary">
|
||||
<i class="fa fa-save"></i> Save
|
||||
</button>
|
||||
</p>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title"><i class="fa fa-bar-chart-o" style="color: #e25440;"></i> Stats</p>
|
||||
<div class="grid">
|
||||
<div class="grid-cell">
|
||||
<p class="stat-name">vCPUs/CPU usage:</p>
|
||||
<p class="center big">{{host.$vCPUs}}/{{host.CPUs["cpu_count"]}}</p>
|
||||
</div>
|
||||
<div class="grid-cell">
|
||||
<p class="stat-name">RAM used:</p>
|
||||
<p class="center big">{{[host.memory.usage, host.memory.size] | %}}</p>
|
||||
</div>
|
||||
<div class="grid-cell">
|
||||
<p class="stat-name">Running VMs:</p>
|
||||
<p class="center big">{{host.VMs.length}}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Action panel -->
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title"><i class="fa fa-flash" style="color: #e25440;"></i> Actions</p>
|
||||
<div class="grid">
|
||||
<div class="grid-cell text-center grid-button" tooltip="Add SR">
|
||||
<i class="xo-icon-sr fa-2x fa-fw"></i>
|
||||
</div>
|
||||
<div class="grid-cell text-center grid-button" tooltip="Add VM">
|
||||
<i class="xo-icon-vm fa-2x fa-fw"></i>
|
||||
</div>
|
||||
<div class="grid-cell text-center grid-button" tooltip="Reboot Host">
|
||||
<i class="fa fa-refresh fa-2x fa-fw"></i>
|
||||
</div>
|
||||
<div class="grid-cell text-center grid-button" tooltip="Shutdown Host">
|
||||
<i class="fa fa-power-off fa-2x fa-fw"></i>
|
||||
</div>
|
||||
<div class="grid-cell text-center grid-button" tooltip="Restart Toolstack">
|
||||
<i class="fa fa-retweet fa-2x fa-fw"></i>
|
||||
</div>
|
||||
<div class="grid-cell text-center grid-button" tooltip="Remove from Pool">
|
||||
<i class="fa fa-cloud-upload fa-2x fa-fw"></i>
|
||||
</div>
|
||||
<div class="grid-cell text-center grid-button" tooltip="Host Console">
|
||||
<i class="xo-icon-console fa-2x fa-fw"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- TODO: Memory panel -->
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title">
|
||||
<i class="xo-icon-memory" style="color: #e25440;"></i> Memory
|
||||
</p>
|
||||
<div class="progress">
|
||||
<div
|
||||
ng-repeat="controller in [host.controller] | resolve track by controller.UUID"
|
||||
class="progress-bar-host"
|
||||
role="progressbar"
|
||||
aria-valuemin="0"
|
||||
aria-valuenow="{{controller.memory.size}}"
|
||||
aria-valuemax="{{host.memory.size}}"
|
||||
style="width: {{[controller.memory.size, host.memory.size] | %}}"
|
||||
tooltip="{{host.name_label}}: {{[controller.memory.size, host.memory.size] | %}}"
|
||||
>
|
||||
<small>{{host.name_label}}</small>
|
||||
</div>
|
||||
<div
|
||||
ng-repeat="VM in host.VMs | resolve | orderBy:'name_label' track by VM.UUID"
|
||||
class="progress-bar progress-bar-vm"
|
||||
role="progressbar"
|
||||
aria-valuemin="0"
|
||||
aria-valuenow="{{VM.memory.size}}"
|
||||
aria-valuemax="{{host.memory.size}}"
|
||||
style="width: {{[VM.memory.size, host.memory.size] | %}}"
|
||||
xo-sref="VMs_view({id: VM.UUID})"
|
||||
tooltip="{{VM.name_label}}: {{[VM.memory.size, host.memory.size] | %}}"
|
||||
>
|
||||
<small>{{VM.name_label}}</small>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="list-inline text-center">
|
||||
<li>Total: {{host.memory.size | bytesToSize}}</li>
|
||||
<li>Currently used: {{host.memory.usage | bytesToSize}}</li>
|
||||
<li>Available: {{host.memory.size-host.memory.usage | bytesToSize}}</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- SR panel -->
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-panel">
|
||||
<form editable-form name="hostSRs" onaftersave="saveTable()" oncancel="cancel()">
|
||||
<p class="flat-panel-title"><i class="xo-icon-sr" style="color: #e25440;"></i> Storage
|
||||
<span class="quick-edit" tooltip="Edit storage" ng-click="hostSRs.$show()">
|
||||
<i class="fa fa-edit fa-fw"> </i>
|
||||
</span>
|
||||
</p>
|
||||
<table class="table table-hover">
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Format</th>
|
||||
<th>Size</th>
|
||||
<th>Physical/Allocated usage</th>
|
||||
<th>Type</th>
|
||||
<th>Status</th>
|
||||
</tr>
|
||||
<!-- TODO: display PBD status for each SR of this host (connected or not) -->
|
||||
<!-- Shared SR -->
|
||||
<tr
|
||||
xo-sref="SRs_view({id: SR.UUID})"
|
||||
ng-repeat="SR in pool.SRs | resolve | orderBy:'name_label' track by SR.UUID"
|
||||
ng-init="PBD = SRsToPBDs[SR.ref]"
|
||||
>
|
||||
<td>
|
||||
{{SR.name_label}}
|
||||
</td>
|
||||
<td>{{SR.SR_type}}</td>
|
||||
<td>{{SR.size | bytesToSize}}</td>
|
||||
<td>
|
||||
<div class="progress-condensed">
|
||||
<div
|
||||
class="progress-bar"
|
||||
role="progressbar"
|
||||
aria-valuemin="0"
|
||||
aria-valuenow="{{SR.usage}}"
|
||||
aria-valuemax="{{SR.size}}"
|
||||
style="width: {{[SR.physical_usage, SR.size] | %}}"
|
||||
tooltip="Physical usage: {{[SR.physical_usage, SR.size] | %}}"
|
||||
></div>
|
||||
<div
|
||||
class="progress-bar progress-bar-info"
|
||||
role="progressbar"
|
||||
aria-valuemin="0"
|
||||
aria-valuenow="{{SR.physical_usage}}"
|
||||
aria-valuemax="{{SR.size}}"
|
||||
style="width: {{[(SR.usage-SR.physical_usage), SR.size] | %}}"
|
||||
tooltip="Allocated: {{[(SR.usage), SR.size] | %}}"
|
||||
></div>
|
||||
</div>
|
||||
</td>
|
||||
<td><span class="label label-primary">Shared</span></td>
|
||||
<td ng-if="PBD.attached">
|
||||
<span class="label label-success">Connected</span>
|
||||
<button type="button" ng-show="hostSRs.$visible" ng-click="disconnectSR(SR.ref)" class="btn btn-sm btn-danger pull-right" tooltip="Disconnect this SR"><i class="fa fa-unlink fa-lg"></i></button>
|
||||
</td>
|
||||
<td ng-if="!PBD.attached">
|
||||
<span class="label label-default">Disconnected</span>
|
||||
<button type="button" ng-show="hostSRs.$visible" ng-click="removeSR(SR.ref)" class="btn btn-sm btn-danger pull-right" tooltip="Remove this SR"><i class="fa fa-trash-o fa-lg"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Local SR -->
|
||||
<!-- TODO: migrate to SRs and not PBDs when implemented in xo-server spec -->
|
||||
<tr
|
||||
xo-sref="SRs_view({id: SR.UUID})"
|
||||
ng-repeat="SR in host.SRs | resolve | orderBy:'name_label' track by SR.UUID"
|
||||
ng-init="PBD = SRsToPBDs[SR.ref]"
|
||||
>
|
||||
<td>
|
||||
{{SR.name_label}}
|
||||
</td>
|
||||
<td>{{SR.SR_type}}</td>
|
||||
<td>{{SR.size | bytesToSize}}</td>
|
||||
<td>
|
||||
<div class="progress-condensed">
|
||||
<div
|
||||
class="progress-bar"
|
||||
role="progressbar"
|
||||
aria-valuemin="0"
|
||||
aria-valuenow="{{SR.usage}}"
|
||||
aria-valuemax="{{SR.size}}"
|
||||
style="width: {{[SR.physical_usage, SR.size] | %}}"
|
||||
tooltip="Physical usage: {{[SR.physical_usage, SR.size] | %}}"
|
||||
></div>
|
||||
<div
|
||||
class="progress-bar progress-bar-info"
|
||||
role="progressbar"
|
||||
aria-valuemin="0"
|
||||
aria-valuenow="{{SR.physical_usage}}"
|
||||
aria-valuemax="{{SR.size}}"
|
||||
style="width: {{[(SR.usage-SR.physical_usage), SR.size] | %}}"
|
||||
tooltip="Allocated: {{[(SR.usage), SR.size] | %}}"
|
||||
></div>
|
||||
</div>
|
||||
</td>
|
||||
<td><span class="label label-info">Local</span></td>
|
||||
<td ng-if="PBD.attached">
|
||||
<span class="label label-success">Connected</span>
|
||||
<button type="button" ng-show="hostSRs.$visible" ng-click="disconnectSR(SR.ref)" class="btn btn-sm btn-danger pull-right" tooltip="Disconnect this SR"><i class="fa fa-unlink fa-lg"></i></button>
|
||||
</td>
|
||||
<td ng-if="!PBD.attached">
|
||||
<span class="label label-default">Disabled</span>
|
||||
<button type="button" ng-show="hostSRs.$visible" ng-click="removeSR(SR.ref)" class="btn btn-sm btn-danger pull-right" tooltip="Remove this SR"><i class="fa fa-trash-o fa-lg"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="btn-form" ng-show="hostSRs.$visible">
|
||||
<p class="center">
|
||||
<button type="button" ng-disabled="hostSRs.$waiting" ng-click="hostSRs.$cancel()" class="btn btn-default"><i class="fa fa-times"></i> Cancel</button>
|
||||
<button type="button" ng-disabled="hostSRs.$waiting" ng-click="saveChanges()" class="btn btn-primary"><i class="fa fa-save"></i> Save</button>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!-- Network panel -->
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-panel">
|
||||
<form editable-form name="hostNetwork" onaftersave="saveTable()" oncancel="cancel()">
|
||||
<p class="flat-panel-title"><i class="xo-icon-network" style="color: #e25440;"></i> Network
|
||||
<span class="quick-edit" tooltip="Edit network" ng-click="hostNetwork.$show()">
|
||||
<i class="fa fa-edit fa-fw"> </i>
|
||||
</span>
|
||||
</p>
|
||||
<table class="table table-hover">
|
||||
<th class="col-md-1">Device</th>
|
||||
<th class="col-md-1">Address</th>
|
||||
<th class="col-md-2">MAC</th>
|
||||
<th class="col-md-1">MTU</th>
|
||||
<th class="col-md-1">Link status</th>
|
||||
<tr ng-repeat="PIF in host.$PIFs | resolve | orderBy:'name_label' track by PIF.UUID">
|
||||
<td>{{PIF.device}} <span ng-if="PIF.management" class="label label-primary">XAPI</span></td>
|
||||
<td>{{PIF.IP}} ({{PIF.mode}})</td>
|
||||
<td>{{PIF.MAC}}</td>
|
||||
<td>
|
||||
<span editable-text="PIF.MTU" e-name="mtu" e-form="hostNetwork" e-required>
|
||||
{{PIF.MTU}}
|
||||
</span>
|
||||
</td>
|
||||
<td ng-if="PIF.attached">
|
||||
<span class="label label-success">Connected</span>
|
||||
<button type="button" ng-show="hostNetwork.$visible" ng-click="disconnectSR(Network.ref)" class="btn btn-sm btn-danger pull-right" tooltip="Disconnect this Network"><i class="fa fa-unlink fa-lg"></i></button>
|
||||
</td>
|
||||
<td ng-if="!PIF.attached">
|
||||
<span class="label label-default">Disconnected</span>
|
||||
<button type="button" ng-show="hostNetwork.$visible" ng-click="removeNetwork(Network.ref)" class="btn btn-sm btn-danger pull-right" tooltip="Remove this Network"><i class="fa fa-trash-o fa-lg"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="btn-form" ng-show="hostNetwork.$visible">
|
||||
<p class="center">
|
||||
<button type="button" ng-disabled="hostNetwork.$waiting" ng-click="hostNetwork.$cancel()" class="btn btn-default"><i class="fa fa-times"></i> Cancel</button>
|
||||
<button type="button" ng-disabled="hostNetwork.$waiting" ng-click="saveChanges()" class="btn btn-primary"><i class="fa fa-save"></i> Save</button>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!-- CPU and Logs panels -->
|
||||
<div class="grid">
|
||||
<!-- Task panel -->
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title"><i class="fa fa-tasks" style="color: #e25440;"></i> Pending tasks</p>
|
||||
<p class="center" ng-if="!host.tasks.length">No recent tasks</p>
|
||||
<table class="table table-hover" ng-if="host.tasks.length">
|
||||
<th class="col-md-4">Date</th>
|
||||
<th class="col-md-8">Name</th>
|
||||
<!-- TODO: working reverse order, from recent to oldest -->
|
||||
<tr ng-repeat="task in host.tasks | resolve | orderBy:'created':true track by task.UUID">
|
||||
<td>{{task.created}}</td>
|
||||
<td>
|
||||
{{task.name_label}}
|
||||
<a class="quick-remove" xo-click="removeTask(task.UUID)">
|
||||
<i class="fa fa-trash-o fa-fw"></i>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!-- Logs panel -->
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title"><i class="fa fa-comments" style="color: #e25440;"></i> Logs</p>
|
||||
<p class="center" ng-if="!host.messages.length">No recent logs</p>
|
||||
<table class="table table-hover" ng-if="host.messages.length">
|
||||
<th class="col-md-4">Date</th>
|
||||
<th class="col-md-8">Name</th>
|
||||
<!-- TODO: working reverse order, from recent to oldest -->
|
||||
<tr ng-repeat="message in host.messages | resolve | orderBy:'-time' track by message.UUID">
|
||||
<td>{{message.time*1e3 | date:'medium'}}</td>
|
||||
<td>{{message.name}}
|
||||
<a class="quick-remove" xo-click="removeMessage(message.UUID)">
|
||||
<i class="fa fa-trash-o fa-fw"></i>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -1,268 +0,0 @@
|
||||
<!-- TODO: print a message when no entries. -->
|
||||
|
||||
<!-- If it's a (named) pool. -->
|
||||
<div
|
||||
ng-repeat="pool in byTypes.pool | filter:listFilter | orderBy:'name_label' track by pool.UUID"
|
||||
ng-if="pool.name_label"
|
||||
class="grid flat-object"
|
||||
xo-sref="pools_view({id: pool.UUID})"
|
||||
>
|
||||
|
||||
<!-- Icon. -->
|
||||
<div class="grid-cell flat-cell flat-cell-type">
|
||||
<i class="xo-icon-pool"></i>
|
||||
</div>
|
||||
|
||||
<!-- Properties & tags. -->
|
||||
<div class="grid-cell">
|
||||
|
||||
<!-- Properties. -->
|
||||
<div class="grid">
|
||||
<div class="grid-cell">
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-cell flat-cell-name">
|
||||
{{pool.name_label}}
|
||||
</div>
|
||||
<div class="grid-cell flat-cell flat-cell-description">
|
||||
<i>{{pool.name_description}}</i>
|
||||
</div>
|
||||
<div class="grid-cell flat-cell" ng-init="default_SR = (pool.default_SR | resolve)">
|
||||
<div ng-if="default_SR">
|
||||
Default SR: <a ui-sref="SRs_view({id: default_SR.UUID})">{{default_SR.name_label}}</a>
|
||||
</div>
|
||||
<div ng-if="!default_SR">
|
||||
<em>No default SR.</em>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid-cell flat-cell" ng-init="master = (pool.master | resolve)">
|
||||
<div ng-if="master">
|
||||
Master: <a ui-sref="hosts_view({id: master.UUID})">{{master.name_label}}</a>
|
||||
</div>
|
||||
<div ng-if="!master">
|
||||
<em>Unknown master.</em>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid-cell flat-cell">
|
||||
<div ng-if="pool.HA_enabled">
|
||||
HA enabled
|
||||
</div>
|
||||
<div ng-if="!pool.HA_enabled">
|
||||
HA disabled
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid-cell flat-cell">
|
||||
{{pool.$running_hosts.length}}/{{pool.hosts.length}} hosts
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /Properties. -->
|
||||
|
||||
<!-- Tags. -->
|
||||
<div class="grid">
|
||||
<div class=" grid-cell">
|
||||
<div class="grid-cell flat-cell-tag">
|
||||
<i class="fa fa-tag"></i>
|
||||
<span ng-repeat="tag in pool.tags">
|
||||
<span class="label label-primary">{{tag}}</span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /Tags. -->
|
||||
|
||||
</div>
|
||||
<!-- /Properties & tags. -->
|
||||
|
||||
</div>
|
||||
<!-- /Pool. -->
|
||||
|
||||
<!-- If it's a host. -->
|
||||
<div
|
||||
ng-repeat="host in byTypes.host | filter:listFilter | orderBy:'name_label' track by host.UUID"
|
||||
class="grid flat-object"
|
||||
xo-sref="hosts_view({id: host.UUID})"
|
||||
>
|
||||
|
||||
<!-- Icon. -->
|
||||
<div class="grid-cell flat-cell flat-cell-type">
|
||||
<i class="xo-icon-host xo-color-{{host.power_state | lowercase}}"></i>
|
||||
</div>
|
||||
|
||||
<!-- Properties & tags. -->
|
||||
<div class="grid-cell">
|
||||
|
||||
<!-- Properties. -->
|
||||
<div class="grid ">
|
||||
<div class="grid-cell">
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-cell flat-cell-name">
|
||||
{{host.name_label}}
|
||||
</div>
|
||||
<div class="grid-cell flat-cell flat-cell-description">
|
||||
<i>{{host.name_description}}</i>
|
||||
</div>
|
||||
<div class="grid-cell flat-cell">
|
||||
Address: {{host.address}}
|
||||
</div>
|
||||
<div class="grid-cell flat-cell">
|
||||
{{host.$vCPUs}} vCPUs used on {{host.CPUs["cpu_count"]}} CPUs
|
||||
</div>
|
||||
<div class="grid-cell flat-cell">
|
||||
{{host.memory.usage | bytesToSize}} used of {{host.memory.size | bytesToSize}} ({{[host.memory.usage, host.memory.size] | %}})
|
||||
</div>
|
||||
<div class="grid-cell flat-cell">
|
||||
{{host.VMs.length}} VMs running
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /Properties. -->
|
||||
|
||||
<!-- Tags. -->
|
||||
<div class="grid">
|
||||
<div class=" grid-cell">
|
||||
<div class="grid-cell flat-cell-tag">
|
||||
<i class="fa fa-tag"></i>
|
||||
<span ng-repeat="tag in host.tags">
|
||||
<span class="label label-primary">{{tag}}</span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /Tags. -->
|
||||
|
||||
</div>
|
||||
<!-- /Properties & tags. -->
|
||||
|
||||
</div>
|
||||
<!-- /Host. -->
|
||||
|
||||
<!-- If it's a VM. -->
|
||||
<div
|
||||
ng-repeat="VM in byTypes.VM | filter:listFilter | orderBy:'name_label' track by VM.UUID"
|
||||
class="grid flat-object"
|
||||
xo-sref="VMs_view({id: VM.UUID})"
|
||||
>
|
||||
|
||||
<!-- Icon. -->
|
||||
<div class="grid-cell flat-cell flat-cell-type">
|
||||
<i class="xo-icon-vm xo-color-{{VM.power_state | lowercase}}"></i>
|
||||
</div>
|
||||
|
||||
<!-- Properties & tags. -->
|
||||
<div class="grid-cell">
|
||||
|
||||
<!-- Properties. -->
|
||||
<div class="grid ">
|
||||
<div class="grid-cell">
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-cell flat-cell-name">
|
||||
{{VM.name_label}}
|
||||
</div>
|
||||
<div class="grid-cell flat-cell flat-cell-description">
|
||||
<i>{{VM.name_description}}</i>
|
||||
</div>
|
||||
<div class="grid-cell flat-cell">
|
||||
Address: {{VM.addresses['0/ip']}}
|
||||
</div>
|
||||
<div class="grid-cell flat-cell">
|
||||
{{VM.CPUs.number}} vCPUs
|
||||
</div>
|
||||
<div class="grid-cell flat-cell">
|
||||
{{VM.memory.size | bytesToSize}} RAM
|
||||
</div>
|
||||
<div class="grid-cell flat-cell" ng-init="container = (VM.$container | resolve)">
|
||||
<div ng-if="'pool' === container.type">
|
||||
Resident on: <a ui-sref="pools_view({id: container.UUID})">{{container.name_label}}</a>
|
||||
</div>
|
||||
<div ng-if="'host' === container.type" ng-init="pool = (container.poolRef | resolve)">
|
||||
Resident on: <a ui-sref="hosts_view({id: container.UUID})">{{container.name_label}}</a> (<a ui-sref="pools_view({id: pool.UUID})">{{pool.name_label}}</a>)
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /Properties. -->
|
||||
|
||||
<!-- Tags. -->
|
||||
<div class="grid">
|
||||
<div class=" grid-cell">
|
||||
<div class="grid-cell flat-cell-tag">
|
||||
<i class="fa fa-tag"></i>
|
||||
<span ng-repeat="tag in VM.tags">
|
||||
<span class="label label-primary">{{tag}}</span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /Tags. -->
|
||||
|
||||
</div>
|
||||
<!-- /Properties & tags. -->
|
||||
|
||||
</div>
|
||||
<!-- /VM. -->
|
||||
|
||||
<!-- If it's a SR. -->
|
||||
<div
|
||||
ng-repeat="SR in byTypes.SR | filter:listFilter | orderBy:'name_label' track by SR.UUID"
|
||||
class="grid flat-object"
|
||||
xo-sref="SRs_view({id: SR.UUID})"
|
||||
>
|
||||
|
||||
<!-- Icon. -->
|
||||
<div class="grid-cell flat-cell flat-cell-type">
|
||||
<i class="xo-icon-sr"></i>
|
||||
</div>
|
||||
|
||||
<!-- Properties & tags. -->
|
||||
<div class="grid-cell">
|
||||
|
||||
<!-- Properties. -->
|
||||
<div class="grid ">
|
||||
<div class="grid-cell">
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-cell flat-cell-name">
|
||||
{{SR.name_label}}
|
||||
</div>
|
||||
<div class="grid-cell flat-cell flat-cell-description">
|
||||
<i>{{SR.name_description}}</i>
|
||||
</div>
|
||||
<div class="grid-cell flat-cell">
|
||||
Usage: {{[SR.usage, SR.size] | %}} ({{SR.usage | bytesToSize}}/{{SR.size | bytesToSize}})
|
||||
</div>
|
||||
<div class="grid-cell flat-cell">
|
||||
Type: {{SR.SR_type}}
|
||||
</div>
|
||||
<div class="grid-cell flat-cell" ng-init="container = (SR.$container | resolve)">
|
||||
<div ng-if="'pool' === container.type">
|
||||
<strong>Shared on <a ui-sref="pools_view({id: container.UUID})">{{container.name_label}}</a></strong>
|
||||
</div>
|
||||
<div ng-if="'host' === container.type">
|
||||
Connected to <a ui-sref="hosts_view({id: container.UUID})">{{container.name_label}}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /Properties. -->
|
||||
|
||||
<!-- Tags. -->
|
||||
<div class="grid">
|
||||
<div class=" grid-cell">
|
||||
<div class="grid-cell flat-cell-tag">
|
||||
<i class="fa fa-tag"></i>
|
||||
<span ng-repeat="tag in SR.tags">
|
||||
<span class="label label-primary">{{tag}}</span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /Tags. -->
|
||||
|
||||
</div>
|
||||
<!-- /Properties & tags. -->
|
||||
|
||||
</div>
|
||||
<!-- /SR. -->
|
||||
@@ -1,504 +0,0 @@
|
||||
<!-- @todo Remove code duplication for the VMs listing by using a macro. -->
|
||||
|
||||
<div class="sub-bar">
|
||||
<div class="grid">
|
||||
<div class="grid-cell overview">
|
||||
<!--Stats-->
|
||||
<i tooltip="{{xo.pools.length}} pools">
|
||||
<i class="small">{{xo.pools.length}}x</i>
|
||||
<i class="xo-icon-pool"></i>
|
||||
</i>
|
||||
|
||||
<i tooltip="{{hosts.length}} hosts">
|
||||
<i class="small">{{hosts.length}}x</i>
|
||||
<i class="xo-icon-host"></i>
|
||||
</i>
|
||||
|
||||
<i tooltip="{{xo.$running_VMs.length}} of {{VMs.length}} VMs running">
|
||||
<i class="small">{{xo.$running_VMs.length}}x</i>
|
||||
<i class="xo-icon-console"></i>
|
||||
</i>
|
||||
|
||||
<i tooltip="{{xo.$vCPUs}} vCPUs used of {{xo.$CPUs}} CPUs">
|
||||
<i class="small">{{xo.$vCPUs}}x</i>
|
||||
<i class="xo-icon-cpu"></i>
|
||||
</i>
|
||||
|
||||
<i tooltip="{{xo.$memory.usage | bytesToSize}} RAM allocated of {{xo.$memory.size | bytesToSize}}">
|
||||
<i class="small">{{xo.$memory.usage | bytesToSize}}</i>
|
||||
<i class="xo-icon-memory"></i>
|
||||
</i>
|
||||
</div>
|
||||
<div class="grid-cell">
|
||||
<div class="btn-group before-action-bar">
|
||||
<a class="btn navbar-btn btn-default dropdown-toggle inversed">
|
||||
<input
|
||||
type="checkbox"
|
||||
class="inverse"
|
||||
ng-model="master_selection"
|
||||
ng-change="selectVMs(master_selection)"
|
||||
ui-indeterminate="!(all || none)"
|
||||
stop-event="click"
|
||||
/>
|
||||
<i class="fa fa-caret-down"></i>
|
||||
</a>
|
||||
<ul class="dropdown-menu inverse" role="menu">
|
||||
<li ng-repeat="power_state in ['Halted', 'Running']">
|
||||
<a ng-click="selectVMs({power_state: power_state})">
|
||||
<i class="fa-fw xo-icon-{{power_state | lowercase}}"></i>
|
||||
{{power_state}}
|
||||
</a>
|
||||
</li>
|
||||
<li class="divider"></li>
|
||||
<li ng-repeat="host in hosts | orderBy:'name_label' track by host.UUID" ng-if="host.VMs.length">
|
||||
<a ng-click="selectVMs({$container: host.ref})">
|
||||
<i class="xo-icon-host fa-fw"></i>
|
||||
On {{host.name_label}}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="action-bar" ng-if="!none">
|
||||
<div class="btn-group">
|
||||
<button tooltip="Stop VM" type="button" class="btn navbar-btn btn-default inversed" ng-click="bulkAction('stopVM')">
|
||||
<i class="fa fa-stop"></i>
|
||||
</button>
|
||||
<button tooltip="Start VM" type="button" class="btn navbar-btn btn-default inversed" ng-click="bulkAction('startVM')">
|
||||
<i class="fa fa-play"></i>
|
||||
</button>
|
||||
<button tooltip="Reboot VM" type="button" class="btn navbar-btn btn-default inversed" ng-click="bulkAction('rebootVM')">
|
||||
<i class="fa fa-refresh"></i>
|
||||
</button>
|
||||
</div>
|
||||
<div class="btn-group">
|
||||
<button tooltip="Migrate VM" type="button" class="btn navbar-btn btn-default dropdown-toggle inversed">
|
||||
<i class="fa fa-share"></i> <i class="fa fa-caret-down"></i>
|
||||
</button>
|
||||
<ul class="dropdown-menu inverse" role="menu">
|
||||
<li ng-repeat="host in hosts | orderBy:'name_label' track by host.UUID">
|
||||
<a ng-click="bulkAction('migrateVM',host.UUID)">
|
||||
<i class="xo-icon-host fa-fw"></i>
|
||||
To {{host.name_label}}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn navbar-btn btn-default dropdown-toggle inversed">
|
||||
More <i class="fa fa-caret-down"></i>
|
||||
</button>
|
||||
<ul class="dropdown-menu inverse" role="menu">
|
||||
<li><a ng-click="bulkAction('force_rebootVM')"><i class="fa fa-bolt fa-fw"></i> Force reboot</a></li>
|
||||
<li><a ng-click="bulkAction('force_stopVM')"><i class="fa fa-power-off fa-fw"></i> Force shutdown</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a ng-click="deleteVMs()"><i class="fa fa-trash-o fa-fw"></i> Delete</a></li>
|
||||
<li><a ng-click="bulkAction('createVMSnapshot')"><i class="xo-icon-snapshot fa-fw"></i> Take a snapshot</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- FIXME: Ugly trick to force the pools to be under the sub bar. -->
|
||||
<div style="margin-top: 50px; visibility: hidden; height: 0">.</div>
|
||||
|
||||
<!-- If we haven't any data -->
|
||||
<div ng-if="!pools.length">
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-panel text-center">
|
||||
<h1>Welcome on Xen Orchestra!</h1>
|
||||
<h3>It seems you aren't connected to any Xen host.</h3>
|
||||
<p>You can add any XAPI capable server by following these steps:</p>
|
||||
<ul class="list-unstyled">
|
||||
<li>Login with pre-filled account (top right of this screen)</li>
|
||||
<li>Click on the menu icon " <i class="fa fa-th"></i> " and choose " <i class="fa fa-cog"></i> Settings "</li>
|
||||
<li>Then you can add a server (no need to reload, refresh is auto)</li>
|
||||
<li>Enjoy Xen Orchestra!</li>
|
||||
</ul>
|
||||
<p><a class="btn btn-primary big" ui-sref="about"><i class="fa fa-info-circle"></i> About us</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- If we have data -->
|
||||
<div ng-if="pools.length">
|
||||
<!-- Contains a pool and all its children (hosts). -->
|
||||
<div ng-repeat="pool in pools | orderBy:'name_label' track by pool.UUID" class="grid pool-block">
|
||||
|
||||
<!-- Pseudo pool if it is not a named pool. -->
|
||||
<div ng-if="!pool.name_label" class="grid-cell grid--gutters pool-cell">
|
||||
<p class="center" style="margin-top: 2em;">No pool connected</p>
|
||||
</div>
|
||||
|
||||
<!-- Contains information about the pool if it is a named pool. -->
|
||||
<div class="grid-cell grid--gutters pool-cell" ng-if="pool.name_label">
|
||||
|
||||
<!-- Header (name + dropdown menu). -->
|
||||
<div class="dropdown dropdown-pool">
|
||||
<a class="pool-name" ui-sref="pools_view({id: pool.UUID})">
|
||||
{{pool.name_label}}
|
||||
</a>
|
||||
<a class="dropdown-toggle"> <i class="fa fa-caret-down big-caret"></i> </a>
|
||||
<ul class="dropdown-menu left" role="menu">
|
||||
<li><a xo-click="new_sr()"><i class="xo-icon-sr fa-fw"></i> Add SR</a></li>
|
||||
<li><a xo-sref="VMs_new({container: pool.UUID})"><i class="xo-icon-vm fa-fw"></i> Add VM</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a xo-click="pool_disconnect(pool.UUID)" class="disabled"><i class="fa fa-unlink fa-fw"></i> Disconnect</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- /Header. -->
|
||||
|
||||
<!-- Stats & SRs list. -->
|
||||
<div>
|
||||
|
||||
<!-- Stats. -->
|
||||
<ul class="list-unstyled stats">
|
||||
<li>
|
||||
<i tooltip="{{pool.hosts.length}} hosts connected">
|
||||
<i class="small">{{pool.hosts.length}}x</i>
|
||||
<i class="xo-icon-host"></i>
|
||||
</i>
|
||||
|
||||
<i tooltip="{{pool.$running_VMs.length}} of {{pool.$VMs.length}} VMs running">
|
||||
<i class="small">{{pool.$running_VMs.length}}x</i>
|
||||
<i class="xo-icon-console"></i>
|
||||
</i>
|
||||
</li>
|
||||
<li ng-if="pool.master" ng-init="master = (pool.master | resolve)">
|
||||
Master : <a ui-sref="hosts_view({id: master.UUID})">{{master.name_label}}</a>
|
||||
</li>
|
||||
<li ng-if="!pool.master">No master</li>
|
||||
</ul>
|
||||
<!-- /Stats. -->
|
||||
|
||||
<!-- SRs. -->
|
||||
<div ng-if="pool.SRs.length">
|
||||
<p class="center small-caps">SRs:</p>
|
||||
<table class="table table-hover table-condensed">
|
||||
<tr
|
||||
ng-repeat="SR in pool.SRs | resolve | orderBy:'name_label' track by SR.UUID"
|
||||
xo-sref="SRs_view({id: SR.UUID})"
|
||||
>
|
||||
<td
|
||||
class="col-md-6 sr-name no-border"
|
||||
ng-class="{'default-sr': SR.ref === pool.default_SR}"
|
||||
>
|
||||
<i class="xo-icon-sr"></i>
|
||||
{{SR.name_label}}
|
||||
</td>
|
||||
<td class="col-md-6 right no-border">
|
||||
<div class="progress progress-small" tooltip="Disk: {{[SR.usage, SR.size] | %}} allocated">
|
||||
<div
|
||||
class="progress-bar"
|
||||
role="progressbar"
|
||||
aria-valuenow="{{100*SR.usage/SR.size}}"
|
||||
aria-valuemin="0"
|
||||
aria-valuemax="100"
|
||||
style="width: {{[SR.usage, SR.size] | %}}"
|
||||
></div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!-- /SRs. -->
|
||||
|
||||
</div>
|
||||
<!-- /Stats & SRs list. -->
|
||||
|
||||
</div>
|
||||
<!-- /Information about the pool. -->
|
||||
|
||||
<!-- Contains all the hosts of this pool. -->
|
||||
<div class="grid-cell grid--gutters hosts-vms-cells">
|
||||
|
||||
<!-- Contains a host and all its children (VMs). -->
|
||||
<div
|
||||
ng-repeat="host in pool.hosts | resolve | orderBy:'name_label' track by host.UUID"
|
||||
class="grid"
|
||||
>
|
||||
|
||||
<!-- Contains information about the host. -->
|
||||
<div class="grid-cell host-cell">
|
||||
|
||||
<!-- Header (name + dropdown menu). -->
|
||||
<div class="dropdown dropdown-pool">
|
||||
<a class="host-name" ui-sref="hosts_view({id: host.UUID})">
|
||||
{{host.name_label}}
|
||||
</a>
|
||||
<a class="dropdown-toggle"> <i class="fa fa-caret-down"></i> </a>
|
||||
<ul class="dropdown-menu left" role="menu">
|
||||
<li><a xo-click="new_sr()"><i class="xo-icon-sr fa-fw"></i> Add SR</a></li>
|
||||
<li><a xo-sref="VMs_new({container: host.UUID})"><i class="xo-icon-vm fa-fw"></i> Add VM</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a xo-click="rebootHost(host.UUID)"><i class="fa fa-refresh fa-fw"></i> Reboot</a></li>
|
||||
<li><a xo-click="shutdownHost(host.UUID)"><i class="fa fa-power-off fa-fw"></i> Shutdown</a></li>
|
||||
<li><a xo-click="restartToolStack(host.UUID)"><i class="fa fa-retweet fa-fw"></i> Restart toolstack</a></li>
|
||||
<li><a xo-click="pool_removeHost(host.UUID)"><i class="fa fa-cloud-upload fa-fw"></i> Remove from pool</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- /Header. -->
|
||||
|
||||
<!-- Stats. -->
|
||||
<ul class="list-unstyled stats">
|
||||
<!-- Warning icon if host is halted or disabled -->
|
||||
<li ng-if="'Halted' === host.power_state" class="text-danger">
|
||||
<i class="fa fa-warning"></i> Halted
|
||||
</li>
|
||||
<li ng-if="'Halted' !== host.power_state && !host.enabled" class="text-warning">
|
||||
<i class="fa fa-warning"></i> Disabled
|
||||
</li>
|
||||
<!-- Memory -->
|
||||
<li ng-if="host.power_state === 'Running'">
|
||||
<i class="xo-icon-memory i-progress"></i>
|
||||
<div
|
||||
class="progress progress-small"
|
||||
tooltip="RAM: {{[host.memory.usage, host.memory.size] | %}} allocated">
|
||||
<div
|
||||
class="progress-bar"
|
||||
role="progressbar"
|
||||
aria-valuenow="{{100*host.memory.usage/host.memory.size}}"
|
||||
aria-valuemin="0"
|
||||
aria-valuemax="100"
|
||||
style="width: {{[host.memory.usage, host.memory.size] | %}}"
|
||||
></div>
|
||||
</div>
|
||||
</li>
|
||||
<!-- Host address -->
|
||||
<li class="text-muted substats">
|
||||
<i class="xo-icon-network"></i>
|
||||
{{host.address}}
|
||||
</li>
|
||||
</ul>
|
||||
<!-- /Stats. -->
|
||||
</div>
|
||||
<!-- /Information about the host. -->
|
||||
|
||||
<!-- Contains all the VMs of this host. -->
|
||||
<div class="grid grid-cell vm-cell">
|
||||
|
||||
<!-- If no VMs, fill the space with a message. -->
|
||||
<div ng-if="!host.VMs.length" class="vms-notice">
|
||||
|
||||
<p ng-if="'Halted' === host.power_state">
|
||||
Host halted.
|
||||
</p>
|
||||
|
||||
<div ng-if="'Halted' !== host.power_state">
|
||||
<p ng-if="!host.enabled">
|
||||
Host disabled.
|
||||
</p>
|
||||
|
||||
<p ng-if="host.enabled">
|
||||
No VMs on this host.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- /Message if no VMs. -->
|
||||
|
||||
<!-- TODO: comment -->
|
||||
<div class="table-responsive" ng-if="host.VMs.length">
|
||||
<table class="table table-hover table-condensed">
|
||||
|
||||
<!-- Contains a VM. -->
|
||||
<tr
|
||||
ng-repeat="VM in host.VMs | resolve | orderBy:'name_label' track by VM.UUID"
|
||||
xo-sref="VMs_view({id: VM.UUID})"
|
||||
>
|
||||
|
||||
<!-- Handle used for drag & drop. -->
|
||||
<td class="grab"></td>
|
||||
|
||||
<!-- Checkbox used for selection. -->
|
||||
<td class="select-vm">
|
||||
<input
|
||||
type="checkbox"
|
||||
ng-model="selected_VMs[VM.UUID]"
|
||||
ng-change="updateVMSelection(VM.UUID)"
|
||||
/>
|
||||
</td>
|
||||
|
||||
<!-- Power state -->
|
||||
<td class="vm-power-state">
|
||||
<i ng-if="isVMWorking(VM)"
|
||||
class="xo-icon-working"
|
||||
tooltip="{{VM.power_state}} and {{values(VM.current_operations)[0]}}"
|
||||
></i>
|
||||
<i ng-if="!isVMWorking(VM)"
|
||||
class="xo-icon-{{VM.power_state | lowercase}}"
|
||||
tooltip="{{VM.power_state}}"
|
||||
></i>
|
||||
</td>
|
||||
|
||||
<!-- VM name. -->
|
||||
<td class="vm-name col-md-2"><p class="vm">{{VM.name_label}}</p></td>
|
||||
|
||||
<!-- Quick actions. -->
|
||||
<td class="vm-quick-buttons col-md-2">
|
||||
<div class="quick-buttons">
|
||||
<a tooltip="Shutdown VM" xo-click="stopVM(VM.UUID)">
|
||||
<i class="fa fa-stop"></i>
|
||||
</a>
|
||||
<a tooltip="Start VM" xo-click="startVM(VM.UUID)">
|
||||
<i class="fa fa-play"></i>
|
||||
</a>
|
||||
<a tooltip="Reboot VM" xo-click="rebootVM(VM.UUID)">
|
||||
<i class="fa fa-refresh"></i>
|
||||
</a>
|
||||
<a tooltip="VM Console" xo-sref="consoles_view({id: VM.UUID})">
|
||||
<i class="xo-icon-console"></i>
|
||||
</a>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<!-- Description. -->
|
||||
<td class="vm-description col-md-4">
|
||||
<i ng-if="VM.os_version.distro" tooltip="{{VM.os_version.name}}" class="xo-icon-{{osType(VM.os_version.distro)}}"> </i>
|
||||
<i ng-if="!VM.os_version.distro" class="fa fa-fw"></i>
|
||||
{{VM.name_description}}
|
||||
</td>
|
||||
|
||||
<!-- Metrics. -->
|
||||
|
||||
<!-- Memory -->
|
||||
<td class="vm-memory-stat col-md-2">
|
||||
<div class="cpu">
|
||||
{{VM.memory.size | bytesToSize}}
|
||||
</div>
|
||||
|
||||
<i
|
||||
ng-if="VM.PV_drivers"
|
||||
class="fa fa-fw"
|
||||
></i>
|
||||
<i
|
||||
ng-if="!VM.PV_drivers"
|
||||
class="xo-icon-info fa-fw"
|
||||
tooltip="Xen tools not installed"
|
||||
></i>
|
||||
</td>
|
||||
<!-- /Metrics. -->
|
||||
|
||||
<!-- Address. -->
|
||||
<td class="text-muted text-right col-md-2">
|
||||
{{VM.addresses['0/ip']}}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- /VMs of this host. -->
|
||||
|
||||
</div>
|
||||
<!-- /Host with its children. -->
|
||||
|
||||
<!-- Contains a pseudo-host which contains all VMs not in any hosts. -->
|
||||
<div ng-if="pool.VMs.length" class="grid">
|
||||
|
||||
<!-- This is where the information about a host would be displayed. -->
|
||||
<div class="grid-cell host-cell"></div>
|
||||
|
||||
<!-- Contains all the VMs of this pool. -->
|
||||
<div class="grid grid-cell vm-cell">
|
||||
|
||||
<!-- TODO: comment -->
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-condensed">
|
||||
|
||||
<!-- Contains a VM. -->
|
||||
<tr
|
||||
ng-repeat="VM in pool.VMs | resolve | orderBy:'name_label' track by VM.UUID"
|
||||
xo-sref="VMs_view({id: VM.UUID})"
|
||||
>
|
||||
|
||||
<!-- Handle used for drag & drop. -->
|
||||
<td class="grab"></td>
|
||||
|
||||
<!-- Checkbox used for selection. -->
|
||||
<td class="select-vm">
|
||||
<input
|
||||
type="checkbox"
|
||||
ng-model="selected_VMs[VM.UUID]"
|
||||
ng-change="updateVMSelection(VM.UUID)"
|
||||
/>
|
||||
</td>
|
||||
|
||||
<!-- Power state -->
|
||||
<td class="vm-power-state">
|
||||
<i
|
||||
class="xo-icon-{{VM.power_state | lowercase}}"
|
||||
tooltip="{{VM.power_state}}"
|
||||
></i>
|
||||
</td>
|
||||
|
||||
<!-- VM name. -->
|
||||
<td class="vm-name col-md-2">
|
||||
<p class="vm">{{VM.name_label}}</p>
|
||||
</td>
|
||||
|
||||
<!-- Quick actions. -->
|
||||
<td class="vm-quick-buttons col-md-2">
|
||||
<div class="quick-buttons">
|
||||
<a tooltip="Shutdown VM" xo-click="stopVM(VM.UUID)">
|
||||
<i class="fa fa-stop"></i>
|
||||
</a>
|
||||
<a tooltip="Start VM" xo-click="startVM(VM.UUID)">
|
||||
<i class="fa fa-play"></i>
|
||||
</a>
|
||||
<a tooltip="Reboot VM" xo-click="rebootVM(VM.UUID)">
|
||||
<i class="fa fa-refresh"></i>
|
||||
</a>
|
||||
<a tooltip="VM Console">
|
||||
<i class="xo-icon-console"></i>
|
||||
</a>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<!-- Description. -->
|
||||
<td class="vm-description col-md-4">
|
||||
<i ng-if="VM.os_version.distro" tooltip="{{VM.os_version.name}}" class="xo-icon-{{osType(VM.os_version.distro)}}"> </i>
|
||||
<i ng-if="!VM.os_version.distro" class="fa fa-fw"></i>
|
||||
{{VM.name_description}}
|
||||
</td>
|
||||
|
||||
<!-- Metrics. -->
|
||||
|
||||
<!-- Memory -->
|
||||
<td class="vm-memory-stat col-md-2">
|
||||
<div class="cpu">
|
||||
{{VM.memory.size | bytesToSize}}
|
||||
</div>
|
||||
|
||||
<i
|
||||
ng-if="VM.PV_drivers"
|
||||
class="fa fa-fw"
|
||||
></i>
|
||||
<i
|
||||
ng-if="!VM.PV_drivers"
|
||||
class="xo-icon-info fa-fw"
|
||||
tooltip="Xen tools not installed"
|
||||
></i>
|
||||
</td>
|
||||
<!-- /Metrics. -->
|
||||
|
||||
<!-- Address. -->
|
||||
<td class="text-muted text-right col-md-2">
|
||||
{{VM.addresses['0/ip']}}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- /Pseudo host containing VMs not on any hosts. -->
|
||||
|
||||
</div>
|
||||
<!-- /Hosts of this pool. -->
|
||||
|
||||
</div>
|
||||
<!-- /Pool with its children. -->
|
||||
</div>
|
||||
@@ -1,164 +0,0 @@
|
||||
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
||||
|
||||
<!-- Brand and toggle get grouped for better mobile display -->
|
||||
<div class="navbar-header">
|
||||
|
||||
<!-- Button used to (un)collapse on mobile display. -->
|
||||
<button
|
||||
type="button"
|
||||
class="navbar-toggle"
|
||||
ng-init="collapsed = true"
|
||||
ng-click="collapsed = !collapsed"
|
||||
>
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
|
||||
<!-- Brand name. -->
|
||||
<a class="navbar-brand" ui-sref="home">Xen Orchestra</a>
|
||||
</div>
|
||||
|
||||
<!-- All navbar items are collapsed on mobile display. -->
|
||||
<div class="collapse navbar-collapse" ng-class="!collapsed && 'in'">
|
||||
|
||||
<!-- Search form of the navbar. -->
|
||||
<form class="navbar-form navbar-left" role="search" style="width: 250px">
|
||||
<!-- Forced width due to issue with `input`s
|
||||
(https://github.com/twbs/bootstrap/issues/9950. -->
|
||||
|
||||
<div class="input-group">
|
||||
<input
|
||||
type="text"
|
||||
class="form-control inverse"
|
||||
placeholder=""
|
||||
ng-model="$root.listFilter"
|
||||
ng-change="ensureListView()"
|
||||
>
|
||||
<span class="input-group-btn">
|
||||
<button type="button" class="btn btn-search" ng-click="ensureListView()">
|
||||
<i class="fa fa-search"></i>
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
</form>
|
||||
<!-- /Search form. -->
|
||||
|
||||
<!-- Right items of the navbar. -->
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<!-- Unregistered version: please register for support -->
|
||||
<li><a href="https://xen-orchestra.com/services?from=xoa" target="_blank"><i class="fa fa-exclamation-triangle"></i> Unregistered version</a></li>
|
||||
<!-- Main menu. -->
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle inverse">
|
||||
<i class="fa fa-th"></i>
|
||||
</a>
|
||||
<ul class="dropdown-menu inverse">
|
||||
<li ng-class="{active: $uiRoute}" ui-route="/">
|
||||
<a ui-sref="home">
|
||||
<i class="fa fa-indent"></i>
|
||||
Tree view
|
||||
</a>
|
||||
</li>
|
||||
<li ng-class="{active: $uiRoute}" ui-route="/list">
|
||||
<a ui-sref="list">
|
||||
<i class="fa fa-align-justify"></i>
|
||||
Flat view
|
||||
</a>
|
||||
</li>
|
||||
<li class="disabled" ng-class="{active: $uiRoute}" ui-route="/graph">
|
||||
<a ui-sref="graph">
|
||||
<i class="fa fa-sitemap"></i>
|
||||
Graphs view
|
||||
</a>
|
||||
</li>
|
||||
<li class="divider"></li>
|
||||
<li class="disabled">
|
||||
<a>
|
||||
<i class="fa fa-clock-o"></i>
|
||||
Scheduler
|
||||
</a>
|
||||
</li>
|
||||
<li ng-class="{active: $uiRoute}" ui-route="/settings">
|
||||
<a ui-sref="settings">
|
||||
<i class="fa fa-cog"></i>
|
||||
Settings
|
||||
</a>
|
||||
</li>
|
||||
<li class="divider"></li>
|
||||
<li ng-class="{active: $uiRoute}" ui-route="/about">
|
||||
<a ui-sref="about">
|
||||
<i class="fa fa-info-circle" style="color:#5bc0de"></i>
|
||||
About
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<!-- /Main menu. -->
|
||||
|
||||
<!-- Displayed only when the user is connected. -->
|
||||
<li ng-if="user"><a><i class="fa fa-user"></i> {{user.email}}</a></li>
|
||||
<li ng-if="user"><a ng-click="logOut()"><i class="fa fa-sign-out"></i></a></li>
|
||||
<!-- /When user is connected. -->
|
||||
|
||||
<!-- Displayed only when the user is not connected. -->
|
||||
<li ng-if="!user" class="dropdown">
|
||||
|
||||
<a class="dropdown-toggle">
|
||||
Log in <i class="fa fa-sign-in"></i>
|
||||
</a>
|
||||
|
||||
<form
|
||||
class="dropdown-menu login-form-dark"
|
||||
ng-submit="logIn(login.email, login.password, true)"
|
||||
ng-click="$event.stopPropagation()"
|
||||
>
|
||||
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-user fa-fw"></i>
|
||||
</span>
|
||||
<input
|
||||
type="text"
|
||||
class="form-control"
|
||||
placeholder="Email"
|
||||
ng-model="login.email"
|
||||
name="email"
|
||||
required
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">
|
||||
<i class="fa fa-key fa-fw"></i>
|
||||
</span>
|
||||
<input
|
||||
type="password"
|
||||
class="form-control"
|
||||
placeholder="Password"
|
||||
name="password"
|
||||
ng-model="login.password"
|
||||
required
|
||||
/>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-primary btn-block">
|
||||
<i class="fa fa-sign-in"></i> Log in
|
||||
</button>
|
||||
|
||||
</form>
|
||||
|
||||
</li>
|
||||
<!-- /When user is not connected. -->
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
<!-- /Right items. -->
|
||||
|
||||
</div>
|
||||
<!-- /Navbar items. -->
|
||||
|
||||
</nav>
|
||||
<!-- /Navbar. -->
|
||||
@@ -1,49 +0,0 @@
|
||||
<!-- TODO: lots of stuff. -->
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="page-title"><i class="xo-icon-vm"></i> Add SR on {{container.name_label}}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Add server panel -->
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title"><i class="fa fa-info-circle" style="color: #e25440;"></i> SR info</p>
|
||||
<form class="form-horizontal" role="form">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">Type</label>
|
||||
<div class="col-sm-9">
|
||||
<select class="form-control">
|
||||
<option value="">-- Choose a type of SR --</option>
|
||||
<optgroup label="VDI SR">
|
||||
<option value="NFS">NFS</option>
|
||||
<option value="ISCSI">Software iSCSI</option>
|
||||
<option value="HBA">HBA</option>
|
||||
</optgroup>
|
||||
<optgroup label="ISO SR">
|
||||
<option value="CIFSISO">CIFS</option>
|
||||
<option value="NFSISO">NFS</option>
|
||||
</optgroup>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">Name</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" placeholder="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">Description</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" class="form-control" placeholder="SR Created by Xen Orchestra">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<p class="text-center"><a class="btn btn-primary big"><i class="fa fa-times"></i> Clear</a> <a class="btn btn-success big"><i class="fa fa-save"></i> Save</a></p>
|
||||
</form>
|
||||
</div>
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title"><i class="fa fa-link" style="color: #e25440;"></i> Connection</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,350 +0,0 @@
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="page-title">
|
||||
<i class="xo-icon-vm"></i>
|
||||
Add VM on
|
||||
<a
|
||||
ng-if="'pool' === container.type"
|
||||
ui-sref="pools_view({id: container.UUID})"
|
||||
>
|
||||
{{container.name_label}}
|
||||
</a>
|
||||
<a
|
||||
ng-if="'host' === container.type"
|
||||
ui-sref="hosts_view({id: container.UUID})"
|
||||
>
|
||||
{{container.name_label}}
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Add server panel -->
|
||||
<form class="form-horizontal" ng-submit="createVM()">
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title">
|
||||
<i class="fa fa-info-circle" style="color: #e25440;"></i> VM info
|
||||
</p>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">Template</label>
|
||||
<div class="col-sm-9">
|
||||
<select
|
||||
class="form-control"
|
||||
ng-model="template"
|
||||
ng-options="template.name_label for template in templates | orderBy:'name_label' track by template.UUID"
|
||||
required
|
||||
>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">Name</label>
|
||||
<div class="col-sm-9">
|
||||
<input
|
||||
type="text"
|
||||
class="form-control"
|
||||
placeholder="Name of your new VM"
|
||||
required
|
||||
ng-model="name_label"
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">Description</label>
|
||||
<div class="col-sm-9">
|
||||
<input
|
||||
type="text"
|
||||
class="form-control"
|
||||
placeholder="Optional description of you new VM"
|
||||
ng-model="name_description"
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title"><i class="fa fa-dashboard" style="color: #e25440;"></i> Performances</p>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">vCPUs</label>
|
||||
<div class="col-sm-9">
|
||||
<input
|
||||
type="text"
|
||||
class="form-control"
|
||||
placeholder="{{template.CPUs.number}}"
|
||||
ng-model="CPUs"
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">RAM</label>
|
||||
<div class="col-sm-9">
|
||||
<input
|
||||
type="text"
|
||||
class="form-control"
|
||||
placeholder="{{template.memory.size | bytesToSize}}"
|
||||
ng-model="memory"
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="grid">
|
||||
<!-- Install panel -->
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title"><i class="fa fa-download" style="color: #e25440;"></i> Install settings</p>
|
||||
<div
|
||||
class="form-group"
|
||||
ng-show="availableMethods.cdrom"
|
||||
>
|
||||
<label class="col-sm-3 control-label">ISO/DVD</label>
|
||||
<div class="col-sm-9">
|
||||
<input
|
||||
type="radio"
|
||||
value="cdrom"
|
||||
ng-model="installation_method"
|
||||
>
|
||||
<select
|
||||
ng-disabled="'cdrom' !== installation_method"
|
||||
class="form-control disabled"
|
||||
ng-model="installation_cdrom"
|
||||
>
|
||||
<optgroup
|
||||
ng-repeat="SR in ISO_SRs | orderBy:'name_label' track by SR.UUID"
|
||||
ng-if="SR.VDIs.length"
|
||||
label="{{SR.name_label}}"
|
||||
>
|
||||
<option
|
||||
ng-repeat="VDI in SR.VDIs | resolve | orderBy:'name_label' track by VDI.UUID"
|
||||
ng-value="VDI.UUID"
|
||||
>
|
||||
{{VDI.name_label}}
|
||||
</option>
|
||||
</optgroup>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="form-group"
|
||||
ng-show="availableMethods.http || availableMethods.ftp || availableMethods.nfs"
|
||||
>
|
||||
<label class="col-sm-3 control-label">Network</label>
|
||||
<div class="col-sm-9">
|
||||
<input
|
||||
type="radio"
|
||||
ng-model="installation_method"
|
||||
value="network"
|
||||
>
|
||||
<input
|
||||
ng-disabled="'network' !== installation_method"
|
||||
type="text"
|
||||
class="form-control"
|
||||
placeholder="e.g: http://ftp.debian.org/debian"
|
||||
ng-model="installation_network"
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="form-group"> FIXME
|
||||
<label class="col-sm-3 control-label">Home server</label>
|
||||
<div class="col-sm-9">
|
||||
<select class="form-control">
|
||||
<option>Default (auto)</option>
|
||||
</select>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
|
||||
<!-- Interface panel -->
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title"><i class="xo-icon-network" style="color: #e25440;"></i> Interfaces
|
||||
</p>
|
||||
<table class="table table-hover">
|
||||
<tr>
|
||||
<th>MAC</th>
|
||||
<th>Network</th>
|
||||
<th class="col-md-1"> </th><!-- Buttons -->
|
||||
</tr>
|
||||
<tr ng-repeat="VIF in VIFs track by VIF.id">
|
||||
<td>
|
||||
<input
|
||||
type="text"
|
||||
class="form-control"
|
||||
ng-model="VIF.MAC"
|
||||
ng-pattern="/^([0-9a-f]){2}(:([0-9a-f]){4})$/i"
|
||||
placeholder="00:00:00:00:00"
|
||||
/>
|
||||
</td>
|
||||
<td>
|
||||
<select
|
||||
class="form-control"
|
||||
ng-options="network.UUID as network.name_label for network in (networks | orderBy:'name_label')"
|
||||
ng-model="VIF.network"
|
||||
required
|
||||
>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<div class="pull-right">
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-default"
|
||||
ng-click="removeVIF($index)"
|
||||
title="Remove this interface"
|
||||
>
|
||||
<i class="fa fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="btn-form">
|
||||
<p class="center">
|
||||
<div class="btn-form">
|
||||
<p class="center">
|
||||
<button type="button" ng-click="addVIF()" class="btn btn-success">
|
||||
<i class="fa fa-plus"></i> Add interface
|
||||
</button>
|
||||
</p>
|
||||
</div>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of misc and interface panel -->
|
||||
|
||||
<!-- Disk panel -->
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title">
|
||||
<i class="xo-icon-sr" style="color: #e25440;"></i> Disks
|
||||
</p>
|
||||
<table class="table table-hover">
|
||||
<tr>
|
||||
<th class="col-md-2">SR</th>
|
||||
<th class="col-md-1">Bootable?</th>
|
||||
<th class="col-md-2">Size</th>
|
||||
<th class="col-md-2">Name</th>
|
||||
<th class="col-md-4">Description</th>
|
||||
<th class="col-md-1"> </th><!-- Buttons -->
|
||||
</tr>
|
||||
<tr ng-repeat="VDI in VDIs track by VDI.id">
|
||||
<td>
|
||||
<select
|
||||
class="form-control"
|
||||
ng-model="VDI.SR"
|
||||
ng-options="SR.UUID as SR.name_label for SR in (writable_SRs | orderBy:'name_label')"
|
||||
>
|
||||
</select>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<input
|
||||
type="checkbox"
|
||||
ng-model="VDI.bootable"
|
||||
>
|
||||
</td>
|
||||
<td>
|
||||
<input
|
||||
type="text"
|
||||
class="form-control"
|
||||
ng-model="VDI.size"
|
||||
required
|
||||
>
|
||||
</td>
|
||||
<td>
|
||||
<input
|
||||
type="text"
|
||||
class="form-control"
|
||||
placeholder="Name of this virtual disk"
|
||||
ng-model="VDI.name_label"
|
||||
>
|
||||
</td>
|
||||
<td>
|
||||
<input
|
||||
type="text"
|
||||
class="form-control"
|
||||
placeholder="Description of this virtual disk"
|
||||
ng-model="VDI.name_description"
|
||||
>
|
||||
</td>
|
||||
<td>
|
||||
<div class="btn-group">
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-default"
|
||||
ng-click="moveVDI($index, -1)"
|
||||
ng-disabled="$first"
|
||||
title="Move this disk up"
|
||||
>
|
||||
<i class="fa fa-chevron-up"></i>
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-default"
|
||||
ng-click="moveVDI($index, 1)"
|
||||
ng-disabled="$last"
|
||||
title="Move this disk down"
|
||||
>
|
||||
<i class="fa fa-chevron-down"></i>
|
||||
</button>
|
||||
</div>
|
||||
<div class="pull-right">
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-default"
|
||||
ng-click="removeVDI($index)"
|
||||
title="Remove this disk"
|
||||
>
|
||||
<i class="fa fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="btn-form">
|
||||
<p class="center">
|
||||
<div class="btn-form">
|
||||
<p class="center">
|
||||
<button type="button" ng-click="addVDI()" class="btn btn-success"><i class="fa fa-plus"></i> Add disk</button>
|
||||
</p>
|
||||
</div>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Confirmation panel -->
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title"><i class="fa fa-flag-checkered" style="color: #e25440;"></i> Summary</p>
|
||||
<div class="grid">
|
||||
<div class="grid-cell">
|
||||
<p class="stat-name">Name:
|
||||
<p class="center big">{{name_label}}</p>
|
||||
</div>
|
||||
<div class="grid-cell">
|
||||
<p class="stat-name">Template:
|
||||
<p class="center">{{template.name_label}}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid">
|
||||
<div class="grid-cell">
|
||||
<p class="stat-name">vCPUs</p>
|
||||
<p class="center big">{{CPUs || template.CPUs.number}}</p>
|
||||
</div>
|
||||
<div class="grid-cell">
|
||||
<p class="stat-name">RAM</p>
|
||||
<p class="center big">{{(memory) || (template.memory.size | bytesToSize)}}</p>
|
||||
</div>
|
||||
<div class="grid-cell">
|
||||
<p class="stat-name">Disks</p>
|
||||
<p class="center big">{{(VDIs.length) || (template.$VBDs.length) || 0}}</p>
|
||||
</div>
|
||||
<div class="grid-cell">
|
||||
<p class="stat-name">Interfaces</p>
|
||||
<p class="center big">{{VIFs.length}}</p>
|
||||
</div>
|
||||
</div>
|
||||
<p class="center"><button type="submit" class="btn btn-lg btn-primary"><i class="fa fa-play"></i> Create VM</button></p>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -1,206 +0,0 @@
|
||||
<!-- TODO: lots of stuff. -->
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="page-title"><i class="xo-icon-pool"></i> {{pool.name_label}}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title">
|
||||
<i class="fa fa-cogs" style="color: #e25440;"></i> General
|
||||
<span class="quick-edit" tooltip="Edit General settings" ng-click="poolSettings.$show()">
|
||||
<i class="fa fa-edit fa-fw"></i>
|
||||
</span>
|
||||
</p>
|
||||
<div class="general-properties">
|
||||
<form editable-form name="poolSettings" onbeforesave="savePool($data)">
|
||||
<dl class="dl-horizontal">
|
||||
<dt>Name</dt>
|
||||
<dd>
|
||||
<span editable-text="pool.name_label" e-name="name_label" e-form="poolSettings">
|
||||
{{pool.name_label}}
|
||||
</span>
|
||||
</dd>
|
||||
<dt>Description</dt>
|
||||
<dd>
|
||||
<span editable-text="pool.name_description" e-name="name_description" e-form="poolSettings">
|
||||
{{pool.name_description}}
|
||||
</span>
|
||||
</dd>
|
||||
<dt>Master</dt>
|
||||
<dd ng-repeat="master in [pool.master] | resolve">
|
||||
<a ui-sref="hosts_view({id: master.UUID})">
|
||||
{{master.name_label}}
|
||||
</a>
|
||||
</dd>
|
||||
<dt>Tags</dt>
|
||||
<dd>
|
||||
<span ng-repeat="tag in pool.tags">
|
||||
<span class="label label-primary">{{tag}}</span>
|
||||
</span>
|
||||
</dd>
|
||||
<dt ng-if="pool.default_SR">Default SR</dt>
|
||||
<dd ng-if="pool.default_SR" ng-init="default_SR = (pool.default_SR | resolve)">
|
||||
<a ui-sref="SRs_view({id: default_SR.UUID})">{{default_SR.name_label}}</a>
|
||||
</dd>
|
||||
<dt>HA</dt>
|
||||
<dd>
|
||||
{{pool.HA_enabled}}
|
||||
</dd>
|
||||
<dt>UUID</dt>
|
||||
<dd>{{pool.UUID}}</dd>
|
||||
</dl>
|
||||
<div class="btn-form" ng-show="poolSettings.$visible">
|
||||
<p class="center">
|
||||
<button type="button" ng-disabled="poolSettings.$waiting" ng-click="poolSettings.$cancel()" class="btn btn-default">
|
||||
<i class="fa fa-times"></i> Cancel
|
||||
</button>
|
||||
<button type="submit" ng-disabled="poolSettings.$waiting" class="btn btn-primary">
|
||||
<i class="fa fa-save"></i> Save
|
||||
</button>
|
||||
</p>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title"><i class="fa fa-bar-chart-o" style="color: #e25440;"></i> Stats</p>
|
||||
<div class="grid">
|
||||
<div class="grid-cell">
|
||||
<p class="stat-name">Hosts:</p>
|
||||
<p class="center big">{{pool.hosts.length}}</p>
|
||||
</div>
|
||||
<div class="grid-cell">
|
||||
<p class="stat-name">Running:</p>
|
||||
<p class="center big">{{pool.$running_hosts.length}}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Action panel -->
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title"><i class="fa fa-flash" style="color: #e25440;"></i> Actions</p>
|
||||
<div class="grid">
|
||||
<div class="grid-cell text-center grid-button" tooltip="Add SR" xo-sref="SRs_new({container: pool.UUID})">
|
||||
<i class="xo-icon-sr fa-2x fa-fw"></i>
|
||||
</div>
|
||||
<div class="grid-cell text-center grid-button" tooltip="Add VM" xo-sref="VMs_new({container: pool.UUID})">
|
||||
<i class="xo-icon-vm fa-2x fa-fw"></i>
|
||||
</div>
|
||||
<div class="grid-cell text-center grid-button" tooltip="Add Host">
|
||||
<i class="xo-icon-host fa-2x fa-fw"></i>
|
||||
</div>
|
||||
<div class="grid-cell text-center grid-button" tooltip="Disconnect">
|
||||
<i class="fa fa-unlink fa-2x fa-fw"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Hosts panel -->
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title"><i class="xo-icon-host" style="color: #e25440;"></i> Hosts</p>
|
||||
<table class="table table-hover table-condensed">
|
||||
<th>Name</th>
|
||||
<th class="col-md-4">Description</th>
|
||||
<th class="col-md-6">Memory</th>
|
||||
<tr
|
||||
xo-sref="hosts_view({id: host.UUID})"
|
||||
ng-repeat="host in pool.hosts | resolve | orderBy:'name_label' track by host.UUID"
|
||||
>
|
||||
<td>{{host.name_label}}</td>
|
||||
<td>{{host.name_description}}</td>
|
||||
<td>
|
||||
<div class="progress-condensed">
|
||||
<div
|
||||
class="progress-bar"
|
||||
role="progressbar"
|
||||
aria-valuemin="0"
|
||||
aria-valuenow="{{host.memory.usage}}"
|
||||
aria-valuemax="{{host.memory.size}}"
|
||||
style="width: {{[host.memory.usage, host.memory.size] | %}}"
|
||||
></div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Shared SR panel -->
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title"><i class="xo-icon-sr" style="color: #e25440;"></i> Shared SR
|
||||
<table class="table table-hover">
|
||||
<th>Name</th>
|
||||
<th>Description</th>
|
||||
<th>Type</th>
|
||||
<th>Size</th>
|
||||
<th class="col-md-4">Physical/Allocated usage</th>
|
||||
<tr
|
||||
xo-sref="SRs_view({id: SR.UUID})"
|
||||
ng-repeat="SR in pool.SRs | resolve | orderBy:'name_label' track by SR.UUID"
|
||||
>
|
||||
<td>{{SR.name_label}}</td>
|
||||
<td>{{SR.name_description}}</td>
|
||||
<td>{{SR.SR_type}}</td>
|
||||
<td>{{SR.size | bytesToSize}}</td>
|
||||
<td>
|
||||
<div class="progress-condensed">
|
||||
<div
|
||||
class="progress-bar"
|
||||
role="progressbar"
|
||||
aria-valuemin="0"
|
||||
aria-valuenow="{{SR.usage}}"
|
||||
aria-valuemax="{{SR.size}}"
|
||||
style="width: {{[SR.physical_usage, SR.size] | %}}"
|
||||
tooltip="Physical usage: {{[SR.physical_usage, SR.size] | %}}"
|
||||
></div>
|
||||
<div
|
||||
class="progress-bar progress-bar-info"
|
||||
role="progressbar"
|
||||
aria-valuemin="0"
|
||||
aria-valuenow="{{SR.physical_usage}}"
|
||||
aria-valuemax="{{SR.size}}"
|
||||
style="width: {{[(SR.usage-SR.physical_usage), SR.size] | %}}"
|
||||
tooltip="Allocated: {{[(SR.usage), SR.size] | %}}"
|
||||
></div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- TODO: CPU and Logs panels -->
|
||||
<div class="grid">
|
||||
<!-- Logs panel -->
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title"><i class="fa fa-comments" style="color: #e25440;"></i> Logs</p>
|
||||
<p class="center" ng-if="!pool.messages.length">No recent logs</p>
|
||||
<table class="table table-hover" ng-if="pool.messages.length">
|
||||
<th class="col-md-1">Date</th>
|
||||
<th class="col-md-1">Name</th>
|
||||
<tr ng-repeat="message in pool.messages | resolve | orderBy:'-time' track by message.UUID">
|
||||
<td>{{message.time*1e3 | date:'medium'}}</td>
|
||||
<td>{{message.name}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!-- Template panel -->
|
||||
<!-- FIXME: error on accordion display, DOES NOT WORK SO FAR -->
|
||||
<!-- <div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title"><i class="fa fa-copy" style="color: #e25440;"></i> Templates</p>
|
||||
<p class="center" ng-if="!pool.templates.length">No templates</p>
|
||||
<accordion close-others="true">
|
||||
<accordion-group heading="{{template.name_label}}" ng-repeat="template in pool.templates | resolve | orderBy:'name_label' track by template.UUID">
|
||||
{{template.name_description}}
|
||||
</accordion-group>
|
||||
</accordion>
|
||||
</div> -->
|
||||
|
||||
</div>
|
||||
@@ -1,104 +0,0 @@
|
||||
<!-- TODO: lots of stuff. -->
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="page-title"><i class="fa fa-cog"></i> XO Settings</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Add server panel -->
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title"><i class="fa fa-link" style="color: #e25440;"></i> Connected servers</p>
|
||||
<form ng-submit="saveServers()" autocomplete="off">
|
||||
<table class="table table-hover">
|
||||
<tr>
|
||||
<th>Host</th>
|
||||
<th>User</th>
|
||||
<th>Password</th>
|
||||
<th>Delete</th>
|
||||
</tr>
|
||||
<tr ng-repeat="server in servers | orderBy:'host' track by server.id">
|
||||
<td><input type="text" ng-model="server.host" class="form-control" /></td>
|
||||
<td><input type="text" ng-model="server.username" class="form-control"/></td>
|
||||
<td>
|
||||
<input type="password" ng-model="server.password" class="form-control" placeholder="Fill to change the password"/>
|
||||
</td>
|
||||
<td><input type="checkbox" ng-model="selectedServers[server.id]"/></td>
|
||||
</tr>
|
||||
<tr ng-repeat="server in newServers">
|
||||
<td>
|
||||
<input type="text" ng-model="server.host" class="form-control" placeholder="address[:port]"/>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" ng-model="server.username" class="form-control" placeholder="user"/>
|
||||
</td>
|
||||
<td>
|
||||
<input type="password" ng-model="server.password" class="form-control" placeholder="password"/>
|
||||
</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<p class="text-center">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
<i class="fa fa-save"></i> Save
|
||||
</button>
|
||||
<button type="button" class="btn btn-success" ng-click="addServer()">
|
||||
<i class="fa fa-plus"></i>
|
||||
</button>
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title"><i class="fa fa-users" style="color: #e25440;"></i> Users</p>
|
||||
<form ng-submit="saveUsers()" autocomplete="off">
|
||||
<table class="table table-hover">
|
||||
<tr>
|
||||
<th>Email</th>
|
||||
<th>Permissions</th>
|
||||
<th>Password</th>
|
||||
<th>Delete</th>
|
||||
</tr>
|
||||
<tr ng-repeat="user in users | orderBy:'email' track by user.id">
|
||||
<td><input type="text" ng-model="user.email" class="form-control"/></td>
|
||||
<td>
|
||||
<select
|
||||
ng-options="p.value as p.label for p in permissions"
|
||||
ng-model="user.permission"
|
||||
class="form-control"
|
||||
>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<input type="password" ng-model="user.password" class="form-control" placeholder="Fill to change the password"/>
|
||||
</td>
|
||||
<td><input type="checkbox" ng-model="selectedUsers[user.id]" /></td>
|
||||
</tr>
|
||||
<tr ng-repeat="user in newUsers">
|
||||
<td>
|
||||
<input type="text" ng-model="user.email" class="form-control" placeholder="email"/>
|
||||
</td>
|
||||
<td>
|
||||
<select
|
||||
ng-options="p.value as p.label for p in permissions"
|
||||
ng-model="user.permission"
|
||||
class="form-control"
|
||||
>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<input type="password" ng-model="user.password" class="form-control" placeholder="password"/>
|
||||
</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<p class="text-center">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
<i class="fa fa-save"></i> Save
|
||||
</button>
|
||||
<button type="button" class="btn btn-success" ng-click="addUser()">
|
||||
<i class="fa fa-plus"></i>
|
||||
</button>
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,228 +0,0 @@
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="page-title"><i class="xo-icon-sr"></i> {{SR.name_label}}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title">
|
||||
<i class="fa fa-cogs" style="color: #e25440;"></i> General
|
||||
<span class="quick-edit" tooltip="Edit General settings" ng-click="srSettings.$show()">
|
||||
<i class="fa fa-edit fa-fw"></i>
|
||||
</span>
|
||||
</p>
|
||||
<div class="general-properties">
|
||||
<form editable-form name="srSettings" onbeforesave="saveSR($data)">
|
||||
<dl class="dl-horizontal">
|
||||
<dt>Name</dt>
|
||||
<dd>
|
||||
<span editable-text="SR.name_label" e-name="name_label" e-form="srSettings">
|
||||
{{SR.name_label}}
|
||||
</span>
|
||||
</dd>
|
||||
<dt>Description</dt>
|
||||
<dd>
|
||||
<span editable-text="SR.name_description" e-name="name_description" e-form="srSettings">
|
||||
{{SR.name_description}}
|
||||
</span>
|
||||
</dd>
|
||||
<dt>Content type:</dt>
|
||||
<dd>{{SR.SR_type}}</dd>
|
||||
<dt>Tags</dt>
|
||||
<dd ng-if="SR.tags.length">
|
||||
<span ng-repeat="tag in SR.tags">
|
||||
<span class="label label-primary">{{tag}}</span>
|
||||
</span>
|
||||
</dd>
|
||||
<dd ng-if="!SR.tags.length">
|
||||
<em>No tags.</em>
|
||||
</dd>
|
||||
<dt>Shared</dt>
|
||||
<div ng-repeat="container in [SR.$container] | resolve">
|
||||
<dd ng-if="'pool' === container.type">Yes (<a ui-sref="pools_view({id: container.UUID})">{{container.name_label}}</a>)</dd>
|
||||
<dd ng-if="'host' === container.type">No</dd>
|
||||
</div>
|
||||
<dt>Size</dt>
|
||||
<dd>{{SR.size | bytesToSize}}</dd>
|
||||
<dt>UUID</dt>
|
||||
<dd>{{SR.UUID}}</dd>
|
||||
</dl>
|
||||
<div class="btn-form" ng-show="srSettings.$visible">
|
||||
<p class="center">
|
||||
<button type="button" ng-disabled="srSettings.$waiting" ng-click="srSettings.$cancel()" class="btn btn-default">
|
||||
<i class="fa fa-times"></i> Cancel
|
||||
</button>
|
||||
<button type="submit" ng-disabled="srSettings.$waiting" class="btn btn-primary">
|
||||
<i class="fa fa-save"></i> Save
|
||||
</button>
|
||||
</p>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title"><i class="fa fa-bar-chart-o" style="color: #e25440;"></i> Stats</p>
|
||||
<div class="grid">
|
||||
<div class="grid-cell">
|
||||
<p class="stat-name">Physical Alloc:</p>
|
||||
<p class="center big">{{[SR.physical_usage, SR.size] | %}}</p>
|
||||
</div>
|
||||
<div class="grid-cell">
|
||||
<p class="stat-name">Virtual Alloc:</p>
|
||||
<p class="center big">{{[SR.usage, SR.size] | %}}</p>
|
||||
</div>
|
||||
<div class="grid-cell">
|
||||
<p class="stat-name">VDIs:</p>
|
||||
<p class="center big">{{SR.VDIs.length}}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- TODO: Space panel -->
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title">
|
||||
<i class="xo-icon-memory" style="color: #e25440;"></i> VDI Map
|
||||
</p>
|
||||
<div class="progress">
|
||||
<div
|
||||
ng-if="((VDI.size/SR.size)*100) > 0.5"
|
||||
ng-repeat="VDI in SR.VDIs | resolve | orderBy:'name_label'"
|
||||
class="progress-bar progress-bar-vm"
|
||||
role="progressbar"
|
||||
aria-valuemin="0"
|
||||
aria-valuenow="{{VDI.size}}"
|
||||
aria-valuemax="{{SR.size}}"
|
||||
style="width: {{[VDI.size, SR.size] | %}}"
|
||||
xo-sref="VDIs_view({id: VDI.UUID})"
|
||||
tooltip="{{VDI.name_label}} ({{[VDI.size, SR.size] | %}})"
|
||||
>
|
||||
<!-- display the name only if it fits in its progress bar -->
|
||||
<span ng-if="VDI.name_label.length < ((VDI.size/SR.size)*100)">{{VDI.name_label}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="list-inline text-center">
|
||||
<li>Total: {{SR.size | bytesToSize}}</li>
|
||||
<li>Currently used: {{SR.usage | bytesToSize}}</li>
|
||||
<li>Available: {{SR.size-SR.usage | bytesToSize}}</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- TODO: VDIs. -->
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-panel">
|
||||
<form editable-form name="srDisks" onbeforesave="saveVDI()" oncancel="cancel()">
|
||||
<p class="flat-panel-title">
|
||||
<i class="fa fa-hdd-o" style="color: #e25440;"></i> Virtual disks
|
||||
<span class="quick-edit" tooltip="Edit disks" ng-click="srDisks.$show()">
|
||||
<i class="fa fa-edit fa-fw"> </i>
|
||||
</span>
|
||||
<span class="quick-edit" tooltip="Rescan" ng-click="rescanSr(SR.UUID)">
|
||||
<i class="fa fa-refresh fa-fw"> </i>
|
||||
</span>
|
||||
</p>
|
||||
<table class="table table-hover">
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Description</th>
|
||||
<th>Size</th>
|
||||
<th>Attached to:</th>
|
||||
</tr>
|
||||
<tr
|
||||
ng-repeat="VDI in SR.VDIs | resolve | orderBy:'name_label'"
|
||||
xo-sref="VDIs_view({id: VDI.UUID})"
|
||||
>
|
||||
<td>
|
||||
<span editable-text="VDI.name_label" e-name="name_description" e-form="srDisks">
|
||||
{{VDI.name_label}} <span ng-if="VDI.$snapshot_of" class="label label-info">snapshot</span>
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<span editable-text="VDI.name_description" e-name="name_description" e-form="srDisks">
|
||||
{{VDI.name_description}}
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<span editable-text="VDI.size | bytesToSize" e-name="size" e-form="srDisks">
|
||||
{{VDI.size | bytesToSize}}
|
||||
</span>
|
||||
</td>
|
||||
<td
|
||||
ng-if="((VDI.$VBD | resolve).VM)"
|
||||
ng-init="VBD = (VDI.$VBD | resolve)"
|
||||
>
|
||||
{{(((VDI.$VBD | resolve).VM) | resolve).name_label}}
|
||||
<button type="button" ng-show="srDisks.$visible" ng-click="disconnectVBD(VBD.UUID)" class="btn btn-sm btn-danger pull-right" tooltip="Disconnect this disk"><i class="fa fa-unlink fa-lg"></i></button>
|
||||
</td>
|
||||
<td ng-if="!((VDI.$VBD | resolve).VM)">
|
||||
<button type="button" ng-show="srDisks.$visible" ng-click="deleteVDI(VDI.UUID)" class="btn btn-sm btn-danger pull-right" tooltip="Destroy this disk"><i class="fa fa-trash-o fa-lg"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="btn-form" ng-show="srDisks.$visible">
|
||||
<p class="center">
|
||||
<button type="button" ng-disabled="srDisks.$waiting" ng-click="srDisks.$cancel()" class="btn btn-default"><i class="fa fa-times"></i> Cancel</button>
|
||||
<button type="submit" ng-disabled="srDisks.$waiting" class="btn btn-primary"><i class="fa fa-save"></i> Save</button>
|
||||
<button type="button" ng-disabled="srDisks.$waiting" ng-click="addVDI()" class="btn btn-success pull-right"><i class="fa fa-plus"></i> Add Disk</button>
|
||||
</p>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /VDIs. -->
|
||||
|
||||
<!-- Hosts. -->
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-panel">
|
||||
<form editable-form name="srHosts" onaftersave="saveTable()" oncancel="cancel()">
|
||||
<p class="flat-panel-title">
|
||||
<i class="fa fa-link" style="color: #e25440;"></i> Connected hosts
|
||||
<span class="quick-edit" tooltip="Edit connected hosts" ng-click="srHosts.$show()">
|
||||
<i class="fa fa-edit fa-fw"> </i>
|
||||
</span>
|
||||
<span class="quick-edit" tooltip="Reconnect all hosts" ng-click="reconnectAllHosts()">
|
||||
<i class="fa fa-plus-square fa-fw"> </i>
|
||||
</span>
|
||||
</p>
|
||||
<table class="table table-hover">
|
||||
<th>Name</th>
|
||||
<th>Status</th>
|
||||
<tr
|
||||
ng-repeat="PBD in SR.$PBDs | resolve"
|
||||
ng-init="host = (PBD.host | resolve)"
|
||||
xo-sref="hosts_view({id: host.UUID})"
|
||||
>
|
||||
<td>{{host.name_label}}</td>
|
||||
<td ng-if="PBD.attached">
|
||||
<span class="label label-success">Connected</span>
|
||||
<button type="button" ng-show="srHosts.$visible" ng-click="disconnectPBD(host.UUID)" class="btn btn-sm btn-danger pull-right" tooltip="Disconnect this host"><i class="fa fa-unlink fa-lg"></i></button>
|
||||
</td>
|
||||
<td ng-if="!PBD.attached">
|
||||
<span class="label label-default">Disabled</span>
|
||||
<button type="button" ng-show="srHosts.$visible" ng-click="connectPBD(host.UUID)" class="btn btn-sm btn-primary pull-right" tooltip="Connect this host"><i class="fa fa-link fa-lg"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title"><i class="fa fa-comments" style="color: #e25440;"></i> Logs</p>
|
||||
<p class="center" ng-if="!SR.messages.length">No recent logs</p>
|
||||
<table class="table table-hover" ng-if="SR.messages.length">
|
||||
<th class="col-md-1">Date</th>
|
||||
<th class="col-md-1">Name</th>
|
||||
<tr ng-repeat="message in SR.messages | resolve | orderBy:'-time' track by message.UUID">
|
||||
<td>{{message.time*1e3 | date:'medium'}}</td>
|
||||
<td>
|
||||
{{message.name}}
|
||||
<a class="quick-remove" tooltip="Remove log">
|
||||
<i class="fa fa-trash-o fa-fw"> </i>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /Hosts. -->
|
||||
@@ -1,292 +0,0 @@
|
||||
<!-- TODO: lots of stuff. -->
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="page-title"><i class="xo-icon-vm xo-color-{{VM.power_state | lowercase}}"></i> {{VM.name_label}}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title"><i class="fa fa-cogs" style="color: #e25440;"></i> General
|
||||
<span class="quick-edit" tooltip="Edit General settings" ng-click="vmSettings.$show()">
|
||||
<i class="fa fa-edit fa-fw"></i>
|
||||
</span>
|
||||
</p>
|
||||
<div class="general-properties">
|
||||
<form editable-form name="vmSettings" onbeforesave="saveVM($data)">
|
||||
<dl class="dl-horizontal">
|
||||
<dt>Name</dt>
|
||||
<dd>
|
||||
<span editable-text="VM.name_label" e-name="name_label" e-form="vmSettings">
|
||||
{{VM.name_label}}
|
||||
</span>
|
||||
</dd>
|
||||
<dt>Description</dt>
|
||||
<dd>
|
||||
<span editable-text="VM.name_description" e-name="name_description" e-form="vmSettings">
|
||||
{{VM.name_description}}
|
||||
</span>
|
||||
</dd>
|
||||
<dt ng-if="VM.power_state == ('Running' || 'Paused')">Running on:</dt>
|
||||
<dd ng-repeat="container in [VM.$container] | resolve">
|
||||
<a xo-sref="hosts_view({id: container.UUID})">
|
||||
{{container.name_label}}
|
||||
</a>
|
||||
</dd>
|
||||
<dt>Address</dt>
|
||||
<dd ng-repeat="IP in VM.addresses">{{IP}}</dd>
|
||||
<dt>Tags</dt>
|
||||
<dd>
|
||||
<!-- TODO angular select2 in angular xeditable
|
||||
<input type="text" ui-select2="select2Options" ng-model="VM.tags" data-placeholder="tags">
|
||||
-->
|
||||
</dd>
|
||||
<dt>vCPUs</dt>
|
||||
<dd>
|
||||
<span editable-text="VM.CPUs.number" e-name="CPUs" e-form="vmSettings">
|
||||
{{VM.CPUs.number}}
|
||||
</span>
|
||||
</dd>
|
||||
<dt>RAM</dt>
|
||||
<dd>
|
||||
<span editable-text="memorySize" e-name="memory" e-form="vmSettings">
|
||||
{{memorySize}}
|
||||
</span>
|
||||
</dd>
|
||||
<dt>UUID</dt>
|
||||
<dd>{{VM.UUID}}</dd>
|
||||
</dl>
|
||||
<div class="btn-form" ng-show="vmSettings.$visible">
|
||||
<p class="center">
|
||||
<button type="button" ng-disabled="vmSettings.$waiting" ng-click="vmSettings.$cancel()" class="btn btn-default">
|
||||
<i class="fa fa-times"></i> Cancel
|
||||
</button>
|
||||
<button type="submit" ng-disabled="vmSettings.$waiting" class="btn btn-primary">
|
||||
<i class="fa fa-save"></i> Save
|
||||
</button>
|
||||
</p>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title"><i class="fa fa-bar-chart-o" style="color: #e25440;"></i> Stats</p>
|
||||
<div class="grid">
|
||||
<div class="grid-cell">
|
||||
<p class="stat-name">vCPUs</p>
|
||||
<p class="center big">{{VM.CPUs.number}}</p>
|
||||
</div>
|
||||
<div class="grid-cell">
|
||||
<p class="stat-name">RAM</p>
|
||||
<p class="center big">{{VM.memory.size | bytesToSize}}</p>
|
||||
</div>
|
||||
<div class="grid-cell">
|
||||
<p class="stat-name">Disks</p>
|
||||
<p class="center big">{{VM.$VBDs.length || 0}}</p>
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
<div class="grid">
|
||||
<div ng-if="VM.os_version.distro" class="grid-cell">
|
||||
<p class="stat-name">OS:</p>
|
||||
<p class="center big">
|
||||
<i tooltip="{{VM.os_version.name}}" style="color: black;" class="xo-icon-{{osType(VM.os_version.distro)}}"></i>
|
||||
</p>
|
||||
</div>
|
||||
<div class="grid-cell">
|
||||
<p class="stat-name">Xen tools:</p>
|
||||
<p class="center">
|
||||
<span ng-if="VM.PV_drivers" style="color:green;">Installed</span>
|
||||
<span ng-if="!VM.PV_drivers">NOT installed</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Action panel -->
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title"><i class="fa fa-flash" style="color: #e25440;"></i> Actions</p>
|
||||
<div class="grid">
|
||||
<div class="grid-cell text-center grid-button" tooltip="Stop VM" xo-click="stopVM(VM.UUID)">
|
||||
<i class="fa fa-stop fa-2x fa-fw"></i>
|
||||
</div>
|
||||
<div class="grid-cell text-center grid-button" tooltip="Start VM" xo-click="startVM(VM.UUID)">
|
||||
<i class="fa fa-play fa-2x fa-fw"></i>
|
||||
</div>
|
||||
<div class="grid-cell text-center grid-button" tooltip="Reboot VM" xo-click="rebootVM(VM.UUID)">
|
||||
<i class="fa fa-refresh fa-2x fa-fw"></i>
|
||||
</div>
|
||||
<div class="grid-cell text-center grid-button" tooltip="Migrate VM">
|
||||
<i class="fa fa-mail-forward fa-2x fa-fw"></i>
|
||||
</div>
|
||||
<div class="grid-cell text-center grid-button" tooltip="Force Reboot" xo-click="force_rebootVM(VM.UUID)">
|
||||
<i class="fa fa-flash fa-2x fa-fw"></i>
|
||||
</div>
|
||||
<div class="grid-cell text-center grid-button" tooltip="Force Shutdown" xo-click="force_stopVM(VM.UUID)">
|
||||
<i class="fa fa-power-off fa-2x fa-fw"></i>
|
||||
</div>
|
||||
<div class="grid-cell text-center grid-button" tooltip="Delete VM" xo-click="destroyVM(VM.UUID)">
|
||||
<i class="fa fa-trash-o fa-2x fa-fw"></i>
|
||||
</div>
|
||||
<div class="grid-cell text-center grid-button" tooltip="Create a snapshot">
|
||||
<i class="xo-icon-snapshot fa-2x fa-fw"></i>
|
||||
</div>
|
||||
<div
|
||||
class="grid-cell text-center grid-button"
|
||||
tooltip="VM Console"
|
||||
xo-sref="consoles_view({id: VM.UUID})"
|
||||
>
|
||||
<i class="xo-icon-console fa-2x fa-fw"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- TODO: Disk panel -->
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-panel">
|
||||
<form editable-form name="vmDisks" onaftersave="saveTable()" oncancel="cancel()">
|
||||
<p class="flat-panel-title">
|
||||
<i class="xo-icon-sr" style="color: #e25440;"></i> Disk
|
||||
<span class="quick-edit" tooltip="Edit disks" ng-click="vmDisks.$show()">
|
||||
<i class="fa fa-edit fa-fw"> </i>
|
||||
</span>
|
||||
</p>
|
||||
<table class="table table-hover">
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Description</th>
|
||||
<th>Size</th>
|
||||
<th>SR</th>
|
||||
<th>Status</th>
|
||||
</tr>
|
||||
<tr
|
||||
ng-repeat="VDI in VDIs | orderBy:'name_label' track by VDI.UUID"
|
||||
ng-init="SR = (VDI.$SR | resolve); VBD = (VDI.$VBD | resolve)"
|
||||
xo-sref="SRs_view({id: SR.UUID})"
|
||||
>
|
||||
<td>
|
||||
<span editable-text="VDI.name_label" e-name="name_label" e-form="vmDisks" e-required>
|
||||
{{VDI.name_label}}
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<span editable-text="VDI.name_description" e-name="name_description" e-form="vmDisks">
|
||||
{{VDI.name_description}}
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<span editable-text="VDI.size | bytesToSize" e-name="size" e-form="vmDisks" e-required>
|
||||
{{VDI.size | bytesToSize}}
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<!-- Are SR editable? will trigger moving VDI to the new SR -->
|
||||
{{SR.name_label}}
|
||||
</td>
|
||||
<td ng-if="VBD.attached">
|
||||
<span editable-checkbox="VBD.attached" e-title="Connected?" class="label label-success" e-form="vmDisks" e-required>Connected</span>
|
||||
<button type="button" ng-show="vmDisks.$visible" ng-click="disconnectVBD(VBD.UUID)" class="btn btn-sm btn-danger pull-right"><i class="fa fa-unlink fa-lg" tooltip="Disconnect this disk"></i></button>
|
||||
</td>
|
||||
<td ng-if="!VBD.attached">
|
||||
<span editable-checkbox="VBD.attached" e-title="Connected?" class="label label-default" e-form="vmDisks" e-required>Disconnected</span>
|
||||
<button type="button" ng-show="vmDisks.$visible" ng-click="deleteVDI(VDI.UUID)" class="btn btn-sm btn-danger pull-right"><i class="fa fa-trash-o fa-lg" tooltip="Remove this disk"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr ng-repeat="VDI in newVDIs | resolve | orderBy:'name_label' track by VDI.UUID">
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
<div class="btn-form" ng-show="vmDisks.$visible">
|
||||
<p class="center">
|
||||
<button type="button" ng-disabled="vmDisks.$waiting" ng-click="vmDisks.$cancel()" class="btn btn-default"><i class="fa fa-times"></i> Cancel</button>
|
||||
<button type="submit" ng-disabled="vmDisks.$waiting" ng-click="saveChanges()" class="btn btn-primary"><i class="fa fa-save"></i> Save</button>
|
||||
<button type="button" ng-disabled="vmDisks.$waiting" ng-click="addVDI()" class="btn btn-success pull-right"><i class="fa fa-plus"></i> Add Disk</button>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!-- TODO: Interface panel -->
|
||||
<div class="grid">
|
||||
<div class="grid-cell flat-panel">
|
||||
<form editable-form name="vmInterfaces" onaftersave="saveTable()" oncancel="cancel()">
|
||||
<p class="flat-panel-title"><i class="xo-icon-network" style="color: #e25440;"></i> Interface
|
||||
<span class="quick-edit" tooltip="Edit interfaces" ng-click="vmInterfaces.$show()">
|
||||
<i class="fa fa-edit fa-fw"> </i>
|
||||
</span>
|
||||
</p>
|
||||
<table class="table table-hover">
|
||||
<th class="col-md-1">Device</th>
|
||||
<th class="col-md-2">MAC</th>
|
||||
<th class="col-md-1">MTU</th>
|
||||
<th class="col-md-1">Link status</th>
|
||||
<tr ng-repeat="VIF in VM.VIFs | resolve | orderBy:'name_label' track by VIF.UUID">
|
||||
<td>VIF #{{VIF.device}}</td>
|
||||
<td>
|
||||
<span editable-text="VIF.MAC" e-name="mac" e-form="vmInterfaces" e-required>
|
||||
{{VIF.MAC}}
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<span editable-text="VIF.MTU" e-name="mtu" e-form="vmInterfaces" e-required>
|
||||
{{VIF.MTU}}
|
||||
</span>
|
||||
</td>
|
||||
<td ng-if="VIF.attached">
|
||||
<span editable-checkbox="VIF.attached" class="label label-success">Connected</span>
|
||||
<button type="button" ng-show="vmInterfaces.$visible" ng-click="disconnectVIF(VIF.UUID)" class="btn btn-sm btn-danger pull-right"><i class="fa fa-ban fa-lg" tooltip="Disconnect this interface"></i></button>
|
||||
</td>
|
||||
<td ng-if="!VIF.attached">
|
||||
<span editable-checkbox="VIF.attached" class="label label-default">Disconnected</span>
|
||||
<button type="button" ng-show="vmInterfaces.$visible" ng-click="deleteVIF(VIF.UUID)" class="btn btn-sm btn-danger pull-right"><i class="fa fa-trash-o fa-lg" tooltip="Remove this interface"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="btn-form" ng-show="vmInterfaces.$visible">
|
||||
<p class="center">
|
||||
<button type="button" ng-disabled="vmInterfaces.$waiting" ng-click="vmInterfaces.$cancel()" class="btn btn-default"><i class="fa fa-times"></i> Cancel</button>
|
||||
<button type="button" ng-disabled="vmInterfaces.$waiting" ng-click="saveChanges()" class="btn btn-primary"><i class="fa fa-save"></i> Save</button>
|
||||
<button type="button" ng-disabled="vmInterfaces.$waiting" ng-click="addNetwork()" class="btn btn-success pull-right"><i class="fa fa-plus"></i> Add Interface</button>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- TODO: Snapshot and Logs panels -->
|
||||
<div class="grid">
|
||||
<!-- Snapshots panel -->
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title"><i class="xo-icon-snapshot" style="color: #e25440;"></i> Snapshot</p>
|
||||
<p class="center" ng-if="!VM.snapshots.length">No snapshots</p>
|
||||
<table class="table table-hover" ng-if="VM.snapshots">
|
||||
<th class="col-md-1">Date</th>
|
||||
<th class="col-md-1">Name</th>
|
||||
<tr ng-repeat="snapshot in VM.snapshots | resolve | orderBy:'name_label' track by snapshot.UUID">
|
||||
<td>{{snapshot.snapshot_time*1e3 | date:'medium'}}</td>
|
||||
<td>{{snapshot.name_label}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!-- Logs panel -->
|
||||
<div class="grid-cell flat-panel">
|
||||
<p class="flat-panel-title"><i class="fa fa-comments" style="color: #e25440;"></i> Logs</p>
|
||||
<p class="center" ng-if="!VM.messages.length">No recent logs</p>
|
||||
<table class="table table-hover" ng-if="VM.messages.length">
|
||||
<th class="col-md-1">Date</th>
|
||||
<th class="col-md-1">Name</th>
|
||||
<tr ng-repeat="message in VM.messages | resolve | orderBy:'-time' track by message.UUID">
|
||||
<td>{{message.time*1e3 | date:'medium'}}</td>
|
||||
<td>
|
||||
{{message.name}}
|
||||
<a class="quick-remove" tooltip="Remove log">
|
||||
<i class="fa fa-trash-o fa-fw"> </i>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
21
bower.json
@@ -1,21 +0,0 @@
|
||||
{
|
||||
"name": "xo-web",
|
||||
"version": "0.0.0",
|
||||
"dependencies": {
|
||||
"angular": "~1.2.10",
|
||||
"angular-cookies": "~1.2.10",
|
||||
"angular-notify-toaster": "~0.4.1",
|
||||
"angular-ui-bootstrap-bower": "~0.10.0",
|
||||
"angular-ui-router": "0.2.8-bowratic-tedium",
|
||||
"angular-ui-select2": "~0.0.5",
|
||||
"angular-ui-utils": "~0.0.4",
|
||||
"angular-xeditable": "~0.1.7",
|
||||
"es5-shim": "~2.2.0",
|
||||
"font-awesome": "~4.0.3",
|
||||
"jquery": "~2.0.3",
|
||||
"json3": "~3.2.6",
|
||||
"noVNC": "git://github.com/kanaka/noVNC",
|
||||
"sass-bootstrap": "~3.0.2"
|
||||
},
|
||||
"devDependencies": {}
|
||||
}
|
||||
340
gulpfile.js
Normal file
@@ -0,0 +1,340 @@
|
||||
'use strict'
|
||||
|
||||
// ===================================================================
|
||||
|
||||
var SRC_DIR = __dirname + '/src' // eslint-disable-line no-path-concat
|
||||
var DIST_DIR = __dirname + '/dist' // eslint-disable-line no-path-concat
|
||||
|
||||
// Port to use for the livereload server.
|
||||
//
|
||||
// It must be available and if possible unique to not conflict with other projects.
|
||||
// http://www.random.org/integers/?num=1&min=1024&max=65535&col=1&base=10&format=plain&rnd=new
|
||||
var LIVERELOAD_PORT = 26242
|
||||
|
||||
// Port to use for the embedded web server.
|
||||
//
|
||||
// Set to 0 to choose a random port at each run.
|
||||
var SERVER_PORT = LIVERELOAD_PORT + 1
|
||||
|
||||
// Address the server should bind to.
|
||||
//
|
||||
// - `'localhost'` to make it accessible from this host only
|
||||
// - `null` to make it accessible for the whole network
|
||||
var SERVER_ADDR = 'localhost'
|
||||
|
||||
var PRODUCTION = process.env.NODE_ENV === 'production'
|
||||
var DEVELOPMENT = !PRODUCTION
|
||||
|
||||
if (!process.env.XOA_PLAN) {
|
||||
process.env.XOA_PLAN = '5' // Open Source
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
|
||||
var gulp = require('gulp')
|
||||
|
||||
// ===================================================================
|
||||
|
||||
function lazyFn (factory) {
|
||||
var fn = function () {
|
||||
fn = factory()
|
||||
return fn.apply(this, arguments)
|
||||
}
|
||||
|
||||
return function () {
|
||||
return fn.apply(this, arguments)
|
||||
}
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
var livereload = lazyFn(function () {
|
||||
var livereload = require('gulp-refresh')
|
||||
livereload.listen({
|
||||
port: LIVERELOAD_PORT
|
||||
})
|
||||
|
||||
return livereload
|
||||
})
|
||||
|
||||
var pipe = lazyFn(function () {
|
||||
var current
|
||||
function pipeCore (streams) {
|
||||
var i, n, stream
|
||||
for (i = 0, n = streams.length; i < n; ++i) {
|
||||
stream = streams[i]
|
||||
if (!stream) {
|
||||
// Nothing to do
|
||||
} else if (stream instanceof Array) {
|
||||
pipeCore(stream)
|
||||
} else {
|
||||
current = current
|
||||
? current.pipe(stream)
|
||||
: stream
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var push = Array.prototype.push
|
||||
return function (streams) {
|
||||
try {
|
||||
if (!(streams instanceof Array)) {
|
||||
streams = []
|
||||
push.apply(streams, arguments)
|
||||
}
|
||||
|
||||
pipeCore(streams)
|
||||
|
||||
return current
|
||||
} finally {
|
||||
current = null
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
var resolvePath = lazyFn(function () {
|
||||
return require('path').resolve
|
||||
})
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// Similar to `gulp.src()` but the pattern is relative to `SRC_DIR`
|
||||
// and files are automatically watched when not in production mode.
|
||||
var src = lazyFn(function () {
|
||||
function resolve (path) {
|
||||
return path
|
||||
? resolvePath(SRC_DIR, path)
|
||||
: SRC_DIR
|
||||
}
|
||||
|
||||
return PRODUCTION
|
||||
? function src (pattern, opts) {
|
||||
var base = resolve(opts && opts.base)
|
||||
|
||||
return gulp.src(pattern, {
|
||||
base: base,
|
||||
cwd: base,
|
||||
passthrough: opts && opts.passthrough,
|
||||
sourcemaps: opts && opts.sourcemaps
|
||||
})
|
||||
}
|
||||
: function src (pattern, opts) {
|
||||
var base = resolve(opts && opts.base)
|
||||
|
||||
return pipe(
|
||||
gulp.src(pattern, {
|
||||
base: base,
|
||||
cwd: base,
|
||||
passthrough: opts && opts.passthrough,
|
||||
sourcemaps: opts && opts.sourcemaps
|
||||
}),
|
||||
require('gulp-watch')(pattern, {
|
||||
base: base,
|
||||
cwd: base
|
||||
}),
|
||||
require('gulp-plumber')()
|
||||
)
|
||||
}
|
||||
})
|
||||
|
||||
// Similar to `gulp.dest()` but the output directory is relative to
|
||||
// `DIST_DIR` and default to `./`, and files are automatically live-
|
||||
// reloaded when not in production mode.
|
||||
var dest = lazyFn(function () {
|
||||
function resolve (path) {
|
||||
return path
|
||||
? resolvePath(DIST_DIR, path)
|
||||
: DIST_DIR
|
||||
}
|
||||
|
||||
var opts = {
|
||||
sourcemaps: {
|
||||
path: '.'
|
||||
}
|
||||
}
|
||||
|
||||
return PRODUCTION
|
||||
? function dest (path) {
|
||||
return gulp.dest(resolve(path), opts)
|
||||
}
|
||||
: function dest (path) {
|
||||
var stream = gulp.dest(resolve(path), opts)
|
||||
stream.pipe(livereload())
|
||||
return stream
|
||||
}
|
||||
})
|
||||
|
||||
// ===================================================================
|
||||
|
||||
function browserify (path, opts) {
|
||||
if (opts == null) {
|
||||
opts = {}
|
||||
}
|
||||
|
||||
var bundler = require('browserify')(path, {
|
||||
basedir: SRC_DIR,
|
||||
debug: DEVELOPMENT, // TODO: enable also in production but need to make it work with gulp-uglify.
|
||||
extensions: opts.extensions,
|
||||
fullPaths: false,
|
||||
paths: SRC_DIR + '/common',
|
||||
standalone: opts.standalone,
|
||||
|
||||
// Required by Watchify.
|
||||
cache: {},
|
||||
packageCache: {}
|
||||
})
|
||||
|
||||
var plugins = opts.plugins
|
||||
for (var i = 0, n = plugins && plugins.length; i < n; ++i) {
|
||||
var plugin = plugins[i]
|
||||
bundler.plugin(require(plugin[0]), plugin[1])
|
||||
}
|
||||
|
||||
if (PRODUCTION) {
|
||||
// FIXME: does not work with react-intl (?!)
|
||||
// bundler.plugin('bundle-collapser/plugin')
|
||||
} else {
|
||||
bundler = require('watchify')(bundler)
|
||||
}
|
||||
|
||||
// Append the extension if necessary.
|
||||
if (!/\.js$/.test(path)) {
|
||||
path += '.js'
|
||||
}
|
||||
path = resolvePath(SRC_DIR, path)
|
||||
|
||||
var stream = new (require('readable-stream'))({
|
||||
objectMode: true
|
||||
})
|
||||
|
||||
var write
|
||||
function bundle () {
|
||||
bundler.bundle(function onBundle (error, buffer) {
|
||||
if (error) {
|
||||
stream.emit('error', error)
|
||||
return
|
||||
}
|
||||
|
||||
write(new (require('vinyl'))({
|
||||
base: SRC_DIR,
|
||||
contents: buffer,
|
||||
path: path
|
||||
}))
|
||||
})
|
||||
}
|
||||
|
||||
if (PRODUCTION) {
|
||||
write = function (data) {
|
||||
stream.push(data)
|
||||
stream.push(null)
|
||||
}
|
||||
} else {
|
||||
stream = require('gulp-plumber')().pipe(stream)
|
||||
write = function (data) {
|
||||
stream.push(data)
|
||||
}
|
||||
|
||||
bundler.on('update', bundle)
|
||||
}
|
||||
|
||||
stream._read = function () {
|
||||
this._read = function () {}
|
||||
bundle()
|
||||
}
|
||||
|
||||
return stream
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
|
||||
gulp.task(function buildPages () {
|
||||
return pipe(
|
||||
src('index.jade', { sourcemaps: true }),
|
||||
require('gulp-jade')(),
|
||||
DEVELOPMENT && require('gulp-embedlr')({
|
||||
port: LIVERELOAD_PORT
|
||||
}),
|
||||
dest()
|
||||
)
|
||||
})
|
||||
|
||||
gulp.task(function buildScripts () {
|
||||
return pipe(
|
||||
browserify('./index.js', {
|
||||
plugins: [
|
||||
// ['css-modulesify', {
|
||||
['modular-css/browserify', {
|
||||
css: DIST_DIR + '/modules.css'
|
||||
}]
|
||||
]
|
||||
}),
|
||||
PRODUCTION && require('gulp-uglify')(),
|
||||
dest()
|
||||
)
|
||||
})
|
||||
|
||||
gulp.task(function buildStyles () {
|
||||
return pipe(
|
||||
src('index.scss', { sourcemaps: true }),
|
||||
require('gulp-sass')(),
|
||||
require('gulp-autoprefixer')([
|
||||
'last 1 version',
|
||||
'> 1%'
|
||||
]),
|
||||
PRODUCTION && require('gulp-csso')(),
|
||||
dest()
|
||||
)
|
||||
})
|
||||
|
||||
gulp.task(function copyAssets () {
|
||||
return pipe(
|
||||
src(['assets/**/*', 'favicon.*']),
|
||||
src('fontawesome-webfont.*', {
|
||||
base: __dirname + '/node_modules/font-awesome/fonts', // eslint-disable-line no-path-concat
|
||||
passthrough: true
|
||||
}),
|
||||
src(['!*.css', 'font-mfizz.*'], {
|
||||
base: __dirname + '/node_modules/font-mfizz/dist', // eslint-disable-line no-path-concat
|
||||
passthrough: true
|
||||
}),
|
||||
dest()
|
||||
)
|
||||
})
|
||||
|
||||
gulp.task('build', gulp.parallel(
|
||||
'buildPages',
|
||||
'buildScripts',
|
||||
'buildStyles',
|
||||
'copyAssets'
|
||||
))
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
gulp.task(function clean (done) {
|
||||
require('rimraf')(DIST_DIR, done)
|
||||
})
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
gulp.task(function server (done) {
|
||||
require('connect')()
|
||||
.use(require('serve-static')(DIST_DIR))
|
||||
.listen(SERVER_PORT, SERVER_ADDR, function onListen () {
|
||||
var address = this.address()
|
||||
|
||||
var port = address.port
|
||||
address = address.address
|
||||
|
||||
// Correctly handle IPv6 addresses.
|
||||
if (address.indexOf(':') !== -1) {
|
||||
address = '[' + address + ']'
|
||||
}
|
||||
|
||||
/* jshint devel: true*/
|
||||
console.log('Listening on http://' + address + ':' + port)
|
||||
})
|
||||
.on('error', done)
|
||||
.on('close', function onClose () {
|
||||
done()
|
||||
})
|
||||
})
|
||||
@@ -1,54 +0,0 @@
|
||||
// Karma configuration
|
||||
// http://karma-runner.github.io/0.10/config/configuration-file.html
|
||||
|
||||
module.exports = function(config) {
|
||||
config.set({
|
||||
// base path, that will be used to resolve files and exclude
|
||||
basePath: '',
|
||||
|
||||
// testing framework to use (jasmine/mocha/qunit/...)
|
||||
frameworks: ['ng-scenario'],
|
||||
|
||||
// list of files / patterns to load in the browser
|
||||
files: [
|
||||
'test/e2e/**/*.coffee'
|
||||
],
|
||||
|
||||
// list of files / patterns to exclude
|
||||
exclude: [],
|
||||
|
||||
// web server port
|
||||
port: 8080,
|
||||
|
||||
// level of logging
|
||||
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
|
||||
logLevel: config.LOG_INFO,
|
||||
|
||||
|
||||
// enable / disable watching file and executing tests whenever any file changes
|
||||
autoWatch: false,
|
||||
|
||||
|
||||
// Start these browsers, currently available:
|
||||
// - Chrome
|
||||
// - ChromeCanary
|
||||
// - Firefox
|
||||
// - Opera
|
||||
// - Safari (only Mac)
|
||||
// - PhantomJS
|
||||
// - IE (only Windows)
|
||||
browsers: ['Chrome'],
|
||||
|
||||
|
||||
// Continuous Integration mode
|
||||
// if true, it capture browsers, run tests and exit
|
||||
singleRun: false
|
||||
|
||||
// Uncomment the following lines if you are using grunt's server to run the tests
|
||||
// proxies: {
|
||||
// '/': 'http://localhost:9000/'
|
||||
// },
|
||||
// URL root prevent conflicts with the site root
|
||||
// urlRoot: '_karma_'
|
||||
});
|
||||
};
|
||||
@@ -1,55 +0,0 @@
|
||||
// Karma configuration
|
||||
// http://karma-runner.github.io/0.10/config/configuration-file.html
|
||||
|
||||
module.exports = function(config) {
|
||||
config.set({
|
||||
// base path, that will be used to resolve files and exclude
|
||||
basePath: '',
|
||||
|
||||
// testing framework to use (jasmine/mocha/qunit/...)
|
||||
frameworks: ['jasmine'],
|
||||
|
||||
// list of files / patterns to load in the browser
|
||||
files: [
|
||||
'app/bower_components/angular/angular.js',
|
||||
'app/bower_components/angular-mocks/angular-mocks.js',
|
||||
'app/bower_components/angular-cookies/angular-cookies.js',
|
||||
'app/bower_components/angular-sanitize/angular-sanitize.js',
|
||||
'app/bower_components/angular-route/angular-route.js',
|
||||
'app/scripts/*.coffee',
|
||||
'app/scripts/**/*.coffee',
|
||||
'test/mock/**/*.coffee',
|
||||
'test/spec/**/*.coffee'
|
||||
],
|
||||
|
||||
// list of files / patterns to exclude
|
||||
exclude: [],
|
||||
|
||||
// web server port
|
||||
port: 8080,
|
||||
|
||||
// level of logging
|
||||
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
|
||||
logLevel: config.LOG_INFO,
|
||||
|
||||
|
||||
// enable / disable watching file and executing tests whenever any file changes
|
||||
autoWatch: false,
|
||||
|
||||
|
||||
// Start these browsers, currently available:
|
||||
// - Chrome
|
||||
// - ChromeCanary
|
||||
// - Firefox
|
||||
// - Opera
|
||||
// - Safari (only Mac)
|
||||
// - PhantomJS
|
||||
// - IE (only Windows)
|
||||
browsers: ['Chrome'],
|
||||
|
||||
|
||||
// Continuous Integration mode
|
||||
// if true, it capture browsers, run tests and exit
|
||||
singleRun: false
|
||||
});
|
||||
};
|
||||
200
package.json
@@ -1,40 +1,174 @@
|
||||
{
|
||||
"name": "XO-Web",
|
||||
"version": "3.0.0",
|
||||
"dependencies": {
|
||||
"gifsicle": "~0.1.3",
|
||||
"grunt-cli": "~0.1.11",
|
||||
"bower": "~1.2.8"
|
||||
"private": false,
|
||||
"name": "xo-web",
|
||||
"version": "5.0.6",
|
||||
"license": "AGPL-3.0",
|
||||
"description": "Web interface client for Xen-Orchestra",
|
||||
"keywords": [
|
||||
"xen",
|
||||
"orchestra",
|
||||
"xen-orchestra",
|
||||
"web"
|
||||
],
|
||||
"homepage": "https://github.com/vatesfr/xo-web",
|
||||
"bugs": "https://github.com/vatesfr/xo-web/issues",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/vatesfr/xo-web"
|
||||
},
|
||||
"author": {
|
||||
"name": "Julien Fontanet",
|
||||
"email": "julien.fontanet@vates.fr"
|
||||
},
|
||||
"preferGlobal": false,
|
||||
"main": "dist/",
|
||||
"bin": {},
|
||||
"files": [
|
||||
"dist/"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=4",
|
||||
"npm": ">=3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"grunt": "~0.4.1",
|
||||
"grunt-autoprefixer": "~0.4.0",
|
||||
"grunt-concurrent": "~0.4.1",
|
||||
"grunt-contrib-clean": "~0.5.0",
|
||||
"grunt-contrib-coffee": "~0.7.0",
|
||||
"grunt-contrib-compass": "~0.6.0",
|
||||
"grunt-contrib-concat": "~0.3.0",
|
||||
"grunt-contrib-connect": "~0.5.0",
|
||||
"grunt-contrib-copy": "~0.4.1",
|
||||
"grunt-contrib-cssmin": "~0.7.0",
|
||||
"grunt-contrib-htmlmin": "~0.1.3",
|
||||
"grunt-contrib-imagemin": "~0.3.0",
|
||||
"grunt-contrib-jshint": "~0.7.1",
|
||||
"grunt-contrib-uglify": "~0.2.0",
|
||||
"grunt-contrib-watch": "~0.5.2",
|
||||
"grunt-google-cdn": "~0.2.0",
|
||||
"grunt-ngmin": "~0.0.2",
|
||||
"grunt-rev": "~0.1.0",
|
||||
"grunt-svgmin": "~0.2.0",
|
||||
"grunt-usemin": "~2.0.0",
|
||||
"jshint-stylish": "~0.1.3",
|
||||
"load-grunt-tasks": "~0.2.0",
|
||||
"time-grunt": "~0.2.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.8.0"
|
||||
"ansi_up": "^1.3.0",
|
||||
"asap": "^2.0.4",
|
||||
"ava": "^0.15.0",
|
||||
"babel-eslint": "^6.0.0",
|
||||
"babel-plugin-transform-decorators-legacy": "^1.3.4",
|
||||
"babel-plugin-transform-react-constant-elements": "^6.5.0",
|
||||
"babel-plugin-transform-react-inline-elements": "^6.6.5",
|
||||
"babel-plugin-transform-runtime": "^6.6.0",
|
||||
"babel-preset-es2015": "^6.6.0",
|
||||
"babel-preset-react": "^6.5.0",
|
||||
"babel-preset-stage-0": "^6.5.0",
|
||||
"babel-runtime": "^6.6.1",
|
||||
"babelify": "^7.2.0",
|
||||
"benchmark": "^2.1.0",
|
||||
"bootstrap": "github:twbs/bootstrap#v4-dev",
|
||||
"browserify": "^13.0.0",
|
||||
"bundle-collapser": "^1.2.1",
|
||||
"chartist-plugin-legend": "^0.3.1",
|
||||
"chartist-plugin-tooltip": "0.0.11",
|
||||
"classnames": "^2.2.3",
|
||||
"connect": "^3.4.1",
|
||||
"cookies-js": "^1.2.2",
|
||||
"d3": "^4.0.0-alpha.50",
|
||||
"dependency-check": "^2.5.1",
|
||||
"font-awesome": "^4.5.0",
|
||||
"font-mfizz": "github:fizzed/font-mfizz",
|
||||
"ghooks": "^1.1.1",
|
||||
"globby": "^5.0.0",
|
||||
"gulp": "github:gulpjs/gulp#4.0",
|
||||
"gulp-autoprefixer": "^3.1.0",
|
||||
"gulp-csso": "^2.0.0",
|
||||
"gulp-embedlr": "^0.5.2",
|
||||
"gulp-jade": "^1.1.0",
|
||||
"gulp-plumber": "^1.1.0",
|
||||
"gulp-refresh": "^1.1.0",
|
||||
"gulp-sass": "^2.2.0",
|
||||
"gulp-uglify": "^1.5.3",
|
||||
"gulp-watch": "^4.3.5",
|
||||
"human-format": "^0.6.0",
|
||||
"jsonrpc-websocket-client": "0.0.1-5",
|
||||
"later": "^1.2.0",
|
||||
"lodash": "^4.6.1",
|
||||
"loose-envify": "^1.1.0",
|
||||
"marked": "^0.3.5",
|
||||
"modular-css": "^0.22.1",
|
||||
"moment": "^2.13.0",
|
||||
"notifyjs": "^2.0.1",
|
||||
"novnc-node": "^0.5.3",
|
||||
"promise-toolbox": "^0.4.0",
|
||||
"random-password": "^0.1.2",
|
||||
"react": "^15.0.0",
|
||||
"react-addons-shallow-compare": "^15.1.0",
|
||||
"react-bootstrap-4": "^0.29.1",
|
||||
"react-chartist": "^0.10.1",
|
||||
"react-copy-to-clipboard": "^4.0.2",
|
||||
"react-debounce-input": "^2.4.0",
|
||||
"react-dnd": "^2.1.4",
|
||||
"react-dnd-html5-backend": "^2.1.2",
|
||||
"react-dom": "^15.0.0",
|
||||
"react-dropzone": "^3.5.0",
|
||||
"react-intl": "^2.0.1",
|
||||
"react-key-handler": "^0.2.0",
|
||||
"react-notify": "^2.0.1",
|
||||
"react-redux": "^4.4.0",
|
||||
"react-router": "^3.0.0-alpha.1",
|
||||
"react-select": "^1.0.0-beta13",
|
||||
"react-sparklines": "^1.5.0",
|
||||
"react-virtualized": "^7.4.0",
|
||||
"readable-stream": "^2.0.6",
|
||||
"redux": "^3.3.1",
|
||||
"redux-devtools": "^3.1.1",
|
||||
"redux-devtools-dock-monitor": "^1.1.0",
|
||||
"redux-devtools-log-monitor": "^1.0.5",
|
||||
"redux-thunk": "^2.0.1",
|
||||
"reselect": "^2.2.1",
|
||||
"serve-static": "^1.10.2",
|
||||
"standard": "^7.0.0",
|
||||
"superagent": "^2.0.0",
|
||||
"vinyl": "^1.1.1",
|
||||
"watchify": "^3.7.0",
|
||||
"xo-acl-resolver": "^0.2.1",
|
||||
"xo-lib": "^0.8.0-1",
|
||||
"xo-remote-parser": "^0.3"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "grunt test"
|
||||
"benchmarks": "./tools/run-benchmarks.js 'src/**/*.bench.js'",
|
||||
"build": "npm run build-indexes && NODE_ENV=production gulp build",
|
||||
"build-indexes": "./tools/generate-index src/common/intl/locales",
|
||||
"dev": "npm run build-indexes && gulp build server",
|
||||
"dev-test": "ava --watch",
|
||||
"lint": "standard",
|
||||
"posttest": "npm run lint",
|
||||
"prepublish": "npm run build",
|
||||
"test": "ava"
|
||||
},
|
||||
"browserify": {
|
||||
"transform": [
|
||||
"babelify",
|
||||
"loose-envify"
|
||||
]
|
||||
},
|
||||
"ava": {
|
||||
"babel": "inherit",
|
||||
"files": [
|
||||
"src/**/*.spec.js"
|
||||
],
|
||||
"require": [
|
||||
"babel-register"
|
||||
]
|
||||
},
|
||||
"babel": {
|
||||
"env": {
|
||||
"production": {
|
||||
"plugins": [
|
||||
"transform-react-constant-elements",
|
||||
"transform-react-inline-elements"
|
||||
]
|
||||
}
|
||||
},
|
||||
"plugins": [
|
||||
"transform-decorators-legacy",
|
||||
"transform-runtime"
|
||||
],
|
||||
"presets": [
|
||||
"es2015",
|
||||
"react",
|
||||
"stage-0"
|
||||
]
|
||||
},
|
||||
"config": {
|
||||
"ghooks": {
|
||||
"commit-msg": "npm test"
|
||||
}
|
||||
},
|
||||
"standard": {
|
||||
"ignore": [
|
||||
"dist"
|
||||
],
|
||||
"parser": "babel-eslint"
|
||||
}
|
||||
}
|
||||
|
||||
1
src/assets/loading.svg
Normal file
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><svg width='62px' height='62px' xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" class="uil-ring-alt"><rect x="0" y="0" width="100" height="100" fill="none" class="bk"></rect><circle cx="50" cy="50" r="40" stroke="#cfcfcf" fill="none" stroke-width="10" stroke-linecap="round"></circle><circle cx="50" cy="50" r="40" stroke="#366e98" fill="none" stroke-width="6" stroke-linecap="round"><animate attributeName="stroke-dashoffset" dur="1s" repeatCount="indefinite" from="0" to="502"></animate><animate attributeName="stroke-dasharray" dur="1s" repeatCount="indefinite" values="150.6 100.4;1 250;150.6 100.4"></animate></circle></svg>
|
||||
|
After Width: | Height: | Size: 707 B |
BIN
src/assets/logo.png
Normal file
|
After Width: | Height: | Size: 5.3 KiB |
123
src/chartist.scss
Normal file
@@ -0,0 +1,123 @@
|
||||
|
||||
// CHARTIST ===================================================================
|
||||
|
||||
$ct-series-colors: (
|
||||
$brand-success,
|
||||
$brand-primary,
|
||||
#60bd68,
|
||||
#f17cb0,
|
||||
#b2912f,
|
||||
#b276b2,
|
||||
#decf3f,
|
||||
#f15854,
|
||||
#4d4d4d,
|
||||
#dda458,
|
||||
#eacf7d,
|
||||
#86797d,
|
||||
#b2c326,
|
||||
#6188e2,
|
||||
#a748ca
|
||||
) !default;
|
||||
|
||||
@import "../node_modules/chartist/dist/scss/settings/_chartist-settings";
|
||||
@import "../node_modules/chartist/dist/scss/chartist";
|
||||
|
||||
// Line in charts with only 2px in width
|
||||
.ct-line {
|
||||
stroke-width: 2px;
|
||||
}
|
||||
|
||||
.ct-bar {
|
||||
stroke-width: 10%;
|
||||
}
|
||||
|
||||
.ct-point {
|
||||
stroke-width: 30px;
|
||||
stroke-opacity: 0!important;
|
||||
}
|
||||
|
||||
.ct-point:hover {
|
||||
stroke-opacity: 0.2!important;
|
||||
stroke-width: 20px;
|
||||
}
|
||||
|
||||
.ct-tooltip {
|
||||
position: absolute;
|
||||
display: inline-block;
|
||||
min-width: 5em;
|
||||
padding: 8px 10px;
|
||||
background: #383838;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
pointer-events: none;
|
||||
z-index: 10;
|
||||
font-weight: 700;
|
||||
|
||||
// Arrow!
|
||||
&:before {
|
||||
position: absolute;
|
||||
bottom: -14px;
|
||||
top: 100%;
|
||||
left: 50%;
|
||||
border: solid transparent;
|
||||
content: '';
|
||||
height: 0;
|
||||
width: 0;
|
||||
pointer-events: none;
|
||||
border-color: rgba(251, 249, 228, 0);
|
||||
border-top-color: #383838;
|
||||
border-width: 7px;
|
||||
margin-left: -8px;
|
||||
}
|
||||
|
||||
&.hide {
|
||||
display: block;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
// CHARTIST LEGEND =============================================================
|
||||
|
||||
.ct-legend {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
margin-bottom: -1em;
|
||||
|
||||
li {
|
||||
position: relative;
|
||||
padding-left: 1.4em;
|
||||
list-style-type: none;
|
||||
display: inline;
|
||||
margin-right: 0.5em;
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
li:before {
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
content: '';
|
||||
border: 3px solid transparent;
|
||||
border-radius: 2px;
|
||||
margin-top: 0.5em;
|
||||
}
|
||||
|
||||
li.inactive:before {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
&.ct-legend-inside {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
@for $i from 0 to length($ct-series-colors) {
|
||||
.ct-series-#{$i}:before {
|
||||
background-color: nth($ct-series-colors, $i + 1);
|
||||
border-color: nth($ct-series-colors, $i + 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
36
src/common/action-bar.js
Normal file
@@ -0,0 +1,36 @@
|
||||
// import _ from 'intl' TODO: fix tooltip
|
||||
import ActionButton from 'action-button'
|
||||
import map from 'lodash/map'
|
||||
import React from 'react'
|
||||
// import Tooltip from 'tooltip' TODO: fix tooltip
|
||||
import {
|
||||
ButtonGroup
|
||||
} from 'react-bootstrap-4/lib'
|
||||
|
||||
const ActionBar = ({ actions, param }) => (
|
||||
<ButtonGroup>
|
||||
{map(actions, ({ handler, handlerParam = param, label, icon }, index) => (
|
||||
/* <Tooltip key={index} content={_(label)}> TODO: fix tooltip */
|
||||
<ActionButton
|
||||
key={index}
|
||||
btnStyle='secondary'
|
||||
handler={handler}
|
||||
handlerParam={handlerParam}
|
||||
icon={icon}
|
||||
size='large'
|
||||
/>
|
||||
/* </Tooltip> */
|
||||
))}
|
||||
</ButtonGroup>
|
||||
)
|
||||
ActionBar.propTypes = {
|
||||
actions: React.PropTypes.arrayOf(
|
||||
React.PropTypes.shape({
|
||||
label: React.PropTypes.string.isRequired,
|
||||
icon: React.PropTypes.string.isRequired,
|
||||
handler: React.PropTypes.func
|
||||
})
|
||||
).isRequired,
|
||||
display: React.PropTypes.oneOf(['icon', 'text', 'both'])
|
||||
}
|
||||
export { ActionBar as default }
|
||||
119
src/common/action-button.js
Normal file
@@ -0,0 +1,119 @@
|
||||
import Icon from 'icon'
|
||||
import isFunction from 'lodash/isFunction'
|
||||
import React from 'react'
|
||||
import { Button } from 'react-bootstrap-4/lib'
|
||||
|
||||
import Component from './base-component'
|
||||
import logError from './log-error'
|
||||
import propTypes from './prop-types'
|
||||
|
||||
@propTypes({
|
||||
btnStyle: propTypes.string,
|
||||
disabled: propTypes.bool,
|
||||
form: propTypes.string,
|
||||
handler: propTypes.func.isRequired,
|
||||
handlerParam: propTypes.any,
|
||||
icon: propTypes.string.isRequired,
|
||||
redirectOnSuccess: propTypes.oneOfType([
|
||||
propTypes.func,
|
||||
propTypes.string
|
||||
]),
|
||||
size: propTypes.oneOf([
|
||||
'large',
|
||||
'small'
|
||||
])
|
||||
})
|
||||
export default class ActionButton extends Component {
|
||||
static contextTypes = {
|
||||
router: React.PropTypes.object
|
||||
}
|
||||
|
||||
async _execute () {
|
||||
if (this.state.working) {
|
||||
return
|
||||
}
|
||||
|
||||
const {
|
||||
handler,
|
||||
handlerParam
|
||||
} = this.props
|
||||
|
||||
try {
|
||||
this.setState({
|
||||
error: null,
|
||||
working: true
|
||||
})
|
||||
|
||||
const result = await handler(handlerParam)
|
||||
|
||||
let { redirectOnSuccess } = this.props
|
||||
if (redirectOnSuccess) {
|
||||
if (isFunction(redirectOnSuccess)) {
|
||||
redirectOnSuccess = redirectOnSuccess(result)
|
||||
}
|
||||
return this.context.router.push(redirectOnSuccess)
|
||||
}
|
||||
|
||||
this.setState({
|
||||
working: false
|
||||
})
|
||||
} catch (error) {
|
||||
this.setState({
|
||||
error,
|
||||
working: false
|
||||
})
|
||||
logError(error)
|
||||
}
|
||||
}
|
||||
_execute = ::this._execute
|
||||
|
||||
_eventListener = event => {
|
||||
event.preventDefault()
|
||||
this._execute()
|
||||
}
|
||||
|
||||
componentDidMount () {
|
||||
const { form } = this.props
|
||||
|
||||
if (form) {
|
||||
document.getElementById(form).addEventListener('submit', this._eventListener)
|
||||
}
|
||||
}
|
||||
|
||||
componentWillUnmount () {
|
||||
const { form } = this.props
|
||||
|
||||
if (form) {
|
||||
document.getElementById(form).removeEventListener('submit', this._eventListener)
|
||||
}
|
||||
}
|
||||
|
||||
render () {
|
||||
const {
|
||||
props: {
|
||||
btnStyle,
|
||||
children,
|
||||
className,
|
||||
disabled,
|
||||
form,
|
||||
icon,
|
||||
size: bsSize,
|
||||
style
|
||||
},
|
||||
state: { error, working }
|
||||
} = this
|
||||
|
||||
return <Button
|
||||
bsStyle={error ? 'warning' : btnStyle}
|
||||
form={form}
|
||||
onClick={!form && this._execute}
|
||||
disabled={working || disabled}
|
||||
type={form ? 'submit' : 'button'}
|
||||
{...{ bsSize, className, style }}
|
||||
>
|
||||
<Icon icon={working ? 'loading' : icon} fixedWidth />
|
||||
{children && ' '}
|
||||
{children}
|
||||
</Button>
|
||||
}
|
||||
}
|
||||
7
src/common/action-row-button/index.css
Normal file
@@ -0,0 +1,7 @@
|
||||
.button {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
tr:hover .button, tr:focus .button {
|
||||
opacity: 1;
|
||||
}
|
||||
14
src/common/action-row-button/index.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import React from 'react'
|
||||
|
||||
import ActionButton from '../action-button'
|
||||
|
||||
import styles from './index.css'
|
||||
|
||||
const ActionRowButton = props => (
|
||||
<ActionButton
|
||||
{...props}
|
||||
className={styles.button}
|
||||
size='small'
|
||||
/>
|
||||
)
|
||||
export { ActionRowButton as default }
|
||||
15
src/common/action-toggle.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import React from 'react'
|
||||
|
||||
import ActionButton from './action-button'
|
||||
import propTypes from './prop-types'
|
||||
|
||||
const ActionToggle = ({ className, value, ...props }) =>
|
||||
<ActionButton
|
||||
{...props}
|
||||
btnStyle={value ? 'success' : null}
|
||||
icon={value ? 'toggle-on' : 'toggle-off'}
|
||||
/>
|
||||
|
||||
export default propTypes({
|
||||
value: propTypes.bool
|
||||
})(ActionToggle)
|
||||
71
src/common/base-component.js
Normal file
@@ -0,0 +1,71 @@
|
||||
import forEach from 'lodash/forEach'
|
||||
import { Component } from 'react'
|
||||
|
||||
import getEventValue from './get-event-value'
|
||||
import invoke from './invoke'
|
||||
import shallowEqual from './shallow-equal'
|
||||
|
||||
export default class BaseComponent extends Component {
|
||||
constructor (props, context) {
|
||||
super(props, context)
|
||||
|
||||
// It really should have been done in React.Component!
|
||||
this.state = {}
|
||||
|
||||
this._linkedState = null
|
||||
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
this.render = invoke(this.render, render => () => {
|
||||
console.log('render', this.constructor.name)
|
||||
|
||||
return render.call(this)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// See https://preactjs.com/guide/linked-state
|
||||
linkState (name) {
|
||||
let linkedState = this._linkedState
|
||||
let cb
|
||||
if (!linkedState) {
|
||||
linkedState = this._linkedState = {}
|
||||
} else if ((cb = linkedState[name])) {
|
||||
return cb
|
||||
}
|
||||
|
||||
return (linkedState[name] = event => {
|
||||
this.setState({
|
||||
[name]: getEventValue(event)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
shouldComponentUpdate (newProps, newState) {
|
||||
return !(
|
||||
shallowEqual(this.props, newProps) &&
|
||||
shallowEqual(this.state, newState)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
const diff = (name, old, cur) => {
|
||||
const keys = []
|
||||
|
||||
forEach(old, (value, key) => {
|
||||
if (cur[key] !== value) {
|
||||
keys.push(key)
|
||||
}
|
||||
})
|
||||
|
||||
if (keys.length) {
|
||||
console.log(name, keys.sort().join())
|
||||
}
|
||||
}
|
||||
|
||||
BaseComponent.prototype.componentDidUpdate = function (oldProps, oldState) {
|
||||
const prefix = `${this.constructor.name} updated because of its`
|
||||
diff(`${prefix} props:`, oldProps, this.props)
|
||||
diff(`${prefix} state:`, oldState, this.state)
|
||||
}
|
||||
}
|
||||
35
src/common/browser-notification.js
Normal file
@@ -0,0 +1,35 @@
|
||||
import { noop } from 'utils'
|
||||
import Notify from 'notifyjs'
|
||||
|
||||
let notify
|
||||
export { notify as default }
|
||||
|
||||
const sendNotification = (title, body) => {
|
||||
new Notify(title, {
|
||||
body,
|
||||
timeout: 5,
|
||||
icon: 'assets/logo.png'
|
||||
}).show()
|
||||
}
|
||||
|
||||
const requestPermission = (...args) => {
|
||||
if (Notify.isSupported()) {
|
||||
Notify.requestPermission(
|
||||
() => {
|
||||
console.log('notifications allowed')
|
||||
|
||||
return (notify = sendNotification)(...args)
|
||||
},
|
||||
() => {
|
||||
console.log('notifications denied')
|
||||
|
||||
notify = noop
|
||||
}
|
||||
)
|
||||
} else {
|
||||
notify = noop
|
||||
console.warn('notifications are not supported')
|
||||
}
|
||||
}
|
||||
|
||||
notify = Notify.needsPermission ? requestPermission : sendNotification
|
||||
51
src/common/card.js
Normal file
@@ -0,0 +1,51 @@
|
||||
import React from 'react'
|
||||
|
||||
import propTypes from './prop-types'
|
||||
|
||||
const CARD_STYLE = {
|
||||
minHeight: '100%'
|
||||
}
|
||||
|
||||
const CARD_STYLE_WITH_SHADOW = {
|
||||
...CARD_STYLE,
|
||||
boxShadow: '0 10px 6px -6px #777' // https://css-tricks.com/almanac/properties/b/box-shadow/
|
||||
}
|
||||
|
||||
const CARD_HEADER_STYLE = {
|
||||
minHeight: '100%',
|
||||
textAlign: 'center'
|
||||
}
|
||||
|
||||
export const Card = propTypes({
|
||||
disableMaxHeight: propTypes.bool,
|
||||
shadow: propTypes.bool
|
||||
})(({
|
||||
children,
|
||||
shadow
|
||||
}) => (
|
||||
<div className='card' style={shadow ? CARD_STYLE_WITH_SHADOW : CARD_STYLE}>
|
||||
{children}
|
||||
</div>
|
||||
))
|
||||
|
||||
export const CardHeader = propTypes({
|
||||
className: propTypes.string
|
||||
})(({
|
||||
children,
|
||||
className
|
||||
}) => (
|
||||
<h4 className={`card-header ${className || ''}`} style={CARD_HEADER_STYLE}>
|
||||
{children}
|
||||
</h4>
|
||||
))
|
||||
|
||||
export const CardBlock = propTypes({
|
||||
className: propTypes.string
|
||||
})(({
|
||||
children,
|
||||
className
|
||||
}) => (
|
||||
<div className={`card-block ${className || ''}`}>
|
||||
{children}
|
||||
</div>
|
||||
))
|
||||
9
src/common/center-panel/index.css
Normal file
@@ -0,0 +1,9 @@
|
||||
.container {
|
||||
display: flex;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
.content {
|
||||
margin: auto;
|
||||
text-align: center;
|
||||
}
|
||||
12
src/common/center-panel/index.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import React from 'react'
|
||||
|
||||
import styles from './index.css'
|
||||
|
||||
const CenterPanel = ({ children }) =>
|
||||
<div className={styles.container}>
|
||||
<div className={styles.content}>
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
export { CenterPanel as default }
|
||||
32
src/common/collapse.js
Normal file
@@ -0,0 +1,32 @@
|
||||
import React from 'react'
|
||||
|
||||
import Component from './base-component'
|
||||
import Icon from './icon'
|
||||
import propTypes from './prop-types'
|
||||
|
||||
@propTypes({
|
||||
children: propTypes.any.isRequired,
|
||||
className: propTypes.string,
|
||||
buttonText: propTypes.any.isRequired
|
||||
})
|
||||
export default class Collapse extends Component {
|
||||
_onClick = () => {
|
||||
this.setState({
|
||||
isOpened: !this.state.isOpened
|
||||
})
|
||||
}
|
||||
|
||||
render () {
|
||||
const { props } = this
|
||||
const { isOpened } = this.state
|
||||
|
||||
return (
|
||||
<div className={props.className}>
|
||||
<button className='btn btn-lg btn-primary btn-block' onClick={this._onClick}>
|
||||
{props.buttonText} <Icon icon={`chevron-${isOpened ? 'up' : 'down'}`} />
|
||||
</button>
|
||||
{isOpened && props.children}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
18
src/common/complex-matcher/index.bench.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import {
|
||||
parse,
|
||||
toString
|
||||
} from './'
|
||||
import {
|
||||
ast,
|
||||
pattern
|
||||
} from './index.fixtures'
|
||||
|
||||
export default ({ benchmark }) => {
|
||||
benchmark('parse', () => {
|
||||
parse(pattern)
|
||||
})
|
||||
|
||||
benchmark('toString', () => {
|
||||
ast::toString()
|
||||
})
|
||||
}
|
||||
18
src/common/complex-matcher/index.fixtures.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import {
|
||||
createAnd,
|
||||
createOr,
|
||||
createNot,
|
||||
createProperty,
|
||||
createString
|
||||
} from './'
|
||||
|
||||
export const pattern = 'foo !"\\\\ \\"" name:|(wonderwoman batman)'
|
||||
|
||||
export const ast = createAnd([
|
||||
createString('foo'),
|
||||
createNot(createString('\\ "')),
|
||||
createProperty('name', createOr([
|
||||
createString('wonderwoman'),
|
||||
createString('batman')
|
||||
]))
|
||||
])
|
||||
405
src/common/complex-matcher/index.js
Normal file
@@ -0,0 +1,405 @@
|
||||
import every from 'lodash/every'
|
||||
import filter from 'lodash/filter'
|
||||
import forEach from 'lodash/forEach'
|
||||
import isArray from 'lodash/isArray'
|
||||
import isPlainObject from 'lodash/isPlainObject'
|
||||
import isString from 'lodash/isString'
|
||||
import map from 'lodash/map'
|
||||
import some from 'lodash/some'
|
||||
|
||||
import filterReduce from '../filter-reduce'
|
||||
import invoke from '../invoke'
|
||||
|
||||
// ===================================================================
|
||||
|
||||
const RAW_STRING_CHARS = invoke(() => {
|
||||
const chars = { __proto__: null }
|
||||
const add = (a, b = a) => {
|
||||
let i = a.charCodeAt(0)
|
||||
const j = b.charCodeAt(0)
|
||||
while (i <= j) {
|
||||
chars[String.fromCharCode(i++)] = true
|
||||
}
|
||||
}
|
||||
add('$')
|
||||
add('-')
|
||||
add('.')
|
||||
add('0', '9')
|
||||
add('_')
|
||||
add('A', 'Z')
|
||||
add('a', 'z')
|
||||
return chars
|
||||
})
|
||||
const isRawString = string => {
|
||||
const { length } = string
|
||||
for (let i = 0; i < length; ++i) {
|
||||
if (!RAW_STRING_CHARS[string[i]]) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
export const createAnd = children => children.length === 1
|
||||
? children[0]
|
||||
: { type: 'and', children }
|
||||
|
||||
export const createOr = children => children.length === 1
|
||||
? children[0]
|
||||
: { type: 'or', children }
|
||||
|
||||
export const createNot = child => ({ type: 'not', child })
|
||||
|
||||
export const createProperty = (name, child) => ({ type: 'property', name, child })
|
||||
|
||||
export const createString = value => ({ type: 'string', value })
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// *and = terms
|
||||
// terms = term+
|
||||
// term = ws (groupedAnd | or | not | property | string) ws
|
||||
// ws = ' '*
|
||||
// groupedAnd = "(" and ")"
|
||||
// *or = "|" ws "(" terms ")"
|
||||
// *not = "!" term
|
||||
// *property = string ws ":" term
|
||||
// *string = quotedString | rawString
|
||||
// quotedString = "\"" ( /[^"\]/ | "\\\\" | "\\\"" )+
|
||||
// rawString = /[a-z0-9-_.]+/i
|
||||
export const parse = invoke(() => {
|
||||
let i
|
||||
let n
|
||||
let input
|
||||
|
||||
// -----
|
||||
|
||||
const backtrace = parser => () => {
|
||||
const pos = i
|
||||
const node = parser()
|
||||
if (node != null) {
|
||||
return node
|
||||
}
|
||||
i = pos
|
||||
}
|
||||
|
||||
// -----
|
||||
|
||||
const parseAnd = () => parseTerms(createAnd)
|
||||
const parseTerms = fn => {
|
||||
let term = parseTerm()
|
||||
if (!term) {
|
||||
return
|
||||
}
|
||||
|
||||
const terms = [ term ]
|
||||
while ((term = parseTerm())) {
|
||||
terms.push(term)
|
||||
}
|
||||
return fn(terms)
|
||||
}
|
||||
const parseTerm = () => {
|
||||
parseWs()
|
||||
|
||||
const child = (
|
||||
parseGroupedAnd() ||
|
||||
parseOr() ||
|
||||
parseNot() ||
|
||||
parseProperty() ||
|
||||
parseString()
|
||||
)
|
||||
if (child) {
|
||||
parseWs()
|
||||
return child
|
||||
}
|
||||
}
|
||||
const parseWs = () => {
|
||||
while (input[i] === ' ') {
|
||||
++i
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
const parseGroupedAnd = backtrace(() => {
|
||||
let and
|
||||
if (
|
||||
input[i++] === '(' &&
|
||||
(and = parseAnd()) &&
|
||||
input[i++] === ')'
|
||||
) {
|
||||
return and
|
||||
}
|
||||
})
|
||||
const parseOr = backtrace(() => {
|
||||
let or
|
||||
if (
|
||||
input[i++] === '|' &&
|
||||
parseWs() &&
|
||||
input[i++] === '(' &&
|
||||
(or = parseTerms(createOr)) &&
|
||||
input[i++] === ')'
|
||||
) {
|
||||
return or
|
||||
}
|
||||
})
|
||||
const parseNot = backtrace(() => {
|
||||
let child
|
||||
if (
|
||||
input[i++] === '!' &&
|
||||
(child = parseTerm())
|
||||
) {
|
||||
return createNot(child)
|
||||
}
|
||||
})
|
||||
const parseProperty = backtrace(() => {
|
||||
let name, child
|
||||
if (
|
||||
(name = parseString()) &&
|
||||
parseWs() &&
|
||||
(input[i++] === ':') &&
|
||||
(child = parseTerm())
|
||||
) {
|
||||
return createProperty(name.value, child)
|
||||
}
|
||||
})
|
||||
const parseString = () => {
|
||||
let value
|
||||
if (
|
||||
(value = parseQuotedString()) != null ||
|
||||
(value = parseRawString()) != null
|
||||
) {
|
||||
return createString(value)
|
||||
}
|
||||
}
|
||||
const parseQuotedString = backtrace(() => {
|
||||
if (input[i++] !== '"') {
|
||||
return
|
||||
}
|
||||
|
||||
const value = []
|
||||
let char
|
||||
while (i < n && (char = input[i++]) !== '"') {
|
||||
if (char === '\\') {
|
||||
char = input[i++]
|
||||
}
|
||||
value.push(char)
|
||||
}
|
||||
|
||||
return value.join('')
|
||||
})
|
||||
const parseRawString = () => {
|
||||
let value = ''
|
||||
let c
|
||||
while (
|
||||
(c = input[i]) &&
|
||||
RAW_STRING_CHARS[c]
|
||||
) {
|
||||
++i
|
||||
value += c
|
||||
}
|
||||
if (value.length) {
|
||||
return value
|
||||
}
|
||||
}
|
||||
|
||||
return input_ => {
|
||||
if (!input_) {
|
||||
return
|
||||
}
|
||||
|
||||
i = 0
|
||||
input = input_.split('')
|
||||
n = input.length
|
||||
|
||||
try {
|
||||
return parseAnd()
|
||||
} finally {
|
||||
input = null
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
const _getPropertyClauseStrings = ({ child }) => {
|
||||
const { type } = child
|
||||
|
||||
if (type === 'or') {
|
||||
const strings = []
|
||||
forEach(child.children, child => {
|
||||
if (child.type === 'string') {
|
||||
strings.push(child.value)
|
||||
}
|
||||
})
|
||||
return strings
|
||||
}
|
||||
|
||||
if (type === 'string') {
|
||||
return [ child.value ]
|
||||
}
|
||||
|
||||
return []
|
||||
}
|
||||
|
||||
// Find possible values for property clauses in a and clause.
|
||||
export const getPropertyClausesStrings = function () {
|
||||
if (!this) {
|
||||
return {}
|
||||
}
|
||||
|
||||
const { type } = this
|
||||
|
||||
if (type === 'property') {
|
||||
return {
|
||||
[this.name]: _getPropertyClauseStrings(this)
|
||||
}
|
||||
}
|
||||
|
||||
if (type === 'and') {
|
||||
const strings = {}
|
||||
forEach(this.children, node => {
|
||||
if (node.type === 'property') {
|
||||
const { name } = node
|
||||
const values = strings[name]
|
||||
if (values) {
|
||||
values.push.apply(values, _getPropertyClauseStrings(node))
|
||||
} else {
|
||||
strings[name] = _getPropertyClauseStrings(node)
|
||||
}
|
||||
}
|
||||
})
|
||||
return strings
|
||||
}
|
||||
|
||||
return {}
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
export const removePropertyClause = function (name) {
|
||||
let type
|
||||
if (
|
||||
!this ||
|
||||
(type = this.type) === 'property' && this.name === name
|
||||
) {
|
||||
return
|
||||
}
|
||||
|
||||
if (type === 'and') {
|
||||
return createAnd(filter(this.children, node =>
|
||||
node.type !== 'property' || node.name !== name
|
||||
))
|
||||
}
|
||||
|
||||
return this
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
const _addAndClause = (node, child, predicate, reducer) =>
|
||||
createAnd(filterReduce(
|
||||
node.type === 'and'
|
||||
? node.children
|
||||
: [ node ],
|
||||
predicate,
|
||||
reducer,
|
||||
child
|
||||
))
|
||||
|
||||
export const setPropertyClause = function (name, child) {
|
||||
const property = createProperty(
|
||||
name,
|
||||
isString(child) ? createString(child) : child
|
||||
)
|
||||
|
||||
if (!this) {
|
||||
return property
|
||||
}
|
||||
|
||||
return _addAndClause(
|
||||
this,
|
||||
property,
|
||||
node => node.type === 'property' && node.name === name,
|
||||
)
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
export const execute = invoke(() => {
|
||||
const visitors = {
|
||||
and: ({ children }, value) => (
|
||||
every(children, child => child::execute(value))
|
||||
),
|
||||
not: ({ child }, value) => (
|
||||
!child::execute(value)
|
||||
),
|
||||
or: ({ children }, value) => (
|
||||
some(children, child => child::execute(value))
|
||||
),
|
||||
property: ({ name, child }, value) => (
|
||||
value != null && child::execute(value[name])
|
||||
),
|
||||
string: invoke(() => {
|
||||
const match = (pattern, value) => {
|
||||
if (isString(value)) {
|
||||
return value.toLowerCase().indexOf(pattern) !== -1
|
||||
}
|
||||
|
||||
if (isArray(value) || isPlainObject(value)) {
|
||||
return some(value, value => match(pattern, value))
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
return ({ value: pattern }, value) => (
|
||||
match(pattern.toLowerCase(), value)
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
return function (value) {
|
||||
return visitors[this.type](this, value)
|
||||
}
|
||||
})
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
export const toString = invoke(() => {
|
||||
const toStringTerms = terms => map(terms, toString).join(' ')
|
||||
const toStringGroup = terms => `(${toStringTerms(terms)})`
|
||||
|
||||
const visitors = {
|
||||
and: ({ children }) => toStringGroup(children),
|
||||
not: ({ child }) => `!${toString(child)}`,
|
||||
or: ({ children }) => `|${toStringGroup(children)}`,
|
||||
property: ({ name, child }) => `${toString(createString(name))}:${toString(child)}`,
|
||||
string: ({ value }) => isRawString(value)
|
||||
? value
|
||||
: `"${value.replace(/\\|"/g, match => `\\${match}`)}"`
|
||||
}
|
||||
|
||||
const toString = node => visitors[node.type](node)
|
||||
|
||||
// Special case for a root “and”: do not add braces.
|
||||
return function () {
|
||||
return !this
|
||||
? ''
|
||||
: this.type === 'and'
|
||||
? toStringTerms(this.children)
|
||||
: toString(this)
|
||||
}
|
||||
})
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
export const create = pattern => {
|
||||
pattern = parse(pattern)
|
||||
if (!pattern) {
|
||||
return
|
||||
}
|
||||
|
||||
return value => pattern::execute(value)
|
||||
}
|
||||
53
src/common/complex-matcher/index.spec.js
Normal file
@@ -0,0 +1,53 @@
|
||||
import test from 'ava'
|
||||
|
||||
import {
|
||||
getPropertyClausesStrings,
|
||||
parse,
|
||||
setPropertyClause,
|
||||
toString
|
||||
} from './'
|
||||
import {
|
||||
ast,
|
||||
pattern
|
||||
} from './index.fixtures'
|
||||
|
||||
test('getPropertyClausesStrings', t => {
|
||||
let tmp = parse('foo bar:baz baz:|(foo bar)')::getPropertyClausesStrings()
|
||||
t.deepEqual(
|
||||
tmp,
|
||||
{
|
||||
bar: [ 'baz' ],
|
||||
baz: [ 'foo', 'bar' ]
|
||||
}
|
||||
)
|
||||
})
|
||||
|
||||
test('parse', t => {
|
||||
t.deepEqual(parse(pattern), ast)
|
||||
})
|
||||
|
||||
test('setPropertyClause', t => {
|
||||
t.is(
|
||||
null::setPropertyClause('foo', 'bar')::toString(),
|
||||
'foo:bar'
|
||||
)
|
||||
|
||||
t.is(
|
||||
parse('baz')::setPropertyClause('foo', 'bar')::toString(),
|
||||
'baz foo:bar'
|
||||
)
|
||||
|
||||
t.is(
|
||||
parse('plip foo:baz plop')::setPropertyClause('foo', 'bar')::toString(),
|
||||
'plip plop foo:bar'
|
||||
)
|
||||
|
||||
t.is(
|
||||
parse('foo:|(baz plop)')::setPropertyClause('foo', 'bar')::toString(),
|
||||
'foo:bar'
|
||||
)
|
||||
})
|
||||
|
||||
test('toString', t => {
|
||||
t.is(pattern, ast::toString())
|
||||
})
|
||||
9
src/common/copiable/index.css
Normal file
@@ -0,0 +1,9 @@
|
||||
.container .button {
|
||||
position: absolute;
|
||||
margin-left: 1ex;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.container:hover .button {
|
||||
visibility: visible;
|
||||
}
|
||||
27
src/common/copiable/index.js
Normal file
@@ -0,0 +1,27 @@
|
||||
import CopyToClipboard from 'react-copy-to-clipboard'
|
||||
import classNames from 'classnames'
|
||||
import React, { createElement } from 'react'
|
||||
|
||||
import Icon from '../icon'
|
||||
import propTypes from '../prop-types'
|
||||
|
||||
import styles from './index.css'
|
||||
|
||||
const Copiable = propTypes({
|
||||
data: propTypes.string,
|
||||
tagName: propTypes.string
|
||||
})(props => createElement(
|
||||
props.tagName || 'span',
|
||||
{
|
||||
...props,
|
||||
className: classNames(styles.container, props.className)
|
||||
},
|
||||
props.children,
|
||||
' ',
|
||||
<CopyToClipboard text={props.data || props.children}>
|
||||
<button className={classNames('btn btn-sm btn-secondary', styles.button)}>
|
||||
<Icon icon='clipboard' />
|
||||
</button>
|
||||
</CopyToClipboard>
|
||||
))
|
||||
export { Copiable as default }
|
||||
9
src/common/d3-utils.js
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import forEach from 'lodash/forEach'
|
||||
|
||||
export function setStyles (style) {
|
||||
forEach(style, (value, key) => {
|
||||
this.style(key, value)
|
||||
})
|
||||
|
||||
return this
|
||||
}
|
||||
53
src/common/debug.js
Normal file
@@ -0,0 +1,53 @@
|
||||
import React, { Component, PropTypes } from 'react'
|
||||
import { isPromise } from 'promise-toolbox'
|
||||
|
||||
const toString = value => JSON.stringify(value, null, 2)
|
||||
|
||||
// This component does not handle changes in its `promise` property.
|
||||
class DebugAsync extends Component {
|
||||
static propTypes = {
|
||||
promise: PropTypes.object.isRequired
|
||||
}
|
||||
|
||||
constructor (props) {
|
||||
super()
|
||||
|
||||
this.state = {
|
||||
status: 'pending'
|
||||
}
|
||||
|
||||
props.promise.then(
|
||||
value => this.setState({ status: 'resolved', value }),
|
||||
value => this.setState({ status: 'rejected', value })
|
||||
)
|
||||
}
|
||||
|
||||
shouldComponentUpdate (_, newState) {
|
||||
return this.state.status !== newState.status
|
||||
}
|
||||
|
||||
render () {
|
||||
const { status, value } = this.state
|
||||
|
||||
if (status === 'pending') {
|
||||
return <pre>{'Promise { <pending> }'}</pre>
|
||||
}
|
||||
|
||||
return <pre>
|
||||
{'Promise { '}
|
||||
{status === 'rejected' && '<rejected> '}
|
||||
{toString(value)}
|
||||
{' }'}
|
||||
</pre>
|
||||
}
|
||||
}
|
||||
|
||||
const Debug = ({ value }) => isPromise(value)
|
||||
? <DebugAsync promise={value} />
|
||||
: <pre>{toString(value)}</pre>
|
||||
|
||||
Debug.propTypes = {
|
||||
value: PropTypes.any.isRequired
|
||||
}
|
||||
|
||||
export { Debug as default }
|
||||
457
src/common/editable.js
Normal file
@@ -0,0 +1,457 @@
|
||||
import findKey from 'lodash/findKey'
|
||||
import isFunction from 'lodash/isFunction'
|
||||
import isString from 'lodash/isString'
|
||||
import map from 'lodash/map'
|
||||
import pick from 'lodash/pick'
|
||||
import React from 'react'
|
||||
|
||||
import _ from './intl'
|
||||
import Component from './base-component'
|
||||
import Icon from './icon'
|
||||
import logError from './log-error'
|
||||
import propTypes from './prop-types'
|
||||
import Tooltip from './tooltip'
|
||||
import { formatSize } from './utils'
|
||||
import { SizeInput } from './form'
|
||||
import {
|
||||
SelectHost,
|
||||
SelectNetwork,
|
||||
SelectPool,
|
||||
SelectRemote,
|
||||
SelectSr,
|
||||
SelectSubject,
|
||||
SelectTag,
|
||||
SelectVm,
|
||||
SelectVmTemplate
|
||||
} from './select-objects'
|
||||
|
||||
const LONG_CLICK = 400
|
||||
const SELECT_STYLE = { padding: '0px' }
|
||||
const SIZE_STYLE = { width: '10rem' }
|
||||
const EDITABLE_STYLE = { borderBottom: '1px dashed #ccc' }
|
||||
|
||||
@propTypes({
|
||||
alt: propTypes.node.isRequired
|
||||
})
|
||||
class Hover extends Component {
|
||||
constructor () {
|
||||
super()
|
||||
|
||||
this.state = {
|
||||
hover: false
|
||||
}
|
||||
|
||||
this._onMouseEnter = () => this.setState({ hover: true })
|
||||
this._onMouseLeave = () => this.setState({ hover: false })
|
||||
}
|
||||
|
||||
render () {
|
||||
if (this.state.hover) {
|
||||
return <span onMouseLeave={this._onMouseLeave}>
|
||||
{this.props.alt}
|
||||
</span>
|
||||
}
|
||||
|
||||
return <span onMouseEnter={this._onMouseEnter}>
|
||||
{this.props.children}
|
||||
</span>
|
||||
}
|
||||
}
|
||||
|
||||
@propTypes({
|
||||
onChange: propTypes.func.isRequired,
|
||||
onUndo: propTypes.oneOfType([
|
||||
propTypes.bool,
|
||||
propTypes.func
|
||||
]),
|
||||
useLongClick: propTypes.bool,
|
||||
value: propTypes.any.isRequired
|
||||
})
|
||||
class Editable extends Component {
|
||||
get value () {
|
||||
throw new Error('not implemented')
|
||||
}
|
||||
|
||||
_onKeyDown = event => {
|
||||
const { keyCode } = event
|
||||
if (keyCode === 27) {
|
||||
return this._closeEdition()
|
||||
}
|
||||
|
||||
if (keyCode === 13) {
|
||||
return this._save()
|
||||
}
|
||||
}
|
||||
|
||||
_closeEdition = () => {
|
||||
this.setState({ editing: false })
|
||||
}
|
||||
|
||||
_openEdition = () => {
|
||||
this.setState({
|
||||
editing: true,
|
||||
error: null,
|
||||
saving: false
|
||||
})
|
||||
}
|
||||
|
||||
_undo = () => {
|
||||
const { props } = this
|
||||
const { onUndo } = props
|
||||
if (onUndo === false) {
|
||||
return
|
||||
}
|
||||
|
||||
return this.__save(
|
||||
() => this.state.previous,
|
||||
isFunction(onUndo) ? onUndo : props.onChange
|
||||
)
|
||||
}
|
||||
|
||||
_save () {
|
||||
return this.__save(
|
||||
() => this.value,
|
||||
this.props.onChange
|
||||
)
|
||||
}
|
||||
|
||||
async __save (getValue, saveValue) {
|
||||
const { props } = this
|
||||
|
||||
try {
|
||||
const value = getValue()
|
||||
const previous = props.value
|
||||
if (value === previous) {
|
||||
return this._closeEdition()
|
||||
}
|
||||
|
||||
this.setState({ saving: true })
|
||||
|
||||
await saveValue(value)
|
||||
|
||||
this.setState({ previous })
|
||||
this._closeEdition()
|
||||
} catch (error) {
|
||||
this.setState({
|
||||
error: isString(error) ? error : error.message,
|
||||
saving: false
|
||||
})
|
||||
logError(error)
|
||||
}
|
||||
}
|
||||
|
||||
__startTimer = event => {
|
||||
event.persist()
|
||||
this._timeout = setTimeout(() => {
|
||||
event.preventDefault()
|
||||
this._openEdition()
|
||||
}, LONG_CLICK)
|
||||
}
|
||||
__stopTimer = () => clearTimeout(this._timeout)
|
||||
|
||||
render () {
|
||||
const { state, props } = this
|
||||
|
||||
if (!state.editing) {
|
||||
const { onUndo, previous } = state
|
||||
const { useLongClick } = props
|
||||
|
||||
const success = <Icon icon='success' />
|
||||
return <span style={useLongClick ? null : EDITABLE_STYLE}>
|
||||
<span
|
||||
onClick={!useLongClick && this._openEdition}
|
||||
onMouseDown={useLongClick && this.__startTimer}
|
||||
onMouseUp={useLongClick && this.__stopTimer}
|
||||
>
|
||||
{this._renderDisplay()}
|
||||
</span>
|
||||
{previous != null && (onUndo !== false
|
||||
? <Hover
|
||||
alt={<a onClick={this._undo}><Icon icon='undo' /></a>}
|
||||
>
|
||||
{success}
|
||||
</Hover>
|
||||
: success
|
||||
)}
|
||||
</span>
|
||||
}
|
||||
|
||||
const { error, saving } = state
|
||||
|
||||
return <span>
|
||||
{this._renderEdition()}
|
||||
{saving && <span>{' '}<Icon icon='loading' /></span>}
|
||||
{error != null && <span>
|
||||
{' '}<Tooltip content={error}><Icon icon='error' /></Tooltip>
|
||||
</span>}
|
||||
</span>
|
||||
}
|
||||
}
|
||||
|
||||
@propTypes({
|
||||
autoComplete: propTypes.string,
|
||||
maxLength: propTypes.number,
|
||||
minLength: propTypes.number,
|
||||
pattern: propTypes.string,
|
||||
value: propTypes.string.isRequired
|
||||
})
|
||||
export class Text extends Editable {
|
||||
get value () {
|
||||
const { input } = this.refs
|
||||
|
||||
// FIXME: should be properly forwarded to the user.
|
||||
const error = input.validationMessage
|
||||
if (error) {
|
||||
throw new Error(error)
|
||||
}
|
||||
|
||||
return input.value
|
||||
}
|
||||
|
||||
_onInput = ({ target }) => {
|
||||
target.style.width = `${target.value.length + 1}ex`
|
||||
}
|
||||
|
||||
_renderDisplay () {
|
||||
const {
|
||||
children,
|
||||
value
|
||||
} = this.props
|
||||
|
||||
if (children || value) {
|
||||
return <span> {children || value} </span>
|
||||
}
|
||||
|
||||
const {
|
||||
placeholder,
|
||||
useLongClick
|
||||
} = this.props
|
||||
|
||||
return <span className='text-muted'>
|
||||
{placeholder ||
|
||||
(useLongClick ? _('editableLongClickPlaceholder') : _('editableClickPlaceholder'))
|
||||
}
|
||||
</span>
|
||||
}
|
||||
|
||||
_renderEdition () {
|
||||
const { value } = this.props
|
||||
const { saving } = this.state
|
||||
|
||||
// Optional props that the user may set on the input.
|
||||
const extraProps = pick(this.props, [
|
||||
'autoComplete',
|
||||
'maxLength',
|
||||
'minLength',
|
||||
'pattern'
|
||||
])
|
||||
|
||||
return <input
|
||||
{...extraProps}
|
||||
|
||||
autoFocus
|
||||
defaultValue={value}
|
||||
onBlur={this._closeEdition}
|
||||
onInput={this._onInput}
|
||||
onKeyDown={this._onKeyDown}
|
||||
readOnly={saving}
|
||||
ref='input'
|
||||
style={{
|
||||
width: `${value.length + 1}ex`
|
||||
}}
|
||||
type={this._isPassword ? 'password' : 'text'}
|
||||
/>
|
||||
}
|
||||
}
|
||||
|
||||
export class Password extends Text {
|
||||
// TODO: this is a hack, this class should probably have a better
|
||||
// implementation.
|
||||
_isPassword = true
|
||||
}
|
||||
|
||||
@propTypes({
|
||||
value: propTypes.number.isRequired
|
||||
})
|
||||
export class Number extends Component {
|
||||
get value () {
|
||||
return +this.refs.input.value
|
||||
}
|
||||
|
||||
_onChange = value => this.props.onChange(+value)
|
||||
|
||||
render () {
|
||||
return <Text
|
||||
{...this.props}
|
||||
onChange={this._onChange}
|
||||
value={String(this.props.value)}
|
||||
/>
|
||||
}
|
||||
}
|
||||
|
||||
@propTypes({
|
||||
labelProp: propTypes.string.isRequired,
|
||||
options: propTypes.oneOfType([
|
||||
propTypes.array,
|
||||
propTypes.object
|
||||
]).isRequired
|
||||
})
|
||||
export class Select extends Editable {
|
||||
constructor (props) {
|
||||
super()
|
||||
|
||||
this._defaultValue = findKey(props.options, option => option === props.value)
|
||||
}
|
||||
|
||||
get value () {
|
||||
return this.props.options[this._select.value]
|
||||
}
|
||||
|
||||
_onChange = event => {
|
||||
this._save()
|
||||
}
|
||||
_optionToJsx = (option, index) => {
|
||||
const { labelProp } = this.props
|
||||
return <option
|
||||
key={index}
|
||||
value={index}
|
||||
>
|
||||
{labelProp ? option[labelProp] : option}
|
||||
</option>
|
||||
}
|
||||
|
||||
_onEditionMount = ref => {
|
||||
this._select = ref
|
||||
// Seems to work in Google Chrome (not in Firefox)
|
||||
ref && ref.dispatchEvent(new window.MouseEvent('mousedown'))
|
||||
}
|
||||
|
||||
_renderDisplay () {
|
||||
return this.props.children ||
|
||||
<span>{this.props.value[this.props.labelProp]}</span>
|
||||
}
|
||||
|
||||
_renderEdition () {
|
||||
const { saving } = this.state
|
||||
const { options } = this.props
|
||||
|
||||
return <select
|
||||
autoFocus
|
||||
className='form-control'
|
||||
defaultValue={this._defaultValue}
|
||||
onBlur={this._closeEdition}
|
||||
onChange={this._onChange}
|
||||
onKeyDown={this._onKeyDown}
|
||||
readOnly={saving}
|
||||
ref={this._onEditionMount}
|
||||
style={SELECT_STYLE}
|
||||
>
|
||||
{map(options, this._optionToJsx)}
|
||||
</select>
|
||||
}
|
||||
}
|
||||
|
||||
const MAP_TYPE_SELECT = {
|
||||
host: SelectHost,
|
||||
network: SelectNetwork,
|
||||
pool: SelectPool,
|
||||
remote: SelectRemote,
|
||||
SR: SelectSr,
|
||||
subject: SelectSubject,
|
||||
tag: SelectTag,
|
||||
VM: SelectVm,
|
||||
'VM-template': SelectVmTemplate
|
||||
}
|
||||
|
||||
@propTypes({
|
||||
labelProp: propTypes.string.isRequired,
|
||||
predicate: propTypes.func,
|
||||
value: propTypes.oneOfType([
|
||||
propTypes.string,
|
||||
propTypes.object
|
||||
]).isRequired
|
||||
})
|
||||
export class XoSelect extends Editable {
|
||||
get value () {
|
||||
return this.refs.select.value
|
||||
}
|
||||
|
||||
_renderDisplay () {
|
||||
return this.props.children ||
|
||||
<span>{this.props.value[this.props.labelProp]}</span>
|
||||
}
|
||||
|
||||
_onChange = object => {
|
||||
object ? this._save() : this._closeEdition()
|
||||
}
|
||||
|
||||
_renderEdition () {
|
||||
const {
|
||||
placeholder,
|
||||
predicate,
|
||||
saving,
|
||||
xoType
|
||||
} = this.props
|
||||
|
||||
const Select = MAP_TYPE_SELECT[xoType]
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
if (!Select) {
|
||||
throw new Error(`${xoType} is not a valid XoSelect type.`)
|
||||
}
|
||||
}
|
||||
|
||||
// Anchor is needed so that the BlockLink does not trigger a redirection
|
||||
// when this element is clicked.
|
||||
return <a onBlur={this._closeEdition}>
|
||||
<Select
|
||||
autoFocus
|
||||
disabled={saving}
|
||||
onChange={this._onChange}
|
||||
placeholder={placeholder}
|
||||
predicate={predicate}
|
||||
ref='select'
|
||||
/>
|
||||
</a>
|
||||
}
|
||||
}
|
||||
|
||||
@propTypes({
|
||||
value: propTypes.number.isRequired
|
||||
})
|
||||
export class Size extends Editable {
|
||||
get value () {
|
||||
return this.refs.input.value
|
||||
}
|
||||
|
||||
_renderDisplay () {
|
||||
return this.props.children || formatSize(this.props.value)
|
||||
}
|
||||
|
||||
_closeEditionIfUnfocused = () => {
|
||||
this._focused = false
|
||||
setTimeout(() => {
|
||||
!this._focused && this._closeEdition()
|
||||
}, 10)
|
||||
}
|
||||
|
||||
_focus = () => { this._focused = true }
|
||||
|
||||
_renderEdition () {
|
||||
const { saving } = this.state
|
||||
const { value } = this.props
|
||||
|
||||
return <span
|
||||
onBlur={this._closeEditionIfUnfocused}
|
||||
onFocus={this._focus}
|
||||
onKeyDown={this._onKeyDown}
|
||||
>
|
||||
<SizeInput
|
||||
autoFocus
|
||||
ref='input'
|
||||
readOnly={saving}
|
||||
style={SIZE_STYLE}
|
||||
defaultValue={value}
|
||||
/>
|
||||
</span>
|
||||
}
|
||||
}
|
||||
26
src/common/ellipsis.js
Normal file
@@ -0,0 +1,26 @@
|
||||
import React from 'react'
|
||||
|
||||
const ellipsisStyle = {
|
||||
overflow: 'hidden',
|
||||
textOverflow: 'ellipsis',
|
||||
whiteSpace: 'nowrap'
|
||||
}
|
||||
|
||||
const ellipsisContainerStyle = {
|
||||
display: 'flex'
|
||||
}
|
||||
|
||||
const Ellipsis = ({ children }) => (
|
||||
<span style={ellipsisStyle}>
|
||||
{children}
|
||||
</span>
|
||||
)
|
||||
export { Ellipsis as default }
|
||||
|
||||
export const EllipsisContainer = ({ children }) => (
|
||||
<div style={ellipsisContainerStyle}>
|
||||
{React.Children.map(children, child =>
|
||||
child == null || child.type === Ellipsis ? child : <span>{child}</span>
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
45
src/common/filter-reduce.js
Normal file
@@ -0,0 +1,45 @@
|
||||
import findIndex from 'lodash/findIndex'
|
||||
import identity from 'lodash/identity'
|
||||
|
||||
// Returns a copy of the array containing:
|
||||
// - the elements which did not matches the predicate
|
||||
// - the result of the reduction of the elements matching the
|
||||
// predicates
|
||||
//
|
||||
// As a special case, if the predicate is not provided, it is
|
||||
// considered to have not matched.
|
||||
const filterReduce = (array, predicate, reducer, initial) => {
|
||||
const { length } = array
|
||||
let i
|
||||
if (
|
||||
!length ||
|
||||
!predicate ||
|
||||
(i = findIndex(array, predicate)) === -1
|
||||
) {
|
||||
return initial == null
|
||||
? array.slice(0)
|
||||
: array.concat(initial)
|
||||
}
|
||||
|
||||
if (reducer == null) {
|
||||
reducer = identity
|
||||
}
|
||||
|
||||
const result = array.slice(0, i)
|
||||
let value = initial == null
|
||||
? array[i]
|
||||
: reducer(initial, array[i], i, array)
|
||||
|
||||
for (i = i + 1; i < length; ++i) {
|
||||
const current = array[i]
|
||||
if (predicate(current, i, array)) {
|
||||
value = reducer(value, current, i, array)
|
||||
} else {
|
||||
result.push(current)
|
||||
}
|
||||
}
|
||||
|
||||
result.push(value)
|
||||
return result
|
||||
}
|
||||
export { filterReduce as default }
|
||||
28
src/common/filter-reduce.spec.js
Normal file
@@ -0,0 +1,28 @@
|
||||
import test from 'ava'
|
||||
|
||||
import filterReduce from './filter-reduce'
|
||||
|
||||
const add = (a, b) => a + b
|
||||
const data = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ]
|
||||
const isEven = x => !(x & 1)
|
||||
|
||||
test('filterReduce', t => {
|
||||
// Returns all elements not matching the predicate and the result of
|
||||
// a reduction over those who do.
|
||||
t.deepEqual(
|
||||
filterReduce(data, isEven, add),
|
||||
[ 1, 3, 5, 7, 9, 20 ]
|
||||
)
|
||||
|
||||
// The default reducer is the identity.
|
||||
t.deepEqual(
|
||||
filterReduce(data, isEven),
|
||||
[ 1, 3, 5, 7, 9, 0 ]
|
||||
)
|
||||
|
||||
// If an initial value is passed it is used.
|
||||
t.deepEqual(
|
||||
filterReduce(data, isEven, add, 22),
|
||||
[ 1, 3, 5, 7, 9, 42 ]
|
||||
)
|
||||
})
|
||||
24
src/common/form-grid.js
Normal file
@@ -0,0 +1,24 @@
|
||||
import React from 'react'
|
||||
|
||||
import * as Grid from './grid'
|
||||
import propTypes from './prop-types'
|
||||
|
||||
export const LabelCol = propTypes({
|
||||
children: propTypes.any.isRequired
|
||||
})(({ children }) => (
|
||||
<label className='col-md-2 form-control-label'>{children}</label>
|
||||
))
|
||||
|
||||
export const InputCol = propTypes({
|
||||
children: propTypes.any.isRequired
|
||||
})(({ children }) => (
|
||||
<Grid.Col mediumSize={10}>{children}</Grid.Col>
|
||||
))
|
||||
|
||||
export const Row = propTypes({
|
||||
children: propTypes.arrayOf(propTypes.element).isRequired
|
||||
})(({ children }) => (
|
||||
<Grid.Row className='form-group'>
|
||||
{children}
|
||||
</Grid.Row>
|
||||
))
|
||||
298
src/common/form/index.js
Normal file
@@ -0,0 +1,298 @@
|
||||
import BaseComponent from 'base-component'
|
||||
import classNames from 'classnames'
|
||||
import Icon from 'icon'
|
||||
import map from 'lodash/map'
|
||||
import randomPassword from 'random-password'
|
||||
import React from 'react'
|
||||
import round from 'lodash/round'
|
||||
import {
|
||||
DropdownButton,
|
||||
MenuItem
|
||||
} from 'react-bootstrap-4/lib'
|
||||
|
||||
import Component from '../base-component'
|
||||
import propTypes from '../prop-types'
|
||||
import {
|
||||
firstDefined,
|
||||
formatSizeRaw,
|
||||
parseSize
|
||||
} from '../utils'
|
||||
|
||||
export Select from './select'
|
||||
export SelectPlainObject from './select-plain-object'
|
||||
|
||||
// ===================================================================
|
||||
|
||||
@propTypes({
|
||||
enableGenerator: propTypes.bool
|
||||
})
|
||||
export class Password extends Component {
|
||||
get value () {
|
||||
return this.refs.field.value
|
||||
}
|
||||
|
||||
set value (value) {
|
||||
this.refs.field.value = value
|
||||
}
|
||||
|
||||
_generate = () => {
|
||||
this.refs.field.value = randomPassword(8)
|
||||
this.setState({
|
||||
visible: true
|
||||
})
|
||||
}
|
||||
|
||||
_toggleVisibility = () => {
|
||||
this.setState({
|
||||
visible: !this.state.visible
|
||||
})
|
||||
}
|
||||
|
||||
render () {
|
||||
const {
|
||||
className,
|
||||
enableGenerator = false,
|
||||
...props
|
||||
} = this.props
|
||||
const { visible } = this.state
|
||||
|
||||
return <div className='input-group'>
|
||||
{enableGenerator && <span className='input-group-btn'>
|
||||
<button type='button' className='btn btn-secondary' onClick={this._generate}>
|
||||
<Icon icon='password' />
|
||||
</button>
|
||||
</span>}
|
||||
<input
|
||||
{...props}
|
||||
className={classNames(className, 'form-control')}
|
||||
ref='field'
|
||||
type={visible ? 'text' : 'password'}
|
||||
/>
|
||||
<span className='input-group-btn'>
|
||||
<button type='button' className='btn btn-secondary' onClick={this._toggleVisibility}>
|
||||
<Icon icon={visible ? 'shown' : 'hidden'} />
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
|
||||
@propTypes({
|
||||
defaultValue: propTypes.number,
|
||||
max: propTypes.number.isRequired,
|
||||
min: propTypes.number.isRequired,
|
||||
step: propTypes.number,
|
||||
onChange: propTypes.func
|
||||
})
|
||||
export class Range extends Component {
|
||||
constructor (props) {
|
||||
super()
|
||||
this.state = {
|
||||
value: props.defaultValue || props.min
|
||||
}
|
||||
}
|
||||
|
||||
get value () {
|
||||
return this.state.value
|
||||
}
|
||||
|
||||
set value (value) {
|
||||
const { onChange } = this.props
|
||||
this.state.value = +value
|
||||
|
||||
if (onChange) {
|
||||
onChange(value)
|
||||
}
|
||||
}
|
||||
|
||||
_handleChange = event => {
|
||||
const { onChange } = this.props
|
||||
const { value } = event.target
|
||||
|
||||
if (value === this.state.value) {
|
||||
return
|
||||
}
|
||||
|
||||
this.setState({
|
||||
value
|
||||
}, onChange && (() => onChange(value)))
|
||||
}
|
||||
|
||||
render () {
|
||||
const {
|
||||
props
|
||||
} = this
|
||||
const step = props.step || 1
|
||||
const { value } = this.state
|
||||
|
||||
return (
|
||||
<div className='form-group row'>
|
||||
<label className='col-sm-2 control-label'>
|
||||
{value}
|
||||
</label>
|
||||
<div className='col-sm-10'>
|
||||
<input
|
||||
className='form-control'
|
||||
type='range'
|
||||
min={props.min}
|
||||
max={props.max}
|
||||
step={step}
|
||||
value={value}
|
||||
onChange={this._handleChange}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
export Toggle from './toggle'
|
||||
|
||||
const UNITS = ['kiB', 'MiB', 'GiB']
|
||||
const DEFAULT_UNIT = 'GiB'
|
||||
@propTypes({
|
||||
autoFocus: propTypes.bool,
|
||||
className: propTypes.string,
|
||||
defaultUnit: propTypes.oneOf(UNITS),
|
||||
defaultValue: propTypes.number,
|
||||
onChange: propTypes.func,
|
||||
placeholder: propTypes.string,
|
||||
readOnly: propTypes.bool,
|
||||
required: propTypes.bool,
|
||||
style: propTypes.object,
|
||||
value: propTypes.number
|
||||
})
|
||||
export class SizeInput extends BaseComponent {
|
||||
constructor (props) {
|
||||
super(props)
|
||||
|
||||
this.state = this._createStateFromBytes(firstDefined(props.value, props.defaultValue, 0))
|
||||
}
|
||||
|
||||
componentWillReceiveProps (newProps) {
|
||||
const { value } = newProps
|
||||
if (value == null && value === this.props.value) {
|
||||
return
|
||||
}
|
||||
|
||||
const { _bytes, _unit, _value } = this
|
||||
this._bytes = this._unit = this._value = null
|
||||
|
||||
if (value === _bytes) {
|
||||
// Update input value
|
||||
this.setState({
|
||||
unit: _unit,
|
||||
value: _value
|
||||
})
|
||||
} else {
|
||||
this.setState(this._createStateFromBytes(value))
|
||||
}
|
||||
}
|
||||
|
||||
_createStateFromBytes = bytes => {
|
||||
const humanSize = formatSizeRaw(bytes)
|
||||
return {
|
||||
unit: humanSize && humanSize.value ? humanSize.prefix + 'B' : this.props.defaultUnit || DEFAULT_UNIT,
|
||||
value: humanSize ? round(humanSize.value, 3) : ''
|
||||
}
|
||||
}
|
||||
|
||||
get value () {
|
||||
const { unit, value } = this.state
|
||||
return parseSize(value + ' ' + unit)
|
||||
}
|
||||
|
||||
set value (newValue) {
|
||||
if (
|
||||
process.env.NODE_ENV !== 'production' &&
|
||||
this.props.value != null
|
||||
) {
|
||||
throw new Error('cannot set value of controlled SizeInput')
|
||||
}
|
||||
this.setState(this._createStateFromBytes(newValue))
|
||||
}
|
||||
|
||||
_onChange = value =>
|
||||
this.props.onChange && this.props.onChange(value)
|
||||
|
||||
_updateValue = event => {
|
||||
const { value } = event.target
|
||||
if (this.props.value != null) {
|
||||
this._value = value
|
||||
this._unit = this.state.unit
|
||||
this._bytes = parseSize((value || 0) + ' ' + this.state.unit)
|
||||
|
||||
this._onChange(this._bytes)
|
||||
} else {
|
||||
this.setState({ value }, () => {
|
||||
this._onChange(this.value)
|
||||
})
|
||||
}
|
||||
}
|
||||
_updateUnit = unit => {
|
||||
if (this.props.value != null) {
|
||||
this._value = this.state.value
|
||||
this._unit = unit
|
||||
this._bytes = parseSize(this.state.value + ' ' + unit)
|
||||
|
||||
this._onChange(this._bytes)
|
||||
} else {
|
||||
this.setState({ unit }, () => {
|
||||
this._onChange(this.value)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
render () {
|
||||
const {
|
||||
autoFocus,
|
||||
className,
|
||||
placeholder,
|
||||
readOnly,
|
||||
required,
|
||||
style
|
||||
} = this.props
|
||||
|
||||
const {
|
||||
value,
|
||||
unit
|
||||
} = this.state
|
||||
|
||||
return <span
|
||||
className={classNames(className, 'input-group')}
|
||||
style={style}
|
||||
>
|
||||
<input
|
||||
autoFocus={autoFocus}
|
||||
className='form-control'
|
||||
min={0}
|
||||
onChange={this._updateValue}
|
||||
placeholder={placeholder}
|
||||
readOnly={readOnly}
|
||||
required={required}
|
||||
type='number'
|
||||
value={value}
|
||||
/>
|
||||
<span className='input-group-btn'>
|
||||
<DropdownButton
|
||||
bsStyle='secondary'
|
||||
disabled={readOnly}
|
||||
id='size'
|
||||
pullRight
|
||||
title={unit}
|
||||
>
|
||||
{map(UNITS, unit =>
|
||||
<MenuItem
|
||||
key={unit}
|
||||
onClick={() => this._updateUnit(unit)}
|
||||
>
|
||||
{unit}
|
||||
</MenuItem>
|
||||
)}
|
||||
</DropdownButton>
|
||||
</span>
|
||||
</span>
|
||||
}
|
||||
}
|
||||
117
src/common/form/select-plain-object.js
Normal file
@@ -0,0 +1,117 @@
|
||||
import find from 'lodash/find'
|
||||
import map from 'lodash/map'
|
||||
import React, { Component } from 'react'
|
||||
|
||||
import propTypes from '../prop-types'
|
||||
|
||||
import Select from './select'
|
||||
|
||||
@propTypes({
|
||||
autoFocus: propTypes.bool,
|
||||
defaultValue: propTypes.any,
|
||||
disabled: propTypes.bool,
|
||||
optionRenderer: propTypes.func,
|
||||
multi: propTypes.bool,
|
||||
onChange: propTypes.func,
|
||||
options: propTypes.array,
|
||||
placeholder: propTypes.string,
|
||||
predicate: propTypes.func,
|
||||
required: propTypes.bool
|
||||
})
|
||||
export default class SelectPlainObject extends Component {
|
||||
constructor (props) {
|
||||
super(props)
|
||||
this.state = {
|
||||
value: this._computeValue(props.defaultValue, props)
|
||||
}
|
||||
}
|
||||
|
||||
_computeValue (value, props = this.props) {
|
||||
let { optionKey } = props
|
||||
optionKey || (optionKey = 'id')
|
||||
const reduceValue = value => value != null ? (value[optionKey] || value) : ''
|
||||
if (props.multi) {
|
||||
if (!Array.isArray(value)) {
|
||||
value = [value]
|
||||
}
|
||||
return map(value, reduceValue)
|
||||
}
|
||||
return reduceValue(value)
|
||||
}
|
||||
|
||||
componentWillMount () {
|
||||
const { options } = this.props
|
||||
|
||||
this.setState({
|
||||
options: this._computeOptions(options)
|
||||
})
|
||||
}
|
||||
|
||||
componentWillReceiveProps (newProps) {
|
||||
const { options } = newProps
|
||||
|
||||
this.setState({
|
||||
options: this._computeOptions(options)
|
||||
})
|
||||
}
|
||||
|
||||
_computeOptions (options) {
|
||||
const { optionKey = 'id' } = this.props
|
||||
const { optionRenderer = o => o.label || o[optionKey] || o } = this.props
|
||||
return map(options, option => ({
|
||||
value: option[optionKey] || option,
|
||||
label: optionRenderer(option)
|
||||
}))
|
||||
}
|
||||
|
||||
get value () {
|
||||
const { optionKey = 'id' } = this.props
|
||||
const { value } = this.state
|
||||
const { options } = this.props
|
||||
const pickValue = value => {
|
||||
value = value.value || value
|
||||
return find(options, option => option[optionKey] === value || option === value)
|
||||
}
|
||||
|
||||
if (this.props.multi) {
|
||||
return map(value, pickValue)
|
||||
}
|
||||
|
||||
return pickValue(value)
|
||||
}
|
||||
|
||||
set value (value) {
|
||||
this.setState({
|
||||
value: this._computeValue(value)
|
||||
})
|
||||
}
|
||||
|
||||
_handleChange = value => {
|
||||
const { onChange } = this.props
|
||||
|
||||
this.setState({
|
||||
value: this._computeValue(value)
|
||||
}, onChange && (() => { onChange(this.value) }))
|
||||
}
|
||||
|
||||
_renderOption = option => option.label
|
||||
|
||||
render () {
|
||||
const { props, state } = this
|
||||
|
||||
return (
|
||||
<Select
|
||||
autofocus={props.autoFocus}
|
||||
disabled={props.disabled}
|
||||
multi={props.multi}
|
||||
onChange={this._handleChange}
|
||||
openOnFocus
|
||||
optionRenderer={this._renderOption}
|
||||
options={state.options}
|
||||
placeholder={props.placeholder}
|
||||
required={props.required}
|
||||
value={state.value}
|
||||
valueRenderer={this._renderOption} />
|
||||
)
|
||||
}
|
||||
}
|
||||
111
src/common/form/select.js
Normal file
@@ -0,0 +1,111 @@
|
||||
import React, { Component } from 'react'
|
||||
import ReactSelect from 'react-select'
|
||||
import {
|
||||
AutoSizer,
|
||||
VirtualScroll
|
||||
} from 'react-virtualized'
|
||||
|
||||
import propTypes from '../prop-types'
|
||||
|
||||
const SELECT_MENU_STYLE = {
|
||||
overflow: 'hidden'
|
||||
}
|
||||
|
||||
const SELECT_STYLE = {
|
||||
minWidth: '10em'
|
||||
}
|
||||
|
||||
// See: https://github.com/bvaughn/react-virtualized-select/blob/master/source/VirtualizedSelect/VirtualizedSelect.js
|
||||
@propTypes({
|
||||
maxHeight: propTypes.number,
|
||||
optionHeight: propTypes.number
|
||||
})
|
||||
export default class Select extends Component {
|
||||
static defaultProps = {
|
||||
maxHeight: 200,
|
||||
optionHeight: 40,
|
||||
optionRenderer: (option, labelKey) => option[labelKey]
|
||||
}
|
||||
|
||||
_renderMenu = ({
|
||||
focusedOption,
|
||||
options,
|
||||
...otherOptions
|
||||
}) => {
|
||||
const {
|
||||
maxHeight,
|
||||
optionHeight
|
||||
} = this.props
|
||||
|
||||
const focusedOptionIndex = options.indexOf(focusedOption)
|
||||
const height = Math.min(maxHeight, options.length * optionHeight)
|
||||
|
||||
const wrappedRowRenderer = ({ index }) =>
|
||||
this._optionRenderer({
|
||||
...otherOptions,
|
||||
focusedOption,
|
||||
focusedOptionIndex,
|
||||
option: options[index],
|
||||
options
|
||||
})
|
||||
|
||||
return (
|
||||
<AutoSizer disableHeight>
|
||||
{({ width }) => (
|
||||
<VirtualScroll
|
||||
height={height}
|
||||
rowCount={options.length}
|
||||
rowHeight={optionHeight}
|
||||
rowRenderer={wrappedRowRenderer}
|
||||
scrollToIndex={focusedOptionIndex}
|
||||
width={width}
|
||||
/>
|
||||
)}
|
||||
</AutoSizer>
|
||||
)
|
||||
}
|
||||
|
||||
_optionRenderer = ({
|
||||
focusedOption,
|
||||
focusOption,
|
||||
labelKey,
|
||||
option,
|
||||
selectValue
|
||||
}) => {
|
||||
let className = 'Select-option'
|
||||
|
||||
if (option === focusedOption) {
|
||||
className += ' is-focused'
|
||||
}
|
||||
|
||||
const { disabled } = option
|
||||
|
||||
if (disabled) {
|
||||
className += ' is-disabled'
|
||||
}
|
||||
|
||||
const { props } = this
|
||||
|
||||
return (
|
||||
<div
|
||||
className={className}
|
||||
onClick={!disabled && (() => selectValue(option))}
|
||||
onMouseOver={!disabled && (() => focusOption(option))}
|
||||
style={{ height: props.optionHeight }}
|
||||
>
|
||||
{props.optionRenderer(option, labelKey)}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
render () {
|
||||
return (
|
||||
<ReactSelect
|
||||
{...this.props}
|
||||
menuRenderer={this._renderMenu}
|
||||
menuStyle={SELECT_MENU_STYLE}
|
||||
style={SELECT_STYLE}
|
||||
/>
|
||||
)
|
||||
}
|
||||
}
|
||||
3
src/common/form/toggle/index.css
Normal file
@@ -0,0 +1,3 @@
|
||||
.checkbox {
|
||||
display: none;
|
||||
}
|
||||
89
src/common/form/toggle/index.js
Normal file
@@ -0,0 +1,89 @@
|
||||
import React from 'react'
|
||||
import classNames from 'classnames'
|
||||
|
||||
import Component from '../../base-component'
|
||||
import Icon from '../../icon'
|
||||
import propTypes from '../../prop-types'
|
||||
|
||||
import styles from './index.css'
|
||||
|
||||
@propTypes({
|
||||
className: propTypes.string,
|
||||
defaultValue: propTypes.bool,
|
||||
onChange: propTypes.func,
|
||||
icon: propTypes.string,
|
||||
iconOn: propTypes.string,
|
||||
iconOff: propTypes.string,
|
||||
iconSize: propTypes.number,
|
||||
value: propTypes.bool
|
||||
})
|
||||
export default class Toggle extends Component {
|
||||
static defaultProps = {
|
||||
iconOn: 'toggle-on',
|
||||
iconOff: 'toggle-off',
|
||||
iconSize: 2
|
||||
}
|
||||
|
||||
get value () {
|
||||
const { props } = this
|
||||
|
||||
const { value } = props
|
||||
if (value != null) {
|
||||
return value
|
||||
}
|
||||
|
||||
const { input } = this.refs
|
||||
if (input) {
|
||||
return input.checked
|
||||
}
|
||||
|
||||
return props.defaultValue || false
|
||||
}
|
||||
|
||||
set value (value) {
|
||||
if (
|
||||
process.env.NODE_ENV !== 'production' &&
|
||||
this.props.value != null
|
||||
) {
|
||||
throw new Error('cannot set value of controlled Toggle')
|
||||
}
|
||||
|
||||
this.refs.input.checked = Boolean(value)
|
||||
}
|
||||
|
||||
_onChange = event => {
|
||||
if (this.props.value == null) {
|
||||
this.forceUpdate()
|
||||
}
|
||||
|
||||
const { onChange } = this.props
|
||||
onChange && onChange(event.target.checked)
|
||||
}
|
||||
|
||||
render () {
|
||||
const { props, value } = this
|
||||
|
||||
return (
|
||||
<label
|
||||
className={classNames(
|
||||
props.disabled ? 'text-muted' : value ? 'text-success' : null,
|
||||
props.className
|
||||
)}
|
||||
>
|
||||
<Icon
|
||||
icon={props.icon || (value ? props.iconOn : props.iconOff)}
|
||||
size={props.iconSize}
|
||||
/>
|
||||
<input
|
||||
checked={props.value}
|
||||
className={styles.checkbox}
|
||||
defaultChecked={props.defaultValue}
|
||||
disabled={props.disabled}
|
||||
onChange={this._onChange}
|
||||
ref='input'
|
||||
type='checkbox'
|
||||
/>
|
||||
</label>
|
||||
)
|
||||
}
|
||||
}
|
||||
17
src/common/get-event-value.js
Normal file
@@ -0,0 +1,17 @@
|
||||
// If the param is an event, returns the value of it's target,
|
||||
// otherwise returns the param.
|
||||
const getEventValue = event => {
|
||||
let target
|
||||
if (!event || !(target = event.target)) {
|
||||
return event
|
||||
}
|
||||
|
||||
return (
|
||||
target.nodeName.toLowerCase() === 'input' &&
|
||||
target.type.toLowerCase() === 'checkbox'
|
||||
)
|
||||
? target.checked
|
||||
: target.value
|
||||
}
|
||||
|
||||
export { getEventValue as default }
|
||||
58
src/common/grid.js
Normal file
@@ -0,0 +1,58 @@
|
||||
import classNames from 'classnames'
|
||||
import React from 'react'
|
||||
|
||||
import propTypes from './prop-types'
|
||||
|
||||
export const Col = propTypes({
|
||||
className: propTypes.string,
|
||||
size: propTypes.number,
|
||||
smallSize: propTypes.number,
|
||||
mediumSize: propTypes.number,
|
||||
largeSize: propTypes.number,
|
||||
offset: propTypes.number,
|
||||
smallOffset: propTypes.number,
|
||||
mediumOffset: propTypes.number,
|
||||
largeOffset: propTypes.number
|
||||
})(({
|
||||
children,
|
||||
className,
|
||||
size = 12,
|
||||
smallSize = size,
|
||||
mediumSize,
|
||||
largeSize,
|
||||
offset,
|
||||
smallOffset = offset,
|
||||
mediumOffset,
|
||||
largeOffset,
|
||||
style
|
||||
}) => <div className={classNames(
|
||||
className,
|
||||
smallSize && `col-xs-${smallSize}`,
|
||||
mediumSize && `col-md-${mediumSize}`,
|
||||
largeSize && `col-lg-${largeSize}`,
|
||||
smallOffset && `offset-xs-${smallOffset}`,
|
||||
mediumOffset && `offset-md-${mediumOffset}`,
|
||||
largeOffset && `offset-lg-${largeOffset}`
|
||||
)}
|
||||
style={style}
|
||||
>
|
||||
{children}
|
||||
</div>)
|
||||
|
||||
export const Container = propTypes({
|
||||
className: propTypes.string
|
||||
})(({
|
||||
children,
|
||||
className
|
||||
}) => <div className={classNames(className, 'container-fluid')}>
|
||||
{children}
|
||||
</div>)
|
||||
|
||||
export const Row = propTypes({
|
||||
className: propTypes.string
|
||||
})(({
|
||||
children,
|
||||
className
|
||||
}) => <div className={`${className || ''} row`}>
|
||||
{children}
|
||||
</div>)
|
||||
21
src/common/icon.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import classNames from 'classnames'
|
||||
import isInteger from 'lodash/isInteger'
|
||||
import React, { PropTypes } from 'react'
|
||||
|
||||
const Icon = ({ className, icon, size = 1, fixedWidth }) => (
|
||||
<i className={classNames(
|
||||
className,
|
||||
icon ? `xo-icon-${icon}` : 'fa', // Without icon prop, is a placeholder.
|
||||
isInteger(size) ? `fa-${size}x` : `fa-${size}`,
|
||||
fixedWidth && 'fa-fw'
|
||||
)} />
|
||||
)
|
||||
Icon.propTypes = {
|
||||
fixedWidth: PropTypes.bool,
|
||||
icon: PropTypes.string,
|
||||
size: PropTypes.oneOfType([
|
||||
PropTypes.string,
|
||||
PropTypes.number
|
||||
])
|
||||
}
|
||||
export default Icon
|
||||
83
src/common/intl/index.js
Normal file
@@ -0,0 +1,83 @@
|
||||
|
||||
import isFunction from 'lodash/isFunction'
|
||||
import isString from 'lodash/isString'
|
||||
import moment from 'moment'
|
||||
import React, {
|
||||
Component,
|
||||
PropTypes
|
||||
} from 'react'
|
||||
import {
|
||||
connect
|
||||
} from 'react-redux'
|
||||
import {
|
||||
FormattedMessage,
|
||||
IntlProvider as IntlProvider_
|
||||
} from 'react-intl'
|
||||
|
||||
import messages from './messages'
|
||||
import locales from './locales'
|
||||
|
||||
// ===================================================================
|
||||
|
||||
// Params:
|
||||
//
|
||||
// - props (optional): properties to add to the FormattedMessage
|
||||
// - messageId: identifier of the message to format/translate
|
||||
// - values (optional): values to pass to the message
|
||||
// - render (optional): a function receiving the React nodes of the
|
||||
// translated message and returning the React node to render
|
||||
const getMessage = (props, messageId, values, render) => {
|
||||
if (isString(props)) {
|
||||
render = values
|
||||
values = messageId
|
||||
messageId = props
|
||||
props = undefined
|
||||
}
|
||||
|
||||
const message = messages[messageId]
|
||||
if (process.env.NODE_ENV !== 'production' && !message) {
|
||||
throw new Error(`no message defined for ${messageId}`)
|
||||
}
|
||||
|
||||
if (isFunction(values)) {
|
||||
render = values
|
||||
values = undefined
|
||||
}
|
||||
|
||||
return <FormattedMessage {...props} {...message} values={values}>
|
||||
{render}
|
||||
</FormattedMessage>
|
||||
}
|
||||
|
||||
export { getMessage as default }
|
||||
|
||||
export { messages }
|
||||
|
||||
@connect(({ lang }) => ({ lang }))
|
||||
export class IntlProvider extends Component {
|
||||
static propTypes = {
|
||||
children: PropTypes.node.isRequired,
|
||||
lang: PropTypes.string.isRequired
|
||||
};
|
||||
|
||||
render () {
|
||||
const { lang, children } = this.props
|
||||
return <IntlProvider_
|
||||
locale={lang}
|
||||
messages={locales[lang]}
|
||||
>
|
||||
{children}
|
||||
</IntlProvider_>
|
||||
}
|
||||
}
|
||||
|
||||
@connect(({ lang }) => ({ lang }))
|
||||
export class FormattedDuration extends Component {
|
||||
render () {
|
||||
const {
|
||||
duration,
|
||||
lang
|
||||
} = this.props
|
||||
return <span>{moment.duration(duration).locale(lang).humanize()}</span>
|
||||
}
|
||||
}
|
||||
1
src/common/intl/locales/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/index.js
|
||||
2062
src/common/intl/locales/es.js
Normal file
431
src/common/intl/locales/fr.js
Normal file
@@ -0,0 +1,431 @@
|
||||
// See http://momentjs.com/docs/#/use-it/browserify/
|
||||
import 'moment/locale/fr'
|
||||
|
||||
import reactIntlData from 'react-intl/locale-data/fr'
|
||||
import { addLocaleData } from 'react-intl'
|
||||
addLocaleData(reactIntlData)
|
||||
|
||||
// ===================================================================
|
||||
|
||||
export default {
|
||||
editableLongClickPlaceholder: 'Clic long pour éditer',
|
||||
editableClickPlaceholder: 'Cliquer pour éditer',
|
||||
|
||||
// ----- Modals -----
|
||||
alertOk: 'OK',
|
||||
confirmOk: 'OK',
|
||||
confirmCancel: 'Annuler',
|
||||
|
||||
// ----- General Menu -----
|
||||
dashboardPage: 'Tableau de bord',
|
||||
overviewDashboardPage: 'Vue d\'ensemble',
|
||||
overviewVisualizationDashboardPage: 'Visualisations',
|
||||
overviewStatsDashboardPage: 'Statistiques',
|
||||
overviewHealthDashboardPage: 'État de santé',
|
||||
selfServicePage: 'Self service',
|
||||
selfServiceDashboardPage: 'Tableau de bord',
|
||||
settingsServersPage: 'Serveurs',
|
||||
settingsUsersPage: 'Utilisateurs',
|
||||
settingsGroupsPage: 'Groupes',
|
||||
settingsAclsPage: 'ACLs',
|
||||
settingsPluginsPage: 'Extensions',
|
||||
selfServiceAdminPage: 'Administration',
|
||||
backupPage: 'Sauvegarde',
|
||||
backupOverviewPage: 'Vue d\'ensemble',
|
||||
backupNewPage: 'Créer',
|
||||
backupRemotesPage: 'Emplacement',
|
||||
backupRestorePage: 'Restaurer',
|
||||
updatePage: 'Mises à jour',
|
||||
settingsPage: 'Paramètres',
|
||||
aboutPage: 'À propos',
|
||||
newMenu: 'Nouveau',
|
||||
newVmPage: 'VM',
|
||||
newServerPage: 'Serveur',
|
||||
newSrPage: 'Stockage',
|
||||
newImport: 'Importer',
|
||||
// ----- Home view -----
|
||||
homeDisplayedItems: '{displayed}x {icon} (sur {total})',
|
||||
homeSelectedItems: '{selected}x {icon} sélectionnée{selected, plural, zero {} one {} other {s}} (sur {total})',
|
||||
homeMigrateTo: 'Migrer sur…',
|
||||
// ----- General Stuff -----
|
||||
homePage: 'Accueil',
|
||||
usernameLabel: 'Nom :',
|
||||
passwordLabel: 'Mot de passe :',
|
||||
signInButton: 'Connexion',
|
||||
signOut: 'Déconnexion',
|
||||
add: 'Ajouter',
|
||||
remove: 'Supprimer',
|
||||
schedule: 'Plan',
|
||||
newVmBackup: 'Nouvelle sauvegarde de VM',
|
||||
editVmBackup: 'Edition d\'un job de backup',
|
||||
backup: 'Sauvegarde',
|
||||
rollingSnapshot: 'Sauvegarde continue',
|
||||
deltaBackup: 'Sauvegarde différentielle',
|
||||
disasterRecovery: 'Reprise après panne',
|
||||
continuousReplication: 'Réplication continue',
|
||||
preview: 'Aperçu',
|
||||
item: 'Objet',
|
||||
noSelectedValue: 'Pas de valeur sélectionnée',
|
||||
selectSubjects: 'Select. utilisateurs et/ou groupe(s)',
|
||||
selectHosts: 'Selectionner Hôte(s)…',
|
||||
selectNetworks: 'Selectionner Network(s)…',
|
||||
selectPifs: 'Sélectionner PIF(s)…',
|
||||
selectHostsVms: 'Selectionner objet(s)…',
|
||||
selectPools: 'Selectionner Pool(s)…',
|
||||
selectRemotes: 'Selectionner Remote(s)…',
|
||||
selectSrs: 'Selectionner Stockages(s)…',
|
||||
selectVms: 'Selectionner VM(s)…',
|
||||
selectVmTemplates: 'Selectionner patrons de VM…',
|
||||
selectTags: 'Selectionner tag(s)…',
|
||||
selectVdis: 'Selectionner disque(s)…',
|
||||
fillRequiredInformations: 'Remplir les champs requis.',
|
||||
fillOptionalInformations: 'Remplir informations (optionnel)',
|
||||
selectTableReset: 'Réinitialiser',
|
||||
schedulingMonth: 'Mois',
|
||||
schedulingEveryMonth: 'Tous les mois',
|
||||
schedulingEachSelectedMonth: 'Chaque mois sélectionné',
|
||||
schedulingMonthDay: 'Jour du mois',
|
||||
schedulingEveryMonthDay: 'Tous les jours',
|
||||
schedulingEachSelectedMonthDay: 'Chaque jour sélectionné',
|
||||
schedulingWeekDay: 'Jour de la semaine',
|
||||
schedulingEveryWeekDay: 'Tous les jours',
|
||||
schedulingEachSelectedWeekDay: 'Chaque jour sélectionné',
|
||||
schedulingHour: 'Heure',
|
||||
schedulingEveryHour: 'Toutes les heures',
|
||||
schedulingEveryNHour: 'Toutes les N heures',
|
||||
schedulingEachSelectedHour: 'Chaque heure sélectionnée',
|
||||
schedulingMinute: 'Minute',
|
||||
schedulingEveryMinute: 'Toutes les minutes',
|
||||
schedulingEveryNMinute: 'Toutes les N minutes',
|
||||
schedulingEachSelectedMinute: 'Chaque minute sélectionnée',
|
||||
schedulingReset: 'Reset',
|
||||
unknownSchedule: 'Inconnu',
|
||||
job: 'Job',
|
||||
jobTag: 'Tag',
|
||||
jobScheduling: 'Plan d\'exécution',
|
||||
jobState: 'Etat',
|
||||
runJob: 'Execution d\'un job',
|
||||
runJobVerbose: 'Une exécution a été lancée. Voir l\'overview pour plus de détails.',
|
||||
jobStarted: 'Démarré',
|
||||
jobFinished: 'Terminé',
|
||||
saveBackupJob: 'Sauvegarder',
|
||||
deleteJob: 'Supprimer Job',
|
||||
deleteJobQuestion: 'Etes-vous sûr de vouloir supprimer ce job ?',
|
||||
noScheduledJobs: 'Aucun job programmé.',
|
||||
newBackupSelection: 'Sélectionner votre type de sauvegarde :',
|
||||
autoloadPlugin: 'Charger au démarrage du serveur',
|
||||
savePluginConfiguration: 'Sauvegarder config.',
|
||||
deletePluginConfiguration: 'Supprimer config.',
|
||||
pluginError: 'Erreur plugin',
|
||||
unknownPluginError: 'Erreur inconnue',
|
||||
purgePluginConfiguration: 'Suppression de la config. du plugin',
|
||||
purgePluginConfigurationQuestion: 'Etes-vous sûr de vouloir supprimer la configuration de ce plugin ?',
|
||||
editPluginConfiguration: 'Editer',
|
||||
cancelPluginEdition: 'Annuler',
|
||||
pluginConfigurationSuccess: 'Configuration du plugin',
|
||||
pluginConfigurationChanges: 'La configuration du plugin a été sauvegardée !',
|
||||
startVmLabel: 'Démarrer',
|
||||
recoveryModeLabel: 'Démarrer en mode sans échec',
|
||||
suspendVmLabel: 'Suspendre',
|
||||
stopVmLabel: 'Arrêter',
|
||||
forceShutdownVmLabel: 'Forcer l\'arrêt',
|
||||
rebootVmLabel: 'Redémarrer',
|
||||
forceRebootVmLabel: 'Forcer le redémarrage',
|
||||
deleteVmLabel: 'Supprimer',
|
||||
migrateVmLabel: 'Migrer',
|
||||
snapshotVmLabel: 'Prendre un instantané',
|
||||
exportVmLabel: 'Exporter',
|
||||
copyVmLabel: 'Copier',
|
||||
cloneVmLabel: 'Cloner',
|
||||
convertToTemplateLabel: 'Convertir en modèle',
|
||||
// ----- host tab names -----
|
||||
storageTabName: 'Stockage',
|
||||
patchesTabName: 'Patches',
|
||||
// ----- host advanced tab -----
|
||||
hardwareHostSettingsLabel: 'Matériel',
|
||||
hostAddress: 'Adresse',
|
||||
hostStatus: 'Statut',
|
||||
hostBuildNumber: 'Numéro de build',
|
||||
hostIscsiName: 'Nom iSCSI',
|
||||
hostXenServerVersion: 'Version',
|
||||
hostStatusEnabled: 'Activé',
|
||||
hostStatusDisabled: 'Désactivé',
|
||||
hostPowerOnMode: 'Mode d\'allumage',
|
||||
powerOnDisabled: 'Désactivé',
|
||||
hostStartedSince: 'Système',
|
||||
hostStackStartedSince: 'XAPI',
|
||||
hostCpusModel: 'Modèle de processeur',
|
||||
hostCpusNumber: 'Cœur (socket)',
|
||||
hostManufacturerinfo: 'Informations constructeur',
|
||||
hostBiosinfo: 'Informations BIOS',
|
||||
licenseHostSettingsLabel: 'Licence',
|
||||
hostLicenseType: 'Type de licence',
|
||||
hostLicenseSocket: 'Nombre de socket',
|
||||
hostLicenseExpiry: 'Expiration',
|
||||
// ----- VM stat tab -----
|
||||
statLoad: 'Charge système',
|
||||
// ----- VM tab names -----
|
||||
vmConsoleLabel: 'Console',
|
||||
generalTabName: 'Général',
|
||||
statsTabName: 'Stats',
|
||||
consoleTabName: 'Console',
|
||||
snapshotsTabName: 'Instantanés',
|
||||
logsTabName: 'Journaux',
|
||||
advancedTabName: 'Avancé',
|
||||
networkTabName: 'Réseau',
|
||||
disksTabName: 'Disque{disks, plural, zero {} one {} other {s}}',
|
||||
powerStateHalted: 'arrêtée',
|
||||
powerStateRunning: 'en marche',
|
||||
started: 'Démarrée {ago}',
|
||||
noToolsDetected: 'Pas d\'outils Xen détectés',
|
||||
noIpv4Record: 'Aucune IPv4',
|
||||
noIpRecord: 'Aucune IP',
|
||||
virtualizationMode: 'Mode de virtualisation',
|
||||
// ----- VM stat tab -----
|
||||
statsCpu: 'Utilisation processeur',
|
||||
statsMemory: 'Utilisation mémoire',
|
||||
statsNetwork: 'Débit réseau',
|
||||
statDisk: 'Débit disque',
|
||||
statLastTenMinutes: 'Il y a 10 minutes',
|
||||
statLastTwoHours: 'Il y a 2 heures',
|
||||
statLastWeek: 'La semaine dernière',
|
||||
statLastYear: 'L\'année dernière',
|
||||
// ----- VM console tab -----
|
||||
copyToClipboardLabel: 'Copier',
|
||||
ctrlAltDelButtonLabel: 'Ctrl+Alt+Suppr',
|
||||
tipLabel: 'Conseil :',
|
||||
tipConsoleLabel: 'Les agencements de clavier hors États-Unis ont des problèmes avec la console: passez le votre en "US".',
|
||||
// ----- VM disk tab -----
|
||||
vdiAttachDeviceButton: 'Brancher un disque',
|
||||
vbdCreateDeviceButton: 'Nouveau disque',
|
||||
vdiBootOrder: 'Ordre de démarrage',
|
||||
vdiNameLabel: 'Nom',
|
||||
vdiNameDescription: 'Déscription',
|
||||
vdiTags: 'Tags',
|
||||
vdiSize: 'Taille',
|
||||
vdiSr: 'Stockage',
|
||||
vdbBootableStatus: 'Démarrable ?',
|
||||
vdbBootable: 'Démarrable',
|
||||
vdbNotBootable: 'Non démarrable',
|
||||
vdbStatus: 'Statut',
|
||||
vbdStatusConnected: 'Connecté',
|
||||
vbdStatusDisconnected: 'Déconnecté',
|
||||
vbdNoVbd: 'Pas de disque',
|
||||
// ----- VM network tab -----
|
||||
vifCreateDeviceButton: 'Nouvelle interface',
|
||||
vifNoInterface: 'Aucune interface',
|
||||
vifDeviceLabel: 'Interface',
|
||||
vifMacLabel: 'Adresse physique',
|
||||
vifMtuLabel: 'MTU',
|
||||
vifNetworkLabel: 'Réseau',
|
||||
vifStatusLabel: 'Statut',
|
||||
vifStatusConnected: 'Connecté',
|
||||
vifStatusDisconnected: 'Déconnecté',
|
||||
// ----- VM snapshot tab -----
|
||||
noSnapshot: 'Aucun instantané',
|
||||
snapshotCreateButton: 'Nouvel instantané',
|
||||
tipCreateSnapshotLabel: 'Cliquez sur le bouton pour en créer un !',
|
||||
snapshotDate: 'Date de l\'instantané',
|
||||
snapshotName: 'Nom',
|
||||
snapshotAction: 'Action',
|
||||
// ----- VM log tab -----
|
||||
logRemoveAll: 'Supprimer tous les journaux',
|
||||
noLogs: 'Aucun journal pour l\'instant',
|
||||
logDate: 'Date du journal',
|
||||
logName: 'Nom',
|
||||
logContent: 'Contenu',
|
||||
logAction: 'Action',
|
||||
// ----- VM advanced tab -----
|
||||
uuid: 'Identifiant unique',
|
||||
miscLabel: 'Divers',
|
||||
xenSettingsLabel: 'Paramètres Xen',
|
||||
guestOsLabel: 'Système d\'exploitatation',
|
||||
paraVirtualizedMode: 'Paravirtualisation (PV)',
|
||||
hardwareVirtualizedMode: 'Virtualisation matérielle (HVM)',
|
||||
xenToolsStatus: 'État des outils Xen',
|
||||
xenToolsStatusValue: `{status, select,
|
||||
unknown {Inconnu}
|
||||
up-to-date {À jour}
|
||||
out-of-date {Obsolètes}
|
||||
not-installed {Pas installés}
|
||||
}`,
|
||||
osName: 'Nom du système d\'exploitation',
|
||||
cpuWeightLabel: 'Poids CPU',
|
||||
defaultCpuWeight: 'Par défaut',
|
||||
osKernel: 'Noyau du système d\'exploitation',
|
||||
autoPowerOn: 'Démarrage automatique',
|
||||
ha: 'Haute disponibilité',
|
||||
originalTemplate: 'Modèle d\'origine',
|
||||
unknownOsName: 'Inconnu',
|
||||
unknownOsKernel: 'Inconnu',
|
||||
vmLimitsLabel: 'Limites',
|
||||
vmCpuLimitsLabel: 'Limites processeur',
|
||||
vmMemoryLimitsLabel: 'Limites mémoire',
|
||||
unknownOriginalTemplate: 'Inconnu',
|
||||
// ----- VM placholders -----
|
||||
vmHomeNamePlaceholder: 'Clic long pour ajouter un nom',
|
||||
vmHomeDescriptionPlaceholder: 'Clic long pour ajouter une description',
|
||||
vmViewNamePlaceholder: 'Cliquer pour ajouter un nom',
|
||||
vmViewDescriptionPlaceholder: 'Cliquer pour ajouter une description',
|
||||
|
||||
// ----- Dashboard -----
|
||||
poolPanel: 'Pool{pools, plural, zero {} one {} other {s}}',
|
||||
hostPanel: 'Hôte{hosts, plural, zero {} one {} other {s}}',
|
||||
vmPanel: 'VM{vms, plural, zero {} one {} other {s}}',
|
||||
memoryStatePanel: 'Utilisation mémoire',
|
||||
cpuStatePanel: 'Attribution CPU',
|
||||
srUsageStatePanel: 'Utilisation du stockage',
|
||||
vmStatePanel: 'État des VMs',
|
||||
srStatePanel: 'État du stockage',
|
||||
taskStatePanel: 'Tâches en cours',
|
||||
usersStatePanel: 'Utilisateurs',
|
||||
ofUsage: '{usage} (sur {total})',
|
||||
noSrs: 'Aucun stockage',
|
||||
srName: 'Nom',
|
||||
srPool: 'Pool',
|
||||
srHost: 'Hôte',
|
||||
srFormat: 'Type',
|
||||
srSize: 'Taille',
|
||||
srUsage: 'Utilisation',
|
||||
srTopUsageStatePanel: 'Top 5 d\'utilisation des stockages (en %)',
|
||||
// --- Stats board --
|
||||
weekHeatmapNoData: 'Pas de données.',
|
||||
statsDashboardGenericErrorTitle: 'Erreur stats',
|
||||
statsDashboardGenericErrorMessage: 'Pas de stats disponibles pour :',
|
||||
noSelectedMetric: 'Pas de métrique sélectionnée',
|
||||
statsDashboardSelectObjects: 'Valider',
|
||||
metricsLoading: 'Chargement…',
|
||||
// ----- Health -----
|
||||
orphanedVdis: 'Disques orphelins',
|
||||
orphanedVms: 'VM orphelines',
|
||||
noOrphanedObject: 'Pas d\'orphelin',
|
||||
vmNameLabel: 'Nom',
|
||||
vmNameDescription: 'Description',
|
||||
vmContainer: 'Présent sur',
|
||||
alarmMessage: 'Alarmes',
|
||||
noAlarms: 'Aucune alarme',
|
||||
alarmDate: 'Date',
|
||||
alarmContent: 'Contenu',
|
||||
alarmObject: 'Concernant',
|
||||
alarmPool: 'Pool',
|
||||
alarmRemoveAll: 'Supprimer toutes les alarmes',
|
||||
// ----- New VM -----
|
||||
newVmCreateNewVmOn: 'Créer une nouvelle VM sur {pool}',
|
||||
newVmInfoPanel: 'Informations',
|
||||
newVmNameLabel: 'Nom',
|
||||
newVmTemplateLabel: 'Modèle',
|
||||
newVmDescriptionLabel: 'Description',
|
||||
newVmPerfPanel: 'Performances',
|
||||
newVmVcpusLabel: 'vCPUs',
|
||||
newVmRamLabel: 'RAM',
|
||||
newVmInstallSettingsPanel: 'Paramètres d\'installation',
|
||||
newVmIsoDvdLabel: 'ISO/DVD',
|
||||
newVmNetworkLabel: 'Network',
|
||||
newVmPvArgsLabel: 'PV Args',
|
||||
newVmPxeLabel: 'PXE',
|
||||
newVmInterfacesPanel: 'Interfaces',
|
||||
newVmMacLabel: 'MAC',
|
||||
newVmAddInterface: 'Ajouter une interface',
|
||||
newVmDisksPanel: 'Disques',
|
||||
newVmSrLabel: 'SR',
|
||||
newVmBootableLabel: 'Amorçable',
|
||||
newVmSizeLabel: 'Taille',
|
||||
newVmAddDisk: 'Ajouter un disque',
|
||||
newVmSummaryPanel: 'Résumé',
|
||||
newVmCreate: 'Créer',
|
||||
newVmReset: 'Effacer',
|
||||
newVmSelectTemplate: 'Sélectionner un template',
|
||||
newVmSshKey: 'Clé SSH',
|
||||
newVmCustomConfig: 'Configuration personnalisée',
|
||||
newVmBootAfterCreate: 'Démarrer la VM après sa création',
|
||||
newVmMacPlaceholder: 'Auto-généré si vide',
|
||||
newVmCpuWeightLabel: 'Poids CPU',
|
||||
newVmCpuWeightQuarter: 'Quart (1/4)',
|
||||
newVmCpuWeightHalf: 'Moitié (1/2)',
|
||||
newVmCpuWeightNormal: 'Normal',
|
||||
newVmCpuWeightDouble: 'Double (x2)',
|
||||
newVmCreateVms: 'Créer plusieurs VMs',
|
||||
newVmCreateVmsConfirm: 'Etes-vous sûr de vouloir créer {nbVms} VMs ?',
|
||||
newVmMultipleVms: 'VMs multiples :',
|
||||
|
||||
// ---- VM import ---
|
||||
importVmsList: 'Glissez des backups ici ou cliquez pour sélectionner des backups à envoyer. Accepte seulement les fichiers .xva.',
|
||||
noSelectedVms: 'Pas de VMs sélectionnées.',
|
||||
vmImportToPool: 'Sur le Pool:',
|
||||
vmImportToSr: 'Sur le SR:',
|
||||
vmsToImport: 'VMs à importer',
|
||||
importVmsCleanList: 'Reset',
|
||||
vmImportSuccess: 'Import de VM réussi',
|
||||
vmImportFailed: 'Import de VM échoué',
|
||||
startVmImport: 'Lancement de l\'import…',
|
||||
startVmExport: 'Lancement de l\'export…',
|
||||
// ----- Modals -----
|
||||
stopHostModalTitle: 'Arrêter l\'hôte',
|
||||
stopHostModalMessage: 'Cette action va arrêter l\'hôte. Êtes vous sûr de vouloir continuer ?',
|
||||
restartHostModalTitle: 'Redémarrer l\'hôte',
|
||||
restartHostModalMessage: 'Cette action va redémarrer l\'hôte. Êtes vous sûr de vouloir continuer ?',
|
||||
startVmsModalTitle: 'Démarrer {vms, plural, one {la} other {les}} VM{vms, plural, one {} other {s}}',
|
||||
startVmsModalMessage: 'Voulez-vous vraiment démarrer {vms} VM{vms, plural, one {} other {s}} ?',
|
||||
stopVmsModalTitle: 'Arrêter {vms, plural, one {la} other {les}} VM{vms, plural, one {} other {s}}',
|
||||
restartVmModalTitle: 'Redémarrer la VM',
|
||||
restartVmModalMessage: 'Voulez-vous vraiment redémarrer {name} ?',
|
||||
stopVmModalTitle: 'Arrêter la VM',
|
||||
stopVmModalMessage: 'Voulez-vous vraiment arrêter {name} ?',
|
||||
stopVmsModalMessage: 'Voulez-vous vraiment arrêter {vms} VM{vms, plural, one {} other {s}} ?',
|
||||
restartVmsModalTitle: 'Redémarrer {vms, plural, one {la} other {les}} VM{vms, plural, one {} other {s}}',
|
||||
restartVmsModalMessage: 'Voulez-vous vraiment redémarrer {vms} VM{vms, plural, one {} other {s}} ?',
|
||||
migrateVmModalTitle: 'Migrer la VM',
|
||||
migrateVmAdvancedModalSelectHost: 'Sélectionnez un hôte de destination:',
|
||||
migrateVmAdvancedModalSelectNetwork: 'Sélectionnez un réseau pour la migration:',
|
||||
migrateVmAdvancedModalSelectSrs: 'Pour chaque VDI, sélectionnez un SR:',
|
||||
migrateVmAdvancedModalSelectNetworks: 'Pour chaque VIF, sélectionnez un réseau:',
|
||||
migrateVmAdvancedModalName: 'Nom',
|
||||
migrateVmAdvancedModalSr: 'SR',
|
||||
migrateVmAdvancedModalVif: 'VIF',
|
||||
migrateVmAdvancedModalNetwork: 'Réseau',
|
||||
migrateVmAdvancedModalNoRemapping: 'Migration intra-pool : le re-mappage n\'est pas requis',
|
||||
// ------ Self ------
|
||||
resourceSets: 'Ensemble de ressources',
|
||||
resourceSetName: 'Nom de l\'ensemble de ressources',
|
||||
resourceSetCreation: 'Création and édition',
|
||||
saveResourceSet: 'Sauvegarder',
|
||||
resetResourceSet: 'Effacer',
|
||||
editResourceSet: 'Editer',
|
||||
deleteResourceSet: 'Supprimer',
|
||||
deleteResourceSetWarning: 'Suppression d\'un ensemble de ressources.',
|
||||
deleteResourceSetQuestion: 'Etes-vous sûr de vouloir supprimer cet ensemble ?',
|
||||
resourceSetMissingObjects: 'Objets manquants :',
|
||||
resourceSetVcpus: 'vCPUs',
|
||||
resourceSetMemory: 'Mémoire',
|
||||
resourceSetStorage: 'Stockage',
|
||||
unknownResourceSetValue: 'Inconnu',
|
||||
availableHosts: 'Hôtes disponibles',
|
||||
excludedHosts: 'Hôtes exclus',
|
||||
noHostsAvailable: 'Pas d\'hôtes disponibles.',
|
||||
availableHostsDescription: 'Les VMs crées par cet ensemble de ressources doivent tourner sur les hôtes suivants.',
|
||||
maxCpus: 'Nombre max de CPUs',
|
||||
maxRam: 'Maximum RAM (GiB)',
|
||||
maxDiskSpace: 'Maximum d\'espace disque',
|
||||
totalResource: 'Total :',
|
||||
remainingResource: 'Restants :',
|
||||
usedResource: 'Utilisés :',
|
||||
noResourceSetLimits: 'Pas de limites.',
|
||||
// ----- Copy VM -----
|
||||
copyVm: 'Copier la VM',
|
||||
copyVmConfirm: 'Voulez-vous vraiment copier cette VM sur {SR} ?',
|
||||
copyVmName: 'Nom',
|
||||
copyVmNamePlaceholder: 'Si vide : nom de la VM copiée',
|
||||
copyVmSelectSr: 'Sélectionnez un SR',
|
||||
copyVmCompress: 'Utiliser la compression',
|
||||
// ----- Network -----
|
||||
networkCreate: 'Créer un réseau',
|
||||
deleteNetwork: 'Supprimer le réseau',
|
||||
deleteNetworkConfirm: 'Etes-vous sûr de vouloir supprimer ce réseau ?',
|
||||
// ----- PIF -----
|
||||
connectPif: 'Connecter la PIF',
|
||||
connectPifConfirm: 'Etes-vous sûr de vouloir connecter cette PIF ?',
|
||||
disconnectPif: 'Déconnecter la PIF',
|
||||
disconnectPifConfirm: 'Etes-vous sûr de vouloir déconnecter cette PIF ?',
|
||||
deletePif: 'Supprimer la PIF',
|
||||
deletePifConfirm: 'Etes-vous sûr de vouloir supprimer cette PIF ?'
|
||||
}
|
||||