Compare commits

...

2511 Commits

Author SHA1 Message Date
Olivier Lambert
67b8b15cd8 5.0.6 2016-07-05 19:14:36 +02:00
Pierre Donias
09d80afa69 fix(form/SizeInput): controlled & uncontrolled modes (#1220) 2016-07-05 19:06:28 +02:00
ABHAMON Ronan
c0d95304f6 fix(home): actions depend on the selected type (#1218)
Fix #1153
2016-07-05 18:14:37 +02:00
Olivier Lambert
5a0d67a9f6 feat(vm): allow halted VM migration (#1221)
Fixes #1216
2016-07-05 17:55:49 +02:00
Julien Fontanet
08305b4b93 feat(SortedTable): support rowLink prop 2016-07-05 17:04:55 +02:00
Olivier Lambert
04d5612946 chore(xo): more resolveId (#1217) 2016-07-05 14:41:10 +02:00
Olivier Lambert
3dcb6f1f61 fix(host patch): wrong version check for patching hosts 2016-07-05 13:26:59 +02:00
Olivier Lambert
4e7684e38b feat(actions): add confirms for critical actions (#1215)
Fixes #1211
2016-07-05 13:24:04 +02:00
Fabrice Marsaud
a692b7571f feat(logs): sortable (#1214) 2016-07-05 12:30:03 +02:00
ABHAMON Ronan
a098618efa feat(dashboard/overview): add links to related pages (#1212)
Fixes #1139
2016-07-05 11:10:58 +02:00
Pierre Donias
71381e75f1 fix(migration): intra-pool migration should not send maps (#1213) 2016-07-05 11:10:15 +02:00
Pierre Donias
05b345db4a feat(home): bulk VM copy (#1205)
Fixes #1154.
2016-07-05 10:33:30 +02:00
Julien Fontanet
f85f6eab9e 5.0.5 2016-07-04 19:04:36 +02:00
Julien Fontanet
b6dc8b507d fix(SortedTable): total number of items when collection is a map 2016-07-04 19:03:31 +02:00
ABHAMON Ronan
831308ee05 feat(pool/patches): can patches hosts (#1203)
Fixes #1149
2016-07-04 18:52:39 +02:00
Fabrice Marsaud
eb5bcb759f feat(home): can display pools (#1202)
Fixes #1140
2016-07-04 16:28:41 +02:00
ABHAMON Ronan
8286570811 feat(xo-line-charts): supports sum of stats series (#1197)
Fixes #1158
2016-07-04 16:27:26 +02:00
Pierre Donias
10b511f0ed fix(form/SizeInput): props.defaultValue instead of props.value (#1206) 2016-07-04 15:56:57 +02:00
Julien Fontanet
751e335bc0 5.0.4 2016-07-01 17:53:47 +02:00
Pierre Donias
cb107521f2 feat(migration): smart VIFs-networks mapping (#1195) 2016-07-01 17:10:57 +02:00
Olivier Lambert
e56af57b74 fix(card): minor style change 2016-07-01 17:09:10 +02:00
ABHAMON Ronan
a2a1cbab6e feat(sorted-table): display selected items number (#1200)
Fixes #1133
2016-07-01 17:07:57 +02:00
Pierre Donias
306a021a8d fix(new-vm): make radio buttons controlled (#1199)
Fixes #1198
2016-07-01 16:11:19 +02:00
Julien Fontanet
d8c414af2f fix(getEventValue): returns value prop for radios 2016-07-01 15:47:46 +02:00
Julien Fontanet
ec4c76b2e0 feat(selectors): filter() can be chained after pick() 2016-07-01 15:47:46 +02:00
ABHAMON Ronan
e23b8a6891 feat(dashboard/overview): display missing patches (#1191)
Fixes #1148
2016-07-01 15:28:07 +02:00
Olivier Lambert
34006bcbf6 fix(health): forget to check edition 2016-07-01 14:47:43 +02:00
ABHAMON Ronan
ed9aeabf6a chore(dashboard/health): use Card (#1194) 2016-07-01 11:20:32 +02:00
Fabrice Marsaud
799fc5089f feat(settings/remotes): add button to test a remote (#1192)
Fixes #1075.
2016-07-01 09:25:57 +02:00
Julien Fontanet
683d510aa6 5.0.3 2016-06-30 15:12:26 +02:00
Pierre Donias
ebd7e58f61 feat(home): bulk VM migration (#1187)
Fixes #1146
2016-06-30 15:04:21 +02:00
Fabrice Marsaud
9a498b54ac fix(menu): only display one icon for updates when collapsed (#1190)
Fixes #1188
2016-06-30 15:03:26 +02:00
ABHAMON Ronan
2687f45e6e fix(settings/plugins): set config value to undefined if value is null (#1189) 2016-06-30 14:31:43 +02:00
ABHAMON Ronan
f79a17fcec feat(json-schema-input): generate uiSchema JSON schema (#1182) 2016-06-30 13:52:20 +02:00
ABHAMON Ronan
8fd377d1e2 feat(dashboard/dataviz): parallel coordinates graph (#1174)
Fixes #1157
2016-06-30 11:36:29 +02:00
Olivier Lambert
fda06fbd29 feat(VM/network): VIFs management (#1186)
Fixes #1176
2016-06-30 11:28:25 +02:00
Fabrice Marsaud
cee4378e6d feat(xoa-updates): reload after upgrading (#1183)
Fixes #1131.
2016-06-30 11:26:03 +02:00
Fabrice Marsaud
ab6d342886 fix(VM/network): fix broken propTypes import (#1184) 2016-06-29 17:59:39 +02:00
Fabrice Marsaud
9954c08993 fix(xoa-updates): fix env test (#1181) 2016-06-29 12:16:25 +02:00
Julien Fontanet
3ae80aeab3 feat(link): expose Link and BlockLink components 2016-06-29 11:57:42 +02:00
Julien Fontanet
2a3534f659 chore(utils): do not re-export propTypes 2016-06-29 11:57:42 +02:00
Julien Fontanet
fc39de0d5a chore(sign-in): remove because unused 2016-06-29 11:57:41 +02:00
Julien Fontanet
64e4b79d41 chore(utils/createSimpleMatcher): remove because not used 2016-06-29 11:57:41 +02:00
Fabrice Marsaud
53887da3da feat(VM/network): VIF creation (#1173)
Fixes #1138.
2016-06-28 17:47:44 +02:00
ABHAMON Ronan
7c60d68f56 fix(xo-line-chart): set precision on LoadLineChart (#1175)
Fixes #1167
2016-06-28 17:17:46 +02:00
Julien Fontanet
2ac1b991b1 feat(BaseComponent#_linkedState): only allocate when necessary 2016-06-28 15:56:53 +02:00
Julien Fontanet
8257714cdb feat(get-event-value): works with checkbox/radio/select 2016-06-28 15:56:53 +02:00
Julien Fontanet
1b8bacbf5a chore(utils/autobind): remove in favor of ES7 class properties syntax 2016-06-28 15:56:52 +02:00
Julien Fontanet
1d5b84389d chore(utils): do not re-export invoke 2016-06-28 15:56:51 +02:00
Julien Fontanet
f7dcf52977 chore(utils/If): remove because does not work 2016-06-28 15:03:34 +02:00
Julien Fontanet
e26dd5147a feat(BaseComponent#linkState): creates a callback associated to a state entry 2016-06-28 14:56:51 +02:00
Julien Fontanet
bb8f96c2e2 5.0.2 2016-06-28 14:38:13 +02:00
Julien Fontanet
95d4cc9055 chore(README): master → stable 2016-06-28 14:37:14 +02:00
Julien Fontanet
cb84a85f8b chore(package): make package publishable 2016-06-28 14:36:32 +02:00
Pierre Donias
0a8aa2ecf5 feat(user): better UI and password edition (#1165)
Fixes #1127
2016-06-28 14:32:02 +02:00
Julien Fontanet
5941321e84 fix(intl/locales): Spanish is es, not sp 2016-06-28 14:15:11 +02:00
Julien Fontanet
8cf62280f4 feat(intl/locales/sp): initial file 2016-06-28 14:13:21 +02:00
Olivier Lambert
4cea142b57 fix(tasks): improve the task view (#1166)
Fixes #1147
2016-06-28 12:31:25 +02:00
Fabrice Marsaud
64d9245bc4 fix(settings/users): correctly set default permission value (#1170)
Fixes #1159
2016-06-28 11:49:04 +02:00
Fabrice Marsaud
2d78c0c4c3 fix(backup/restore): ignore incorrectly formatted files (#1163)
Fixes #1164
2016-06-28 11:19:54 +02:00
Pierre Donias
aa585e2d25 fix(home): always use advanced migration modal (#1137) 2016-06-27 16:15:52 +02:00
Julien Fontanet
325ab17dcc chore(xo): prefix local function call with _ 2016-06-27 16:04:54 +02:00
Pierre Donias
443ea44bcd fix(new/vm): default custom cloud config (#1125) 2016-06-27 15:21:20 +02:00
Pierre Donias
07958d8efa fix(vms/new): gracefully handle missing objects (#1124) 2016-06-27 15:20:05 +02:00
Olivier Lambert
f19affe599 fix: better SR predicate (#1122) 2016-06-27 15:15:46 +02:00
Julien Fontanet
f7b7c27b6c fix(host/storage): use long clicks for SR name edition 2016-06-25 09:10:22 +02:00
Julien Fontanet
c7af5b384c fix(xo/editSr): use camel case param
Fixes #1116
2016-06-25 09:09:12 +02:00
Olivier Lambert
436a9dfc14 5.0.1 2016-06-25 07:09:43 +02:00
Olivier Lambert
1d6d8ccb28 fix(ACLs): are available from Enterprise (#1117) 2016-06-25 01:09:06 +02:00
Julien Fontanet
7d0862ecfd fix(disclaimer): only from sources (#1119) 2016-06-25 01:08:18 +02:00
Julien Fontanet
7de059919b Merge branch 'v5.x' into next-release 2016-06-24 18:22:54 +02:00
Julien Fontanet
dfd1fb86cb chore(tab-button): inline props 2016-06-24 14:05:15 +02:00
ABHAMON Ronan
847a92433f fix(host/storage): use TabButtonLink instead of Link (#1113) 2016-06-24 14:04:02 +02:00
Pierre Donias
53af4df47b feat(vms/new): fixes and multiple VMs creation (#1098) 2016-06-24 14:02:24 +02:00
Olivier Lambert
09db7c999e fix(he i18n): fix missing space 2016-06-24 14:01:50 +02:00
Denis Kalitviansky
1b4c958aba feat(i18n): Hebrew (#1112) 2016-06-24 13:44:05 +02:00
Fabrice Marsaud
9368d5df01 fix(backup/edit) (#1110) 2016-06-24 13:42:46 +02:00
Olivier Lambert
f3b5026190 fix(ACLs): update views to behave with missing objects (#1111) 2016-06-24 12:53:18 +02:00
ricardovilarinho
19dcd81639 feat(i18n): more Portugese (#1106) 2016-06-24 12:46:37 +02:00
Julien Fontanet
d38c171151 fix(home): add missing key prop 2016-06-24 11:53:32 +02:00
Julien Fontanet
af3049925f fix(SingleLineRow): behave with falsy children 2016-06-24 11:46:39 +02:00
Julien Fontanet
a79825d18c feat(menu): add some entries to non-admins 2016-06-24 11:20:22 +02:00
Olivier Lambert
c4b456b470 fix(home): broken OpenSource modal due to bad intl import 2016-06-24 11:15:09 +02:00
Julien Fontanet
ccdf28767a fix(build): various issues
- missing assets with npm run build
- some files had source maps even though it did not make sense
2016-06-24 11:05:14 +02:00
ABHAMON Ronan
2561f7d793 fix(home/storage): "add a storage" link style & label (#1109) 2016-06-24 10:52:36 +02:00
Fabrice Marsaud
57bd8c1a49 fix(settings/users): permission when creating user (#1108) 2016-06-24 09:58:38 +02:00
Julien Fontanet
8387e4ae04 chore(intl): remove unused messages 2016-06-23 20:03:41 +02:00
Julien Fontanet
5c02935017 fix(user): correctly select current lang 2016-06-23 20:01:56 +02:00
Julien Fontanet
726ffb9b1b feat(store): save lang in cookie 2016-06-23 19:59:18 +02:00
Olivier Lambert
5dcc3f4076 fix(i18n): various mistakes 2016-06-23 19:27:35 +02:00
Fabrice Marsaud
4639d7872f feat(backup/restore): translation (#1105) 2016-06-23 17:52:26 +02:00
Pierre Donias
71cb6af8c4 fix(intl): confirmOK, confirmCancel and alertOk (#1104) 2016-06-23 17:46:28 +02:00
Fabrice Marsaud
52060301bd feat(logs): use SortedTable (#1099) 2016-06-23 17:43:14 +02:00
Olivier Lambert
dfa3e6d8e4 feat(changelog): adding changelog file and changes for 5.0.0 2016-06-23 17:41:42 +02:00
ABHAMON Ronan
f38f3fe5c9 fix(self): message if no resource sets (#1100) 2016-06-23 17:13:47 +02:00
Fabrice Marsaud
24bf031270 feat(menu): add updater status icon (#1103) 2016-06-23 17:11:25 +02:00
ABHAMON Ronan
eeadd72e1f feat(host/storage): add button redirect to new/sr page (#1097) 2016-06-23 16:45:36 +02:00
ricardovilarinho
e4139bab04 Initial work on portuguese translation (#1102) 2016-06-23 16:34:50 +02:00
Fabrice Marsaud
7c7205849b feat(backup/restore): display number of backups per VM (#1101) 2016-06-23 16:24:36 +02:00
ABHAMON Ronan
03b2b13f14 feat(dashboard/stats): add weekly charts (#1093) 2016-06-23 15:53:44 +02:00
Olivier Lambert
8caf9f7fde feat(locales): add i18n PT and HE files 2016-06-23 15:50:19 +02:00
Julien Fontanet
5b8a5ac6b6 fix(create-locale): remove trailing comma 2016-06-23 15:43:34 +02:00
Julien Fontanet
4429bed1cf fix(intl/messages): xenToolsStatusValue description 2016-06-23 15:25:12 +02:00
Julien Fontanet
b9beda3484 fix(intl): export messages 2016-06-23 15:21:31 +02:00
Julien Fontanet
354c9bc927 feat(create-locale): tool to scaffold a new locale 2016-06-23 15:06:28 +02:00
Julien Fontanet
a2d88f7fbf chore(intl): split messages data 2016-06-23 15:05:53 +02:00
Olivier Lambert
83cad000e7 feat(job new): i18n 2016-06-23 12:30:29 +02:00
Fabrice Marsaud
1b78791aa9 feat(groups,users): UI improvements (#1094) 2016-06-23 12:20:17 +02:00
Olivier Lambert
2b05fbf6a0 feat(pool network): i18n 2016-06-23 12:17:59 +02:00
Olivier Lambert
7b677cddaf feat(jobs): xoa plans for jobs feature 2016-06-23 11:03:03 +02:00
Olivier Lambert
18a8fcaa70 feat(newSr,pool,updates): i18n 2016-06-23 10:46:27 +02:00
ABHAMON Ronan
dd1bc757d5 fix(SortedTable): better pagination/filter alignment (#1095) 2016-06-23 10:44:35 +02:00
Olivier Lambert
27ca0fdfcc fix(home): broken link for new VM button 2016-06-22 17:46:30 +02:00
Olivier Lambert
578de05a40 feat(logs): i18n 2016-06-22 17:38:31 +02:00
Olivier Lambert
cd3e1d6bd4 feat(job): i18n 2016-06-22 17:23:37 +02:00
Julien Fontanet
de160bb51b feat(xo): make all calls wait for authentication 2016-06-22 17:12:56 +02:00
ABHAMON Ronan
14417e14c0 fix(vm/snapshots): use ButtonGroup with action buttons (#1096) 2016-06-22 17:02:32 +02:00
Olivier Lambert
f2d8b4e444 feat(dashboard): i18n 2016-06-22 16:55:47 +02:00
Olivier Lambert
b7c41fee28 feat(restore backup): i18n 2016-06-22 16:35:15 +02:00
Olivier Lambert
4f0678d6a2 fix(new backup): forgotten i18n for reset word 2016-06-22 15:41:25 +02:00
Olivier Lambert
880c624935 feat(xoa-upgrade): i18n 2016-06-22 15:22:17 +02:00
Olivier Lambert
0fa0902262 feat(about): i18n 2016-06-22 15:12:07 +02:00
Fabrice Marsaud
a2ab3ccaee feat(jobs/scheduling) (#1032) 2016-06-22 14:51:37 +02:00
Fabrice Marsaud
77a0d1c2ff feat(settings/acls): use SortedTable (#1090) 2016-06-22 14:26:30 +02:00
Olivier Lambert
7fdb022819 feat(backup restore): more explicit restore operation 2016-06-22 12:02:04 +02:00
Fabrice Marsaud
878a630b69 feat(backup/restore): better UI (#1081) 2016-06-22 11:41:50 +02:00
Pierre Donias
fbcfc69983 feat(host,pool): network management (#1084) 2016-06-22 10:01:51 +02:00
Olivier Lambert
a1bd327524 feat(about): hide xo version numbers for non admin users. Fix #877 2016-06-21 17:42:38 +02:00
Olivier Lambert
e62829debd fix(new-vm): using 'state' and not 'this' for SSH cloudConfig 2016-06-21 16:51:00 +02:00
Julien Fontanet
d9d669964f fix(xo/attachDiskToVm): camel casing and params order 2016-06-21 15:36:02 +02:00
Julien Fontanet
ced17b632a fix(editable/Text): do not add all props to the input element 2016-06-21 14:55:16 +02:00
Olivier Lambert
0aada62a5a feat(host,vm): use SortedTable for VM and host logs 2016-06-21 14:01:49 +02:00
Julien Fontanet
2fece7a8fe perf(selectors/createGetObjectMessages): better input dependency 2016-06-21 13:52:07 +02:00
Julien Fontanet
6680373c76 fix(VM/Logs): use correct selector creator 2016-06-21 13:52:07 +02:00
Olivier Lambert
68ae43fd72 feat(vm): add ISO disk drive selector in VM disk view 2016-06-21 13:40:47 +02:00
Julien Fontanet
6b6f452d06 feat(VM/Advanced): can edit number of current CPUs 2016-06-21 12:13:20 +02:00
Greenkeeper
7153ff17e8 chore(package): update modular-css to version 0.22.1 (#1087)
https://greenkeeper.io/
2016-06-21 09:16:12 +02:00
Pierre Donias
0fde5a1b3d fix(new-vm): network instead of $network (#1085) 2016-06-20 17:17:08 +02:00
Julien Fontanet
b17fbdd19b fix(SortedTable): correctly pass a selector to createFilter. 2016-06-20 17:05:23 +02:00
Julien Fontanet
61ae522486 chore(xo): remove test function plop 2016-06-20 17:05:23 +02:00
Olivier Lambert
bd414ae9f2 fix(new-vm): send VDI id for ISO, stringify device for VDI 2016-06-20 15:36:59 +02:00
Olivier Lambert
7579db5876 feat(host): use SortedTable for patches (#1083) 2016-06-20 14:21:20 +02:00
Julien Fontanet
994ce8dab2 fix(log-error): add missing file 2016-06-20 13:12:46 +02:00
Julien Fontanet
e8a84dce7d chore(xo/purgePluginConfiguration): remove unused try/catch. 2016-06-20 13:11:24 +02:00
Julien Fontanet
fdca9eda90 fix(xo): display next connection attempt as warning 2016-06-20 13:11:24 +02:00
Julien Fontanet
e007009a00 feat(xo): logs all call errors 2016-06-20 13:11:24 +02:00
Julien Fontanet
1d5cc209dd feat(log-error): properly display an error in the console 2016-06-20 13:11:24 +02:00
Pierre Donias
09b18e1563 fix(vms/new): Display VDIs instead of SRs in ISO/DVD selector (#1082) 2016-06-20 09:53:00 +02:00
Fabrice Marsaud
363db0edea Create or attach disk and a VM, and change boot order with Drag&Drop (#1067)
* feat(vm): add & attach disks, boot order

* chore(vm): fix issues and use correct selectors predicates for SR/disks
2016-06-17 18:53:06 +02:00
Olivier Lambert
e500240a35 feat(visualizations): add a coming soon message 2016-06-17 17:48:46 +02:00
Pierre Donias
6694977b87 fix(form/Select): set a minimum width (#1080) 2016-06-17 15:23:45 +02:00
Pierre Donias
b173dc1f28 fix(Page): fix height (#1079) 2016-06-17 14:56:05 +02:00
Pierre Donias
aa91f5649f fix(vms/new): text field to set the cloud configuration (#1077) 2016-06-17 11:59:06 +02:00
ABHAMON Ronan
74efd563ab feat(xo-week-heatmap) (#1064) 2016-06-17 11:27:15 +02:00
Pierre Donias
b0b389fb4d fix(dashboard/overview): lint (#1078) 2016-06-17 11:26:32 +02:00
Pierre Donias
e2d9131a07 feat(react-novnc): support clipboard (#1076) 2016-06-16 17:43:23 +02:00
Olivier Lambert
3b1c8216b9 feat(home): more info density on large screens 2016-06-16 17:00:03 +02:00
Julien Fontanet
7f259a43cf fix(home): handle disappearing filter during life 2016-06-16 15:28:32 +02:00
Julien Fontanet
874a504df3 feat(home): can display hosts 2016-06-16 15:09:08 +02:00
Julien Fontanet
6a4c6318e3 fix(form/Toggle): controlled/uncontrolled issues 2016-06-16 11:06:14 +02:00
Julien Fontanet
09bf2b87dc feat(form/Toggle): move into its own module 2016-06-16 11:05:36 +02:00
Olivier Lambert
9c5c9838ae chose(vm,host): use value for toggle 2016-06-16 10:47:15 +02:00
Olivier Lambert
3924033d9a feat(settings): read-only for server connection (#1074) 2016-06-15 18:00:31 +02:00
ABHAMON Ronan
d81e45e456 feat(IsoDevice) (#1071) 2016-06-15 17:42:15 +02:00
Pierre Donias
631a762b56 feat(host/tab-storage): each row of the table is a link to the storage (#1073) 2016-06-15 17:10:35 +02:00
Julien Fontanet
a9cf79942f feat(form/Toggle): can be used as a controlled component 2016-06-15 17:03:06 +02:00
Julien Fontanet
bd31476933 fix(Tooltip): fix import 2016-06-15 17:00:51 +02:00
Julien Fontanet
9b9e4c2ffa fix(select-objects): remove unused import 2016-06-15 16:44:48 +02:00
Julien Fontanet
ec93daac7e feat(Tooltip): accept a className prop 2016-06-15 16:08:03 +02:00
Julien Fontanet
3431b2dfb1 fix(Tooltip): stricter propTypes for children prop 2016-06-15 16:05:45 +02:00
Julien Fontanet
4270abaf1c feat(Tooltip): children prop is optional 2016-06-15 16:05:45 +02:00
Julien Fontanet
0bd288afbd feat(Tooltip): support a tagName prop 2016-06-15 16:05:45 +02:00
Julien Fontanet
b72d5d50a1 feat(select-objects/SelectTag): accept an objects prop 2016-06-15 16:05:45 +02:00
Pierre Donias
d51889c233 feat(utils/BlockLink): Ctrl-click or middle mouse click to open in new tab (#1070) 2016-06-15 14:29:29 +02:00
Olivier Lambert
332b093ee9 feat(copyVM): include Edition check 2016-06-15 13:10:53 +02:00
Pierre Donias
8be332208f feat(xo): copyVm() (#1069) 2016-06-15 11:51:35 +02:00
ABHAMON Ronan
85d1188628 feat(react-novnc): can send Ctrl+Alt+Del (#1068) 2016-06-15 11:28:44 +02:00
Julien Fontanet
56896996c3 feat(selectors/createGetObjectsOfType): type can be a selector 2016-06-15 10:32:21 +02:00
Julien Fontanet
896374e069 feat(selectors/createSortForType): type can be a selector 2016-06-15 10:32:21 +02:00
Julien Fontanet
ac36505fb2 fix(home): remove extranous space in filter 2016-06-15 10:32:21 +02:00
Julien Fontanet
d36df1a8ae chore(home): move VmItem in its own module 2016-06-15 10:32:21 +02:00
ABHAMON Ronan
edd939c069 feat(react-novnc): auto reconnect (#1065) 2016-06-15 10:04:41 +02:00
Olivier Lambert
f80225ba54 feat(updates): current version in updater view 2016-06-14 18:48:39 +02:00
Olivier Lambert
3ccd87b369 fix(self): use formatSize for human readable disk and RAM available 2016-06-14 18:08:32 +02:00
ABHAMON Ronan
59d3dd9255 feat(vm): VM export (#1066) 2016-06-14 17:27:57 +02:00
Pierre Donias
392f08059d feat(vms/new): VM creation page (#1058) 2016-06-14 17:05:10 +02:00
Julien Fontanet
0d5c9a2bba feat(home): connect pools/hosts/tags selects 2016-06-14 16:39:10 +02:00
Julien Fontanet
f27de8015b feat(complex-matcher): -addPropertyClause, +getPropertyClausesStrings, +setPropertyClause 2016-06-14 16:39:10 +02:00
Julien Fontanet
3b7bdee814 fix(complex-matcher/parse): do not fail on empty input 2016-06-14 16:39:10 +02:00
Julien Fontanet
397ed9d581 feat(complex-matcher): $ char is allowed in raw strings 2016-06-14 16:39:10 +02:00
Julien Fontanet
a098880669 fix(selectors/createGetTags): make it work for real :) 2016-06-14 16:39:10 +02:00
Julien Fontanet
047d4cb650 fix(select-objects/SelectTags): fix label 2016-06-14 16:39:10 +02:00
Julien Fontanet
736904c579 feat(select-objects): can be used as controlled inputs 2016-06-14 16:39:10 +02:00
Olivier Lambert
e883c668b5 feat(XOA): VM import / backups (#1063) 2016-06-14 15:29:47 +02:00
Julien Fontanet
14181aa8a7 fix(selectors): fix pool ordering 2016-06-14 11:53:08 +02:00
Olivier Lambert
0b1ba99afa feat(XOA): Free edition(#1062) 2016-06-14 10:44:44 +02:00
Olivier Lambert
88a6215939 feat(health): use SortedTable (#1057) 2016-06-13 12:08:58 +02:00
Greenkeeper
d5ebd33038 chore(package): update globby to version 5.0.0 (#1056)
https://greenkeeper.io/
2016-06-13 09:47:34 +02:00
ABHAMON Ronan
b2ac214c0f feat(form/Select): advanced virtualized select implementation (#1052) 2016-06-13 09:44:38 +02:00
Olivier Lambert
3dee41a511 feat(tasks): better task view. (#1055)
* feat(tasks): better task view
2016-06-10 17:26:30 +02:00
ABHAMON Ronan
934818c07d feat(backup/new): disaster recovery accept an SR (#1054)
Fixes #955
2016-06-10 15:49:21 +02:00
Pierre Donias
4dc614a58e fix(ActionButton): oneOfType expects an array (#1053) 2016-06-10 15:42:02 +02:00
Greenkeeper
35ea095b75 chore(package): update chartist-plugin-legend to version 0.3.1 (#1051)
https://greenkeeper.io/
2016-06-10 12:59:01 +02:00
Olivier Lambert
ae1a4c73b3 fix(issue template): use the word "current" instead of "actual" 2016-06-09 22:21:50 +02:00
ABHAMON Ronan
b58dbe89be feat(vms/import) (#1045) 2016-06-09 17:58:12 +02:00
ABHAMON Ronan
1b4551b622 fix(SortedTable): select first page when changing filter (#1050) 2016-06-09 16:57:30 +02:00
Fabrice Marsaud
72a8f819d3 fix(backup/overview): fix display pending jobs (#1049) 2016-06-09 15:01:27 +02:00
ABHAMON Ronan
df8e16379c fix(select-objects): remove option margin when no containers (#1047) 2016-06-09 14:15:06 +02:00
Julien Fontanet
7dbbc7e25c fix(invoke): fix optim when called without args 2016-06-09 13:36:07 +02:00
Julien Fontanet
1eaae70adb feat(editable/Text): support validation related props 2016-06-09 13:36:07 +02:00
Julien Fontanet
d4a61782c4 chore(menu): menu prefix for icons is optional 2016-06-09 13:35:12 +02:00
Fabrice Marsaud
0e39c6f895 fix(SelectRemote) (#1046) 2016-06-09 12:26:31 +02:00
Fabrice Marsaud
fcc3ede485 fix(settings/remotes): use file type instead of local (#1044) 2016-06-09 10:45:18 +02:00
Fabrice Marsaud
f001e7e713 xo-remote-parser 0.2 2016-06-09 10:28:13 +02:00
Olivier Lambert
3fb8fae821 feat(selectHost): display hostname directly. Continue to group per pools 2016-06-09 10:13:37 +02:00
Fabrice Marsaud
349f3185c5 feat(settings/remotes): edition (#1040) 2016-06-08 17:24:41 +02:00
Olivier Lambert
b457b8409f feat: most of the views now have a header (#1042) 2016-06-08 17:07:43 +02:00
Olivier Lambert
c61e5e1ac8 feat(health): use sorted Table for alarms (#1041) 2016-06-08 15:42:39 +02:00
ABHAMON Ronan
9e60f9d9fd feat(SortedTable): add filter (#1039) 2016-06-08 14:48:34 +02:00
ABHAMON Ronan
a95d40078f feat(SortedTable): pagination can be injected in a container (#1038) 2016-06-08 10:11:18 +02:00
Julien Fontanet
515798bd9f feat(selectors): filter objects by permissions 2016-06-07 16:45:32 +02:00
Julien Fontanet
20b28135a3 chore(store): do not connect to XOA updaters in Sources plan 2016-06-07 15:57:46 +02:00
Julien Fontanet
33d2b8bbeb chore(dev-tools): move into store 2016-06-07 15:57:46 +02:00
Julien Fontanet
7c2059af2b fix(xoa-updater/blockXoaAccess): typo 2016-06-07 15:57:46 +02:00
ABHAMON Ronan
1e0f57bd1a feat(SortedTable): support pagination (#1036) 2016-06-07 14:07:29 +02:00
Olivier Lambert
9484f1dbe6 fix(new sr): wrong URL for srs view 2016-06-07 10:29:06 +02:00
Julien Fontanet
658766c9e4 fix(home): fix variable name 2016-06-07 10:22:25 +02:00
Julien Fontanet
9e47d9acf1 chore(migrate-vm-modal): move into xo 2016-06-06 15:37:04 +02:00
Julien Fontanet
5a1247c021 chore(selectors): getAreObjectsFecthed() → areObjectsFetched() 2016-06-06 15:30:50 +02:00
Julien Fontanet
a8b7972f3c chore: use Container instead of .container-fluid 2016-06-06 14:31:26 +02:00
Fabrice Marsaud
836c2127f7 chore(backup/restore): refactor using render-xo-item (#1023) 2016-06-06 14:28:24 +02:00
Olivier Lambert
6cef200aed feat(menu,about): set content depending on XOA plan (#1033) 2016-06-06 14:21:02 +02:00
Julien Fontanet
c9c80b1d62 fix(xoa-updater): fix import lodash/forEach 2016-06-06 13:45:55 +02:00
Julien Fontanet
04328bc2d1 fix(new/sr): fix import lodash/trim 2016-06-06 13:45:39 +02:00
Julien Fontanet
d909d0eeeb fix(package): update xo-remote-parser to 0.2.1 2016-06-06 13:39:22 +02:00
Julien Fontanet
80f5e913ec chore(users) 2016-06-06 11:28:35 +02:00
Julien Fontanet
57eca31a9c feat(utils/addSubscriptions): decorator to inject subscriptions 2016-06-06 11:28:35 +02:00
Julien Fontanet
c645fc7ad1 feat(utils/connectStore): can handle an object of selectors 2016-06-06 11:28:35 +02:00
Julien Fontanet
78b524b2e8 chore: always user selector to access state 2016-06-06 11:28:35 +02:00
Fabrice Marsaud
1ff1b6931b feat(xoa-updater): initial integration (#952) 2016-06-06 11:23:57 +02:00
Olivier Lambert
29ac883616 feat(xo-app,home): add nice loading icon 2016-06-03 22:22:56 +02:00
Julien Fontanet
467a147603 fix(grid/Row): remove flex which broke columns collapse 2016-06-03 20:36:13 +02:00
Julien Fontanet
7b49b6304c fix(xo-app): fix body scrolling 2016-06-03 20:35:00 +02:00
Olivier Lambert
25991027b9 fix(home): links to import and restore 2016-06-03 19:48:45 +02:00
Olivier Lambert
fce83dfa66 chore(home): text outside links 2016-06-03 19:27:36 +02:00
Olivier Lambert
8603d5d468 feat(home): using card component 2016-06-03 19:15:52 +02:00
Julien Fontanet
bd17f85140 chore(home): do not use btn class on links 2016-06-03 17:56:00 +02:00
Julien Fontanet
037dddb945 fix(messages): fix a typo 2016-06-03 17:52:15 +02:00
Julien Fontanet
dd2151e611 fix(grid/Col): should always have a class 2016-06-03 17:51:56 +02:00
Julien Fontanet
a1e0cdadd6 fix(xo-app): do not set flex on the body container 2016-06-03 17:51:34 +02:00
Julien Fontanet
8d36efa66c chore(Col): do not set the size when full width 2016-06-03 17:35:41 +02:00
Julien Fontanet
b9a12a6dcc feat(Debug): can display promises 2016-06-03 17:24:56 +02:00
Olivier Lambert
08e4fe9990 feat(about): add about info (#1031) 2016-06-03 17:24:07 +02:00
ABHAMON Ronan
2333fec181 feat(SortedTable) (#1030) 2016-06-03 17:22:22 +02:00
Olivier Lambert
05676a78e3 feat(home): handle loading, no servers or no VMs (#1028) 2016-06-03 16:35:55 +02:00
Julien Fontanet
02aaae240c feat(CenterPanel): to use when no data for instance 2016-06-03 11:30:48 +02:00
Julien Fontanet
158924fe3c chore(xo-app): remove unnecessary style 2016-06-03 10:17:36 +02:00
Julien Fontanet
0341b926b9 chore(xo-app/page): move styles to CSS module 2016-06-03 10:12:03 +02:00
Julien Fontanet
69d1f93ea4 feat(xo-app): remove body padding 2016-06-03 10:11:03 +02:00
Julien Fontanet
423fb56ae0 fix(reducers): add missing change 2016-06-02 18:25:48 +02:00
Julien Fontanet
c5fc8d437f fix(selectors/getAreObjectsFetched): previous test was not good enough 2016-06-02 18:24:44 +02:00
Julien Fontanet
0811addf9c fix(selectors/getAreObjectsFetched): use the correct test 2016-06-02 18:18:31 +02:00
Julien Fontanet
e6f8108dc0 feat(selectors/getAreObjectsFetched) 2016-06-02 18:06:20 +02:00
Julien Fontanet
4aa4a8c75d feat(Servers): add spaces in creation form 2016-06-02 18:03:27 +02:00
Julien Fontanet
bbe0467d16 feat(Server): use editable/Password 2016-06-02 18:03:27 +02:00
Julien Fontanet
88ca69138b feat(Server): use ActionRowButton 2016-06-02 18:03:27 +02:00
Julien Fontanet
6a0d9c8805 feat(Users): use ActionButton as submit 2016-06-02 18:01:01 +02:00
Julien Fontanet
1a57f9f134 feat(Users): use ActionRowButton 2016-06-02 18:01:01 +02:00
Julien Fontanet
109aedd3ae feat(ActionButton): redirectOnSuccess can be a function 2016-06-02 18:01:01 +02:00
ABHAMON Ronan
bd9f9344e5 fix(backup jobs): edition (#1026) 2016-06-02 15:23:26 +02:00
ABHAMON Ronan
5190873e99 fix(json-schema-input): correctly handle optional array/object (#1027)
Fixes #1000.
2016-06-02 15:17:51 +02:00
Julien Fontanet
c5fe7eb0dd chore(Groups): remove unused import 2016-06-02 13:51:05 +02:00
Fabrice Marsaud
fef1b14d69 fix a xo fn 2016-06-02 13:48:05 +02:00
Julien Fontanet
472fc02533 feat(Groups): use editable/Text for name 2016-06-02 13:47:39 +02:00
Julien Fontanet
ed29524cf3 fix(xo): resolveIds handles non objects 2016-06-02 13:46:50 +02:00
Julien Fontanet
69f35436c2 feat(form/Password): enableGenerator defaults to false 2016-06-02 13:46:19 +02:00
Fabrice Marsaud
a0ca1cddb5 feat(ACLs) (#1011) 2016-06-02 13:19:35 +02:00
Greenkeeper
be4ffd8308 chore(package): update notifyjs to version 2.0.1 (#1025)
https://greenkeeper.io/
2016-06-02 12:04:35 +02:00
Julien Fontanet
8e246f08ee fix(xo subscriptions): fix running condition 2016-06-02 11:45:24 +02:00
Julien Fontanet
73eda65300 fix(xo subscriptions): wait for previous call to finish 2016-06-02 10:32:50 +02:00
Julien Fontanet
be4df02844 fix(README): fix XOA_PLAN example 2016-06-02 10:27:47 +02:00
Julien Fontanet
7de461319f feat(XOA_PLAN): environment var for different builds 2016-06-02 10:25:58 +02:00
Olivier Lambert
970fc16aab feat(vm): working VDI live migration 2016-06-01 18:35:09 +02:00
Olivier Lambert
5db2c5804d fix(backup): typo for button size 2016-06-01 17:41:05 +02:00
Olivier Lambert
6c2924a08a fix(backup): typo in button style 2016-06-01 17:41:05 +02:00
Pierre Donias
32511fe6a0 feat(editable/XoSelect) (#1020) 2016-06-01 17:22:39 +02:00
Olivier Lambert
94d5b0f083 chore(backup): use the appropriate components 2016-06-01 17:22:25 +02:00
Julien Fontanet
0e957b9566 fix(renderXoItemFromId): handle missing object 2016-06-01 17:01:53 +02:00
Julien Fontanet
ec93f21f0a fix(renderXoItemFromId): fix incorrect var name 2016-06-01 17:01:41 +02:00
Julien Fontanet
bbc4f3beb4 chore(xo): move subscription refreshes in related methods 2016-06-01 16:54:21 +02:00
Julien Fontanet
c271a25a51 feat(selectors/createFilter): if predicate is false, empty collection is returned 2016-06-01 16:35:09 +02:00
Julien Fontanet
c986bf0c46 chore(common): group multiple-files modules in dirs 2016-06-01 16:35:09 +02:00
ABHAMON Ronan
6f994b75e5 feat(backups): deletion & redirect after creation (#1019) 2016-06-01 16:30:40 +02:00
Olivier Lambert
a227039260 feat(vm): allow VDI remove, forget and disconnect 2016-06-01 14:37:00 +02:00
Pierre Donias
ee38c07a3f feat(form/SizeInput): new component for size input (#1017) 2016-06-01 11:15:05 +02:00
ABHAMON Ronan
9678ebd71e chore(select-objects): major refactoring (#1001) 2016-06-01 10:43:38 +02:00
Pierre Donias
82ce0d3461 feat(vm): redirect to home page when VM no longer exists (#1018)
feat(vm): redirect to home page when VM no longer exists
2016-05-31 18:39:03 +02:00
Olivier Lambert
8315c79ef7 feat(host): display the date for license expiry value 2016-05-31 17:25:35 +02:00
Olivier Lambert
69cb6d30b5 feat(VM): VDIs edition (#1015) 2016-05-31 12:27:16 +02:00
Julien Fontanet
f4beef514e fix(xo subscriptions): do not notify if no results yet 2016-05-31 09:16:52 +02:00
Olivier Lambert
f002677134 feat(vm,host): use copiable 2016-05-30 18:48:54 +02:00
Olivier Lambert
6270d2d3af feat(sr,host): add actions on PBDs (#1010) 2016-05-30 18:35:14 +02:00
Julien Fontanet
83625e4ba7 fix(editable/Number): ensure onChange gets a number 2016-05-30 18:21:42 +02:00
Julien Fontanet
d039112b5b feat(xo subscription): notify ASAP when data available 2016-05-30 17:14:24 +02:00
Julien Fontanet
d8481af288 feat(xo subscription): only notify on changes 2016-05-30 17:14:24 +02:00
Julien Fontanet
ea902c1073 fix(xo subscriptions): do not refresh if no subscribers 2016-05-30 17:14:24 +02:00
Julien Fontanet
db62c18a39 fix(xo subscriptions): avoid potential race condition
The subscription could still be active if all the subscriber
unsubscribed at the event reception.
2016-05-30 17:14:24 +02:00
Julien Fontanet
d004e2f759 feat(Copiable) 2016-05-30 17:14:24 +02:00
Julien Fontanet
1f7e457c64 fix(editable/Number): fix size when starting edition 2016-05-30 15:04:52 +02:00
Julien Fontanet
4eae9398d8 fix(editable): fix undo button 2016-05-30 14:58:11 +02:00
Olivier Lambert
4766121570 chore(migrate modal): remove useless message and i18n 2016-05-30 14:57:02 +02:00
Olivier Lambert
3180641e33 feat(sr): add usage and free space 2016-05-30 14:22:53 +02:00
Julien Fontanet
9273002905 ùchore(Tasks): remove unused import 2016-05-30 12:47:59 +02:00
Julien Fontanet
3fc9c5ec90 feat(Tasks): basic tasks list 2016-05-30 12:42:22 +02:00
Julien Fontanet
3266cea1d6 chore(package): update react-router to version 3.0.0-alpha.1 2016-05-30 12:41:52 +02:00
Julien Fontanet
97839c06dc chore(Menu): remove incorrect log 2016-05-30 11:58:32 +02:00
Olivier Lambert
304f290e42 feat(Menu): add tasks link (#1005) 2016-05-30 11:40:35 +02:00
Julien Fontanet
52a241f300 chore(ActionToggle): use btnStyle prop 2016-05-30 10:41:32 +02:00
Julien Fontanet
1c1ea0dcc4 chore(Menu): clean up resize handler code a bit 2016-05-30 10:41:32 +02:00
Julien Fontanet
d998b384e8 chore(ActionToggle): rewritten as stateless component 2016-05-30 10:41:32 +02:00
Olivier Lambert
9184afa6de feat(sr): add various actions (#1002)
* feat(sr,xojs): add SR actions

* naming fix

* typo

* remove SR

* working

* fix

* fix

* noop fixes
2016-05-27 19:07:44 +02:00
Pierre Donias
3e1b4d724f feat(xo/migrateVm): advanced dialog to select host (#993) 2016-05-27 18:21:42 +02:00
Fabrice Marsaud
5b6f50b25b feat(backups): restoration (#996) 2016-05-27 17:56:30 +02:00
Fabrice Marsaud
b757025359 feat(sr addition) (#971) 2016-05-27 17:06:08 +02:00
Olivier Lambert
52e97edbd5 feat(vm,home): add color for OS icons 2016-05-27 15:15:16 +02:00
Olivier Lambert
def88db128 feat(backup overview): i18n 2016-05-27 15:06:58 +02:00
Fabrice Marsaud
d04702e5d4 feat(backups/overview): add logs (#995) 2016-05-27 14:18:23 +02:00
Julien Fontanet
f6407771b5 feat(Icon): accepts className prop 2016-05-27 13:28:58 +02:00
Julien Fontanet
f6a6e125b6 fix(editable/Select): correctly set default value 2016-05-27 13:24:09 +02:00
Julien Fontanet
2303b8a89f feat(loading): center message 2016-05-27 13:16:10 +02:00
Julien Fontanet
93f286b6ac chore(package): remove unused react-router-redux 2016-05-27 13:16:10 +02:00
Julien Fontanet
75e5f931eb chore(store): clarify Xo connection 2016-05-27 13:16:09 +02:00
Olivier Lambert
b215e89572 fix(vm): use Number component instead of Text for vCPU max number edition 2016-05-27 10:18:18 +02:00
Julien Fontanet
07a7e8cf0a feat(selectors/createPager): n can be a selector as well 2016-05-27 10:04:17 +02:00
Olivier Lambert
52000edd7d feat(vm): handle correctly suspended VMs 2016-05-27 09:58:53 +02:00
ABHAMON Ronan
3e4c07c86f feat(self-service): dashboard and management (#992) 2016-05-26 18:20:09 +02:00
Olivier Lambert
92ce69c603 feat(meter): style (#994) 2016-05-26 17:06:01 +02:00
Olivier Lambert
a338e0a3f1 fix(tags): clashing component names tags/xo-tags/label 2016-05-26 13:50:56 +02:00
Fabrice Marsaud
143e09b65f feat(settings): remote management (#975) 2016-05-26 11:46:22 +02:00
Olivier Lambert
e5cc5abdc9 feat(theme) (#978) 2016-05-26 10:31:49 +02:00
Fabrice Marsaud
dfc96ebb99 feat(xo-app): Open Source disclaimer (#972) 2016-05-26 10:24:28 +02:00
Julien Fontanet
9397d0121d perf(select-objects/SelectVm): improve connectStore 2016-05-25 18:33:11 +02:00
Julien Fontanet
d8a1f3c73a feat(home): auto open pools/hosts selects 2016-05-25 13:07:15 +02:00
Julien Fontanet
a07cb425a4 fix(form/Range): uncontrolled therefore value → defaultValue 2016-05-25 13:07:15 +02:00
Julien Fontanet
a89b33dfdf chore(host): _isRunning is a property 2016-05-25 13:07:15 +02:00
Olivier Lambert
486d33448b feat(host): toggle and other improvements in advanced tab 2016-05-25 12:06:33 +02:00
Julien Fontanet
2299d397cb feat(messages): possibility to add props to the FormattedMessage 2016-05-25 11:04:53 +02:00
Julien Fontanet
0173c4709f fix(settings/server): password edition 2016-05-25 11:04:53 +02:00
Olivier Lambert
42fdf8b61f feat(form): boolean toggle (#985) 2016-05-25 11:04:21 +02:00
Greenkeeper
0253723652 chore(package): update ava to version 0.15.0 (#987)
https://greenkeeper.io/
2016-05-25 09:58:59 +02:00
Olivier Lambert
5ca51d3510 feat(vm): edition of number of CPUs (#984) 2016-05-24 18:00:06 +02:00
Julien Fontanet
466dc0127d fix(xo): subscriptions wait for sign in 2016-05-24 17:52:04 +02:00
Julien Fontanet
32f610485c fix(editable): anything can be used as children 2016-05-24 17:42:20 +02:00
Olivier Lambert
429e1b54ee feat(vm): edition in advanced tab (#983) 2016-05-24 16:51:50 +02:00
ABHAMON Ronan
268c037487 feat(select-objects): connected to store and accept an optional predicate (#981) 2016-05-24 15:45:28 +02:00
Julien Fontanet
c146f3105e fix(host/stats): remove unused import 2016-05-24 15:09:21 +02:00
Julien Fontanet
81e0c04722 feat(messages): a render function can be passed 2016-05-24 14:44:57 +02:00
Olivier Lambert
5d156695d2 feat(vm): memory limits (#980) 2016-05-24 12:55:35 +02:00
Julien Fontanet
f71438347c feat(selectors/createGetObjectsOfType): add groupBy() method 2016-05-24 12:41:17 +02:00
Pierre Donias
a3081d607f fix(Editable/Text): use value instead of children since children is not required (#982) 2016-05-24 12:06:38 +02:00
Julien Fontanet
ca81f445b9 fix(selectors/createTags): more complete stub 2016-05-24 11:56:24 +02:00
Olivier Lambert
1c22ce6d76 feat(home): add bold for select sort option (#979) 2016-05-24 11:07:05 +02:00
Pierre Donias
a0d482ba88 feat(Editable): Size component (#966) 2016-05-24 10:13:51 +02:00
Pierre Donias
0c050cc053 feat(SingleLineRow): columns are centered vertically (#973) 2016-05-24 10:12:17 +02:00
Olivier Lambert
9645d624f2 fix(messages): typo on number 2016-05-23 19:14:56 +02:00
Julien Fontanet
f29cb94d9f fix(selectors/createPicker): typo 2016-05-23 17:37:21 +02:00
Julien Fontanet
e239206626 feat(selectors): hide all objects to non admins 2016-05-23 17:25:28 +02:00
Julien Fontanet
35d1065eaf feat(menu): Sign out 2016-05-23 17:25:08 +02:00
Julien Fontanet
8384d6f9d7 fix(messages): vars must be explicitely marked as number 2016-05-23 17:20:25 +02:00
Julien Fontanet
5b3282ba51 perf: major rework of reducers and selectors (#976) 2016-05-23 16:29:23 +02:00
Olivier Lambert
bd1043f034 feat(home): add more bulk actions (#974) 2016-05-23 13:47:12 +02:00
Julien Fontanet
c847dcec15 fix(vm/general): remove test icon 2016-05-21 13:53:15 +02:00
Julien Fontanet
f66994f0b5 fix({host,vm}/console): better display when no stats available 2016-05-21 13:45:01 +02:00
Julien Fontanet
eba27f1823 fix(backup/new): use standard icon on save button 2016-05-21 13:45:01 +02:00
Julien Fontanet
ad1bbb2a00 fix(utils/osFamily): behaves if osName is undefined 2016-05-21 13:45:01 +02:00
Julien Fontanet
42506ab37d chore: rationalize whitespace usage 2016-05-21 13:45:01 +02:00
Julien Fontanet
6bae33826d chore(icons): always use Icon 2016-05-21 13:44:56 +02:00
Julien Fontanet
914c2b89c5 feat(icons): keep using Linux icon for CoreOS 2016-05-21 13:42:47 +02:00
Olivier Lambert
e79926cf29 fix(vm): check if vm.addresses exists 2016-05-21 13:09:40 +02:00
Olivier Lambert
1f15d2c736 fix(vm): i18n shorter button names 2016-05-21 13:03:37 +02:00
Olivier Lambert
fadd27fd23 fix(vm): better display when tools not present (#968) 2016-05-21 13:02:44 +02:00
Julien Fontanet
d5aeb8db55 feat(icons): add CoreOS 2016-05-21 12:02:23 +02:00
Pierre Donias
d5dbdd9986 fix(home): fix false icon attribute in Icon (#967) 2016-05-20 18:19:49 +02:00
Pierre Donias
352c977dc7 feat(home): add tick next to current sort criteria in dropdown (#965) 2016-05-20 16:55:04 +02:00
Julien Fontanet
bf008eba99 style(home): remove double line breaks 2016-05-20 16:29:54 +02:00
Pierre Donias
76b7777fff feat(Menu): collapses when window width is small (#963) 2016-05-20 16:28:12 +02:00
Julien Fontanet
9292d990da fix(home): behaves if filter is null 2016-05-20 15:15:47 +02:00
Julien Fontanet
87fe715823 fix(icons): add generic Linux icon 2016-05-20 12:31:11 +02:00
Julien Fontanet
25e32e0600 chore(icons): remove fixed width 2016-05-20 12:31:10 +02:00
Julien Fontanet
41c901a05c fix(complex-matcher/addPropertyClause): fix when enclause in a and 2016-05-20 11:44:04 +02:00
Julien Fontanet
fdaba2faf4 chore(home): pagination handling more standard 2016-05-20 11:44:04 +02:00
Julien Fontanet
0c73ad4f46 fix(complex-matcher): execute() requires node as context 2016-05-20 09:30:02 +02:00
Julien Fontanet
36c44bc3d4 feat(complex-matcher): addPropertyClause() 2016-05-19 18:13:51 +02:00
Julien Fontanet
d612598bd0 feat(complex-matcher): execute() and toString() expects current node as context 2016-05-19 18:13:51 +02:00
Julien Fontanet
2d75b6086f chore(complex-matcher/parse): refactor 2016-05-19 18:13:51 +02:00
Julien Fontanet
3345674604 chore(complex-matcher): expose node creators 2016-05-19 18:13:51 +02:00
Julien Fontanet
1eeaeeeca5 feat(benchmarks): complex matcher parsing 2016-05-19 18:13:51 +02:00
Olivier Lambert
b0bea8b3ba feat(vm/host): add links to host and pools 2016-05-19 18:10:00 +02:00
Olivier Lambert
0e3e5edd17 fix(host): wrong function name for log deletion 2016-05-19 16:47:57 +02:00
Olivier Lambert
ec1287a2f4 fix(multiple views): missing rows 2016-05-19 16:47:27 +02:00
Pierre Donias
9d2c857c59 feat(Text): placeholder prop (#961) 2016-05-19 14:34:25 +02:00
Pierre Donias
077f4f201c fix(grid): vertically center Col inside Row (#962) 2016-05-19 14:33:59 +02:00
Pierre Donias
9a2154a2ce feat(editable): editable Select (#959) 2016-05-19 12:58:43 +02:00
Olivier Lambert
f4c111c1c2 fix(home): a bit better responsive things 2016-05-18 17:18:53 +02:00
Pierre Donias
9483a06e8a feat(Text): Long click to edit with prop useLongClick (#957) 2016-05-18 13:31:15 +02:00
Olivier Lambert
df2a90dc1d fix(xo): wrong parameter name 2016-05-18 12:44:43 +02:00
Pierre Donias
246c190ccd fix(home): collapse-all button should not be hidden by action buttons. (#956) 2016-05-18 11:25:07 +02:00
Pierre Donias
4640817a14 feat(home): VMs migration (#953) 2016-05-18 10:59:24 +02:00
Pierre Donias
9c7690d39b fix(home): remove useless ref on VmItem (#954) 2016-05-17 17:46:29 +02:00
Pierre Donias
160805af05 feat(home): bulk actions (#948) 2016-05-17 16:16:03 +02:00
ABHAMON Ronan
39e85730f0 feat(plugins): new page to configure plugins (#946) 2016-05-17 15:42:10 +02:00
Olivier Lambert
da692e1a92 feat(home): sort by (#950) 2016-05-17 15:33:03 +02:00
Julien Fontanet
23bc60f1ac feat(selectors/createSort): any input can be a selector 2016-05-17 12:21:32 +02:00
Julien Fontanet
ce0f759509 chore(store/actions/createAction): do not add payload if undefined 2016-05-17 10:53:27 +02:00
Julien Fontanet
1793e5943a chore(store/actions/createAction): remove unused promises handling 2016-05-17 10:52:59 +02:00
Julien Fontanet
201b5db155 chore(BaseComponent): inline env test because it was not prune from the build 2016-05-17 10:12:45 +02:00
Olivier Lambert
c588ac6777 fix(backup): unknown schedule typo in translation 2016-05-16 18:23:35 +02:00
Julien Fontanet
28c01fd4e1 feat(messages): throw an error when a message is undefined 2016-05-16 18:19:27 +02:00
Julien Fontanet
0715e7a31f feat(ISSUE_TEMPLATE): copied from next-release 2016-05-16 16:33:20 +02:00
Julien Fontanet
b497c38e34 feat(ActionButton): prints handler errors 2016-05-16 15:55:55 +02:00
Julien Fontanet
8a08dce405 chore(sr/TabAdvanced): remove unused imports 2016-05-16 15:55:15 +02:00
Julien Fontanet
a620c348bf fix(Menu): always update to avoid issues with router and intl 2016-05-16 15:55:15 +02:00
Julien Fontanet
fe750b7270 chore(*/TabLogs): avoid creating function in render() 2016-05-16 15:55:15 +02:00
Julien Fontanet
4aa9d56dfc fix(home/TabGeneral): use key prop on correct component 2016-05-16 15:55:15 +02:00
Julien Fontanet
4b2ebf2a3a chore: use handlerParam prop everywhere 2016-05-16 15:55:15 +02:00
Julien Fontanet
6290446ea5 chore(dashboard/health): remove unused forEach import 2016-05-16 15:55:15 +02:00
Julien Fontanet
42f5d06960 chore(*/ActionBar): use param prop 2016-05-16 15:55:14 +02:00
Julien Fontanet
85e8006137 chore(dashboard/health): use ActionRowButton handlerParam prop 2016-05-16 15:55:14 +02:00
Julien Fontanet
7c29d4c644 fix(dashboard/health): adapt to modal/confirm changes 2016-05-16 15:55:14 +02:00
Julien Fontanet
7378bc852d feat(xo): deleteSr() 2016-05-16 15:55:14 +02:00
Julien Fontanet
67ed137cfa feat(xo): add confirm to convertVmToTemplate and deleteVm 2016-05-16 15:55:14 +02:00
Julien Fontanet
02e08e54a2 feat(TabButton): forward all props to ActionButton 2016-05-16 15:55:14 +02:00
Julien Fontanet
6b2dd24334 feat(modal/confirm): now expects an object param 2016-05-16 15:55:14 +02:00
Julien Fontanet
131d5becad feat(ActionBar): add param prop to inject as handlerParam 2016-05-16 15:55:14 +02:00
Julien Fontanet
157e0a83b1 feat(ActionButton): accept an handlerParam prop
It makes it easier to use without having to create new functions
everywhere (which can cause perf issues).
2016-05-16 15:55:14 +02:00
Julien Fontanet
d0d3abce3e chore(*/ActionBar): remove incorrect handlers prop 2016-05-16 15:55:14 +02:00
Julien Fontanet
b965c41a45 fix(ActionBar): do not keep recreating style prop 2016-05-16 15:55:14 +02:00
Julien Fontanet
42f824e034 fix(vm): do not show 0 snapshots 2016-05-16 15:55:14 +02:00
Olivier Lambert
2768d9d49d fix(pool patch): incorrect key for translation 2016-05-16 15:52:12 +02:00
Olivier Lambert
c9a86dcae3 feat(host): link to SRs 2016-05-16 15:40:57 +02:00
ABHAMON Ronan
e1d307ea2c feat(home): implement objects selection for filtering (#943) 2016-05-16 12:59:34 +02:00
Olivier Lambert
98ece12ae8 fix(home): number of VMs per page to 20 2016-05-16 10:40:34 +02:00
Olivier Lambert
4cf3db7c2a fix(vm disks): check if VBD has VDIs 2016-05-16 10:37:55 +02:00
Julien Fontanet
7c2f79d980 chore(Vm): move some logic in the tabs 2016-05-16 01:18:54 +02:00
Julien Fontanet
fe064f8b6a feat(utils/@checkPropsState): create an optimized shouldComponentUpdate() 2016-05-16 00:44:15 +02:00
Julien Fontanet
2bad2f6b80 perf(BaseComponent): do not use splat and spread params in constructor 2016-05-16 00:42:20 +02:00
Julien Fontanet
2ba9c5193f chore(Home): use VMS_PER_PAGE constant 2016-05-16 00:16:33 +02:00
Julien Fontanet
331695c10a fix(Tooltip): put tooltip above other components 2016-05-16 00:04:31 +02:00
Julien Fontanet
f299193f05 chore(Menu): cleanup and minor optimization 2016-05-16 00:03:55 +02:00
Julien Fontanet
de8130abc2 feat(selectors/_id): use id prop when no routeParams 2016-05-15 23:55:50 +02:00
Julien Fontanet
1cbde7f2e1 chore(XoApp): inherits from BaseComponent 2016-05-15 23:51:15 +02:00
Julien Fontanet
d1c796d9a7 chore(XoApp): unnecessary to validate children prop 2016-05-15 23:50:33 +02:00
Julien Fontanet
af43061353 chore(XoApp): remove unused connectStore() 2016-05-15 23:50:07 +02:00
Olivier Lambert
1b2ca8e69e 4.16.1 2016-05-14 11:18:16 +02:00
Olivier Lambert
a9e6679b08 fix(vm view): filter perms on all SR. Fix #945 2016-05-14 11:17:43 +02:00
Olivier Lambert
9408760122 chore(host,sr): style fixes 2016-05-14 11:02:26 +02:00
Olivier Lambert
c25e804d61 fix(home): use link for quick actions 2016-05-14 10:34:59 +02:00
Olivier Lambert
b18b2262eb vdi map 2016-05-14 00:12:56 +02:00
Olivier Lambert
570440dc7d host memory bar 2016-05-13 23:12:04 +02:00
Olivier Lambert
aef660fb2f feat(pool): sr view (#944) 2016-05-13 19:50:02 +02:00
Julien Fontanet
17671c7282 feat(selectors/createGetObjects): ignore missing objects 2016-05-13 17:38:38 +02:00
Julien Fontanet
8216ab44b4 feat(selectors): expose createSelector as its usually the name we want 2016-05-13 17:38:34 +02:00
Julien Fontanet
5902d43a94 fix(xo): fix internal createSubscription() 2016-05-13 17:20:12 +02:00
Pierre Donias
a6eb04d3f9 feat(home): VMs pagination (#940) 2016-05-13 17:15:45 +02:00
Julien Fontanet
a71780e860 chore(xo/subscribe): split into independant functions 2016-05-13 17:14:30 +02:00
Julien Fontanet
c2d815ef66 perf(selectors/objects): avoid creating empty objects 2016-05-13 17:11:34 +02:00
Julien Fontanet
bf4679aa9b perf(modal): do not create functions in render 2016-05-13 17:10:16 +02:00
Julien Fontanet
4dd74bbb16 perf(react-novnc): do not create functions in render 2016-05-13 17:10:13 +02:00
Julien Fontanet
10530146ca chore(selectors): remove unused vmContainers 2016-05-13 16:59:30 +02:00
Julien Fontanet
75d49da3d4 fix(home): correctly set filter in input field 2016-05-13 16:43:32 +02:00
Julien Fontanet
af026b0c52 perf(home): let VmItem fetch its container 2016-05-13 16:43:32 +02:00
Julien Fontanet
bcd4f70d0e perf(selectors/createGetObject): simplify 2016-05-13 16:43:32 +02:00
Olivier Lambert
54cc31d1a0 feat(pool): pool view (#933) 2016-05-13 15:26:26 +02:00
ABHAMON Ronan
3f0553861a feat(select-objects): split out XO select logic in low level components (#939) 2016-05-13 14:33:22 +02:00
Julien Fontanet
e1b3c51d2c fix(home): fix expand all button 2016-05-13 14:27:13 +02:00
Julien Fontanet
58a0e3fad6 fix(home): correctly set default filter 2016-05-13 14:26:54 +02:00
Julien Fontanet
6bb235650a chore(home): extract _saveFilter() 2016-05-13 12:07:50 +02:00
Julien Fontanet
0bf0bc4c33 chore(scheduling): remove an incorrect FIXME 2016-05-13 09:43:12 +02:00
Julien Fontanet
3085749e92 chore(Notification): minor optimizations 2016-05-12 21:12:03 +02:00
Julien Fontanet
de3abbf6b8 chore(host): minor optimizations 2016-05-12 21:08:12 +02:00
Julien Fontanet
925469689f chore(scheduling): implement components on top of BaseComponent 2016-05-12 20:50:06 +02:00
Julien Fontanet
631e58a585 chore(form): implement components on top of BaseComponents 2016-05-12 20:42:25 +02:00
Julien Fontanet
63571d06bf chore(editable/Text): implement on top of BaseComponent 2016-05-12 20:38:04 +02:00
Julien Fontanet
1979758fab chore(ActionButton): implement on top of BaseComponent 2016-05-12 20:35:51 +02:00
Julien Fontanet
6ef5a23000 chore(vm): minor optimizations 2016-05-12 20:35:48 +02:00
Julien Fontanet
ae4aa23d27 chore(Tags): clean & optimize 2016-05-12 20:29:46 +02:00
Julien Fontanet
710d1f13cd feat(BaseComponent): React component with reasonable defaults & debugging traces 2016-05-12 20:29:43 +02:00
Julien Fontanet
57a4d366d7 chore(shallow-equal): split out of selectors 2016-05-12 17:52:30 +02:00
Julien Fontanet
8060c66c08 feat(home): put the filter in the URL 2016-05-12 17:23:50 +02:00
Julien Fontanet
d5a58fbec2 perf(home): do not create functions in render 2016-05-12 16:15:53 +02:00
Julien Fontanet
059256de3e chore(home): simplify by treating no VMs case first 2016-05-12 15:50:54 +02:00
Julien Fontanet
2c52d4c867 feat(utils/firstDefined) 2016-05-12 15:50:54 +02:00
Julien Fontanet
d9bfde2e47 chore(selectors): use props.routeParams instead of props.params 2016-05-12 15:50:54 +02:00
ABHAMON Ronan
757acd8d92 fix(backups): remoteId vs remote param name(#938) 2016-05-12 14:52:31 +02:00
Pierre Donias
3e92252e2e fix(BlockLink): correctly behaves with links/buttons/inputs (#934) 2016-05-12 13:21:00 +02:00
ABHAMON Ronan
ce7aeb1a27 chore(Scheduler): use react-intl for month names translation (#935) 2016-05-12 13:13:43 +02:00
ABHAMON Ronan
236d2ad39a feat: backups overview (#932) 2016-05-12 13:04:15 +02:00
Julien Fontanet
63b37714b1 chore(page): use number for plain numeric styles 2016-05-12 11:53:06 +02:00
Julien Fontanet
dc81fd0622 chore(style): remove unused .xo-icon-action-row styles 2016-05-12 11:52:45 +02:00
Julien Fontanet
ccec2bf7ee chore(ActionRow): renamed to ActionRowButton 2nd pass 2016-05-12 11:51:48 +02:00
Julien Fontanet
c93b93331e chore(ActionRow): renamed to ActionRowButton 2016-05-12 11:31:43 +02:00
Julien Fontanet
1f194f1680 chore(ActionRow): reimplemented on top of ActionButton 2016-05-12 11:29:54 +02:00
Julien Fontanet
2251123c1d perf(invoke): minor optim when no param 2016-05-12 11:17:23 +02:00
Julien Fontanet
1bfe1c3370 chore(complex-matcher/parse): rename pattern to input 2016-05-12 11:17:23 +02:00
Olivier Lambert
0044eeb6d1 chore(health): use components and remove useless arrays 2016-05-12 09:52:55 +02:00
Olivier Lambert
669302d46b regain focus on the search field 2016-05-11 18:54:25 +02:00
Olivier Lambert
fce2f44197 feat(home): pre-existing filters (#931) 2016-05-11 18:06:45 +02:00
Pierre Donias
64db1df248 feat(user): new user page (#930) 2016-05-11 17:14:49 +02:00
Olivier Lambert
9109d55019 new VM button working on home view 2016-05-11 16:31:09 +02:00
Olivier Lambert
412e13ccd5 better header content style 2016-05-11 16:25:08 +02:00
Olivier Lambert
0c7e0528b6 better patches refresh when installing a patch 2016-05-11 15:49:13 +02:00
Pierre Donias
ccb22a2f40 chore(Page): remove unnecessary component Header (#928) 2016-05-11 15:48:40 +02:00
Pierre Donias
2f3e463aca feat: move tabs in header for host and VM views (#927)
Fixes #926
2016-05-11 15:13:12 +02:00
Olivier Lambert
c548e08aea react component usage for action buttons in rows 2016-05-11 15:02:19 +02:00
ABHAMON Ronan
150e0171f0 feat: initial VM backups view (#924) 2016-05-11 14:27:58 +02:00
Olivier Lambert
bfcaca7bc0 tab button for VM view 2016-05-11 12:17:30 +02:00
Olivier Lambert
fcb0482193 use TabButton component in host view 2016-05-11 12:02:50 +02:00
Olivier Lambert
714ea7c236 a bit better home responsive view 2016-05-11 11:29:15 +02:00
Pierre Donias
cc30799f0d feat: browser notifications (#921)
* Browser notifications.

* Browser notifications: XO logo in notification.

* Browser notifications: multiple enhancements.
2016-05-11 11:13:08 +02:00
Pierre Donias
df71259a10 style: removed incorrect JSX whitespaces (#925) 2016-05-11 10:36:55 +02:00
Olivier Lambert
9a0ae5d4b9 quick buttons for home view 2016-05-10 16:26:30 +02:00
Olivier Lambert
eea4648ada add docker icon for VM with docker XS plugin installed 2016-05-10 14:27:11 +02:00
Olivier Lambert
2883398c2a add modal for VM convert and delete 2016-05-10 14:17:47 +02:00
Olivier Lambert
84f6e14b89 display the number of snapshot in the expanded home VM view 2016-05-10 13:53:29 +02:00
Pierre Donias
30fb9ed65a feat(modal): alert() and confirm() methods (#918) 2016-05-10 12:00:48 +02:00
Olivier Lambert
a809f2d1f2 re add install all patches in host patch tab 2016-05-10 10:53:35 +02:00
Olivier Lambert
6b5a19983d missing translation in server view 2016-05-09 19:41:36 +02:00
Olivier Lambert
2471f447b3 add current status info for VMs 2016-05-09 17:18:44 +02:00
Julien Fontanet
413e944d7a fix(home): fix imports 2016-05-09 13:46:20 +02:00
Julien Fontanet
3b952819d6 feat(home): remember the last used filter 2016-05-09 13:41:06 +02:00
Greenkeeper
2445c10c1c chore(package): update modular-css to version 0.21.0 (#920)
https://greenkeeper.io/
2016-05-09 11:46:00 +02:00
Julien Fontanet
7e26593d04 feat(complex-matcher): quoted strings 2016-05-08 17:53:34 +02:00
Greenkeeper
73595c683b chore(package): update modular-css to version 0.20.0 (#919)
https://greenkeeper.io/
2016-05-08 10:02:02 +02:00
Julien Fontanet
570f56a4cc chore(complex-matcher): test parse() and toString() 2016-05-08 00:25:16 +02:00
Julien Fontanet
f9e940871e feat(home): add group/or syntax 2016-05-08 00:24:32 +02:00
Julien Fontanet
c2b724a54a chore(test): add AVA test runner 2016-05-08 00:21:58 +02:00
Olivier Lambert
f52db472ed clear search button 2016-05-07 17:52:17 +02:00
Julien Fontanet
324fe98a5b chore(complex-matcher): minor parser simplification 2016-05-07 17:32:25 +02:00
Julien Fontanet
2fd9833580 chore(complex-matcher): move into its own module 2016-05-07 17:25:44 +02:00
Olivier Lambert
0ab4827d6f default search value with a space and search autofocus 2016-05-07 17:19:42 +02:00
Julien Fontanet
f0bd7d7eee perf(home): debounce filter by 250ms 2016-05-07 17:02:55 +02:00
Olivier Lambert
8cd1209602 display OS icon if possible, even when we do not detect xen tools 2016-05-07 16:57:04 +02:00
Julien Fontanet
e2781adc81 feat(home): allow search on nested properties 2016-05-07 16:49:45 +02:00
Julien Fontanet
b91ac2fe89 feat(home): initial complex filter 2016-05-07 16:16:22 +02:00
Julien Fontanet
683a7a1851 perf(selectors/tags): sort the tags and wraps the selector 2016-05-07 13:11:28 +02:00
Olivier Lambert
8b05aa7b59 remove useless array 2016-05-07 13:00:41 +02:00
Olivier Lambert
883f839bfd action for servers 2016-05-07 12:55:22 +02:00
Julien Fontanet
90dc00ac6b perf: throttle object updates by 500ms 2016-05-07 12:51:41 +02:00
Julien Fontanet
9c1cecbb7d chore(dev-tools): disable for now
It's not used at the moment and it has an major perf impact.
2016-05-07 12:05:19 +02:00
Julien Fontanet
1fce11bfba chore(store): do not add useless enhancers 2016-05-07 12:05:19 +02:00
Olivier Lambert
fba3ebdf49 basic filtering in home view 2016-05-07 11:34:05 +02:00
Olivier Lambert
e9585e08a4 only count pending tasks 2016-05-07 00:50:37 +02:00
Olivier Lambert
24a89985fb remove useless icon in vm general tab 2016-05-06 22:20:18 +02:00
Olivier Lambert
33026e8281 more logical order display for the home view 2016-05-06 21:23:54 +02:00
Olivier Lambert
50d9b832a9 better tag component 2016-05-06 21:14:54 +02:00
Olivier Lambert
1df82c3380 do not display a filter if there isn't any object associated with it (ACLs or nothing to display) 2016-05-06 18:59:57 +02:00
Olivier Lambert
0a8db4ebbf object number for filters 2016-05-06 18:39:44 +02:00
Julien Fontanet
928b19aef4 chore(TabButton): move into its own module 2016-05-06 17:48:53 +02:00
Julien Fontanet
a7ec98cef6 chore(icons): move into its own stylesheet 2016-05-06 17:46:13 +02:00
Julien Fontanet
67326a1859 chore(button): remove unused module 2016-05-06 17:33:30 +02:00
Julien Fontanet
631a8a5edf fix(ActionButton): fixed width icon 2016-05-06 17:32:40 +02:00
Julien Fontanet
7e5e463ef2 feat(ActionButton): better feedback on async actions 2016-05-06 17:20:53 +02:00
Julien Fontanet
add65e41da chore(actions): move business code in xo 2016-05-06 17:20:48 +02:00
Julien Fontanet
351b4571cd chore(store): move into common 2016-05-06 17:18:56 +02:00
Julien Fontanet
793258a91f chore(dev-tools): move into common 2016-05-06 17:18:56 +02:00
Julien Fontanet
ed3e1933c3 fix(xo): names of VM clones and snapshots 2016-05-06 17:18:56 +02:00
Olivier Lambert
2f63b26458 use react boostrap button component 2016-05-06 16:56:52 +02:00
Olivier Lambert
f1d14da3dd UI improvements on home view 2016-05-06 16:03:49 +02:00
Pierre Donias
4a3d90bdf3 feat(notification): new module (#914)
* Notifications

* Notification: global notification fired by `notify(...)`

* Notification: Bootstrap colors.

* Notification: Simplified version. Usage example.
2016-05-06 14:27:59 +02:00
Olivier Lambert
f8f24fbc37 feat(home view): major rework 2016-05-06 14:26:30 +02:00
Pierre Donias
8f6c53e111 feat(Modal): new component (#916) 2016-05-06 14:04:38 +02:00
Pierre Donias
c23f55b1d4 feat(Wizard): new component (#896) 2016-05-06 13:41:05 +02:00
Olivier Lambert
88f94f5d6f improved XO title in menu collapse 2016-05-04 21:07:58 +02:00
Olivier Lambert
3e99a179b7 add tool tip for action bar 2016-05-04 11:56:13 +02:00
Olivier Lambert
c7271f94a5 remove xo call for vdi and sr set 2016-05-04 10:46:43 +02:00
Olivier Lambert
5c0ced942c fix tags 2016-05-03 18:41:55 +02:00
Julien Fontanet
d9b07e76f9 chore(package): update standard to version 7.0.0 2016-05-03 18:31:15 +02:00
Julien Fontanet
c75793df20 chore(package): use commit-msg hook instead of commit-msg
It avoids running the tests when there is nothing in the stage.
2016-05-03 18:28:08 +02:00
Julien Fontanet
1bee5121f0 chore(package): remove unused Babel config 2016-05-03 18:28:08 +02:00
Julien Fontanet
932e7eb374 chore(README): remove dependencies status 2016-05-03 18:28:08 +02:00
Julien Fontanet
abdbcfe42b chore(README): add Travis status in title 2016-05-03 18:28:08 +02:00
Julien Fontanet
a62e888732 chore(gitignore): remove unused config.json entry 2016-05-03 18:28:08 +02:00
Olivier Lambert
16b982b953 fix patches issues 2016-05-03 18:25:33 +02:00
Olivier Lambert
e92b87095b container for header 2016-05-03 17:37:42 +02:00
Olivier Lambert
e5f1aa689b flex shrink fix 2016-05-03 17:35:59 +02:00
Olivier Lambert
f39a05cd8d smaller header for VM and host view 2016-05-03 16:42:32 +02:00
Olivier Lambert
c5e22b785a replace xo.call 2016-05-03 15:24:39 +02:00
Olivier Lambert
11f93a125c add header for host view 2016-05-03 15:22:25 +02:00
Pierre Donias
38a9cb002d Menu and sticky header (#891)
Fixes #705
2016-05-03 14:13:11 +02:00
ABHAMON Ronan
cf1a38a004 Recursive forms implementation. (#894) 2016-05-03 12:09:22 +02:00
Olivier Lambert
d6e823d19d fix missingpatches call 2016-05-03 10:24:30 +02:00
Olivier Lambert
763a23d9d0 add recoveryStartVm method 2016-05-01 11:19:58 +02:00
Olivier Lambert
f266577f2f fix cloneVM method 2016-05-01 11:00:49 +02:00
Olivier Lambert
1bb5e73668 less choices in VM action bar, advanced actions are in advanced tab 2016-05-01 10:39:26 +02:00
Olivier Lambert
b07bc755f6 add label on tab for number of patches missing 2016-05-01 09:57:05 +02:00
Olivier Lambert
db4b39c54b upgrade on poolpatches 2016-04-29 18:53:43 +02:00
Julien Fontanet
ffd95261c3 4.16.0 2016-04-29 12:23:59 +02:00
Olivier Lambert
82f38040c1 changelog 2016-04-29 12:22:14 +02:00
Olivier Lambert
7bb4f9f8e3 update host 2016-04-28 22:33:59 +02:00
Olivier Lambert
c2345df275 Merge pull request #905 from vatesfr/v5-toolbar-improved
V5 toolbar improved, missing patches and xo call removal
2016-04-28 19:15:46 +02:00
Olivier Lambert
b0c341da3f minor fixes 2016-04-28 19:11:56 +02:00
Olivier Lambert
b1ccc16da7 add missing patches 2016-04-28 19:11:44 +02:00
Julien Fontanet
16856a5911 feat(utils/routes): support plain route def 2016-04-28 17:32:06 +02:00
Olivier Lambert
d4ee364349 add host action bar 2016-04-28 17:03:11 +02:00
Olivier Lambert
db62ca7b4b proper col/row for vm tabs 2016-04-28 16:20:36 +02:00
Olivier Lambert
d0b99b854d remove more xo direct call 2016-04-28 15:57:17 +02:00
Olivier Lambert
b3b13b3e01 less xo calls 2016-04-28 15:55:46 +02:00
Julien Fontanet
5cb738b82b chore: reduce xo.call() direct use 2016-04-28 15:22:40 +02:00
Olivier Lambert
cfe3b15cbe Toolbar actions 2016-04-28 15:06:28 +02:00
Julien Fontanet
a1bde80925 chore: move IntlProvider inside XoApp. 2016-04-28 12:37:49 +02:00
Julien Fontanet
4c958dd584 chore(selectors): remove unused code 2016-04-28 12:05:37 +02:00
Olivier Lambert
a05d4d3d18 Merge pull request #892 from vatesfr/pierre-v5-better-action-bar-ui
Better action bar UI.
2016-04-28 10:28:05 +02:00
Pierre
503b6dc914 Dropdown on hover. 2016-04-28 09:24:29 +02:00
Pierre
141cbcd1c0 [WIP] Dropdown on hover. 2016-04-28 09:24:29 +02:00
Olivier Lambert
e340d2d3f5 remove useless import 2016-04-27 18:27:57 +02:00
Olivier Lambert
436d5a3a66 remove dup message keys 2016-04-27 18:27:57 +02:00
Julien Fontanet
3e04fd4790 feat: initial ACLs handling 2016-04-27 16:44:01 +02:00
Julien Fontanet
3f6d149f9d feat(reducer/combineActionHandlers): perf for n=1 & common errors
Warnings when:

- no handlers defined
- there is an handler for the action type `type` (likely an error)

There is now an optimized implementation when there is only one handler.
2016-04-27 16:44:01 +02:00
Olivier Lambert
977fc7832a initial network tab added for host 2016-04-27 15:23:39 +02:00
Olivier Lambert
2e2f0e2e3d handle basic log removal 2016-04-27 14:59:40 +02:00
Julien Fontanet
5628beee72 fix(selectors/createCollectionWrapper): handle removed props 2016-04-27 14:14:53 +02:00
Olivier Lambert
a88fea560b fix indentation 2016-04-26 18:14:37 +02:00
Olivier Lambert
5832345b96 Merge pull request #902 from vatesfr/v5-hosts
V5 hosts view
2016-04-26 15:57:32 +02:00
Olivier Lambert
d3d2daa12f use createFinder 2016-04-26 15:39:58 +02:00
Julien Fontanet
f6f90982f4 feat(selectors/createPager): selector creator to return a page of items 2016-04-26 15:36:21 +02:00
Olivier Lambert
98323b08f0 add host console 2016-04-26 15:31:13 +02:00
Olivier Lambert
8f3112a5e2 advanced tab completed 2016-04-26 15:31:12 +02:00
Olivier Lambert
3408bd41ad additionnal host info 2016-04-26 15:31:12 +02:00
Olivier Lambert
68e12e86c1 add start time in host view 2016-04-26 15:31:12 +02:00
Olivier Lambert
890e0b4906 add control domain VM 2016-04-26 15:31:12 +02:00
Olivier Lambert
3aca7c7ae5 more working host tabs 2016-04-26 15:31:11 +02:00
Olivier Lambert
e8077ddbc5 initial work on host view 2016-04-26 15:31:11 +02:00
Julien Fontanet
6e04907357 feat(selectors/createFinder): selector creator to find an item in a collection 2016-04-26 15:26:28 +02:00
Greenkeeper
3d8c9a99fe chore(package): update modular-css to version 0.18.0 (#895)
https://greenkeeper.io/
2016-04-20 08:05:43 +01:00
Greenkeeper
730768705b chore(package): update modular-css to version 0.17.1 (#890)
http://greenkeeper.io/
2016-04-19 10:04:12 +01:00
Julien Fontanet
13f75a37ab CSS: remove 60em min-width on .xo-content. 2016-04-18 15:58:43 +01:00
Julien Fontanet
f74c69ea6f Disable Bootstrap flex for now as it is broken in responsive mode. 2016-04-18 15:57:56 +01:00
Greenkeeper
fe7be0f518 chore(package): update react-key-handler to version 0.2.0 (#886)
http://greenkeeper.io/
2016-04-18 09:33:30 +01:00
Olivier Lambert
2f0e656c45 menu: move remote in settings 2016-04-15 14:44:53 +02:00
Julien Fontanet
de489b799b Fix npm run build. 2016-04-14 19:12:25 +02:00
Julien Fontanet
6250ef49b6 Minor change in VM/Snapshots. 2016-04-14 19:12:25 +02:00
Julien Fontanet
afdab8dcde Fix About page. 2016-04-14 19:12:25 +02:00
Olivier Lambert
8e1d39f37f navbar style 2016-04-14 18:45:18 +02:00
Julien Fontanet
2a8c346a65 Add basic Page not found. 2016-04-14 18:06:56 +02:00
Olivier Lambert
71e431e744 better dashboard 2016-04-14 17:45:00 +02:00
Julien Fontanet
265cb75d70 Dashboard/Overview: 10 top SRs by size. 2016-04-14 16:51:29 +02:00
Olivier Lambert
4d0470838a move storage list to health 2016-04-14 16:41:05 +02:00
Olivier Lambert
d4ed3aeac0 better dashboard 2016-04-14 16:14:35 +02:00
Julien Fontanet
89fa89fe98 utils/@routes(): TODO add support for function childRoutes. 2016-04-14 16:02:05 +02:00
Julien Fontanet
2d663f0ac5 Remove unused import. 2016-04-14 15:58:38 +02:00
Julien Fontanet
bc9b3f1c5c utils/@routes(): accepts a plain object for child routes. 2016-04-14 15:48:38 +02:00
Julien Fontanet
2f0a46a46d utils/@routes(): use it AMAP. 2016-04-14 15:45:27 +02:00
Julien Fontanet
9559604d1e menu: Remove home special case. 2016-04-14 15:45:27 +02:00
Julien Fontanet
b779ab9bc5 utils/@routes(): accepts a subpath as index route. 2016-04-14 15:45:26 +02:00
Julien Fontanet
481943051c Tooltip component. 2016-04-14 15:45:26 +02:00
Olivier Lambert
cb49b7a906 fix styles 2016-04-14 11:55:14 +02:00
Olivier Lambert
090e4b3117 working health view 2016-04-14 10:35:58 +02:00
Olivier Lambert
9a40d5f784 style fixes 2016-04-13 19:49:59 +02:00
Olivier Lambert
1485637c6d more dashboard work 2016-04-13 17:52:54 +02:00
Olivier Lambert
b0ec8e26e8 sr table on dashboard 2016-04-13 13:53:01 +02:00
Olivier Lambert
e4c12e08cb sr panel on dashboard view 2016-04-13 12:55:24 +02:00
Olivier Lambert
a1675745b5 first charts on Dashboard view 2016-04-13 12:23:38 +02:00
Olivier Lambert
40beb5b104 dashboard work 2016-04-13 11:26:07 +02:00
Olivier Lambert
e49e2f51c2 more work on dashboard 2016-04-12 22:57:45 +02:00
Olivier Lambert
99669f2678 add missing files 2016-04-12 19:03:40 +02:00
Olivier Lambert
9aa88b9dad initial work on dashboard 2016-04-12 19:02:53 +02:00
Julien Fontanet
10de29795a settings/servers: implement edition. 2016-04-12 18:49:25 +02:00
Julien Fontanet
c4767e74f4 Initial server view. 2016-04-12 18:16:07 +02:00
Julien Fontanet
19f8666e1e Use Babel transforms to optimize React in prod. 2016-04-12 18:16:07 +02:00
Julien Fontanet
2e2bbdf0d7 Update gulp-csso to v2. 2016-04-12 18:16:07 +02:00
Olivier Lambert
973bee0ffa fix links to submenus 2016-04-12 18:05:20 +02:00
Olivier Lambert
9470cdf774 better wording 2016-04-12 18:00:11 +02:00
Olivier Lambert
ab198ea60b add import entry 2016-04-12 17:56:59 +02:00
Olivier Lambert
c78f4bb6d2 add dashboard submenu 2016-04-12 17:47:38 +02:00
Olivier Lambert
ff054ca47f Add menu 2016-04-12 17:28:24 +02:00
Olivier Lambert
30cc804022 backup submenu 2016-04-12 17:13:35 +02:00
Olivier Lambert
890d733bf8 snapshot name edition 2016-04-12 15:19:05 +02:00
Olivier Lambert
a554a9c4a1 add editable vdi name and description 2016-04-12 15:16:40 +02:00
Olivier Lambert
9ef212937d log view style 2016-04-12 14:05:30 +02:00
Pierre Donias
82d9c53f3e Left side menu and navbar. (#869)
Merge PR #869 from @pdonias.
2016-04-08 18:34:20 +02:00
Julien Fontanet
d9d91c4953 Update react/react-dom to v15 and react-intl to v2. 2016-04-08 15:16:55 +02:00
Julien Fontanet
dd5f5282e0 Remove special uglify setting for Angular. 2016-04-07 17:44:53 +02:00
Julien Fontanet
cc116defc6 Remove unused browser override ws.js. 2016-04-07 17:44:00 +02:00
Julien Fontanet
90c755e120 Remove unused browserify-plain-jade. 2016-04-07 17:43:40 +02:00
Julien Fontanet
85d1c80581 Move common modules out of src/node_modules. 2016-04-07 15:03:14 +02:00
Julien Fontanet
5bb04d3857 reducers: Fix REMOVE_OBJECTS handling. 2016-04-07 15:03:13 +02:00
Olivier Lambert
dde8404242 fix average computing on sparkline graphs 2016-04-07 14:00:10 +02:00
Julien Fontanet
7940bd2dcc Merge pull request #858 from vatesfr/abhamonr-vm-stats-only-when-vm-running
Get stats only when vm running.
2016-04-07 13:45:30 +02:00
Julien Fontanet
da48d117a0 Merge pull request #872 from vatesfr/pierre-v5-vm-state-icon
VM: state icon in front of VM's name.
2016-04-07 10:16:23 +02:00
Pierre
ffc74967fc VM: State icon in front of VM's name 2016-04-07 10:12:46 +02:00
wescoeur
c7388d5836 Get stats only when vm running. 2016-04-06 16:24:31 +02:00
Julien Fontanet
ee4b8fc66f Merge pull request #868 from vatesfr/pierre-v5-add-multiple-tags
Tags: Adding a tag does not remove the input field
2016-04-06 15:41:55 +02:00
Julien Fontanet
c73f22ca45 home: refactor filtering on top of selectors/createFilter(). 2016-04-06 15:35:45 +02:00
Julien Fontanet
bafa053fd1 vm/logs: initial listing. 2016-04-06 14:55:44 +02:00
Pierre
a00406d2b3 Tags: Adding a tag should keep the input field on 2016-04-06 11:59:10 +02:00
Julien Fontanet
df91e17dc6 vm/disks: use more variables. 2016-04-06 11:01:05 +02:00
Julien Fontanet
7c6eeababc vm/disks: add SR name. 2016-04-06 10:52:34 +02:00
Julien Fontanet
911a5067f9 Factorize selectors. 2016-04-06 10:47:35 +02:00
Julien Fontanet
bfa0fe9c51 editable/Text: initial implementation. 2016-04-05 15:40:16 +02:00
Julien Fontanet
7dafe31d51 react-novnc: Ungrab keyboard/mouse on mouse leave. 2016-04-04 15:44:26 +02:00
Olivier Lambert
1271ecedb4 Merge pull request #859 from vatesfr/pierre-v5-icon-fixed-width
Icon: `fixedWidth` attribute
2016-04-01 19:17:50 +02:00
Pierre
80be18068f Icon: lodash/isInteger instead of Number.isInteger 2016-04-01 18:31:16 +02:00
Julien Fontanet
ecbf2c0958 utils/BlockLink: To use for a block link :) 2016-04-01 18:16:56 +02:00
Pierre
cfb84b677f Icon: fixedWidth attribute 2016-04-01 18:12:33 +02:00
Olivier Lambert
dfbd7a5d76 Merge pull request #857 from vatesfr/abhamonr-fix-select-vm-stats
Fix select vm stats.
2016-04-01 17:30:27 +02:00
wescoeur
8e157f8ff7 Fix select vm stats. 2016-04-01 17:16:04 +02:00
Olivier Lambert
c75580e852 style fixes 2016-04-01 17:03:21 +02:00
Olivier Lambert
e21934fd55 more work on VM advanced tab 2016-04-01 17:03:21 +02:00
Julien Fontanet
844f1609c8 utils/@autobind: bind a method at first call. 2016-04-01 17:00:03 +02:00
Julien Fontanet
6f7de28672 Vm/Console: disable for non-running VMs. 2016-04-01 16:42:27 +02:00
Olivier Lambert
247212d768 update advanced view 2016-04-01 16:31:11 +02:00
Olivier Lambert
6592b880ea reorder stuff 2016-04-01 16:31:11 +02:00
Julien Fontanet
e27a4bf119 Merge pull request #855 from vatesfr/abhamonr-vms-stats-stateful
Stateful component vms stats.
2016-04-01 16:29:23 +02:00
wescoeur
dce5a83093 Stateful component vms stats.
Delay of stats interval is used to get stats.
2016-04-01 16:26:01 +02:00
Julien Fontanet
78c70f35a1 Merge pull request #856 from vatesfr/pierre-v5-col-offset
Added offset management in `Col` component.
2016-04-01 16:25:26 +02:00
Pierre
f4b84a0902 Added offset management in Col component 2016-04-01 16:15:46 +02:00
Julien Fontanet
b16237b514 Vm/Stats: Fix translation of select. 2016-04-01 15:37:26 +02:00
Olivier Lambert
b0077539fa Merge pull request #854 from vatesfr/abhamonr-vms-charts-tooltips
Tooltips on vms charts.
2016-04-01 15:21:14 +02:00
Olivier Lambert
63602216eb using icon component 2016-04-01 14:38:58 +02:00
Olivier Lambert
2f93935009 more links 2016-04-01 14:30:21 +02:00
Olivier Lambert
c0a0b653c1 add links and fix icons 2016-04-01 14:25:41 +02:00
wescoeur
24d6354467 Tooltips on vms charts. 2016-04-01 13:03:02 +02:00
Julien Fontanet
54a07469fd Fix granularity on stats tab. 2016-04-01 12:49:55 +02:00
Olivier Lambert
12f37bead1 translate inside option 2016-04-01 12:42:55 +02:00
Olivier Lambert
8d76dc2511 tab styles 2016-04-01 12:01:52 +02:00
Olivier Lambert
8ef7d6defc more i18n 2016-04-01 11:49:35 +02:00
Olivier Lambert
2f2cbbe3f0 various improvements 2016-04-01 11:05:27 +02:00
Julien Fontanet
2662ac719b Fix tabs display. 2016-04-01 10:50:38 +02:00
Olivier Lambert
1b0fe6e847 center console 2016-04-01 10:29:04 +02:00
Olivier Lambert
9fa9e26324 disk tab 2016-04-01 10:25:56 +02:00
Julien Fontanet
cb434df099 Move prod deps to dev deps. 2016-04-01 10:21:04 +02:00
Julien Fontanet
e3cb3002fe Replace react-tabs with Bootstrap styles + router. 2016-04-01 10:21:00 +02:00
Olivier Lambert
8b2a09b522 better tag placement 2016-03-31 18:44:33 +02:00
Olivier Lambert
03265d2545 stats select translation 2016-03-31 18:10:16 +02:00
Olivier Lambert
9b25e07b5e sort tags and fix snapshot icon 2016-03-31 17:57:56 +02:00
Julien Fontanet
60a21ca58d Merge pull request #853 from vatesfr/abhamonr-vms-charts-time-labels
Intl labels on vms charts.
2016-03-31 17:52:05 +02:00
wescoeur
05172492ef Intl labels on vms charts. 2016-03-31 17:44:42 +02:00
Julien Fontanet
a9c089a994 Merge pull request #851 from vatesfr/pierre-v5-action-bar
VM action bar (without handlers) with react-bootstrap-4
2016-03-31 17:37:18 +02:00
Julien Fontanet
988d018c8e Merge pull request #852 from vatesfr/pierre-v5-fix-sparklines-proptype
Fixed Sparklines propType: array --> object
2016-03-31 17:35:53 +02:00
Pierre
853c611fde Fixed Sparklines propType: array --> object 2016-03-31 17:30:43 +02:00
Pierre
0886f5335f DropdownButton instead of SplitButton (custom width). 2016-03-31 17:22:00 +02:00
Pierre
024d481a4d Using react-bootstrap-4. VM action bar done (no handlers). Minor fixes. 2016-03-31 17:22:00 +02:00
Pierre
b80de1af95 ERR action-bar: DropdownButton incompatible with React 15 2016-03-31 17:21:59 +02:00
Julien Fontanet
da44268f0d ReactNoVnc: remove unnecessary logs. 2016-03-31 17:16:15 +02:00
Julien Fontanet
b921a3ed8e Split the VM view. 2016-03-31 17:15:23 +02:00
Julien Fontanet
d2c9c824f9 Declare routes directly on component. 2016-03-31 16:41:13 +02:00
Olivier Lambert
21c255051c better console panel style 2016-03-31 16:39:30 +02:00
Olivier Lambert
dccf09c5dd charts improvements 2016-03-31 16:12:57 +02:00
Julien Fontanet
0772a17e4c grid/Col: use xs for smallSize. 2016-03-31 15:21:26 +02:00
Olivier Lambert
644ee782d2 fix style issues 2016-03-31 15:11:40 +02:00
Olivier Lambert
ea180cc415 fix col sizes 2016-03-31 15:11:10 +02:00
Olivier Lambert
68e3c4e6ed change stats titles 2016-03-31 15:07:59 +02:00
Julien Fontanet
47b1c2d680 grid/Col: now expects smallSize, mediumSize or largeSize. 2016-03-31 15:07:32 +02:00
Olivier Lambert
2e513043b7 Merge pull request #850 from vatesfr/abhamonr-vms-graphs-titles
Abhamonr vms graphs titles
2016-03-31 14:16:40 +02:00
wescoeur
ea942635f7 VMs graphs titles. 2016-03-31 13:12:41 +02:00
wescoeur
8a5f5cc673 Display spinner icon when stats granularity is selected. 2016-03-31 12:51:29 +02:00
Julien Fontanet
6cc673035d Work around babel-eslint bug. 2016-03-31 11:36:42 +02:00
Olivier Lambert
02d717e5a8 better graph style 2016-03-31 11:35:12 +02:00
Julien Fontanet
77d83b06bd Merge pull request #848 from vatesfr/abhamonr-vm-stats-various-time-steps
Possibility to select time interval on vm stats.
2016-03-31 11:19:57 +02:00
wescoeur
e3d8eabb05 Possibility to select time interval on vm stats. 2016-03-31 11:16:49 +02:00
Julien Fontanet
0596b0106f Handle removeObjects action. 2016-03-30 18:07:40 +02:00
Julien Fontanet
765bbd90fc Install ghooks. 2016-03-30 18:01:51 +02:00
Julien Fontanet
3799902a8a More efficient sort of snapshots. 2016-03-30 17:43:42 +02:00
Julien Fontanet
ca1dbb4556 Initial VM console. 2016-03-30 17:37:37 +02:00
Julien Fontanet
df551d457c Merge pull request #847 from vatesfr/abhamonr-chartist-graphs
VM's graphs. (Chartist)
2016-03-30 16:57:17 +02:00
wescoeur
278d518d8f VM's graphs. (Chartist) 2016-03-30 16:53:20 +02:00
Olivier Lambert
b06fa191f7 prepare limit space in vm advanced tab 2016-03-30 16:02:34 +02:00
Olivier Lambert
13d73f6f27 add translations 2016-03-30 15:54:49 +02:00
Olivier Lambert
d59af117c0 start work of Advanced vm tab 2016-03-30 15:51:23 +02:00
Olivier Lambert
69efd85ad6 check if VBD is a cd drive 2016-03-30 12:33:54 +02:00
Olivier Lambert
ead51787a8 Merge pull request #846 from vatesfr/pierre-v5-tags
Add and remove tag actions. Tag UI improvements.
2016-03-30 12:23:09 +02:00
Olivier Lambert
4bf0fee20d protection again counting twice or more a VDI size 2016-03-30 12:09:04 +02:00
Pierre
209693ee3f Add and remove tag actions. Tag UI improvements. Icon handles lg size. 2016-03-30 11:48:01 +02:00
Olivier Lambert
796d4f5b08 not pill in snapshots tab when no snapshots 2016-03-30 11:37:55 +02:00
Olivier Lambert
96914c9901 compute total vm disk space 2016-03-30 11:29:37 +02:00
Olivier Lambert
9e6073bf56 improve translation 2016-03-30 11:00:16 +02:00
Olivier Lambert
f8ad58159c minor i18n fix 2016-03-29 23:30:34 +02:00
Olivier Lambert
ede4a02315 various UI improvements 2016-03-29 22:43:06 +02:00
Olivier Lambert
e25faba990 basic VM disk tab 2016-03-29 22:35:27 +02:00
Olivier Lambert
4ccf272e53 add snapshot pill in tab name and more i18n 2016-03-29 21:08:58 +02:00
Olivier Lambert
5ad0951db3 improve snapshot view 2016-03-29 20:56:18 +02:00
Olivier Lambert
f72fcb76e3 start to work on snapshot view 2016-03-29 18:58:36 +02:00
Olivier Lambert
8ca00c81b2 display network name_label in vm network view 2016-03-29 18:02:55 +02:00
Olivier Lambert
5c7f87b8ae case when not VM network interface at all 2016-03-29 16:38:16 +02:00
Julien Fontanet
9f4f7ec88c utils/If: experimental component. 2016-03-29 16:14:54 +02:00
Olivier Lambert
ba7676f778 using keys for array 2016-03-29 16:01:46 +02:00
Julien Fontanet
ac248c32bb Fix handling of empty VM stats. 2016-03-29 15:44:46 +02:00
Julien Fontanet
dd6a3e8535 Update babel-eslint to 6.0.0. 2016-03-29 15:32:20 +02:00
Julien Fontanet
69b538cfd6 Remove unused redux-promise. 2016-03-29 15:32:20 +02:00
Julien Fontanet
e248c22f4b Remove unused redux-router. 2016-03-29 15:32:20 +02:00
Olivier Lambert
eff3c43483 better network page 2016-03-29 15:31:56 +02:00
Olivier Lambert
1cbfc3ccd4 various updates and fixes 2016-03-29 14:58:23 +02:00
Olivier Lambert
2fa72838f9 add sparklines to console view 2016-03-28 21:48:56 +02:00
Olivier Lambert
a559ec1fda better vm network translations 2016-03-28 21:42:13 +02:00
Olivier Lambert
8ddbc8b1fb minor network improvements 2016-03-28 21:21:59 +02:00
Olivier Lambert
c650a43d38 add translations 2016-03-28 21:12:30 +02:00
Olivier Lambert
ab4cc20c8c better network tab 2016-03-28 21:09:21 +02:00
Olivier Lambert
30d613ff04 minor vm action reordering 2016-03-28 20:09:41 +02:00
Olivier Lambert
b93da5a281 tag minor style modification 2016-03-28 18:06:57 +02:00
Olivier Lambert
9e2cf67a93 mockup layout for console view 2016-03-28 12:52:00 +02:00
Olivier Lambert
e87720ffdd minor style modification 2016-03-25 23:22:43 +01:00
Olivier Lambert
5108ed7da5 Merge pull request #842 from vatesfr/pierre-v5-tags
`Tags` component, basic version
2016-03-25 23:21:05 +01:00
Olivier Lambert
77936d86f2 position tags in VM view 2016-03-25 23:10:30 +01:00
Olivier Lambert
cbe8927d73 move tag style in main css file + PR comments 2016-03-25 22:57:47 +01:00
Pierre
47a7e98da8 Tags component 2016-03-25 22:56:36 +01:00
Olivier Lambert
d4f27cd2e0 default large buttons 2016-03-25 22:39:35 +01:00
Olivier Lambert
c355ad7a86 css fix 2016-03-25 19:16:48 +01:00
Julien Fontanet
c8c9ec081d Remove incorrect divs in VM page. 2016-03-25 19:12:46 +01:00
Julien Fontanet
1289e46401 Fix xo-sparlines/CpuSparkLines proptypes. 2016-03-25 19:12:46 +01:00
Julien Fontanet
0b54292130 VIFs in VM view. 2016-03-25 19:04:54 +01:00
Olivier Lambert
d1e2b91116 comment ationbar button to merge 2016-03-25 18:49:09 +01:00
Julien Fontanet
cd96b3e8f6 Merge pull request #844 from vatesfr/olivierlambert-clipboard
5.x clipboard
2016-03-25 18:19:27 +01:00
Olivier Lambert
9119f4d06f style fix 2016-03-25 18:16:40 +01:00
Olivier Lambert
4e6ccf2c81 reverse order on general tab 2016-03-25 18:08:18 +01:00
Olivier Lambert
6294e43762 various improvements 2016-03-25 18:08:18 +01:00
Olivier Lambert
feca78e55d reorder stuff and add clipboard support for UUID 2016-03-25 18:08:17 +01:00
Olivier Lambert
0c86526ad2 better sparklines styles 2016-03-25 18:07:33 +01:00
Olivier Lambert
9fd1d26067 minor graph improvements 2016-03-25 17:44:55 +01:00
Julien Fontanet
5ec02078d1 Merge pull request #843 from vatesfr/abhamonr-vm-charts
Vm Sparklines (Cpu, ram, vif, xvd)
2016-03-25 16:02:26 +01:00
wescoeur
012c6f3d41 Vm Sparklines (Cpu, ram, vif, xvd) 2016-03-25 15:41:44 +01:00
Olivier Lambert
8e89d492fc fix style 2016-03-25 14:55:46 +01:00
Olivier Lambert
69fe2f0443 date stuff 2016-03-25 14:52:14 +01:00
Julien Fontanet
ebd7f4ae1b Ignore Redux dev tools in production. 2016-03-25 12:40:46 +01:00
Julien Fontanet
f9ca4f339e Name components for better error messages. 2016-03-25 12:40:46 +01:00
Olivier Lambert
5919020e1c add cpu weight 2016-03-25 12:26:27 +01:00
Olivier Lambert
9d09c2356d add VM style 2016-03-25 12:08:24 +01:00
Julien Fontanet
3cfb597fc6 Properly forward props arg to super(). 2016-03-25 11:39:24 +01:00
Julien Fontanet
03f2da19e5 utils#Debug: component printing an object in JSON. 2016-03-25 11:39:24 +01:00
Julien Fontanet
951e62d984 Do not declare global variable osToFamily in utils. 2016-03-25 11:39:23 +01:00
Olivier Lambert
146039c4c5 translate UUID and use definitions for Advanced tab 2016-03-25 11:37:13 +01:00
Olivier Lambert
98a216fdb9 better translations 2016-03-25 11:00:45 +01:00
Olivier Lambert
28ea09a0c4 More translations 2016-03-24 23:32:59 +01:00
Olivier Lambert
a98a772360 remove trailing comma 2016-03-24 23:11:43 +01:00
Olivier Lambert
4f1da8a24b more translations 2016-03-24 23:11:03 +01:00
Olivier Lambert
cb83e71f2b better VM view 2016-03-24 19:29:49 +01:00
Olivier Lambert
646d174616 VM view stuff 2016-03-24 19:17:59 +01:00
Julien Fontanet
34cf78fd33 Require npm >=3. 2016-03-24 18:55:34 +01:00
Olivier Lambert
457e1bee2f fix osfamily 2016-03-24 18:45:02 +01:00
Olivier Lambert
6b95c63c1e style and some fixes 2016-03-24 18:25:46 +01:00
Julien Fontanet
e965f222db Merge pull request #841 from vatesfr/pierre-v5-action-bar
Action bar fixes
2016-03-24 18:17:50 +01:00
Olivier Lambert
d1591bc01c fix style 2016-03-24 17:36:12 +01:00
Olivier Lambert
a72846be7a uncomment icons 2016-03-24 17:36:12 +01:00
Julien Fontanet
5072661369 utils#{format,parse}Size() 2016-03-24 17:30:04 +01:00
Olivier Lambert
5417a83662 Add icon distro display 2016-03-24 17:09:28 +01:00
Pierre
23be006932 Removed console button in action bar 2016-03-24 16:54:33 +01:00
Pierre
e28553767e Label and icon are required for an ActionBar 2016-03-24 16:53:19 +01:00
Julien Fontanet
c1f64c043d Merge pull request #836 from vatesfr/pierre-v5-action-bar
v5 action bar
2016-03-24 16:50:02 +01:00
Pierre
9e6d0183d4 Button component. 2016-03-24 16:44:57 +01:00
Pierre
8dc7f3fb9e Better propTypes for ActionBar 2016-03-24 16:44:56 +01:00
Pierre
ac7b3b9b67 Icons CSS. propTypes on ActionBar and Icon. ActionBar in separate file. 2016-03-24 16:44:56 +01:00
Pierre
af0ebba5db Default icon. Lint fixes 2016-03-24 16:44:56 +01:00
Pierre
b454709e5e xo-icon- prefix in icon component. Default icon size: 1 2016-03-24 16:44:56 +01:00
Pierre
78684607bd Added VM actions icons 2016-03-24 16:44:56 +01:00
Pierre
3790cad5e5 Editable icon size. VM actions messages. 2016-03-24 16:44:56 +01:00
Pierre
77b7c091a8 Icon component 2016-03-24 16:44:56 +01:00
Pierre
450ad62fa9 ActionButton component. Added delete button in VM view. 2016-03-24 16:44:56 +01:00
Julien Fontanet
1d138c33a4 Col/Row can take a className prop. 2016-03-24 16:32:20 +01:00
Julien Fontanet
fb2a0e4a1e Add font-mfizz. 2016-03-24 16:18:04 +01:00
Julien Fontanet
da3db0b0f9 Cache node_modules on Travis. 2016-03-24 15:54:08 +01:00
Julien Fontanet
bc8aaadd90 Initial VM stats. 2016-03-24 15:39:18 +01:00
Olivier Lambert
e6054a4971 use Col from grid component 2016-03-24 13:44:54 +01:00
Olivier Lambert
26548e1929 using grid component 2016-03-24 13:37:45 +01:00
Julien Fontanet
4424cf8190 Initial grid component. 2016-03-24 12:53:19 +01:00
Julien Fontanet
67c1aacd54 @propTypes decorator. 2016-03-24 12:53:19 +01:00
Olivier Lambert
39b046f18b center properly 2016-03-24 12:50:29 +01:00
Julien Fontanet
d630f04872 Add missing dependency vinyl. 2016-03-24 11:43:22 +01:00
Julien Fontanet
35403c87bd Add missing dependency jsonrcp-websocket-client. 2016-03-24 11:30:27 +01:00
Julien Fontanet
f2b247e042 No tests for now: remove unused deps. 2016-03-24 11:16:04 +01:00
Julien Fontanet
94022bd9f2 Add missing dependency readable-stream. 2016-03-24 11:16:04 +01:00
Julien Fontanet
ccb2abb950 Remove support for Node < 4. 2016-03-24 11:16:00 +01:00
Julien Fontanet
cbafc15292 Various updates. 2016-03-24 10:52:49 +01:00
Julien Fontanet
e12c52294a Various updates. 2016-03-24 10:46:51 +01:00
Olivier Lambert
63b529da00 add react tabs 2016-03-24 10:06:51 +01:00
Olivier Lambert
e4be2fd19e add icons 2016-03-23 19:02:19 +01:00
Julien Fontanet
269bf4feec Various updates. 2016-03-23 18:40:56 +01:00
Olivier Lambert
9d4c4a1e2b translate tabs 2016-03-23 18:38:52 +01:00
Olivier Lambert
2e41fdcb41 More work on VM view 2016-03-23 18:01:32 +01:00
Olivier Lambert
2e48218623 conforming to the planned template display 2016-03-23 16:15:01 +01:00
Olivier Lambert
8576a54056 start the VM in the action bar 2016-03-23 16:02:30 +01:00
Julien Fontanet
79d924f920 Various updates. 2016-03-23 15:23:08 +01:00
Julien Fontanet
305beb3af8 Fix indent. 2016-03-23 13:00:04 +01:00
Julien Fontanet
06fceded14 Various updates. 2016-03-23 12:46:30 +01:00
Olivier Lambert
0eadfd5a58 Merge pull request #835 from vatesfr/abhamonr-fix-plugin-multiple-users-groups-loading
Avoid multiple users/groups loading in plugins view. (fix vatesfr/xo-…
2016-03-23 12:11:44 +01:00
wescoeur
eea34a4f6c Avoid multiple users/groups loading in plugins view. (fix vatesfr/xo-web#829) 2016-03-23 12:03:56 +01:00
Julien Fontanet
500ec36522 Various updates. 2016-03-23 11:21:47 +01:00
Julien Fontanet
ca525bd08c 4.15.1 2016-03-22 15:28:15 +01:00
Olivier Lambert
ac2ffc4586 Fix #830 2016-03-22 14:35:57 +01:00
Olivier Lambert
5781269557 Remove old message about not supported SMB remote for delta 2016-03-22 13:32:19 +01:00
Olivier Lambert
e4422b9fe7 Display only permitted SR for VM copy 2016-03-22 12:14:25 +01:00
Olivier Lambert
269f76d546 Fix #832 2016-03-22 11:47:34 +01:00
Julien Fontanet
540e3f0aaa 4.15.0 2016-03-21 16:50:22 +01:00
Olivier Lambert
5f64ae28e0 Merge pull request #800 from vatesfr/abhamonr-delta-backup-on-smb
SMB can be used with delta backups.
2016-03-21 09:37:40 +01:00
Julien Fontanet
ece364c823 Various updates. 2016-03-18 18:09:44 +01:00
Olivier Lambert
f669f64fcb add changelog 2016-03-18 16:17:36 +01:00
Julien Fontanet
2a53ed93c4 Various updates. 2016-03-18 15:00:33 +01:00
Julien Fontanet
2b731fb30c Various updates. 2016-03-18 12:14:06 +01:00
Julien Fontanet
be2db2dd8e Fix immediately spelling (thx @Danp2). 2016-03-18 10:02:30 +01:00
Julien Fontanet
09c08df1b9 Various updates. 2016-03-18 09:17:49 +01:00
Olivier Lambert
9ccd3438ad Fix #821 2016-03-17 19:15:35 +01:00
Julien Fontanet
393bcbcca5 Various updates. 2016-03-17 18:14:57 +01:00
Julien Fontanet
7fac0958b8 Various updates. 2016-03-17 16:35:45 +01:00
Olivier Lambert
c6a0874b3b Merge pull request #758 from vatesfr/marsaudf-backup-ui-fixes
Fixed backup remote lists
2016-03-17 14:23:56 +01:00
Olivier Lambert
9c80470185 Merge pull request #820 from vatesfr/pierre-server-version
Added server version in About view (See #807)
2016-03-17 14:21:56 +01:00
Julien Fontanet
2034445f5b Various updates. 2016-03-17 12:13:29 +01:00
Pierre
fd8da5ffba Added server version in About view 2016-03-17 10:52:32 +01:00
Olivier Lambert
e987af87f6 Merge pull request #809 from vatesfr/abhamonr-recursive-plugins-config
Complex configurations plugins. (recursion, array of objects...)
2016-03-17 10:31:31 +01:00
Pierre
0074cc3933 Fixed refresh bug. 2016-03-17 09:51:53 +01:00
Pierre
5f2ce89316 Fixed Object/String/Array display in plugin config. 2016-03-17 09:51:53 +01:00
Pierre
60492c48a6 Typo fix. 2016-03-17 09:51:53 +01:00
Pierre
eed2d70017 Better array display when items are objects 2016-03-17 09:51:53 +01:00
Pierre
b859adaa8c Fixes 2016-03-17 09:51:53 +01:00
Pierre
89a587f9ae enum handling 2016-03-17 09:51:53 +01:00
wescoeur
fb56bcff80 Complex configurations plugins. (recursion, array of objects...) 2016-03-17 09:51:53 +01:00
Fabrice Marsaud
99eb6907dd updater will block nav after 1 min out 2016-03-16 16:32:52 +01:00
Fabrice Marsaud
3743fad899 when updater-blocked, any nav attempt will retry connection 2016-03-16 16:18:02 +01:00
Olivier Lambert
c1e59a7e03 Merge pull request #818 from vatesfr/pierre-feedback-when-error-on-sr
Feedback when disconnecting a host from an SR does not work (See #810)
2016-03-16 15:54:11 +01:00
Pierre
b34dee1f83 Error message formatting: leading capital and trailing period. 2016-03-16 15:45:36 +01:00
Pierre
6edd65ad8f xo.pbd.disconnect instead of xoApi.call(...). Better error notification. 2016-03-16 15:01:29 +01:00
Olivier Lambert
0959ca6a40 Merge pull request #813 from vatesfr/pierre-network-management
Host & pool views: better network management (See #805)
2016-03-16 10:57:34 +01:00
Pierre
1287fa2cd0 Allowed network creation without PIF 2016-03-16 10:50:47 +01:00
Pierre
a5a07f250d UI improvements 2016-03-16 10:46:08 +01:00
Pierre
089fb526f5 IP configuration: DHCP & No IP. UI fixes. 2016-03-16 10:46:08 +01:00
Pierre
af58b7593a Configure PIF IP. UI fixes. 2016-03-16 10:46:07 +01:00
Pierre
d4508b25ce Only physical PIFs should be shown when creating network 2016-03-16 10:46:07 +01:00
Pierre
9edc218eaa Delete network 2016-03-16 10:46:07 +01:00
Olivier Lambert
3790f753aa Merge pull request #801 from vatesfr/pierre-pool-networks
Pool view: Interface panel and network creation (See #226)
2016-03-16 10:45:06 +01:00
Julien Fontanet
82b30d8388 Do not use nice-pipe (too buggy). 2016-03-10 17:23:04 +01:00
Julien Fontanet
e9a0dc7826 Various updates. 2016-03-10 17:01:16 +01:00
wescoeur
8ce3a4f904 SMB can be used with delta backups. 2016-03-09 17:12:15 +01:00
Julien Fontanet
1d42e9c348 Disable tests for now. 2016-03-09 14:29:27 +01:00
Julien Fontanet
2340a6bc37 Various updates. 2016-03-09 14:28:18 +01:00
Pierre
be0b9c7e53 Removed log 2016-03-09 10:38:45 +01:00
Pierre
6d75cd9025 Minor fix 2016-03-09 10:33:09 +01:00
Pierre
345d6f369e network.create instead of createNetwork for host and pool 2016-03-09 10:33:09 +01:00
Pierre
959ea86d85 Pool view: Interface panel and network creation 2016-03-09 10:33:09 +01:00
Olivier Lambert
b67a99af3d Add types for ISO SRs 2016-03-04 13:36:35 +01:00
Olivier Lambert
fa3b848d40 Merge pull request #799 from vatesfr/pierre-add-smb-sr
UI to add an SMB SR (user and password inputs) (Fix #731)
2016-03-03 18:25:55 +01:00
Pierre
0f971e9e7d Minor fix. 2016-03-03 17:55:43 +01:00
Pierre
c17f76c009 SMB case fix. 2016-03-03 17:50:23 +01:00
Pierre
bf23b5d295 Enabled Create button and removed search button when SMB. 2016-03-03 17:39:18 +01:00
Pierre
09c7256d42 UI to add an SMB SR (user and password inputs) 2016-03-03 16:58:46 +01:00
Olivier Lambert
eaee8a2fbb Merge pull request #798 from vatesfr/pierre-new-vm-from-pool-enhancement
New VM on pool: display all SRs (Fix #790)
2016-03-03 16:41:45 +01:00
Pierre
3b18dd67be Compatibility with self service 2016-03-03 16:16:03 +01:00
Pierre
c3f87b4248 Explicit message in summary 2016-03-03 15:27:07 +01:00
Julien Fontanet
f6b91ad652 Update deps. 2016-03-03 14:54:29 +01:00
Pierre
1c79edc52f Detection of incompatible SRs 2016-03-03 13:05:26 +01:00
Julien Fontanet
fe2dfd0e8f Merge branch 'stable' into next-release 2016-03-03 13:03:18 +01:00
Olivier Lambert
fa6056c1b1 Add unknown state 2016-03-03 12:26:06 +01:00
Olivier Lambert
d5762c7ad8 limit VDI form for admin users 2016-03-03 12:26:06 +01:00
Julien Fontanet
d9c9dd2a4f Welcome message in the issue template 2016-03-03 11:31:27 +01:00
Olivier Lambert
3a4d945c68 Merge pull request #793 from Danp2/next-release
Fix issue with gathering NFS shares
2016-03-02 23:41:04 +01:00
Danp2
f4a364816b Fix issue with gathering NFS shares
scsiList vs nfsList
2016-03-02 16:11:26 -06:00
Olivier Lambert
931bc03cab Inverse critical/warning SR usage in health view 2016-03-02 18:30:05 +01:00
Olivier Lambert
1abd4937cd Merge pull request #792 from vatesfr/pierre-licenses
Host and pool licenses (Fix #763)
2016-03-02 17:39:09 +01:00
Pierre
0df8b51c62 Host view and pool view: License panel. 2016-03-02 17:09:20 +01:00
Julien Fontanet
e5b7190015 Fix file uploads (2). 2016-03-02 16:24:15 +01:00
Olivier Lambert
279b8aacf6 add missing map filters 2016-03-02 15:44:23 +01:00
Olivier Lambert
9eebaab2f4 Add a map param for backup schedule view 2016-03-02 15:42:33 +01:00
Julien Fontanet
16e9d60033 Fix file uploads. 2016-03-02 15:27:30 +01:00
Olivier Lambert
335b378e9a Merge pull request #789 from vatesfr/pierre-disk-names
Default VDI names and descriptions (Fix #780)
2016-03-02 15:20:39 +01:00
Pierre
9c41bc33a3 Default names for template VDIs 2016-03-02 15:13:34 +01:00
Olivier Lambert
7f7d6b4d5d Merge pull request #772 from vatesfr/pierre-cpu-weight-in-resource-set
CPU weight edition should be disabled for resource set members (Fix #…
2016-03-02 14:56:05 +01:00
Olivier Lambert
cc0e3bbce0 Merge pull request #773 from vatesfr/pierre-host-patches-in-pool-view
Pool view: host updates panel (Fix #762)
2016-03-02 14:41:11 +01:00
Pierre
2eead65fef CPU weight should not be editable when creating a VM from a resource set 2016-03-02 14:36:46 +01:00
Pierre
e664be451f VDIs default names initialization in view 2016-03-02 12:40:44 +01:00
Pierre
d2d8160096 Default VDI names and descriptions 2016-03-02 10:28:29 +01:00
Olivier Lambert
3bd503c28d remove useless device number in VM migration window 2016-03-02 10:27:57 +01:00
Olivier Lambert
aa1df8eb33 Add Misc panel in host view to deliver system S/N etc. Fix #760 2016-03-01 17:17:36 +01:00
Olivier Lambert
c1aace45ae Match target network names for migration. Fix #782 2016-03-01 16:40:45 +01:00
Olivier Lambert
217a60aadc Improve the migration VM modal. Fix #785 2016-03-01 15:47:37 +01:00
Olivier Lambert
5654f528ca fix the task list for angular 1.5 2016-03-01 15:35:48 +01:00
Olivier Lambert
4da036a064 Add a missing angular map 2016-03-01 15:16:55 +01:00
Olivier Lambert
2256b3d262 Merge pull request #788 from Danp2/next-release
Minor fix to unitConfirms
2016-03-01 13:36:24 +01:00
Danp2
d84ecc307d Minor fix to unitConfirms 2016-03-01 06:32:30 -06:00
Julien Fontanet
237313d5fb Merge pull request #781 from vatesfr/fix-vdi-iteration-in-vm-creation
VM creation: correctly iterate over template VDIs (fix #778).
2016-02-29 18:49:33 +01:00
Olivier Lambert
7caf766bca Do not display CDs VBDs 2016-02-29 18:44:08 +01:00
Julien Fontanet
0a3f9f5ef1 Add issue template. 2016-02-29 16:37:13 +01:00
Julien Fontanet
e890b8f7c1 VM creation: correctly iterate over template VDIs (fix #778). 2016-02-29 15:14:52 +01:00
Olivier Lambert
dc4d5f0ecb fixing angular 1.5 2016-02-26 18:03:07 +01:00
Pierre
a2f0980731 Pool view: host updates panel (Fix #762) 2016-02-26 17:59:33 +01:00
Julien Fontanet
0a5c029f8b lodash.sum(): does not work with objects anymore. 2016-02-26 17:36:06 +01:00
Julien Fontanet
85bb79e4fb Move shims to app/node_modules.
Hopefully this will avoid there accidental deletion by users.
2016-02-26 15:55:05 +01:00
Julien Fontanet
f18d1e50f8 Fix ng-file-upload import. 2016-02-26 15:55:05 +01:00
Julien Fontanet
943b10dd5d Update angular-chart.js to 0.8. 2016-02-26 15:55:05 +01:00
Julien Fontanet
0a48e17c88 Update ng-angular-upload to 12.0. 2016-02-26 15:55:05 +01:00
Olivier Lambert
da1381e14e Map usage before orderBy for dashboard view 2016-02-26 15:53:14 +01:00
Pierre
bdffb0ee10 CPU weight edition should be disabled for resource set members (Fix #767) 2016-02-26 14:51:53 +01:00
Julien Fontanet
7bdb7d2ca8 Fix angular-bootstrap usage in updater. 2016-02-26 14:34:56 +01:00
Julien Fontanet
92567561b8 Update angularjs-toaster to 1.2. 2016-02-26 13:06:02 +01:00
Julien Fontanet
335bdcd89d Update angular-xeditable-npm to 0.1.9. 2016-02-26 13:05:56 +01:00
Julien Fontanet
4c2fc13abb Update ui-select to 0.14. 2016-02-26 13:05:51 +01:00
Julien Fontanet
7f8f29daa2 Update angular-ui-bootstrap to 0.14. 2016-02-26 12:43:48 +01:00
Julien Fontanet
8fac845ecb Use angular-ui-{event,indeterminate} instead of deprecated angular-ui-utils. 2016-02-26 12:34:56 +01:00
Olivier Lambert
d8076e7630 Merge pull request #756 from vatesfr/pierre-self-service-dashboard
Self service dashboard (Fix #741)
2016-02-26 11:56:27 +01:00
Pierre
b370bc27c4 Fixed condition when no resource set found 2016-02-26 11:41:08 +01:00
Pierre
334c3f4488 Removed arrows when only 1 page is needed 2016-02-26 11:34:46 +01:00
Pierre
33822109c0 Minor fixes 2016-02-26 11:20:11 +01:00
Pierre
b1f18b0f5b Added templates, SRs and networks to details 2016-02-26 10:00:32 +01:00
Julien Fontanet
c0d6284368 Fix Jade compilation for Node < v4. 2016-02-25 17:48:16 +01:00
Pierre
16e294f6fc Resource sets details 2016-02-25 17:47:46 +01:00
Pierre
5f7925b2b8 Display page number 2016-02-25 17:47:46 +01:00
Pierre
2e001b0ce4 Pages layout 2016-02-25 17:47:46 +01:00
Pierre
c1ca3ff5b5 [WIP] All resource sets together (other layout commented). 2016-02-25 17:47:46 +01:00
Pierre
1de33cd4ca Self service dashboard (Fix #741)
Fixed no limit condition and icons.
2016-02-25 17:47:46 +01:00
Olivier Lambert
77b773388f fix network list in new vm, using map before orderby 2016-02-25 15:47:34 +01:00
Olivier Lambert
3e668ee439 Merge pull request #759 from vatesfr/fix-babel-6-imports
Fix Babel 6: `require module` --> `require(module).default`
2016-02-25 11:38:23 +01:00
Pierre
0d3ea9af36 Fix Babel 6: require module --> require(module).default 2016-02-25 11:21:47 +01:00
Fabrice Marsaud
0d81bc8056 Fixed backup remote lists 2016-02-25 09:24:38 +01:00
Julien Fontanet
e4b532a34d week heatmap: fix lodash.pluck usage. 2016-02-24 17:49:32 +01:00
Julien Fontanet
61f86c0ac3 Merge pull request #739 from vatesfr/update-deps
Update deps
2016-02-24 16:58:35 +01:00
Julien Fontanet
66fad37116 Remove unused lodash.puck dep. 2016-02-24 16:53:12 +01:00
Julien Fontanet
c7bbd8c823 Update nice-pipe to v3. 2016-02-24 16:44:07 +01:00
Julien Fontanet
dc6f8baf1e Update Babel to v6. 2016-02-24 16:44:07 +01:00
Julien Fontanet
0e76e65d65 Update Coffeeify to v2. 2016-02-24 16:44:07 +01:00
Julien Fontanet
877dbed999 Update Browserify to v13. 2016-02-24 16:44:07 +01:00
Julien Fontanet
668fd05fae Update Bluebird to v3. 2016-02-24 16:44:07 +01:00
Julien Fontanet
3e49998f41 Update Lodash to v4. 2016-02-24 16:44:07 +01:00
Julien Fontanet
99b183ac17 Update Angular to v1.5. 2016-02-24 16:42:51 +01:00
Fabrice Marsaud
bb04cddc48 4.14.1 2016-02-24 13:57:24 +01:00
Fabrice Marsaud
ba3f095dd8 4.14.0 2016-02-24 13:57:13 +01:00
Julien Fontanet
f8438421c8 4.13.1 2016-02-24 13:42:15 +01:00
Julien Fontanet
334361860b Merge pull request #753 from vatesfr/pierre-self-service-user
New-VM: Fixed summary when modifying an existing disk size
2016-02-24 13:42:00 +01:00
Pierre
23bd211758 Fixed summary when modifying an existing disk size 2016-02-24 13:26:58 +01:00
Julien Fontanet
4cc8fb9891 Merge pull request #752 from vatesfr/pierre-state-go
Better redirection when creating VM(s)
2016-02-24 12:51:32 +01:00
Pierre
ed3cd690fe Better redirection when creating VM(s) 2016-02-24 12:50:04 +01:00
Julien Fontanet
9a40c7cdc6 Merge pull request #750 from vatesfr/pierre-self-service-user
No limit: limit value should not exist when input field is empty
2016-02-24 12:44:37 +01:00
Pierre
ae4c9ce819 Better handle for no limit 2016-02-24 12:44:06 +01:00
Pierre
2f8bae1356 No limit: limit value should be undefined when input field is empty 2016-02-24 12:23:51 +01:00
Olivier Lambert
2dfcd5b7ef Merge pull request #740 from vatesfr/pierre-self-service-user
Create VM with self service (See #285)
2016-02-23 18:56:48 +01:00
Pierre
739926f64e Fixed button addon in disk list (VM view) 2016-02-23 18:51:04 +01:00
Pierre
a18dde07de Fixed multiple lines ng-disabled 2016-02-23 18:42:54 +01:00
Pierre
6480017a91 Fixed Create button disabled condition 2016-02-23 18:39:47 +01:00
Pierre
4467ec52f7 No limit: undefined instead of null. 2016-02-23 18:24:53 +01:00
Pierre
072d82a10e Size unit fix. 2016-02-23 18:15:43 +01:00
Pierre
b50b759f4f Default RAM size unit in New VM view 2016-02-23 18:11:07 +01:00
Pierre
c1477ad45f Typo fix. 2016-02-23 18:09:02 +01:00
Pierre
679d45399b Typo fix. Default resource set RAM size unit. 2016-02-23 17:31:37 +01:00
Pierre
0e15a789ff Fixed buttons addons 2016-02-23 16:55:47 +01:00
Pierre
dff5b3f497 Fixed resourceSet edition 2016-02-23 16:55:47 +01:00
Pierre
483e49a6ae Connect interface and server 2016-02-23 16:55:47 +01:00
Pierre
a689b5b917 Changed resourceSet^Ctructure for limits. Minor fixes. 2016-02-23 16:55:46 +01:00
Pierre
1363d98280 New VM: progress bars to show remaining available resources 2016-02-23 16:55:46 +01:00
Pierre
405f3dcbdd Resource sets: CPU, RAM and disk space restrictions 2016-02-23 16:55:46 +01:00
Pierre
4b48408bc9 Margin fix 2016-02-23 16:55:46 +01:00
Pierre
d6f1e2d7e2 Form alignements 2016-02-23 16:55:46 +01:00
Pierre
c04c8e3aa4 Moved "select resource set" on title row 2016-02-23 16:55:46 +01:00
Pierre
ff5a08d3b0 Enabled resource set edition 2016-02-23 16:55:46 +01:00
Pierre
d2049c759e Enabled ISO installing method 2016-02-23 16:55:46 +01:00
Pierre
f940cb0ace Redirect to list view instead of VM view 2016-02-23 16:55:46 +01:00
Pierre
507f2f4af4 Creation form updated when resource set selected 2016-02-23 16:55:45 +01:00
Pierre
deca7099f3 Checking available resource sets for a specific user 2016-02-23 16:55:45 +01:00
Pierre
46a741825a [WIP] Create VM as non-admin user with self service 2016-02-23 16:55:45 +01:00
Fabrice Marsaud
14fdcd3052 Reworked for sequential SR and Network choice 2016-02-23 16:55:44 +01:00
Fabrice Marsaud
c76b01608a Fixes. Commented quotas for later use. 2016-02-23 16:55:44 +01:00
Fabrice Marsaud
be709d6601 Rewrite on server API 2016-02-23 16:55:44 +01:00
Fabrice Marsaud
7dc8fac198 Fix constraint rules 2016-02-23 16:55:44 +01:00
Fabrice Marsaud
29ae7d57fd display and mock save/edit 2016-02-23 16:55:43 +01:00
Fabrice Marsaud
1bf9ce872b constraint reolutions 2016-02-23 16:55:43 +01:00
Fabrice Marsaud
0071c9504f first steps 2016-02-23 16:55:43 +01:00
Olivier Lambert
594a872c84 forget _reportWhen 2016-02-23 16:54:23 +01:00
Julien Fontanet
0d1f78e82e Better permission handling when not connected. 2016-02-23 16:49:14 +01:00
Julien Fontanet
a12de51897 generic modal: fix missing cancel button. 2016-02-23 16:12:59 +01:00
Olivier Lambert
74fa084dd0 update changelog 2016-02-23 16:02:37 +01:00
Julien Fontanet
a1ee258da5 Do not call vm.set() directly in new VM controller. 2016-02-23 15:18:34 +01:00
Julien Fontanet
c1af171c5d Do not call vm.set() directly in VM controller. 2016-02-23 15:04:50 +01:00
Olivier Lambert
e36c9560fa fix form declaration for conditional backup. Thanks to @Danp2 for pointing it 2016-02-23 13:58:37 +01:00
Olivier Lambert
5cd19ddc8d UI fix for non admin users 2016-02-23 11:00:36 +01:00
Olivier Lambert
ac243e5d11 Merge pull request #745 from vatesfr/pierre-overview-remote-status-indicator
Fixed error button condition in Overview. Minor UI fix.
2016-02-23 10:23:00 +01:00
Olivier Lambert
b480d019f6 add conditional reporting for rolling snaps 2016-02-23 10:21:46 +01:00
Olivier Lambert
cc13ab97d6 add conditional reporting for DR 2016-02-23 10:19:00 +01:00
Olivier Lambert
fee1d2ed04 add conditional report for basic backup 2016-02-23 10:15:36 +01:00
Pierre
4144d5faa6 Fixed error button condition in Overview. Minor UI fix. 2016-02-23 10:11:09 +01:00
Olivier Lambert
38a23c0bee add conditional reporting for delta backup 2016-02-23 09:50:23 +01:00
Olivier Lambert
8fcfebe170 Merge pull request #744 from Danp2/reportWhen
CR conditional reporting
2016-02-22 21:54:34 +01:00
Danp2
f917fa8138 CR conditional reporting
Add functionality to allow conditional reporting to continuous
replication backup
2016-02-22 14:31:40 -06:00
Julien Fontanet
f60b611304 Revert to use ~ for Angular versions. 2016-02-22 18:32:40 +01:00
Olivier Lambert
a54624e5c8 Merge pull request #743 from vatesfr/sources-disclaimer
Sources disclaimer
2016-02-22 18:08:09 +01:00
Olivier Lambert
370b14b82e better text and link to XOA page 2016-02-17 13:21:00 +01:00
Julien Fontanet
88205adeb2 Update Angular to v1.4.9. 2016-02-17 12:42:57 +01:00
Julien Fontanet
351ce995d9 Sources disclaimer appears once every week. 2016-02-17 12:42:42 +01:00
Julien Fontanet
a9aa92de90 modal service: new htmlMessage option. 2016-02-17 12:34:46 +01:00
Olivier Lambert
9ea665dea2 include default cloudconfig + link toward the official doc 2016-02-17 11:42:53 +01:00
Julien Fontanet
30b52527e7 modal service: new alert() method. 2016-02-17 11:40:54 +01:00
Julien Fontanet
bb4125153b Dashboard/Health: fix deletion of VDIs/VMs after unselected item(s). 2016-02-16 17:50:41 +01:00
Olivier Lambert
f0d5b2b1da Merge pull request #732 from vatesfr/pierre-overview-remote-status-indicator
Backup overview: Status indicator for the remote associated to each job (Fix #728)
2016-02-12 18:04:25 +01:00
Pierre
30c4048e4a Handle remote/remoteId property 2016-02-12 17:48:51 +01:00
Pierre
93770ca9ce Alert when remote does not exist 2016-02-12 17:21:41 +01:00
Pierre
e788783d12 Backup overview: Status indicator for the remote associated to each job 2016-02-12 17:10:11 +01:00
Olivier Lambert
1314444d7c Merge pull request #730 from vatesfr/pierre-boot-order
Fixed boot order options bug (Fix #726)
2016-02-12 11:27:44 +01:00
Pierre
2a14664d34 Fixed boot order options bug (Fix #726)
Unchecking a boot option should not uncheck all the options below it.
2016-02-12 11:12:48 +01:00
Olivier Lambert
07a03940a0 order installed patch by name 2016-02-11 11:45:56 +01:00
Olivier Lambert
5f2f6fff56 Merge pull request #725 from vatesfr/pierre-vm-view-ui-enhancements
New VM: fixed summary refresh (Fix #721)
2016-02-11 11:06:55 +01:00
Pierre
353548660c New VM: fixed summary refresh (Fix #721) 2016-02-11 10:58:00 +01:00
Olivier Lambert
912f07225c Merge pull request #723 from vatesfr/pierre-custom-cloud-config
Custom config in Config Drive
2016-02-11 10:47:29 +01:00
Pierre
a23b7eeff1 Uplad config file: status icons, size check. Minor fixes. 2016-02-11 10:32:58 +01:00
Pierre
574f0d71b2 Custom config in Config Drive 2016-02-10 16:32:11 +01:00
Olivier Lambert
a368312035 Merge pull request #720 from vatesfr/pierre-vm-view-ui-enhancements
Size input should allow float numbers (Fix #719)
2016-02-10 14:46:16 +01:00
Pierre
2f88b1ab65 +string instead of parseFloat(string) 2016-02-10 14:43:15 +01:00
Pierre
f85f97e061 Size input should allow float numbers (Fix #719) 2016-02-10 14:36:00 +01:00
Olivier Lambert
30dec13903 Merge pull request #718 from vatesfr/pierre-table-ellipsis
Fixed text overflow in tables. (See #713)
2016-02-10 14:02:37 +01:00
Pierre
3057e5c997 Fixed text overflow in tables. (See #713)
`overflow: hidden` for td and th. Inline CSS style when `overflow: visible` is needed.
2016-02-10 10:04:49 +01:00
Olivier Lambert
6c413eb1ba Fix issue #703 2016-02-08 17:38:22 +01:00
Julien Fontanet
dcdd9132e2 The main bug tracker is xo-web. 2016-02-08 15:33:35 +01:00
Olivier Lambert
d9b1c36055 typo in changelog 2016-02-04 22:14:39 +01:00
Olivier Lambert
a593a247d7 change log update 2016-02-04 22:13:51 +01:00
Julien Fontanet
155debc864 4.13.0 2016-02-04 19:51:07 +01:00
Julien Fontanet
a5975ac38b Merge branch 'next-release' into stable 2016-02-04 19:50:39 +01:00
Olivier Lambert
204f1cfd6b Merge pull request #674 from vatesfr/pierre-vm-view-ui-enhancements
Select RAM units with dropdown menus
2016-02-04 09:52:50 +01:00
Pierre
2d22e043a0 Dropdown menus to select byte units (Fix #666)
New-VM view: RAM & VDIs sizes
VM view: RAM & VDIs sizes
SR view: VDIs sizes
2016-02-03 16:18:05 +01:00
Olivier Lambert
c26cacaf4e Merge pull request #687 from vatesfr/xo-acl-resolver
Use xo-acl-resolver.
2016-02-03 14:26:40 +01:00
Olivier Lambert
f0048544e2 Merge pull request #681 from vatesfr/olivierlambert-health
WIP: initial work on new health view
2016-02-03 14:16:45 +01:00
Olivier Lambert
cf227dbfa2 Merge pull request #695 from vatesfr/marsaudf-fix-sr-form
fix SR form
2016-02-03 14:00:38 +01:00
Olivier Lambert
a5f8bdbe61 fix issue #693 2016-02-03 13:26:07 +01:00
Olivier Lambert
e442553c6f Fix issue #691 2016-02-03 13:21:17 +01:00
Olivier Lambert
7134acfcd6 Fix issue #690 2016-02-03 13:18:21 +01:00
Olivier Lambert
82439f444e Fix issue #688 2016-02-03 13:03:58 +01:00
Fabrice Marsaud
1a17908488 fix SR form 2016-02-03 12:12:15 +01:00
Julien Fontanet
9af30e99f8 Use xo-acl-resolver. 2016-02-03 11:53:54 +01:00
Fabrice Marsaud
6f942c3417 orphans in sr view 2016-02-03 11:07:07 +01:00
Fabrice Marsaud
57083c90cd Fixes 2016-02-03 10:48:21 +01:00
Fabrice Marsaud
e28bcdd978 Correct rule for orphan snapshots 2016-02-03 10:28:49 +01:00
Olivier Lambert
0b4a5ab2eb working filter 2016-02-02 23:31:00 +01:00
Fabrice Marsaud
034704a330 No warnings for iso SRs 2016-02-02 17:59:59 +01:00
Fabrice Marsaud
5c60eaf6ab SR warnings 2016-02-02 17:45:49 +01:00
Fabrice Marsaud
f5709eac2c orphan snapshots panels 2016-02-02 16:52:57 +01:00
Fabrice Marsaud
5a5e714aca Fixed cpuWeight default choice 2016-02-02 09:43:18 +01:00
Olivier Lambert
747d48e4d9 adding missing files 2016-02-01 18:30:02 +01:00
Olivier Lambert
07a0200f30 WIP: initial work on new health view 2016-02-01 18:28:09 +01:00
Fabrice Marsaud
1c5313f2d9 Fixed cpuWeight type 2016-02-01 17:51:10 +01:00
Olivier Lambert
05e08719fb Merge pull request #678 from vatesfr/olivierlambert-srfixes
Use only physical usage for SRs
2016-02-01 17:31:10 +01:00
Olivier Lambert
ca0e616f88 Only use physical utilization for SR 2016-02-01 17:26:08 +01:00
Fabrice Marsaud
a8d20caba4 CPU Weight can back to default 2016-02-01 16:29:53 +01:00
Olivier Lambert
0d4bbb0a48 Merge pull request #677 from vatesfr/marsaudf-cpu-weigth#633
Edit VM CPU Weight
2016-02-01 16:10:36 +01:00
Fabrice Marsaud
b9cc219530 Handle VM CPU Weight 2016-02-01 15:54:52 +01:00
Olivier Lambert
e204ab5871 Merge pull request #650 from vatesfr/pierre-vm-migration-details
Custom VM migration in VM view
2016-01-28 17:02:35 +01:00
Fabrice Marsaud
16d0c05b4b Fiw attempt on console canvas 2016-01-28 15:33:48 +01:00
Fabrice Marsaud
6f8329d191 VDI multi delete 2016-01-28 15:09:36 +01:00
Olivier Lambert
d751463b26 Merge pull request #660 from vatesfr/abhamonr-avoid-metadata-imp-exp-delta-backups
New delta backup format used. (without 'xva' files) (fix #651)
2016-01-28 11:35:11 +01:00
Olivier Lambert
d3b66eff59 Merge pull request #671 from vatesfr/marsaudf-clear-logs#661
Delete job logs
2016-01-28 11:01:15 +01:00
Olivier Lambert
4257d0332a Merge pull request #672 from vatesfr/marsaudf-console-links#668
Differentiate VM and VM-controller console
2016-01-28 10:02:40 +01:00
Julien Fontanet
ccbcaa94fe Various updates. 2016-01-28 09:45:40 +01:00
Fabrice Marsaud
b80442c061 Fix to remove smb remotes for delta-backups 2016-01-28 09:22:22 +01:00
Fabrice Marsaud
3a0f6820ad Differentiate VM and VM-controller console 2016-01-28 09:02:58 +01:00
Fabrice Marsaud
1bc92f5363 Delete job logs 2016-01-28 08:50:50 +01:00
Olivier Lambert
818ddcf01e Merge pull request #663 from vatesfr/marsaudf-angular-crash#662
Secure VM object concurrent suppression
2016-01-28 08:18:43 +01:00
Olivier Lambert
618ba361c7 Merge pull request #568 from vatesfr/marsaudf-smb-mounts#338
SMB remotes
2016-01-28 08:18:24 +01:00
wescoeur
599160a325 New delta backup format used. (without 'xva' files) (fix #651) 2016-01-27 13:37:54 +01:00
Pierre
35fba6f4ed Custom VM migration from VM view (See #567)
- Migration on the same pool :
	- if the VM's VDIs are on the pool's SRs : standard migration
	- if the VM's VDIs are on local SRs : choose migration network and target SRs
- Migration on another pool : choose migration network, target SRs and target VIFs
2016-01-27 11:36:38 +01:00
Fabrice Marsaud
a14aad75fd external remote url module 2016-01-27 10:12:16 +01:00
Fabrice Marsaud
3513e85b0b remote url composing fix 2016-01-27 10:12:16 +01:00
Fabrice Marsaud
66c0390fc7 No smb remotes for delta backups 2016-01-27 10:12:16 +01:00
Fabrice Marsaud
a6549ccb08 SMB remotes 2016-01-27 10:12:16 +01:00
Julien Fontanet
15d2878014 Merge pull request #669 from Danp2/Danp2-patch-1
Fix spelling of "immediately"
2016-01-27 09:10:44 +01:00
Danp2
d271be8723 Update view.jade 2016-01-26 19:32:09 -06:00
Danp2
6f9d2d99dd Update view.jade 2016-01-26 19:31:43 -06:00
Danp2
5d62664ee3 Update view.jade 2016-01-26 19:30:45 -06:00
Danp2
7124d9f2f8 Update view.jade 2016-01-26 19:26:53 -06:00
Fabrice Marsaud
0459744771 Fixes disk save handling 2016-01-25 17:40:47 +01:00
Fabrice Marsaud
417544b781 Secure VM object concurrent suppression 2016-01-25 17:40:35 +01:00
Olivier Lambert
f9028cb366 Change the word Terminated by Finished for backups 2016-01-22 18:22:50 +01:00
Julien Fontanet
0ffa9d4225 Various updates. 2016-01-22 16:03:33 +01:00
Olivier Lambert
9a264719a9 Avoid broken Angular views. Fix #662 2016-01-21 15:11:42 +01:00
Olivier Lambert
96c213dcc4 Typo about the year in the changelog 2016-01-18 12:56:29 +01:00
Julien Fontanet
dec1a8e204 4.12.0 2016-01-18 10:45:50 +01:00
Olivier Lambert
a17fd697e2 update the CHANGELOG 2016-01-17 16:58:31 +01:00
Fabrice Marsaud
a6ab66e799 Fix #654 2016-01-17 16:12:11 +01:00
Fabrice Marsaud
17095ec3c6 Fix #652 2016-01-17 15:57:58 +01:00
Olivier Lambert
82687147b8 changelog for release 2016-01-17 10:24:28 +01:00
Olivier Lambert
ba76422c1f Merge pull request #648 from vatesfr/abhamonr-continuous-replication-view
Continuous replication view.
2016-01-16 20:04:05 +01:00
wescoeur
083b3c4ece Continuous replication view. (fix #582) 2016-01-15 13:15:43 +01:00
Olivier Lambert
5ecfdf38a8 Merge pull request #600 from vatesfr/abhamonr-button-bootable-disk
Use checkbox to disable/enable bootable disk property. (fix #583)
2016-01-14 16:26:54 +01:00
wescoeur
dd1acf3c2a Use checkbox to disable/enable bootable disk property. (fix #583) 2016-01-14 16:22:45 +01:00
Olivier Lambert
76e9c2d196 Fix issue #643 2016-01-13 18:54:19 +01:00
Julien Fontanet
15f046959d Fix lodash.trim to 3.0.1 (see lodash/lodash#1769). 2016-01-13 16:23:20 +01:00
Olivier Lambert
bf3ba04624 Merge pull request #620 from vatesfr/abhamonr-disable-vm-start-during-delta-import
Disable vm start during delta import and explicit notification. (fix #613)
2016-01-13 11:53:54 +01:00
Olivier Lambert
d997894d9a Merge pull request #614 from vatesfr/pierre-create-multiple-vms
Create multiple VMs at once
2016-01-13 11:33:18 +01:00
wescoeur
c1059db6e5 Disable vm start during delta import and explicit notification. (fix #613) 2016-01-13 11:04:24 +01:00
Pierre
8ad29a2836 Creation of multiple VMs at once
- Panel to enable the creation of multiple VMs at once
- Main name is no longer required when creating multiple VMs
- Number of VMs is checked before creating VMs names input fields
- Redirection to tree view instead of VM view when creating multiple VMs
- Number of new VMs in summary
2016-01-13 10:52:48 +01:00
Olivier Lambert
93a454b835 fix id propagation problem 2016-01-13 10:33:06 +01:00
Olivier Lambert
da899386ec Merge pull request #640 from vatesfr/marsaudf-plugin-view-fix#637
Plugin reload after changes
2016-01-07 11:53:16 +01:00
Fabrice Marsaud
05d22903ea Plugin reload after changes 2016-01-07 11:45:15 +01:00
Olivier Lambert
33945520f1 Fix issue #639 2016-01-06 10:22:52 +01:00
Olivier Lambert
40284809cf choose to boot VM after creation. Fix #635 2016-01-04 16:41:16 +01:00
Olivier Lambert
efc18aaaec ensure CloudConfig drive is created before going on the freshly created VM view 2016-01-04 16:37:04 +01:00
Olivier Lambert
348441b046 improve hostname regex for CloudInit 2016-01-04 12:35:47 +01:00
Olivier Lambert
66601b2e7c remove space in hostname for cloudconfig. Fix #634 2016-01-04 12:33:52 +01:00
Olivier Lambert
724c5e4b73 VM creation auto name, description & select existing install repo 2015-12-31 10:50:15 +01:00
Olivier Lambert
7eff29bc65 remove useless logs 2015-12-31 10:25:49 +01:00
Olivier Lambert
ca002003c2 fix VIFs issues in VM creation 2015-12-31 10:25:23 +01:00
Olivier Lambert
f0675f1f3c Merge pull request #618 from vatesfr/pierre-delete-running-vm
Delete a running or suspended VM (See #616)
2015-12-31 08:56:19 +01:00
Olivier Lambert
976186c525 Merge pull request #631 from vatesfr/olivierlambert-existing-vifs
manage existing VDIs, fix #630
2015-12-30 22:16:00 +01:00
Olivier Lambert
89d5777e52 allow existing VIFs edition during VM creation. Fix #630 2015-12-30 22:12:15 +01:00
Olivier Lambert
8dbb69809c Merge pull request #629 from vatesfr/olivierlambert-custom-templates
Custom templates, fix #627 and #628
2015-12-30 18:18:09 +01:00
Olivier Lambert
7348bd5d15 support templates with existing install_repository, as requested for issue #625 2015-12-30 16:08:39 +01:00
Olivier Lambert
9a46a466f7 properlly manage PV args (related to #625) 2015-12-30 15:27:41 +01:00
Fabrice Marsaud
fafc5c8553 Deltabackup display fix 2015-12-30 13:46:12 +01:00
Julien Fontanet
4ffdfaa506 Merge pull request #619 from vatesfr/pierre-fix-suspend-vm-tree-view
Fixed `suspendVM` in tree view.
2015-12-22 15:56:50 +01:00
Pierre
e3989840ee Fixed suspendVM in tree view. 2015-12-22 15:51:59 +01:00
Pierre
b3e6f531a1 Delete not halted VMs (See #616) 2015-12-22 15:46:19 +01:00
Julien Fontanet
4f6ee34592 4.11.0 2015-12-22 13:05:56 +01:00
Olivier Lambert
3ae58a323e update changelog 2015-12-22 12:36:12 +01:00
Fabrice Marsaud
26b958c270 SR host names displayed when necessary 2015-12-22 12:00:15 +01:00
Olivier Lambert
12a4af5900 fix a broken link 2015-12-22 10:39:18 +01:00
Julien Fontanet
69479d538c Merge pull request #611 from vatesfr/abhamonr-incremental-backups-integration
Delta Backup is now known by xo-web.
2015-12-21 18:52:26 +01:00
wescoeur
829397dd5a Delta Backup is now known by xo-web. 2015-12-21 18:00:31 +01:00
Olivier Lambert
2bc89026db Merge pull request #612 from vatesfr/marsaudf-sr-list#601
All host SRs from the pool are shown for Halted VMs disk edition
2015-12-21 16:03:22 +01:00
Fabrice Marsaud
ebbc44d181 All host SRs from the pool are shwon for Halted VMs disk edition 2015-12-21 15:58:49 +01:00
Olivier Lambert
2228a1e36b update changelog 2015-12-21 12:37:33 +01:00
Olivier Lambert
a8cbf3e8ff Merge pull request #602 from vatesfr/pierre-plugin-config-detailed-errors
Plugin config: feedback on form filling errors
2015-12-21 12:02:57 +01:00
Olivier Lambert
fa32e3d734 Merge pull request #598 from vatesfr/marsaudf-disk-size-edition#587
Marsaudf disk size edition#587
2015-12-21 12:02:13 +01:00
Pierre
0d17148ff0 Minor fixes 2015-12-21 11:30:07 +01:00
Pierre
aa38411cf7 Checking titles for each config group. Displaying errors only for the concerned plugin 2015-12-21 11:11:04 +01:00
Olivier Lambert
4913c8699d Merge pull request #610 from vatesfr/cache-missingPatches-dashboard
Cache # of missing patches in dashboard (fix #609).
2015-12-21 10:42:36 +01:00
Julien Fontanet
1035a11487 Cache # of missing patches in dashboard (fix #609). 2015-12-21 10:38:31 +01:00
Olivier Lambert
15c2efe706 Merge pull request #607 from vatesfr/fix-removeListener-dashboard
Stop computing charts data when no longer on dashboard (fix #604).
2015-12-21 10:09:19 +01:00
Julien Fontanet
d7fd71bb62 Same fix for dataviz view. 2015-12-21 10:05:51 +01:00
Julien Fontanet
b11ee993fa Stop computing charts data when no longer on dashboard (fix #604). 2015-12-21 10:05:46 +01:00
Olivier Lambert
614aa7873c update changelog 2015-12-20 14:21:30 +01:00
Pierre
1adf31fe15 [WIP] Display field title when possible and multiple fixes. 2015-12-18 17:24:19 +01:00
Julien Fontanet
824ffd7b5b Merge pull request #603 from vatesfr/abhamonr-fix-remote-importVm
The vm import call use a sr instead of a host.
2015-12-18 17:10:11 +01:00
wescoeur
c31c6fdebb The vm import call use a sr instead of a host. 2015-12-18 17:03:59 +01:00
Pierre
83f3276429 Plugin config: feedback on form filling errors 2015-12-18 15:25:24 +01:00
Julien Fontanet
d21f68ce54 Merge pull request #586 from vatesfr/pierre-read-only-connection
Added read-only checkboxes in the interface
2015-12-18 12:03:44 +01:00
Pierre
18b1e1b133 Connection to a server in read-only mode. (Fix #439)
Checkboxes in Settings view to connect to a Xen Server in read-only mode and then to toggle mode while connected to the server.
2015-12-18 11:48:29 +01:00
Fabrice Marsaud
0edaa40052 Confirm modals before disk resizing 2015-12-18 10:18:02 +01:00
Fabrice Marsaud
627077c8f3 Better code for Human readable size input 2015-12-18 10:18:02 +01:00
Fabrice Marsaud
a897b1798d bytesToSize only alters numbers 2015-12-18 10:18:02 +01:00
Olivier Lambert
50e39993bf Merge pull request #599 from vatesfr/marsaudf-newmv-disk-size
HR size for new VM new disks
2015-12-17 10:59:50 +01:00
Fabrice Marsaud
5e397dd01e HR size for new VM new disks 2015-12-17 10:53:32 +01:00
Olivier Lambert
f57ff5d5e0 Merge pull request #593 from vatesfr/pierre-no-orderby-when-focus
Settings view: the servers list should not re-order while a field is being edited. Fix #594
2015-12-16 18:26:55 +01:00
Olivier Lambert
5c3e40917c Merge pull request #577 from vatesfr/olivierlambert-configdrive
Allow cloud drive usage for disk templates VMs
2015-12-16 18:20:13 +01:00
Olivier Lambert
90a2dc4581 Merge pull request #597 from vatesfr/marsaudf-disk-size-edition#587
Marsaudf disk size edition. Fix #587
2015-12-16 17:37:15 +01:00
Olivier Lambert
b64243fdd6 add parent :o 2015-12-16 17:12:51 +01:00
Fabrice Marsaud
42db87d305 resize disks in SR View 2015-12-16 16:43:39 +01:00
Fabrice Marsaud
e7ab1b589a resize disks in VM view 2015-12-16 16:17:15 +01:00
Fabrice Marsaud
e9979c9887 Human readable sizes for editing template disks on VM creation 2015-12-16 16:07:08 +01:00
Olivier Lambert
3bb9bb56f0 better placeholder 2015-12-16 16:07:08 +01:00
Olivier Lambert
5a99474c55 add stuff 2015-12-16 16:07:08 +01:00
Olivier Lambert
182ee6c25f add stuff 2015-12-16 16:07:08 +01:00
Fabrice Marsaud
4d3f0a06db Modfified template disk properties are stored for future update 2015-12-16 16:07:08 +01:00
Fabrice Marsaud
0e182c519b Config drive button looks better 2015-12-16 16:07:08 +01:00
Fabrice Marsaud
b1ee30ce7d cloud config message 2015-12-16 16:07:08 +01:00
Fabrice Marsaud
93ba764e23 Config drive can be toggled, modified template disks data are isolated in the controller 2015-12-16 16:07:08 +01:00
Olivier Lambert
433e17bb81 more comments 2015-12-16 16:07:08 +01:00
Olivier Lambert
61c09083ad more modifications 2015-12-16 16:07:08 +01:00
Olivier Lambert
018377e724 reorder the cloud config at the end of the vm creation process 2015-12-16 16:07:08 +01:00
Olivier Lambert
b76f9513ba various fixes 2015-12-16 16:07:08 +01:00
Olivier Lambert
40ebb7ba75 add a removed by error stuff 2015-12-16 16:07:08 +01:00
Olivier Lambert
a9e52e8954 remove preliminar work in existing VM view 2015-12-16 16:07:08 +01:00
Olivier Lambert
3c8876cac7 Allow cloud drive usage for disk templates VMs 2015-12-16 16:07:08 +01:00
Olivier Lambert
b7e005f9c7 fix an indentation problem 2015-12-16 16:06:37 +01:00
Olivier Lambert
e6fe0a19fa Merge pull request #596 from vatesfr/olivierlambert-clean-size-to-byte
clean size to byte filter
2015-12-16 16:04:07 +01:00
Olivier Lambert
fba11b6a44 fix a useless filter 2015-12-16 16:01:10 +01:00
Olivier Lambert
c270e7f5dd clean size to byte filter 2015-12-16 15:41:42 +01:00
Pierre
9ee00d345e Settings: the servers list should not re-order while a field is being edited. (Fix #594)
The angular `orderBy` is triggered when the server list is triggered ie every 3 seconds when every text fields are unfocused.
2015-12-16 13:47:13 +01:00
Julien Fontanet
0379fbc4eb Merge pull request #590 from vatesfr/pierre-no-refresh-when-focus
Servers should not refresh while a field is being edited
2015-12-16 13:44:43 +01:00
Olivier Lambert
9748a3ae91 display correct size in interface (binary scale). fix #592 2015-12-16 11:23:37 +01:00
Pierre
1881944748 Servers infos should not refresh while a field is being edited 2015-12-15 16:56:52 +01:00
Olivier Lambert
3721fa194c remove metadata export. Fix #580 2015-12-11 16:38:03 +01:00
Olivier Lambert
8c3fcad20b Merge pull request #574 from vatesfr/marsaudf-prevent-add-host#466
Check IP of a new server to avoid double connection. Fix #466
2015-12-10 14:02:41 +01:00
Fabrice Marsaud
decf373d0b Check IP of a new server to avoid double connection 2015-12-10 12:25:04 +01:00
Olivier Lambert
ff1d50f993 Merge pull request #573 from vatesfr/olivierlambert-set-default-sr
set default SR. Fix #572
2015-12-10 12:14:14 +01:00
Olivier Lambert
ef34204b59 set default SR. Fix #572 2015-12-10 12:10:47 +01:00
Olivier Lambert
270b636d80 Merge pull request #569 from vatesfr/pierre-users-cannot-add-tags-on-disks
Non-admin users don't see the '+' button to add a tag (Fix Issue #516)
2015-12-09 19:22:48 +01:00
Olivier Lambert
ac01da2ae9 Merge pull request #570 from vatesfr/marsaudf-run-job#562
Buttons to run jobs for one shot (backup or job manager). Fix #570
2015-12-09 19:17:13 +01:00
Fabrice Marsaud
0136310c54 Buttons to run jobs for one shot (backup or job manager) 2015-12-09 16:57:50 +01:00
Pierre
ecf4cf852e Non-admin users don't see the '+' button to add a tag (Issue #516) 2015-12-09 16:51:12 +01:00
Olivier Lambert
c66384adfb Merge pull request #566 from vatesfr/olivierlambert-recoveryStart
Generic recovery start (both PV and HVM compatible). Fix #564
2015-12-07 18:03:33 +01:00
Olivier Lambert
98bdda629d Order ISOs by their name. Fix #565 2015-12-07 17:28:48 +01:00
Olivier Lambert
a8286f9cba minor fix 2015-12-07 17:22:40 +01:00
Olivier Lambert
fa3db4fcf6 Generic recovery start (both PV and HVM) 2015-12-07 15:43:46 +01:00
Olivier Lambert
ddac0cfee1 Display failures on VM boot order modification. Fix #560 2015-12-07 13:48:32 +01:00
Olivier Lambert
9368673459 Display PV args for PV guest even if they are empty. Fix #557 2015-12-07 13:37:25 +01:00
Olivier Lambert
43dc999ab5 display boot order only for HVM guests. Fix #558 2015-12-07 13:32:21 +01:00
Olivier Lambert
3b7333e866 remove most of the left margin 2015-12-04 14:11:38 +01:00
Olivier Lambert
bc0ddbaf16 Merge pull request #554 from vatesfr/abhamonr-plugin-config-avoid-reset-form
Avoid plugin config form reset. Fix #529
2015-12-04 12:38:23 +01:00
Olivier Lambert
45f0ae7e1c Merge pull request #425 from vatesfr/pierre-search-bar
Improved search bar
2015-12-04 12:35:35 +01:00
Pierre
a521c4ae01 Clicking on the search button will always bring to the list view. Lag fix when the text field is emptied. Transparent background for filter menus. 2015-12-04 12:00:55 +01:00
Julien Fontanet
8e5dee79e0 Use Babel 6. 2015-12-04 11:49:19 +01:00
Pierre
5b8238adeb 2 filter menus : 'Types' and 'States'. FontAwesome checkboxes. Bug fix. 2015-12-04 10:48:32 +01:00
Pierre
ec330474fa The 'Filters' menu is below the search bar and appears only in the list view. *disconnected filter shows hosts and SRs which have at least 1 PBD not attached. 2015-12-04 10:48:32 +01:00
Pierre
ece28904a8 All the checkboxes are unchecked when the search field is empty 2015-12-04 10:48:32 +01:00
Pierre
4f1c495afb Added *disconnected option. Added a 'Filters' dropdown menu in the search bar to add/remove options with a Github like behaviour 2015-12-04 10:48:32 +01:00
Pierre
5fdd27b7e6 Added option key-word *halted 2015-12-04 10:48:32 +01:00
Pierre
91f449af9a Search improvements
1) select several types of objects (eg: *vm *host)
2) combine types and states (eg: *vm *running)
3) negation is considered as an option
2015-12-04 10:48:32 +01:00
Pierre
efc0a0dfe3 Added '*running' option to show only running entities (for VMs and hosts). This option can be banned (statusrunning) to show only not running entities 2015-12-04 10:48:32 +01:00
Pierre
fee47baa66 Added key-words to ban some objects from search list (host, vm, sr, pool) + Back to tree view when search field is empty 2015-12-04 10:48:32 +01:00
Julien Fontanet
9abd9d20ec Initial work on React/Redux. 2015-12-03 18:22:13 +01:00
wescoeur
0ad7bfc7e7 Avoid plugin config form reset. 2015-12-03 15:11:44 +01:00
Julien Fontanet
bd64143ae1 Merge pull request #551 from vatesfr/abhamonr-plugin-root-integer-properties
Root integer properties can be edited in plugins configuration form. …
2015-12-03 15:09:52 +01:00
wescoeur
ec982ba9a3 Root integer properties can be edited in plugins configuration form. fix #550 2015-12-03 15:03:47 +01:00
Julien Fontanet
6280f6ff98 Merge pull request #542 from vatesfr/abhamonr-purge-plugin-config
The plugins configurations can be cleaned.
2015-12-03 14:37:52 +01:00
Olivier Lambert
35d20390a9 hide non auhorized containers for VMs (host or pool). Fix #545 2015-12-03 14:23:32 +01:00
wescoeur
c487c5042f The plugins configurations can be cleaned. fix #539 2015-12-02 16:14:36 +01:00
Olivier Lambert
aaf7927aa2 Cloud config default SR. (Fix #548) 2015-11-30 18:45:29 +01:00
Julien Fontanet
3c677f3d21 Merge pull request #544 from vatesfr/abhamonr-plugin-config-boolean-default-value
Plugin config boolean properties have a default false value.
2015-11-27 17:01:22 +01:00
wescoeur
94eb76b3a6 Plugin config boolean properties have a default false value. fix #543 2015-11-27 16:49:46 +01:00
Julien Fontanet
a921cb2d0d 4.10.0 2015-11-27 14:35:50 +01:00
Olivier Lambert
f3aaa363d8 Merge pull request #541 from vatesfr/marsaudf-UI-fix
Minor UI fix
2015-11-27 13:39:20 +01:00
Fabrice Marsaud
45a79e1920 Minor UI fix 2015-11-27 13:35:27 +01:00
Olivier Lambert
6fd9b2a453 Merge pull request #493 from vatesfr/marsaudf-task-manager
Generic task manager
2015-11-27 12:03:01 +01:00
Olivier Lambert
01d8e89a71 add changelog 2015-11-27 11:58:00 +01:00
Fabrice Marsaud
c89fa63910 Minor UI fix 2015-11-27 11:25:23 +01:00
Fabrice Marsaud
9fc5c49dbf UI enhancements 2015-11-27 11:25:23 +01:00
Fabrice Marsaud
7dfc269df9 Enhanced UI inputs for XO object management 2015-11-27 11:25:18 +01:00
Fabrice Marsaud
76d0b397db Instant one shot for generic jobs 2015-11-27 11:24:25 +01:00
Fabrice Marsaud
5413f887af Bare generic job creation and scheduling 2015-11-27 11:24:13 +01:00
Julien Fontanet
b3d0c61f0e Merge pull request #540 from vatesfr/abhamonr-plugin-input-type-number
Plugin 'number' property use input number in config form (fix #538)
2015-11-27 10:49:32 +01:00
wescoeur
4ce0441d68 Plugin 'number' property use input number in config form 2015-11-27 10:42:45 +01:00
Julien Fontanet
72be34e18d Move clipboard to dev deps. 2015-11-27 10:04:43 +01:00
Julien Fontanet
d2961b7650 Merge pull request #537 from vatesfr/abhamonr-plugins-supports-numbers
Plugin config supports integer properties (fix #531).
2015-11-27 09:54:46 +01:00
wescoeur
fdca1bbf72 Plugin config supports integer properties. 2015-11-27 09:43:33 +01:00
Julien Fontanet
ab7a2f9dee Merge pull request #536 from vatesfr/abhamonr-plugin-boolean-checkbox
Plugin boolean properties use checkboxes (fix #528).
2015-11-27 09:42:06 +01:00
wescoeur
7b72857a3b Plugin boolean properties use checkboxes 2015-11-26 22:44:24 +01:00
Olivier Lambert
4787146658 Merge pull request #533 from vatesfr/marsaudf-backup-ui
better backup log display
2015-11-26 16:30:18 +01:00
Fabrice Marsaud
430f9356c3 Minor button fix 2015-11-26 16:27:40 +01:00
Fabrice Marsaud
70a3b3518f Better schedule state UI in overview 2015-11-26 16:25:00 +01:00
Fabrice Marsaud
c0944c17e0 better backup log display 2015-11-26 16:07:47 +01:00
Julien Fontanet
da1b2a91e7 Merge pull request #526 from vatesfr/pierre-console-keyboard-unfocus
Console has keyboard and mouse focus only when mouse is hovering
2015-11-26 15:59:48 +01:00
Pierre
aa27492713 Console catches keyboard and mouse inputs only when mouse is hovering.
Also, when the mouse enters the VM screen, the current active element is unfocused.
2015-11-26 15:44:01 +01:00
Julien Fontanet
afe589dec3 Merge pull request #527 from vatesfr/abhamonr-plugin-title-property
Support title property in plugin configuration schema
2015-11-26 15:25:25 +01:00
wescoeur
978d140c8f Support title property in plugin configuration schema 2015-11-26 14:31:32 +01:00
Olivier Lambert
2ce213b62c Merge pull request #525 from vatesfr/pierre-clipboard-management-through-console
Clipboard management through console
2015-11-26 11:35:57 +01:00
Pierre
7748266078 Clipboard support in console.
- From VM to client :
	1) Copy text in VM
	2) The text field (above the console) updates automatically with the VM's clipboard content
	3) Click on the 'Copy' button to get the text in the local clipboard
- From client to VM :
	1) Write text in the text field
	2) The VM's clipboard updates automatically with the new content
	3) Paste text anywhere in the VM
2015-11-26 11:23:40 +01:00
Olivier Lambert
83783d07a1 hide action panel for host or VM if only viewer 2015-11-25 14:38:47 +01:00
Olivier Lambert
49a1f2c7c5 Merge pull request #517 from vatesfr/marsaudf-disable-host-buttons#474
Disable host buttons relying on ACLs
2015-11-25 14:31:49 +01:00
Olivier Lambert
ddfc0151fc Merge pull request #515 from vatesfr/marsaudf-backup-display#512
Tag display for backup schedules in overview #512
2015-11-25 14:01:33 +01:00
Fabrice Marsaud
81c508e13c Host view OK 2015-11-25 10:25:10 +01:00
Fabrice Marsaud
7195cfc3cf First step 2015-11-24 17:31:26 +01:00
Fabrice Marsaud
93fe5e2cf7 PR feedback 2015-11-24 17:31:00 +01:00
Fabrice Marsaud
a2bf795d12 Tag display for backup schedules in overview 2015-11-24 17:31:00 +01:00
Julien Fontanet
c8d78f39e0 Upgrade npm to latest on Travis. 2015-11-24 17:17:58 +01:00
Fabrice Marsaud
d9ab8a1c8b Fix #508 2015-11-23 15:24:23 +01:00
Olivier Lambert
5125ad4889 Merge pull request #506 from vatesfr/pierre-emergency-host-shutdown
Emergency button in host view is now calling the server function
2015-11-20 17:32:17 +01:00
Olivier Lambert
951e85b04b Merge pull request #507 from vatesfr/olivierlambert-cloudconfig
CoreOS cloud config management during VM creation
2015-11-20 17:32:10 +01:00
Olivier Lambert
711d922695 CoreOS cloud config during VM creation 2015-11-20 17:10:10 +01:00
Pierre
3692ffcde7 Rename function : emergencyHostShutdown -> emergencyShutdownHost 2015-11-20 10:19:06 +01:00
Pierre
b049420c59 Emergency button in host view is now calling the server function (suspends all the VMs running on the host and then shuts the host down) 2015-11-19 17:07:10 +01:00
Olivier Lambert
241103c369 Merge pull request #501 from vatesfr/pierre-install-patches-on-all-pools
Created panel in dashboard
2015-11-19 14:49:59 +01:00
Pierre
2128367113 Update panel in dashboard. 2015-11-19 12:29:48 +01:00
Julien Fontanet
f555c8190d Revert "nvm (on Travis) does not use stable correctly."
This reverts commit f85dc3b7e7.
2015-11-18 17:32:54 +01:00
Pierre
d5df633def Removed some useless CSS 2015-11-18 17:13:54 +01:00
Olivier Lambert
fe7dc859e3 Merge pull request #499 from vatesfr/pierre-suspend-all-vms-and-shutdown-host
emergency shutdown feature in host view (suspend all VMs then shutdown)
2015-11-18 17:04:04 +01:00
Pierre
569c5046c6 Added an emergency button in Action panel (host view) : suspends all the VMs and shuts the host down. 2015-11-18 16:56:56 +01:00
Julien Fontanet
e0210ae2d8 Stable is the new stable branch. 2015-11-18 16:30:30 +01:00
Julien Fontanet
f85dc3b7e7 nvm (on Travis) does not use stable correctly. 2015-11-18 16:10:07 +01:00
Olivier Lambert
92d4363120 tree view improvements and fix 2015-11-17 15:18:57 +01:00
Olivier Lambert
6c69220de2 add start in recovery mode for HVM guests and support new API call setBootOrder() instead of bootOrder() 2015-11-17 14:59:26 +01:00
Julien Fontanet
3a1229b072 Only test on stable as there is just linting for now. 2015-11-16 16:59:55 +01:00
Olivier Lambert
45538c9f62 add quiesce display in VM view 2015-11-16 13:28:51 +01:00
Julien Fontanet
0c173fde53 Explicit .scss for angular-notify-toaster (fix #488). 2015-11-13 11:53:32 +01:00
Julien Fontanet
77db2bbfec 4.9.0 2015-11-13 11:31:19 +01:00
Julien Fontanet
2987185a9d Fix coding style. 2015-11-13 11:30:47 +01:00
Olivier Lambert
7a7baf7175 change the release date 2015-11-12 16:54:30 +01:00
Olivier Lambert
5645cc0af2 removing an entry in the changelog 2015-11-12 12:35:46 +01:00
Olivier Lambert
63a6756fed add changelog 2015-11-12 11:37:31 +01:00
Olivier Lambert
9f408c98a6 Merge pull request #480 from vatesfr/marsaudf-vm-copy-sr
Copy VM
2015-11-12 11:16:25 +01:00
Olivier Lambert
26d6998d82 Merge pull request #485 from vatesfr/abhamonr-perf-12-cpus
for cpus graph: draw only one line which is an average of all CPUs (i…
2015-11-12 11:06:08 +01:00
wescoeur
6bee44acb7 for cpus graph: draw only one line which is an average of all CPUs (if more than 12 cores) 2015-11-12 10:38:37 +01:00
Fabrice Marsaud
441992cf37 Copy VM, first delivery 2015-11-12 10:33:46 +01:00
Fabrice Marsaud
490c224ac3 Merge pull request #469 from vatesfr/marsaudf-disaster-recovery
Disaster Recovery
2015-11-12 10:31:39 +01:00
Fabrice Marsaud
f5c55048de DR UI enhancemnts 2015-11-12 10:19:49 +01:00
Fabrice Marsaud
8139e124c2 DR features fixes 2015-11-12 10:19:49 +01:00
Fabrice Marsaud
cba73a5139 Disaster recovery feature 2015-11-12 10:19:48 +01:00
Fabrice Marsaud
de0c9367e5 Merge pull request #483 from vatesfr/abhamonr-backup-logs
Abhamonr backup logs
2015-11-12 10:11:44 +01:00
Fabrice Marsaud
630060860c Backup log UI fix 2015-11-12 10:09:09 +01:00
Fabrice Marsaud
dccd11fb7b Backup logs UI 2015-11-12 10:09:09 +01:00
Olivier Lambert
b8a4b2cf16 add duration filter 2015-11-12 10:09:09 +01:00
wescoeur
e52f55bfba backup view (logs) in progress 2015-11-12 10:09:09 +01:00
wescoeur
1cb99e02a9 Logs of jobs in progress in backup/management view 2015-11-12 10:09:09 +01:00
Fabrice Marsaud
c9c5c35e56 Merge pull request #476 from vatesfr/abhamonr-backup-logs
Abhamonr backup logs
2015-11-12 10:06:34 +01:00
Olivier Lambert
bc7c9f9c01 fix inversion in vCPUs and CPUs in dashboard view 2015-11-11 22:10:52 +01:00
Fabrice Marsaud
e4bfc4cb8d Better chosen objects display in ACL UI 2015-11-11 17:44:19 +01:00
Fabrice Marsaud
d64995c4a1 Backup log UI fix 2015-11-10 17:08:59 +01:00
Fabrice Marsaud
2952ea7404 Backup logs UI 2015-11-10 17:08:59 +01:00
Olivier Lambert
f34c807a2c add duration filter 2015-11-10 17:08:59 +01:00
wescoeur
b1f9704055 backup view (logs) in progress 2015-11-10 17:08:59 +01:00
wescoeur
9382829ba5 Logs of jobs in progress in backup/management view 2015-11-10 17:08:59 +01:00
Fabrice Marsaud
373a6ea912 Merge pull request #479 from vatesfr/marsaudf-backup-fixes
Backup UI enhancements
2015-11-10 16:53:00 +01:00
Fabrice Marsaud
72eb4e7b3b Backup UI enhancements 2015-11-10 15:21:24 +01:00
Julien Fontanet
315c0870ed Fix VM exports when not directly under /. 2015-11-09 16:13:17 +01:00
Olivier Lambert
200fa621bf use the new xenTools method 2015-11-06 13:54:13 +01:00
Fabrice Marsaud
80348c1980 Patched a display delay for some stats 2015-11-06 13:47:01 +01:00
Fabrice Marsaud
856dd8403c Patched stat display bug 2015-11-06 13:39:23 +01:00
Olivier Lambert
0bb9acd4c1 Merge pull request #470 from vatesfr/marsaudf-backup-no-compression
Compression can be disabled for backups
2015-11-06 11:40:06 +01:00
Fabrice Marsaud
047a80917f Compression can be disabled for backups 2015-11-06 11:37:31 +01:00
Fabrice Marsaud
e6e8fe4763 Fixed backup overview links 2015-11-06 11:36:17 +01:00
Olivier Lambert
6cd212398e Merge pull request #473 from vatesfr/marsaudf-fix-convertToTemplate
Back to index after VM converts to template
2015-11-06 11:10:34 +01:00
Fabrice Marsaud
44ad6d4247 Back to index after VM converts to template 2015-11-06 11:07:42 +01:00
Olivier Lambert
7302782853 Merge pull request #465 from vatesfr/marsaudf-restore-backup
Restore backups
2015-11-05 15:47:04 +01:00
Fabrice Marsaud
7fa1aba6b8 Backup restore and global backup UI rework 2015-11-05 15:18:01 +01:00
Julien Fontanet
2fed4e3e8b Update deps. 2015-11-03 12:08:05 +01:00
Julien Fontanet
bd343c51a3 4.8.0 2015-10-29 10:43:17 +01:00
Olivier Lambert
8a05f06efa changelog update 2015-10-28 17:56:51 +01:00
Julien Fontanet
27b049eada Fix permissions checking for XO admins. 2015-10-28 16:43:50 +01:00
Julien Fontanet
2d1afb5291 Fixes some permissions checking. 2015-10-28 16:24:13 +01:00
Olivier Lambert
63c17a3abf Merge pull request #456 from vatesfr/abhamonr-avoid-use-of-vms-offline-on-dashboard
Avoid the selection of vms or hosts which are not in the running state
2015-10-28 16:14:57 +01:00
wescoeur
94f9bc5fca Avoid the selection of vms or hosts which are not the running state 2015-10-28 15:46:04 +01:00
Julien Fontanet
ab273430d2 Merge pull request #455 from vatesfr/julien-f-acl-inheritance
Adapt to new ACLs API (and implement inheritance).
2015-10-28 15:30:05 +01:00
Julien Fontanet
0b3dc315ad Adapt to new ACLs API (and implement inheritance). 2015-10-28 15:09:08 +01:00
Olivier Lambert
f26a2d2f13 remove old parameter for granularity 2015-10-28 14:59:57 +01:00
Olivier Lambert
8edf9bf508 Merge pull request #454 from vatesfr/abhamonr-intelligent-stats
Remove default value of granularity in refreshStats
2015-10-28 14:44:20 +01:00
Olivier Lambert
415381cebd fix a missing char in the Jade template 2015-10-28 14:41:29 +01:00
wescoeur
59accec1c0 remove default value of granularity in refreshStats 2015-10-28 14:35:55 +01:00
Olivier Lambert
dd2699fcc1 Merge pull request #453 from vatesfr/abhamonr-intelligent-stats
host, vm and dashboard/health pages use now the new stats format prov…
2015-10-28 13:53:14 +01:00
wescoeur
0986a5f985 host, vm and dashboard/health pages use now the new stats format provided by the server 2015-10-28 12:51:13 +01:00
Olivier Lambert
fa77229b72 Merge pull request #452 from vatesfr/proxy-auth-updater
Proxy auth for update panel
2015-10-28 11:52:31 +01:00
Olivier Lambert
78b5080c9a Merge pull request #440 from vatesfr/reg-renewal#424
Xoa registration can be renewed
2015-10-28 10:49:15 +01:00
Fabrice Marsaud
0641da786c Proxy auth for update panel 2015-10-27 16:05:31 +01:00
Olivier Lambert
3291f3bb3c initial CHANGELOG for 4.8 2015-10-27 14:30:41 +01:00
Olivier Lambert
a0cfef8bda Merge pull request #444 from vatesfr/pierre-install-all-patches-button
Added button to install all the missing patches on host at one go
2015-10-26 15:23:50 +01:00
Julien Fontanet
4d033f4a03 Direct links work again (fix #371). 2015-10-26 12:41:45 +01:00
Pierre
562820180c Added button to install all the missing patches on host at one go 2015-10-23 15:48:03 +02:00
Olivier Lambert
a29832207e Merge pull request #443 from vatesfr/pierre-fix-patches-display
In host : fixed uploaded patches properties (name, description, uuid)
2015-10-23 15:28:29 +02:00
Pierre
2afd549826 In host : fixed uploaded patches properties (name, description, uuid) 2015-10-23 15:21:50 +02:00
Olivier Lambert
8a71b2c6dd Merge pull request #430 from vatesfr/pierre-2-status-patches
Patches installed on a host appear as 'Applied' or 'Not applied' and …
2015-10-23 15:11:08 +02:00
Pierre
d633d2691d Patches installed on a host do not appear as missing 2015-10-23 14:43:44 +02:00
Fabrice Marsaud
f9b1608fd2 Xoa registration can be renewed 2015-10-21 12:34:13 +02:00
Julien Fontanet
4d8ed3f00e Use bundler collapser for production build. 2015-10-21 11:28:46 +02:00
Julien Fontanet
359e7d0543 Merge pull request #437 from vatesfr/julien-f-hvm-network-install
Add PXE installation method for HVM templates. (fix #436)
2015-10-19 15:12:37 +02:00
Julien Fontanet
07bf93e022 Add PXE installation method for HVM templates. (fix #436) 2015-10-19 15:11:43 +02:00
Olivier Lambert
57e27da0c4 update style 2015-10-13 19:19:11 +02:00
Olivier Lambert
9ecbf62d25 fix #136 by adding FreeBSD icons from another icon pack 2015-10-13 18:56:23 +02:00
Olivier Lambert
48ffa591ca display the correct distro icons 2015-10-13 18:46:23 +02:00
Olivier Lambert
b7dd617bb1 update filter 2015-10-13 18:46:23 +02:00
Olivier Lambert
392f9d0775 install of new fonts Mfizz 2015-10-13 18:46:23 +02:00
Fabrice Marsaud
4361b11c68 4.7.0 2015-10-12 16:56:56 +02:00
Fabrice Marsaud
28bccad010 No plugin message 2015-10-12 16:44:47 +02:00
Fabrice Marsaud
29d31a0deb Cleaner plugin conf saving 2015-10-12 16:17:39 +02:00
Fabrice Marsaud
1d9960d349 Plugin configuration fixed and enhanced 2015-10-12 14:49:09 +02:00
Fabrice Marsaud
2747b241ab Notification for plugin conf saved 2015-10-12 12:13:32 +02:00
Fabrice Marsaud
6b8035b116 Plugin conf supports default values + fixes 2015-10-12 11:57:11 +02:00
Olivier Lambert
33ad5f4d45 release date 2015-10-12 10:56:06 +02:00
Fabrice Marsaud
af7ad9251a (not)required plugin conf values of object type are handled + fix 2015-10-12 10:54:23 +02:00
Fabrice Marsaud
4ec9975aa3 Merge pull request #416 from vatesfr/pluginConf#352
Plugin conf#352
2015-10-09 17:41:01 +02:00
Fabrice Marsaud
c6b0841583 Plugin configuration panel 2015-10-09 17:35:26 +02:00
Olivier Lambert
9312435076 Merge pull request #422 from vatesfr/pierre-cant-migrate-vm-to-current-host
Removed current host in migrate list. Disabled button when no other h…
2015-10-08 16:24:43 +02:00
Pierre
49427f1c54 Fix : condition for disabled button 2015-10-08 16:22:06 +02:00
Pierre
82e7e06dc4 Fix : button not diabled if host available on another pool 2015-10-08 16:03:08 +02:00
Pierre
76cf82bb19 Removed current host in migrate list. Disabled button when no other host available 2015-10-08 15:46:11 +02:00
Olivier Lambert
4f8ad2962e changelog updated 2015-10-08 15:22:27 +02:00
Olivier Lambert
fe4be48bff remove useless entries in the menu for hosts 2015-10-08 15:05:36 +02:00
Olivier Lambert
66fc0b421b fix tooltip as explained in #421 2015-10-08 15:03:50 +02:00
Olivier Lambert
c0b4867659 Merge pull request #420 from vatesfr/pierre-lone-host-cant-leave-pool
Added condition to remove 'remove host from pool'-button when host is…
2015-10-08 14:51:58 +02:00
Pierre
95253fbc76 Added condition to remove 'remove host from pool'-button when host is alone 2015-10-08 14:26:20 +02:00
Olivier Lambert
df519b3042 Merge pull request #418 from vatesfr/pierre-add-host-to-pool
Added button to merge host to another pool
2015-10-08 12:30:37 +02:00
Pierre
9ed963ef70 Modified icon for 'moving host to another pool' 2015-10-08 12:26:06 +02:00
Pierre
1dd7993e7a Added button to mode host to another pool. Doesn't work yet 2015-10-08 11:55:03 +02:00
Olivier Lambert
386b33b65d Merge pull request #411 from vatesfr/chartswitch
add chart selector for dataviz
2015-10-07 23:57:08 +02:00
florent
416deb8711 chart selector : less opacity and bigger font 2015-10-07 21:50:24 +02:00
florent
3c7fdac55e add navigation between dataviz
also : fix import in health, fix thumbnail size
2015-10-07 21:13:04 +02:00
Olivier Lambert
392a6af47f Merge pull request #415 from vatesfr/abhamonr-pass-generator-on-users
Password generation is implemented with password-generator module.
2015-10-07 17:30:16 +02:00
wescoeur
6b03e3f603 Password generation is implemented with password-generator module.
One button (with tooltip) is visible to the left of each password field.
One click on this button generate one visible password of 8 characters (upper/lower-case letters, underscore, numbers)
2015-10-07 17:24:09 +02:00
Olivier Lambert
9397f6beda minor changelog fix 2015-10-07 15:56:26 +02:00
Olivier Lambert
d17b386fd6 changelog updated 2015-10-07 15:44:50 +02:00
Olivier Lambert
f6d2e1a447 more explicit modal when host is removed from pool 2015-10-07 15:38:41 +02:00
Olivier Lambert
bd95ef5db6 Merge pull request #407 from vatesfr/desktop-notif
Use desktop notification when available and when the browser is minified
2015-10-07 15:13:13 +02:00
Olivier Lambert
6e76c621b8 Merge pull request #413 from vatesfr/pierre-unfocus-on-cd-list
Unfocusing CD list after selecting one
2015-10-07 15:08:11 +02:00
Olivier Lambert
3e58bee0eb Merge pull request #409 from vatesfr/abhamon-ronan-issue-396
Abhamon ronan issue 396
2015-10-07 14:46:25 +02:00
wescoeur
8c2ed1f581 Password viewer button added to right (with tooltip) and only displayed if input is not empty. 2015-10-07 14:41:31 +02:00
Pierre
500dd3bfaf Unfocusing CD list after selecting one 2015-10-07 12:04:35 +02:00
Olivier Lambert
bc7bacd654 remove Travis test on Node 0.10 2015-10-07 10:58:54 +02:00
florent
fa16b990b6 add chart selector for dataviz 2015-10-06 22:06:33 +02:00
Florent BEAUCHAMP
9d5e9dd9e5 Use desktop notification when avilable and when the browser is minified
without jquery, and using angular $window and $document
2015-10-06 20:37:56 +02:00
Olivier Lambert
4046f9dde1 restrict export button for admins only. Fix #410 2015-10-05 16:45:35 +02:00
Julien Fontanet
fcd82ada14 Fix coding styles and test on Travis. 2015-10-02 19:20:13 +02:00
Olivier Lambert
d616da7f67 Merge pull request #399 from vatesfr/circle
first integration of cricle chart
2015-10-01 21:45:43 +02:00
florent
0c81202bbb how circle chart and sunburst charts + bug fix
correct bug where wraptext was going wild with dimension less node
2015-10-01 20:53:43 +02:00
Julien Fontanet
6284bd3f17 Remove an unecessary console.log(). 2015-10-01 18:38:54 +02:00
Julien Fontanet
7adc9d94b4 Upgrade gulp-livereload to 3.8.1 to support npm 3. 2015-10-01 18:38:42 +02:00
florent
73e030d2f5 d3 circle : hide text if fully zoomed out 2015-09-30 22:07:19 +02:00
florent
3a3b45aa04 d3 charts : externalize a breadcrumbs directive
refactor sunburst and circle to use it
2015-09-30 22:00:39 +02:00
florent
81c19e9964 circle : hide virtual node ( like free ram or free disk) 2015-09-30 18:55:12 +02:00
florent
df856bc4a0 zoomable circle chart 2015-09-30 18:31:24 +02:00
florent
8558dc7ee4 first integration of cricle chart, no zoom
Drop in remplacement of sunburst or treemap
2015-09-30 15:14:42 +02:00
Fabrice Marsaud
087d5f6e58 4.6.1 2015-09-25 12:16:17 +02:00
Fabrice Marsaud
9540bc350a Fix a wrong deletion 2015-09-25 12:14:17 +02:00
Julien Fontanet
09153c6c30 Revert "Minor fix in release process."
This reverts commit 8dbab73d2b.

The release process was already correct.
2015-09-25 10:18:46 +02:00
Olivier Lambert
f66d81f147 4.6.0 2015-09-25 00:10:29 +02:00
Olivier Lambert
75925143b6 Merge pull request #395 from vatesfr/cubism
Multigraph, resolve issue #358
2015-09-24 21:37:28 +02:00
Florent BEAUCHAMP
e7dc00991e remove cubism from package.json 2015-09-24 21:26:45 +02:00
Florent BEAUCHAMP
dd9da82ed3 Merge branch 'cubism' of https://github.com/vatesfr/xo-web into cubism 2015-09-24 21:18:59 +02:00
Florent BEAUCHAMP
c995b8fa81 horizon: sort metrics name, rename cpu average to all cpus 2015-09-24 21:15:53 +02:00
Florent BEAUCHAMP
e7c2994ea3 horizon : delete last traces of cubism 2015-09-24 21:15:52 +02:00
Florent BEAUCHAMP
106997b26c horizon responsive 2015-09-24 21:15:51 +02:00
Florent BEAUCHAMP
fa842c1566 horizon : smaller label on date axis 2015-09-24 21:15:50 +02:00
Florent BEAUCHAMP
be03dd82f9 remove cubism 2015-09-24 21:15:49 +02:00
Florent BEAUCHAMP
39c46995e1 horizon : properly clean existing label 2015-09-24 21:15:48 +02:00
Florent BEAUCHAMP
97adc01e8d horizon : replace checkbox by button, remove bold 2015-09-24 21:15:47 +02:00
Florent BEAUCHAMP
36be881741 handle missing value 2015-09-24 21:15:45 +02:00
Florent BEAUCHAMP
955cc6dff5 horizon : add filter on hover 2015-09-24 21:15:44 +02:00
Florent BEAUCHAMP
2be1399eda horizon : add label, center label vertically, add a checkbox to
synchronize scales
2015-09-24 21:15:43 +02:00
Olivier Lambert
ef5d2a7654 change the panel title 2015-09-24 21:09:56 +02:00
Florent BEAUCHAMP
1cd00cab62 horizon : synchronize scales 2015-09-24 21:09:54 +02:00
Olivier Lambert
7652c231f6 case for foreach 2015-09-24 21:09:53 +02:00
Florent BEAUCHAMP
e17cdf0ca7 horizon : over text lighter 2015-09-24 21:09:51 +02:00
Florent BEAUCHAMP
3317791e68 rizons : two numbers 2015-09-24 21:09:50 +02:00
Florent BEAUCHAMP
c3871bc2ec Horizon : hide cpu x in metrics list 2015-09-24 21:09:49 +02:00
Florent BEAUCHAMP
ebba86f741 horizon : add label before chart
better handling of form when loading new metrics
2015-09-24 21:09:47 +02:00
Florent BEAUCHAMP
5ac84a6a02 replace cubism with a custom implementation 2015-09-24 21:09:46 +02:00
Florent BEAUCHAMP
cf3e9704e8 wip 2015-09-24 21:09:44 +02:00
Florent BEAUCHAMP
37eac8afcf formatting 2015-09-24 21:09:43 +02:00
Florent BEAUCHAMP
692a0535ff move cubism from dataviz to health 2015-09-24 21:09:42 +02:00
Olivier Lambert
0f0d804052 fix a typo in clonedeep import and save the depencency 2015-09-24 21:09:40 +02:00
florent
d189e6b53d first integration of cubism 2015-09-24 21:08:56 +02:00
Florent BEAUCHAMP
5da31691a9 horizon: sort metrics name, rename cpu average to all cpus 2015-09-24 21:02:34 +02:00
Florent BEAUCHAMP
4059a4fd9a horizon : delete last traces of cubism 2015-09-24 20:47:20 +02:00
Florent BEAUCHAMP
e56da71856 horizon responsive 2015-09-24 20:40:15 +02:00
Florent BEAUCHAMP
91e10f627f horizon : smaller label on date axis 2015-09-24 20:04:52 +02:00
Florent BEAUCHAMP
338c686e8d remove cubism 2015-09-24 19:53:31 +02:00
Florent BEAUCHAMP
0007e9ea2b horizon : properly clean existing label 2015-09-24 19:50:08 +02:00
Florent BEAUCHAMP
1e09e9b322 horizon : replace checkbox by button, remove bold 2015-09-24 19:13:48 +02:00
Florent BEAUCHAMP
43c358119a handle missing value 2015-09-24 18:48:03 +02:00
Florent BEAUCHAMP
7a0f251ebd horizon : add filter on hover 2015-09-24 18:36:17 +02:00
Florent BEAUCHAMP
e989321c5f Merge branch 'cubism' of https://github.com/vatesfr/xo-web into cubism 2015-09-24 18:12:42 +02:00
Florent BEAUCHAMP
56f27e6aaa horizon : add label, center label vertically, add a checkbox to
synchronize scales
2015-09-24 18:08:36 +02:00
Julien Fontanet
7c4e5aa667 Move lodash.debounce to dev deps. 2015-09-24 16:48:12 +02:00
Julien Fontanet
d253d826bb Update xo-lib to 0.7.3 to support Node 4. 2015-09-24 16:47:57 +02:00
Olivier Lambert
888fa20ca3 update the changelog 2015-09-24 12:13:31 +02:00
Julien Fontanet
598dbb2b7a Typos. 2015-09-24 11:37:02 +02:00
Julien Fontanet
71eb1eab14 Properly handles invalid auth tokens. 2015-09-24 11:09:22 +02:00
Olivier Lambert
62a6bd99e8 Merge pull request #393 from vatesfr/issue#237
Rely on unified server-side VM migrate
2015-09-24 10:27:29 +02:00
Olivier Lambert
174cdf2149 fix issue #394 2015-09-24 10:24:10 +02:00
Olivier Lambert
5267fbce7b change the panel title 2015-09-23 23:00:18 +02:00
Fabrice Marsaud
dd814e7e95 removed late migrate notification 2015-09-23 22:41:50 +02:00
Florent BEAUCHAMP
f806b45d3d Merge branch 'cubism' of https://github.com/vatesfr/xo-web into cubism 2015-09-23 22:35:30 +02:00
Florent BEAUCHAMP
8575e9eabe horizon : synchronize scales 2015-09-23 22:34:50 +02:00
Olivier Lambert
6ff9e22049 case for foreach 2015-09-23 22:18:42 +02:00
Fabrice Marsaud
caa86fdab7 Rely on unified server-side VM migrate 2015-09-23 22:15:19 +02:00
Florent BEAUCHAMP
48246716cc horizon : over text lighter 2015-09-23 22:04:29 +02:00
Florent BEAUCHAMP
6e07429e8a rizons : two numbers 2015-09-23 22:01:41 +02:00
Florent BEAUCHAMP
1a271c32b6 Horizon : hide cpu x in metrics list 2015-09-23 21:57:07 +02:00
Florent BEAUCHAMP
3fddec8f20 horizon : add label before chart
better handling of form when loading new metrics
2015-09-23 21:42:11 +02:00
Florent BEAUCHAMP
ac3944aece replace cubism with a custom implementation 2015-09-23 20:59:25 +02:00
Florent BEAUCHAMP
958cc2a50c wip 2015-09-22 23:17:32 +02:00
Florent BEAUCHAMP
058dfcfa9f Merge branch 'cubism' of https://github.com/vatesfr/xo-web into cubism 2015-09-22 19:09:35 +02:00
Florent BEAUCHAMP
9dbb1ca386 formatting 2015-09-22 19:06:01 +02:00
Florent BEAUCHAMP
4d1def6e9d move cubism from dataviz to health 2015-09-22 18:51:51 +02:00
Olivier Lambert
ff763b0278 fix a typo in clonedeep import and save the depencency 2015-09-22 13:28:04 +02:00
florent
74f611e0fd first integration of cubism 2015-09-22 09:23:28 +02:00
Olivier Lambert
61f8be1c60 Merge pull request #388 from vatesfr/issue#222
Filter for SR view VDIs #222
2015-09-17 18:01:41 +02:00
Olivier Lambert
96b18dab00 just add a placeholder in the filter for VDIs 2015-09-17 18:01:12 +02:00
Fabrice Marsaud
0a21b239bc Filter for SR view VDIs #222 2015-09-17 17:51:55 +02:00
Olivier Lambert
9c3589aea4 add PV args during VM creation. Fix #112 2015-09-17 16:36:14 +02:00
Olivier Lambert
2433485d13 Merge pull request #387 from vatesfr/issue#350
Issue#350
2015-09-17 14:56:21 +02:00
Fabrice Marsaud
6b5f254e0a Confirmations on tree and SR view 2015-09-17 14:51:33 +02:00
Fabrice Marsaud
e1b41b1e26 Additional confirmations for console view 2015-09-17 14:51:33 +02:00
Fabrice Marsaud
bd7a265df0 Additional confirmations for VM view 2015-09-17 14:51:33 +02:00
Olivier Lambert
039cca9529 Merge pull request #385 from vatesfr/issue#383
Html fixes so form required are no more ignored
2015-09-17 12:35:06 +02:00
Olivier Lambert
963347dbc2 Merge pull request #381 from vatesfr/issue#107
noVnc connection reset on disconnection
2015-09-17 12:19:19 +02:00
Fabrice Marsaud
697cc9f758 Html fixes so form required are no more ignored 2015-09-17 11:00:24 +02:00
Fabrice Marsaud
3892225584 Limited retries to reset consoles after reboot or halt or whatever disconnects... 2015-09-17 10:52:08 +02:00
Fabrice Marsaud
a7880a0ef5 noVnc connection reset on disconnection 2015-09-17 10:52:08 +02:00
Fabrice Marsaud
dd574830f5 Merge pull request #380 from vatesfr/issue#367
Tag management in xo-web
2015-09-17 10:30:10 +02:00
Fabrice Marsaud
71a0d15c35 Tag directive ensures an up to date tag display 2015-09-17 10:25:58 +02:00
Fabrice Marsaud
8a33c4f09a Various enhancements of the tag directive 2015-09-17 10:25:57 +02:00
Fabrice Marsaud
d223ce062a tags for VDIs. A refresh problem in VM view 2015-09-17 10:25:57 +02:00
Fabrice Marsaud
39c8f12963 Fixes for tag management 2015-09-17 10:25:57 +02:00
Fabrice Marsaud
bd4ba8c826 Autofocus, and smaller + button 2015-09-17 10:25:57 +02:00
Fabrice Marsaud
3d38c8e088 Add tag module 2015-09-17 10:25:57 +02:00
Fabrice Marsaud
ce58c80c6d Tag management UI for issue#367 2015-09-17 10:25:57 +02:00
Julien Fontanet
19b3a0781c Deps update. 2015-09-17 10:12:02 +02:00
Olivier Lambert
b42c1971b9 Merge pull request #382 from vatesfr/issue#323
Issue#323
2015-09-16 18:45:14 +02:00
Olivier Lambert
02440941e0 homogenize by using spaces vs nbsp 2015-09-16 17:58:27 +02:00
Olivier Lambert
cd2f986c50 fix a missing space in the list view 2015-09-16 17:56:22 +02:00
Olivier Lambert
e7cbd6b31f Update CHANGELOG.md
Add the fix pushed in the 4.5.1
2015-09-16 15:09:34 +02:00
Fabrice Marsaud
a7f6d5eebd Better order for acl management 2015-09-16 13:45:48 +02:00
Fabrice Marsaud
4f3b8c0906 Acls are editable 2015-09-16 13:45:48 +02:00
Fabrice Marsaud
7126c71943 Merge branch 'master' into next-release 2015-09-16 13:42:27 +02:00
Fabrice Marsaud
489cf16af8 4.5.1 2015-09-16 12:05:00 +02:00
Fabrice Marsaud
b012f44259 Merge pull request #379 from vatesfr/issue378
Fixes issue#378 and adds some cancel edit buttons on VM view. Ready for 4.5.1.
2015-09-16 12:03:00 +02:00
Fabrice Marsaud
5ce765bd27 Fixes issue#378 and adds some cancel edit buttons on VM view 2015-09-16 11:44:46 +02:00
Olivier Lambert
2450edd070 another minor UI fix 2015-09-15 20:01:54 +02:00
Olivier Lambert
fc2a61835c fix edge cases display of tools outdated but installed 2015-09-14 22:12:34 +02:00
Fabrice Marsaud
d06d73d5f7 Merge pull request #376 from vatesfr/issue#362
Any user can manage his password himself
2015-09-14 17:02:10 +02:00
Fabrice Marsaud
2c10996bb3 UI terms 2015-09-14 16:13:33 +02:00
Fabrice Marsaud
b9c85bb1bf Rework on password change 2015-09-14 15:36:22 +02:00
Fabrice Marsaud
f436afb9aa Any user can manage his password himself 2015-09-14 15:36:22 +02:00
Olivier Lambert
750efe4152 Merge pull request #377 from vatesfr/issue#342
Clearer tooltips for heatmap
2015-09-14 14:36:04 +02:00
Fabrice Marsaud
99cee95cd5 Clearer tooltips for heatmap 2015-09-14 14:24:10 +02:00
Olivier Lambert
ec10b84fa6 add new favicon. Fix #369 2015-09-11 22:16:35 +02:00
Olivier Lambert
f0442fe2ce spaces between tags in flat view 2015-09-11 22:16:06 +02:00
Olivier Lambert
7907969696 Merge pull request #372 from vatesfr/issue#368
Fix update panel for issue#368
2015-09-11 18:08:59 +02:00
Julien Fontanet
8dbab73d2b Minor fix in release process. 2015-09-11 18:04:18 +02:00
Fabrice Marsaud
ade8acb4e2 Fix update panel for issue#368 2015-09-11 15:54:08 +02:00
Fabrice Marsaud
9cb78e6954 Fix for Issue#357 2015-09-11 15:34:17 +02:00
Julien Fontanet
e9127bdbb3 4.5.0 2015-09-11 12:59:00 +02:00
Olivier Lambert
9b750bc756 add missing stuff in the changelog 2015-09-10 17:32:22 +02:00
Fabrice Marsaud
c3349e8cc7 Merge pull request #366 from vatesfr/issue#268
Issue#268
2015-09-10 17:24:58 +02:00
Olivier Lambert
f4d7c7f739 hide other buttons 2015-09-10 17:24:55 +02:00
Olivier Lambert
19d51cb1a4 remove a typo 2015-09-10 17:24:55 +02:00
Olivier Lambert
cc9983aa16 hide actions for a viewer and fix others 2015-09-10 17:24:55 +02:00
Fabrice Marsaud
81f8467f66 ng-if solution for unauthorized action button and links 2015-09-10 17:24:55 +02:00
Fabrice Marsaud
df6b23e3c7 disable solution. not very satisfying 2015-09-10 17:24:55 +02:00
Fabrice Marsaud
4dd81e7d59 Merge pull request #365 from vatesfr/issue#330
Issue#330
2015-09-10 17:22:27 +02:00
Fabrice Marsaud
54ce7067b4 Nan and data type bugs fixed 2015-09-10 17:22:32 +02:00
Fabrice Marsaud
2673f790e6 Issue #330 enhanced heatmap, first delivery 2015-09-10 17:22:32 +02:00
Fabrice Marsaud
69bea2ec9b Merge pull request #364 from vatesfr/issue#315
Issue#315
2015-09-10 16:18:58 +02:00
Fabrice Marsaud
37037cf797 Fixed "onlymetadata" backup bugs 2015-09-10 15:59:36 +02:00
Fabrice Marsaud
2a1586aab3 Onlymetadata scheduled backups 2015-09-09 12:12:06 +02:00
florent
915281d138 cleanup and enlarge brush 2015-09-08 23:05:36 +02:00
florent
b53a179ea0 correctly invoke parallel chart + readme + add drag filter 2015-09-08 22:56:32 +02:00
Olivier Lambert
7077e8b50e Merge pull request #359 from vatesfr/dynamic-charts
Dynamic charts
2015-09-08 13:16:57 +02:00
florent
d9181277d9 correct wrong throttle/debounce use * 2015-09-08 12:18:27 +02:00
florent
810c2d6a1a listen to xoApi.onUpdate event to refresh charts, throttle refresh to once every 300ms 2015-09-08 12:18:08 +02:00
Olivier Lambert
f31113fb90 change panel name 2015-09-08 12:08:01 +02:00
florent
1702b9dd37 force domain to start at zero 2015-09-08 12:06:13 +02:00
florent
f8e61c713c first implementation of parrallel chart directive 2015-09-08 12:05:16 +02:00
Julien Fontanet
643132754a xoApi.onUpdate(fn) 2015-09-07 14:10:51 +02:00
Olivier Lambert
4f0a131bd2 fix #341 2015-09-07 13:13:08 +02:00
Olivier Lambert
52aa0350cf update the changelog 2015-09-07 13:12:56 +02:00
Olivier Lambert
c9884f32fe fix #355 2015-09-07 12:36:35 +02:00
Olivier Lambert
aea3ae3d37 fix #356 2015-09-07 12:36:23 +02:00
Olivier Lambert
10f7c3045f fix #348 2015-09-03 15:15:51 +02:00
Olivier Lambert
bf4e158c30 fix #347 2015-09-03 14:48:08 +02:00
Olivier Lambert
4a3155ed22 Merge pull request #346 from vatesfr/performance
Performance improvment
2015-09-02 21:38:03 +02:00
florent
29f1c89fa5 fix sunburst layout on FF/IE 2015-09-02 21:08:54 +02:00
florent
4a92e8a99f improve performance
make suburst graph static and synchronize animation
2015-09-02 20:40:32 +02:00
Olivier Lambert
c6cffb1156 add metadata export in the VM view 2015-09-02 17:15:10 +02:00
Olivier Lambert
f6e4e59905 add outdate tools info in VM view 2015-09-02 15:55:20 +02:00
Olivier Lambert
3a0736c4bf fix #304 2015-09-02 15:43:05 +02:00
Julien Fontanet
47455b2029 Merge pull request #344 from vatesfr/coding-standard
Fix coding style of the dashboard.
2015-09-02 11:24:24 +02:00
Julien Fontanet
05eb7d765f Coding style fixes. 2015-09-02 11:12:37 +02:00
Julien Fontanet
5e786686d0 Remove unecessary dep. 2015-09-02 10:29:40 +02:00
florent
5cb8e3a7c3 comply to coding standards 2015-09-01 20:18:10 +02:00
Fabrice Marsaud
84bd077eac 4.4.0 2015-08-28 17:38:23 +02:00
Julien Fontanet
db39b27119 Fix home page on sign in. 2015-08-28 17:14:59 +02:00
Julien Fontanet
f2d2b35543 Merge pull request #335 from vatesfr/passport
Authentication is moved to xo-server.
2015-08-28 16:09:59 +02:00
Julien Fontanet
5dfd5766f2 Authentication is moved to xo-server. 2015-08-28 15:04:47 +02:00
Fabrice Marsaud
0e4c3e1e92 CSS tree view fixes 2015-08-28 10:53:13 +02:00
Fabrice Marsaud
221f42606c Fixes from Issue#329 2015-08-28 10:45:20 +02:00
Olivier Lambert
742f092ed3 add CSS flexbox issue in the changelog 2015-08-28 10:37:23 +02:00
Fabrice Marsaud
36bffa1475 gulpFilter 3.x 2015-08-28 09:22:35 +02:00
Fabrice Marsaud
936abc1b1a Fix for undefined VDIs (base copy) 2015-08-27 23:45:25 +02:00
Fabrice Marsaud
584bdd545f icon fix 2015-08-27 22:38:12 +02:00
Fabrice Marsaud
99debc18d7 Heatmap modifs 2015-08-27 21:41:34 +02:00
Olivier Lambert
56b896eda0 add better title 2015-08-27 18:27:44 +02:00
Fabrice Marsaud
cab102528d add omitted template 2015-08-27 18:24:29 +02:00
Fabrice Marsaud
1875cdcda2 Imporvements 2015-08-27 18:22:28 +02:00
Fabrice Marsaud
386dcc8d43 Host heatmap seems ok 2015-08-27 17:55:21 +02:00
Fabrice Marsaud
e6d59a47b1 Unstable progress 2015-08-27 17:01:25 +02:00
Fabrice Marsaud
2659393f33 First heatmap correct integration 2015-08-27 17:01:25 +02:00
Fabrice Marsaud
916b2363d9 Fixed storage dataviz (avoid hidden base copy vdis) 2015-08-27 17:01:25 +02:00
Olivier Lambert
bb513790b5 add changelog for 4.4 2015-08-27 17:01:25 +02:00
Olivier Lambert
e5ab15a727 remove permission for dashboard view if non admin 2015-08-27 17:01:25 +02:00
Fabrice Marsaud
bbaa750fda css touches
Conflicts:
	app/modules/dashboard/dataviz/view.jade
2015-08-27 17:01:25 +02:00
Fabrice Marsaud
a46e19210a css touch 2015-08-27 17:01:25 +02:00
Olivier Lambert
9d6772edd1 disable dashboard link menu 2015-08-27 17:01:25 +02:00
Olivier Lambert
3aeaa564a2 remove useless treemap 2015-08-27 17:01:25 +02:00
Olivier Lambert
8baad494e3 minor fixes 2015-08-27 17:01:25 +02:00
florent
fb04753d52 doc dor heatmap 2015-08-27 17:01:25 +02:00
florent
ea37c4ccd8 backport some correction to sunburst charts 2015-08-27 17:01:25 +02:00
florent
80f02b52e1 a littel doc for sunburst 2015-08-27 17:01:25 +02:00
florent
55464845d6 week heatmap 2015-08-27 17:01:25 +02:00
Florent BEAUCHAMP
8aef4bb455 treemap directive 2015-08-27 17:01:25 +02:00
Florent BEAUCHAMP
d8a2adbca2 dataviz refacto : split megacronlller in two bigcontroller 2015-08-27 17:01:25 +02:00
Florent BEAUCHAMP
02e56da08a more transition, less console.log 2015-08-27 17:01:25 +02:00
Florent BEAUCHAMP
9d9f857e73 sunburst : transition 2015-08-27 17:01:25 +02:00
Florent BEAUCHAMP
b140c1e65f dataviz > overview : show shared SRS 2015-08-27 17:01:25 +02:00
Florent BEAUCHAMP
81ff03462e dataviz breadcrumbs are full width 2015-08-27 17:01:25 +02:00
Florent BEAUCHAMP
2ea7c09c84 dataviz : add cursor pointer if applicable 2015-08-27 17:01:25 +02:00
Florent BEAUCHAMP
4163ed212c make dataviz clickable 2015-08-27 17:01:25 +02:00
Florent BEAUCHAMP
c83722c2df dataviz : correct typo in storage sums 2015-08-27 17:01:25 +02:00
Florent BEAUCHAMP
700db655e6 dataviz : storage is now pool > host > SRS > VDI
hide .iso srs
2015-08-27 17:01:25 +02:00
Florent BEAUCHAMP
226428f631 dataviz : replace cpu view by storage view pool>SRS>vdi 2015-08-27 17:01:25 +02:00
Florent BEAUCHAMP
e2b293e49b no udev in overview list 2015-08-27 17:01:25 +02:00
Florent BEAUCHAMP
1f6e9d4660 directive - less border 2015-08-27 17:01:25 +02:00
Florent BEAUCHAMP
ecf2ee888f dataviz : remove logarithmic scale 2015-08-27 17:01:25 +02:00
Florent BEAUCHAMP
1e8eeadb1d switch to a logarithm scale for ram 2015-08-27 17:01:25 +02:00
Florent BEAUCHAMP
e7ceccdd83 dataviz : do not show "virtual pool" for poolless host 2015-08-27 17:01:25 +02:00
Florent BEAUCHAMP
5390b4a4b3 oups, wrong CPU count 2015-08-27 17:01:25 +02:00
Florent BEAUCHAMP
f25ec34bc3 show free ram and cpu 2015-08-27 17:01:24 +02:00
Florent BEAUCHAMP
53ece86816 don't show iso in overview > SR. Order SR by usage ratio desc 2015-08-27 17:01:24 +02:00
Florent BEAUCHAMP
9b128cdfcc add comprehensible tooltip on overview > ram 2015-08-27 17:01:24 +02:00
Florent BEAUCHAMP
c047386755 sunburst : add text info in the center 2015-08-27 17:01:24 +02:00
Florent BEAUCHAMP
b0ffb272b3 sunburst : border width is coherent with graph width 2015-08-27 17:01:24 +02:00
Olivier Lambert
956e21c8db code style now using JS standard 2015-08-27 17:01:24 +02:00
Florent BEAUCHAMP
95057a2b09 use the right visualization 2015-08-27 17:01:24 +02:00
Florent BEAUCHAMP
788aa24a80 overview with real data 2015-08-27 17:01:24 +02:00
Florent BEAUCHAMP
0a72ef91cc less opacity to non hovered sunburst node. text ellipsis in breadcrumbs 2015-08-27 17:01:24 +02:00
Florent BEAUCHAMP
f0f4e0985a sunburst directive : externalized in a module, react to vm changes 2015-08-27 17:01:24 +02:00
Florent BEAUCHAMP
a6bedea4b6 sunburst are responsive 2015-08-27 17:01:24 +02:00
Florent BEAUCHAMP
055316e1ca multiple synchronizated sunburst + breadcrumbs 2015-08-27 17:01:24 +02:00
Olivier Lambert
25fece5947 add initial d3 work of FBP 2015-08-27 17:01:24 +02:00
Olivier Lambert
5ec3cdbcc5 health page mockup 2015-08-27 17:01:24 +02:00
Olivier Lambert
b530ab2ef6 clean copy/pasted code 2015-08-27 17:01:24 +02:00
Olivier Lambert
5164f60c98 Ui fixes for dashboard 2015-08-27 17:01:24 +02:00
Olivier Lambert
19ba3015f7 not responsive graph to avoid a display bug 2015-08-27 17:01:24 +02:00
Olivier Lambert
fb00b2672c start dashboard mockup 2015-08-27 17:01:24 +02:00
Fabrice Marsaud
3e0f936d2a host refreshStats fix 2015-08-27 16:47:58 +02:00
Fabrice Marsaud
f5be146dbb refreshStats fix 2015-08-27 10:01:44 +02:00
Olivier Lambert
95431a0874 disable the scheduler for non admin users 2015-08-26 16:53:15 +02:00
Julien Fontanet
f76b130ca4 Coding style fixes. 2015-08-26 15:03:48 +02:00
Julien Fontanet
d19f8259d0 Upgrade deps. 2015-08-26 15:03:35 +02:00
Julien Fontanet
68cd62d756 Scheduler view is only accessible to admins. 2015-08-26 11:08:58 +02:00
Fabrice Marsaud
ea4a55d3dd grid css enhanced 2015-08-25 19:11:28 +02:00
Fabrice Marsaud
788bdcd35b menu-entry class is back 2015-08-24 18:20:38 +02:00
Fabrice Marsaud
ebd7e24830 group icon fix 2015-08-24 17:21:22 +02:00
Fabrice Marsaud
0b7fbffa0a Icons and styles enhanced a bit 2015-08-24 17:02:14 +02:00
Fabrice Marsaud
2afda9a055 form template touch 2015-08-24 17:02:14 +02:00
Fabrice Marsaud
28dd275bd8 Honest responsive grid 2015-08-24 17:02:14 +02:00
Fabrice Marsaud
9a3cf182ac side menu and other enhancements 2015-08-24 17:02:14 +02:00
Fabrice Marsaud
dd278c28be first steps 2015-08-24 17:02:14 +02:00
Fabrice Marsaud
37572122b0 Reload prompt after upgrade 2015-08-24 16:55:04 +02:00
Fabrice Marsaud
5348f75b5e ACL enhanced object selector 2015-08-10 18:43:44 +02:00
Fabrice Marsaud
6b8873d385 Updater flow and display fixed 2015-07-31 09:27:06 +02:00
Fabrice Marsaud
8db18d87e5 Minor vocabulary fix 2015-07-29 15:18:26 +02:00
Fabrice Marsaud
444920d15c 4.3.0 2015-07-22 15:48:52 +02:00
Fabrice Marsaud
8aa2fab603 Merge branch 'next-release' 2015-07-22 15:39:36 +02:00
Olivier Lambert
9ded4386cc Update CHANGELOG.md 2015-07-22 15:16:13 +02:00
Fabrice Marsaud
cc6b1b5aa1 Fixed delete all host logs 2015-07-22 15:05:54 +02:00
Olivier Lambert
74f20da82f Merge pull request #305 from vatesfr/issue#301
GUI fix for vm delete
2015-07-21 14:34:59 +02:00
Olivier Lambert
4c9c838b70 Merge pull request #300 from vatesfr/marsaud-backup
Scheduled VM Backup feature
2015-07-21 14:34:51 +02:00
Fabrice Marsaud
9a9d27d37a GUI fix for vm delete 2015-07-21 14:26:07 +02:00
Fabrice Marsaud
0347d4cec4 Rolling backup feature 2015-07-21 14:14:15 +02:00
Fabrice Marsaud
b1b189288e Fix issue #302 2015-07-21 14:11:24 +02:00
Fabrice Marsaud
b3220f981b GUI fix for vm delete 2015-07-20 19:29:53 +02:00
Julien Fontanet
a5573e62c6 Update deps. 2015-07-15 09:47:01 +02:00
Fabrice Marsaud
c4ccee8df6 4.2.0 2015-06-29 09:18:43 +02:00
Fabrice Marsaud
fbcf803d06 Merge branch 'next-release' 2015-06-29 09:16:31 +02:00
Olivier Lambert
5247b7a9af Update CHANGELOG.md 2015-06-27 22:42:39 +02:00
Fabrice Marsaud
dc218cc992 rollingSnap view clean 2015-06-26 14:39:42 +02:00
Fabrice Marsaud
c21761d9d4 Merge pull request #289 from vatesfr/scheduler#176
Scheduler#176
2015-06-26 14:24:38 +02:00
Fabrice Marsaud
36c0bf06d7 Rolling VM Snapshot scheduling feature 2015-06-26 12:35:02 +02:00
Fabrice Marsaud
ccdab2b083 Fixed VM snapshots pagination 2015-06-26 12:34:35 +02:00
Fabrice Marsaud
15a8a56807 Fixes service link 2015-06-26 09:47:35 +02:00
Fabrice Marsaud
385d42281b Revert "This code should now be unnecessary."
This reverts commit 5f9cf47003.
2015-06-25 17:29:20 +02:00
Julien Fontanet
b0dc933021 Do not use babel-plugin-closure-elimination. 2015-06-23 15:01:49 +02:00
Olivier Lambert
b73ee1f638 Merge pull request #293 from vatesfr/SRViewFix
Fixed VM display on SR view
2015-06-22 10:40:23 +02:00
Fabrice Marsaud
51c2a54179 Fixed VM display on SR view 2015-06-22 10:25:44 +02:00
Julien Fontanet
2d71a916a2 Update vinyl to 0.5. 2015-06-15 16:47:56 +02:00
Julien Fontanet
5f9cf47003 This code should now be unnecessary. 2015-06-15 15:15:12 +02:00
Julien Fontanet
16b39185dc Fix coding style in gulpfile.js 2015-06-15 14:29:45 +02:00
Julien Fontanet
6f0410f26e Fix Angular to 1.4.x.
Angular's devs tend to break API on minor versions.
2015-06-15 10:58:18 +02:00
Julien Fontanet
0b86845852 Add Babel plugin for closure elimination (disabled for now). 2015-06-11 08:54:58 +02:00
Julien Fontanet
d5f914bd2f Do not distribute examples & tests. 2015-06-11 08:54:58 +02:00
Julien Fontanet
663c65e42e Babel configuration. 2015-06-11 08:54:58 +02:00
Julien Fontanet
b9de86f96c Minor fix in EditorConfig. 2015-06-11 08:54:58 +02:00
Olivier Lambert
bd9c0ffb25 4.1.0 2015-06-10 16:59:17 +02:00
Olivier Lambert
9d763773cf 4.1.0 2015-06-10 16:58:48 +02:00
Olivier Lambert
540f977146 Update CHANGELOG.md 2015-06-10 16:24:33 +02:00
Olivier Lambert
d16b09d3fc fix issue #287 2015-06-10 16:22:35 +02:00
Olivier Lambert
6f8a8d3b90 Update CHANGELOG.md 2015-06-10 13:19:02 +02:00
Olivier Lambert
00ef4166c7 fix #286 2015-06-10 10:35:56 +02:00
Olivier Lambert
b88414735e minor style modification for drag'n drop 2015-06-09 13:31:53 +02:00
Fabrice Marsaud
af092fae9b Fixed missing anguler injection 2015-06-09 12:58:11 +02:00
Fabrice Marsaud
b889efc913 migratePool fallback for dragNdrop migration 2015-06-09 12:58:11 +02:00
Fabrice Marsaud
877dd68a6b Final drag style 2015-06-09 12:58:11 +02:00
Fabrice Marsaud
2805a1c7bc A bit of style 2015-06-09 12:58:11 +02:00
Fabrice Marsaud
c5c000ea6f Work in progress 2015-06-09 12:58:11 +02:00
Fabrice Marsaud
673f1072bf Minor fix 2015-06-09 12:58:11 +02:00
Fabrice Marsaud
d0e93b9b9f Drag & drop VM migration in progress 2015-06-09 12:58:11 +02:00
Olivier Lambert
f239088bcb fix #270 2015-06-08 20:49:10 +02:00
Fabrice Marsaud
32642f105c Groups UI enhancement 2015-06-08 16:50:04 +02:00
Fabrice Marsaud
4adaf6d355 Group panel allows ACL suppression, and user search for add 2015-06-08 14:21:09 +02:00
Fabrice Marsaud
291e2a5e40 group: direct user add, without button 2015-06-08 13:34:26 +02:00
Fabrice Marsaud
05bdb56203 Minor code fix 2015-06-08 11:59:29 +02:00
Fabrice Marsaud
cb71df8345 Group view improvements 2015-06-08 11:54:03 +02:00
Fabrice Marsaud
c6c5f5188b Group dedicated edit page with acl recap 2015-06-05 15:29:34 +02:00
Fabrice Marsaud
a7b6ca0914 Fix for Issue #272 hide non auth objects 2015-06-04 17:16:49 +02:00
Fabrice Marsaud
30ba062695 Fixes for issue #271 newvm 2015-06-04 09:17:10 +02:00
Fabrice Marsaud
a595af7b3f vm controller clean up 2015-06-03 17:51:57 +02:00
Fabrice Marsaud
b2ee3172d8 console view data behaves ok on browser refresh 2015-06-03 17:45:23 +02:00
Fabrice Marsaud
73992ee8e9 console iso-device integration 2015-06-03 17:28:24 +02:00
Fabrice Marsaud
78885fd00a Fixed iso-device bug 2015-06-03 17:27:53 +02:00
Fabrice Marsaud
ce55ac6ccb Reworked iso-device module and integration on vm view 2015-06-03 17:01:30 +02:00
Fabrice Marsaud
8ce0951e5f Fix Issue #271 2015-06-03 14:53:42 +02:00
Julien Fontanet
7788fa9d3e Use standard with babel-eslint. 2015-06-03 09:40:38 +02:00
Julien Fontanet
7f36552c71 Release process. 2015-06-03 09:40:38 +02:00
Fabrice Marsaud
16f9437b29 Solving Issue #269 2015-06-02 15:51:40 +02:00
Julien Fontanet
0beaff718e Update release process. 2015-06-01 16:18:31 +02:00
Olivier Lambert
9b6f37b5d0 add changelog for patch releases 2015-06-01 16:16:08 +02:00
Olivier Lambert
3d6d4aea6a 4.0.2 2015-06-01 10:26:34 +02:00
Fabrice Marsaud
2356a21e54 Fix for Issue #264 field resets whil editing users 2015-06-01 09:32:20 +02:00
Olivier Lambert
a55e7ed34f 4.0.1 2015-05-30 18:35:34 +02:00
Fabrice Marsaud
e355e4d35d Fixed xoa-updater-service url 2015-05-30 14:24:57 +02:00
Julien Fontanet
6dcaf80f3f 4.0.0 2015-05-29 16:14:34 +02:00
Julien Fontanet
a465114d36 Remove unused imports & coding style. 2015-05-29 16:11:59 +02:00
Julien Fontanet
07fbcb3488 Various changes. 2015-05-29 16:02:54 +02:00
Julien Fontanet
534fbe1b6e Force Angular 1.4. 2015-05-29 16:02:45 +02:00
Julien Fontanet
f5c9c1ba0e Fix networks on new VM page on first load. 2015-05-29 16:02:15 +02:00
Julien Fontanet
5d5485f569 Fix host patches pagination. 2015-05-29 15:25:09 +02:00
Julien Fontanet
3d3fa5d18a Work around an Angular issue. 2015-05-29 14:20:05 +02:00
Julien Fontanet
312c41f229 Fix CD handling on VM page. 2015-05-29 14:04:10 +02:00
Fabrice Marsaud
2df1dc9028 Fix disks reordering on VM page. 2015-05-29 13:30:21 +02:00
Olivier Lambert
222f245e63 workaround with ng if 2015-05-29 13:29:52 +02:00
Olivier Lambert
2aa7702aed ng-if breaks the scope, replaced by ng-show 2015-05-29 13:15:16 +02:00
Olivier Lambert
0b185c35c2 restore UUID display 2015-05-29 12:19:41 +02:00
Fabrice Marsaud
48dcec3cc3 Separated user and group managment 2015-05-29 12:11:26 +02:00
Fabrice Marsaud
8567179fa3 reset ACL form after creation 2015-05-29 11:44:29 +02:00
Fabrice Marsaud
79d15ecd7e Sort user/group edit by id to avoid jumps while editing 2015-05-29 11:37:27 +02:00
Fabrice Marsaud
837c7e4bc7 Fix a missing loading anim when creating iSCSI SR 2015-05-29 11:30:51 +02:00
Fabrice Marsaud
2ae7e9920d Fix NFS_ISO missing settings for SR creation 2015-05-29 11:19:41 +02:00
Julien Fontanet
8cf955b674 Minor code simplification. 2015-05-29 10:50:35 +02:00
Julien Fontanet
33f897d43e Fix _gatherConnectedUuids(). 2015-05-29 10:45:32 +02:00
Fabrice Marsaud
ddb0946a0d Fixed UI bug on group user add 2015-05-29 08:30:34 +02:00
Fabrice Marsaud
0f5beac4a8 Fix group managment 2015-05-29 00:47:02 +02:00
Fabrice Marsaud
974e2f71f9 Roles added to ACLs 2015-05-28 23:58:36 +02:00
Fabrice Marsaud
3c427d7e28 acl work in progress 2015-05-28 23:26:03 +02:00
Fabrice Marsaud
0f10c8f5df bugfix on empty groups for settings/user 2015-05-28 21:50:49 +02:00
Olivier Lambert
7840b51f5c Update CHANGELOG.md 2015-05-28 19:27:18 +02:00
Olivier Lambert
6578855182 fix a bug with Other media install 2015-05-28 18:39:52 +02:00
Julien Fontanet
58d68497a4 Fixed width icons on ACLs subject selection. 2015-05-28 16:51:39 +02:00
Julien Fontanet
bddcf42a54 Fix access control to different pages. 2015-05-28 16:50:56 +02:00
Julien Fontanet
6318f4e7ac Correctly escape special chars in RegExp. 2015-05-28 16:20:37 +02:00
Julien Fontanet
0c6cced7ee Update xo-lib to 0.7.2. 2015-05-28 15:51:20 +02:00
Julien Fontanet
925bf47c9e Fix patches on host view. 2015-05-28 12:14:26 +02:00
Julien Fontanet
8472b991ff Only display running tasks on host view. 2015-05-28 12:06:56 +02:00
Julien Fontanet
ed59c32d96 Revert "Use lodash.slice instead of builtin method."
This reverts commit 1aaaee128f.

lodash.slice() incorrectly used on strings.
2015-05-28 11:54:27 +02:00
Julien Fontanet
b1981d7499 Various fixes. 2015-05-28 11:54:23 +02:00
Julien Fontanet
8983dfea57 Various fixes. 2015-05-28 10:58:24 +02:00
Julien Fontanet
5231b9b22b Again: UUID → id. 2015-05-28 10:25:04 +02:00
Julien Fontanet
55846a2314 Fix task.created date formatting. 2015-05-28 10:25:03 +02:00
Julien Fontanet
1c94f5749d Fix logs. 2015-05-28 10:25:03 +02:00
Fabrice Marsaud
90bacd9d31 VM Create Disk panal closes on success 2015-05-28 09:46:45 +02:00
Julien Fontanet
0053cbf782 No more UUID (→ id). 2015-05-27 19:44:28 +02:00
Julien Fontanet
5d120a79e8 Various fixes. 2015-05-27 19:42:31 +02:00
Julien Fontanet
3389569ea0 Various fixes. 2015-05-27 19:35:25 +02:00
Julien Fontanet
f546606de0 Various fixes. 2015-05-27 19:28:21 +02:00
Julien Fontanet
fef95b3aae Various fixes. 2015-05-27 19:21:49 +02:00
Julien Fontanet
5ba2b72439 Various fixes. 2015-05-27 18:59:15 +02:00
Julien Fontanet
4bb849f7c9 Updates xo-lib to v0.7.1. 2015-05-27 18:04:11 +02:00
Fabrice Marsaud
21b5e7e701 ACL Panel exposes groups 2015-05-27 17:20:42 +02:00
Julien Fontanet
34a1965497 Fix CoffeeScript indentation. 2015-05-27 17:19:31 +02:00
Julien Fontanet
1701682636 Rename filter: % → percentage. 2015-05-27 17:19:31 +02:00
Julien Fontanet
5d826972f1 Remove unused gulp-coffee. 2015-05-27 17:19:31 +02:00
Fabrice Marsaud
2467b336e5 Group managment in settings 2015-05-27 17:03:28 +02:00
Julien Fontanet
4f78414c7f Fixing host view… 2015-05-27 16:58:32 +02:00
Julien Fontanet
4532714bae Fix the tree view. 2015-05-27 16:36:01 +02:00
Olivier Lambert
352c23b0ba Update CHANGELOG.md 2015-05-27 15:25:38 +02:00
Julien Fontanet
8e432ee818 Global stats. 2015-05-27 15:18:49 +02:00
Julien Fontanet
47bb2d24f5 Avoid polluting the local scope in xo-api. 2015-05-27 14:24:55 +02:00
Julien Fontanet
f3fd4c607d Fix race condition in host view. 2015-05-27 14:24:32 +02:00
Julien Fontanet
0610ceafdf Remove unused $scope.removeMessage(). 2015-05-27 12:52:01 +02:00
Julien Fontanet
032fcdce40 Fix VDI handling in VM view. 2015-05-26 18:31:47 +02:00
Olivier Lambert
636bacd637 using standard style with a linter show that missing semicolon 2015-05-26 18:09:26 +02:00
Olivier Lambert
3f3fbd8bbc Update CHANGELOG.md 2015-05-26 10:48:34 +02:00
Fabrice Marsaud
955e88b4fb Fixed minor jade template error 2015-05-26 09:55:10 +02:00
Olivier Lambert
5954b552c9 fix patch issue 2015-05-25 15:31:58 +02:00
Julien Fontanet
aaad4c5d20 Fix production build (fix #261). 2015-05-25 10:21:45 +02:00
Julien Fontanet
a24c8526ea CSS sourcemaps only in dev mode! 2015-05-24 19:03:30 +02:00
Julien Fontanet
a533535520 Do not include CSS source maps in prod. 2015-05-24 18:47:38 +02:00
Julien Fontanet
badded3aa4 Inline external CSS. 2015-05-24 18:32:50 +02:00
Julien Fontanet
3055e612d4 Source maps for CSS. 2015-05-24 18:18:54 +02:00
Julien Fontanet
525cb1a2b6 Update deps. 2015-05-24 18:10:31 +02:00
Julien Fontanet
4dd70abc3b Remove a console.log. 2015-05-24 15:50:28 +02:00
Julien Fontanet
2ea4c214df Use more objects views and less the byType index. 2015-05-24 15:49:50 +02:00
Julien Fontanet
0a0174a79d New objects view: runningVms. 2015-05-24 15:21:14 +02:00
Julien Fontanet
3db031be1b Updates xo-collection to 0.3.2.. 2015-05-24 14:42:56 +02:00
Julien Fontanet
6d3a87fe7d New objects view: runningTasks. 2015-05-24 14:38:53 +02:00
Olivier Lambert
8cfd2cdd79 add host stats fix 2015-05-22 22:11:26 +02:00
Fabrice Marsaud
9e874e076f Stats stop if response exceeds 10 sec 2015-05-22 17:45:38 +02:00
Fabrice Marsaud
28192bf184 Simple x reattempt mode for stats 2015-05-22 17:35:53 +02:00
Julien Fontanet
a54957b4de Use $applyAsync() instead of $apply() for perf. 2015-05-22 15:16:02 +02:00
Julien Fontanet
f4b1a076b7 Better sync with xo-lib. 2015-05-22 15:15:39 +02:00
Julien Fontanet
27a3296d6e No need to use the UUID index. 2015-05-22 13:10:03 +02:00
Julien Fontanet
1aaaee128f Use lodash.slice instead of builtin method. 2015-05-22 12:12:39 +02:00
Julien Fontanet
15a16a2c35 Remove unnecessary modules. 2015-05-22 12:10:54 +02:00
Julien Fontanet
db23fe5a58 Fix SRs in list view. 2015-05-22 12:06:04 +02:00
Julien Fontanet
620c88b615 Move slice to xo-filters and use lodash.slice. 2015-05-22 12:05:49 +02:00
Julien Fontanet
99f2fb9764 Use views in list page. 2015-05-21 18:27:24 +02:00
Julien Fontanet
d5a3e67dbd Use more xo-collection/View in the tree page. 2015-05-21 17:57:27 +02:00
Julien Fontanet
55ef81f3e7 master-select module. 2015-05-21 17:48:48 +02:00
Julien Fontanet
41699fab1e Use lodash.clonedeep instead of angular.copy. 2015-05-21 17:48:48 +02:00
Julien Fontanet
32a1195157 Always use lodash.foreach. 2015-05-21 17:48:48 +02:00
Olivier Lambert
f53db2ddfa fix a display issue in general panel for VM view 2015-05-21 15:16:26 +02:00
Fabrice Marsaud
e060f9172b Trial handling removal 2015-05-21 11:16:46 +02:00
Fabrice Marsaud
4adef88e61 Minor update message fix 2015-05-21 11:14:26 +02:00
Fabrice Marsaud
d734f2cf89 Fixed host/patches panel 2015-05-21 10:41:35 +02:00
Fabrice Marsaud
3e81d14bd8 First delivery for pagination Issue #221 2015-05-21 09:09:14 +02:00
Olivier Lambert
e88a94d9e0 better UI for registration 2015-05-20 19:40:45 +02:00
Olivier Lambert
f4f16e4e87 updater UI fixes 2015-05-20 18:57:20 +02:00
Olivier Lambert
6268f3a3d9 small improvement for UI in vm creation 2015-05-20 18:00:50 +02:00
Fabrice Marsaud
06e7c8d19a VM logs are paginated 2015-05-20 17:50:46 +02:00
Olivier Lambert
32395232ea nicer vm creation view 2015-05-20 17:49:55 +02:00
Julien Fontanet
65d6ef91ff Fix defaultArgsMapper. 2015-05-20 17:19:41 +02:00
Julien Fontanet
4aecc875d1 Reorganize service. 2015-05-20 17:13:19 +02:00
Fabrice Marsaud
0e649a626c Handle unexisting boot order 2015-05-20 15:04:39 +02:00
Fabrice Marsaud
5fa249b0f3 Minor touch on boot reordering 2015-05-20 14:31:47 +02:00
Julien Fontanet
24ca86aad3 osFamily Angular filter. 2015-05-20 14:26:38 +02:00
Julien Fontanet
8a4f413289 TODO: deleteVms should be integrated in xo.deleteVms(). 2015-05-20 14:26:38 +02:00
Julien Fontanet
6dbad4501d Use ES6 export syntax. 2015-05-20 14:26:38 +02:00
Julien Fontanet
9ab6490fee Typo. 2015-05-20 14:26:38 +02:00
Julien Fontanet
a413efa550 Remove unnecessary values(). 2015-05-20 14:26:38 +02:00
Julien Fontanet
cd337d444c Minor improvement of xoApi.getObject(). 2015-05-20 14:26:38 +02:00
Julien Fontanet
45e1ce0a42 Fix global stats on the tree view. 2015-05-20 14:26:38 +02:00
Fabrice Marsaud
e5ef1e6efe First delivery for Issue #251 2015-05-20 14:05:06 +02:00
Julien Fontanet
b1ce3be3d2 Move consoles in /api/consoles/. 2015-05-20 10:28:52 +02:00
Olivier Lambert
e13ab73a29 stat changes 2015-05-19 21:19:18 +02:00
Fabrice Marsaud
aede952b12 Issue #253 2015-05-19 18:38:14 +02:00
Fabrice Marsaud
acc1476b29 Fixing Issue #250 2015-05-19 18:38:14 +02:00
Fabrice Marsaud
138bf56624 A fix on xoa-updater handling 2015-05-19 18:38:14 +02:00
Julien Fontanet
c608de4183 SPDX valid license. 2015-05-19 17:44:07 +02:00
Julien Fontanet
ccb6c02c31 Use more const. 2015-05-19 17:35:14 +02:00
Julien Fontanet
5cc457b28c Use xo-lib 0.7. 2015-05-19 16:55:54 +02:00
Julien Fontanet
a353b3d40d map Angular filter now based on lodash. 2015-05-19 16:54:10 +02:00
Julien Fontanet
6f7aca8e5b isEmpty Angular filter. 2015-05-19 16:53:50 +02:00
Julien Fontanet
92b0d4561e xo-web should only have dev deps. 2015-05-19 15:54:27 +02:00
Olivier Lambert
ef8b8346dc better UI for host 2015-05-19 14:55:10 +02:00
Fabrice Marsaud
058058a015 Updater rewritten with ws 2015-05-19 14:52:49 +02:00
Olivier Lambert
fddba7315a better recap for templates with disks 2015-05-18 20:57:18 +02:00
Olivier Lambert
a5e964ea19 start VM creation from template with disks 2015-05-18 20:39:48 +02:00
Julien Fontanet
3d2152e559 Fix relative URLs (fix #254). 2015-05-18 20:34:46 +02:00
Olivier Lambert
50f9c68c26 add spinner while fetching host stats 2015-05-18 17:13:04 +02:00
Olivier Lambert
b40207b367 start to add stats to host view 2015-05-18 17:13:04 +02:00
Julien Fontanet
6c9305d2b1 Fix unnecessary recompilation of app.js 2015-05-18 16:20:06 +02:00
Julien Fontanet
9fda3c911d Standard code style. 2015-05-18 16:13:36 +02:00
Olivier Lambert
473c3601ef better responsive tree menu for extra small devices 2015-05-18 12:38:38 +02:00
Olivier Lambert
fde8a3720d more responsive settings menu 2015-05-18 12:04:16 +02:00
Fabrice Marsaud
13a6d6b458 xoa-updater proxy settings when xoa-updater available 2015-05-18 09:26:39 +02:00
Olivier Lambert
29d9ba0446 some UI fixes for VM view 2015-05-15 10:46:57 +02:00
Fabrice Marsaud
71e271774e Tolerance to xoa-updater missing 2015-05-14 15:45:21 +02:00
Olivier Lambert
c9db49e255 tree view is now compatible with small devices 2015-05-14 15:10:09 +02:00
Olivier Lambert
22f35f0e86 pool view better UI 2015-05-14 15:10:09 +02:00
Fabrice Marsaud
375f3ac3ac updater loss and reconnection properly handled 2015-05-14 15:03:34 +02:00
Olivier Lambert
b60a02bc34 use ellipsis to compact lines in tables 2015-05-14 14:56:25 +02:00
Olivier Lambert
5a4d821c98 fix display issue for small devices in vm view 2015-05-14 14:24:14 +02:00
Olivier Lambert
cd0305c71d better UI display for small devices 2015-05-14 14:22:17 +02:00
Olivier Lambert
371459ff5e far better fluid display for host view 2015-05-14 14:15:09 +02:00
Fabrice Marsaud
5a8a7c6a0f A first delivery for trial handling 2015-05-14 13:01:27 +02:00
Fabrice Marsaud
69db541300 Starting to handle trial 2015-05-14 13:01:27 +02:00
Olivier Lambert
94949866ee reduce the warning lenght and add a tooltip 2015-05-13 18:41:51 +02:00
Fabrice Marsaud
c22b3e7449 Fix : removed a no mùore existing service provider 2015-05-12 10:22:57 +02:00
Fabrice Marsaud
096dde922b Minor fixes 2015-05-12 10:08:30 +02:00
Fabrice Marsaud
00f26d854f updater and register services merged 2015-05-12 10:08:30 +02:00
Fabrice Marsaud
6c8ff1717e bug fix 2015-05-12 10:08:30 +02:00
Fabrice Marsaud
c7288c1d8a No https for update/register 2015-05-12 10:08:30 +02:00
Fabrice Marsaud
2e52fe369d bugfix 2015-05-12 10:08:30 +02:00
Fabrice Marsaud
df3430add5 updating url fix 2015-05-12 10:08:30 +02:00
Fabrice Marsaud
7af848c94b Minor fix 2015-05-12 10:08:30 +02:00
Fabrice Marsaud
f57c462b5f Fix + enhancement 2015-05-12 10:08:30 +02:00
Fabrice Marsaud
6018035908 Update feature fully adapted to xoa-updater and xoa-register 2015-05-12 10:08:30 +02:00
Fabrice Marsaud
c8b0351786 Nice update/register panels 2015-05-12 10:08:30 +02:00
Fabrice Marsaud
26cc812f82 a bit of UI tuning 2015-05-12 10:08:30 +02:00
Olivier Lambert
67f98950e6 ui fixes 2015-05-12 10:08:30 +02:00
Fabrice Marsaud
8ba8537b9f First proto delivery for updating from xo-web 2015-05-12 10:08:30 +02:00
Fabrice Marsaud
a7f05a68e0 UI sketch for updating 2015-05-12 10:08:30 +02:00
Olivier Lambert
a0db228154 better docker UI and border for stats 2015-05-08 19:10:19 +02:00
Olivier Lambert
eec6fabe58 add UI info for Docker enabled VMs 2015-05-08 16:55:02 +02:00
Olivier Lambert
501c038f97 reflect changes done in server 2015-05-08 16:12:42 +02:00
Olivier Lambert
e0a0f717fd add container stuff 2015-05-08 15:37:52 +02:00
Olivier Lambert
4dd3f7487c Update README.md 2015-05-07 19:41:53 +02:00
Olivier Lambert
99d1cddaa5 fix #245 2015-05-07 19:17:17 +02:00
Olivier Lambert
2158e1a47e Merge branch 'patch' into next-release 2015-05-06 18:44:22 +02:00
Olivier Lambert
059238759a better patch view 2015-05-06 18:21:45 +02:00
Olivier Lambert
8d3ea7548a add a TODO 2015-05-06 16:05:46 +02:00
Olivier Lambert
221b411b63 patch management merged 2015-05-06 16:03:26 +02:00
Olivier Lambert
e2c173990f work in progress with pool patches 2015-05-05 19:41:09 +02:00
Olivier Lambert
a609a8d5d6 patch system in the host view is OK 2015-05-05 18:32:08 +02:00
Olivier Lambert
c5c2afddc2 UI fixes 2015-05-02 19:22:13 +02:00
Olivier Lambert
409d87f210 start to work on update and patching 2015-05-02 18:15:44 +02:00
Julien Fontanet
78baa4b01e Better/simpler styling of the Settings using flexbox. 2015-04-21 12:12:04 +02:00
Julien Fontanet
b41c66c4af 3.9.1 2015-04-21 11:09:27 +02:00
Julien Fontanet
d6b7388c2e Merge branch 'next-release' 2015-04-21 11:09:20 +02:00
Julien Fontanet
b0dc681d48 Hide link to not implemented Groups page. 2015-04-21 11:04:43 +02:00
Julien Fontanet
c20b460f2d Fix link in ChangeLog. 2015-04-21 11:04:19 +02:00
Julien Fontanet
cd0a46fd7f ChangeLog 2015-04-21 10:53:56 +02:00
Julien Fontanet
0a9c868678 ngAnnotate is broken due to Babel. 2015-04-20 20:17:33 +02:00
Olivier Lambert
027d1e8cb1 notify when connect/disconnect a server 2015-04-20 19:59:11 +02:00
Olivier Lambert
a5c9880318 do not fetch stat if the VM has current operations 2015-04-20 19:59:11 +02:00
Julien Fontanet
e09988e1d7 3.9.0 2015-04-20 17:38:44 +02:00
Julien Fontanet
21a1629dfa Merge branch 'next-release' 2015-04-20 17:38:28 +02:00
Julien Fontanet
7644c626c8 ChangeLog 2015-04-20 17:25:32 +02:00
Julien Fontanet
2c91b73016 Update deps. 2015-04-20 16:21:39 +02:00
Olivier Lambert
ae54b8eba8 Remove useless notifications for VM import 2015-04-19 17:20:48 +02:00
Fabrice Marsaud
47bcaa8659 stat graph tooltip radius fixed 2015-04-15 18:46:16 +02:00
Olivier Lambert
73dc6fb050 fix URL for source versions 2015-04-15 16:44:33 +02:00
Olivier Lambert
a4ced510c6 refresh 10secs only and login page with icons 2015-04-15 13:36:09 +02:00
Olivier Lambert
40d9fe873c UI fixes for settings view 2015-04-14 23:36:44 +02:00
Olivier Lambert
d06fe4a7c7 settings view 2015-04-14 18:31:01 +02:00
Olivier Lambert
52d71e5c4a refactoring of Settings view. WIP 2015-04-14 17:27:28 +02:00
Olivier Lambert
d86c2b64f2 UI fixes in settings page 2015-04-14 00:04:03 +02:00
Olivier Lambert
84449f4e2e UI reworks for setting page. Work in progress 2015-04-13 19:00:43 +02:00
Julien Fontanet
835dbac81a Explicit the license. 2015-04-10 12:06:46 +02:00
Olivier Lambert
4d190b91a5 minor UI fix 2015-04-08 20:34:39 +02:00
Olivier Lambert
c4cddca84a UI fixes for graphs and various other minor fixes 2015-04-08 19:38:57 +02:00
Olivier Lambert
bfe9598ce4 ui fixes 2015-04-08 14:38:58 +02:00
Fabrice Marsaud
3421222c2f Fixed stat tooltip problems 2015-04-08 13:07:43 +02:00
Fabrice Marsaud
3ca95feb7c Stats ok when VM starts/stops/suspends/resumes/reboots 2015-04-08 13:07:42 +02:00
Olivier Lambert
903bc364ba just add xvd before disk letter to have the full disk name 2015-04-08 13:07:42 +02:00
Fabrice Marsaud
16fd498c29 stat icons for fun 2015-04-08 13:07:42 +02:00
Fabrice Marsaud
ca45776739 Trying to handle VM stop. Not satisfiying yet 2015-04-08 13:07:42 +02:00
Fabrice Marsaud
c849f06ce8 Stats are fetched without delay, with a UI message 2015-04-08 13:07:42 +02:00
Fabrice Marsaud
77aa74e9c3 better vm stat refresh implementation 2015-04-08 13:07:42 +02:00
Fabrice Marsaud
8dc0a92c52 fibonacci retries if VM stats fetch fails 2015-04-08 13:07:05 +02:00
Fabrice Marsaud
30b7cfb53d VM stats are not fetched if VM is not running 2015-04-08 13:06:15 +02:00
Olivier Lambert
0caeb71603 minor UI fixes 2015-04-08 13:05:31 +02:00
Fabrice Marsaud
a40ad2eab9 Vm stat graphs can be clicked for closer focus 2015-04-08 13:05:31 +02:00
Fabrice Marsaud
1fba0cd31f Readable time on stat tooltips 2015-04-08 13:04:18 +02:00
Fabrice Marsaud
e6ce672bc5 First delivery for #228 stat graphs 2015-04-08 13:04:18 +02:00
Olivier Lambert
1418f0b697 allow mulitples and variables series 2015-04-08 13:04:18 +02:00
Olivier Lambert
81aa972108 reorg code 2015-04-08 13:04:18 +02:00
Olivier Lambert
c36ac49cca major improvements 2015-04-08 13:04:18 +02:00
Olivier Lambert
5bf069f307 start to work on RRDs 2015-04-08 13:01:54 +02:00
Olivier Lambert
1837d3d291 fixes #225 2015-04-01 21:59:31 +02:00
Olivier Lambert
8fe3a788d7 add auto power. Fixes #224 2015-04-01 15:40:46 +02:00
Olivier Lambert
c622f9a295 add local LVM SR creation. Fixes #219 2015-03-30 12:02:50 +02:00
Olivier Lambert
ba72a48e02 add display of Vgpus and Gpus. Need feedback from Gpus users 2015-03-29 14:25:31 +02:00
Olivier Lambert
b1bd74c5b7 initial work on PCI attach 2015-03-29 01:49:02 +01:00
Julien Fontanet
8f3a5780a9 3.8.1 2015-03-27 15:56:37 +01:00
Julien Fontanet
177143b57c Merge branch 'next-release' 2015-03-27 15:56:31 +01:00
Julien Fontanet
36dcfc1517 Missing dep. 2015-03-27 15:56:04 +01:00
Julien Fontanet
50d8cb0b5d Do not use gulp-plumber in browserify in production.
This can cause problem as `npm run build` no longer return a non-zero
exit code if there was a problem.
2015-03-27 15:53:31 +01:00
Julien Fontanet
c7845c4009 3.8.0 2015-03-27 15:16:04 +01:00
Julien Fontanet
4ab23e4303 Merge branch 'next-release' 2015-03-27 15:15:57 +01:00
Julien Fontanet
2b42a44bc4 Typo. 2015-03-27 15:10:42 +01:00
Julien Fontanet
225d7501d3 Link ChangeLog to blog post. 2015-03-27 15:10:42 +01:00
Olivier Lambert
ab7af6a254 fix remove all logs in Pool view 2015-03-27 15:01:09 +01:00
Olivier Lambert
968f1027a7 hide VM delete button when the VM is not halted 2015-03-27 15:01:09 +01:00
Julien Fontanet
46258d5481 ChangeLog 2015-03-27 14:59:22 +01:00
Fabrice Marsaud
250eff22b5 Interface creation GUI Fix 2015-03-26 13:38:57 +01:00
Fabrice Marsaud
ec73dca5c4 Order VM/interfaces by # 2015-03-26 13:33:04 +01:00
Fabrice Marsaud
e66e11d9e8 Minor design touch on VM/Interface create 2015-03-26 12:53:22 +01:00
Fabrice Marsaud
61d4f740b0 Network creation for VMs #216. A connection bug remains 2015-03-26 12:45:43 +01:00
Olivier Lambert
f93d756190 small UI change in VM view 2015-03-25 23:27:35 +01:00
Olivier Lambert
e93a9ba7ba add destroy task 2015-03-25 17:07:24 +01:00
Olivier Lambert
5e90912b0c remove useless label 2015-03-25 15:50:57 +01:00
Fabrice Marsaud
64a0e2d951 GUI tweaks on VM View 2015-03-25 15:09:36 +01:00
Fabrice Marsaud
76e41067da VM Disk managment ok for #82 #215 2015-03-25 14:09:38 +01:00
Fabrice Marsaud
906a9bda11 CD drive for VMs, attachDisk enhanced 2015-03-25 14:09:38 +01:00
Fabrice Marsaud
340ab06825 Stop using deprecated VDI.$VBD for VDI.$VBDs 2015-03-25 14:09:38 +01:00
Fabrice Marsaud
2fd0a76142 Attach disk is OK 2015-03-25 14:08:41 +01:00
Fabrice Marsaud
e457d95b7e vm.attchDisk first implementation. Various problems lingering 2015-03-25 14:08:40 +01:00
Julien Fontanet
274f401d92 Update deps. 2015-03-19 14:21:45 +01:00
Fabrice Marsaud
e60f009ea2 Human readable tooltips for charts 2015-03-19 10:37:43 +01:00
Olivier Lambert
cc2b660dfc bigger numbers for stats in pool view 2015-03-18 23:27:44 +01:00
Olivier Lambert
b3e264aa33 graph on SR page 2015-03-18 23:23:40 +01:00
Olivier Lambert
857bd4d932 add vCPUs/CPUs graph 2015-03-18 23:14:48 +01:00
Fabrice Marsaud
f784162da8 Tiny chart try integrated in the host view 2015-03-18 20:45:33 +01:00
Julien Fontanet
6030de647e Removes paths from the build. 2015-03-12 18:19:16 +01:00
Julien Fontanet
0b09d672d2 Close VM console during reboot (fix #208). 2015-03-10 12:42:28 +01:00
Julien Fontanet
d045b1af9b Update to latest novnc-node. (fix #205) 2015-03-10 10:19:07 +01:00
Julien Fontanet
b3a2e21bc8 Always copy args to avoid race conditions. (fix #206) 2015-03-09 13:30:50 +01:00
Julien Fontanet
328ade2f0a 3.7.0 2015-03-07 18:19:42 +01:00
Julien Fontanet
1dd1a25b31 Merge branch 'next-release' 2015-03-07 18:18:43 +01:00
Julien Fontanet
6458c0dde9 More ChangeLog. 2015-03-06 17:22:25 +01:00
Julien Fontanet
4bdcefca8f Fix issues in VMs deletion. 2015-03-06 17:22:15 +01:00
Julien Fontanet
62399f78b9 ChangeLog. 2015-03-06 16:32:13 +01:00
Fabrice Marsaud
26e364a5d6 Issue #179 fixed anticipated submit form protection 2015-03-06 16:29:02 +01:00
Olivier Lambert
de011857be minor UI fix 2015-03-06 14:06:38 +01:00
Julien Fontanet
8bc9880951 Do not show admins in ACLs view. 2015-03-06 13:58:58 +01:00
Olivier Lambert
a51cd95c60 simplify ACL view 2015-03-06 13:43:16 +01:00
Olivier Lambert
013ae0e254 first work on Changelog 2015-03-06 12:12:03 +01:00
Olivier Lambert
90acba21ab better error message and removing link to pool sr creation which is not ready yet 2015-03-05 19:15:27 +01:00
Olivier Lambert
130024c18d minor UI fixes in SR add view 2015-03-05 18:45:00 +01:00
Julien Fontanet
02f7e77b48 get() & byTypes only available from xoApi. 2015-03-05 18:13:03 +01:00
Julien Fontanet
a97cd91950 Remove unused permissions. 2015-03-05 17:55:31 +01:00
Julien Fontanet
fd543ca614 Remove an uncessary property declaration. 2015-03-05 17:55:31 +01:00
Julien Fontanet
6330eac5f8 xoApi.get() can optionally check the type. 2015-03-05 17:55:31 +01:00
Fabrice Marsaud
39bc6bff2f sr.reattachIso Integration for Issue #179 2015-03-05 17:22:27 +01:00
Fabrice Marsaud
5012adf8f9 newSR template enhancement 2015-03-05 15:29:30 +01:00
Fabrice Marsaud
a27f91d8f2 lodash.indexof 2015-03-05 15:24:27 +01:00
Fabrice Marsaud
39c206be91 SR Creation code enhanced 2015-03-05 15:01:10 +01:00
Fabrice Marsaud
d19d297ea4 Reattaching feature for Issue #179 2015-03-05 12:06:14 +01:00
Julien Fontanet
cfc8cbd08b Update to latest xo-lib which fixes many issues. 2015-03-04 18:27:18 +01:00
Fabrice Marsaud
32cd323b54 #179 progress 2015-03-04 18:19:50 +01:00
Fabrice Marsaud
e0af48955a Design touch for Issue #179 2015-03-04 16:31:03 +01:00
Fabrice Marsaud
08a334812b Issue #179 Iso SRs 2015-03-04 16:19:11 +01:00
Olivier Lambert
56fc278c73 fix bad icon 2015-03-04 15:43:59 +01:00
Fabrice Marsaud
d52f168e09 NFS & iSCSI for Issue #179 2015-03-04 15:42:39 +01:00
Julien Fontanet
3c9026ce83 Remove unused log in form in navbar. 2015-03-04 14:39:04 +01:00
Julien Fontanet
67577d8ec5 Workaround floatdrop/gulp-watch#141. 2015-03-04 14:06:49 +01:00
Julien Fontanet
edc5fd9500 Update deps. 2015-03-04 14:06:48 +01:00
Olivier Lambert
8af0272588 new logo included 2015-03-04 14:06:18 +01:00
Olivier Lambert
c6ec04bcf6 SR management operationnal 2015-03-04 13:49:09 +01:00
Olivier Lambert
7ef41adc26 fix minor race condition 2015-03-03 18:22:58 +01:00
Olivier Lambert
a161b63663 VM icon color when pending action 2015-03-03 18:12:10 +01:00
Julien Fontanet
5b65a31d24 Fix race condition on page load. 2015-03-03 17:40:18 +01:00
Julien Fontanet
6f4115d160 Users can only view tasks on hosts they have access too. 2015-03-03 17:39:17 +01:00
Julien Fontanet
b5de07de9d Ensure a clean production build. 2015-03-03 16:16:32 +01:00
Julien Fontanet
5bec09cfdc Remove incorrect npm test command. 2015-03-03 16:16:08 +01:00
Julien Fontanet
c3a8a89c61 Remove unused gulp tasks. 2015-03-03 16:14:14 +01:00
Julien Fontanet
e1a0988440 There are not tests currently. 2015-03-03 16:14:14 +01:00
Olivier Lambert
115dfb58f6 initial work on new SR 2015-03-02 10:33:59 +01:00
Olivier Lambert
8e689e9e9e do not display the pool menu for a pool without name, i.e single host pool 2015-03-02 10:27:51 +01:00
Olivier Lambert
ff0e79536a minor fix for VM creation page 2015-03-02 10:26:16 +01:00
Olivier Lambert
34c53f5ba4 fix panel for welcome message and add a button for new server 2015-03-02 10:25:17 +01:00
Julien Fontanet
15c5fc7e4b angular 1.3.14 packages have proper exports 2015-02-27 11:34:37 +01:00
Olivier Lambert
fe7c8679b9 fix new panel style for VM creation 2015-02-26 19:37:00 +01:00
Julien Fontanet
75840445c5 Remove dead code. 2015-02-24 11:34:57 +01:00
Julien Fontanet
2aa7448f76 Improve xoApi.get(). 2015-02-24 11:34:47 +01:00
Julien Fontanet
0f7a0f77f2 Filter out unauthorized objects in list view. 2015-02-24 09:46:30 +01:00
Julien Fontanet
0771ffeb71 Remove a console.log 2015-02-24 09:44:27 +01:00
Julien Fontanet
f410403107 Pages not allowed by ACLs cannot be opened. 2015-02-23 18:39:11 +01:00
Julien Fontanet
74e9c86b61 Fix novnc-node commit to avoid issue with last release. 2015-02-23 17:56:43 +01:00
Olivier Lambert
712ea98e41 fix UI in console view 2015-02-23 17:22:28 +01:00
Olivier Lambert
849f5bcd0e more space after logout button in the navbar 2015-02-23 17:03:18 +01:00
Olivier Lambert
22a36dc6a8 minor style fix on ACL page 2015-02-23 16:59:06 +01:00
Olivier Lambert
f02c19f637 panel for login 2015-02-23 16:49:30 +01:00
Julien Fontanet
cafc82c3a5 Remove a console.log. 2015-02-23 16:43:39 +01:00
Julien Fontanet
9bc2f4100f Fix master selector on tree view. 2015-02-23 16:43:39 +01:00
Julien Fontanet
c9735c034f Restore notifications on sign in errors. 2015-02-23 16:43:39 +01:00
Julien Fontanet
a455af71af Use a panel for admin/acls heading. 2015-02-23 16:43:39 +01:00
Olivier Lambert
c5a90545c8 panelization almost finished 2015-02-23 16:33:06 +01:00
Olivier Lambert
7da7904093 fix css bugs 2015-02-23 15:32:16 +01:00
Olivier Lambert
bd7653f682 remove useless style 2015-02-23 15:15:48 +01:00
Olivier Lambert
30335a1ce9 panelization continue 2015-02-23 15:10:50 +01:00
Olivier Lambert
c6f1250abc panelization of object views 2015-02-23 15:05:38 +01:00
Julien Fontanet
4c495f3828 Use variable directly instead of getters. 2015-02-23 14:49:24 +01:00
Julien Fontanet
c31fbc723d Move ACLs title. 2015-02-23 12:49:34 +01:00
Julien Fontanet
60e11055d2 Update xo-lib to 0.6. 2015-02-23 12:47:27 +01:00
Julien Fontanet
fbbc765460 Task tooltip shown where mouseover anywhere on the task. 2015-02-23 12:47:27 +01:00
Olivier Lambert
4e759eaa92 minor UI fixes 2015-02-20 18:07:13 +01:00
Julien Fontanet
60e6dfb8e5 Work around xo-lib issue. 2015-02-20 17:33:37 +01:00
Julien Fontanet
cf33726652 Minor changes. 2015-02-20 17:33:24 +01:00
Julien Fontanet
eb87c7c591 Improve ACLs page. 2015-02-19 18:24:38 +01:00
Julien Fontanet
902d137d8e Fix page rename. 2015-02-19 18:10:46 +01:00
Julien Fontanet
0a04d43514 Expose all objects. 2015-02-19 17:57:26 +01:00
Julien Fontanet
07e0a68249 Minor changes. 2015-02-19 17:57:02 +01:00
Julien Fontanet
5ede3e18fb Expose current ACLs. 2015-02-19 17:56:52 +01:00
Julien Fontanet
c1e8e0c84c Remove tasks from the list view. 2015-02-19 17:56:32 +01:00
Julien Fontanet
dbb980cd45 Initial ACLs view. 2015-02-19 17:56:18 +01:00
Julien Fontanet
aab7c5c398 Enable strict deps injection. 2015-02-19 14:58:44 +01:00
Julien Fontanet
8916b5db54 Update ui-select. 2015-02-19 14:44:28 +01:00
Julien Fontanet
ed2ce4b999 6to5 has been renamed Babel. 2015-02-19 13:03:51 +01:00
Julien Fontanet
0cfbc31241 Do not build on install, only publish. 2015-02-17 15:06:59 +01:00
Julien Fontanet
1368b747be Update to latest xo-lib. 2015-02-11 15:02:20 +01:00
Julien Fontanet
92d44f4061 Remove the token if incorrectly encoded (fix #192). 2015-02-11 12:01:32 +01:00
Julien Fontanet
f280717cb3 Avoid flicker when sorting unnamed pools. 2015-02-11 10:59:26 +01:00
Olivier Lambert
fdb3ff0afd display host hardware manufacturer and model 2015-02-10 23:33:48 +01:00
Julien Fontanet
66dde2fb36 Minor fix. 2015-02-10 19:12:59 +01:00
Julien Fontanet
7ffcd3282b Remove deprecated entry. 2015-02-10 19:06:58 +01:00
Julien Fontanet
f0a3fb4cbb Fix tasks list in navbar. 2015-02-10 18:27:06 +01:00
Julien Fontanet
416417dfc6 New xoApi service buid on top of xo-lib. 2015-02-10 18:23:47 +01:00
Olivier Lambert
acc4130347 running task in the navbar 2015-02-06 13:04:20 +01:00
Olivier Lambert
69cf3c99f4 better icons used and more sass usage 2015-02-05 16:39:17 +01:00
Olivier Lambert
3c11444302 add model for cancelling a task 2015-02-05 13:41:10 +01:00
Olivier Lambert
dd32ded29b add the task cancel action 2015-02-05 12:16:48 +01:00
Olivier Lambert
effa95fb31 better animation for pending tasks 2015-02-05 12:12:21 +01:00
Olivier Lambert
dc46475e4e display nicelly a task in the host view 2015-02-05 12:05:28 +01:00
Olivier Lambert
8b81de1141 switch RAM usage of host from numbers to a progress bar 2015-02-05 00:37:33 +01:00
Olivier Lambert
cf0fcad340 progress bar on task is in green for the sake of clarity 2015-02-05 00:37:12 +01:00
Olivier Lambert
a769906330 putting tasks in first 2015-02-05 00:05:40 +01:00
Olivier Lambert
d49a935598 another whitespace missing 2015-02-05 00:04:10 +01:00
Olivier Lambert
522d02d529 fix missing whitespaces during html to jade conversion 2015-02-04 23:55:25 +01:00
Olivier Lambert
7246e48428 filter on active tasks 2015-02-04 23:52:43 +01:00
Olivier Lambert
3a847c9115 add tasks display in list view and their progress in live. TODO: filter non success or pending tasks 2015-02-04 23:30:01 +01:00
Julien Fontanet
db3006acaf Use novnc-node instead of no-vnc. 2015-02-04 17:44:29 +01:00
Julien Fontanet
03a7de8fe7 Minor refactoring. 2015-02-04 16:35:07 +01:00
Julien Fontanet
67e0c5af02 Various small changes. 2015-02-04 14:14:53 +01:00
Julien Fontanet
6658077bda noVnc directive in its own module. 2015-02-04 12:55:47 +01:00
Julien Fontanet
929fce6adb Console: HTTPS support. 2015-02-04 10:21:14 +01:00
Julien Fontanet
cd1fc7308e Consoles: fallback to standard ports if undefined. 2015-02-04 09:58:21 +01:00
Julien Fontanet
c0a5e9fdcc Use the new console proxy. 2015-02-03 17:31:15 +01:00
Julien Fontanet
a3e6a580d9 Fix incorrect redirection after log in. 2015-02-03 14:46:30 +01:00
Julien Fontanet
5d01c9f56a Minor fixes. 2015-02-02 20:07:21 +01:00
Julien Fontanet
9cf291f5a3 More CoffeeScript to ES6. 2015-02-01 22:35:38 +01:00
Julien Fontanet
d8738ae581 Navbar fix (related to the list view. 2015-02-01 15:00:42 +01:00
Julien Fontanet
4a4effe5cf Fix user display in navbar. 2015-02-01 12:51:31 +01:00
Julien Fontanet
a2a2f5541f Minor fix. 2015-02-01 12:47:20 +01:00
Julien Fontanet
499e3c3456 Move ./directives and ./filters to xo-directives and xo-filters. 2015-02-01 11:33:42 +01:00
Julien Fontanet
b66187a24f Main module: CoffeeScript → ES6. 2015-02-01 11:32:26 +01:00
Julien Fontanet
f2615e93b7 Fix weird behavior when not logged in. 2015-01-31 22:43:17 +01:00
Julien Fontanet
c722dc9328 Do not load unused view (new SR). 2015-01-31 22:35:27 +01:00
Julien Fontanet
27a45d6b8c More CoffeeScript → ES6. 2015-01-31 22:34:54 +01:00
Julien Fontanet
46849590c5 Remove completely browserify-shim. 2015-01-31 18:54:01 +01:00
Julien Fontanet
c9e7e4af8f Do not use browserify-shim for angular-animate and angular-cookies. 2015-01-31 18:45:37 +01:00
Julien Fontanet
28887d68c2 delete-vms: CoffeeScript to ES6 2015-01-31 18:32:36 +01:00
Julien Fontanet
3322a90320 Move ./services to xo-services. 2015-01-31 18:30:06 +01:00
Julien Fontanet
3d679d3810 Do not use browserify-shim for angular-notify-toaster. 2015-01-31 18:29:19 +01:00
Julien Fontanet
b52269ab34 Missing deps. 2015-01-30 14:03:32 +01:00
Julien Fontanet
8632cc2ff0 More deps updates. 2015-01-30 13:34:30 +01:00
Julien Fontanet
f42faf8e97 angular-ui-select 2015-01-30 13:31:34 +01:00
Julien Fontanet
567de44508 More (home → index) fixes. 2015-01-30 13:31:06 +01:00
Julien Fontanet
a6d2505211 Fix “tree” state URL. 2015-01-30 10:56:51 +01:00
Julien Fontanet
e3d641b999 Initial admin zone. 2015-01-30 10:55:55 +01:00
Julien Fontanet
d0f88db388 Default state depends from user.permission (tree or list). 2015-01-30 10:54:50 +01:00
Julien Fontanet
14de6b0075 Module home renamed to tree. 2015-01-30 10:53:53 +01:00
Julien Fontanet
0092edc16f Login: Coffee → JS. 2015-01-30 10:38:48 +01:00
Julien Fontanet
04de57cf9f Bootstrap SASS via npm. 2015-01-29 17:31:50 +01:00
Julien Fontanet
d15a46bd15 Various fixes concerning FontAwesome and CSS. 2015-01-29 17:05:59 +01:00
Julien Fontanet
2e992dca67 Downgrade gulp-watch due to a bug. 2015-01-29 16:44:01 +01:00
Julien Fontanet
57dbbaad78 Install UiBootstrap & FontAwesome via npm. 2015-01-29 14:55:15 +01:00
Julien Fontanet
3ec6cd7fee Dont setup livereload server if not used. 2015-01-29 14:54:09 +01:00
Julien Fontanet
049e5ac6ac Enable ES6. 2015-01-27 13:08:25 +01:00
Julien Fontanet
2ead2465c8 Update deps. 2015-01-27 13:08:04 +01:00
Olivier Lambert
e3ce6c05bb remove double entry 2015-01-15 13:59:31 +01:00
Olivier Lambert
730c9fcec8 fix issue #187 2015-01-15 13:55:00 +01:00
Olivier Lambert
85925c027a add bulk action for suspend/resume on issue #186 2015-01-12 14:02:57 +01:00
Olivier Lambert
9256e5c3ea manage VM suspend/resume 2015-01-12 13:59:48 +01:00
Julien Fontanet
44f4c3a22d Disable debug data to improve performance. 2015-01-09 18:39:12 +01:00
Julien Fontanet
fa390f4374 Should fix console on IE. 2015-01-08 13:19:47 +01:00
Olivier Lambert
a282acd137 better feedback and actions for hosts consecutive to issues #181 #182 2015-01-08 11:54:34 +01:00
Olivier Lambert
8bd167033f disable host for resolving issue #182 2015-01-08 11:39:37 +01:00
Olivier Lambert
4afcf4900a fix issue #181 about enabling host 2015-01-08 10:35:24 +01:00
Olivier Lambert
4a8c47dffb add available space for live VDI migration like in issue #180 requested 2015-01-07 20:04:38 +01:00
Olivier Lambert
fada93bae3 show available space, fix #180 2015-01-07 16:22:25 +01:00
Julien Fontanet
5d6ae5ce5e Fix SR change detection. 2015-01-05 14:28:03 +01:00
Julien Fontanet
db42fcc583 Fix disk migration in VM page (fix #177). 2015-01-05 12:55:42 +01:00
Olivier Lambert
e904714202 start to address issue https://github.com/vatesfr/xo-web/issues/177 but need to finish the job in the UI 2015-01-02 16:57:16 +01:00
Olivier Lambert
0ca59704f9 fix issue https://github.com/vatesfr/xo-web/issues/178 2015-01-02 16:55:10 +01:00
Olivier Lambert
c7865613e1 Fix typo 2014-12-01 12:29:13 +01:00
Julien Fontanet
eb4dfd9dde Update CHANGELOG.md 2014-11-28 20:06:31 +01:00
Julien Fontanet
28eb595a56 3.6.0 2014-11-28 17:23:53 +01:00
Julien Fontanet
037091f155 Merge branch 'next-release' 2014-11-28 17:21:29 +01:00
Julien Fontanet
eecffb1782 ChangeLog 3.6 2014-11-28 17:18:23 +01:00
Julien Fontanet
912f5294d6 Adds missing noVNC dep. 2014-11-28 16:36:32 +01:00
Julien Fontanet
f6e410e461 Scroll view to top on page change. 2014-11-28 16:24:37 +01:00
Olivier Lambert
ddddebfe27 comment non working feature 2014-11-25 18:28:46 +01:00
Olivier Lambert
57930e2c90 remove useless editable panel 2014-11-24 23:29:55 +01:00
Olivier Lambert
81238c78fe indentation fix 2014-11-24 23:27:20 +01:00
Olivier Lambert
7e511313a3 remove interface edit, see issue #84 2014-11-24 23:23:35 +01:00
Olivier Lambert
56f4f1ca03 VDI name/description edition are now working in the SR view 2014-11-24 23:13:39 +01:00
Olivier Lambert
b25ef4bcc3 start to work on SR page for VDI edit 2014-11-24 22:59:56 +01:00
Julien Fontanet
aaeac9c6eb Minor code cleanup. 2014-11-24 22:33:10 +01:00
Julien Fontanet
8bccb82f5d Basic edition of VM disks. 2014-11-24 22:22:53 +01:00
Olivier Lambert
b7437d6a74 add PIF connect/disconnect in host view 2014-11-24 21:01:29 +01:00
Olivier Lambert
fbd2f519e6 VIF connect/disconnect/forget management 2014-11-24 20:42:35 +01:00
Olivier Lambert
e1b3e67b7a pdb management in host view 2014-11-24 19:36:00 +01:00
Olivier Lambert
dd9374fd50 better UI for handling disk management in SR view 2014-11-24 19:07:35 +01:00
Olivier Lambert
c1f3b53ed7 add reconnect all host in SR view 2014-11-24 18:44:06 +01:00
Olivier Lambert
627b11abde pbd plug and unplug 2014-11-24 18:27:43 +01:00
Julien Fontanet
d68caf85d0 Remove unused data-toggle attrs. 2014-11-24 18:09:39 +01:00
Julien Fontanet
79857a0ed4 Fix dropdowns due to UI Bootstrap breaking change. 2014-11-24 18:05:13 +01:00
Julien Fontanet
1688adbcbe Minor changes. 2014-11-24 17:56:02 +01:00
Julien Fontanet
096e722a74 UI Bootstrap 0.12 (fix #163). 2014-11-24 15:40:09 +01:00
Olivier Lambert
9f361e441c add patch list in host view. Fix #156 2014-11-24 13:54:31 +01:00
Olivier Lambert
47a5d39354 fix typo copy/past in host and pool view for logs 2014-11-24 13:53:54 +01:00
Olivier Lambert
ec92b79a3d better UI in various views 2014-11-21 16:12:46 +01:00
Olivier Lambert
a55b6055c2 fix wrong icon usage 2014-11-21 14:29:50 +01:00
Olivier Lambert
de8ad9e08a better UI for actions on disks and interfaces 2014-11-21 14:28:21 +01:00
Olivier Lambert
9bd662d6d1 better UI in VM view 2014-11-21 12:42:23 +01:00
Olivier Lambert
c855fb8c6a add delete all logs in Vm view 2014-11-21 12:42:12 +01:00
Olivier Lambert
07d5c85886 fix issue #167 2014-11-21 11:40:19 +01:00
Olivier Lambert
c9424f2f54 only display clone button if the VM is halted 2014-11-21 11:22:44 +01:00
Olivier Lambert
cdc0887895 get feedback when an action is started with notifications 2014-11-20 17:05:17 +01:00
Olivier Lambert
6b15e866f8 do not display incompatible button with the current vm power state on console View 2014-11-20 16:43:34 +01:00
Olivier Lambert
5192358dce do not display incompatible button with the current vm power state on the VM view 2014-11-20 16:40:57 +01:00
Olivier Lambert
5758e1c550 remove useless message 2014-11-20 15:21:08 +01:00
Olivier Lambert
2b5857affe add vbd connect, disconnect and delete 2014-11-19 20:28:44 +01:00
Olivier Lambert
556fadc9f5 WIP: start to work on UI for managing disks 2014-11-19 20:01:13 +01:00
Olivier Lambert
1d04d33981 remove ng init when possible 2014-11-19 20:00:43 +01:00
Olivier Lambert
52b81ccb16 remove ng init call to avoid display problems 2014-11-19 15:49:38 +01:00
Olivier Lambert
58e841e5c7 fix issue #164 2014-11-19 15:40:29 +01:00
Olivier Lambert
30beb81d9a fix SR view with linked VBD 2014-11-14 18:28:07 +01:00
Olivier Lambert
8da6ac7cfb do not display VM address field if there is none 2014-11-14 12:47:58 +01:00
Julien Fontanet
4b7effe3ee Drop IE < 9 support. 2014-11-14 09:50:11 +01:00
Julien Fontanet
ea1ca34644 Update deps + Less Bower packages. 2014-11-14 09:50:11 +01:00
Julien Fontanet
b1dbb47890 Work around UI Router bug. 2014-11-12 13:29:36 +01:00
Julien Fontanet
80d9cd8fa2 Fix Angular version conflict in Bower. 2014-11-12 13:29:34 +01:00
Olivier Lambert
b50ed96f2e change ha name and fix a ng repeat bug 2014-11-10 17:29:34 +01:00
Olivier Lambert
32f45e9ab7 add HA checkbox and display it if the pool has HA also activated 2014-11-10 17:19:00 +01:00
Olivier Lambert
2b2e07e767 display if HA is enabled on a VM 2014-11-10 16:31:36 +01:00
Olivier Lambert
bdb40f801e display on which pool the VM is running if it has a name 2014-11-10 16:31:11 +01:00
Olivier Lambert
644a54d6fe fix identation bug causing modal appearing without any reason 2014-11-08 14:11:28 +01:00
Julien Fontanet
28bbe17822 Angular 1.3 jqLite does not provide .get(). 2014-10-25 18:21:20 +02:00
Julien Fontanet
79344c2793 Bower bug again. 2014-10-20 15:46:46 +02:00
Julien Fontanet
da6c18e45b Update deps. 2014-10-20 15:08:46 +02:00
Olivier Lambert
f0de0514bf display pseudo pools for patching them too 2014-10-01 18:08:27 +02:00
Olivier Lambert
c48429888e use the word create for VM in place of Add 2014-10-01 16:35:30 +02:00
Olivier Lambert
e96486e130 add patch from pool view 2014-10-01 15:45:29 +02:00
Olivier Lambert
3058e37d45 add basic patch upload 2014-10-01 14:00:40 +02:00
Olivier Lambert
169241875b add import on main view and small fixes 2014-09-26 22:33:53 +02:00
Julien Fontanet
cc0f9acccd Initial VM import. 2014-09-26 18:53:15 +02:00
Julien Fontanet
b36c2f1729 Fix access to pool from VM. 2014-09-26 18:52:31 +02:00
Olivier Lambert
ea6df8b653 add export VM in vm view 2014-09-26 17:31:35 +02:00
Olivier Lambert
e720f6449d add explicit alert when start async actions 2014-09-23 19:58:46 +02:00
Julien Fontanet
abb2039312 Minify images for the production build. 2014-09-19 00:06:26 +02:00
Julien Fontanet
7e69c0b7be Sets item id when known. 2014-09-12 20:58:24 +02:00
Julien Fontanet
379c1bbd3d Add a free slot of server/user in the settings page on saving. 2014-09-12 14:14:37 +02:00
Julien Fontanet
6fd41b15dc Require a password for a new user (fix #143). 2014-09-12 13:37:53 +02:00
Julien Fontanet
b240562356 Require user/password for a new server (fix #144). 2014-09-12 13:37:16 +02:00
Julien Fontanet
44fd81773d Only use unbuffered comments in Jade. 2014-09-12 13:35:57 +02:00
Olivier Lambert
6d529a7498 fix method name 2014-09-03 16:36:15 +02:00
Olivier Lambert
c5e7e0b3fb add XenStorage motion in main view 2014-09-03 16:18:22 +02:00
Olivier Lambert
576bfed15f propose Xen Storage Motion if Xen Motion fails 2014-09-03 16:16:00 +02:00
Julien Fontanet
2471b4b155 Update gulpfile.js. 2014-08-31 18:06:11 +02:00
Julien Fontanet
238339373b Work around UI Router bug. 2014-08-31 17:53:03 +02:00
Olivier Lambert
da0218a3ce change link to pricing for the new website 2014-08-28 19:27:26 +02:00
Olivier Lambert
e44072e5a7 remove old code 2014-08-28 14:21:21 +02:00
Julien Fontanet
5d2bbb61f8 Refresh autofilled values on login. 2014-08-28 14:19:52 +02:00
Olivier Lambert
96dcd90005 add start host (wol) 2014-08-27 20:27:49 +02:00
Julien Fontanet
b749122076 Update deps. 2014-08-27 16:01:50 +02:00
Julien Fontanet
ccde455de1 Fix Scss indentation. 2014-08-27 15:19:04 +02:00
Julien Fontanet
a980513cba Bower seem to not handle well + in tags. 2014-08-27 15:09:21 +02:00
Olivier Lambert
7d5cd8b00f better login form 2014-08-23 20:16:09 +02:00
Julien Fontanet
a7c70b0b50 Use Bootstrap 3.2 2014-08-19 15:43:20 +02:00
Julien Fontanet
b5a995656d 3.5.1 2014-08-19 15:19:11 +02:00
Julien Fontanet
8b4c7ff521 Merge branch 'next-release' 2014-08-19 15:18:59 +02:00
Julien Fontanet
c243fbc011 ChangeLog 2014-08-19 15:18:00 +02:00
Olivier Lambert
493e4497c8 add missing space in pool view 2014-08-19 15:17:38 +02:00
Julien Fontanet
84967b717c Fix pool view (fix #139). 2014-08-19 14:02:24 +02:00
Julien Fontanet
21493424fe Minor fixes. 2014-08-19 14:01:21 +02:00
Julien Fontanet
2f73d528f8 Bypass Angular.js exception mangling. 2014-08-19 13:38:24 +02:00
Julien Fontanet
b91f6314bd Remove useless package. 2014-08-16 18:17:34 +02:00
Julien Fontanet
92aefa79e3 Update Bower deps. 2014-08-16 16:32:57 +02:00
Julien Fontanet
411e5dc35a Use node-sass instead of Ruby sass (fix #138). 2014-08-14 18:06:20 +02:00
Julien Fontanet
0159fffab9 Minor fix. 2014-08-14 17:18:45 +02:00
Julien Fontanet
c98c2f93e2 ChangeLog. 2014-08-14 17:12:32 +02:00
Julien Fontanet
1d2cacbb02 3.5.0 2014-08-14 16:29:02 +02:00
Olivier Lambert
2d57958f6f remove doc (moved to XO repo) 2014-08-14 13:02:01 +02:00
Olivier Lambert
88c36aa272 Update README.md 2014-08-14 13:01:13 +02:00
Olivier Lambert
05ae37cb4d Update README.md 2014-08-14 12:23:49 +02:00
Julien Fontanet
96fdaff82a Various updates. 2014-08-14 11:13:35 +02:00
Olivier Lambert
07b64465c6 move version number in the title panel 2014-08-14 00:33:01 +02:00
Julien Fontanet
366e9be4de Show the package version in the about page. 2014-08-13 17:27:10 +02:00
Julien Fontanet
261c9e2240 3.5.0-alpha2 2014-08-13 16:59:27 +02:00
Olivier Lambert
c03973867c fix message in main view when you aren't connected to any host 2014-08-13 15:31:15 +02:00
Olivier Lambert
ca6984f4a5 remove events displayed in console 2014-08-13 15:21:39 +02:00
Julien Fontanet
4fbc2680ba Jade comment. 2014-08-13 14:54:35 +02:00
Julien Fontanet
9a5b0a8104 CSS autoprefixer & CSS minification. 2014-08-13 14:53:44 +02:00
Julien Fontanet
ad998f7a63 Jade comments. 2014-08-13 14:53:30 +02:00
Olivier Lambert
91043e4b52 CSS fixes 2014-08-13 14:06:12 +02:00
Julien Fontanet
8f3bd0145b 3.5.0-alpha1 2014-08-12 15:36:39 +02:00
Julien Fontanet
ace0051147 Update deps and remove gulp-coffeelint.
- Update to latest Browserify & Watchify.
- Use ngAnnotate instead of ngMin.
- Remove gulp-coffeelint which failed to install.
2014-08-12 15:33:47 +02:00
Olivier Lambert
83720c6673 Update README.md 2014-08-12 15:24:27 +02:00
Olivier Lambert
f1ce4de1eb Update README.md
Add XOA details
2014-08-12 15:24:15 +02:00
Olivier Lambert
013b23c918 fix a dropdown menu and add a caret for better UI 2014-08-12 15:22:16 +02:00
Olivier Lambert
d03debf59c Update README.md 2014-08-12 14:32:40 +02:00
Olivier Lambert
00b55d893a Update README.md 2014-08-12 14:31:22 +02:00
Olivier Lambert
085b92df9c Update README.md 2014-08-12 14:27:36 +02:00
Olivier Lambert
8516ff7cb3 add basic actions buttons in console view, fix #121 2014-08-11 17:42:51 +02:00
Julien Fontanet
56d64d8adc Minor fix. 2014-08-11 17:18:15 +02:00
Julien Fontanet
5d68e48312 Minor fix. 2014-08-11 16:53:15 +02:00
Julien Fontanet
8b0be0a8c5 Required radios in VM creation. 2014-08-11 16:50:47 +02:00
Julien Fontanet
d6e4d6d927 Required selects in VM creation. 2014-08-11 16:43:47 +02:00
Julien Fontanet
bbfe60ffd2 All pages are now in modules. 2014-08-11 16:30:57 +02:00
Julien Fontanet
c9cc0b5ce3 Do not use shrinkwrap anymore. 2014-08-11 15:22:06 +02:00
Julien Fontanet
f0bf19f286 Still more modules. 2014-08-11 15:15:34 +02:00
Julien Fontanet
6492e55954 More modules. 2014-08-11 14:49:38 +02:00
Julien Fontanet
c9fd1d5833 Fix dropdown menus. 2014-08-11 14:17:10 +02:00
Julien Fontanet
e8f73cae6c Fix generic modal. 2014-08-11 13:42:43 +02:00
Olivier Lambert
7d436b40d0 use directly host power_state 2014-08-11 13:17:30 +02:00
Olivier Lambert
55cd6d2a74 fix small display glitch on the top of vm list in main view 2014-08-05 12:48:56 +02:00
Olivier Lambert
01a2585edf propperly display state of a host in the main view. Also remove RAM bar when host is disabled or halted 2014-08-05 12:42:13 +02:00
Olivier Lambert
bb329b73ef fix issue #132 2014-07-21 12:28:54 +02:00
Julien Fontanet
9b4008f39c Deps update. 2014-07-15 12:36:12 +02:00
Julien Fontanet
ef52f20993 Update deps. 2014-07-07 13:48:10 +02:00
Olivier Lambert
f2a207e790 add fedora in linux icon: fix #131 2014-06-28 13:45:32 +02:00
Julien Fontanet
40f502492b Initial browserify. 2014-06-19 15:45:28 +02:00
Julien Fontanet
c5f1cf94ac Minor updates. 2014-06-10 15:53:10 +02:00
Julien Fontanet
2e286d4a50 Minor fix. 2014-06-10 12:34:59 +02:00
Julien Fontanet
94a27fa79e Build updates and fix index page. 2014-06-10 12:16:55 +02:00
Julien Fontanet
0adec1dbe2 Update to gulp 3.8 2014-06-10 10:07:47 +02:00
Julien Fontanet
c38c53957d Update deps. 2014-06-09 15:39:57 +02:00
Olivier Lambert
498eb0134e add suse in linux distrib list for propper display of OS icon 2014-06-02 20:01:48 +02:00
Olivier Lambert
d34f9182c2 escape sharp char 2014-05-30 14:59:44 +02:00
Olivier Lambert
324f21cf3d finish jadifying all views 2014-05-30 13:19:13 +02:00
Olivier Lambert
200c0110fd jadify modal windows 2014-05-30 13:10:56 +02:00
Olivier Lambert
5694b0054b jadify main view 2014-05-30 13:05:55 +02:00
Olivier Lambert
8825fdcdaf jadify navbar 2014-05-30 12:29:55 +02:00
Olivier Lambert
7805bc172e jadify add vm view 2014-05-30 12:25:19 +02:00
Olivier Lambert
aa321b4b22 fix missing space in SR and jadify pool view 2014-05-30 12:21:17 +02:00
Olivier Lambert
c74df7abc5 fix missing space between buttons and jadify settings view 2014-05-30 12:15:34 +02:00
Olivier Lambert
c6ffe8978d fix missing spaces and jadify sr view 2014-05-30 12:00:32 +02:00
Olivier Lambert
6761e0df15 jadify about page 2014-05-30 11:55:28 +02:00
Olivier Lambert
cc47225f24 jadify list view 2014-05-30 11:52:50 +02:00
Olivier Lambert
58c47a325f jadify host view 2014-05-30 11:48:34 +02:00
Olivier Lambert
706f7f3b7b converted vm view to a Jade template 2014-05-30 11:12:57 +02:00
Julien Fontanet
4d67f8bd0b Process for releasing a new version. 2014-05-29 16:20:16 +01:00
Julien Fontanet
d5227e00ff Prepare npm package. 2014-05-29 16:06:23 +01:00
Julien Fontanet
62fa1d570c Minor updates. 2014-05-27 20:41:10 +01:00
Olivier Lambert
899b4ab29a restore connected stuff on VM disk 2014-05-27 20:16:08 +02:00
Olivier Lambert
a2801f0b7b remove useless checkbox 2014-05-27 20:13:35 +02:00
Olivier Lambert
84694fedef fix typo 2014-05-27 20:07:05 +02:00
Olivier Lambert
c0005741bd remove req field in VM view 2014-05-27 19:03:59 +02:00
Olivier Lambert
150a341510 add recipes 2014-05-26 20:08:42 +02:00
Olivier Lambert
e486713026 add link to the bottom of each doc part 2014-05-26 10:59:08 +02:00
Olivier Lambert
0201dfa8e3 reduce image 2014-05-26 10:55:18 +02:00
Olivier Lambert
78269a1b7b doc reorg 2014-05-26 10:52:15 +02:00
Olivier Lambert
d1bf60ab17 end doc on VM 2014-05-26 10:33:06 +02:00
Olivier Lambert
6c368dc8cb re re fix broken links 2014-05-25 14:18:34 +02:00
Olivier Lambert
10ac67c1e0 re fix broken links 2014-05-25 14:17:46 +02:00
Olivier Lambert
ba3b38d941 fix broken links 2014-05-25 14:17:07 +02:00
Olivier Lambert
47044d93d3 add ToC 2014-05-25 14:15:33 +02:00
Olivier Lambert
423ac4ea04 fix icon placement 2014-05-25 14:10:03 +02:00
Olivier Lambert
b114b40f88 add snapshot doc 2014-05-25 14:09:05 +02:00
Olivier Lambert
030ce18d65 add template doc 2014-05-25 13:55:36 +02:00
Julien Fontanet
44116b3559 Minor fix. 2014-05-25 13:49:54 +02:00
Olivier Lambert
78332c7bfd add more doc 2014-05-25 13:47:30 +02:00
Julien Fontanet
dd8ac28240 Minor fix. 2014-05-25 13:46:19 +02:00
Julien Fontanet
81818222e5 Fixes. 2014-05-25 13:44:01 +02:00
Olivier Lambert
4a25af03f4 add console icon 2014-05-25 13:32:09 +02:00
Olivier Lambert
6515d73534 add console 2014-05-25 13:27:12 +02:00
Olivier Lambert
006fc9acd3 continue to add doc 2014-05-25 13:21:15 +02:00
Olivier Lambert
1aa878b3a6 fix typo 2014-05-24 17:17:32 +02:00
Olivier Lambert
23dc475905 add doc for usage 2014-05-24 17:16:37 +02:00
Olivier Lambert
a827ab6ffd oops forgot two images 2014-05-24 17:01:50 +02:00
Olivier Lambert
f55784ce6a add action image 2014-05-24 17:00:26 +02:00
Olivier Lambert
f7110ac472 add usage doc 2014-05-24 16:58:47 +02:00
Olivier Lambert
52a94e0f47 finish layout section 2014-05-24 16:47:22 +02:00
Olivier Lambert
c25eb678a8 fix typo 2014-05-24 16:42:08 +02:00
Olivier Lambert
5128efbbf4 add more doc stuff 2014-05-24 16:41:03 +02:00
Olivier Lambert
c73ee3c531 add doc 2014-05-24 16:26:24 +02:00
Olivier Lambert
54ba67f882 add admin doc 2014-05-24 16:04:41 +02:00
Julien Fontanet
395bfe6eb5 Only admins can access the setting page (fix #77). 2014-05-24 16:00:40 +02:00
Julien Fontanet
e0ecf65aac Better integration of the setting pages. 2014-05-24 15:49:33 +02:00
Olivier Lambert
a7c651c98c fix bad image name 2014-05-24 15:49:17 +02:00
Olivier Lambert
ed473f457a add images 2014-05-24 15:48:21 +02:00
Olivier Lambert
a572c1132d more doc 2014-05-24 15:47:26 +02:00
Olivier Lambert
ba314c7135 small changes in doc 2014-05-24 15:38:43 +02:00
Olivier Lambert
a0788ab050 fix minor stuff 2014-05-24 15:34:13 +02:00
Olivier Lambert
8885f0be10 add doc on config file 2014-05-24 15:33:31 +02:00
Julien Fontanet
9d433ed1d0 Go back to the homepage after deleting a VM. (fix #56). 2014-05-24 15:27:14 +02:00
Olivier Lambert
0125c9445e add doc stuff again 2014-05-24 15:13:15 +02:00
Olivier Lambert
a3454d4143 add doc stuff 2014-05-24 14:42:07 +02:00
Olivier Lambert
ad3c224b10 oops forgot images 2014-05-24 14:36:34 +02:00
Olivier Lambert
43d186d464 add doc 2014-05-24 14:34:56 +02:00
Olivier Lambert
a3671e776d start to add doc 2014-05-24 12:01:11 +02:00
Julien Fontanet
862ce07f8d 3.4.0 2014-05-22 11:43:23 +02:00
Julien Fontanet
a78bc7d195 Typos. 2014-05-22 11:39:08 +02:00
Julien Fontanet
b0ce4404ea Markdown fix. 2014-05-22 11:37:38 +02:00
Julien Fontanet
cd5641d2f3 ChangeLog. 2014-05-22 11:36:48 +02:00
Julien Fontanet
51dd9f0419 Redirect to wanted page after login. 2014-05-22 10:51:15 +02:00
Julien Fontanet
6d0a76756d Fix autofill AMAP. 2014-05-21 20:27:00 +02:00
Julien Fontanet
6e8342fbf4 Minor fix. 2014-05-21 20:12:09 +02:00
Julien Fontanet
8d227724d7 Merge branch 'events' into next-release 2014-05-21 20:00:27 +02:00
Olivier Lambert
eab91ffa83 fix icon for stopped vm 2014-05-21 19:57:23 +02:00
Julien Fontanet
6488198a06 Minor fixes. 2014-05-21 19:50:05 +02:00
Olivier Lambert
07b4c67b5c add space after the login icon 2014-05-21 18:44:45 +02:00
Julien Fontanet
70077a1eac Hide mockup. 2014-05-21 18:23:20 +02:00
Julien Fontanet
03763a6556 Merge branch 'acl' into next-release 2014-05-21 18:15:24 +02:00
Julien Fontanet
3cb8d77977 Switch to the log in page on log out. 2014-05-21 18:13:53 +02:00
Olivier Lambert
c8d7940451 fix vm description 2014-05-21 18:04:00 +02:00
Julien Fontanet
2253aa1229 Mandatory log in page. 2014-05-21 17:43:54 +02:00
Julien Fontanet
d5a16855fb Events are ok. 2014-05-21 15:25:12 +02:00
Olivier Lambert
1aec909c10 better style for connection status 2014-05-21 14:53:18 +02:00
Olivier Lambert
7b60980959 add icon for login 2014-05-21 13:50:28 +02:00
Olivier Lambert
097424e2ee add login view 2014-05-21 13:46:58 +02:00
Olivier Lambert
a99b17d240 fix ugly empty parentheses when host is not in a labelled pool 2014-05-18 18:35:50 +02:00
Olivier Lambert
7526230b69 mockup for user and group in VM view 2014-05-14 18:11:45 +02:00
Julien Fontanet
6b8f9a6319 Various updates. 2014-05-12 19:55:36 +02:00
Julien Fontanet
8e74556613 Dependencies update. 2014-05-12 18:50:50 +02:00
Julien Fontanet
26a3086b81 WIP. 2014-05-09 17:29:32 +02:00
Julien Fontanet
6dd70137db Do not use a symlink for gulp. 2014-04-25 12:19:50 +02:00
Julien Fontanet
94ab475a31 Update deps. 2014-04-25 12:19:25 +02:00
Olivier Lambert
e77b6f3b85 add convert to template in vm view 2014-04-18 13:15:47 +02:00
Olivier Lambert
4000b44d90 add possibility to clone with CoW 2014-04-16 18:00:00 +02:00
Olivier Lambert
ad09d98d81 add basic cloning 2014-04-16 17:31:51 +02:00
Julien Fontanet
567d5e7676 Merge branch 'master' into next-release 2014-04-15 18:17:20 +02:00
Julien Fontanet
123b0a331e Minor fix. 2014-04-15 17:53:58 +02:00
Julien Fontanet
11f1f3d132 Minor fix. 2014-04-15 17:50:05 +02:00
Julien Fontanet
a44ce0c538 Installation method is optional. 2014-04-15 17:45:55 +02:00
Olivier Lambert
23348c5d8c Merge pull request #115 from devopsconsulting/isNan
use standard js isNaN function.
2014-04-10 14:34:32 +02:00
Lars van de Kerkhof
176c6524a2 use standard js isNaN function. 2014-04-10 12:37:41 +02:00
Julien Fontanet
6765b0218a Merge branch 'next-release' 2014-03-28 17:00:35 +01:00
Julien Fontanet
b7fd209987 3.3.1 2014-03-28 16:58:20 +01:00
Julien Fontanet
e11f0595d8 ChangeLog. 2014-03-28 16:57:36 +01:00
Olivier Lambert
a01410f287 Merge pull request #110 from RhubarbSin/master
correct minor misspelling
2014-03-25 22:55:33 +01:00
Rhubarb Sin
6e53682854 correct minor misspelling 2014-03-25 17:47:36 -04:00
Olivier Lambert
e5a19d73e1 fix #109 2014-03-15 15:28:58 +01:00
Julien Fontanet
42d72a7786 Console page rewritten (in Jade) (see #92). 2014-03-13 16:13:14 +01:00
Julien Fontanet
30a29b179b Do not compile Jade files starting with an underscore. 2014-03-13 15:13:21 +01:00
Julien Fontanet
6a7ae710c5 Updates Bower to latest version (should limit install errors). 2014-03-13 12:28:22 +01:00
Julien Fontanet
7622fa88cb Minor fix in build. 2014-03-13 12:18:15 +01:00
Julien Fontanet
2f7aee02cc Merge branch 'next-release' 2014-03-07 16:04:31 +01:00
Julien Fontanet
75848f0d6e Bumps version number. 2014-03-07 16:04:12 +01:00
Julien Fontanet
c81c4ffc97 Links to issues in ChangeLog. 2014-03-07 16:00:25 +01:00
Julien Fontanet
5bbd8e7102 ChangeLog. 2014-03-07 15:57:33 +01:00
Julien Fontanet
f8fb69ac03 Uses gulp-load-plugins. 2014-03-03 16:00:30 +01:00
Julien Fontanet
a2b703d450 Explicitely declares angular-animate dependency to fix its version. 2014-02-28 11:21:26 +01:00
Julien Fontanet
25739d9f6f Bower and gulp.js share some of their configuration. 2014-02-28 11:20:51 +01:00
Olivier Lambert
1b12be55b2 add log deletion for pool and host 2014-02-27 19:33:08 +01:00
Olivier Lambert
ae7bfa6ee2 fix #99 and #100. Also minor fixes in HTML for VM view 2014-02-27 00:55:52 +01:00
Julien Fontanet
c012149b63 Tweaks HTMLhint settings. 2014-02-27 00:08:30 +01:00
Julien Fontanet
0210d87573 CoffeeScript linting added to gulp. 2014-02-27 00:00:57 +01:00
Olivier Lambert
35b8cf3769 fix #98 2014-02-24 19:06:16 +01:00
Olivier Lambert
a1bd76d5fd add action for host in main view, thus fix #97 2014-02-24 18:46:13 +01:00
Julien Fontanet
c0551eb5dc Initial command to check HTML & JS. 2014-02-24 17:28:43 +01:00
Olivier Lambert
f9e6118bfa small fix due to edit in wrong file 2014-02-24 17:06:30 +01:00
Olivier Lambert
69052c1de9 fix #95 2014-02-24 16:35:04 +01:00
Olivier Lambert
050dd7b47c implement bulk snapshots in main view, thus fix #96 2014-02-24 16:35:04 +01:00
Julien Fontanet
7d5e1009cb Uses ngmin for now but we should not depend on it. 2014-02-24 14:11:31 +01:00
Julien Fontanet
9b3b0d22f8 This file is now useless. 2014-02-24 14:03:24 +01:00
Julien Fontanet
d2035a0609 Grunt is replaced by gulp.js (fix #91). 2014-02-21 13:05:32 +01:00
Julien Fontanet
4dcd9e3066 Merge branch 'next-release' 2014-02-21 10:14:29 +01:00
Julien Fontanet
744cf692aa Spelling. 2014-02-21 10:10:51 +01:00
Julien Fontanet
eb2a85ff1a Bumps version number. 2014-02-21 09:55:25 +01:00
Julien Fontanet
5eaf40b84e ChangeLog updated. 2014-02-21 09:46:05 +01:00
Julien Fontanet
9dc12b4b8e Fixes MAC pattern -_-" (#94). 2014-02-20 18:39:55 +01:00
Julien Fontanet
2a3e6a9599 Fixes invalid MAC pattern (fix #94). 2014-02-20 18:21:17 +01:00
Julien Fontanet
3ad7d6dfed Avoids errors when a xoApi call has multiple responses. 2014-02-20 18:17:04 +01:00
Julien Fontanet
28f82e2572 Fixes dependencies' versions AMAP in bower (#93). 2014-02-20 15:12:45 +01:00
Julien Fontanet
89274268ea Uses npm shrinkwrap to fix dependencies' versions (fix #93). 2014-02-20 15:07:42 +01:00
Julien Fontanet
116048d7a2 Uses the integrated uiSrefActive directive instead of $uiRoute. 2014-02-20 14:42:10 +01:00
Julien Fontanet
9f3c97c9bc Bower components updated. 2014-02-20 11:46:58 +01:00
Julien Fontanet
79e7c56419 Use noVNC official repository now that the fix as been merged. 2014-02-20 11:29:47 +01:00
Julien Fontanet
d00c390e03 Dependencies update. 2014-02-20 11:25:37 +01:00
Julien Fontanet
ce39ee7b29 Fix consoles in Chrome (fix #46). 2014-02-19 19:34:10 +01:00
Julien Fontanet
df1596b785 Badges added to the README to see if dependencies are up to date (fix #90). 2014-02-19 14:38:23 +01:00
Julien Fontanet
12aaf86a8e Error messages when disconnected from XO-Server. 2014-02-18 15:24:44 +01:00
Olivier Lambert
62bca19beb fix #85 2014-02-15 18:08:02 +01:00
Olivier Lambert
5551fa6612 fix #79 by trigger not implemented if it's the case, or working otherwise. Also use now buttons and not div blocks 2014-02-15 10:50:47 +01:00
Olivier Lambert
73ef8c8c09 Fix #81 by replacing two mislabeled icons. Also fix #87 with shortcut console for hosts in main view 2014-02-15 10:33:49 +01:00
Julien Fontanet
da695dffb3 Different icon for consoles (fix #80). 2014-02-14 18:40:42 +01:00
Julien Fontanet
efad2c3461 Merge branch 'next-release' 2014-02-14 16:25:44 +01:00
Julien Fontanet
b5cb8d3c16 Bumps version number. 2014-02-14 16:19:27 +01:00
Julien Fontanet
e9f81a8a50 Bad date format. 2014-02-14 16:12:48 +01:00
Julien Fontanet
4d75cce22a Changelog for 3.1.0. 2014-02-14 16:10:53 +01:00
Olivier Lambert
4c5f4dd443 add more distro for icon display 2014-02-14 15:52:27 +01:00
Julien Fontanet
ddb8d1d8f6 Fixes incorrect scroll when the view changes (fix #74). 2014-02-14 15:16:43 +01:00
Julien Fontanet
0da59a8339 Fix long pool name (fix #63). 2014-02-14 14:48:27 +01:00
Olivier Lambert
4323bc8c11 fix typo in doc 2014-02-14 13:49:20 +01:00
Olivier Lambert
90a69bd063 update doc 2014-02-14 13:42:59 +01:00
Olivier Lambert
d55332d999 fix issue #59. And deal with real button not div, plus fix other small stuff 2014-02-13 17:25:10 +01:00
Julien Fontanet
aac3a02a89 Prevents host name for breaking the design. 2014-02-13 16:38:08 +01:00
Julien Fontanet
6c79b74657 Minor typo. 2014-02-13 16:36:46 +01:00
Julien Fontanet
bf79f13689 Use a Fibonacci timer when disconnected from the server. 2014-02-13 16:36:32 +01:00
Olivier Lambert
fa3cb5d725 fix also #58 in host view 2014-02-13 13:16:42 +01:00
Olivier Lambert
b48e40e5ab fix issue #58 2014-02-13 13:10:34 +01:00
Olivier Lambert
f4d5b30e85 add vlan info for PIF in host view 2014-02-13 13:03:35 +01:00
Julien Fontanet
2fcf590355 Prevent consoles access from unauthenticated users (temp fix #73). 2014-02-13 10:50:44 +01:00
Olivier Lambert
6f29ee74da Fix issue #70 2014-02-12 18:41:50 +01:00
Julien Fontanet
70ed981957 Use natural sort (fix #69). 2014-02-12 18:35:11 +01:00
Olivier Lambert
04dbcb05bd Fix issue #57 2014-02-12 18:12:21 +01:00
Olivier Lambert
b649d507df Fix issue #64 2014-02-12 17:49:35 +01:00
Olivier Lambert
803abf4448 Fix for issue #71 2014-02-12 17:40:39 +01:00
Julien Fontanet
de92dbdbdd Open js-links in new tab/window when Ctrl modifier or middle-click (fix #66). 2014-02-12 17:20:41 +01:00
Julien Fontanet
be28fdcd9f Provides links to easily launch grunt/bower without having to install them globally. 2014-02-10 19:32:53 +01:00
Julien Fontanet
5b840b41fe Minor UI improvements in the new VM page. 2014-02-10 19:32:17 +01:00
Olivier Lambert
678064baba add more distro for icon display 2014-02-10 12:26:06 +01:00
281 changed files with 36201 additions and 6507 deletions

View File

@@ -1,3 +0,0 @@
{
"directory": "app/bower_components"
}

View File

@@ -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
View File

@@ -1 +0,0 @@
* text=auto

14
.gitignore vendored
View File

@@ -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/*/

View File

@@ -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
View File

@@ -0,0 +1,10 @@
/examples/
example.js
example.js.map
*.example.js
*.example.js.map
/test/
/tests/
*.spec.js
*.spec.js.map

View File

@@ -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
View 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))

View File

@@ -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
View 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
View 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/>.

View File

@@ -1,15 +1,91 @@
# Xen Orchestra Web
# Xen Orchestra Web [![Build Status](https://travis-ci.org/vatesfr/xo-web.png?branch=master)](https://travis-ci.org/vatesfr/xo-web)
![](http://i.imgur.com/tRffA5y.png)
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)

View File

@@ -1 +0,0 @@
*.coffee

View File

@@ -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>

View File

@@ -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>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 91 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

View File

@@ -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>

View File

@@ -1,3 +0,0 @@
# robotstxt.org
User-agent: *

View File

@@ -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'

View File

@@ -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

View File

@@ -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)

View File

@@ -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

View File

@@ -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

View File

@@ -1,5 +0,0 @@
'use strict'
angular.module('xoWebApp')
.controller 'ListCtrl', ($scope, xo) ->
$scope.byTypes = xo.byTypes

View File

@@ -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'

View File

@@ -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'

View File

@@ -1,10 +0,0 @@
'use strict'
angular.module('xoWebApp')
.controller 'NewSrCtrl', ($scope, $stateParams, xo) ->
$scope.$watch(
-> xo.revision
->
$scope.container = xo.get $stateParams.container
)

View File

@@ -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

View File

@@ -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

View File

@@ -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.

View File

@@ -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

View File

@@ -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'

View File

@@ -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
}

View File

@@ -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}%"

View File

@@ -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

View File

@@ -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

View File

@@ -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;
}

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>&nbsp;&nbsp;
<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>&nbsp;&nbsp;
<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>&nbsp;&nbsp;
<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>&nbsp;&nbsp;
<span ng-repeat="tag in SR.tags">
<span class="label label-primary">{{tag}}</span>
</span>
</div>
</div>
</div>
<!-- /Tags. -->
</div>
<!-- /Properties & tags. -->
</div>
<!-- /SR. -->

View File

@@ -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>
&nbsp;
<i tooltip="{{hosts.length}} hosts">
<i class="small">{{hosts.length}}x</i>
<i class="xo-icon-host"></i>
</i>
&nbsp;
<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>
&nbsp;
<i tooltip="{{xo.$vCPUs}} vCPUs used of {{xo.$CPUs}} CPUs">
<i class="small">{{xo.$vCPUs}}x</i>
<i class="xo-icon-cpu"></i>
</i>
&nbsp;
<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">&nbsp;<i class="fa fa-caret-down big-caret"></i>&nbsp;</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>
&nbsp;
<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">&nbsp;<i class="fa fa-caret-down"></i>&nbsp;</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 &amp;&amp; !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)}}">&nbsp;</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)}}">&nbsp</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>

View File

@@ -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 &amp;&amp; '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&nbsp;&nbsp;<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. -->

View File

@@ -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>

View File

@@ -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">&nbsp;</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">&nbsp;</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>

View File

@@ -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>

View File

@@ -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>&nbsp;</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>&nbsp;</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>

View File

@@ -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. -->

View File

@@ -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>

View File

@@ -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
View 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()
})
})

View File

@@ -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_'
});
};

View File

@@ -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
});
};

View File

@@ -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
View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

123
src/chartist.scss Normal file
View 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
View 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
View 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>
}
}

View File

@@ -0,0 +1,7 @@
.button {
opacity: 0.5;
}
tr:hover .button, tr:focus .button {
opacity: 1;
}

View 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 }

View 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)

View 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)
}
}

View 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
View 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>
))

View File

@@ -0,0 +1,9 @@
.container {
display: flex;
min-height: 100%;
}
.content {
margin: auto;
text-align: center;
}

View 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
View 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>
)
}
}

View 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()
})
}

View 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')
]))
])

View 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)
}

View 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())
})

View File

@@ -0,0 +1,9 @@
.container .button {
position: absolute;
margin-left: 1ex;
visibility: hidden;
}
.container:hover .button {
visibility: visible;
}

View 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
View 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
View 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
View 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
View 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>
)

View 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 }

View 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
View 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
View 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>
}
}

View 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
View 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}
/>
)
}
}

View File

@@ -0,0 +1,3 @@
.checkbox {
display: none;
}

View 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>
)
}
}

View 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
View 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
View 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
View 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
View File

@@ -0,0 +1 @@
/index.js

File diff suppressed because it is too large Load Diff

View 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 ?'
}

File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More