Compare commits

..

5464 Commits

Author SHA1 Message Date
Julien Fontanet
ecd460a991 feat(xo-web): 5.17.0 2018-03-02 19:57:24 +01:00
Julien Fontanet
b4d7648ffe feat(xo-server): 5.17.0 2018-03-02 19:57:04 +01:00
Julien Fontanet
eb3dfb0f30 feat(Backups NG): first iteration (#2705) 2018-03-02 19:56:08 +01:00
Julien Fontanet
2b9ba69480 fix(xo-server): getJob return the correct job 2018-03-02 19:53:16 +01:00
Julien Fontanet
8f784162ea chore(xo-server): Xapi#exportDeltaVm make streams writable 2018-03-02 19:52:35 +01:00
Julien Fontanet
a2ab64b142 chore(xo-server): Xapi#exportDeltaVm accept a snapshot 2018-03-02 19:52:00 +01:00
Julien Fontanet
052817ccbf chore(xo-server): RemoteHandler#rename handle cheksum 2018-03-02 19:51:03 +01:00
Julien Fontanet
48b2297bc1 chore(xo-server): handle nested job props (#2712) 2018-03-02 19:29:08 +01:00
Nicolas Raynaud
e76a0ad4bd feat(xo-server): improve VHD merge speed (#2643)
Avoid re-opening/closing the files multiple times, introduce a lot of latency in remote FS.
2018-03-02 19:08:01 +01:00
Olivier Lambert
baf6d30348 fix(changelog): remove useless spaces 2018-03-02 18:31:32 +01:00
Olivier Lambert
7d250dd90b feat(changelog): move and update changelog 2018-03-02 18:30:22 +01:00
Rajaa.BARHTAOUI
efaabb02e8 feat(xo-web): confirm modal before host emergency shutdown (#2714)
Fixes #2230
2018-03-02 18:05:58 +01:00
Julien Fontanet
0c3b98d451 fix(xo-server): forward createOutputStream errors with checksum 2018-03-02 15:29:26 +01:00
Julien Fontanet
28d1539ea6 fix(xo-server): fix Xapi#snapshotVm
It was broken by #2701.
2018-03-02 10:53:49 +01:00
Julien Fontanet
8ad02d2d51 feat(xo-web): ActionButton accept data-* props instead of handlerParam (#2713) 2018-03-02 09:57:26 +01:00
Julien Fontanet
1947a066e0 chore: disable flow for test
Still some config issues which I have to fix.
2018-03-01 16:30:02 +01:00
Julien Fontanet
d99e643634 chore(xo-server): inject schedule in jobs (#2710) 2018-03-01 16:27:51 +01:00
Rajaa.BARHTAOUI
65e1ac2ef9 chore(xo-web): consistently use "Username" label (#2709)
Fixes #2651
2018-03-01 15:58:48 +01:00
Julien Fontanet
64a768090f fix(xo-server): typo, executor → executors 2018-03-01 13:37:40 +01:00
Julien Fontanet
488eed046e chore(xo-server): pluggable job executors (#2707) 2018-03-01 12:10:08 +01:00
Julien Fontanet
dccddd78a6 chore(xo-web): rewrite smart-backup-pattern (#2698)
Fix a few issues
2018-02-28 17:07:16 +01:00
Julien Fontanet
3c247abcf9 chore(xo-web): add exact prop to NavLink (#2699) 2018-02-28 17:05:44 +01:00
Julien Fontanet
db795e91fd feat(complex-matcher): 0.3.0 2018-02-28 16:40:18 +01:00
Julien Fontanet
f060f56c93 feat(complex-matcher): number comparison (#2702)
`foo:>=42` matches `{ foo: 42 }` but not `"bar"` nor `{ foo: 37 }`.
2018-02-28 16:36:54 +01:00
Julien Fontanet
51be573f5e chore(xo-web): rewrite smart-backup-pattern 2018-02-28 16:23:29 +01:00
Julien Fontanet
4257cbb618 chore(xo-server): improve jobs code (#2696)
- add type filtering (default to `call`)
- support passing extra params to the call
- Flow typing
2018-02-28 16:22:41 +01:00
Julien Fontanet
e25d6b712d chore(xo-web): addSubscriptions provide initial props (#2697) 2018-02-28 16:09:56 +01:00
Julien Fontanet
b499d60130 chore(xo-server): improve scheduling code (#2695) 2018-02-28 15:59:19 +01:00
Julien Fontanet
68e06303a4 chore(xo-server): more cancelable Xapi methods (#2701) 2018-02-28 15:25:22 +01:00
badrAZ
60085798f2 fix(xo-web/jobs/vm.revert): use the snapshot's id instead of the vm's id (#2685)
Fixes #2498
2018-02-28 14:33:05 +01:00
badrAZ
c62cab39f1 feat(xo-web/VM): change the "share" button position (#2667)
Fixes #2663
2018-02-28 14:10:27 +01:00
Julien Fontanet
30483ab2d9 feat(xo-web): pass userData to SortedTable actions (#2700) 2018-02-28 13:43:41 +01:00
Julien Fontanet
c38c716616 chore(xo-server): use sepecific Babel plugins instead of stage-0 (#2694) 2018-02-28 12:59:23 +01:00
Julien Fontanet
ded1127d64 chore: mutualize Babel 7 config 2018-02-26 22:30:37 +01:00
Julien Fontanet
38d6130e89 chore(xo-cli): remove flow test 2018-02-26 21:58:32 +01:00
Julien Fontanet
ee47e40d1a feat(xo-web/logs): display real job status (#2688) 2018-02-26 18:02:39 +01:00
Julien Fontanet
80e66415d7 feat(xo-server): 5.16.2 2018-02-26 11:26:02 +01:00
Julien Fontanet
81e6372070 feat(xen-api): 0.16.6 2018-02-26 11:23:20 +01:00
Julien Fontanet
dbfbd42d29 fix(xo-server): identifiable names for VM export snapshots
Fixes #2668
2018-02-24 23:00:50 +01:00
Julien Fontanet
e0d34b1747 fix(xo-server): CR with lazy streams (#2675) 2018-02-23 17:50:17 +01:00
Julien Fontanet
9a8f9dd1d7 feat(xo-web): display attached VDI snapshots in Health (#2684)
Fixes #2634
2018-02-23 16:30:40 +01:00
Pierre Donias
75521f8757 fix(xo-server): do not count snapshots in self quotas (#2682)
Fixes #2626
2018-02-23 15:00:23 +01:00
Julien Fontanet
11d4cb2f04 fix(xo-server): detect interruption of full backups (#2686) 2018-02-23 13:07:48 +01:00
Rajaa.BARHTAOUI
d90cb09b56 feat(xo-web): disconnect VDIs from SR/disks view (#2602)
See #2505
2018-02-23 10:03:20 +01:00
Rajaa.BARHTAOUI
a02d393457 fix(xo-web/VM): allow self-service user to insert CD (#2647)
Fixes #2503
2018-02-22 16:42:43 +01:00
Julien Fontanet
01a5963947 feat(xen-api): allow createTask in read-only mode (#2679)
Fixes #2678
2018-02-22 15:50:35 +01:00
Julien Fontanet
7ef314d9f4 chore(lint-staged): rewritten in JS (#2676)
- simpler code, no need to hack around the shell
- no more double formatting
- no longer use git stash, simply cache files in memory
2018-02-22 11:45:44 +01:00
Julien Fontanet
2ff25d1f61 fix(xo-server): limit number of VDI exports (#2673)
Fixes #2672
2018-02-21 19:26:39 +01:00
Julien Fontanet
ede12b6732 fix(xo-server): limit number of VM exports (#2671)
Fixes #2669
2018-02-21 17:37:07 +01:00
Julien Fontanet
8a010f62fd chore(xo-server): remove unused Xapi#exportVdi 2018-02-21 17:32:30 +01:00
badrAZ
51da4a7e70 fix(xo-web/VM): show error when setting resource set fails (#2638)
Fixes #2620
2018-02-20 14:44:24 +01:00
Julien Fontanet
fd2580f5da feat(xo-cli): document config export (#2662) 2018-02-20 11:43:38 +01:00
Julien Fontanet
c5fdab7d47 feat(cron): 1.0.2 2018-02-20 11:42:19 +01:00
Julien Fontanet
ae094438b1 fix(cron): Schedule#next() with moment 2018-02-20 11:41:12 +01:00
Julien Fontanet
3e5af9e894 chore: update dependencies 2018-02-19 18:10:05 +01:00
Julien Fontanet
10093afb91 feat(cron): 1.0.1 2018-02-19 17:06:17 +01:00
Julien Fontanet
58032738b9 chore(cron): replace luxon with moment-timezone (#2657) 2018-02-19 17:04:04 +01:00
Julien Fontanet
89cbbaeeea chore: fix yarn.lock 2018-02-19 15:52:17 +01:00
Julien Fontanet
5ca08eb400 feat(xo-server): 5.16.1 2018-02-19 14:11:10 +01:00
Julien Fontanet
fad049d2ac feat(xo-web): 5.16.2 2018-02-19 14:10:37 +01:00
Julien Fontanet
87466cb5bd feat(value-matcher): 0.2.0 2018-02-19 14:08:38 +01:00
Julien Fontanet
bb69ad8019 feat(xo-server-backup-reports): 0.10.0 2018-02-19 14:02:13 +01:00
Julien Fontanet
d5373b85c7 feat(xen-api): 0.16.5 2018-02-19 13:59:17 +01:00
Julien Fontanet
d71e699582 feat(xo.getAllObjects): implement ndjson handler (#2500) 2018-02-19 13:41:44 +01:00
Julien Fontanet
f464751752 fix(xen-api): enforce event timeout (#2653) 2018-02-19 11:45:10 +01:00
badrAZ
d69f355206 feat(xo-web/jobs): show number of VMs in logs status selector (#2636)
Fixes #2618
2018-02-19 11:05:03 +01:00
badrAZ
769c32a1b1 fix(xo-web): the name 'ip' is used by the module ip-regex (#2654) 2018-02-19 10:05:10 +01:00
Julien Fontanet
44075d2ad5 chore: update dependencies 2018-02-18 21:53:23 +01:00
badrAZ
2b4ae3f1c2 feat(xo-server-backup-reports): improve the unhealthy VDI chain message (#2640)
Fixes #2639
2018-02-16 15:24:55 +01:00
Julien Fontanet
8689b48c55 fix(xo-server/authentication): fail fast with empty passwords
There is no reason to attempt authentication with empty passwords, and this work around issues with some LDAP servers which may allow binds with empty passwords.

See xoa-support#469.
2018-02-16 11:47:01 +01:00
Julien Fontanet
443882f4be feat(scripts): dev 2018-02-15 15:20:06 +01:00
Pierre Donias
9c3adaedf0 fix(select-objects/SelectSshKey): initialize state (#2646)
Fixes #2645
2018-02-15 12:38:04 +01:00
Julien Fontanet
4ba4d383f0 feat(backup): parallelism improvements (#2641)
Do not limit the concurrency at the job level, only limit VHD merges (2) and VM snapshots (1).
2018-02-15 12:14:39 +01:00
Julien Fontanet
947febcdaa chore(xo-server): update limit-concurrency-decorator to 0.3.0 2018-02-14 17:05:25 +01:00
badrAZ
b0a152612e feat(backup): new "skipped" state (#2612)
Fixes #2591
2018-02-14 11:22:30 +01:00
badrAZ
c9991655cf fix(xo-server): remove VM from nonexistent resource sets (#2637) 2018-02-13 16:58:05 +01:00
badrAZ
8971d218bb feat: share a vm in a resource set (#2611)
Fixes #2589
2018-02-13 15:24:20 +01:00
Julien Fontanet
8b05486945 fix(xo-server/scheduling): use local TZ by default 2018-02-13 14:50:10 +01:00
Julien Fontanet
42cd5d8e58 chore(xo-server/utils): remove scheduleFn 2018-02-13 14:49:50 +01:00
Julien Fontanet
31f420937e chore: fix yarn.lock 2018-02-13 14:41:12 +01:00
badrAZ
952d086c5e feat: use @xen-orchestra/cron (#2619)
Fixes #2616
2018-02-13 14:39:26 +01:00
Julien Fontanet
422a04795f chore: update dependencies 2018-02-13 12:05:52 +01:00
Julien Fontanet
28a8807cfb chore(xo-web): remove unused package.json entries 2018-02-13 11:16:02 +01:00
Julien Fontanet
c6327a953b chore(cron): improve documentation 2018-02-13 10:44:21 +01:00
Julien Fontanet
cc71f2e4a3 feat(cron): 1.0.0 2018-02-12 12:21:22 +01:00
Julien Fontanet
701086ec26 feat(cron): add Schedule#startJob() 2018-02-12 12:17:05 +01:00
Julien Fontanet
20acaebb68 fix(xo-server/vhd-merge): explicit error when no block found 2018-02-11 13:38:24 +01:00
Julien Fontanet
22997cd903 chore: improve Babel 7 configs
- easier to customize
- all target configuration is done in package.json
2018-02-10 23:09:29 +01:00
Julien Fontanet
7cb720b11f chore: format all code (#2632) 2018-02-09 17:56:03 +01:00
Julien Fontanet
8bf35b2a63 feat(xo-web): 0.16.1 2018-02-09 15:34:17 +01:00
Julien Fontanet
8b72690c17 feat(xo-server-cloud): 0.2.2 2018-02-09 15:33:51 +01:00
Julien Fontanet
a0cc768af9 feat(scripts): benchmarks (#2631) 2018-02-09 15:01:00 +01:00
Pierre Donias
9fc73e03a2 fix(XOSAN): ask for registration (#2628)
Fixes #2625
2018-02-09 13:36:30 +01:00
badrAZ
edd57f7205 feat(dashboard/health): add pool filter (#2583)
Fixes #2302
2018-02-08 20:22:32 +01:00
Julien Fontanet
8b155b62dc feat: restore prettier (#2630) 2018-02-08 17:45:16 +01:00
Julien Fontanet
bf5daa1a9b feat: better lint-staged (#2629) 2018-02-08 17:31:30 +01:00
Julien Fontanet
4f154e33bc fix(value-matcher): add AndPattern to Pattern union 2018-02-08 10:52:35 +01:00
Julien Fontanet
395bcade67 chore: fix issue template 2018-02-08 09:55:00 +01:00
Julien Fontanet
985a038482 chore: improve normalization 2018-02-07 17:40:55 +01:00
Julien Fontanet
2da04c5bb1 fix: lint & tests 2018-02-07 14:43:14 +01:00
Julien Fontanet
1baf8cfaa6 chore: update dependencies 2018-02-07 14:03:34 +01:00
Julien Fontanet
956a9a7dde chore: xen-orchestra is now the main repo 2018-02-07 10:40:09 +01:00
Julien Fontanet
d7bb457fd0 chore(xo-web): adapt to monorepo 2018-02-07 10:39:32 +01:00
Julien Fontanet
563ff38c25 Merge branch 'xo-web/master' 2018-02-07 10:18:09 +01:00
Julien Fontanet
05caaa0814 feat(xo-web): move all files to packages/xo-web 2018-02-07 10:18:09 +01:00
Julien Fontanet
1f283d285a feat(cron): 0.2.0 2018-02-06 17:30:36 +01:00
Julien Fontanet
adaa7ca413 feat(cron): wait promise before next run (#47) 2018-02-06 17:29:28 +01:00
Julien Fontanet
247e797d2b feat(cron): 0.1.2 2018-02-06 15:42:26 +01:00
Julien Fontanet
9c7c030b00 fix(cron): handle setTimeout max delay (#45) 2018-02-06 15:41:19 +01:00
Julien Fontanet
867c9ea66c fix(cron): correctly compute the delay 2018-02-06 15:28:54 +01:00
badrAZ
59985adc5d feat(backups): improve smart backup feedback (#2320)
Fixes #2253
2018-02-06 14:39:51 +01:00
Julien Fontanet
fd4504f0ee chore(xen-api): tested with XS 7.2 & 7.3 2018-02-06 14:36:33 +01:00
Julien Fontanet
6c6aacc64e feat(cron): 0.1.1
New release due to publish issue.
2018-02-06 12:04:49 +01:00
Julien Fontanet
678adc0726 feat(cron): 0.1.0 2018-02-06 10:22:17 +01:00
Julien Fontanet
be3b684866 feat(cron): better API (#40) 2018-02-06 10:20:11 +01:00
Julien Fontanet
179aadafa4 feat(xo-server): update value-matcher to 0.1.0 2018-02-05 15:52:05 +01:00
Julien Fontanet
f9dc129601 chore(value-matcher): remove unused @babel/polyfill 2018-02-05 15:47:24 +01:00
Julien Fontanet
6beea2d208 feat(value-matcher): 0.1.0 2018-02-05 15:44:02 +01:00
Julien Fontanet
57ef84ad3b feat(value-matcher): add __and operator (#43) 2018-02-05 15:34:55 +01:00
Julien Fontanet
9d9fdcff1e feat(normalize-packages): remove lint-staged 2018-02-05 14:34:45 +01:00
Julien Fontanet
83e82e4789 chore: remove legacy ghooks config 2018-02-05 14:18:10 +01:00
Julien Fontanet
4a12e0b6a0 chore: predev scripts should run prebuild 2018-02-05 14:16:54 +01:00
Julien Fontanet
642118959e chore: always use yarn to run scripts 2018-02-05 14:15:57 +01:00
Julien Fontanet
600011be17 fix(test): make flow ignore node_modules 2018-02-05 13:38:54 +01:00
Julien Fontanet
6765251332 fix(test): build modules required for tests 2018-02-05 13:38:28 +01:00
Julien Fontanet
afa5b046cb fix(test): ignore some no-missing-import errors 2018-02-05 12:05:22 +01:00
Julien Fontanet
138d5627b5 chore(complex-matcher): remove unnecessary invoke 2018-02-04 16:35:57 +01:00
badrAZ
682d9e88ec feat(SortedTable): add actions property (#2609)
Fixes #2596
2018-02-02 15:34:12 +01:00
Julien Fontanet
191c531bad chore(README): xo-server is now here 2018-02-01 17:44:27 +01:00
Julien Fontanet
f026e51c54 fix(xo-server): pass appDir to appConf 2018-02-01 16:30:39 +01:00
Julien Fontanet
693afc52ff chore(gitignore): add missing entry 2018-02-01 14:38:19 +01:00
Julien Fontanet
b22914e88a chore(xo-server): adapt to monorepo 2018-02-01 14:23:17 +01:00
Julien Fontanet
50b081608f Merge branch 'xo-server/master' 2018-02-01 14:17:39 +01:00
Julien Fontanet
214528a880 feat(xo-server): move all files to packages/xo-server 2018-02-01 14:17:39 +01:00
Julien Fontanet
4f13b32f9a fix(collection/redis): rebuidIndexes don't fail on missing items (#651)
Instead of failing when an id refers to a no missing item, simply remove it from the index.
2018-02-01 14:15:57 +01:00
Julien Fontanet
8ce8f5763c chore(cron): update dependencies 2018-02-01 11:52:45 +01:00
Pierre Donias
1e5b2f54c3 chore: use debounce-input-decorator (#2608) 2018-02-01 11:34:42 +01:00
Julien Fontanet
348bc16d6d feat: cron (#34) 2018-02-01 11:28:16 +01:00
Julien Fontanet
ff2c69102d chore(complex-matcher): new parser implementation (#37) 2018-02-01 11:27:49 +01:00
Julien Fontanet
9479b7dc74 chore(xen-api): typo
Fixes vatesfr/xo-web#2606
2018-02-01 11:02:07 +01:00
Julien Fontanet
39f4e13915 chore(package): update dependencies 2018-02-01 10:33:26 +01:00
Julien Fontanet
5ea9f26ec4 chore(package): update dependencies 2018-02-01 10:14:53 +01:00
Julien Fontanet
c1d9cc7e2a 5.16.0 2018-01-31 18:41:15 +01:00
Julien Fontanet
6b80124a35 5.16.0 2018-01-31 18:39:34 +01:00
badrAZ
83a3754fe5 feat(vm/tab-advanced): move in/out of a resource set (#2601)
Fixes #1913
2018-01-31 18:39:12 +01:00
badrAZ
bf9b53c4d9 feat(vm.set): move a vm in to/out of a Self Service Group (#649)
See vatesfr/xo-web#1913
2018-01-31 18:37:29 +01:00
Rajaa.BARHTAOUI
2b5f7dc8de feat(settings/remotes): use SortedTable (#2465)
See #2416
2018-01-31 15:13:25 +01:00
Julien Fontanet
4349911076 fix(SortedTable): sort info in the URL (#2604)
Fixes #2584
2018-01-31 14:48:41 +01:00
Rajaa.BARHTAOUI
152f68624c feat(tasks): use SortedTable (#2532)
See #2416
2018-01-31 13:54:03 +01:00
Pierre Donias
3770194598 feat(vm/tab-network): allow self-user to create VIF (#2603)
Fixes #2593
2018-01-31 13:21:03 +01:00
Pierre Donias
2b4a7c40e1 feat(vm): allow self-user to create interface (#650)
See vatesfr/xo-web#2593
2018-01-31 13:16:03 +01:00
Julien Fontanet
62a9158074 chore: update dependencies 2018-01-31 09:44:37 +01:00
Nicolas Raynaud
354fd88028 feat(xo-server-perf-plugin): initial release (#33) 2018-01-31 09:41:28 +01:00
Pierre Donias
1b191c2bc9 fix(settings/servers): sortCriteria (#2600) 2018-01-30 16:53:46 +01:00
Pierre Donias
f94212729a feat: can force delete a VM if operation is blocked (#2598)
Fixes #2525
2018-01-30 10:48:04 +01:00
Julien Fontanet
43e5398d99 fix(api/vm): coding style 2018-01-30 10:36:26 +01:00
Julien Fontanet
920107e13f chore(vm.delete): deleteDisks by default 2018-01-30 10:26:26 +01:00
Pierre Donias
d52bed9618 feat(vm/delete): force param to bypass blocked_operations (#648)
See vatesfr/xo-web#2525
2018-01-30 10:19:26 +01:00
badrAZ
5ecc31b977 feat(VM/Snapshots): add grouped deletion to the SortedTable (#2597)
Fixes #2595
2018-01-29 17:15:11 +01:00
badrAZ
ed3ecc6f4e fix(form/select): autoSelectSingleOption fixes (#2594)
Fixes #2590

- emit option, not its value
- support `simpleValue` behavior
- only trigger when there are no selected options
2018-01-29 14:54:47 +01:00
badrAZ
add10ea556 feat(dashboard): allow the user in self service to see its quotas (#2268)
Fixes #1538
2018-01-29 10:44:43 +01:00
Julien Fontanet
d627fad299 5.15.7 2018-01-27 13:28:39 +01:00
Julien Fontanet
6f8b31eaa2 chore(package): update xen-api to 0.16.4 2018-01-26 16:38:59 +01:00
Julien Fontanet
8d47c83117 feat(xen-api): 0.16.4 2018-01-26 16:32:46 +01:00
Julien Fontanet
75ddf2681e fix(xen-api): only remove ghost tasks (#36)
Do not trigger incorrect "task destroyed before completion".
2018-01-26 16:28:22 +01:00
Julien Fontanet
4ad72b2ef0 chore(xen-api): _sessionCall "args" is optionnal 2018-01-26 16:16:00 +01:00
Julien Fontanet
a7334061ef fix(xen-api): _sessionCall "args" is an array 2018-01-26 16:13:18 +01:00
badrAZ
c89c7dab60 feat(job/log): improve Unhealthy VDI Chain message (#2588)
Fixes #2586
2018-01-26 16:00:04 +01:00
Julien Fontanet
0e0e4aae69 feat(complex-matcher): 0.2.1 2018-01-26 15:21:18 +01:00
Julien Fontanet
971c039086 feat(complex-matcher): number are matched recursively 2018-01-26 15:17:46 +01:00
Julien Fontanet
5e8e1968e1 feat(normalize-packages): remove babel-jest 2018-01-26 13:30:52 +01:00
Julien Fontanet
76a1c827d1 chore(package): update dependencies 2018-01-26 13:29:56 +01:00
Julien Fontanet
a4ab028ad6 feat(complex-matcher): 0.2.0 2018-01-25 16:57:29 +01:00
Pierre Donias
d2fdf0586c feat(modal): strong confirmation modal (#2529)
Fixes #2522 

- New modal that requires the user to type a message to confirm an action
- Integration of this modal on bulk VMs deletion
2018-01-25 15:03:16 +01:00
Julien Fontanet
0825806093 5.15.6 2018-01-25 10:12:54 +01:00
Julien Fontanet
44b1bee080 Merge branch 'stable' 2018-01-25 10:11:21 +01:00
badrAZ
d87f54d4a4 feat(job/log): display start/end time for each call and precise its duration (#2284)
Fixes part of #2270
2018-01-24 18:14:35 +01:00
Julien Fontanet
dc12896b19 chore(package): update react-virtualized (#2556)
`form/select` has been redeveloped for the occasion with the following features:
- not clearable when required and not multiple
- when no options available, marked as loading
- when required and only one option, it is automatically selected
2018-01-24 14:51:12 +01:00
Pierre Donias
23e992de85 fix(vm/network): remove "attached?" default filter (#2581)
Fixes #2548
2018-01-24 14:47:05 +01:00
Julien Fontanet
6f6b047537 chore(package): update xen-api to 0.16.3
Fixes vatesfr/xo-web#2579
2018-01-24 14:09:54 +01:00
Julien Fontanet
9fc6013934 feat(xen-api): 0.16.3 2018-01-24 14:07:32 +01:00
Julien Fontanet
8a02d557f4 feat(xen-api): handle ghost tasks (#35)
See vatesfr/xo-web#2579
2018-01-24 14:06:46 +01:00
Julien Fontanet
1406f1f8e5 5.15.5 2018-01-19 13:11:03 +01:00
Julien Fontanet
d5f6b65861 fix(Xapi#remoteCopyVm): fix VM renaming 2018-01-19 13:09:12 +01:00
Pierre Donias
8d2bbe86d5 fix(vm/create): bad resource set condition (#647) 2018-01-19 13:02:47 +01:00
badrAZ
1a2f553094 fix(vm): hide cores per socket selector when no container (#2221) 2018-01-18 15:35:03 +01:00
badrAZ
4d69866532 feat(migrate-vm-modal): controlled form (#2259) 2018-01-18 10:40:07 +01:00
Julien Fontanet
bdddea2e29 feat(complex-matcher): support numbers (#32) 2018-01-17 12:06:44 +01:00
Julien Fontanet
be4ca0eede chore(complex-matcher): remove @babel/polyfill
Should be unnecessary.
2018-01-17 11:01:32 +01:00
Pierre Donias
495c97b44b fix(xo): links to /xoa/update & www-xo forum (#2571) 2018-01-16 16:53:59 +01:00
Pierre Donias
e817b3254e fix(vm/network): duplicate key error (#2570)
Fixes #2553
2018-01-16 11:41:27 +01:00
Julien Fontanet
dd6987efe9 fix(SortedTable): infinite loop when displaying last page (#2568)
Fixes #2569
2018-01-15 16:56:00 +01:00
Julien Fontanet
d7f8d12d88 chore(prop-types-decorator): deprecate 2018-01-15 12:48:22 +01:00
Julien Fontanet
504895a730 chore(package): update dependencies 2018-01-15 12:37:00 +01:00
Rajaa.BARHTAOUI
cde92836f3 feat(user/ssh): use SortedTable (#2514)
See #2416
2018-01-12 14:56:47 +01:00
Pierre Donias
9158e33546 fix(proxy-console): socket.close() → socket.end() (#646) 2018-01-11 16:47:12 +01:00
Rajaa.BARHTAOUI
c787988b06 feat(pool,vm/logs): use SortedTable (#2513) 2018-01-11 14:51:59 +01:00
Julien Fontanet
316d71b34d chore(xen-api): remove unused import 2018-01-11 11:22:16 +01:00
Julien Fontanet
1b344b7d9c 5.15.4 2018-01-10 11:32:01 +01:00
Pierre Donias
3df01cd0cf chore(patching/bulk): omit XS-upgrade patches (#645)
Fixes vatesfr/xo-web#2564
2018-01-10 11:28:04 +01:00
Julien Fontanet
d2331bb62f fix(api/vm): export start and importDeltaBackup 2018-01-10 11:23:31 +01:00
Julien Fontanet
51504cc6a3 5.15.3 2018-01-09 17:55:19 +01:00
Julien Fontanet
cd03ebe49d fix(package): update xen-api to 0.16.2 2018-01-09 17:55:07 +01:00
Julien Fontanet
86c7ae3693 fix(package): update xen-api to 0.16.2 2018-01-09 17:50:34 +01:00
Julien Fontanet
6e3b85e764 chore(Xapi): remove unnecessary default values 2018-01-09 17:50:20 +01:00
Julien Fontanet
b3bc9a2edd fix(package): update xen-api to 0.16.2 2018-01-09 17:48:04 +01:00
Julien Fontanet
90369acb63 fix(xen-api): remove undefined fields during preparation 2018-01-09 17:47:46 +01:00
Julien Fontanet
94e84ce55f fix(package): update xen-api to 0.16.1 2018-01-09 17:31:37 +01:00
Julien Fontanet
68cef1aa5d feat(xen-api): 0.16.1 2018-01-09 17:28:42 +01:00
Julien Fontanet
2f9ecb8fa8 fix(xen-api): fix integer param preparation 2018-01-09 17:28:13 +01:00
Julien Fontanet
6281374cf3 chore(package): update dependencies 2018-01-09 17:25:42 +01:00
Julien Fontanet
13580923ea fix(api/vm): export delete method 2018-01-09 15:19:23 +01:00
Julien Fontanet
898434b267 Revert "chore(package): use React 16 (#2552)"
This reverts commit c8669dc88f.

Let's go back to React 15 until we move away from react-bootstrap.
2018-01-09 14:21:03 +01:00
Julien Fontanet
6f6e760a25 feat(normalize-packages): remove package-lock.json 2018-01-09 11:36:37 +01:00
Julien Fontanet
38fb549709 feat(import-packages): no commit hooks on move 2018-01-09 11:36:27 +01:00
Julien Fontanet
6e44c65a07 chore: fixes various warnings (#2554) 2018-01-08 15:18:15 +01:00
Julien Fontanet
736b00b4e2 chore(test): minor conf 2018-01-08 14:47:50 +01:00
Julien Fontanet
b5a139619a chore(build): remove Gulp & co. 2018-01-08 14:47:39 +01:00
Julien Fontanet
03028bca50 chore(Pagination): own implementation instead of react-bootstrap (#2549) 2018-01-08 14:43:50 +01:00
Julien Fontanet
b835c5bd40 chore(api): decaffeinate vm (#644) 2018-01-08 14:31:04 +01:00
Julien Fontanet
a65b1325fc chore(api): decaffeinate vbd (#642) 2018-01-08 13:56:41 +01:00
Julien Fontanet
cfcd302294 chore(api): decaffeinate vdi (#643) 2018-01-08 12:00:30 +01:00
Julien Fontanet
a601154fc7 chore(api): decaffeinate host (#641) 2018-01-08 11:48:32 +01:00
Julien Fontanet
c8669dc88f chore(package): use React 16 (#2552) 2018-01-08 09:46:08 +01:00
Julien Fontanet
82240979c2 chore(react-select): autofocus → autoFocus (#2550) 2018-01-08 09:40:35 +01:00
Julien Fontanet
db5d495105 fix(addSubscription): export as default 2018-01-05 15:52:35 +01:00
Julien Fontanet
6e8dfe8833 chore(utils): remove unused checkPropsState 2018-01-05 15:48:21 +01:00
Julien Fontanet
242d9e20c4 chore(addSubscriptions): move into own module 2018-01-05 15:48:21 +01:00
Julien Fontanet
d4e46a0696 chore(package): update dependencies 2018-01-05 13:40:06 +01:00
Julien Fontanet
d5deaf72f7 5.15.2 2018-01-04 11:52:24 +01:00
Julien Fontanet
f9c942d526 fix(Xapi#createVbd): explicitly cast to boolean (#640)
Fixes vatesfr/xo-web#2558

Necessary because Xapi objects may contains integers instead of booleans.
2018-01-04 11:49:07 +01:00
Julien Fontanet
e446eb0cd0 chore(build): fix PostCSS warning 2018-01-03 18:26:02 +01:00
Julien Fontanet
b63efe579a fix(build): temporary use stage-0
The compiled code has an issue with stage-3 and plugins
2018-01-03 15:50:08 +01:00
Julien Fontanet
f3410f1491 chore(package): remove unused redux devtool 2018-01-03 15:03:09 +01:00
Julien Fontanet
b27ac11d56 chore(jsx): remove unnecessary braces 2018-01-03 10:00:32 +01:00
Julien Fontanet
a55d73614e chore(package): missing peer dependency 2018-01-02 22:29:02 +01:00
Julien Fontanet
25cd1957c7 chore(package): update Babel conf
- preset-es2015 → preset-env
- preset-stage-0 → preset-stage-3 + handpicked plugins
2018-01-02 22:20:55 +01:00
Pierre Donias
abd97abc24 fix(xosan): beta-is-over message (#2546) 2018-01-02 21:50:40 +01:00
Julien Fontanet
6ddfd909f0 chore(package): add clean script 2018-01-02 19:01:33 +01:00
Julien Fontanet
e054eec555 chore(gulpfile): fix sourcemaps 2018-01-02 19:01:33 +01:00
Olivier Lambert
e253657770 feat(home): bulk suspend VMs (#2551)
Fixes #2547
2018-01-02 17:16:11 +01:00
Olivier Lambert
041c32a4a7 feat(vm.start): resume VM if suspended (#639) 2018-01-02 16:47:42 +01:00
Julien Fontanet
102e629e16 chore(package): update dependencies 2018-01-02 10:04:27 +01:00
Julien Fontanet
2d0e3b93cc chore(import-packages): simplify move_commit implementation 2017-12-31 17:43:05 +01:00
Julien Fontanet
668d572549 feat(import-packages): add commit mode and make it the default 2017-12-31 13:15:19 +01:00
Julien Fontanet
e023809c8c feat(import-packages): import all branches 2017-12-31 00:46:41 +01:00
Julien Fontanet
0bcabb9f0d chore(Xapi#createVdi): better implementation (#637)
- accept a VDI record as sole parameter
- accept a high level size parameter which will be parsed if necessary
- remove unused `Xapi#_createVdi()`
2017-12-29 23:26:56 +01:00
Julien Fontanet
594a9d5399 chore(Xapi#createVbd): returns undefined (#638)
The returned ref is unused for now.
2017-12-29 23:26:24 +01:00
Julien Fontanet
242a02836c 5.15.1 2017-12-29 17:26:35 +01:00
Julien Fontanet
b144382831 5.15.1 2017-12-29 17:24:16 +01:00
Pierre Donias
6936f223f3 fix(new-xosan): suggestions can be null as well (#2544) 2017-12-29 17:24:00 +01:00
Julien Fontanet
eb8dfc86ca 5.15.0 2017-12-29 16:50:51 +01:00
Pierre Donias
02c715e1cc feat(xosan): license management (#2528) 2017-12-29 16:48:21 +01:00
Julien Fontanet
7e64e1a11e 5.15.0 2017-12-29 16:09:36 +01:00
Pierre Donias
54772fad33 feat(xosan): license management (#628) 2017-12-29 16:07:49 +01:00
Olivier Lambert
8cb53b0c4e changelog for 5.15 2017-12-29 16:04:44 +01:00
Julien Fontanet
892139908b fix(Xapi#resizeVdi): XS 7.3 support (#636)
Fixes vatesfr/xo-web#2542

According to the documentation, no SR backends were supporting `resize_online`.
2017-12-29 10:20:04 +01:00
Julien Fontanet
ba6393165d fix(Xapi#moveVdi): XS 7.3 support (#635) 2017-12-29 09:57:32 +01:00
Julien Fontanet
2174a9cec7 fix(precommit hook): pass if no tests found 2017-12-28 17:19:39 +01:00
Julien Fontanet
629f68ffd7 fix(precommit hook): pass if no tests found 2017-12-28 17:18:32 +01:00
Julien Fontanet
5fe03f2934 fix(Xapi#editVm): XS 7.3 support for memory (#634)
Fixes vatesfr/xo-web#2540
2017-12-28 15:22:03 +01:00
Julien Fontanet
09e7f04794 dont use set_memory_limits if VM is running 2017-12-28 15:05:11 +01:00
Julien Fontanet
feecd51770 inline constants 2017-12-28 14:52:02 +01:00
Julien Fontanet
b5a855b2ad fix(Xapi#editVm): XS 7.3 support for memory
Fixes vatesfr/xo-web#2540
2017-12-28 14:50:11 +01:00
badrAZ
0b6bb65c17 chore(JobExecutor): use value-matcher (#633) 2017-12-28 11:51:23 +01:00
Pierre Donias
d3691313e6 chore(package): update complex-matcher (#2538) 2017-12-27 16:50:52 +01:00
Julien Fontanet
79ea50c829 feat(complex-matcher): 0.1.1 2017-12-27 16:39:57 +01:00
Julien Fontanet
8532d563de feat(complex-matcher): empty string is supported (#31) 2017-12-27 16:38:42 +01:00
Julien Fontanet
2e945e8349 chore(value-matcher): mark as public 2017-12-27 15:24:06 +01:00
Julien Fontanet
22e3037e85 feat(value-matcher): new package (#30) 2017-12-27 15:21:27 +01:00
Julien Fontanet
9aed4f6fba chore(package): use complex-matcher package (#2536) 2017-12-27 11:16:39 +01:00
Julien Fontanet
a505ded8a1 feat: run flow at root level 2017-12-27 10:49:31 +01:00
Julien Fontanet
bea7b90eb2 chore(xo-cli): update dependencies 2017-12-27 10:39:05 +01:00
Julien Fontanet
e1eb948c54 chore(package): update dependencies 2017-12-27 10:01:56 +01:00
Julien Fontanet
1b42523e2d feat(complex-matcher): new package (#28) 2017-12-22 13:08:24 +01:00
Julien Fontanet
ed7a40bc73 chore: update dependencies 2017-12-22 10:27:05 +01:00
Julien Fontanet
c8dc786008 chore: remove VM metadata export/import (#631) 2017-12-21 10:49:50 +01:00
Julien Fontanet
a6869638f5 chore(package): upgrade golike-defer to 0.4.1 (#632) 2017-12-21 09:55:13 +01:00
Julien Fontanet
3ef08d3d5e chore(package): update dependencies 2017-12-19 16:35:06 +01:00
Julien Fontanet
ef17cb1c6c fix: remove unused PropTypes 2017-12-18 17:08:38 +01:00
Julien Fontanet
ecc086f15d chore: do not use React.PropTypes directly 2017-12-18 17:00:04 +01:00
Julien Fontanet
be9eb8ce91 chore(package): update dependencies 2017-12-18 17:00:04 +01:00
Julien Fontanet
5b7a9fe969 fix(scripts/utils): ignore missing package.json 2017-12-18 14:10:13 +01:00
Julien Fontanet
97d54cab11 chore: update dependencies 2017-12-18 13:14:39 +01:00
Julien Fontanet
980a1cc205 chore(normalize-packages): remove ESLint config 2017-12-15 14:45:53 +01:00
Julien Fontanet
9517686e22 chore(normalize-packages): remove .travis.yml 2017-12-15 14:45:17 +01:00
Julien Fontanet
4905a0310a feat: use ESLint instead of standard (#630) 2017-12-15 14:18:47 +01:00
Julien Fontanet
d2f88d0a02 5.14.3 2017-12-15 14:04:42 +01:00
Julien Fontanet
76000d2563 feat(package): XenServer 7.3 support 2017-12-15 14:03:08 +01:00
Julien Fontanet
bc02d51882 feat(xen-api): 0.16.0 2017-12-15 13:59:34 +01:00
Julien Fontanet
aada9e4a33 feat(xen-api): XenServer 7.3 support (#27)
XenServer 7.3 has changed the error format.
2017-12-15 13:58:31 +01:00
Julien Fontanet
cf47a80676 chore(package): always use yarn 2017-12-14 18:51:47 +01:00
Julien Fontanet
c190067181 chore(README): always use yarn 2017-12-14 18:01:51 +01:00
Julien Fontanet
4490a2508b chore(package): update ignored files 2017-12-14 18:00:57 +01:00
Julien Fontanet
938e7704e6 chore(editorconfig): minor fixes and updates 2017-12-14 18:00:20 +01:00
Rajaa.BARHTAOUI
18ca6b935c feat(host/network): use SortedTable (#2512)
See #2416
2017-12-14 16:07:32 +01:00
Julien Fontanet
b3769019e5 fix(react-novnc): support IPv6 in URL (#2531)
Fixes #2530
2017-12-14 14:39:49 +01:00
Rajaa.BARHTAOUI
506a6b0cf4 feat(vm/network): use SortedTable (#2460)
See #2416
2017-12-14 11:42:52 +01:00
Julien Fontanet
a18df93c4f chore: remove incorrect file
This file has been added by mistake during prettier integration.
2017-12-13 16:06:57 +01:00
Julien Fontanet
d93eda34c9 feat(XapiStats): limit concurrency (#627)
Avoid major memory issues.
2017-12-12 19:22:55 +01:00
Pierre Donias
684269321b fix(select): multi select should not close on item selection (#2526)
New default behaviour introduced by react-select v1.0.0-rc.9
2017-12-12 13:10:41 +01:00
Julien Fontanet
b84ad98fd0 chore(remote-handlers): minor changes 2017-12-12 12:40:55 +01:00
Julien Fontanet
abf526f91a chore(normalize-package): remove eslint 2017-12-12 12:31:39 +01:00
Julien Fontanet
c06020745e chore(import-packages): support git URLs 2017-12-12 12:08:21 +01:00
Julien Fontanet
431b85c98f chore(package): split pretest into pretest and test 2017-12-12 12:07:06 +01:00
Julien Fontanet
299fdc19d6 chore(scripts): coding style 2017-12-12 12:06:32 +01:00
Julien Fontanet
7531a25588 feat(XapiStats): limit concurrency 2017-12-12 10:00:49 +01:00
Julien Fontanet
d8f89191e8 5.14.2 2017-12-11 15:36:37 +01:00
Julien Fontanet
d9ad53d954 fix(backupVm): remove XVA on failure (#626)
Fixes vatesfr/xo-web#2524
2017-12-11 14:40:52 +01:00
Julien Fontanet
043fc5cdfc feat(NFS): force unmount (#625)
See vatesfr/xo-web#2496
2017-12-08 17:22:27 +01:00
Rajaa.BARHTAOUI
d7eeeca268 SortedTable/groupedActions: disabled props (#2471)
* Fixes conflits

* Fixes

* Fixes
2017-12-08 15:37:19 +01:00
Pierre Donias
4c21175ca7 feat(notification/error): link to settings/logs for admins (#2521)
Fixes #2516
2017-12-07 11:08:11 +01:00
Julien Fontanet
377efcd054 feat(ButtonLink): a button which acts like a link (#2144) 2017-12-07 10:28:47 +01:00
Pierre Donias
072401f600 fix(VM/disks/attach): confusing button label (#2520) 2017-12-06 16:19:06 +01:00
Pierre Donias
1ce7d94261 feat(self/edit): add labels to each field (#2519)
Fixes #2509
2017-12-06 15:58:52 +01:00
Julien Fontanet
8178de8a6b chore: prettify non-source files 2017-12-06 13:52:12 +01:00
Julien Fontanet
eb37c7d7d8 chore(package): update prettier to 1.9.1 2017-12-06 13:47:01 +01:00
Pierre Donias
9465459ef9 fix(xoa-update): ansi_up (#2518) 2017-12-06 11:52:35 +01:00
Julien Fontanet
bf3f9b4ac2 chore(ci): test on old-LTS, LTS and stable 2017-12-05 18:37:03 +01:00
Pierre Donias
52a71cec91 fix(messages): bad prettier wrapping on some messages (#2517) 2017-12-05 17:37:53 +01:00
Julien Fontanet
4c91667d2c chore: remove dependency-check (#25) 2017-12-05 11:46:02 +01:00
Julien Fontanet
a3fe9aff94 chore(api): only set id from namespace if string 2017-12-05 09:00:07 +01:00
Julien Fontanet
ed45888d7f fix(xen-api): handle RO in createTask() and putResource() 2017-12-03 18:10:57 +01:00
Julien Fontanet
dbadc487ae chore(package): update dependencies 2017-12-03 18:10:57 +01:00
Julien Fontanet
a5b80655da chore: clean Babel configs (#24)
- avoid using stage-0
- remove deprecated preset-latest in favor of preset-env
2017-11-27 12:59:04 +00:00
Julien Fontanet
99d4789049 chore(xen-api): properly logout on disconnect() 2017-11-26 20:07:28 +00:00
Julien Fontanet
2de4163553 fix(xen-api): handle RO in callAsync() 2017-11-26 20:00:40 +00:00
Julien Fontanet
0fc0be19b2 feat(xen-api): XenApi#getRecord() 2017-11-26 20:00:40 +00:00
Julien Fontanet
3c271ffffd feat(xo-cli): prepare params 2017-11-26 20:00:40 +00:00
Julien Fontanet
155422bcb5 chore(package): remove dependency-check
Requires the code to be built.
2017-11-24 17:58:39 +01:00
Julien Fontanet
68b6dc5985 fix(xo#_watchObjects): call on start
The bug was introduced in bd18a92.
2017-11-24 17:43:12 +01:00
Julien Fontanet
1aa793886b feat(xo-server-transport-email): 0.5.0 2017-11-24 14:03:59 +01:00
Julien Fontanet
46cd2f10a5 feat(xo-server-auth-saml): 0.5.0 2017-11-24 14:02:06 +01:00
Julien Fontanet
337abe2a2b feat(xo-server-auth-ldap): 0.6.4 2017-11-24 14:00:37 +01:00
Julien Fontanet
0441103f0c feat(xo-cli): 0.10.1 2017-11-24 13:57:36 +01:00
Julien Fontanet
b5829e2484 chore(package): update dependencies 2017-11-24 13:35:51 +01:00
Rajaa.BARHTAOUI
2e1b32fadc feat(jobs/schedules): use SortedTable (#2483)
See #2416
2017-11-24 11:03:57 +01:00
Julien Fontanet
0c8f3ea824 chore(package): prepublish → prepublishOnly 2017-11-23 12:19:48 +01:00
Julien Fontanet
c23be2185a chore(package): prepublish → prepublishOnly 2017-11-23 12:19:30 +01:00
Julien Fontanet
c43ea11017 fix(api): do not log nested passwords (#624)
Fixes vatesfr/xo-web#2506
2017-11-23 11:21:06 +01:00
Julien Fontanet
bd18a9270e feat(config): run clean after import (#623) 2017-11-22 15:18:02 +01:00
Julien Fontanet
e24cba9684 feat: more normalization
- remove config.commitizen
- remove left over devDependencies[babel-eslint]
- remove scripts.commitmsg
2017-11-21 14:55:35 +01:00
Julien Fontanet
084e96be0e chore: eslint instead of standard (#22)
Custom rules:

- comma dangle
- no `var`s
- use `const` AMAP
2017-11-21 14:35:44 +01:00
Julien Fontanet
5dfefe8d35 chore: eslint instead of standard 2017-11-21 11:47:21 +01:00
Julien Fontanet
bf45cdd2b8 chore(package): update dependencies 2017-11-20 15:20:55 +01:00
Julien Fontanet
4a6ba998d4 feat(xo-server-backup-reports): 0.9.1 2017-11-20 13:55:52 +01:00
Julien Fontanet
7f953c62af chore: update human-format to 0.9.0 2017-11-20 13:53:28 +01:00
Julien Fontanet
c9412b02af chore: update dev dependencies 2017-11-20 13:52:04 +01:00
Julien Fontanet
536a9d6e50 chore(xo-server-backup-reports): remove unnecessary babel-preset-stage-0 2017-11-20 13:47:45 +01:00
Julien Fontanet
4ee0944037 feat(xo-server-backup-reports): add plugin version in footer (#23) 2017-11-20 10:20:40 +01:00
Julien Fontanet
98f5db9fbd feat: standard and jest only on committed files 2017-11-17 15:45:15 +01:00
Julien Fontanet
fd47403ec9 5.14.2 2017-11-17 14:59:08 +01:00
Julien Fontanet
bbefa3a009 5.14.1 2017-11-17 14:57:12 +01:00
Julien Fontanet
575fe300fa feat(xo-server-backup-reports): 0.9.0 2017-11-17 14:51:21 +01:00
badrAZ
137b8e7f7f feat(job/log): add merge size and speed (#2488)
Fixes #2426
2017-11-17 14:42:34 +01:00
badrAZ
4749e452c4 feat(xo-server-backup-reports): add merge size and speed (#21)
See vatesfr/xo-web#2426
2017-11-17 14:17:30 +01:00
badrAZ
0881b66ab6 feat(backups): get the merged data size and its duration for Delta backups (#618)
See vatesfr/xo-web#2426
2017-11-17 13:07:08 +01:00
Julien Fontanet
4a8c5a980a chore(xo): remove unused import 2017-11-16 17:03:50 +01:00
Julien Fontanet
233aca7911 chore(xo): replace superagent by fetch 2017-11-16 16:51:48 +01:00
Pierre Donias
50966dce5d fix(xapi-object-to-xo/vm): auto_poweron (#621)
Fixes vatesfr/xo-web#2489
2017-11-16 11:21:49 +01:00
Julien Fontanet
0e6bcefee6 feat: run clean at startup (#620)
Fixes vatesfr/xo-web#2492
2017-11-16 11:10:09 +01:00
Julien Fontanet
41ec831df0 feat(xo.clean): remove all but 1e4 most recent logs
See vatesfr/xo-web#2492
2017-11-15 11:11:32 +01:00
Julien Fontanet
0178ce0a91 fix(logs): better filters without false positives (#2468) 2017-11-15 10:50:07 +01:00
Julien Fontanet
142233453a fix(lint-staged): always create stash (#2494)
To avoid failing `git stash pop`.
2017-11-14 18:17:14 +01:00
Julien Fontanet
b12a804fb3 fix(test): eslint run 2017-11-14 16:20:12 +01:00
Julien Fontanet
3fe5efbfab feat: prettier integration (#2490) 2017-11-14 15:25:02 +01:00
Nicolas Raynaud
f33ea6c47c feat(xosan): rc1 (#608) 2017-11-13 17:58:53 +01:00
Julien Fontanet
f419ec5702 chore(package): update dependencies 2017-11-13 17:36:10 +01:00
Julien Fontanet
24b7dc1c30 feat(xen-api): 0.15.1 2017-11-13 17:25:54 +01:00
Julien Fontanet
4619e387ad chore(Xapi#createCloudInitConfigDrive): ignore all import errors
Fixes vatesfr/xo-web#2478
2017-11-13 17:18:55 +01:00
Julien Fontanet
d7d2425435 chore(Xapi#createCloudInitConfigDrive): remove useless param 2017-11-13 17:15:05 +01:00
Julien Fontanet
2c99a4db0f feat(xen-api): expose putResource URL on failure 2017-11-13 16:03:58 +01:00
Pierre Donias
d71323a67d feat(SortedTable): pass objects instead of ids to action handlers (#2476) 2017-11-09 15:10:54 +01:00
Olivier Lambert
8dd5428ef6 feat(vm.deltaCopy): add *Continuous Replication* tag to copies (#617)
Fixes vatesfr/xo-web#2473
2017-11-08 15:10:59 +01:00
Julien Fontanet
88d9111196 feat: run jest at root level 2017-11-08 15:04:07 +01:00
Julien Fontanet
8ec30ec76d chore(package): update xen-api to 0.15.0
Fibonacci backoff on XenAPI calls.
2017-11-08 11:34:24 +01:00
Julien Fontanet
eb46711e34 chore(package): update dependencies 2017-11-08 11:31:44 +01:00
Julien Fontanet
748b09d8fa feat(home): use more formatSizeShort 2017-11-08 11:18:39 +01:00
Julien Fontanet
17e9885586 feat(xen-api): 0.15.0 2017-11-08 11:02:33 +01:00
Julien Fontanet
826628b18f chore(normalize-packages): remove commitizen 2017-11-08 10:56:18 +01:00
Olivier Lambert
e6a32b53fc feat(home/VM): add sparklines in the expanded view (#2470)
Fixes #2469

* chore(home): mutualize MiniStats
2017-11-08 10:12:35 +01:00
Julien Fontanet
7ce9e8a959 chore(grid): add docs 2017-11-07 16:26:59 +01:00
Julien Fontanet
a49c9d646c fix(Travis): do not test on Node 4 2017-11-06 10:14:18 +01:00
Julien Fontanet
d7e2690430 fix(XoStore): import repair directly from level 2017-11-06 10:09:24 +01:00
Julien Fontanet
71ab2dedb9 chore(package): update dependencies 2017-11-06 10:00:38 +01:00
Julien Fontanet
b817cb86d0 5.14.1 2017-11-03 09:53:24 +01:00
Pierre Donias
3e1b2119c4 fix(new-vm): handle creation without vGPU (#2467)
Fixes #2466
2017-11-03 09:53:09 +01:00
Julien Fontanet
bfa31be3b7 5.14.0 2017-10-31 17:52:13 +01:00
Julien Fontanet
9e9027d4c6 5.14.0 2017-10-31 17:47:24 +01:00
Pierre Donias
584da2f56a feat(VM): add vGPUs support (#2463)
Fixes #2413
2017-10-31 17:46:23 +01:00
Pierre Donias
a43dfc62c2 feat(VM): create/destroy vGPUs (#615)
See vatesfr/xo-web#2413
2017-10-31 17:46:07 +01:00
Olivier Lambert
6a071942a5 feat(changelog): update changelog for 5.14 release 2017-10-31 13:48:01 +01:00
Nicolas Raynaud
ac8787e930 fix(XOSAN): missing brackets in JSX (#2454) 2017-10-30 16:59:10 +01:00
Julien Fontanet
ab60bc46cf chore(xo/deleteMessage): typo (#2461) 2017-10-30 14:52:37 +01:00
Julien Fontanet
c84f61d388 feat: standard run at root level
Simplify & uniformize standard confirmation.
Single pass for all packages, which is faster.

Unfortunately, it breaks atom's linter-js-standard.
2017-10-30 10:59:35 +01:00
Julien Fontanet
11b1ff478e feat: use Yarn workspaces
Much faster installation which is very important for CI.

We'll see if it proves difficult for deps management.
2017-10-30 10:59:35 +01:00
Julien Fontanet
ea7c44b544 feat(xen-api): implements Fibonacci backoff (#17) 2017-10-28 13:14:15 +02:00
Olivier Lambert
b67310ae75 feat(vm): add snapshot description. (#2459)
Fixes #2458
2017-10-27 14:02:11 +02:00
Julien Fontanet
56cf6fba2f feat(vm.deltaCopy): include time in replication name (#614)
Fixes vatesfr/xo-web#2431
2017-10-26 18:18:37 +02:00
Pierre Donias
020618554a feat(SortedTable/individualActions): disabled prop (#2456) 2017-10-25 11:22:48 +02:00
Julien Fontanet
38ec7ac34f 5.13.3 2017-10-24 15:51:19 +02:00
Julien Fontanet
ef9f75514f feat(xapi-objects-to-xo): add gpuGroup and vgpuType (#613)
See vatesfr/xo-web#2413
2017-10-23 15:48:08 +02:00
Olivier Lambert
bd4644dd4f use camelCase everywhere 2017-10-23 15:40:39 +02:00
Olivier Lambert
f419cd6ac8 finalize all needed XAPI to XO objects for VGPU management 2017-10-23 15:21:35 +02:00
Olivier Lambert
e714303f96 use double escape to get the right type 2017-10-23 11:57:59 +02:00
Julien Fontanet
a78151c93e feat(home): sort VMs by snapshots (#2451)
Fixes #2450
2017-10-23 11:46:04 +02:00
Julien Fontanet
285b1fb36e fix(new-vm): multiline cloud config 2017-10-23 11:39:18 +02:00
Julien Fontanet
50581c539c chore(xo-cli): use modern ES 2017-10-23 11:14:46 +02:00
Julien Fontanet
16e8c87cc6 5.13.2 2017-10-23 10:17:00 +02:00
Olivier Lambert
6eed3f2fc7 last modifications 2017-10-21 18:50:09 +02:00
Olivier Lambert
7c5000d588 feat(objects): add gpu group and vgpu type 2017-10-20 22:30:11 +02:00
Olivier Lambert
93ffb77e81 fix(vm snapshot): copyVm accepts Id (#2447)
Fixes #2446
2017-10-20 16:46:56 +02:00
Julien Fontanet
ec0dd0b174 chore(recover-account): live → leave 2017-10-20 10:14:43 +02:00
Julien Fontanet
88f6d77047 fix(vm/snapshots): reverse chronological order
Fixes #2442
2017-10-19 16:31:56 +02:00
Pierre Donias
3ff63927f3 feat(updater): troubleshooting link on updater error (#2443)
Fixes #1610
2017-10-19 10:15:34 +02:00
Julien Fontanet
a5f55c5f92 5.13.2 2017-10-18 17:53:50 +02:00
Julien Fontanet
7412a6c01b fix(constant-stream): move outside of node_modules
npm 5 correctly not package all node_modules entries, therefore breaking
xo-server package.
Stop doing this for the moment.
2017-10-18 17:53:00 +02:00
Julien Fontanet
d396593d99 5.13.1 2017-10-18 17:40:28 +02:00
Julien Fontanet
62b64ad0b6 feat(file restore): improve multiple files selection UX (#2440)
- keep select empty
- keep select open after file selection
- remove selected files from options

Fixes #2438
2017-10-18 17:34:23 +02:00
Julien Fontanet
5983ea32fd 5.13.1 2017-10-18 17:20:58 +02:00
Pierre Donias
6f33a79644 feat(patches): hide paid patches to XS-free users (#2441)
Fixes #2382
2017-10-18 17:14:46 +02:00
Pierre Donias
5716130e6f feat(patching): expose paid prop & do not install paid patches (#612)
See vatesfr/xo-web#2382
2017-10-18 17:14:41 +02:00
Olivier Lambert
67f31407d7 feat(home/host): include XS version in expanded view. Fixes #2439 2017-10-18 16:25:42 +02:00
Julien Fontanet
37f0bffcaa feat(xo-cli): 0.10.0 2017-10-17 17:14:38 +02:00
Julien Fontanet
0e6a460332 feat(xo-cli): register supports expiresIn flag
See vatesfr/xo-web#1769
2017-10-17 17:13:33 +02:00
Julien Fontanet
f05d2d0063 chore(gulpfile): do not watch node_modules 2017-10-17 17:08:05 +02:00
Julien Fontanet
28172607c6 feat(token.create): expiresIn param (#611)
Fixes vatesfr/xo-web#1769
2017-10-17 15:22:34 +02:00
Julien Fontanet
682deb4b56 chore(Scheduler): columns break under large 2017-10-16 15:36:07 +02:00
Julien Fontanet
64fac454b5 chore(Scheduler): align center 2017-10-16 15:35:38 +02:00
Julien Fontanet
cdd9eed3d8 chore(utils/scheduleFn): add comment regarding month range 2017-10-16 15:25:30 +02:00
Julien Fontanet
e9c60bc958 fix(SchedulePreview): fix month mapping (#2435)
Fix #2427
2017-10-16 15:13:25 +02:00
badrAZ
7a8c0831bd fix(backup): use retention instead of depth (#2092)
Fixes #1935
2017-10-16 10:21:47 +02:00
Julien Fontanet
0ca1af8606 feat(Scheduler): group months/days and hours/minutes 2017-10-16 10:19:18 +02:00
Julien Fontanet
34ef2700f2 fix(api): do not log password param (#610)
Fixes vatesfr/xo-web#2363
2017-10-16 10:06:24 +02:00
Julien Fontanet
e81f88e676 feat(SortedTable): snappier filter (#2430)
- lower typing debounce (500ms → 250ms)
- no more debounce on selection in filters list
- no more debounce on clear
2017-10-16 09:55:50 +02:00
Julien Fontanet
e96a8af9ef feat(scheduling): group hours in 4 rows of 6 (#2433)
Easier to understand than in 3 rows of 8.
2017-10-16 09:32:15 +02:00
Julien Fontanet
d8393d8500 feat(SortedTable): save page in URL (#2421)
Fixes vatesfr/xo-web#2405
2017-10-09 17:57:26 +02:00
Julien Fontanet
38742d0668 chore(package): update xen-api to 0.14.3
Related to vatesfr/xo-web#2418
2017-10-09 12:37:19 +02:00
Julien Fontanet
0c9f6e0923 feat(xen-api): 0.14.3 2017-10-09 12:02:11 +02:00
Julien Fontanet
56d6347209 fix(xen-api): barrier compat with XS < 6.1 (#15)
New implementation needs to modify the pool record but is simpler and does not rely on `event.inject`.

Fixes vatesfr/xo-web#2418.
2017-10-09 11:58:02 +02:00
Julien Fontanet
44b74e6135 feat(vm/snapshots): use SortedTable (#2417)
See #2416.
2017-10-09 10:13:18 +02:00
Julien Fontanet
f31417a85b fix: tests and coding style 2017-10-06 19:34:12 +02:00
Julien Fontanet
1c6967594c chore(package): update dependencies 2017-10-06 17:36:34 +02:00
Julien Fontanet
2db582339a feat(xo-cli): 0.9.1 2017-10-05 20:48:23 +02:00
Julien Fontanet
7f6386dd8c fix(xo-cli): remove incorrect change 2017-10-05 20:47:47 +02:00
Julien Fontanet
92e33efc04 Merge remote-tracking branch 'xo-server-transport-slack/master' 2017-10-05 18:18:25 +02:00
Julien Fontanet
805409cb48 chore: remove husky from packages deps 2017-10-05 18:01:00 +02:00
Julien Fontanet
93400352ca Merge remote-tracking branch 'xo-vmdk-to-vhd/master' 2017-10-05 17:58:30 +02:00
Julien Fontanet
585b943a52 Merge remote-tracking branch 'xo-server-auth-google/master' 2017-10-05 17:44:35 +02:00
Julien Fontanet
a0bf1bca8b Merge remote-tracking branch 'xen-api/master' 2017-10-05 17:36:11 +02:00
Julien Fontanet
738e3a0fbe feat(normalize-packages): remove .editorconfig and .gitignore 2017-10-05 17:32:32 +02:00
Julien Fontanet
05f3171910 feat(import-packages): script to import packages into monorepo 2017-10-05 17:30:39 +02:00
Julien Fontanet
f0771e4fed chore: update root deps
Do not use yarn workspaces for the moment because it's still quite buggy.
2017-10-05 16:15:00 +02:00
Julien Fontanet
a3cd3b3fb1 feat(xo-cli): 0.9.0 2017-10-05 15:41:14 +02:00
Julien Fontanet
323577f1ca chore(package): update dependencies 2017-10-05 15:38:49 +02:00
Julien Fontanet
d22619adc7 feat(list-objects): move filter to server-side 2017-10-05 13:30:20 +02:00
Julien Fontanet
59f8a58b21 feat(SortedTable): always use a valid page (#2403)
Fixes #2401
2017-10-04 18:08:45 +02:00
Julien Fontanet
4d1f647a89 feat(SortedTable): compacter pagination 2017-10-04 17:56:19 +02:00
Pierre Donias
86e5206b4d fix(XOSAN): ask user to restart toolstacks after installing XOSAN pack (#2404) 2017-10-04 17:55:34 +02:00
Julien Fontanet
d9ab8e83dc fix(XoBackups#deltaCopyVm): wait for the VDI exports to finish (#603)
It should prevent the creation of orphan snapshots on the source side.
2017-10-03 11:49:41 +02:00
Julien Fontanet
d5e783e7e6 chore(package): update dependencies 2017-10-02 11:42:08 +02:00
Julien Fontanet
105ede5b1d fix(SortedTable): fix item selection 2017-10-01 12:46:25 +02:00
Julien Fontanet
bb8a25cc9d 5.13.0 2017-09-29 16:06:39 +02:00
Pierre Donias
54c3d843be feat(SortedTable): keyboard shortcuts support (#2383)
Fixes #2330
2017-09-29 16:04:52 +02:00
Pierre Donias
4a1407786c feat(xosan): beta phase 2+ (#2394)
XOSAN: beta phase 2+
2017-09-29 15:24:09 +02:00
Julien Fontanet
f20604d3ad 5.13.0 2017-09-29 15:03:22 +02:00
Nicolas Raynaud
6b17e80e28 feat(xosan): beta 2+ (#601) 2017-09-29 14:46:34 +02:00
Olivier Lambert
f5e3aef86c feat(changelog): finishing changelog for 5.13 release 2017-09-29 14:00:14 +02:00
Julien Fontanet
37c8a7c2b2 fix(i18n): use utf-8 dots instead of 3 dots for ellipsis (#2393)
Fixes #2391
2017-09-29 13:39:56 +02:00
Olivier Lambert
1a788fae7e Merge branch 'next-release' into olt-dots 2017-09-29 11:45:38 +02:00
Julien Fontanet
8efc083a70 style(SortedTable): fix double props due to bad merge 2017-09-29 11:29:40 +02:00
Julien Fontanet
f196a9ebc4 feat(SortedTable): display message when no items (#2389)
Fixes #2388

Also:
- pagination is hidden when only one page (of non filtered items)
- filter is hidden when there are items
2017-09-29 11:07:47 +02:00
Olivier Lambert
06704ce467 fix(i18n): use utf-8 dots instead of 3 dots for ellipsis. Fixes #2391 2017-09-29 10:52:15 +02:00
Julien Fontanet
8524db2903 chore(SortedTable): avoid creating functions in render for rowAction (#2390) 2017-09-29 10:01:05 +02:00
Nicolas Raynaud
c996b61eae fix(pif.reconfigureIp): send '' to XAPI for null values (#607)
Fixes vatesfr/xo-web#2346
2017-09-28 19:24:39 +02:00
Julien Fontanet
60df3bc633 feat(SortedTable): ability to select ALL items (#2375)
Fixes #2324
2017-09-28 16:24:57 +02:00
Julien Fontanet
025cb6c6ca chore: update yarn.lock
Due to new releases of yarn
2017-09-28 14:56:53 +02:00
Julien Fontanet
5014b95206 feat(SortedTable): extend checkbox hitbox to the whole cell (#2385)
Fix #2329
2017-09-28 11:48:29 +02:00
Olivier Lambert
a2464fa968 feat(changelog): changelog for 5.13 release 2017-09-28 10:56:23 +02:00
Pierre Donias
033153c8b9 feat(VM/disks): handle add/remove VDI with self service (#2369)
Fixes #2348
2017-09-27 17:37:00 +02:00
Pierre Donias
1715dadf8f feat(self): handle add/remove VDI on VM (#605)
See vatesfr/xo-web#2348
2017-09-27 17:36:23 +02:00
Pierre Donias
a74a857ffe feat(remotes/new): warning message when SMB type is selected (#2384)
Fixes #2316
2017-09-27 16:42:55 +02:00
Julien Fontanet
f0fe369cfd fix(new/sr): loading with concurrent tasks (#2381) 2017-09-27 11:41:01 +02:00
Julien Fontanet
457ba5f24c feat(new/sr): auto select single IQN/LUN (#2380) 2017-09-27 11:13:43 +02:00
Julien Fontanet
d41b04313a chore(SelectIqn): cleaner code (#2378) 2017-09-27 10:47:51 +02:00
Olivier Lambert
34be34e7b3 fix(new-sr): fix lun detection (#2377)
Fixes #2374
2017-09-27 10:39:18 +02:00
Olivier Lambert
70d75d1c69 fix(iscsi): fix chapUser/chapPassword case (#606)
Fixes vatesfr/xo-web#2339
2017-09-26 19:50:25 +02:00
Julien Fontanet
dbc9fdcfa6 feat(SortedTable): add link to filter syntax doc (#2364)
Fixes #2305
2017-09-26 14:07:51 +02:00
Olivier Lambert
76b20f0fb6 fix(sparklines): pin to react-sparklines 1.6.0 to fix #2370 (#2373) 2017-09-26 10:30:17 +02:00
Julien Fontanet
80ca2052c2 feat(SortedTable): new filterUrlParam prop (#2366)
Fixes #2301
2017-09-25 17:37:33 +02:00
Julien Fontanet
3e5d8be507 feat(settings/servers): use SortedTable (#2365)
Fixes #2340
2017-09-25 12:14:59 +02:00
Julien Fontanet
1b76ad4252 feat(xo.getAllObjects): accepts filter and limit params (#604) 2017-09-25 10:56:12 +02:00
Julien Fontanet
22772a5fac feat(xo-server-recover-account): password generation support
Fixes vatesfr/xo-web#2360
2017-09-20 11:54:06 +02:00
Julien Fontanet
3bd7798eda fix(HTTPS): correctly use secure options
Extra TLS options where not used due to incorrect code, it is now fixed.
2017-09-15 11:43:02 +02:00
Julien Fontanet
a6c2622f6b chore(Xo#getObjects): remove unused code 2017-09-13 17:15:15 +02:00
Julien Fontanet
454412d9d4 chore(utils/lightSet): minor improvement in clear method 2017-09-13 14:38:40 +02:00
Julien Fontanet
114e5e1fa0 fix(xo): correctly return the promises
Fixes #2347
2017-09-13 11:42:05 +02:00
Julien Fontanet
c38d4e275b chore(package): update dependencies 2017-09-12 13:24:10 +02:00
Julien Fontanet
8cc9dea9aa chore(package): update dependencies 2017-09-11 13:04:45 +02:00
Julien Fontanet
1037083ed2 chore(JobExecutor): remove unused property 2017-09-08 17:36:44 +02:00
Nicolas Raynaud
7f87a03830 fix(XOSAN): estimated gluster size could be wrong (#602) 2017-09-08 09:59:38 +02:00
Nicolas Raynaud
d3dcf6d305 XOSAN: fix issue where displayed gluster size could be wrong. 2017-09-08 09:50:25 +02:00
Julien Fontanet
4815af35cf feat(Collection/Redis): case insensitive indexes (#600)
Fixes vatesfr/xo-web#2337
2017-09-06 16:58:52 +02:00
badrAZ
f5fc17c10e feat(jobs): fail the smart backup job when it's empty (#594)
See vatesfr/xo-web#2253
2017-09-04 16:14:20 +02:00
Julien Fontanet
06ad1dcb02 fix(XoBackups#deltaCopyVm): do not always delete base (#599)
Only when there are no VMs with the TAG_SOURCE_VM for this source VM.
2017-09-04 16:03:15 +02:00
Julien Fontanet
cb4276a2ee chore(package): update dependencies 2017-09-04 15:44:09 +02:00
badrAZ
cf5f9d4080 fix(Xapi#CreateVm): wait for the cloned vifs to be correctly deleted (#574) 2017-09-04 15:18:42 +02:00
Julien Fontanet
02439bd23d fix(SortedTable): clicking on indeterminate master unselect all 2017-09-01 16:18:05 +02:00
Julien Fontanet
f5febef10f 5.12.1 2017-08-31 18:32:01 +02:00
Julien Fontanet
f89d8d22a0 fix(vm.deltaCopy): fix initial case 2017-08-31 18:31:30 +02:00
Julien Fontanet
a9eb1f3d27 5.12.0 2017-08-31 18:06:42 +02:00
Julien Fontanet
757a1e2353 5.12.0 2017-08-31 18:04:49 +02:00
Olivier Lambert
9a0544c4aa feat(changelog): add changelog for 5.12 2017-08-31 17:59:25 +02:00
Pierre Donias
31c365313b feat(xosan): beta 2 (#2331) 2017-08-31 17:56:53 +02:00
Pierre Donias
b44017ca95 feat(pool/actions): add SR, add VM and disconnect server (#2308)
Fixes #2307
2017-08-31 17:50:59 +02:00
Nicolas Raynaud
08d7c189eb feat(xosan): beta 2 (#598) 2017-08-31 17:35:48 +02:00
Julien Fontanet
289112af27 feat(SortedTable): support range selection with shift key (#2328)
Fixes #2323
2017-08-31 17:25:48 +02:00
Julien Fontanet
4d2dc4eece feat(backups): add retention param for CR (#2325)
Fixes #1692
2017-08-31 17:21:56 +02:00
Julien Fontanet
5e11e87a0c feat(vm.deltaCopy): retention param (#597)
See vatesfr/xo-web#1692
2017-08-31 17:20:58 +02:00
Pierre Donias
712101d8d6 feat(render-xo-item): icon color to show if PIF is physically connected (#2327)
Fixes #2326
2017-08-30 17:53:10 +02:00
Pierre Donias
828ba5d448 fix(ActionBar): pending prop & undefined prop access (#2322) 2017-08-28 15:54:01 +02:00
Olivier Lambert
03a2ff8e8c fix(migrate): re-display migrate button for offline VMs (#2321) 2017-08-28 15:23:33 +02:00
Julien Fontanet
84d7ba5758 chore(package): update dependencies 2017-08-28 11:57:12 +02:00
badrAZ
75487203cf fix(job/log): remove unused function (#2319) 2017-08-24 15:24:21 +02:00
badrAZ
6ad751f079 feat(SortedTable): add grouped actions feature (#2288)
Fixes #2276
2017-08-24 15:23:40 +02:00
Pierre Donias
78ddad839e feat(home): resource sets filter dropdown (#2314)
Fixes #2303
2017-08-17 17:03:33 +02:00
Pierre Donias
812cecdcc4 fix(groups): "Add user" selector should be empty after adding a user (#2312)
Fixes #2196
2017-08-17 10:48:24 +02:00
Pierre Donias
4b49da7d8f feat(srs/advanced): total VDIs to coalesce (#2309)
Fixes #2300
2017-08-16 18:08:46 +02:00
Pierre Donias
fc8c37d66c fix(home): set to page 1 when filter changes (#2311)
Fixes #2310
2017-08-16 17:42:26 +02:00
Julien Fontanet
0d618e6477 fix(sr/disks): fix links
Thanks @Danp2 :)
2017-08-14 11:29:58 +02:00
badrAZ
d7e2b12d3d feat(tasks): add pool filter (#2295)
Fixes #2293
2017-08-11 18:01:08 +02:00
badrAZ
2ae4ed3999 fix: display "loading" while fetching objects (#2294)
Fixes  #2285
2017-08-11 17:47:12 +02:00
badrAZ
eaaf70e52e feat(logs): add a call state filter (#2290)
Fixes #2246
2017-08-11 16:07:19 +02:00
Julien Fontanet
bb4ebcd198 chore(sr/disks): fix link to snapshot 2017-08-09 17:40:16 +02:00
Julien Fontanet
083f3df29d 5.11.3 2017-08-09 16:23:20 +02:00
Julien Fontanet
429fa1553b fix(package): update xen-api to 0.14.2
Fixes vatesfr/xo-web#2304
2017-08-09 16:20:29 +02:00
Julien Fontanet
15809333c1 0.14.2 2017-08-09 16:17:51 +02:00
Julien Fontanet
815855964e chore(package): update dev dependencies 2017-08-09 16:17:28 +02:00
Julien Fontanet
5649a10c44 fix(Xapi#barrier): handle merged events 2017-08-09 16:15:38 +02:00
Julien Fontanet
a8b7431a02 feat(card/Card): allow passing extra props 2017-08-09 14:27:07 +02:00
Julien Fontanet
a5ec70f7fa chore(card/Card): remove unused propType 2017-08-09 14:26:50 +02:00
Julien Fontanet
75dfdd4854 fix(sr/disks): link to dashboard/health if snapshot parent is missing 2017-08-09 14:26:06 +02:00
badrAZ
3f29dd129f fix(vm/action-bar): no migrate when VM is halted (#2291)
Fixes #2233
2017-08-08 14:53:36 +02:00
Julien Fontanet
075f94d438 5.11.2 2017-08-08 13:05:21 +02:00
Julien Fontanet
a2b06972d0 fix(Xapi#_deleteVm): fix parallel calls
Fixes vatesfr/xo-web#2297
2017-08-08 13:03:44 +02:00
Julien Fontanet
5bb27131a3 0.14.1 2017-08-08 12:57:04 +02:00
Julien Fontanet
d06aacbe25 feat(xapi#barrier): can be done on a specific object
The function now returns an up-to-date record of the object.
2017-08-08 12:56:35 +02:00
Julien Fontanet
7b19341406 fix(xo/createSubscription): race condition on unsubscribe
Issue if the sole subscriber unsubscribe before the call finishes
2017-08-08 10:15:50 +02:00
badrAZ
838ad58946 feat(pool): ability to designate a new master (#2289)
Fixes #2213
2017-08-03 12:38:19 +02:00
Olivier Lambert
5488a2d60a Merge pull request #593 from vatesfr/setPoolMaster
feat(pool): ability to designate a new master
2017-08-03 11:37:31 +02:00
badrAZ
851182a92e feat(pool): ability to designate a new master
See vatesfr/xo-web#2213
2017-08-03 11:21:53 +02:00
Julien Fontanet
f263097008 5.11.1 2017-08-02 14:19:56 +02:00
Julien Fontanet
21fee6122f fix(vm.deltaCopy): correctly destroy VDIs (2) (#591) 2017-08-02 14:17:38 +02:00
Julien Fontanet
68a94da44c feat(vm.deltaCopy): force param to bypass VDI chains check (#592) 2017-08-02 12:41:20 +02:00
Julien Fontanet
ec4a7325da 5.11.0 2017-07-31 18:26:18 +02:00
Julien Fontanet
d9a5764dda 0.14.0 2017-07-31 18:04:32 +02:00
Julien Fontanet
9859afe8b7 feat(Xapi#barrier): waits for all events to have been received 2017-07-31 18:04:00 +02:00
Olivier Lambert
efbd588c9e feat(objects): remove a useless br (#2283) 2017-07-31 17:49:00 +02:00
Olivier Lambert
e535e064fa feat(changelog): add changelog for 5.11 version 2017-07-31 11:23:24 +02:00
Pierre Donias
448068178b feat(action-bar): implement as standard JSX (#2281) 2017-07-28 17:26:16 +02:00
Julien Fontanet
7308d9ca96 fix(xo): fix API method name 2017-07-27 10:50:46 +02:00
badrAZ
e642f54815 feat(SR/advanced): display the non-healthy vdi chains (#2273)
Fixes #2178
2017-07-26 14:03:55 +02:00
badrAZ
ebb6cb17ea fix: a user with ACLs should not be able to create a VM (#2220)
Fixes #2191 #2202
2017-07-24 11:32:59 +02:00
Pierre Donias
08a0aa9f98 fix(new-vm): disks' device property (#2271)
- existingDisks: use vbd.position as the device
- new VDIs: do not assign any device, xo-server will do it
2017-07-21 17:20:17 +02:00
Pierre Donias
8a933c98e3 fix: multiple fixes (#2272) 2017-07-21 10:36:14 +02:00
Julien Fontanet
363b22bffe feat(logs): display duration for each call (#2266) 2017-07-07 12:19:18 +02:00
Julien Fontanet
a4087530c5 0.13.7 2017-07-05 18:05:28 +02:00
Julien Fontanet
d5fae68b98 fix(cli): fix URL handling 2017-07-05 18:05:24 +02:00
Julien Fontanet
79a85659aa 5.10.5 2017-07-05 17:36:31 +02:00
Julien Fontanet
9f7c01599e chore(Xapi#connect): use auth var directly 2017-07-05 17:17:54 +02:00
Julien Fontanet
9a0090570c 0.13.6 2017-07-05 10:35:20 +02:00
Julien Fontanet
5ef22f9921 fix(Xapi#watchTask): do not parse task result
It is not always a XML-RPC value.
2017-07-05 10:35:00 +02:00
Julien Fontanet
1239f80018 feat(cli): accept credentials as part of the URL 2017-07-05 10:08:34 +02:00
Julien Fontanet
49d1d060d6 chore(README): various changes 2017-07-05 10:07:38 +02:00
Pierre Donias
eca145e113 chore(intl/locales/fr): update and new translations (#2260) 2017-07-04 14:44:52 +02:00
Julien Fontanet
04b75fb3b3 chore(intl/locales/fr): update translation 2017-07-04 12:21:27 +02:00
Julien Fontanet
582e220a02 chore(intl/messages): remove extraneous space 2017-07-04 12:21:07 +02:00
Julien Fontanet
2e87abefc4 fix(react-novnc): use correct port 2017-07-04 11:40:34 +02:00
Julien Fontanet
2cfa31609e chore(*): update dev dependencies 2017-07-04 11:07:35 +02:00
Julien Fontanet
64101c8337 chore: update dependencies 2017-07-04 10:42:44 +02:00
Julien Fontanet
241fed25a2 chore(xo-server-auth-github): remove trace dep
Conflicts with Node 8.
2017-07-04 10:42:44 +02:00
Julien Fontanet
5ea19ee56f chore(intl/locales/es): update (#2256) 2017-07-03 16:24:04 +02:00
Julien Fontanet
209b34e451 Update README.md 2017-07-03 09:25:58 +02:00
Julien Fontanet
2ee733399e 5.10.4 2017-06-30 19:34:31 +02:00
Julien Fontanet
73f228c719 Merge branch 'next-release' into stable 2017-06-30 19:34:19 +02:00
Julien Fontanet
ba79673715 5.10.3 2017-06-30 19:32:53 +02:00
Julien Fontanet
86b0962063 fix(react-novnc): url.port is not undefined when empty 2017-06-30 19:32:08 +02:00
Julien Fontanet
e2a482a6ca 5.10.2 2017-06-30 19:15:43 +02:00
Julien Fontanet
8924444cc1 fix(react-novnc): use correct var (sic) 2017-06-30 19:14:35 +02:00
Julien Fontanet
8e83b0ffd2 5.10.1 2017-06-30 19:12:55 +02:00
Julien Fontanet
451384bcdc fix(react-novnc): default ports if missing 2017-06-30 19:12:17 +02:00
Julien Fontanet
b733164c50 5.10.0 2017-06-30 18:27:46 +02:00
badrAZ
72d9d8ba86 feat(backups): optional VDI→SR mapping (#2201)
Fixes #2070
2017-06-30 18:27:31 +02:00
Olivier Lambert
7c7646c65c feat(changelog): add the last changes for 5.10 release 2017-06-30 17:37:47 +02:00
Olivier Lambert
b1c087451e feat(console): remove the tip regarding console layout issues (#2251) 2017-06-30 17:30:53 +02:00
Nicolas Raynaud
f0f72f3bdd update noVNC to latest upstream version (#1780)
Fixes #404
2017-06-30 16:55:42 +02:00
badrAZ
0ab3267541 feat(self-service): improve IP pool UI (#2228)
Fixes #2203
2017-06-30 16:38:01 +02:00
badrAZ
995e76d323 feat(job/log): add more details on a backup (#2245)
Fixes #2239
2017-06-30 16:33:31 +02:00
Olivier Lambert
62a9f805c2 feat(changelog): add one enhancement 2017-06-30 13:43:37 +02:00
Olivier Lambert
84ea95a641 feat(changelog): initial changelog for 5.10 release 2017-06-30 10:08:44 +02:00
Julien Fontanet
5e50ed15bd feat(xo-server-cloud): 0.2.1 2017-06-29 17:49:55 +02:00
Julien Fontanet
b0bff55dac fix(xo-server-cloud): reopen connection on close 2017-06-29 17:49:09 +02:00
Julien Fontanet
81cad34170 chore(xo-server-cloud): add yarn.lock 2017-06-29 17:47:08 +02:00
Julien Fontanet
c38379e229 chore(xo-server-cloud): update dependencies 2017-06-29 17:46:57 +02:00
Julien Fontanet
07945ef8a6 0.13.5 2017-06-29 15:09:17 +02:00
Julien Fontanet
35d7fa4a85 fix(Xapi#putResource): behave if close occurs before finish 2017-06-29 15:07:17 +02:00
Olivier Lambert
316de42cd9 feat(host): forget host. Fixes #1934 (#2244)
feat(host): forget host. Fixes #1934
2017-06-29 12:27:47 +02:00
Julien Fontanet
fbb6870310 0.13.4 2017-06-27 09:51:08 +02:00
Julien Fontanet
81efe25fbc chore(package): update http-request-plus to v0.4.0 2017-06-27 09:50:32 +02:00
Julien Fontanet
63d440677b fix(Xapi#*Resource): correctly link cancel token to tasks 2017-06-27 09:49:26 +02:00
Julien Fontanet
2e0df47581 chore(Xapi#putResource): no need to inject session_id in query again 2017-06-26 12:19:52 +02:00
Julien Fontanet
a84ced70a6 chore(package): update dependencies 2017-06-26 12:17:04 +02:00
Julien Fontanet
4a9498e25e 0.13.3 2017-06-26 10:03:34 +02:00
Julien Fontanet
1978e218f4 feat(Xapi#*Resource): task can be a ref to an existing task
Or a promise to a ref.
2017-06-23 21:24:27 +02:00
Julien Fontanet
2ab912c4f4 feat(Xapi#*Resource): link the cancel token with the task 2017-06-23 21:24:27 +02:00
Julien Fontanet
ca329fa2ff feat(Xapi#*Resource): use task by default if watching events 2017-06-23 21:24:27 +02:00
badrAZ
bc2256fc86 fix(vm/action-bar): always display migrate button (#2232)
Fixes #2212
2017-06-23 14:50:43 +02:00
Julien Fontanet
db122ed8c5 0.13.2 2017-06-23 11:06:48 +02:00
Julien Fontanet
28d7f106b2 feat(Xapi#putResource): opt-in task creation and watching 2017-06-23 11:05:19 +02:00
Julien Fontanet
d6e46adfde feat(Xapi#getResource): opt-in task creation and watching 2017-06-23 11:05:19 +02:00
Julien Fontanet
93109fe9b8 chore(Xapi#watchTask): reject if task has been destroyed before settling 2017-06-22 19:03:52 +02:00
Julien Fontanet
439992d96f feat(Xapi#createTask): create an ephemeral task
Ephemeral means the task is automatically destroyed when settled.
2017-06-22 18:33:22 +02:00
Julien Fontanet
f94fe0b325 0.13.1 2017-06-22 15:39:31 +02:00
Julien Fontanet
cc543ae33a chore(examples): usage for --raw 2017-06-22 15:34:08 +02:00
Julien Fontanet
5df1e62d53 chore(Xapi#putResource): always close the connection when data has been sent 2017-06-22 15:29:08 +02:00
Julien Fontanet
1dff6f81fc feat(examples): also accept UUID and name labels 2017-06-21 14:33:15 +02:00
Julien Fontanet
f0d85f4c4e fix(vm): remove unused imports 2017-06-20 19:19:29 +02:00
Julien Fontanet
1801f9cb06 feat(Home): display total disk size for each VM 2017-06-20 19:07:57 +02:00
Julien Fontanet
4be018ad15 feat(selectors/createSumBy): sum collection of items 2017-06-20 17:51:47 +02:00
Julien Fontanet
5dcf060975 chore(selectors/createPicker): avoid running collection wrapper when possible 2017-06-20 17:51:00 +02:00
Julien Fontanet
59f6b1f0c8 fix(StateButton): missing semicolons in CSS 2017-06-20 15:19:51 +02:00
Julien Fontanet
ae38a85b19 chore(package): update dependencies 2017-06-20 15:08:41 +02:00
badrAZ
324dbbcfc8 fix(modal/alert): resolve on close (#2224)
Fixes #2222
2017-06-20 15:08:33 +02:00
Julien Fontanet
ecf2d95318 fix(Xapi#watchTask): correctly handle already settled tasks 2017-06-20 15:06:43 +02:00
Julien Fontanet
a1af272180 chore(Xapi#putResource): avoid unnecessary function creation 2017-06-20 14:52:24 +02:00
Julien Fontanet
72f0793aeb fix(Xapi#putResource): consume the response stream 2017-06-20 14:42:36 +02:00
Julien Fontanet
9770b77df4 feat(sr/disks): improve filters 2017-06-20 10:41:50 +02:00
Julien Fontanet
0f91de389a fix(Health): check VBDs for orphaned VDI snapshots
VDI snapshots attached to a VM are not considered orphaned.
2017-06-19 16:41:55 +02:00
Julien Fontanet
e150be6a3e 0.13.0 2017-06-14 14:05:01 +02:00
Julien Fontanet
d71b13f2a2 feat(Xapi#putResource): handle redirects 2017-06-14 14:04:43 +02:00
Julien Fontanet
66c88b37a4 chore(package): update http-request-plus to v0.3.0 2017-06-13 17:43:30 +02:00
Julien Fontanet
a7198d2e83 chore(examples): various improvements and fixes 2017-06-13 17:40:50 +02:00
Julien Fontanet
d3584b5820 feat: expose isOpaqueRef() 2017-06-13 14:03:04 +02:00
Julien Fontanet
e2e6267dd7 fix(Xapi#putResource): handle aborted connection 2017-06-13 14:03:00 +02:00
Julien Fontanet
aa5baecdc3 feat(examples): moved into their own directory 2017-06-12 17:53:52 +02:00
Julien Fontanet
601b2aa6bb fix(Xapi#putResource): do not fail on early cancel hack 2017-06-12 17:36:48 +02:00
Julien Fontanet
d09ba38dbd feat(Xapi#constructor): url can contain credentials 2017-06-12 16:53:06 +02:00
Julien Fontanet
b847c2b7b5 chore(resources): add TODO 2017-06-12 16:53:06 +02:00
Julien Fontanet
30e44cb533 chore(Xapi#callAsync): use _sessionCall instead of call 2017-06-12 16:18:00 +02:00
Julien Fontanet
d43b83081b 0.12.3 2017-06-08 17:23:54 +02:00
Julien Fontanet
699363c548 chore(package): update promise-toolbox to v0.9.4
Fix an minor issue regarding Cancel#toString().
2017-06-08 17:21:16 +02:00
Julien Fontanet
6ea3eb4ba6 feat(Xapi#callAsync): cancellable async call 2017-06-08 17:21:16 +02:00
Julien Fontanet
4aa20b6f6a fix(Xapi#watchTask): handle already settled tasks 2017-06-08 17:21:16 +02:00
Julien Fontanet
9c8ea27238 feat(cli): auto Promise.all 2017-06-08 17:21:16 +02:00
Julien Fontanet
22c515b0e7 feat(Xapi#watchTask): returns a promise which settled when the task finishes 2017-06-08 17:21:16 +02:00
Julien Fontanet
7f5a623b37 feat(sr/general): display disks size 2017-06-08 11:59:44 +02:00
Julien Fontanet
c7cf73ff05 fix(sr/disks): difference between no VM and unknown VM 2017-06-08 11:59:08 +02:00
Julien Fontanet
4aab425cef 5.9.1 2017-06-08 10:23:34 +02:00
Julien Fontanet
0d9666639f fix(sr): unused imports 2017-06-06 17:08:12 +02:00
Julien Fontanet
6c26c09685 fix(sr/general): show VDI snaphots 2017-06-06 16:57:56 +02:00
Julien Fontanet
819f650b48 chore(sr/general): better retrieve VM associated to VDI 2017-06-06 16:57:56 +02:00
Julien Fontanet
353eba6365 fix(sr/disks): show the correct attached VM for snapshots 2017-06-06 16:57:55 +02:00
Julien Fontanet
063302b91d feat(renderXoUnknownItem): expose it 2017-06-06 16:57:55 +02:00
Julien Fontanet
562b51bc2f feat(SortedTable): can accept component instead of itemRenderer 2017-06-06 16:57:55 +02:00
Julien Fontanet
e33a6f9a05 chore(xo): use tap() from promise-toolbox 2017-06-05 15:50:16 +02:00
Danp2
b9db4e7704 fix(xo/deleteGroup): properly handle confirm rejection (#2197)
Resolve issue with canceling / exiting dialog
2017-06-05 15:48:31 +02:00
Julien Fontanet
3270d9c3a7 chore(plugins): coding style 2017-06-02 16:57:32 +02:00
Julien Fontanet
6d7399f96c fix(plugins): remove collpase button if not configurable 2017-06-02 16:57:32 +02:00
Julien Fontanet
886ef87bc5 fix(plugins): primary style on save button 2017-06-02 16:57:32 +02:00
Julien Fontanet
1e5dc9efe7 fix(json-schema-input/string): consider empty value as undefined (#2192) 2017-06-02 16:21:30 +02:00
Julien Fontanet
72a53c0c09 Revert "fix: ensure a scope is used"
This reverts commit 3fbfbb1b2687de3d7c056a6790ad735b19eb9254.

No longer necessary, this is now fixed in vatesfr/xo-server@8c7d254244
2017-06-02 16:02:36 +02:00
Julien Fontanet
28ec66bf3b fix(backups): handle object values without id prop 2017-06-02 12:11:55 +02:00
Julien Fontanet
9a5a0d7a2b fix: ensure a scope is used 2017-06-02 10:20:20 +02:00
Julien Fontanet
a18d88a3f1 chore(configuration): typo 2017-06-02 09:59:53 +02:00
Julien Fontanet
9199784a23 5.9.0 2017-05-31 18:14:51 +02:00
Julien Fontanet
7e2bd52f25 0.12.2 2017-05-31 18:06:27 +02:00
Julien Fontanet
e65dd15edc feat(transports): add plain XML-RPC as last fallback (#65) 2017-05-31 18:05:46 +02:00
Pierre Donias
c7e447db6f feat(host): update patches when joining pool (#2187)
Fixes #878
2017-05-31 17:59:11 +02:00
Pierre Donias
f81615f8b6 feat(dashboard/health): VDIs attached to control domain (#2183)
Fixes #2126
2017-05-31 16:33:37 +02:00
badrAZ
12caceb02b feat: start a VM even when forbidden (#2161)
Fixes #2119
2017-05-31 16:05:57 +02:00
Julien Fontanet
30f71ab444 feat(selectors/createDoesHostNeedRestart): use host.rebootRequired (#2179) 2017-05-31 15:33:05 +02:00
Pierre Donias
fe04481ca3 feat(xo): subscribe to missing patches instead of explicitly checking (#2182) 2017-05-31 15:02:05 +02:00
Pierre Donias
7766e8edcd Better createDoesHostNeedRestart selector 2017-05-31 14:54:07 +02:00
Olivier Lambert
31d417c9d3 feat(changelog): added info for 5.9 release 2017-05-31 13:46:29 +02:00
Pierre Donias
5ed29197cf Use host.rebootRequired boolean 2017-05-30 16:26:32 +02:00
Pierre Donias
ff5f3e12d3 feat(selectors/createDoesHostNeedRestart): use host.patchesRequiringReboot
Fixes #2124
2017-05-30 16:26:32 +02:00
badrAZ
240180405c fix(job/logs): correctly extract vm id from returned value (#2167) 2017-05-30 15:51:37 +02:00
badrAZ
edca6495fc feat(self-service): add button "Select all" to the selects (#2181) 2017-05-30 12:39:20 +02:00
BCedric
8a9b753b01 feat(host/patches): advise to patch from pool (#2130)
Fixes #2057
2017-05-29 14:52:54 +02:00
Julien Fontanet
445fc696c9 fix(backup/new): clarify enabled setting (#2177) 2017-05-29 10:39:15 +02:00
Julien Fontanet
781ffa5574 0.12.1 2017-05-26 17:50:47 +02:00
Julien Fontanet
8fe3b1a368 feat(Xapi#putResource): accept buffers 2017-05-26 17:49:14 +02:00
Julien Fontanet
492e2362be chore(utils/firstDefined): fix comment, null is considered defined 2017-05-26 15:50:28 +02:00
badrAZ
1acee209be feat(backup/new): DR previous backups can be removed first (#2173)
Fixes #2157
2017-05-26 13:34:16 +02:00
Julien Fontanet
e64dc51a17 feat(xo-cli): 0.8.4 2017-05-25 13:16:13 +02:00
Julien Fontanet
7f4df49933 chore(xo-cli): update all dependencies 2017-05-25 13:15:47 +02:00
Julien Fontanet
2bc77ee0cd feat(xo-lib): 0.9.0 2017-05-25 13:14:33 +02:00
Julien Fontanet
b25adf7f57 chore(xo-lib): update all dependencies 2017-05-25 13:08:57 +02:00
Olivier Lambert
6785c48709 feat(tasks): display task description if it exists (#2172)
Fixes #2125
2017-05-25 12:45:33 +02:00
Olivier Lambert
808e674503 feat(menu): hide About entry if non-admin (on XOA) (#2170) 2017-05-24 17:36:13 +02:00
Julien Fontanet
6b2650282d 5.8.3 2017-05-23 18:53:10 +02:00
Julien Fontanet
475be2ee30 fix(vm/advanced): behave with missing container 2017-05-23 18:52:39 +02:00
Julien Fontanet
12e1da4ef2 5.8.2 2017-05-23 18:24:21 +02:00
Julien Fontanet
780d072bb7 fix(new/vm): check pool is defined (#2169)
Fixes #2168
2017-05-23 17:38:07 +02:00
Julien Fontanet
69c48e2770 0.12.0 2017-05-23 15:47:01 +02:00
Julien Fontanet
aa934ad725 chore(package): update all dependencies 2017-05-23 15:46:53 +02:00
Julien Fontanet
8596ca607d fix(Xapi#call): mark as disconnected on network failures (#64)
Related to vatesfr/xo-web#2099
2017-05-23 15:45:16 +02:00
Julien Fontanet
643ea9e523 feat: methods to get/put an HTTP resource (#63) 2017-05-22 15:51:41 +02:00
Julien Fontanet
ce2a08373e feat(xo-server-usage-report): 0.3.2 2017-05-18 17:04:19 +02:00
Julien Fontanet
d9e2229335 fix(xo-server-usage-report): handle missing UUIDs (#12)
Should not happen but the plugin is no longer failing.
2017-05-18 16:57:13 +02:00
badrAZ
61454e2030 fix errors 2017-05-18 15:49:27 +02:00
badrAZ
6f79e8145e fix(xo-server-usage-report): test if uuid exists 2017-05-18 15:25:47 +02:00
Julien Fontanet
f7e5a5cf92 fix(Icon): prop-types → prop-types-decorator 2017-05-17 15:49:34 +02:00
Nicolas Raynaud
3574c8de5c fix(package): update react-select to 1.0.0-rc.4 (#2150)
Fixes #2142
2017-05-17 15:46:04 +02:00
Julien Fontanet
b09ab4d403 fix(Button): fix @propTypes() use 2017-05-17 15:30:36 +02:00
Julien Fontanet
60c4673992 feat(xo-server-backup-reports): 0.8.0 2017-05-17 10:32:56 +02:00
Julien Fontanet
7c597539ff feat(xo-server-backup-reports): clearer sections separation 2017-05-17 10:28:53 +02:00
Julien Fontanet
8b80c12aa4 feat(xo-server-backup-reports): better date format 2017-05-17 10:28:25 +02:00
Julien Fontanet
9c802c7b0c feat(xo-server-backup-reports): improve mail subject 2017-05-17 10:18:04 +02:00
Julien Fontanet
00c0ba9863 feat(xo-server-backup-reports): simplify section titles 2017-05-17 10:17:48 +02:00
Julien Fontanet
ca11656844 chore(xo-server-backup-reports): use globalSuccess 2017-05-17 10:17:14 +02:00
Julien Fontanet
9d27730a4a feat(xo-server-backup-reports): emphasise dt 2017-05-17 10:15:54 +02:00
Julien Fontanet
4ce0ca702c fix(xo-server-backup-reports): second symbol is lowercase 2017-05-17 10:14:06 +02:00
Julien Fontanet
242e28ddb9 feat(xo-server-backup-reports): better icons 2017-05-17 10:13:39 +02:00
Julien Fontanet
40d20b0f9c fix(xo-server-backup-reports): report on failure by default 2017-05-17 09:49:22 +02:00
Olivier Lambert
1997f4af51 feat(host): add RAM usage for memory bar in tooltip. Fixes #2149 2017-05-16 21:33:40 +02:00
Danp2
347cd063a3 Fix scanFilesError (#2153) 2017-05-16 21:08:46 +02:00
Julien Fontanet
c0cf6b2551 fix(xo-server-backup-reports): remove log 2017-05-16 17:15:02 +02:00
badrAZ
eff3221f7d feat(xo-server-backup-reports): use related schedule's timezone (#11)
Fixes vatesfr/xo-web#2133
2017-05-16 16:19:49 +02:00
Olivier Lambert
74a4519a33 fix(i18n): English typo 2017-05-16 15:20:52 +02:00
BCedric
20acf7cfb2 feat(vm/general): display when the VM was last running (#2147)
Fixes #1613
2017-05-16 15:16:44 +02:00
Julien Fontanet
be57004257 chore(xo-server-backup-reports): code cleanup (#10) 2017-05-16 12:48:47 +02:00
Julien Fontanet
99bc34b2da fix(form/toggle): remove debug trace 2017-05-15 16:48:50 +02:00
Julien Fontanet
f65b5e3ddd feat(settings/server): add click for info on error icon 2017-05-15 16:48:09 +02:00
Julien Fontanet
dc10492b84 fix(xo/connectServer): refresh subscription also in case of error 2017-05-15 16:48:08 +02:00
Julien Fontanet
6f7c10537b fix(vm/advanced): add missing key prop 2017-05-15 16:48:08 +02:00
Julien Fontanet
7f503cfc21 chore(form/toggle): simplify implementation 2017-05-15 16:48:08 +02:00
Julien Fontanet
9dbef0c20a chore(Icon): use propTypes decorator 2017-05-15 16:48:08 +02:00
Julien Fontanet
923166b4e3 feat(Icon): pass extraneous props down 2017-05-15 16:48:08 +02:00
Julien Fontanet
b420128e40 chore(settings/servers): remove useless styles 2017-05-15 16:48:08 +02:00
Julien Fontanet
7776a6ce23 5.8.1 2017-05-12 16:13:44 +02:00
Julien Fontanet
8db949734a feat(settings/servers): improve self-signed error 2017-05-12 16:07:49 +02:00
badrAZ
bb5bdfb9b2 feat(settings/servers): allow unauthorized certificates (#2148)
Fixes #2138
2017-05-12 12:01:08 +02:00
badrAZ
730ed8bc69 feat(xo-server-backup-reports): add the transmission data speed (#9)
See vatesfr/xo-web#2096
2017-05-12 11:33:18 +02:00
Julien Fontanet
26f630d9d6 0.11.0 2017-05-11 16:36:01 +02:00
Julien Fontanet
7481874ba2 feat(allowUnauthorized): accept self-signed certificates (#62)
Related to vatesfr/xo-web#2138
2017-05-11 16:35:02 +02:00
BCedric
9fac3ecd81 feat(backup/file-restore): explicit compatible backups (#2146) 2017-05-11 14:59:31 +02:00
badrAZ
52a5ce95b6 feat(xo-server-backup-reports): ability to report only failed backups (#8)
Fixes vatesfr/xo-web#2095
2017-05-09 18:28:17 +02:00
BCedric
8a84cc2627 fix: display when host is disabled (#2121)
Fixes #2098
2017-05-09 17:16:38 +02:00
Julien Fontanet
61179ec67d feat(prop-types): can also be used to set context types 2017-05-09 14:33:15 +02:00
badrAZ
59fc5955ba fix(vm/advanced): affinity host selector (#2143)
Do not remove the current affinity host from the options.

Fixes #2141.
2017-05-09 10:57:31 +02:00
Julien Fontanet
a348585e76 chore(package): update all dependencies 2017-05-08 18:34:58 +02:00
Julien Fontanet
e853ba6244 chore(BaseComponent): use explicit tests 2017-05-07 22:17:20 +02:00
badrAZ
fb40ae7264 feat(vm): ability to choose the cores per socket when creating or editing a VM (#2127)
Fixes #130
2017-05-04 16:12:17 +02:00
badrAZ
f629047be2 chore(vm/new-vm): use _linkState instead of _getOnChange (#2134) 2017-05-04 16:06:50 +02:00
Olivier Lambert
278d8adf1b fix(dashboard): compute correctly the total SR size and used space (#2132)
Fixes #2123
2017-05-03 17:12:58 +02:00
Olivier Lambert
87087d55aa feat(sr): also display unmanaged VDIs (#2131) 2017-05-03 17:07:03 +02:00
Julien Fontanet
8d135bc1fc chore: remove invoke() 2017-05-03 11:02:59 +02:00
Julien Fontanet
2c00f0ffab chore: inline isString() 2017-05-03 11:02:46 +02:00
Julien Fontanet
46e95fe7eb feat(backup/new): min timeout is 1s 2017-04-28 22:30:32 +02:00
Julien Fontanet
090c9ea4d7 5.8.0 2017-04-28 16:35:45 +02:00
Julien Fontanet
5e1d627834 0.10.0 2017-04-28 16:26:08 +02:00
Julien Fontanet
37b23bdc47 feat: JSON-RPC with fallback to XML-RPC (#50)
Better performance for XS >=7.0
2017-04-28 16:22:35 +02:00
Julien Fontanet
9e1f97811e feat(xo-server-usage-report): 0.3.1 2017-04-28 16:18:25 +02:00
Olivier Lambert
647eb7299e feat(changelog): update changelog 2017-04-28 16:06:47 +02:00
Olivier Lambert
027652e80a feat(changelog): release 5.8 2017-04-28 11:35:40 +02:00
badrAZ
185d380c36 feat(vm/advanced): ability to switch between Cirrus/Standard VGA adapters (#531) (#2091)
Fixes #158
2017-04-27 17:07:54 +02:00
Olivier Lambert
9008b5c4e7 fix(dashboard): flip usage/total. Fixes #2115 2017-04-26 16:42:40 +02:00
Julien Fontanet
f5ad59803e fix(Wizard): take care of falsy children 2017-04-26 12:43:08 +02:00
Pierre Donias
81d1d7ba13 feat(XOSAN): ask user to restart toolstacks after pack installation (#2114) 2017-04-25 16:29:16 +02:00
Julien Fontanet
3328e71805 fix(backup/new): correctly edit schedule.enabled 2017-04-25 15:04:08 +02:00
Julien Fontanet
665fc2b7f9 fix: no longer compatible with Node 4 2017-04-25 15:01:09 +02:00
badrAZ
dfd17bc96c fix(xo-server-usage-report): hosts missing patches (#7)
Fixes vatesfr/xo-web#2106
2017-04-25 14:57:17 +02:00
Julien Fontanet
d7e3dbac26 fix(spelling): VDB → VBD 2017-04-25 14:32:46 +02:00
Olivier Lambert
905182bf2e feat(vm/disks): boot order only for HVMs and devices cannot be non-bootable (#2113)
Fixes #2015
2017-04-25 14:31:41 +02:00
Julien Fontanet
a0146290ee fix(package): downgrade resect to 2.5.4
Since reselect 3, selectors are pure which is incompatible with our use of inputs via closures:

```js
_getFoo = createSelector(
  () => this.props.bar,
  () => this.state.baz,
  (bar, baz) => /* ... */
)
```
2017-04-25 14:14:04 +02:00
Julien Fontanet
173aa22432 fix(intl/messages): correctly format numbers (#2112) 2017-04-25 12:29:56 +02:00
Julien Fontanet
9e5b871ebe chore(Wizard): use React.Children.map 2017-04-25 12:00:44 +02:00
Julien Fontanet
8824ce55ec chore(package): update some dependencies 2017-04-25 12:00:44 +02:00
Olivier Lambert
155edf5533 feat(dashboard): fix power test and remove users link for non-admins (#2111)
Fixes #2108
2017-04-25 12:00:34 +02:00
Olivier Lambert
6d06e1f89d feat(Menu): remove About if non admins (#2110)
Fixes #2109
2017-04-25 11:29:47 +02:00
Julien Fontanet
6d1e2c47d3 5.7.10 2017-04-24 17:53:00 +02:00
Julien Fontanet
8b9b0346cb chore(backup/new): do not send unnecessary job props 2017-04-24 17:51:13 +02:00
Julien Fontanet
0d11817e3f 5.7.9 2017-04-24 15:50:35 +02:00
Julien Fontanet
a8cb209717 chore(backup/new): clarify timeout meaning 2017-04-24 15:49:43 +02:00
Olivier Lambert
cf45ffddf1 feat(sr/disks): provide filters for snapshots (#2103)
Fixes #2102
2017-04-24 15:26:29 +02:00
Pierre Donias
2e0ea51c30 fix(dashboard): replace unused labelId by tooltip (#2100)
Fixes #2090
2017-04-21 17:41:51 +02:00
Julien Fontanet
0f7f8c7330 chore(Combobox): use uncontrollableInput 2017-04-20 12:08:16 +02:00
Julien Fontanet
808f72409f fix(home): replace history when setting initial filter 2017-04-19 17:19:14 +02:00
Julien Fontanet
f8e2d29372 chore(Button): own implementation instead of react-bootstrap (#2089) 2017-04-18 10:12:02 +02:00
Julien Fontanet
22dec27c65 chore(package): update standard to v10 (#2067) 2017-04-13 17:34:49 +02:00
Julien Fontanet
89b3806a7a fix(vm/action-bar): pending status for copy 2017-04-13 17:34:20 +02:00
Julien Fontanet
b6bedf9253 chore(ButtonGroup): own implementation instead of react-bootstrap 2017-04-13 14:43:32 +02:00
Julien Fontanet
0d4983043b feat(vm/tab-snapshots): add pending status on new snasphot 2017-04-13 14:16:07 +02:00
Julien Fontanet
f9ff3fe168 fix(vm/tab-disks): fix StateButton prop 2017-04-13 14:16:07 +02:00
Julien Fontanet
4a25c5323f feat(servers): add pending status 2017-04-13 14:16:07 +02:00
Julien Fontanet
9b4e2d3bb8 feat(vm/action-bar): add pending status 2017-04-13 14:16:07 +02:00
Julien Fontanet
3915efcf92 feat(ActionButton): add pending prop 2017-04-13 14:16:07 +02:00
Julien Fontanet
4591ff8522 chore(ActionButton): do not reassign redirectOnSuccess 2017-04-13 14:16:07 +02:00
Julien Fontanet
e3491797f3 chore(ActionButton): do not use React.PropTypes directly 2017-04-13 14:16:07 +02:00
Julien Fontanet
6eee167675 chore(ActionButton): props documentation 2017-04-13 14:16:07 +02:00
Julien Fontanet
16b965b28a chore(ActionButton): use relative import for Icon 2017-04-13 14:16:07 +02:00
Julien Fontanet
5125410efd chore(ActionButton): do not use react-bootstrap 2017-04-13 14:16:07 +02:00
Julien Fontanet
abf73193fd feat(xo-cli): 0.8.3 2017-04-13 13:57:57 +02:00
karolsok
1a4da2a8de feat(intl): improve pl translation (#2088) 2017-04-13 09:50:29 +02:00
Julien Fontanet
991fbaec86 5.7.8 2017-04-12 17:32:37 +02:00
Pierre Donias
fb399278b3 fix(new-vm): add network predicate in VIF item (#2087)
Fixes #2086
2017-04-12 17:32:00 +02:00
Julien Fontanet
b868092365 fix(vms/new): only display Shared checkbox in resource set
Fixes #2061
2017-04-12 17:07:00 +02:00
Pierre Donias
80fdc6849f fix(XOSAN): use new pack format to check if XOSAN pack is installed (#2085) 2017-04-12 16:53:08 +02:00
karolsok
25ffcb952b fix(user/lang selector): fix Polski spelling (#2083) 2017-04-12 12:33:28 +02:00
Julien Fontanet
5ae1488864 0.2.0 2017-04-12 10:01:34 +02:00
Julien Fontanet
fb3ff165db fix: fix URLs 2017-04-12 10:01:21 +02:00
Julien Fontanet
cdf59bb877 chore(package): update all dependencies 2017-04-12 10:00:30 +02:00
Julien Fontanet
b6371dde23 feat: scope is now configurable (#23)
Fixes #1 as well

Thanks @Maelstrom96
2017-04-12 09:52:17 +02:00
Julien Fontanet
083ac1e2d6 5.7.7 2017-04-11 17:02:51 +02:00
Julien Fontanet
5a4b553a60 fix(form/Toggle): onChange now emits the raw value
Fixes #2080
2017-04-11 16:54:13 +02:00
Julien Fontanet
b1135ef566 fix(backup/new): do not send timeout=null on creation 2017-04-11 16:38:17 +02:00
Julien Fontanet
1928d1e00f chore(backup/new): remove now unnecessary code 2017-04-11 16:33:30 +02:00
Julien Fontanet
a369f7f387 fix(backup/new): wrap tags in array
Fixes #176
2017-04-11 16:12:08 +02:00
Olivier Lambert
33d9801dfe feat(i18n): add Polish language, fixes #2079 2017-04-11 08:51:44 +02:00
Julien Fontanet
8c7a031cca chore: coding style 2017-04-10 17:32:38 +02:00
Julien Fontanet
9484d87e76 chore(backup/new): clearer timeout label 2017-04-10 17:24:53 +02:00
Julien Fontanet
4b6822d6e5 fix(backup/new): default owner is current user 2017-04-10 17:23:10 +02:00
Julien Fontanet
7241a0529b fix(utils/addSubscription): only use setState() when mounted 2017-04-10 17:05:50 +02:00
Julien Fontanet
66083b4e50 fix(backup/new): timeout should be in seconds
Fixes #2076
2017-04-10 16:47:04 +02:00
karolsok
f631b3cc64 feat(intl): pl translation (#2068) 2017-04-10 16:07:01 +02:00
Julien Fontanet
8f4a43de75 feat(xo-server-transport-email): 0.4.2 2017-04-10 11:32:29 +02:00
Julien Fontanet
e2d4a41d9a fix(xo-server-transport-email): fix From header
Fix vatesfr/xo-web#2074
2017-04-10 11:32:13 +02:00
Julien Fontanet
bb58d9b4d6 5.7.6 2017-04-07 16:16:06 +02:00
Julien Fontanet
93ebff1055 fix(backup/new): default to non smart backup 2017-04-07 16:12:51 +02:00
Julien Fontanet
08aec1c09a fix(backup/new): job creation was broken 2017-04-07 16:10:56 +02:00
Julien Fontanet
8ca98a56fe 5.7.5 2017-04-07 15:52:13 +02:00
Julien Fontanet
705f53e3e5 fix(scheduling): timezone selection 2017-04-07 15:51:49 +02:00
Julien Fontanet
adaf069d20 5.7.4 2017-04-07 15:27:46 +02:00
Julien Fontanet
d7be7d8660 fix(select-objects): do not treat empty string as a value (2) 2017-04-07 15:25:41 +02:00
Julien Fontanet
faddee86b6 fix(select-objects): do not treat empty string as a value 2017-04-07 15:23:27 +02:00
Julien Fontanet
c4fcc65d16 fix(backup/new): coding style 2017-04-07 15:17:51 +02:00
Julien Fontanet
890631d33b fix(select-objects): correctly handle incorrect values with non-multi 2017-04-07 15:17:32 +02:00
Julien Fontanet
8e8145bb48 chore(backup/new): controlled inputs (#2072) 2017-04-07 15:02:53 +02:00
Julien Fontanet
d73d6719a5 5.7.3 2017-04-06 19:30:33 +02:00
Pierre Donias
3419bee198 feat(pack,patch): support 7.1 packs/patches format (#2069)
Fixes #2058
2017-04-06 19:05:51 +02:00
Julien Fontanet
4368fad393 fix(react-novnc): do not error if canvas is not mounted 2017-04-06 17:28:29 +02:00
badrAZ
ab93fdbf10 feat: Display a warning when the CD drive is not completely installed (#2066)
Fixes #2064
2017-04-06 15:22:42 +02:00
Julien Fontanet
8fd7697a45 fix(vm/disks): attach/create disk for non-PV VM 2017-04-06 12:15:22 +02:00
badrAZ
1121a60912 feat(host/network): use StateButton (#2063)
Fixes #2060
2017-04-06 09:58:41 +02:00
Julien Fontanet
d2af0152d0 feat(xo-server-transport-email): 0.4.1 2017-04-06 09:38:34 +02:00
Julien Fontanet
e7b4bd2fe4 5.7.2 2017-04-05 15:07:39 +02:00
Julien Fontanet
fcd8bdd1b3 chore(backup/new): simplify smart-backup condition 2017-04-05 14:52:52 +02:00
badrAZ
e6f140f575 fix(select-objects): display missing objects (#2059)
Fixes #2052
2017-04-05 14:52:21 +02:00
Julien Fontanet
37f825ab6d chore(package): use passport-google-oauth20 directly 2017-04-03 10:59:11 +02:00
Julien Fontanet
bfe4c45fcf fix(xo/configurePlugin): do not swallow error 2017-04-03 10:31:21 +02:00
Julien Fontanet
f95370124b 5.7.1 2017-03-31 18:05:29 +02:00
Julien Fontanet
2564343816 fix(xo-json-schema-input/vm): controlled mode 2017-03-31 18:03:35 +02:00
Julien Fontanet
03734eb761 fix(logs): do not fail on non-string params 2017-03-31 18:03:35 +02:00
Julien Fontanet
92104f4ab7 feat(xo-server-usage-report): 0.3.0 2017-03-31 17:03:14 +02:00
Julien Fontanet
408a2498d0 feat(xo-server-backup-reports): 0.7.0 2017-03-31 17:02:23 +02:00
Julien Fontanet
29d63a9fdd 5.7.0 2017-03-31 16:36:40 +02:00
Julien Fontanet
ca94b236a8 feat(settings/plugins): easier edition 2017-03-31 16:35:14 +02:00
Julien Fontanet
fa1ec30ba5 chore(json-schema-input): controlled inputs (#2001) 2017-03-31 16:21:54 +02:00
Julien Fontanet
8d473001aa feat(xo-server-transport-email): 0.4.0 2017-03-31 15:03:44 +02:00
Julien Fontanet
ceaf0bd745 feat(xo-server-transport-email): finer SSL/TLS config 2017-03-31 15:01:11 +02:00
Julien Fontanet
a96849bc89 chore(xo-server-transport-email): update all deps 2017-03-31 15:00:38 +02:00
Olivier Lambert
2b1423aebe fix(changelog): it seems we are in 2017. 2017-03-31 14:55:56 +02:00
Pierre Donias
373332141f fix(pool/packs): starter plan required to install packs (#2055) 2017-03-31 11:01:17 +02:00
Olivier Lambert
ecf2cf15b5 fix(changelog): typo in 5.7 release 2017-03-31 10:32:50 +02:00
Olivier Lambert
4ee0831d93 feat(changelog): updates for 5.7 2017-03-31 10:31:11 +02:00
Pierre Donias
7df2a88c13 feat(xosan/pack): check XS version requirement (#2054) 2017-03-31 10:18:43 +02:00
Olivier Lambert
3d52556c67 feat(changelog): updates for 5.6 2017-03-31 10:11:38 +02:00
badrAZ
437b160a3f feat(servers): add label property (#2051)
Fixes #1965
2017-03-29 16:23:51 +02:00
Pierre Donias
5c87b82e0c feat(new-vm,vm): select an affinity host (#2039)
See #1983
2017-03-29 14:07:55 +02:00
Julien Fontanet
182b7ae84d fix: commitmsg instead of commit-msg 2017-03-29 13:40:10 +02:00
Julien Fontanet
e6e254bd86 chore(xo-cli): update dependencies 2017-03-29 13:39:31 +02:00
Julien Fontanet
3b4e7a0bfe feat(xo-cli): ask password if not provided 2017-03-29 13:30:33 +02:00
Julien Fontanet
a0887bb5b3 fix: do not use yarn test 2017-03-29 13:19:20 +02:00
Julien Fontanet
5c6a592aba chore: update dependencies 2017-03-29 13:18:09 +02:00
badrAZ
7f2bc79d5f feat(ActionButton): improve error reporting (#2050)
Fixes #2048
2017-03-29 12:03:19 +02:00
Pierre Donias
837a61acf3 fix(home): not visible items should never be selected (#2042)
Fixes #2027
Fixes #2035
2017-03-29 10:53:31 +02:00
badrAZ
5971eed72a feat(jobs): configure job timeout (#2043)
Fixes #1956
2017-03-29 10:39:29 +02:00
Julien Fontanet
c8c0b24420 feat(xo-server-auth-ldap): 0.6.3 2017-03-28 16:21:42 +02:00
Julien Fontanet
0da5d4376d feat(xo-server-auth-ldap): example with group filtering 2017-03-28 16:21:42 +02:00
Pierre Donias
1b8224030b fix(ipPools): prevent creating 2 IP pools with the same name (#2041)
Fixes #1731
2017-03-24 12:26:52 +01:00
Pierre Donias
ed3ec3fa8b fix(vm/disks): do not show bootable flags for non PV VMs (#2040)
Fixes #1996
2017-03-24 11:49:46 +01:00
Pierre Donias
aa98ca49e5 feat(locales): Hungarian (hu) (#2038)
Fixes #2019
2017-03-24 10:36:03 +01:00
badrAZ
44d35c2351 feat: more uses of StateButton (#2034) 2017-03-23 17:46:26 +01:00
badrAZ
df8eb7a000 feat({backup,job}/overview): clearer state (#2023)
Fixes #1958
2017-03-23 09:42:23 +01:00
Julien Fontanet
ac061c8750 chore(backup/new): improve description of report 2017-03-22 12:13:35 +01:00
Julien Fontanet
656d3e55ac feat(backup/new): report on failure by default 2017-03-22 12:09:13 +01:00
greenkeeper[bot]
47f3788f55 fix(package): update ms to version 1.0.0 (#61)
https://greenkeeper.io/
2017-03-19 22:48:05 +01:00
badrAZ
840a236e61 feat(xo-server-backup-reports): group failed/successful VMs (#6)
Fixes vatesfr/xo-web#1950
2017-03-17 17:01:05 +01:00
Julien Fontanet
50641287f8 fix(XoApp): wait for signin before show pages 2017-03-17 14:48:33 +01:00
Julien Fontanet
0bc072aa65 feat(Home): add a None filter 2017-03-17 14:26:21 +01:00
Julien Fontanet
9d7d665520 chore(Home#_getDefaultFilter): cleaner code 2017-03-17 14:26:21 +01:00
Julien Fontanet
819ea94e7b fix(xo): keep user in store up to date 2017-03-17 14:26:21 +01:00
badrAZ
40753568df fix(settings/remotes): no duplicate names (#2021)
Fixes #1879
2017-03-17 14:11:15 +01:00
badrAZ
b07b998304 fix(xo-server-usage-report): add name for all objects (#5)
Fixes vatesfr/xo-web#2017
2017-03-16 18:00:23 +01:00
badrAZ
8793aed561 feat(home): improve inter-types linkage (#2015)
Fixes #2012
2017-03-16 10:11:52 +01:00
Julien Fontanet
377a50bc09 fix: minor warnings 2017-03-15 17:02:03 +01:00
Julien Fontanet
fe5a43fbdf chore: update yarn.lock 2017-03-15 16:09:17 +01:00
badrAZ
7f44220220 feat(new VM): share a VM (#2013) 2017-03-15 14:38:28 +01:00
greenkeeper[bot]
0df1610ca9 chore(package): update gulp-csso to version 3.0.0 (#2009)
https://greenkeeper.io/
2017-03-14 14:51:53 +01:00
Julien Fontanet
24c8b9e02d chore(auto-controlled-component): remove base-component dep 2017-03-14 11:43:47 +01:00
Pierre Donias
01b311f2ba fix(new-vm): remove bootable option (#2008)
Fixes #2007
2017-03-14 11:27:49 +01:00
Pierre Donias
a2bb3182f4 feat(backup/logs): show job tag in table (#2005)
Fixes #1982
2017-03-14 10:54:39 +01:00
Pierre Donias
c86e15a310 feat(xo/utils/getDefaultNetworkForVif): match network with same VLAN (#1997)
Fixes #1990
2017-03-13 18:03:14 +01:00
Julien Fontanet
862e5a95e7 fix(package): update babel-plugin-lodash 2017-03-09 17:51:47 +01:00
Julien Fontanet
73e2c7e849 chore(package): use babel-plugin-dev 2017-03-09 17:50:08 +01:00
Julien Fontanet
0b0937e233 chore(base-component): remove shallow-equal dep 2017-03-09 15:22:52 +01:00
Julien Fontanet
6bf114859f chore(base-component): remove invoke dep 2017-03-09 15:20:14 +01:00
Julien Fontanet
db6d67eeb7 feat(JsonSchemaInput/EnumInput): handle enumNames 2017-03-08 18:08:59 +01:00
Julien Fontanet
e820b13f9f fix(xo-cli): add final newline for --list-objects 2017-03-08 18:02:12 +01:00
Julien Fontanet
63be8afd35 chore(README): reverse XenServer versions order 2017-03-08 15:00:01 +01:00
Olivier Lambert
1166db7834 chore(README): add 7.1 and fix XenServer (#60) 2017-03-08 14:59:03 +01:00
badrAZ
3662f4f256 fix(xo-server-usage-report): handle renamed VMs (#3) 2017-03-08 09:56:45 +01:00
Julien Fontanet
a345d89aac fix(home): changing type reset paging
Fixes #1993
2017-03-06 15:47:42 +01:00
Pierre Donias
e8f8ebb112 feat(XOSAN): select suggestion, SVG graph (#1991) 2017-03-06 12:01:38 +01:00
Julien Fontanet
b03335eb94 feat(xo-common): 0.1.1 2017-03-04 16:11:32 +01:00
Julien Fontanet
31e3677111 fix(api-errors): correctly forwards all params 2017-03-04 16:10:37 +01:00
badrAZ
9bc1a51def feat(xo-server-usage-report): add VM names (#2) 2017-03-03 13:26:24 +01:00
Julien Fontanet
d215885dab chore(xo-server-usage-report): remove unused files 2017-03-02 21:04:49 +01:00
Julien Fontanet
1dad5b5c3a 5.6.3 2017-03-02 19:07:29 +01:00
Pierre Donias
5cc5ee4e87 fix(XOSAN): XS v7.0 required to install XOSAN (#1981) 2017-03-02 17:38:55 +01:00
Julien Fontanet
68a1c93fbb chore(xo-server-usage-report): fix URLs 2017-03-02 16:36:02 +01:00
Julien Fontanet
9c6302fa50 Merge remote-tracking branch 'xo-server-usage-report/master' 2017-03-02 16:30:23 +01:00
Julien Fontanet
d60440e512 chore(xo-server-cloud): fix homepage URL 2017-03-02 16:27:55 +01:00
Julien Fontanet
957b9319cb fix: coding style 2017-03-02 16:21:30 +01:00
Julien Fontanet
9a28b9d1f1 0.2.2 2017-03-02 16:20:36 +01:00
Julien Fontanet
543d061251 chore: add headers to template 2017-03-02 16:20:36 +01:00
Julien Fontanet
acba90b293 feat: minify HTML 2017-03-02 16:20:36 +01:00
Julien Fontanet
8992e9988f chore: various updates 2017-03-02 16:20:36 +01:00
Julien Fontanet
3ce87b9cb3 fix: inject image directly in HTML 2017-03-02 16:20:36 +01:00
Julien Fontanet
cbe7b3046c chore: better compressed xo.png 2017-03-02 16:20:36 +01:00
Julien Fontanet
62344cb814 chore: remove unused logo.png 2017-03-02 16:20:36 +01:00
Julien Fontanet
72d45a5fd2 0.2.1 2017-03-02 16:20:36 +01:00
Julien Fontanet
c4e4dd501d 0.2.0 2017-03-02 16:20:36 +01:00
Julien Fontanet
e8d2b32a14 5.6.2 2017-03-01 17:09:19 +01:00
Julien Fontanet
f492909e42 fix(linting): ignored files go into /.gitignore 2017-03-01 15:19:39 +01:00
greenkeeper[bot]
3d96765b1f fix(package): update event-to-promise to version 0.8.0 (#57)
https://greenkeeper.io/
2017-03-01 11:15:07 +01:00
Pierre Donias
7ea17750a1 fix(pool/patches): disable patching for free plan (#1972) 2017-03-01 10:13:09 +01:00
greenkeeper[bot]
02d052c071 chore(package): update standard to version 9.0.0 (#19)
https://greenkeeper.io/
2017-03-01 00:53:36 +01:00
greenkeeper[bot]
4c52fe11d3 chore(package): update standard to version 9.0.0 (#56)
https://greenkeeper.io/
2017-03-01 00:18:56 +01:00
Julien Fontanet
663e1f1a4b fix(menu): XOSAN only displayed to admins
Fixes #1968
2017-02-28 17:54:21 +01:00
Julien Fontanet
079310c67e fix(store/reducer/object): missing part of previous fix 2017-02-28 17:01:36 +01:00
Julien Fontanet
5cf7f1f886 fix(store/reducer/object): handle type change
Fixes #1967
2017-02-28 16:14:07 +01:00
Julien Fontanet
c70d92cf09 chore(package): update all dependencies 2017-02-28 11:07:23 +01:00
Julien Fontanet
4590bed56e chore(package): use stage-3 instead of stage-0 2017-02-28 11:06:25 +01:00
Julien Fontanet
7c00d118f3 feat: remove html-pdf
Simply send HTML reports for now.
2017-02-28 11:04:48 +01:00
Julien Fontanet
9f64af859e chore(package): update react-select to v1.0.0-rc.3 2017-02-28 10:44:04 +01:00
Julien Fontanet
007aa776cb chore(package): update index-modules to v0.3.0 2017-02-28 10:33:12 +01:00
Julien Fontanet
66bc092edd chore(package): update husky to v0.13.1 2017-02-28 10:30:44 +01:00
Julien Fontanet
140a88ee12 chore(package): update jest to v19.0.2 2017-02-28 10:29:44 +01:00
Julien Fontanet
68e37fff79 feat(xo-server-transport-email): 0.3.3 2017-02-27 15:43:18 +01:00
Julien Fontanet
6958e71efd chore(xo-server-transport-email): no longer needs lodash 2017-02-27 15:42:04 +01:00
Julien Fontanet
d0618182d1 feat(xo-server-transport-email): test also sends an attachment 2017-02-27 15:42:04 +01:00
Julien Fontanet
e8891e27dd fix(typo): iterface → interface 2017-02-27 15:42:04 +01:00
Julien Fontanet
adb80933ee chore(package): make package publishable 2017-02-27 14:03:24 +01:00
Julien Fontanet
23b942c7da fix(package): use julien.fontanet@vates.fr as author 2017-02-27 14:03:16 +01:00
Julien Fontanet
7eef7d4636 fix(package): license is AGPL3 2017-02-27 14:02:54 +01:00
Julien Fontanet
f42758938d fix(package): migrate ghooks→husky config 2017-02-27 11:41:31 +01:00
Julien Fontanet
e19fd81536 chore: update yarn.lock 2017-02-27 11:40:28 +01:00
Julien Fontanet
73835ded96 chore(store/actions/createAction): minor optimizations 2017-02-27 11:37:56 +01:00
Julien Fontanet
1ec1a8bd94 chore(package): update superagent to version 3.5.0 (#1962)
Closes #1947

https://greenkeeper.io/
2017-02-27 11:34:57 +01:00
greenkeeper[bot]
f0b6d57ba8 chore(package): update modular-css to version 4.1.1 (#1952)
https://greenkeeper.io/
2017-02-27 11:33:12 +01:00
Julien Fontanet
72baa1a786 feat(xo-server-cloud): 0.2.0 2017-02-23 19:58:22 +01:00
Julien Fontanet
4d72569030 feat(xo-server-cloud): retry connecting to xoa-updater 2017-02-23 19:42:53 +01:00
Julien Fontanet
f9a3ad14d1 5.6.1 2017-02-23 18:39:04 +01:00
Pierre Donias
1b86f533f7 feat(XOSAN) (#1955) 2017-02-23 18:34:20 +01:00
Pierre Donias
532a368606 feat(xo-server-cloud): new plugin (#1) 2017-02-23 18:04:03 +01:00
greenkeeper[bot]
6c4178e107 chore(package): update jest to version 19.0.0 (#54)
https://greenkeeper.io/
2017-02-21 10:54:36 +01:00
Julien Fontanet
05a68030b6 feat(xo-cli): use | between types in commands listing 2017-02-17 11:28:51 +01:00
greenkeeper[bot]
46416fb026 chore(package): update notifyjs to version 3.0.0 (#1940)
https://greenkeeper.io/
2017-02-15 12:41:38 +01:00
Julien Fontanet
c5f3228ba7 chore(package): use husky instead of ghooks 2017-02-15 10:50:00 +01:00
Julien Fontanet
54ed37c95d chore: update yarn.lock 2017-02-14 15:21:44 +01:00
Julien Fontanet
fd79b47d9e fix(tasks): do not break on unknown host 2017-02-14 15:13:37 +01:00
greenkeeper[bot]
be8333824b chore(package): update browserify to version 14.1.0 (#1938)
https://greenkeeper.io/
2017-02-14 09:05:21 +01:00
Julien Fontanet
db3728f9e4 feat(xo-server-auth-ldap): 0.6.2 2017-02-13 17:45:53 +01:00
Julien Fontanet
ca2d3f5b48 fix(xo-server-auth-ldap): correctly use previous values for booleans 2017-02-13 17:44:34 +01:00
Julien Fontanet
f3a992a55f chore(xo-server-auth-ldap): use lodash and promise-toolbox utils 2017-02-13 17:44:09 +01:00
Julien Fontanet
b5d1e7c459 chore(xo-server-auth-ldap): clarify bind.dn description 2017-02-13 17:09:41 +01:00
Julien Fontanet
eecd89772f chore(xo-server-auth-ldap): remember optional inputs 2017-02-13 16:58:27 +01:00
Julien Fontanet
02d1fb436d 0.10.0-2 2017-02-13 15:52:26 +01:00
Julien Fontanet
1c97bf9019 0.10.0-1 2017-02-13 15:50:45 +01:00
Julien Fontanet
bfc4bb1f4c fix(package): commitmsg hook 2017-02-13 15:50:22 +01:00
Julien Fontanet
ccdce32562 chore(package): update all dependencies 2017-02-13 15:50:09 +01:00
Julien Fontanet
87fdcf14e5 feat(Xapi#_rawCall): add method to error object 2017-02-13 15:47:09 +01:00
greenkeeper[bot]
a0570f41fb fix(package): update fs-promise to version 2.0.0 (#27)
https://greenkeeper.io/
2017-02-13 10:36:44 +01:00
Julien Fontanet
5fd42bf216 feat: new vhd-cli package 2017-02-07 19:24:07 +01:00
Julien Fontanet
55daffc791 fix(pool): predicate for host to add is now dynamic (#1923) 2017-02-07 11:17:33 +01:00
Julien Fontanet
3e55d8d9df fix(README): issues should be reported on xo-web's tracker 2017-02-02 16:00:21 +01:00
Julien Fontanet
d9f4a196d0 feat(xo-server-auth-ldap): 0.6.1 2017-02-02 15:55:19 +01:00
Julien Fontanet
768ef8a316 chore(xo-server-auth-ldap): update all deps 2017-02-02 15:49:29 +01:00
Julien Fontanet
a478d02e5d fix(xo-server-auth-ldap): handle connection failures 2017-02-02 15:49:27 +01:00
Julien Fontanet
b98a7de3ae chore(xo-server-auth-ldap): use promise-toolbox 2017-02-02 15:49:25 +01:00
Pierre Donias
375baf7fe5 feat(home): link to VM's resource set (#1920)
Fixes #1905
2017-02-01 17:01:40 +01:00
Pierre Donias
815e74c93c feat(vm): allow snapshot with ACLs (#1916)
Fixes #1865
2017-02-01 15:35:54 +01:00
Pierre Donias
547d6fbc93 feat(pool/advanced): install supplemental pack on all pool's hosts (#1910)
See #1896
2017-02-01 13:08:16 +01:00
greenkeeper[bot]
b45a4b9e6c chore(package): update chartist-plugin-legend to version 0.6.1 (#1915)
https://greenkeeper.io/
2017-02-01 09:21:28 +01:00
greenkeeper[bot]
3436d0256a chore(package): update modular-css to version 3.0.0 (#1914)
https://greenkeeper.io/
2017-01-31 08:35:26 +01:00
greenkeeper[bot]
2627cfd426 chore(package): update react-chartist to version 0.12.0 (#1912)
https://greenkeeper.io/
2017-01-30 10:53:38 +01:00
Olivier Lambert
34b18c00a1 fix(lang): button verbiage. Fixes #1911 2017-01-30 10:07:00 +01:00
Julien Fontanet
2e31ff42ed 0.1.2 2017-01-27 19:25:22 +01:00
Julien Fontanet
9a3b8f2b10 fix: template path 2017-01-27 19:25:18 +01:00
Julien Fontanet
079790bce6 fix(package): add images/ to files list 2017-01-27 19:25:09 +01:00
Julien Fontanet
d99c4c6d14 0.1.1 2017-01-27 19:16:08 +01:00
Julien Fontanet
6839b4d8a4 fix(package): add template to files list 2017-01-27 19:16:04 +01:00
Julien Fontanet
4c47cc6ea8 0.1.0 2017-01-27 18:24:17 +01:00
Julien Fontanet
de81649a98 chore: add yarn.lock 2017-01-27 18:24:14 +01:00
Julien Fontanet
d31eab673e chore: remove ghooks 2017-01-27 18:24:05 +01:00
badrAZ
31189be2c8 Implementation (#15) 2017-01-27 18:22:01 +01:00
Julien Fontanet
45dd2c6519 chore: limit concurrency at 1 for installation 2017-01-27 17:05:48 +01:00
Julien Fontanet
5176d2000e chore: upgrade husky to v0.13.1 and lerna to v2.0.0-beta.34 2017-01-27 17:01:53 +01:00
Julien Fontanet
6f606761e4 chore(xo-server-test-plugin): add yarn.lock 2017-01-27 16:55:02 +01:00
Julien Fontanet
cfabadffe4 chore: exclusively use yarn instead of npm 2017-01-27 16:54:32 +01:00
Julien Fontanet
e13af7f5f0 5.6.0 2017-01-27 16:41:29 +01:00
Nicolas Raynaud
ca08613292 fix(VM import): behave if network is not an object (#1908) 2017-01-27 13:03:30 +01:00
Pierre Donias
4ab63591a0 feat(host/advanced): install a supplemental pack (#1895)
Fixes #1460
2017-01-25 16:08:45 +01:00
Pierre Donias
5b4f98b03b fix(scheduling): improve TimePicker UI (#1898)
Fixes #1893
2017-01-25 15:59:03 +01:00
Pierre Donias
f396d61633 feat(settings/logs): easy bug reporting from errors (#1907)
See #1602
2017-01-25 15:06:18 +01:00
Julien Fontanet
7523cb3489 chore: improve filter description 2017-01-25 12:43:29 +01:00
Julien Fontanet
505a9d7c70 chore(package): update inquirer to v3.0.1 2017-01-25 11:12:08 +01:00
Julien Fontanet
9f8c0c8cdf fix(scheduling): month range is 0-11 not 1-12 (#1894)
* fix(scheduling): month range is 0-11 not 1-12

* fix(scheduling): remove unused import
2017-01-19 17:46:37 +01:00
Julien Fontanet
198777ffab fix(xo): improve plugin errors 2017-01-19 16:42:38 +01:00
Pierre Donias
29c5ca1132 feat(host/advanced): display installed supplemental packs (#1890)
Fixes #1506
2017-01-16 18:03:57 +01:00
Pierre Donias
05d6f3d1ed feat(iso-device): show DVDs in ISO selector (#1889)
Fixes #1880
2017-01-16 17:06:56 +01:00
Olivier Lambert
536e82de3d feat(readme): add live chat link and icon 2017-01-16 14:54:57 +01:00
Pierre Donias
c59be7c315 fix(backup/new): smart backup pool filter (#1888)
Leaving the pool filter empty now means no filtering on pools, it should be clearer.

See #1885
2017-01-16 14:49:50 +01:00
Julien Fontanet
9581764cc8 feat: add normalize-package script 2017-01-16 12:01:32 +01:00
Pierre Donias
b327bb5bd0 feat(backup/file-restore): restore multiple files (#1886)
Fixes #1877
2017-01-16 09:33:30 +01:00
Julien Fontanet
f03493a252 chore: integration of imported packages 2017-01-13 18:54:27 +01:00
Julien Fontanet
22f2a05c8a Merge remote-tracking branch 'xo-server-test-plugin/master' 2017-01-13 14:00:47 +01:00
Julien Fontanet
a703ecc7e1 Merge remote-tracking branch 'xo-cli/master' 2017-01-13 14:00:45 +01:00
Julien Fontanet
c90a687179 Merge remote-tracking branch 'xo-server-load-balancer/master' 2017-01-13 14:00:41 +01:00
Julien Fontanet
e08689ff0e Merge remote-tracking branch 'xo-server-auth-ldap/master' 2017-01-13 14:00:37 +01:00
Julien Fontanet
80ffd811c9 Merge remote-tracking branch 'xo-server-auth-saml/master' 2017-01-13 14:00:33 +01:00
Julien Fontanet
56b583fc99 Merge remote-tracking branch 'xo-server-backup-reports/master' 2017-01-13 14:00:30 +01:00
Julien Fontanet
37a4e108be Merge remote-tracking branch 'xo-server-transport-nagios/master' 2017-01-13 14:00:26 +01:00
Julien Fontanet
9ca531541d Merge remote-tracking branch 'xo-server-transport-email/master' 2017-01-13 14:00:23 +01:00
Julien Fontanet
e304c554d0 Merge remote-tracking branch 'xo-server-auth-github/master' 2017-01-13 14:00:19 +01:00
Julien Fontanet
a7dfa7a381 Merge remote-tracking branch 'xo-server-transport-xmpp/master' 2017-01-13 14:00:09 +01:00
Julien Fontanet
090d48b636 0.3.2 2017-01-12 17:13:55 +01:00
Julien Fontanet
55567bf666 fix(package): use nodemailer 2.6.4
nodemailer 2.7.0 breaks Node 4 compatibility
2017-01-12 17:13:51 +01:00
Julien Fontanet
5867d84eaa 0.3.1 2017-01-12 16:24:45 +01:00
Julien Fontanet
4d8f1ab169 chore(package): update all dependencies 2017-01-12 16:23:21 +01:00
Julien Fontanet
6a2963be41 chore(configuration schema): add description for from.name and from.address 2017-01-12 16:17:55 +01:00
Julien Fontanet
b10f7b35ee chore(xo-collection): update all deps 2017-01-11 16:50:48 +01:00
Julien Fontanet
dc1bb8992f chore(xo-collection): use jest instead of mocha/must/sinon 2017-01-11 16:32:10 +01:00
Julien Fontanet
5eb7119821 chore: global gitignore 2017-01-11 14:07:49 +01:00
Julien Fontanet
3fa8fc19dc chore: global EditorConfig 2017-01-11 12:03:14 +01:00
Julien Fontanet
a3103587f5 chore(package): use husky instead of ghooks 2017-01-11 10:07:16 +01:00
Julien Fontanet
1bb11b574f chore: update yarn.lock 2017-01-11 10:05:18 +01:00
greenkeeper[bot]
405efe6a31 chore(package): update react-redux to version 5.0.0 (#1825)
https://greenkeeper.io/
2017-01-11 09:22:07 +01:00
Julien Fontanet
341d98e00d chore(xo-acl-resolver): minor fixes regarding monorepo 2017-01-10 18:29:52 +01:00
Julien Fontanet
7eee0f4341 Merge remote-tracking branch 'xo-acl-resolver/master' 2017-01-10 18:11:47 +01:00
Julien Fontanet
0b71b7862a feat: basic README 2017-01-10 18:07:05 +01:00
Julien Fontanet
e2893a0eba chore: fix packages URLs 2017-01-10 18:05:01 +01:00
Julien Fontanet
0c39a4e193 chore: add yarn.lock for all packages 2017-01-10 17:51:50 +01:00
Julien Fontanet
066072b22d chore: configure Travis globally 2017-01-10 17:51:31 +01:00
Pierre Donias
73663c3703 fix(locales/fr): multiple fixes (#1876) 2017-01-10 17:42:41 +01:00
Julien Fontanet
d548503590 chore(xo-remote-parser): update all deps 2017-01-10 16:24:28 +01:00
Julien Fontanet
3a02fc99a2 chore: global husky instead of local ghooks 2017-01-10 16:13:37 +01:00
Julien Fontanet
d8ae943d8a chore: lerna is a dev dep 2017-01-10 15:54:29 +01:00
Julien Fontanet
63dae9ed70 chore: ignore log files
- lerna-debug.log{,.*}
- yerna-error.log{,.*}
2017-01-10 15:54:14 +01:00
Julien Fontanet
97f57f1f2b Merge remote-tracking branch 'xo-remote-parser/master' 2017-01-10 15:20:28 +01:00
Julien Fontanet
060ba6423e Merge remote-tracking branch 'xo-lib/master' 2017-01-10 15:20:25 +01:00
Julien Fontanet
f31bbcdaab Merge remote-tracking branch 'xo-common/master' 2017-01-10 15:20:14 +01:00
Julien Fontanet
2a4bae54ab Merge remote-tracking branch 'xo-collection/master' 2017-01-10 15:20:08 +01:00
Julien Fontanet
95df2f66a3 initial commit 2017-01-10 12:21:59 +01:00
Julien Fontanet
c0c63f49b1 0.10.0-0 2017-01-09 18:30:20 +01:00
Julien Fontanet
4e1bef9537 feat: redirect event 2017-01-09 18:29:54 +01:00
Julien Fontanet
8b78727d20 chore: add yarn.lock 2017-01-09 18:29:38 +01:00
Julien Fontanet
4cd7025be4 chore(package): update all dependencies 2017-01-09 17:30:52 +01:00
Julien Fontanet
015ce2690d chore(package): simplify scripts 2017-01-09 15:12:04 +01:00
Julien Fontanet
3e7f552a63 chore(package): use husky instead of ghooks 2017-01-09 15:05:36 +01:00
Julien Fontanet
421ee7125b chore: update yarn.lock 2017-01-09 10:12:31 +01:00
Julien Fontanet
1a6166b63c chore: update yarn.lock 2017-01-09 10:04:37 +01:00
Julien Fontanet
3828e75b7d fix(package): use bootstrap 4.0.0-alpha5 exactly
Bootstrap 4.0.0-alpha6 is not compatible, we'll migrate with beta1.

See #1871
2017-01-09 10:02:43 +01:00
greenkeeper[bot]
154da142c7 chore(package): update gulp-sourcemaps to version 2.2.3 (#1874)
https://greenkeeper.io/
2017-01-09 09:58:50 +01:00
Pierre Donias
312cd60dd1 feat(settings/servers): error handling (#1868)
Fixes #1833
2017-01-06 16:38:24 +01:00
greenkeeper[bot]
6bf522f72f chore(package): update promise-toolbox to version 0.8.0 (#1870)
https://greenkeeper.io/
2017-01-06 11:39:58 +01:00
greenkeeper[bot]
128b169ae2 fix(package): update promise-toolbox to version 0.8.0 (#16)
https://greenkeeper.io/
2017-01-06 11:32:14 +01:00
greenkeeper[bot]
fdd33abe91 fix(package): update promise-toolbox to version 0.8.0 (#14)
https://greenkeeper.io/
2017-01-06 11:31:53 +01:00
greenkeeper[bot]
22882b1ff2 fix(package): update promise-toolbox to version 0.8.0 (#53)
https://greenkeeper.io/
2017-01-06 11:31:23 +01:00
greenkeeper[bot]
213898987d fix(package): update promise-toolbox to version 0.8.0 (#7)
https://greenkeeper.io/
2017-01-06 11:28:52 +01:00
Pierre Donias
a844f8d459 fix(backup/new): prevent negative depth values (#1869)
Fixes #1851
2017-01-06 11:12:56 +01:00
Julien Fontanet
8ee206174b fix(vm/advanced): PV args edition for all PV VMs
Currently only available if there are already PV args.
2017-01-05 16:51:56 +01:00
Olivier Lambert
1a08e24a5c feat(pool): harmonize links to hosts and storages (#1867)
Fixes #1864
2017-01-05 14:29:06 +01:00
greenkeeper[bot]
086cd0e038 chore(package): update modular-css to version 2.0.0 (#1862)
https://greenkeeper.io/
2017-01-04 09:43:32 +01:00
Julien Fontanet
42d123318c chore(pakcage): upgrade react/react-dom to v15.4.1 2017-01-03 15:28:53 +01:00
Julien Fontanet
89f160317c 5.5.3 2017-01-03 15:19:09 +01:00
Julien Fontanet
9ccd1a0362 chore: update yarn.lock 2017-01-03 15:18:27 +01:00
Pierre Donias
d116d014bc fix(host/network): PIF deletion (#1861)
Fixes #1853
2017-01-03 15:13:44 +01:00
Pierre Donias
7956cabcf4 feat(pool): combined stats tab (#1848)
Fixes #1324
2017-01-03 14:58:22 +01:00
Pierre Donias
36c61ad357 feat(vm/snapshots): icon to indicate if a snapshot is quiesce (#1860)
Fixes #1858
2017-01-03 10:54:58 +01:00
greenkeeper[bot]
25d60360d5 chore(package): update modular-css to version 1.0.0 (#1859)
https://greenkeeper.io/
2017-01-03 09:38:00 +01:00
Olivier Lambert
1e5579e3ad feat(icons): use microchip for the CPU icon 2017-01-02 17:14:05 +01:00
Julien Fontanet
77d43b2280 fix(settings/logs): correctly refresh users 2017-01-02 16:36:09 +01:00
Julien Fontanet
33e8929e8b fix(settings/groups): avoid error when adding a user 2017-01-02 16:36:02 +01:00
Julien Fontanet
b79fa9cb9f feat(backup/overview): sort by start if not end
Avoid unfinished (broken) jobs to stay at the top.
2017-01-02 16:34:36 +01:00
Olivier Lambert
a2812a85bd feat(vm): redirect to home after converting VM to template (#1857)
Fixes #1855
2017-01-02 14:12:33 +01:00
Olivier Lambert
e8ff46a8ba fix(health): add link from SR to hosts and not only for pools. Fixes #1850 (#1856) 2017-01-02 11:29:32 +01:00
Julien Fontanet
351c01d642 fix(intl/messages): typo
Fix #1849
2016-12-24 09:15:54 +01:00
Julien Fontanet
044c9bed4c Update README.md 2016-12-23 11:01:25 +01:00
Julien Fontanet
e333b1d083 chore(package): use new shorter paths for Jest serializer 2016-12-22 16:58:26 +01:00
Julien Fontanet
5ad49de642 5.5.2 2016-12-22 12:27:03 +01:00
Fabrice Marsaud
b45bb5c144 fix(xoa-updater): use the new source info (#1846) 2016-12-22 12:26:02 +01:00
Julien Fontanet
9402596f69 5.5.1 2016-12-22 11:18:32 +01:00
Fabrice Marsaud
096687ae2c fix(xoa-updates): also refresh on plan change (#1843) 2016-12-22 11:16:45 +01:00
badrAZ
81062638eb feat: attachments support (#13) 2016-12-22 10:09:15 +01:00
Julien Fontanet
210b5de992 fix(backup/file-restore-modal): fetched timestamps are in seconds
Follow up to for #1840.
2016-12-20 17:10:55 +01:00
Julien Fontanet
f742fdbf1b fix(backup/file-restore): fetched timestamps are in seconds
Fixes #1840
2016-12-20 16:49:37 +01:00
Julien Fontanet
8c0028055a chore(package): use husky instead of ghooks 2016-12-20 15:06:29 +01:00
Pierre Donias
e7026c522d fix(editable/XoSelect): update value before saving (#1835) 2016-12-20 13:54:22 +01:00
Julien Fontanet
c21fc4beda 5.5.0 2016-12-20 13:39:05 +01:00
Julien Fontanet
edf6fe782e chore: update yarn.lock 2016-12-20 13:36:39 +01:00
Pierre Donias
3cbb6c4a98 feat(backup): implement file restore (#1838)
Fixes #1590
2016-12-20 13:34:59 +01:00
Julien Fontanet
74f060b309 fix(package): rename to xo-server-transport-nagios 2016-12-20 11:50:49 +01:00
Julien Fontanet
12de0ca463 0.1.0 2016-12-20 11:45:11 +01:00
Julien Fontanet
72ed59b65b chore(package): make package publishable 2016-12-20 11:45:05 +01:00
Julien Fontanet
fe369bfa18 chore(package): update all dependencies 2016-12-20 11:43:45 +01:00
Olivier Lambert
568a50acc5 feat(changelog): update changelog 2016-12-19 17:59:14 +01:00
Pierre Donias
fbcb756cef fix(backup/new): remove "Only metadata" option (#1837)
Fixes #1818
2016-12-19 17:53:04 +01:00
Pierre Donias
81eb4ba4f9 fix(form/Select): make text wrap when too long (#1836)
Fixes #1832
2016-12-19 17:15:03 +01:00
Olivier Lambert
0cc14d2ab8 fix(intl): fix the place holder for NFS path, removing the initial slash 2016-12-19 13:48:49 +01:00
Julien Fontanet
116661d958 chore: add yarn.lock 2016-12-16 09:48:35 +01:00
Julien Fontanet
0dd70c57cd chore: factory function pass options directly 2016-12-16 09:48:19 +01:00
Julien Fontanet
df0aa1c46d fix(configure): do not modify passed configuration 2016-12-16 09:47:56 +01:00
Julien Fontanet
9b93a47e45 chore(package): update all dependencies 2016-12-16 09:47:26 +01:00
Julien Fontanet
06f6912fb9 chore(package): add mattermost as a keyword 2016-12-16 09:42:22 +01:00
greenkeeper[bot]
6aedadc982 chore(package): update jest to version 18.0.0 (#1831)
https://greenkeeper.io/
2016-12-15 12:34:05 +01:00
Olivier Lambert
a8d10dab3c feat(changelog): changelog for 5.5 release 2016-12-15 12:19:35 +01:00
Pierre Donias
1ff6ff1d7a fix(getDefaultNetworkForVif): allow PIFs with no IP (#1830)
Fixes #1788
2016-12-15 10:31:03 +01:00
badrAZ
c708fd65d7 feat: integration with xo-server-transport-nagios (#17) 2016-12-14 17:24:55 +01:00
Pierre Donias
8afe4a85dc fix(form/select-plain-object): make it controlled (#1829) 2016-12-14 17:18:31 +01:00
badrAZ
0c497900a2 implementation (#1) 2016-12-14 16:33:40 +01:00
greenkeeper[bot]
c57fbdce63 chore(package): update index-modules to version 0.2.1 (#1822) 2016-12-12 16:49:29 +01:00
greenkeeper[bot]
0b92ceec90 chore(package): update babel-preset-env to version 1.0.1 (#23)
https://greenkeeper.io/
2016-12-10 17:36:47 +01:00
greenkeeper[bot]
bdc0278fd1 chore(package): update gulp-sass to version 3.0.0 (#1820)
https://greenkeeper.io/
2016-12-10 15:07:20 +01:00
greenkeeper[bot]
731bcc68ef chore(package): update babel-preset-env to version 1.0.0 (#5)
https://greenkeeper.io/
2016-12-09 22:56:24 +01:00
greenkeeper[bot]
7e5131c4d2 chore(package): update babel-preset-env to version 1.0.0 (#6)
https://greenkeeper.io/
2016-12-09 22:55:37 +01:00
greenkeeper[bot]
f0554fc77c chore(package): update babel-preset-env to version 1.0.0 (#14)
https://greenkeeper.io/
2016-12-09 22:55:29 +01:00
greenkeeper[bot]
c7814b1f04 chore(package): update babel-preset-env to version 1.0.0 (#14)
https://greenkeeper.io/
2016-12-09 22:55:16 +01:00
greenkeeper[bot]
d585b47360 chore(package): update babel-preset-env to version 1.0.0 (#16)
https://greenkeeper.io/
2016-12-09 22:55:06 +01:00
greenkeeper[bot]
4530d95f48 chore(package): update babel-preset-env to version 1.0.0 (#11)
https://greenkeeper.io/
2016-12-09 22:52:58 +01:00
Fabrice Marsaud
c3ac8d0587 fix(xoa-updater): propose refresh when xo-web is not up to date (#1815)
Fixes #1801.
2016-12-08 16:24:47 +01:00
Julien Fontanet
c7e6e72ce8 fix(events watching): stop if not connected
Fixes vatesfr/xo-web#1799
2016-12-07 23:18:05 +01:00
Julien Fontanet
f3a5e1e97c feat: yarn integration (#1813) 2016-12-07 14:36:51 +01:00
Julien Fontanet
919aa5fc43 feat(tests): basic tests for grid components 2016-12-07 14:06:20 +01:00
Julien Fontanet
416c98ffd2 chore(tests): use jest instead of ava 2016-12-07 14:06:20 +01:00
greenkeeper[bot]
013d4b9411 fix(package): update inquirer to version 2.0.0 (#23)
https://greenkeeper.io/
2016-12-06 23:18:15 +01:00
Pierre Donias
8094447183 fix(self-service): make it controlled and multiple fixes (#1812)
Fixes:
- VIF IP edition was not possible if the current IP's IP-pool did not exist anymore
- VM creation: removing the pool/resource set in the selector was broken
- Prevent selecting a negative number as an IP pool quantity
- Prevent deleting a resource set that hasn't been created yet
- Remove console.log
2016-12-06 16:43:07 +01:00
Julien Fontanet
575375d3e0 5.4.1 2016-12-05 14:08:56 +01:00
Julien Fontanet
4296ae02dc fix(vm/network): fix IP addresses concatenation 2016-12-05 14:04:43 +01:00
Julien Fontanet
0e40af0515 feat(patch-react): name the patched render function 2016-12-05 14:03:39 +01:00
Julien Fontanet
5d3a0e7a41 fix(patch-react): assign arguments object directly 2016-12-05 10:43:09 +01:00
Julien Fontanet
8ae2aae37a fix(package): update xo-acl-resolver to v0.2.3
It ships a workaround for an issue when a VDI snapshot $snapshot_of is itself.
2016-12-02 16:18:31 +01:00
Julien Fontanet
0a8fed1950 0.2.3 2016-12-02 14:57:24 +01:00
Julien Fontanet
6dc4b4dc1b fix: workaround for VDI snapshots with $snaphot_of which point to themselves 2016-12-02 14:56:19 +01:00
Pierre Donias
83b3cf406a fix(lang): auto-refresh XO app when changing language (#1809)
Fixes #1800
2016-12-02 13:09:35 +01:00
Julien Fontanet
959b8863eb chore(package): update all dependencies 2016-12-02 10:03:49 +01:00
Julien Fontanet
1643ced4e0 feat: do not break if a component throws 2016-12-01 16:49:36 +01:00
Pierre Donias
b2a1840da7 fix(vm-import): SR selector disable condition (#1808)
Fixes #1804
2016-12-01 15:54:58 +01:00
Pierre Donias
b9f20d1e80 fix(select-objects): allow integer IDs (#1807)
Fixes #1805
2016-12-01 15:39:47 +01:00
Pierre Donias
0c77781be8 feat(backup/smart): tags/pools select all and negation (#1802)
Fixes #1503
2016-12-01 14:56:18 +01:00
Julien Fontanet
83245af1e2 feat: improve debugging in production (#1806)
* feat(build): enable sourcemaps in production

* feat(index): let browsers handle unhandled rejections

They do a much better job to display the error and its trace with sourcemaps.
2016-12-01 14:22:07 +01:00
Julien Fontanet
7db806a461 fix(xo/subcriptions): handle unsubscription during notification 2016-12-01 12:15:12 +01:00
greenkeeper[bot]
b25f418411 chore(package): update dependencies (#20)
https://greenkeeper.io/
2016-11-29 13:41:32 +01:00
greenkeeper[bot]
985a4780f5 chore(package): update dependencies (#26)
https://greenkeeper.io/
2016-11-29 13:41:04 +01:00
Olivier Lambert
92b15fb1e2 feat(consoles): update tip about console issue to point to XS ticket 2016-11-29 11:00:30 +01:00
Olivier Lambert
92a1f2c6d5 feat(description): better explanation of checkCertificate (#22) 2016-11-29 10:51:24 +01:00
Pierre Donias
7b5182111c fix(dashboard/health): message parsing and link to object view (#1796)
Related to #1776
2016-11-29 09:53:19 +01:00
Nicolas Raynaud
82b1b81999 fix(dashboard/overview): graphs on Safari (#1771)
There seems to be a bug in Safari with flex layout, hard coding the height of the graph seems to do the trick.

Fixes #1755
2016-11-29 09:21:04 +01:00
greenkeeper[bot]
81b9348e50 chore(package): update dependencies (#5)
https://greenkeeper.io/
2016-11-28 15:06:32 +01:00
Pierre Donias
f0a430f350 feat(acls): filter object selector (#1791)
Fixes #1515
2016-11-28 12:05:56 +01:00
Olivier Lambert
90f95b7270 feat(i18n): added selector for simplified Chinese 2016-11-28 10:53:41 +01:00
Olivier Lambert
15e6a93fac feat(i18n): added simplified Chinese translation 2016-11-28 10:45:33 +01:00
Julien Fontanet
04e7d54620 v0.8.2 2016-11-25 11:50:31 +01:00
Julien Fontanet
729dbe16c0 fix(list objects): fix without filtering
Fixes #19
2016-11-25 11:49:28 +01:00
greenkeeper[bot]
974650bc56 chore(package): update babel-preset-env to version 0.0.9 (#22)
https://greenkeeper.io/
2016-11-24 22:42:22 +01:00
greenkeeper[bot]
0899a16333 chore(package): update babel-preset-env to version 0.0.9 (#11)
https://greenkeeper.io/
2016-11-24 22:06:00 +01:00
greenkeeper[bot]
8c9ed833c3 chore(package): update babel-preset-env to version 0.0.9 (#5)
https://greenkeeper.io/
2016-11-24 22:05:47 +01:00
greenkeeper[bot]
5e86e64e18 chore(package): update babel-preset-env to version 0.0.9 (#10)
https://greenkeeper.io/
2016-11-24 22:04:27 +01:00
greenkeeper[bot]
235c789c5e chore(package): update babel-preset-env to version 0.0.9 (#15)
https://greenkeeper.io/
2016-11-24 22:04:18 +01:00
greenkeeper[bot]
3f69a22229 chore(package): update babel-preset-env to version 0.0.9 (#3)
https://greenkeeper.io/
2016-11-24 22:03:23 +01:00
Julien Fontanet
ab48d06967 feat(README): update usage 2016-11-24 12:39:14 +01:00
Julien Fontanet
18ca950cd2 0.8.1 2016-11-24 12:35:02 +01:00
Julien Fontanet
82489b36c8 0.8.0 2016-11-24 12:34:04 +01:00
Julien Fontanet
a67b6130f8 feat(list objects): ability to select displayed properties
Fixes #18
2016-11-24 12:33:24 +01:00
Julien Fontanet
01541a2577 feat(@autoControlledInput): make controlled inputs able to handle uncontrolled mode
See #1628.
2016-11-24 11:34:21 +01:00
Olivier Lambert
8c70bc0a17 feat(i18n): fix wrong translate key 2016-11-24 10:16:44 +01:00
Nicolas Raynaud
9d96074604 chore(package): update react-shortcuts to v1.3.1 (#1792)
Fix #1691
2016-11-24 09:58:56 +01:00
Julien Fontanet
114a4028f4 fix: coding style fixes 2016-11-24 09:57:02 +01:00
Julien Fontanet
eab007db6e 0.6.0 2016-11-23 11:15:55 +01:00
Julien Fontanet
b342a4ba17 5.4.0 2016-11-23 11:09:24 +01:00
Julien Fontanet
889eae276e 0.6.0 2016-11-23 10:17:38 +01:00
Julien Fontanet
2b2a72252b chore(package): update all dependencies 2016-11-23 10:12:48 +01:00
Olivier Lambert
13e4568d3b feat(Slack): support Slack transport (#14) 2016-11-23 10:02:01 +01:00
Julien Fontanet
92c4dda801 0.3.0 2016-11-23 09:57:41 +01:00
Julien Fontanet
3e59ba4563 chore(package): update all dependencies 2016-11-23 09:57:23 +01:00
Julien Fontanet
99c95626df chore: pass options directly to the constructor 2016-11-23 09:49:27 +01:00
Julien Fontanet
20a9fc2497 chore(package): add description 2016-11-23 09:48:07 +01:00
Julien Fontanet
27e0621ad8 0.9.6 2016-11-23 09:46:33 +01:00
Julien Fontanet
abecff222c chore(package): make package publishable 2016-11-23 09:46:16 +01:00
Julien Fontanet
3f0d91101a chore(package): add description 2016-11-23 09:46:06 +01:00
Julien Fontanet
252be59ac3 chore(package): update babel-preset-env to v0.0.8 2016-11-23 09:43:19 +01:00
Julien Fontanet
1987a8c68a chore(events): rely on event.from timeout instead of inject
Should be enough.
2016-11-23 09:42:11 +01:00
Julien Fontanet
5088fd0e82 fix(README): dev section 2016-11-23 09:39:50 +01:00
badrAZ
2de4d36a0f implementation (#2) 2016-11-23 09:37:39 +01:00
Olivier Lambert
fcbf037619 feat(changelog): prepare for the 5.4 release 2016-11-22 18:23:23 +01:00
Pierre Donias
a8e4ab433d feat(backup/new): warning when using delta or continuous rep with XS<6.5 (#1782) 2016-11-22 17:10:26 +01:00
Pierre Donias
6613ba02ab feat(dashboard/health): better formating of alert messages (#1781)
Fixes #1776
2016-11-22 16:41:07 +01:00
Pierre Donias
2af7fde83f fix(dashboard/health): delete orphaned VDIs (#1778)
Fixes #1622
2016-11-21 15:49:23 +01:00
Pierre Donias
19a0d4bc98 feat(timezone-picker): make server timezone less central (#1774)
Fixes #1706
2016-11-21 15:48:01 +01:00
Pierre Donias
9ed49b1f27 fix(menu): non admin users should not see backups and SRs in menu (#1777)
Fixes #1773
2016-11-21 15:45:34 +01:00
Julien Fontanet
fb32aeeeb6 0.8.2 2016-11-18 18:32:35 +01:00
Julien Fontanet
76cb4037d4 fix: build for > 2% browsers
Fixes #21
2016-11-18 18:32:27 +01:00
Pierre Donias
d56df30a22 feat(host): link to VMs list (#1772)
Fixes #1432
2016-11-18 12:50:43 +01:00
Julien Fontanet
64908068d9 fix: remove Intl polyfill
Safari 10 fixes this issue.

Fixes #1629
2016-11-18 12:40:24 +01:00
Julien Fontanet
af1530db36 0.8.1 2016-11-18 11:51:23 +01:00
Julien Fontanet
9d6560aece chore(package): update all dependencies 2016-11-18 11:50:26 +01:00
Pierre Donias
fe69d59aeb feat(tags): link to home page with tag filter (#1770)
Fixes #1763
2016-11-18 11:31:12 +01:00
Julien Fontanet
caba246e0b fix(README): update doc 2016-11-18 10:46:51 +01:00
Julien Fontanet
731e2dc4c4 0.7.4 2016-11-17 17:33:08 +01:00
Julien Fontanet
815bdf3454 fix(package): downgrade nice-pipe to 0.0.0 2016-11-17 17:33:04 +01:00
Julien Fontanet
b36ef9fdb1 0.7.3 2016-11-17 15:40:29 +01:00
Julien Fontanet
b65e737f84 feat(complex-matcher): support matching boolean props
Fixes #1768
2016-11-17 15:28:52 +01:00
Pierre Donias
bd274fdc3c feat(home): can display SRs (#1767)
Fixes #1764
2016-11-17 15:03:46 +01:00
Julien Fontanet
fee3f7a716 fix(list objects): writes one objects at a time
Fixes vatesfr/xo-web#1356
2016-11-17 14:56:43 +01:00
greenkeeper[bot]
ac19249c63 chore(package): update xo-common to version 0.1.0 (#1765)
https://greenkeeper.io/
2016-11-17 05:28:32 +01:00
badrAZ
2abff1fec8 fix(settings/plugins): fix test when no test schema (#1766) 2016-11-16 15:38:48 +01:00
Julien Fontanet
dd00d6581f 0.1.0 2016-11-16 11:52:36 +01:00
Pierre Donias
f4fc7acf4d feat(api-errors): 10 new errors (#3)
See vatesfr/xo-web#1481
2016-11-16 11:21:46 +01:00
badrAZ
f1a6cfae0d feat(settings/plugins): display plugin test failures (#1754) 2016-11-16 10:53:57 +01:00
greenkeeper[bot]
e43e90ed3c chore(package): update react-chartist to version 0.11.0 (#1761)
https://greenkeeper.io/
2016-11-15 12:58:44 +01:00
greenkeeper[bot]
0ee88fe0dc Update dependencies to enable Greenkeeper 🌴 (#1757)
https://greenkeeper.io/
2016-11-15 11:02:45 +01:00
Julien Fontanet
5b8cdf06b3 feat(test): new protocol (#2)
Plugins are now testable.
2016-11-15 11:01:50 +01:00
Julien Fontanet
682315e672 fix(package): update fs-promise to version 1.0.0 (#7)
https://greenkeeper.io/
2016-11-15 09:50:26 +01:00
Pierre Donias
07e7f2e14d fix(menu): jobs should not be available to non-admin users (#1760)
Fixes #1759
2016-11-15 09:46:37 +01:00
Julien Fontanet
366ab95a2f feat(backup,job): ability to set the job owner (#1758)
Fixes #1733
2016-11-14 17:43:02 +01:00
Pierre Donias
ca723068a1 Fix clearable condition. 2016-11-14 17:29:29 +01:00
Pierre Donias
e424a105b3 Minor fixes. 2016-11-14 17:23:05 +01:00
Pierre Donias
32d2f92413 Multiple fixes. 2016-11-14 16:48:33 +01:00
Pierre Donias
898e2ff010 feat(job,backup): handle unexisting job creator
See #1733
2016-11-14 15:32:52 +01:00
Julien Fontanet
e33c7fd1c1 initial commit 2016-11-10 15:48:14 +01:00
Julien Fontanet
9b3668423e 0.2.0 2016-11-10 10:47:43 +01:00
greenkeeper[bot]
7227af9aac fix(package): update fs-promise to version 1.0.0 (#21)
https://greenkeeper.io/
2016-11-10 08:57:20 +01:00
greenkeeper[bot]
7c8194307e fix(package): update fs-promise to version 1.0.0 (#17)
https://greenkeeper.io/
2016-11-10 08:56:51 +01:00
greenkeeper[bot]
36c38063f2 fix(package): update fs-promise to version 1.0.0
https://greenkeeper.io/
2016-11-10 02:17:39 +00:00
Julien Fontanet
9b5fac9e2b feat(test): throw an error when authentication fails 2016-11-09 17:08:17 +01:00
badrAZ
47991b7d1a feat(test): this plugin is now testable (#20)
See vatesfr/xo-web#1749
2016-11-09 16:41:53 +01:00
Pierre Donias
dfa5e76870 feat(sr/disks): also display VDI snapshots (#1750)
Fixes #1723
2016-11-09 16:38:52 +01:00
Julien Fontanet
c93dd12fae feat(settings/plugins): testing
See #1749
2016-11-09 16:34:29 +01:00
Julien Fontanet
dbb1b1e582 fix(settings/plugins): unloading 2016-11-09 16:19:07 +01:00
Julien Fontanet
76388ee160 feat(utils/Debug): correctly display undefined 2016-11-09 16:18:32 +01:00
Badr AZIZBI
a5ea24311a Errors fixed 2016-11-09 15:53:16 +01:00
badrAZ
3c11f0acda feat(test): this plugin is now testable (#9)
See vatesfr/xo-web#1749
2016-11-09 14:55:08 +01:00
Pierre Donias
5ec2eee69a fix(settings/plugins): no plugins message condition (#1746) 2016-11-09 10:08:18 +01:00
Pierre Donias
31875a36fe fix(backup/restore): do not display duplicate tags (#1745)
Fixes #1734
2016-11-08 17:43:01 +01:00
Olivier Lambert
c50598b78e fix(jobs): last slicing fixed for job IDs 2016-11-08 15:37:44 +01:00
Pierre Donias
2f0c81d9ad feat(settings/plugins): message when no plugins (#1744)
Fixes #1670
2016-11-08 15:30:36 +01:00
Olivier Lambert
c22f89c6bb fix(jobs): better slicing of job IDs 2016-11-08 15:29:46 +01:00
Pierre Donias
568a23cd35 feat(pool/networks): change columns layout. Fixes #1696 2016-11-08 15:20:13 +01:00
Julien Fontanet
4a5222fa3b chore(package): update all dependencies 2016-11-08 11:11:13 +01:00
greenkeeper[bot]
4294dfd8fe chore(package): update dependencies (#18)
https://greenkeeper.io/
2016-11-07 21:20:54 +01:00
Pierre Donias
eb7c4c131d fix(xo): add xo-common package (#1742) 2016-11-07 18:18:07 +01:00
Pierre Donias
f0664cd2c7 feat(xo/restartHost-s): trigger error modal if host could not be restarted (#1740)
Fixes #1717
2016-11-07 17:10:02 +01:00
Julien Fontanet
570eb7bc89 chore(package): update jsonrpc-websocket-client to v0.1.1 2016-11-07 16:48:10 +01:00
Pierre Donias
1ee91b4925 feat(backup/overview): display jobs in a SortedTable (#1741)
Fixes #1726
2016-11-07 14:43:16 +01:00
Pierre Donias
e7b739bb3b feat(api-errors): error factories (#1) 2016-11-07 12:30:29 +01:00
Julien Fontanet
baf5f7491d 0.7.2 2016-11-04 17:24:00 +01:00
Badr AZIZBI
a2afe2fa1a Error correction 2016-11-04 15:47:45 +01:00
Badr AZIZBI
8496a9bebd Initial commit 2016-11-04 13:42:23 +01:00
Julien Fontanet
69fee37f00 5.3.2 2016-11-04 11:43:49 +01:00
Julien Fontanet
49be66ae69 fix(xo/deleteSchedule): resolveIds() → resolveId()
Fixes #1737
2016-11-04 10:53:52 +01:00
Julien Fontanet
a0efe6895c fix(jobs/schedules/<id>/edit): correctly pass id prop
Fixes #1736
2016-11-04 10:31:32 +01:00
Julien Fontanet
8ef07e917d fix(jobs/<id>/edit): correctly set the id prop
Fixes #1728
2016-11-04 10:00:55 +01:00
Olivier Lambert
d3995b7bab feat(job): slicing some job ids 2016-11-03 18:00:49 +01:00
Olivier Lambert
c353e71ce7 feat(jobs): slice ids to be more human readable (#1735) 2016-11-03 16:48:48 +01:00
greenkeeper[bot]
0d6b7d6f04 chore(package): update babel-preset-env to version 0.0.7 (#2)
https://greenkeeper.io/
2016-11-03 08:59:51 +01:00
Julien Fontanet
59d6a51635 fix(package): fix depcheck (again) 2016-11-02 17:23:40 +01:00
Julien Fontanet
b4693019f7 fix(package): fix depcheck 2016-11-02 17:02:14 +01:00
Julien Fontanet
320d7a89ca fix(package): fix build 2016-11-02 17:02:07 +01:00
Olivier Lambert
a3570a1c9f feat(pif): use carrier to detect physical link (#1732)
Fixes #1702
2016-11-02 16:59:43 +01:00
Julien Fontanet
1016f5f26f initial commit 2016-11-02 16:43:19 +01:00
Julien Fontanet
9284aee3fa 0.4.1 2016-11-02 15:12:23 +01:00
Julien Fontanet
32726efe88 Revert "Temporary work around for eslint/eslint#3946."
This reverts commit 63426818e6d43181ae635819fd1697fc9ea0a3d8.
2016-11-02 15:10:29 +01:00
Julien Fontanet
87daf0271c chore(package): update all dependencies 2016-11-02 15:03:45 +01:00
Julien Fontanet
70e73a5a65 fix(Collection#remove): properly report the key in related event 2016-11-02 15:00:04 +01:00
Pierre Donias
c593c98e6d fix(settings/acls): display only valid ACLs (#1730) 2016-11-02 14:32:22 +01:00
Julien Fontanet
1642798aa6 0.9.5 2016-11-02 14:04:15 +01:00
Olivier Lambert
a4b5b532f2 feat(health): add links to some objects (#1729)
Fixes #1700
2016-11-02 12:29:50 +01:00
Julien Fontanet
588c369615 fix(package): fix URLs 2016-11-02 11:45:31 +01:00
greenkeeper[bot]
9aa9d4452c chore(package): update dependencies (#16)
https://greenkeeper.io/
2016-11-02 09:30:20 +01:00
greenkeeper[bot]
d7fe25c4fc chore(package): update dependencies (#17)
https://greenkeeper.io/
2016-11-01 22:01:39 +01:00
greenkeeper[bot]
990c5e9f08 chore(package): update dependencies (#25)
https://greenkeeper.io/
2016-11-01 22:01:31 +01:00
Julien Fontanet
6357f23aeb fix(package): use bootstrap 4.0.0-alpha5 2016-10-31 11:26:33 +01:00
Olivier Lambert
01d9b3bd0e feat(home/pools): add links to VMs or hosts and add VM number (#1720)
Fixes #1226
2016-10-28 14:35:32 +02:00
Julien Fontanet
7e2f2f6102 chore(package): various updates 2016-10-28 13:47:21 +02:00
Julien Fontanet
51def6535f chore(package): various updates 2016-10-28 12:10:31 +02:00
Pierre Donias
6b428f7587 fix(IP pools): behave with missing VIFs (#1716) 2016-10-28 11:57:29 +02:00
Julien Fontanet
14156b0911 chore(package): update all dependencies 2016-10-28 11:54:51 +02:00
Julien Fontanet
e2ba1fa7f8 initial commit 2016-10-28 11:48:06 +02:00
Julien Fontanet
36b589c2db chore(package): various updates 2016-10-28 11:44:11 +02:00
Pierre Donias
f829aa76d7 fix(dashboard/stats): requires at least Enterprise plan (#1718) 2016-10-28 11:43:36 +02:00
Julien Fontanet
cdf1a5fe47 fix(package): do not use babel-preset-babili 2016-10-28 11:14:17 +02:00
Julien Fontanet
abf146707f chore(package): update all dependencies 2016-10-28 11:08:32 +02:00
Fabrice Marsaud
a72051e96f fix(xoa-updater): fix double connection (#1714)
* fix double connection
* fix minified class name display
2016-10-28 10:16:56 +02:00
Pierre Donias
797622ba66 fix(settings/config): export/import should be available to Starter plan (#1715) 2016-10-28 09:52:41 +02:00
Julien Fontanet
39342cd662 5.3.1 2016-10-27 18:24:31 +02:00
Olivier Lambert
051a3ac122 feat(changelog): modify changelog for 5.3.1 2016-10-27 18:21:25 +02:00
Julien Fontanet
f842a321ba fix(xo): properly sign out on auth failure (#1712)
Fixes #1711
2016-10-27 18:17:20 +02:00
Julien Fontanet
3cd2dd65d3 chore(xo/importConfig): no need to promisify 2016-10-27 17:52:13 +02:00
Pierre Donias
5ce7e0b108 feat(settings/config): import/export XO configuration (#1703)
See #786
2016-10-27 15:08:45 +02:00
Julien Fontanet
71c2058cc8 fix(package): do not test on Node 7 (#1705)
* fix(package): do not test on Node 7
* fix(package): directly depend on chartist 0.9
* fix(package): directly depend on react-overlays 0.6
2016-10-27 11:57:06 +02:00
Greenkeeper
f200d39d23 chore(package): update modular-css to version 0.28.0 (#1707)
https://greenkeeper.io/
2016-10-26 23:34:32 +02:00
Pierre Donias
7932845ac5 fix(xo/exportVm): window.location instead of window.open() (#1704) 2016-10-26 16:52:26 +02:00
Julien Fontanet
94bda6ac9e chore(intl): update all locales (#1698) 2016-10-25 14:48:53 +02:00
fufroma
7a65f80406 feat(intl/messages): more translations (#1684) 2016-10-25 14:12:11 +02:00
Pierre Donias
36ab58dad9 feat(backup/restore): VM-centered UI (#1697)
Fixes #1609
2016-10-25 12:59:01 +02:00
Julien Fontanet
e9be9e3761 chore(package): update react-router to version 3.0.0 2016-10-25 11:21:46 +02:00
Julien Fontanet
b54645c86c chore(package): update d3 to version 4.2.8 2016-10-25 11:21:11 +02:00
Julien Fontanet
c24a4009c8 chore(package): use full lodash package 2016-10-24 17:29:34 +02:00
Julien Fontanet
7b928c4d41 chore(package): add Travis CI conf 2016-10-24 16:03:04 +02:00
Julien Fontanet
4d50eae3c9 0.7.1 2016-10-24 15:58:32 +02:00
Julien Fontanet
c3a5e0592d chore(package): add --unregister doc 2016-10-24 15:58:14 +02:00
Julien Fontanet
207aef7cb3 fix(--list-commands): fix --json flag 2016-10-24 15:55:22 +02:00
Julien Fontanet
fbbd9ae249 chore(package): update (almost) all dependencies 2016-10-24 15:55:01 +02:00
Julien Fontanet
7aa591ffbd fix(package): handle multiline params 2016-10-24 15:33:40 +02:00
Greenkeeper
1fd91de50d chore(package): update promise-toolbox to version 0.7.0 (#8)
https://greenkeeper.io/
2016-10-24 15:03:35 +02:00
Greenkeeper
ab77d8430c chore(package): update promise-toolbox to version 0.7.0 (#1690)
https://greenkeeper.io/
2016-10-24 15:02:02 +02:00
Greenkeeper
8492ceee09 chore(package): update promise-toolbox to version 0.7.0 (#13)
https://greenkeeper.io/
2016-10-24 15:01:03 +02:00
Greenkeeper
1f710b9b78 chore(package): update promise-toolbox to version 0.7.0 (#49)
https://greenkeeper.io/
2016-10-24 15:00:35 +02:00
Pierre Donias
c6f683b532 feat(host,pool): edit PIFs VLAN (#1685)
See #1092
2016-10-24 09:52:47 +02:00
Pierre Donias
a2604f5156 fix(xo-app): ensure there is always a page title (#1687) 2016-10-21 18:10:53 +02:00
Pierre Donias
5ae7f683d6 fix(new-vm): fix getting disks in self service (#1688) 2016-10-21 18:00:38 +02:00
fufroma
f953c89979 fix(new/sr): fix username handling (#1683)
Regression was introduced in e79096626a
2016-10-21 11:56:36 +02:00
Julien Fontanet
bb8aab02ea fix(form/Password): generator in controlled mode
Fixes #1678
2016-10-20 17:58:49 +02:00
Julien Fontanet
b87ad2df54 0.5.1 2016-10-20 16:18:00 +02:00
Julien Fontanet
af0c03ff6a 5.3.0 2016-10-20 16:09:25 +02:00
Olivier Lambert
8859900537 feat(changelog): update for release 2016-10-20 16:07:25 +02:00
Julien Fontanet
c9e2f94daf fix(markdown): insert a blank line after lists 2016-10-20 15:19:17 +02:00
Julien Fontanet
130852ab85 fix(xo): pass the refresh function to tap() 2016-10-20 15:13:55 +02:00
fufroma
65fa8f96b4 feat(intl): minor improvements (#1668) 2016-10-20 14:54:06 +02:00
Pierre Donias
0a84e9e363 feat(host/network): configure IP mode (#1671)
Fixes #1651
2016-10-20 13:32:43 +02:00
Pierre Donias
163c69454b fix(modal): disable shortcuts when a modal is open (#1673)
Fixes #1589
2016-10-20 13:30:29 +02:00
Julien Fontanet
49d3fde0f3 fix(JsonSchemaInput/Array): fix items handling
#1663
2016-10-20 13:22:11 +02:00
Pierre Donias
bb67e2254e fix(package): use new syntax of Boostrap classes (#1667) 2016-10-19 16:05:59 +02:00
Julien Fontanet
52774c7d6d 0.3.1 2016-10-19 13:17:10 +02:00
Pierre Donias
6d2abc4e74 feat(IP pools): can be used in resource sets (#1662)
Fixes #1565
2016-10-19 11:17:44 +02:00
Julien Fontanet
01686b8e60 fix(package): behave with missing thresholds object 2016-10-18 17:34:06 +02:00
Julien Fontanet
0317d6a862 chore(package): remove unused test env 2016-10-18 17:33:29 +02:00
Julien Fontanet
2a316b1ffa chore(package): use constants in configuration schema 2016-10-18 17:31:46 +02:00
Julien Fontanet
4875450053 fix(home): correctly set default filter when user is loaded
Fixes #1665
2016-10-18 11:57:55 +02:00
Julien Fontanet
19184ca8a0 chore(base-component): disable verbose logs 2016-10-18 11:18:00 +02:00
Julien Fontanet
654c3d324b chore(package): jade → pug 2016-10-18 11:17:35 +02:00
fufroma
c5b4811f16 feat(intl): various new translations (#1659)
Also: favicon.
2016-10-17 14:43:50 +02:00
Julien Fontanet
7a9dc4fd59 fix(package): minor style issues 2016-10-14 14:13:20 +02:00
Julien Fontanet
9b9f0e5607 fix(package): fix various URLs 2016-10-14 11:57:37 +02:00
Julien Fontanet
590f6cb7b3 chore(package): update all dependencies 2016-10-14 11:53:39 +02:00
fufroma
e79096626a feat(intl): more translatable messages (#1641) 2016-10-14 10:46:46 +02:00
fufroma
332d074d32 fix(intl/locales/fr): various fixes (#1638) 2016-10-13 14:14:42 +02:00
Julien Fontanet
b120146cdc chore(package): lots of comments 2016-10-12 17:21:45 +02:00
Greenkeeper
7587458f99 Update promise-toolbox to version 0.6.0 🚀 (#7)
https://greenkeeper.io/
2016-10-12 09:12:14 +02:00
Pierre Donias
e511ecd76e fix(vm/copy): inital value of compress should be false (#1652)
Fixes #1645
2016-10-12 09:06:28 +02:00
Greenkeeper
d1e69f5957 chore(package): update promise-toolbox to version 0.6.0 (#12)
https://greenkeeper.io/
2016-10-11 17:34:11 +02:00
Greenkeeper
bcfbd5eba9 chore(package): update promise-toolbox to version 0.6.0 (#1650)
https://greenkeeper.io/
2016-10-11 17:32:23 +02:00
Julien Fontanet
2c35ee11b3 fix(Xapi#_init): fix promisify() usage 2016-10-11 17:22:43 +02:00
Greenkeeper
bd0c747d98 chore(package): update promise-toolbox to version 0.6.0 (#48)
https://greenkeeper.io/
2016-10-11 17:20:32 +02:00
Pierre Donias
9fa3db395b fix(self): SizeInput's empty value should be null (#1649) 2016-10-11 15:01:43 +02:00
Julien Fontanet
52a41ceb04 chore(package): update standard to version 8.4.0 2016-10-11 11:39:27 +02:00
Julien Fontanet
f5fb066975 chore(package): babel-preset-es2015 → babel-preset-latest 2016-10-11 10:51:21 +02:00
Julien Fontanet
cd6a0fa678 fix(package): use babel-plugin-transform-runtime 2016-10-11 10:51:04 +02:00
Julien Fontanet
e735420dd8 chore(package): babel-preset-es2015 → babel-preset-latest 2016-10-11 10:49:37 +02:00
Julien Fontanet
bc2f17c840 fix(package): use babel-plugin-transform-runtime 2016-10-11 10:47:05 +02:00
Julien Fontanet
8c459cac0f fix(package): remove babel-plugin-lodash 2016-10-11 10:43:28 +02:00
Julien Fontanet
878d2d9260 fix(package): remove babel-plugin-lodash 2016-10-11 10:38:39 +02:00
Julien Fontanet
e65d67266d style: indent fixes 2016-10-11 10:21:57 +02:00
Julien Fontanet
0d1045821c chore(intl/locales/zh): update skeleton 2016-10-10 16:02:44 +02:00
Pierre Donias
45d526dda2 fix(select-objects): dynamic option height (#1644)
Fixes #1411
2016-10-10 15:47:46 +02:00
Julien Fontanet
e52f998e78 fix(tools/update-locales): remove incorrect import 2016-10-10 10:15:58 +02:00
Julien Fontanet
42ed3b9355 feat(tools/update-locales): create or update locales (#1632)
Replace the existing `tools/create-locale`.
2016-10-10 09:57:08 +02:00
Julien Fontanet
563b4cb1ec 5.2.5 2016-10-07 15:45:28 +02:00
Olivier Lambert
45bad231cf feat(changelog): add 5.2.4 and 5.2.5 release 2016-10-07 15:44:47 +02:00
Pierre Donias
d76bd2484b fix(console): disable shortcuts when console is focused (#1637)
Fixes #1614
2016-10-07 15:26:20 +02:00
Pierre Donias
445b60bb63 fix(vm/console): initial scale value should be 1 (#1639) 2016-10-07 14:06:16 +02:00
Julien Fontanet
3214e0e41e fix: style & minor issues 2016-10-06 18:28:23 +02:00
Julien Fontanet
c61230e145 fix(intl/locales/fr): remove incorrect entry 2016-10-06 16:13:54 +02:00
fufroma
fac6a29226 feat(intl): new translatable messages (#1627) 2016-10-06 16:05:47 +02:00
Olivier Lambert
7a8f414748 feat(home/host): sparklines in expanded zone (#1619)
Fixes #1634
2016-10-06 15:14:35 +02:00
Julien Fontanet
9f450d282e chore(package): use index-modules 2016-10-06 14:41:46 +02:00
Pierre Donias
31787067e3 feat(new-vm): set dynamic and static memory bounds (#1618)
Fixes #1603
2016-10-05 17:27:59 +02:00
fufroma
1a769b23e2 feat(i18n): update French translation (#1600) 2016-10-05 10:38:12 +02:00
Olivier Lambert
ae002abafc feat(home/pool): bar for pool RAM usage (#1626)
Fixes #1625
2016-10-05 10:26:47 +02:00
Julien Fontanet
31a25d9c16 5.2.4 2016-10-04 15:35:11 +02:00
Julien Fontanet
356295c361 fix(package): add missing make-error 2016-10-04 15:33:24 +02:00
Julien Fontanet
d10681b6d1 fix(package): add missing even-to-promise 2016-10-04 15:33:24 +02:00
Julien Fontanet
0602410aa8 fix(package): update xo-acl-resolver to 0.2.2
Fixes vatesfr/xo-web#1621
2016-10-04 15:33:23 +02:00
Julien Fontanet
14bca4bbf7 0.2.2 2016-10-04 15:16:10 +02:00
Julien Fontanet
ea55c10c4d chore(package): pnpm compatibility 2016-10-04 15:15:39 +02:00
Julien Fontanet
75cde40b0e fix(VM-template): normal permissions handling
Fixes vatesfr/xo-web#1620
2016-10-04 15:13:08 +02:00
Julien Fontanet
5434b4987f chore(package): remove unused deps 2016-10-04 15:09:12 +02:00
Olivier Lambert
1112768adc feat(home/host): add memory bar (#1617)
Fixes #1616
2016-10-03 18:06:36 +02:00
Julien Fontanet
86b599df89 5.2.3 2016-10-03 09:39:59 +02:00
Olivier Lambert
88f7661172 feat(changelog): add info for 5.2.3 release 2016-10-03 09:21:45 +02:00
Julien Fontanet
29c96c0119 chore(gitignore): pnpm compat 2016-10-03 09:15:18 +02:00
Julien Fontanet
d8c6e54c68 fix(user): add VM template label 2016-10-03 09:13:42 +02:00
Julien Fontanet
df053eb016 fix(user): do not crash on missing type label 2016-10-03 09:13:26 +02:00
Julien Fontanet
d1715f7711 chore(intl): homeTypeTemplate → homeTypeVmTemplate 2016-10-03 09:09:40 +02:00
Julien Fontanet
240282c72d chore(intl): remove unused message 2016-10-03 09:09:03 +02:00
Olivier Lambert
9e8dd6ea21 fix(README): broken link to doc 2016-10-02 23:23:19 +02:00
Julien Fontanet
32806a20c9 fix(sr): goes to homepage if object disappear
Fixes #1611
2016-10-02 23:02:14 +02:00
Pierre Donias
34dcfbbf49 fix(home/item): prevent item from being displayed on 2 rows (#1608)
Fixes #1580
2016-09-30 13:33:05 +02:00
Pierre Donias
91fec43866 feat(pool/network): create a bonded network (#1605)
See #876
2016-09-30 11:23:44 +02:00
Greenkeeper
aa2d196a79 chore(package): update vinyl to version 2.0.0 (#1607)
https://greenkeeper.io/
2016-09-29 23:06:53 +02:00
Julien Fontanet
54befb2814 chore(package): update all dependencies 2016-09-29 14:43:29 +02:00
Julien Fontanet
74fba76b85 chore(package): update all dependencies 2016-09-29 14:16:47 +02:00
Julien Fontanet
2b8996e965 chore(package): update all dependencies 2016-09-29 14:00:25 +02:00
Julien Fontanet
a9aad547b2 fix(package): use babel-plugin-transform-runtime 2016-09-29 13:37:20 +02:00
Julien Fontanet
4673af6fd8 chore(package): update all dependencies 2016-09-29 12:54:46 +02:00
Julien Fontanet
33ae81ce05 chore(package): update all dependencies 2016-09-29 12:38:18 +02:00
Pierre Donias
180ca458ad feat(vm/network): allow VIF edition (#1596)
See #1446
2016-09-28 14:29:15 +02:00
Greenkeeper
075c43ce0e chore(package): update chai-as-promised to version 6.0.0 (#6)
https://greenkeeper.io/
2016-09-28 09:49:21 +02:00
Greenkeeper
10fddc51bb chore(package): update babel-eslint to version 7.0.0 (#11)
https://greenkeeper.io/
2016-09-27 23:40:44 +02:00
Greenkeeper
b32b319198 chore(package): update babel-eslint to version 7.0.0 (#5)
https://greenkeeper.io/
2016-09-27 23:40:10 +02:00
Greenkeeper
2d14fde671 chore(package): update babel-eslint to version 7.0.0 (#23)
https://greenkeeper.io/
2016-09-27 23:39:57 +02:00
Greenkeeper
98cd2746ef chore(package): update babel-eslint to version 7.0.0 (#15)
https://greenkeeper.io/
2016-09-27 23:39:13 +02:00
Greenkeeper
aa881c60e7 chore(package): update babel-eslint to version 7.0.0 (#1597)
https://greenkeeper.io/
2016-09-27 23:39:03 +02:00
Greenkeeper
ea18e4129c chore(package): update babel-eslint to version 7.0.0 (#14)
https://greenkeeper.io/
2016-09-27 23:37:26 +02:00
Greenkeeper
6980e2b959 chore(package): update babel-eslint to version 7.0.0 (#4)
https://greenkeeper.io/
2016-09-27 23:37:03 +02:00
Greenkeeper
7e7ec83c12 chore(package): update babel-eslint to version 7.0.0 (#19)
https://greenkeeper.io/
2016-09-27 23:27:37 +02:00
Greenkeeper
b12fd45df1 chore(package): update babel-eslint to version 7.0.0 (#47)
https://greenkeeper.io/
2016-09-27 23:26:52 +02:00
Julien Fontanet
a8340c24c3 chore(package): update all dependencies 2016-09-27 15:29:23 +02:00
Greenkeeper
5b6966042d standard@8.2.0 breaks build 🚨 (#1595)
https://greenkeeper.io/
2016-09-27 01:11:46 +02:00
Julien Fontanet
dc859da0cd chore(build): remove embedded dev server 2016-09-26 16:45:02 +02:00
Pierre Donias
151eb6cbd6 feat(updates,users,servers): disable credentials autocomplete (#1592)
Fixes #1304
2016-09-26 16:00:04 +02:00
Olivier Lambert
16db591bbf feat(vm): add red icon if VM doesn't have tools. Fixes #1575 2016-09-26 12:24:58 +02:00
Pierre Donias
05a55e5eb2 fix(xoa-upgrade): more suitable message for non-admin users (#1591)
Fixes #1564
2016-09-26 10:31:23 +02:00
Greenkeeper
f49f3fb2a6 Update all dependencies 🌴 (#3)
https://greenkeeper.io/
2016-09-25 16:20:17 +02:00
Greenkeeper
3c9ef8d199 chore(package): update dependencies (#10)
https://greenkeeper.io/
2016-09-25 15:54:44 +02:00
Pierre Donias
dcd84b2b8f feat(shortcuts): help modal and new home shortcuts (#1588)
Fixes #1578
2016-09-23 18:43:10 +02:00
Greenkeeper
4a89119f0a Update react-virtualized to version 8.0.8 🚀 (#1587)
https://greenkeeper.io/
2016-09-23 17:11:55 +02:00
Julien Fontanet
bc1c30a7bf chore(package): add __self prop, better React warnings 2016-09-23 16:02:19 +02:00
Julien Fontanet
33cffbf28b fix(Copiable): do not pass tagName prop to wrapper 2016-09-23 15:50:40 +02:00
Julien Fontanet
a18b68116c chore(package): improve React stack traces in dev build 2016-09-23 15:45:03 +02:00
Pierre Donias
d5acf15bca feat(vm/network): indicate when an IP is already used (#1584)
Fixes #1566
2016-09-23 12:13:48 +02:00
Pierre Donias
84f970af68 fix(shortcuts): prevent Shortcuts from stopping events propagation (#1583)
`Editable`s were broken (could not use *enter* to save).
2016-09-23 11:35:56 +02:00
Julien Fontanet
969f636bb7 fix(host/storage): name sorting 2016-09-23 10:54:36 +02:00
Pierre Donias
6939aee20a feat(home): keyboard shortcuts (#1400)
Fixes #1279
2016-09-22 19:01:05 +02:00
Pierre Donias
ab2a02a555 fix(vm/tab-network): lock icon conditions (#1576)
Fixes #1573
2016-09-22 16:52:37 +02:00
Pierre Donias
70038e0764 fix(new-vm): lodash/sum instead of lodash/sumBy (#1577) 2016-09-22 16:19:34 +02:00
Olivier Lambert
e730ef5e11 feat(host/sr): Sr link and better storage tab. (#1572)
Fixes #1567
2016-09-22 16:04:45 +02:00
Olivier Lambert
835ad5aaf1 feat(vm/host/pools/sr): add tooltips. Fixes #1568 2016-09-22 11:02:05 +02:00
Pierre Donias
ac645c8617 fix(home): types dropdown button title (#1570) 2016-09-22 10:47:48 +02:00
Greenkeeper
669c24ebd5 chore(package): update dependencies (#4)
https://greenkeeper.io/
2016-09-22 07:53:33 +02:00
Julien Fontanet
b801fdbab2 5.2.2 2016-09-21 18:01:03 +02:00
Pierre Donias
bf495953e2 feat(new-vm): show resource set limits (#1563)
Fixes #1541
2016-09-21 11:58:07 -04:00
Pierre Donias
45b165deec fix(home): VM bulk restart (#1562)
Fixes #1561
2016-09-21 14:48:16 +02:00
Olivier Lambert
09169578e8 feat(changelog): add issue #1562 2016-09-21 14:47:52 +02:00
Olivier Lambert
43b2366927 feat(changelog): update changelog for 5.2.2 2016-09-21 12:22:37 +02:00
Julien Fontanet
f015a69eec feat(host/patches): display if needs to be restarted (#1559)
Fixes #1352
2016-09-21 10:10:44 +02:00
Olivier Lambert
99568508dd fix(charts): change color order to avoid confusions. Fixes #1265 2016-09-20 18:41:44 +02:00
Olivier Lambert
e8515344dd feat(home): display a message if a filter is empty. (#1560)
feat(home): display a message if a filter is empty. Fixes #1517
2016-09-20 12:34:07 -04:00
Julien Fontanet
edc873a570 fix(pool/storage): fix sort by usage 2016-09-20 15:53:45 +02:00
Julien Fontanet
1a03e96ab2 fix(pool/storage): fix passing pool to SortedTable 2016-09-20 15:53:25 +02:00
Olivier Lambert
89e0bb4f0a feat(home/templates): template management (#1533)
Fixes #1091
2016-09-20 13:46:58 +02:00
Olivier Lambert
7d0fd60908 feat(pool/storage): display default SR and add button to set it (#1557)
Fixes #1554
2016-09-20 13:19:47 +02:00
Pierre Donias
6b20523df4 fix(vm/tab-network): check for undefined network (#1556)
Fixes #1518
2016-09-20 11:52:17 +02:00
Julien Fontanet
e9a612647e fix(home): do not overwrite current filter (#1555)
Fixes #1513
2016-09-20 05:38:33 -04:00
Julien Fontanet
28404ef149 feat(SortedTable): default column can be set by a simple prop 2016-09-20 09:43:57 +02:00
Olivier Lambert
a5f8230def feat(self): hide some buttons and tabs for self service VMs (#1550) 2016-09-19 15:17:45 +02:00
Pierre Donias
39171de5de fix(job/new): forbid "_" character in job names (#1548)
Fixes #1414
2016-09-19 11:58:46 +02:00
Pierre Donias
5aa5a0acbc fix(home): set items per page in createPager (#1549) 2016-09-19 11:39:56 +02:00
Olivier Lambert
a4518e630a fix(log): sort logs by end date 2016-09-19 11:04:15 +02:00
Julien Fontanet
94975f5ea6 feat(settings/logs): group action buttons
Fixes #1547
2016-09-19 10:59:19 +02:00
Julien Fontanet
7e98838d96 feat(ActionButton): can have a tooltip 2016-09-19 10:59:19 +02:00
Greenkeeper
16dde5c772 chore(package): update standard to version 8.1.0 (#12)
https://greenkeeper.io/
2016-09-18 05:17:03 +02:00
Pierre Donias
e8c9c196ff feat(vm/snapshot): "Snapshot before" checkbox in revert modal (#1543)
Fixes #1445
2016-09-17 00:11:51 +02:00
Julien Fontanet
db314a238f fix(xo/subcriptions): mark as non-running on error 2016-09-16 17:13:56 +02:00
Julien Fontanet
2c85a6d4ab fix(self/admin): do not fail on empty limits
Fixes #1537
2016-09-16 17:13:56 +02:00
Pierre Donias
b683e14e80 feat(self): merge dashboard and administration (#1542)
Fixes #1429
2016-09-16 16:47:20 +02:00
Olivier Lambert
ba45095fa8 fix(editable): limit input size for long text to 50ex. Fixes #1528 2016-09-15 16:45:19 +02:00
Olivier Lambert
b8e5ffa9f7 feat(backup): improved view. Fixes #1534 2016-09-15 16:26:42 +02:00
Pierre Donias
b4bff9e032 feat(vm/disks): "Long click to migrate" tooltip on SR (#1529)
* feat(vm/disks): "Long click to migrate" tooltip on SR

Fixes #1512

* feat(vm/disks): migrate VDI button, force cursor on editable

* fix bulk VDI migration

* Return Promise.all

* Ternary operator
2016-09-15 16:08:50 +02:00
Olivier Lambert
0c461bc4e2 feat(backuplogs): shorten the start/end date format. Fixes #1535 2016-09-15 15:55:01 +02:00
Olivier Lambert
a33b2a5294 fix(home/menu): adapt message depending of user perm (#1532)
Fixes #1519
2016-09-15 13:56:33 +02:00
Olivier Lambert
298e1c4471 fix(host console): removing useless ISO selector for host. Fixes #1527 2016-09-15 13:07:33 +02:00
Julien Fontanet
1c70cdc10b fix(render-xo-item): remove unused import 2016-09-15 13:07:04 +02:00
Julien Fontanet
160e4bb530 fix(SelectVmTemplates): use correct placeholder
Fixes #1530
2016-09-15 12:00:32 +02:00
fufroma
e69ba8dd96 Fix typo on Changelog (#1526) 2016-09-15 04:44:42 -04:00
Julien Fontanet
e55f4c3eb2 feat(settings/logs): show complete error object 2016-09-14 17:42:32 +02:00
Pierre Donias
1a3272b980 feat(new-vm): auto poweron setting (#1514)
Fixes #1444
2016-09-14 15:25:54 +02:00
Julien Fontanet
7bed5e025a fix(home): fix empty default filter (#1504)
Fixes #1354
2016-09-14 14:38:24 +02:00
Pierre Donias
29d22c0598 feat(backup/new): confirm modal when local remote is selected (#1507)
Fixes #1441
2016-09-14 13:20:51 +02:00
Greenkeeper
a38c7c34ac chore(package): update react-key-handler to version 0.3.0 (#1505)
https://greenkeeper.io/
2016-09-14 01:42:16 +02:00
Julien Fontanet
8d690ce4ff 5.2.1 2016-09-13 16:54:42 +02:00
Olivier Lambert
2569568a03 feat(changelog): patch version 5.2.1 changelog 2016-09-13 16:52:47 +02:00
Olivier Lambert
2c6ff6b5b8 feat(stopHost modal): explain consequences if halting a pool master. Fixes #1458 2016-09-13 15:28:30 +02:00
Pierre Donias
1257f01027 feat(new-vm): create tags during VM creation (#1501)
See #1431
2016-09-13 14:17:04 +02:00
Pierre Donias
fad6830863 fix(settings/remotes): SMB domain is required (#1502)
Fixes #1499
2016-09-13 11:28:07 +02:00
Olivier Lambert
66262bb20b fix(vm console): re-fix issue #1485 2016-09-13 11:01:18 +02:00
Julien Fontanet
4abb0754c7 fix(remotes): edition of URL parts (#1500)
Fixes #1498
2016-09-13 10:20:48 +02:00
Pierre Donias
78c53bf3ad fix(xo): better message for snapshot deletion (#1497)
Fixes #1433
2016-09-13 09:42:18 +02:00
Pierre Donias
810d666d84 feat(home): tooltips on bulk action buttons (#1496)
Fixes #1456
2016-09-12 17:04:02 +02:00
Pierre Donias
67699f0bb6 feat(pool/network): SortedTable and collapsable PIFs table (#1494)
Fixes #1461
2016-09-12 16:44:43 +02:00
Pierre Donias
46274948c0 fix(settings/logs): properly handle unknown user (#1495) 2016-09-12 16:42:52 +02:00
Olivier Lambert
28e3a842ef feat(vm): new containers tab (#1492)
Fixes #1442
2016-09-12 13:50:14 +02:00
Pierre Donias
6d90f1d45d fix(user): prevent SSH key overflow (#1491)
Fixes #1475
2016-09-12 12:57:11 +02:00
Pierre Donias
09642c347d feat(new-vm): Advanced section (#1486)
Fixes #1444
2016-09-12 12:27:11 +02:00
Pierre Donias
2d0e06f785 fix(backup/new): better month and week days layout (#1490)
Fixes #1488
2016-09-12 11:58:24 +02:00
Pierre Donias
a5bc8497cf fix(vm/tab-network): set default network and MTU for VIF creation (#1487)
Fixes #1472
2016-09-12 11:26:32 +02:00
Julien Fontanet
4bcb65c518 5.2.0 2016-09-09 16:31:24 +02:00
Olivier Lambert
25361fa7eb feat(changelog): add IP management feature in changelog 2016-09-09 16:30:13 +02:00
Pierre Donias
889a265000 feat(settings/ips): new page to manage IP pools (#1418)
Fixes #1350, fixes #988 and fixes #240.
2016-09-09 16:19:26 +02:00
Julien Fontanet
96635a98f5 0.5.0 2016-09-09 15:50:38 +02:00
Olivier Lambert
3122f6dcd5 feat(changelog): update changelog for 5.2.0 2016-09-09 14:21:54 +02:00
Olivier Lambert
16aa2e8085 bug(vmConsole): re-display header if VM goes from running to halted state. Fixes #1485 2016-09-08 16:29:56 +02:00
Julien Fontanet
074d51a670 fix(xo/deleteVms): delete disks as well
Fixes #1484
2016-09-08 15:06:42 +02:00
Greenkeeper
2122a79132 chore(package): update chartist-plugin-legend to version 0.5.0 (#1482)
https://greenkeeper.io/
2016-09-08 11:01:50 +02:00
Ronan Abhamon
26dbc585ba feat(vm-import): supports ova import (#709) (#1361)
Fixes #709
2016-09-08 10:15:44 +02:00
Greenkeeper
4b3cfbd424 chore(package): update modular-css to version 0.27.1 (#1478)
https://greenkeeper.io/
2016-09-08 09:55:38 +02:00
Julien Fontanet
035191a2cc feat(xo/installAllPatchesOnPool): better pool-wide patching (#1476)
Fixes #1392
2016-09-07 17:55:02 +02:00
Olivier Lambert
06a40180a1 fix(vm): do not display VDI or VIF disconnect but when VM is not running. Fixes #1470 and fixes #1468 2016-09-05 16:59:21 +02:00
Julien Fontanet
aaf4c5dff7 chore(Vm): move isRunning into utils/isVmRunning 2016-09-05 16:40:13 +02:00
Olivier Lambert
0c83bc2b0e feat(logview): standardize and improve the settings/log view. Fixes #1467 2016-09-05 16:10:12 +02:00
Julien Fontanet
54ef65ced9 feat: display error message
Fixes vatesfr/xo-web#1462
2016-09-05 10:39:54 +02:00
Julien Fontanet
4fb6bef04c feat: express global status in mail subject
New format is: `[Xen Orchestra][Success | Failure] Backup report for $tag`

Fixes vatesfr/xo-web#1463
2016-09-05 10:39:11 +02:00
Julien Fontanet
2d412fd8db fix(scheduling): month and day display
There were issues with some timezones.

Fixes #1404 & fixes #1438.
2016-09-01 11:47:50 -03:00
Julien Fontanet
443e2bec25 chore(NewVm#_getIsoPredicate): memoise selector 2016-09-01 10:57:13 -03:00
Olivier Lambert
d5e1323d82 feat(newVif): select management network by default when adding a vif. Fixes #1425 2016-09-01 15:34:49 +02:00
Julien Fontanet
7f0b77cc89 chore(package): update chartist-plugin-legend to version 0.4.0 (#1450)
https://greenkeeper.io/
2016-08-31 10:32:50 +02:00
greenkeeperio-bot
0169cff66c chore(package): update chartist-plugin-legend to version 0.4.0
https://greenkeeper.io/
2016-08-31 10:17:48 +02:00
Olivier Lambert
0fd1424a41 fix(newVm): check pool object for ISO selector when creating a VM from selfservice. Fixes #1448 2016-08-30 21:26:59 +02:00
Nicolas Raynaud
7d5e7f5c73 add some notes 2016-08-30 11:26:35 -07:00
Nicolas Raynaud
15a8b97410 0.0.12 2016-08-30 10:10:21 -07:00
Nicolas Raynaud
874162df87 remove stream declared size 2016-08-30 10:03:57 -07:00
Nicolas Raynaud
0c8b9d8539 0.0.11 2016-08-26 17:37:15 -07:00
Nicolas Raynaud
7c6579b264 allow the reading of some cases of malformed VMDK files
- if the L1 is advertised in the header
 - and the L1 table is right after the descriptor (with or without marker)
 - and the L2 table is just after L1 (with or without marker)
 - and L2 is not fragmented
 - and the grains are in ascending order in the file
 - then we skip all the tables and read the grains directly
2016-08-26 17:36:41 -07:00
Julien Fontanet
6280d56f32 chore(xo): use resolveId() (only) where it makes sense 2016-08-26 16:18:03 -04:00
Julien Fontanet
9f2a77872f fix(xo/deleteUser): dont attempt to display error when cancelled
Fixes vatesfr/xo-web#1439
2016-08-26 14:38:02 -04:00
Pierre Donias
b571c18e9a feat(host): indicate pool master in multiple places (#1423)
Fixes #1407
2016-08-25 12:33:55 -04:00
Greenkeeper
49863d6e4d Update standard to version 8.0.0 🚀 (#1435)
https://greenkeeper.io/
2016-08-24 13:00:00 -04:00
Nicolas Raynaud
e3473721f6 0.0.10 2016-08-24 09:42:12 -07:00
Nicolas Raynaud
28799c62a9 spawn only one promise in _read() of the outpur stream
- instrument VirtualBuffer to detect unwanted concurrency
 - move VMDK version detection to header parsing
 - chunk zero pages in the output stage
 - avoid sending too much data at once in the output stage (with a shadow file)
2016-08-24 09:39:02 -07:00
Greenkeeper
224a79840d chore(package): update standard to version 8.0.0 (#14)
https://greenkeeper.io/
2016-08-24 12:23:09 -04:00
Greenkeeper
c21fef7c72 Update standard to version 8.0.0 🚀 (#46)
https://greenkeeper.io/
2016-08-24 11:50:04 -04:00
Greenkeeper
99ae3e0f7f chore(package): update standard to version 8.0.0 (#18)
https://greenkeeper.io/
2016-08-24 11:37:01 -04:00
Greenkeeper
02a4161ecb chore(package): update standard to version 8.0.0 (#22)
https://greenkeeper.io/
2016-08-24 11:33:05 -04:00
Greenkeeper
1a68c3947d chore(package): update standard to version 8.0.0 (#13)
https://greenkeeper.io/
2016-08-24 11:26:48 -04:00
Julien Fontanet
48cc7bb647 5.1.9 2016-08-22 14:02:40 -04:00
Nicolas Raynaud
4ac58b3f44 0.0.9 2016-08-22 03:53:26 +02:00
Nicolas Raynaud
a9758e6997 fix postion computation in vitual buffer 2016-08-22 03:32:06 +02:00
Nicolas Raynaud
bb546c6bb7 chunk the padding buffers of the output stage 2016-08-22 03:30:16 +02:00
Pierre Donias
442d42d8dc fix(settings/logs): show params in a modal (#1424) 2016-08-19 16:09:20 +02:00
Olivier Lambert
9501ebacfc feat(menu): add warning icon when disconnected 2016-08-19 13:52:31 +02:00
Pierre Donias
23f9fa46f8 fix(home/host-item): do not show pool name if not enough permissions (#1421) 2016-08-19 13:40:55 +02:00
Julien Fontanet
1bd0f37fd4 feat(Menu): display when disconnected
Fixes vatesfr/xo-web#1417
2016-08-19 12:27:48 +02:00
Pierre Donias
ed74ded923 feat(settings/logs): display parameters (#1420) 2016-08-19 10:06:45 +02:00
Nicolas Raynaud
d877a6f1ad 0.0.8 2016-08-18 21:40:20 +02:00
Nicolas Raynaud
ef7a563d97 avoid constructing 0 byte long buffer and async stream._read() function 2016-08-18 21:39:23 +02:00
Nicolas Raynaud
df33772eba 0.0.7 2016-08-18 17:11:23 +02:00
Nicolas Raynaud
97c1cc8ed9 remove the custom virtual buffer in favor of pipette 2016-08-18 17:10:14 +02:00
Olivier Lambert
b732410b74 feat(vm and home): add tooltip to OS icon. Fixes #1416 2016-08-18 14:12:46 +02:00
Olivier Lambert
a51f2b7fcf fix(newvm): check if ssh keys object exists 2016-08-18 13:59:08 +02:00
Olivier Lambert
fe12bbb60d fix(sr): container var check if not defined 2016-08-18 13:51:37 +02:00
Julien Fontanet
b7f34b9da6 0.9.4 2016-08-18 09:39:28 +02:00
Julien Fontanet
f82a6efda1 feat(Xapi#_watchEvents): keep-alive, inject 1 event per minute (#45)
See vatesfr/xo-web#1384
2016-08-18 09:37:31 +02:00
Nicolas Raynaud
f869c02395 0.0.6 2016-08-17 19:20:09 +02:00
Nicolas Raynaud
43e0217008 check for out of order blocks in vhd output 2016-08-17 19:19:51 +02:00
Julien Fontanet
f89538c6f7 0.0.5 2016-08-17 16:50:07 +02:00
Julien Fontanet
1ee0085c22 fix: correctly export the function 2016-08-17 16:49:16 +02:00
Olivier Lambert
8882df7939 5.1.8 2016-08-17 11:07:30 +02:00
Olivier Lambert
185a554cd9 fix(newVm): fix wrong ISO SR predicate. Fixes #1415 2016-08-17 11:06:35 +02:00
Greenkeeper
d56590c6e6 chore(package): update nyc to version 8.0.0 (#12)
https://greenkeeper.io/
2016-08-16 23:41:08 +02:00
Julien Fontanet
556ca71c3a 0.9.3 2016-08-16 19:02:24 +02:00
Julien Fontanet
42be2d5031 fix(Xapi#_watchEvent): timeouts are in ms 2016-08-16 19:01:49 +02:00
Julien Fontanet
876e22b092 0.9.2 2016-08-16 18:09:47 +02:00
Julien Fontanet
f9f9c16cb0 feat(Xapi#_watchEvents): timeout request after 10mins (#44) 2016-08-16 18:07:44 +02:00
Olivier Lambert
230e0dc2a5 5.1.7 2016-08-16 15:38:59 +02:00
Julien Fontanet
f63f5d0ac6 0.0.4 2016-08-16 15:33:24 +02:00
Nicolas Raynaud
44dbbeb2a3 tests: increase timeout and fix Node 0.12 compat (#3) 2016-08-16 15:25:05 +02:00
Greenkeeper
a881090e65 chore(package): update clarify to version 2.0.0 (#37)
https://greenkeeper.io/
2016-08-16 15:09:59 +02:00
Pierre Donias
f5b69fdfdc feat(vm/console): hide header and resize console (#1410)
Fix #1268
2016-08-16 14:49:44 +02:00
Greenkeeper
01dc0d8f1e chore(package): update modular-css to version 0.26.0 (#1385)
https://greenkeeper.io/
2016-08-16 12:45:29 +02:00
Greenkeeper
8035886a3c chore(package): update promise-toolbox to version 0.5.0 (#1409)
https://greenkeeper.io/
2016-08-16 12:22:45 +02:00
Greenkeeper
3d9fce02a4 chore(package): update promise-toolbox to version 0.5.0 (#43)
https://greenkeeper.io/
2016-08-16 12:22:21 +02:00
Olivier Lambert
0ab5f4b13f fix(host): wrong storage link. Fixes #1408 2016-08-16 11:16:56 +02:00
Pierre Donias
a1bc98def8 feat(host): redirect to home when host disappears (#1406) 2016-08-16 09:50:29 +02:00
Julien Fontanet
dea401fc7c 0.0.3 2016-08-15 19:02:04 +02:00
Julien Fontanet
cca21fcd32 fix(build): work with npm 3 2016-08-15 18:56:33 +02:00
Olivier Lambert
868cf6140b feat(settings): more tooltips for server connect/disconnect 2016-08-15 18:04:01 +02:00
Olivier Lambert
4b3473f480 feat(logstackmodal): use pre tag for stack trace 2016-08-15 17:52:04 +02:00
Olivier Lambert
7bc782cc62 feat(copiable): add tooltip on copiable component 2016-08-15 17:33:59 +02:00
Julien Fontanet
ab6b1e2c32 chore(Xapi#_transportCall): simplify and improve code
It may even fixes some issues.
2016-08-15 16:36:18 +02:00
Olivier Lambert
e625a53e4a fix(vm migration): allow target network without IPs. Fixes #1403 2016-08-15 15:20:59 +02:00
Olivier Lambert
b31185d96d fix(newVm): typo spotted by @Danp2 2016-08-15 14:07:12 +02:00
Olivier Lambert
09d75e972f feat(newVm): add missing tooltips. Fixes #1402 2016-08-15 11:44:36 +02:00
Greenkeeper
59d9b3c6b4 chore(package): update nyc to version 8.1.0 (#42)
https://greenkeeper.io/
2016-08-14 19:07:12 +02:00
Julien Fontanet
f7b6fcf684 Merge pull request #17 from vatesfr/greenkeeper-nyc-8.1.0
Update nyc to version 8.1.0 🚀
2016-08-14 19:07:04 +02:00
Greenkeeper
df3ec9a629 chore(package): update nyc to version 8.1.0 (#21)
https://greenkeeper.io/
2016-08-14 19:06:15 +02:00
Greenkeeper
6bc4bf308b chore(package): update nyc to version 8.1.0 (#13)
https://greenkeeper.io/
2016-08-14 19:05:44 +02:00
greenkeeperio-bot
2ddb84f457 chore(package): update nyc to version 8.1.0
https://greenkeeper.io/
2016-08-14 10:26:33 +02:00
Olivier Lambert
f33568951b 5.1.6 2016-08-12 17:28:49 +02:00
Pierre Donias
8d8c442be5 feat(settings/logs): new view to display API logs (#1401)
Fix #1344
2016-08-12 17:27:50 +02:00
Olivier Lambert
6b82cc7510 fix(readme): typo 2016-08-12 17:22:28 +02:00
Nicolas Raynaud
2764f4d455 get the npm package ready for use (#2) 2016-08-12 12:02:52 +02:00
Olivier Lambert
f890b8ea7a feat(modal text): warns users about consequences of host eject 2016-08-11 21:13:32 +02:00
Pierre Donias
1b80b3929c feat(host): detach host from its pool (#1399)
Fixes #1395
2016-08-11 17:49:25 +02:00
Nicolas Raynaud
28fecc428f preliminary parsing of VMDK file (#1)
* initial tests for integration of VMDK inside xo-server
2016-08-11 17:21:16 +02:00
Pierre Donias
4f946293f6 feat(pool): add host (#1398)
Fixes #1374
2016-08-11 17:05:41 +02:00
Olivier Lambert
36788cde2b feat(vm disk): add VBD connect for a running VM. Fixes #1397 2016-08-11 16:52:52 +02:00
Pierre Donias
1547c99e5a feat(new-vm): use saved SSH key in cloud config(#1394)
* feat(new-vm): use saved SSH key in cloud config. Fixes #1319
2016-08-11 13:32:54 +02:00
Olivier Lambert
5c9606dad8 feat(pool): improve pool view. Fixes #1393 2016-08-11 10:34:03 +02:00
Olivier Lambert
fdcb1dccf5 feat(pool): start to work on adding an existing host to a pool 2016-08-11 09:47:52 +02:00
Olivier Lambert
12812b8c23 5.1.5 2016-08-10 18:06:19 +02:00
Olivier Lambert
0098497255 fix(select): select color modified due to an update. Fixes #1391 2016-08-10 16:02:48 +02:00
Olivier Lambert
6562d2de7f feat(sr select): display space left on SR. Fixes #1358 2016-08-10 15:58:36 +02:00
Olivier Lambert
1f0e88cdb0 feat(backup): better tooltips. Fixes #1363 2016-08-10 14:17:27 +02:00
Olivier Lambert
197da91ef3 feat(vdi remove): add modal when removing a VDI. Fixes #1388 2016-08-10 13:39:13 +02:00
Olivier Lambert
cbd59789e2 fix(vm disks): _isFreeForWriting missing case. Fixes #1386 2016-08-10 13:13:17 +02:00
Olivier Lambert
190ecf3d74 fix(pool): pool name and description edition. Fixes #1390 2016-08-10 12:42:46 +02:00
Olivier Lambert
15b8f6bca2 feat(meter tooltips): add tooltips for meter object. Fixes #1387 2016-08-10 12:31:28 +02:00
Pierre Donias
5b406d731b fix(vm): select destination SR when at least one VDI is local (#1382)
* Fixes #1357 
* fix(vm): select destination SR when at least one VDI is local
* fix(vm): do not send map when not necessary
2016-08-09 17:03:08 +02:00
Olivier Lambert
4be9e67ac4 fix(metercss): remove useless and conflicting CSS styles 2016-08-09 10:31:03 +02:00
Olivier Lambert
d047421685 feat(updates): enhance update view. Also fixes #1341 2016-08-08 16:46:47 +02:00
Olivier Lambert
f6f415a421 fix(network): name instead of description 2016-08-08 14:55:15 +02:00
Pierre Donias
edfaaebac0 feat(dashboard/health): Storage table: BlockLink (SR) and Link (SR's pool)
Fixes #1381
2016-08-08 14:15:49 +02:00
Olivier Lambert
67df22a1bf feat(vmsnapshot): add snapshot export and copy. Fixes #1353 and #1336 2016-08-08 14:05:27 +02:00
Pierre Donias
7dc59a00f6 feat(pool): action button to create an SR (#1380)
Fixes #1372
2016-08-08 12:45:12 +02:00
Pierre Donias
6214fe4c2e feat(pool): action button to create a VM (#1379)
Fix #1373
2016-08-08 11:35:24 +02:00
Greenkeeper
21610c3e0a chore(package): update ava to version 0.16.0 (#1377)
https://greenkeeper.io/
2016-08-08 09:57:36 +02:00
Olivier Lambert
87550b0189 5.1.4 2016-08-07 19:35:37 +02:00
Ronan Abhamon
b7c42d0a08 fix(scheduling): range not working
Fixes #1376
2016-08-07 19:35:05 +02:00
Olivier Lambert
c15ad299ac fix(sparklines): smaller sparklines and removing useless dots 2016-08-05 14:39:07 +02:00
Olivier Lambert
48c56cd602 5.1.3 2016-08-05 12:42:01 +02:00
Ronan Abhamon
7957f621ef fix(backups-edit): display correctly old backup jobs
Fixes #1366
2016-08-05 12:12:20 +02:00
Julien Fontanet
8851a661c0 0.9.1 2016-08-05 10:49:08 +02:00
Julien Fontanet
2d327961da fix(objects): use $$ to avoid conflict with reserverd keys 2016-08-05 10:42:33 +02:00
Olivier Lambert
38ddbfdc9c fix(dashboard): inverted value for SR total/used. Fixes #1370 2016-08-04 14:42:50 +02:00
Olivier Lambert
3d2aae81da 5.1.2 2016-08-03 17:22:49 +02:00
Olivier Lambert
2227b9d061 feat(new vm): hide URL install for HVM templates. Fixes #1362 2016-08-03 16:55:43 +02:00
Olivier Lambert
12aab5fa8c feat(snapshots): add tooltips and confirm modal for snapshot oprations. Fixes #1349 2016-08-03 16:34:31 +02:00
Olivier Lambert
7323e6e117 fix(tooltip): remove tooltip if button changes. Fixes #1360 2016-08-03 15:53:38 +02:00
Greenkeeper
ac6d14113a chore(package): update mocha to version 3.0.0 (#9)
https://greenkeeper.io/
2016-08-02 19:21:37 +02:00
Greenkeeper
398db72b44 chore(package): update mocha to version 3.0.0 (#17)
https://greenkeeper.io/
2016-08-02 19:21:01 +02:00
Olivier Lambert
32777e17c4 Initial commit 2016-08-02 16:37:00 +02:00
Julien Fontanet
a3da3299fa Merge pull request #15 from vatesfr/greenkeeper-mocha-3.0.0
Update mocha to version 3.0.0 🚀
2016-08-02 16:20:59 +02:00
Greenkeeper
3a41efbea8 chore(package): update mocha to version 3.0.0 (#40)
https://greenkeeper.io/
2016-08-02 16:20:00 +02:00
Greenkeeper
e763db7102 chore(package): update mocha to version 3.0.0 (#11)
https://greenkeeper.io/
2016-08-02 16:16:53 +02:00
Greenkeeper
6f36869609 chore(package): update gulp-uglify to version 2.0.0 (#1355)
https://greenkeeper.io/
2016-08-02 14:47:18 +02:00
greenkeeperio-bot
2b504ce5ab chore(package): update mocha to version 3.0.0
https://greenkeeper.io/
2016-08-01 07:33:49 +02:00
Ronan Abhamon
4a12419162 feat(backups): supports smart backup (close #837) (#1335)
Fixes #837
2016-07-31 19:03:41 +02:00
ABHAMON Ronan
bf91938aa6 fix(form/Toggle): refresh when set is used (#1347)
Fixes #1339
2016-07-29 11:35:58 +02:00
ABHAMON Ronan
bd70bd2b45 fix(scheduling): fix month selection highlighting (#1345)
Fixes #1338
2016-07-29 10:31:42 +02:00
Greenkeeper
bb26c8e449 chore(package): update modular-css to version 0.25.0 (#1331)
https://greenkeeper.io/
2016-07-28 00:16:06 +02:00
Julien Fontanet
93c7a01e62 5.1.1 2016-07-27 15:31:00 +02:00
Julien Fontanet
9c2359e8ee fix(Tooltip): better PropTypes 2016-07-27 15:29:05 +02:00
Julien Fontanet
5b9000012e fix(Tooltip): behave if children is missing or a string 2016-07-27 15:17:02 +02:00
Julien Fontanet
bf00b4e8e3 fix(Tooltip): better PropTypes 2016-07-27 15:08:52 +02:00
ABHAMON Ronan
ee7787f4ae fix(heatmap): related to last Tooltip changes (#1327)
Fixes #1326
2016-07-27 10:10:55 +02:00
Olivier Lambert
0b88e743c9 feat(changelog): update changelog 2016-07-26 17:07:23 +02:00
Julien Fontanet
f07a947580 5.1.0 2016-07-26 16:54:35 +02:00
Julien Fontanet
0b8a9eedbc feat(tooltip): float → solid, do not follow cursor 2016-07-26 16:50:46 +02:00
ABHAMON Ronan
8d24e596ac fix(tooltip): use position.top instead of position.right (#1322) 2016-07-26 14:49:07 +02:00
ABHAMON Ronan
c2378a44cd fix(tooltip): do not inject an intermediary element (#1321)
Fixes #1150
2016-07-26 14:28:11 +02:00
ABHAMON Ronan
023f7fdef1 feat(home): custom filters & configure default filters (#1308)
Fixes #1235
2016-07-25 15:20:39 +02:00
ABHAMON Ronan
5d7a64bc28 fix(scheduling): timezone support (#1318) 2016-07-25 14:57:38 +02:00
ABHAMON Ronan
8661957a97 feat(timezone-picker): xo-server timezone in the select (#1316)
Fixes #1314
2016-07-25 13:21:37 +02:00
ABHAMON Ronan
7a15d265b7 fix(new/sr): fix IQNs, LUNs selection (#1317)
Fixes #1281
2016-07-25 13:04:05 +02:00
Olivier Lambert
2736881975 fix(new sr): cast port number. See issue #1281 2016-07-23 16:42:58 +02:00
Greenkeeper
44a85f4e0c chore(package): update globby to version 6.0.0 (#1313)
https://greenkeeper.io/
2016-07-23 16:41:41 +02:00
Julien Fontanet
52a6e42e7e fix(pool/storage): display read-only SRs 2016-07-23 16:26:41 +02:00
Julien Fontanet
3dbe058d4e feat(home): add link to VMs console 2016-07-23 15:58:12 +02:00
Pierre Donias
620139efc1 feat(settings/acls): (un)select all objects of a specific type (#1310)
Fixes #1296
2016-07-22 17:45:38 +02:00
Pierre Donias
71464ac2e3 feat(menu): add types as Home sub-menus (#1309)
Fixes #1306
2016-07-22 16:18:16 +02:00
Pierre Donias
4a65489d39 fix(xo): polyfill Intl for Safari (#1307)
Fixes #1120
2016-07-22 15:51:32 +02:00
Pierre Donias
65d7eac590 feat(user): SSH keys management (#1302)
Fix #1299
2016-07-21 12:21:27 +02:00
ABHAMON Ronan
02bbc01dc4 feat(scheduling): improve utilisability (#1300)
Fixes #1295
2016-07-21 10:25:57 +02:00
Julien Fontanet
39a16f9a7f 0.8.0 2016-07-20 16:53:56 +02:00
Julien Fontanet
f3ea8d012f feat(Xo#refreshUser) 2016-07-20 16:53:56 +02:00
Pierre Donias
3066237c86 feat(self/admin): recompute resource sets limits (#1298)
Fixes #1287
2016-07-20 11:36:49 +02:00
Pierre Donias
53f3c0bef1 fix(new-vm): fix CPU weight and add CPU cap (#1297)
Fixes #1286
2016-07-20 10:41:50 +02:00
ABHAMON Ronan
823c91b457 feat(plugins): supports predefined configurations (#1294)
Fixes #1289
2016-07-20 09:46:30 +02:00
ABHAMON Ronan
3bd7e20411 feat(backups): jobs support timezones (#1290)
Fixes #1258
2016-07-20 09:45:35 +02:00
Pierre Donias
24d4610b04 feat(vm/tab-advanced): editable CPU weight and cap (#1293)
Fixes #1283
2016-07-20 09:44:24 +02:00
ABHAMON Ronan
b16097767a feat(json-schema-input): use only schema.defaults in combobox options (#1292)
Fix #1288
2016-07-19 15:06:33 +02:00
ABHAMON Ronan
2ff74ffd39 feat(line-chart): many fixes on graphs legends (#1291)
Fixes #1247
2016-07-19 13:39:53 +02:00
Julien Fontanet
f0bb464136 fix(intl/locales/zh): fix moment import 2016-07-19 10:51:56 +02:00
Julien Fontanet
4767830386 feat(i18n): skeleton for Chinese 2016-07-19 10:02:33 +02:00
Julien Fontanet
ce23d4f164 feat(editable): change cursor to make it easier to see 2016-07-19 09:40:29 +02:00
Pierre Donias
c1380d1256 feat(home): focus search input after changing type (#1285)
Fixes #1228
2016-07-18 17:51:47 +02:00
Pierre Donias
ed9a848858 feat(new-vm): create mutiple VMs with a name pattern (#1271)
Implements parts of #949: initial sequence number.
2016-07-18 14:42:18 +02:00
ABHAMON Ronan
5e4e15fc12 fix(self/overview): display correctly resources set (#1284)
Fixes #1282
2016-07-18 09:36:46 +02:00
Greenkeeper
0dea952a2a chore(package): update modular-css to version 0.23.2 (#1239)
https://greenkeeper.io/
2016-07-15 12:19:47 +02:00
Julien Fontanet
1b9aa63096 Merge pull request #14 from vatesfr/greenkeeper-nyc-7.0.0
Update nyc to version 7.0.0 🚀
2016-07-15 11:29:20 +02:00
Greenkeeper
45b8fd0100 chore(package): update nyc to version 7.0.0 (#38)
https://greenkeeper.io/
2016-07-15 11:29:14 +02:00
Greenkeeper
11bde53069 chore(package): update nyc to version 7.0.0 (#16)
https://greenkeeper.io/
2016-07-15 11:27:31 +02:00
Greenkeeper
f115ee18c4 chore(package): update nyc to version 7.0.0 (#10)
https://greenkeeper.io/
2016-07-15 11:27:11 +02:00
Greenkeeper
162a56232c chore(package): update nyc to version 7.0.0 (#8)
https://greenkeeper.io/
2016-07-15 11:26:53 +02:00
Olivier Lambert
a1818dd525 5.0.9 2016-07-14 14:49:18 +02:00
Pierre Donias
659e336f66 fix(migrate-vms-modal): fix conditions for SR and Network selectors 2016-07-14 14:43:29 +02:00
Pierre Donias
058f7ecd9f feat(Usage): new component to display a usage progress bar
Fixes #1151
2016-07-13 12:50:29 +02:00
Olivier Lambert
831d9cb49f feat(i18n): Portuguese translation
* Translation PT-BR Reviewed and Updated
2016-07-13 11:57:06 +02:00
Olivier Lambert
a5d059b0b1 fix(vm): protect JS crash if arrays[0] is empty 2016-07-13 11:43:52 +02:00
Pierre Donias
4c3b959869 fix(home): add key prop to sort options 2016-07-13 09:59:59 +02:00
Pierre Donias
d81a169a39 fix(form/SizeInput): parseSize value cannot be undefined 2016-07-13 09:59:44 +02:00
Pierre Donias
0d47332526 feat(new-vm): self service with resource sets
Fixes #1155
2016-07-13 09:59:11 +02:00
Pierre Donias
539d136936 fix(page/title): check if the container exists before displaying its name in the title 2016-07-13 09:30:58 +02:00
Pierre Donias
4c28b5775d feat(page/title): page titles for each view
Fixed #1185
2016-07-11 17:33:00 +02:00
Pierre Donias
fe6f351f84 feat(new/sr): page header
Fixes #1129
2016-07-11 17:10:27 +02:00
greenkeeperio-bot
de6f0ef8eb chore(package): update nyc to version 7.0.0
https://greenkeeper.io/
2016-07-09 09:13:32 +02:00
Olivier Lambert
5dbeccf92f 5.0.8 2016-07-08 19:29:54 +02:00
Olivier Lambert
56bba1d84b fix(home): typo on host memoryTotal 2016-07-08 16:22:11 +02:00
ABHAMON Ronan
af05d362b4 fix(stats): avoid calculations on null stats objects
Fix #969
2016-07-08 13:53:25 +02:00
ABHAMON Ronan
268ccf9a36 feat(settings/plugins): presets are supported
Fix #1222
2016-07-08 12:50:45 +02:00
ABHAMON Ronan
e77d4fafaa feat(patches): fix all patches related issues
Fixes #1244, #1245 and #1246
2016-07-08 12:30:32 +02:00
Pierre Donias
b88b99e342 fix(new-vm): display fast clone option only if there are template disks
Fix #1172
2016-07-08 12:20:28 +02:00
Olivier Lambert
f862d0df5b fix(host,vm): use stacked value text in a tooltip for stats 2016-07-08 10:40:15 +02:00
Fabrice Marsaud
dac954155c feat(menu): better contrast and size for update icons 2016-07-07 17:23:12 +02:00
Fabrice Marsaud
cf9deceb15 fix(logs): displays job log message if available 2016-07-07 15:22:43 +02:00
Fabrice Marsaud
72aed98088 Filter errors and successes in job logs (#1242)
* Meta data for job log state

* Preset filters for sorted tables

* Work around a babel issue

Fixes #1232
2016-07-07 14:28:09 +02:00
Fabrice Marsaud
ec92eddde8 display log errors properly (#1248)
Fixes #1134
2016-07-07 14:25:14 +02:00
ABHAMON Ronan
e30b5ab6c3 fix(xo-app): use correct sortOrder on sortedTable instances (#1243) 2016-07-07 14:20:54 +02:00
Olivier Lambert
0a5d26b001 5.0.7 2016-07-07 12:14:37 +02:00
wescoeur
cd8a92c30b 0.3.0 2016-07-07 12:00:24 +02:00
wescoeur
10030c4959 Use default value on cpu/memoryFree. 2016-07-07 11:58:12 +02:00
ABHAMON Ronan
7e4b881041 feat(srs/uuid): UI improvements (fix #1142) (#1230) 2016-07-07 11:23:37 +02:00
Fabrice Marsaud
27a6af414f fix(host): broken patch filter
Fixed #1236
2016-07-07 11:20:43 +02:00
Olivier Lambert
ba6204f811 feat(user): add Spanish in the language selector 2016-07-06 17:09:16 +02:00
Olivier Lambert
d17b1050ad feat(es): add i18n file for Spanish 2016-07-06 17:05:45 +02:00
Olivier Lambert
b70bc86f71 feat(plugins): compact plugin view. Fixes #1130 2016-07-06 15:14:13 +02:00
Olivier Lambert
42b08633e9 fix(host): correctly display XS version. Fixes #1225 2016-07-06 12:45:20 +02:00
ABHAMON Ronan
bc898e1afd fix(pools): use sorted table & links to srs/hosts (fix #1141) (#1219)
* fix(pools): use sorted table & links to srs/hosts (fix #1141)
2016-07-06 10:45:48 +02:00
Pierre Donias
48d5f34ae6 fix(new-vm): wrong conditions for creation disabling (#1224) 2016-07-06 10:07:07 +02:00
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
wescoeur
ffc155c341 0.2.1 2016-06-30 14:12:19 +02:00
wescoeur
42ea76eb2a Supports ui schema builder of xo-web. 2016-06-30 14:10:59 +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
Julien Fontanet
be503f1341 0.4.1 2016-06-30 10:12:30 +02:00
Julien Fontanet
6f4509c260 fix: report only on failures with xo-web 5 2016-06-30 10:12:07 +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
Julien Fontanet
b2331084d1 0.4.0 2016-06-29 11:40:58 +02:00
Julien Fontanet
ab3a594884 chore(package): update all dependencies 2016-06-29 11:34:43 +02:00
Julien Fontanet
592adcf42e 0.1.0 2016-06-29 10:40:03 +02:00
Julien Fontanet
978c881ab7 chore(package): update all dependencies 2016-06-29 10:39:05 +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
99727447ef 0.2.1 2016-06-24 14:32:25 +02:00
Julien Fontanet
e02cb56ee0 feat(VM-controller): inherits from its container 2016-06-24 14:32:16 +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
Julien Fontanet
02f75fb2e1 0.3.0 2016-06-08 17:17:45 +02:00
Fabrice Marsaud
6cced719dc Handling a missing leading slash in nfs path 2016-06-08 17:08:54 +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
Fabrice Marsaud
45ec0b9b01 No more mount matters in nfs remotes + tests 2016-06-08 15:05:09 +02:00
ABHAMON Ronan
9e60f9d9fd feat(SortedTable): add filter (#1039) 2016-06-08 14:48:34 +02:00
Julien Fontanet
2451ac3ade feat(parse): local type is now file 2016-06-08 14:38:31 +02:00
Julien Fontanet
45a94fe73d feat(parse): only accepts a string 2016-06-08 14:36:10 +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
e1173e6565 0.2.0 2016-06-07 16:27:34 +02:00
Julien Fontanet
46f6911ef8 feat(README): add usage 2016-06-07 16:27:05 +02:00
Julien Fontanet
7629bf5be2 feat: simplify use for single object 2016-06-07 16:26:52 +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
fb17de7988 0.2.3 2016-06-07 10:10:51 +02:00
Fabrice Marsaud
32f4d42e59 fix(parse): revert to 0.2 API (#10) 2016-06-07 10:10:20 +02:00
Julien Fontanet
0031c2a9b7 0.2.2 2016-06-06 17:57:22 +02:00
Fabrice Marsaud
509e99913a fix(parse): fix tests and many issues (#9) 2016-06-06 17:56:59 +02:00
Julien Fontanet
c639cfcfd9 fix(parse): do not edit the remote object inplace 2016-06-06 17:17:57 +02:00
Julien Fontanet
b140a2ca3e chore(tests): refactor data 2016-06-06 17:17:19 +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
aa448e7a41 0.2.1 2016-06-06 13:33:33 +02:00
Fabrice Marsaud
220750f887 fix(SMB): use of @ and : chars in passwords (#8)
Fixes #4.
2016-06-06 12:11:29 +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
Fabrice Marsaud
808cc5d8d0 fix: file protocol starts with 3 / (#6)
Fixes #7
2016-06-06 10:57:27 +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
Julien Fontanet
02e1a32fae feat(README) 2016-05-27 17:03:03 +02:00
Julien Fontanet
d1690bda81 Initial commit 2016-05-27 17:00:49 +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
155f2fc36c fix(Xapi#_sessionCall): must pCatch when there is a predicate 2016-05-17 10:40: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
Julien Fontanet
c3dc136de4 0.9.0 2016-05-11 17:44:45 +02:00
Julien Fontanet
4cbc5c4e2f fix(memory leak): due to Bluebird#cancellable()
To be fair, it may be due to an incorrect usage of
Bluebird#cancellable().

Bluebird has been completely removed at the same occasion.
2016-05-11 17:42:01 +02:00
Julien Fontanet
68820aaf59 fix(cli): add babel-polyfill dep 2016-05-11 17:40:56 +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
Julien Fontanet
cd65bc7683 chore: simplify _watchEvents() and _watchEventsLegacy() implementation
I finally understood ES6 Temporal Dead Zone!
2016-05-11 15:23:57 +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
Julien Fontanet
4d4a2897a5 0.7.0 2016-05-11 12:59:14 +02:00
Julien Fontanet
cd73c8f82f 0.2.0 2016-05-11 12:58:59 +02:00
Julien Fontanet
934e67d146 Document JSON syntax 2016-05-11 12:57:53 +02:00
Julien Fontanet
4c96e44b9b fix(format): use correct type for local 2016-05-11 12:49:29 +02:00
Julien Fontanet
189900549a feat(tests): basic tests for local and smb types 2016-05-11 12:49:06 +02:00
Julien Fontanet
6d18420a5d fix(tests): make them pass 2016-05-11 12:22:28 +02:00
Julien Fontanet
ab3d307393 chore(package): update all dependencies 2016-05-11 12:22:26 +02:00
ABHAMON Ronan
89b2156f61 chore(package): remove unused babel-runtime (#3) 2016-05-11 12:19:09 +02:00
Olivier Lambert
bfcaca7bc0 tab button for VM view 2016-05-11 12:17:30 +02:00
ABHAMON Ronan
2f95da1892 fix(package): lodash.xxx are prod dependencies (#2) 2016-05-11 12:08:34 +02:00
Olivier Lambert
fcb0482193 use TabButton component in host view 2016-05-11 12:02:50 +02:00
Julien Fontanet
6e0956f09f feat(memory-test): split into inject-events 2016-05-11 11:30:49 +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
Julien Fontanet
1191f0ba93 feat(events): it's possible not to watch them 2016-05-10 15:35:43 +02:00
Julien Fontanet
6534ffea26 perf(objects): memoize () => this._pool 2016-05-10 14:55:19 +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
Julien Fontanet
f9173c41d1 chore(package): remove unnecessary babel-runtime 2016-05-10 10:12:24 +02:00
Olivier Lambert
6b5a19983d missing translation in server view 2016-05-09 19:41:36 +02:00
Julien Fontanet
a2faedcacb fix(debounce): it can be changed at runtime 2016-05-09 18:40:27 +02:00
Julien Fontanet
cb56b3b9d0 chore: rewrite some code using invoke pattern 2016-05-09 18:11:14 +02:00
Julien Fontanet
a61b50548c feat: memory test 2016-05-09 18:00:09 +02:00
Olivier Lambert
2471f447b3 add current status info for VMs 2016-05-09 17:18:44 +02:00
Julien Fontanet
75ad588e0b fix(package): clarify, source-map-support & trace are prod deps 2016-05-09 14:07:55 +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
Julien Fontanet
306d5d8fc7 feat(event): authenticationFailure 2016-05-06 12:33:56 +02:00
Olivier Lambert
88f94f5d6f improved XO title in menu collapse 2016-05-04 21:07:58 +02:00
Julien Fontanet
5553d5fefa Merge pull request #8 from vatesfr/greenkeeper-update-all
Update all dependencies 🌴
2016-05-04 16:21:06 +02:00
Julien Fontanet
9328518bbc chore: various updates 2016-05-04 16:14:50 +02:00
Julien Fontanet
6564edcc32 chore(package): update all dependencies (except Bluebird) 2016-05-04 15:54:04 +02:00
Julien Fontanet
75bb7d5a2d fix(prompt-schema): adapt to inquirer version 1.0.0 2016-05-04 14:48:47 +02:00
Julien Fontanet
ceab4e37cd style(prompt-schema): handle ESLint special cases 2016-05-04 14:45:01 +02:00
greenkeeperio-bot
afb6974cc0 chore(package): update dependencies
https://greenkeeper.io/
2016-05-04 14:35:22 +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
Greenkeeper
a4dc965c23 chore(package): update standard to version 7.0.0 (#3)
https://greenkeeper.io/
2016-05-03 09:16:47 +02:00
Greenkeeper
8b65c280a8 chore(package): update standard to version 7.0.0 (#4)
https://greenkeeper.io/
2016-05-03 09:05:49 +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
Greenkeeper
c46c0018ea chore(package): update nyc to version 6.4.0 (#9)
https://greenkeeper.io/
2016-04-27 22:20:32 +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
Julien Fontanet
4ab24d2fe5 0.1.0 2016-04-27 16:11:12 +02:00
Julien Fontanet
c70ca2ff64 style: add missing parentheses 2016-04-27 15:58:22 +02:00
Julien Fontanet
649ab26da8 feat: gracefully handle missing objects 2016-04-27 15:52:19 +02:00
Julien Fontanet
c921ea6eb7 Merge pull request #1 from vatesfr/greenkeeper-update-all
Update all dependencies 🌴
2016-04-27 15:49:02 +02:00
greenkeeperio-bot
58aed76aa3 chore(package): update dependencies
https://greenkeeper.io/
2016-04-27 15:44:41 +02:00
Julien Fontanet
e286c57ce4 Merge pull request #2 from vatesfr/v0.8.x
Refactor on top of jsonrpc-websocket-client
2016-04-27 15:26:39 +02:00
Olivier Lambert
977fc7832a initial network tab added for host 2016-04-27 15:23:39 +02:00
Julien Fontanet
840f0b6379 chore(package): update babel-eslint to version 6.0.4 2016-04-27 15:18:09 +02:00
Julien Fontanet
538025edd5 chore: remove irrelevant comment 2016-04-27 15:14:33 +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
Julien Fontanet
35e8dcc3be 0.8.0 2016-04-26 08:46:22 +02:00
Julien Fontanet
d1600fd058 fix: handle UUID changes (fix #5). (#7) 2016-04-26 08:46:04 +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
Julien Fontanet
1416fb0c71 Xapi#call(): only *.get_*() methods in readonly mode. 2016-04-19 16:32:18 +01:00
Julien Fontanet
2975db247d Do not attempt to fix JSON is parsing is successful. 2016-04-19 13:29:51 +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
Julien Fontanet
03eaa652ce Optional debounce for events. 2016-04-14 17:55:41 +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
1e7d1b1628 0.0.0 2016-04-08 11:05:41 +02:00
Julien Fontanet
defd42f74e VDI: fix fallback on VM. 2016-04-08 10:46:57 +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
wescoeur
aa54ab6e51 0.2.0 2016-04-06 16:01:24 +02:00
wescoeur
f0c28c74d8 Try to power on a hosts set. (Performance mode) 2016-04-06 16:00:01 +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
wescoeur
3e285d6131 Search destination host per pool. (Performance mode) 2016-04-06 15:24:34 +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
Julien Fontanet
c96d94329e Fix using / as url. 2016-03-30 11:34:26 +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
wescoeur
627227f2f9 0.1.0 2016-03-24 11:48:49 +01:00
wescoeur
42cef0da88 Performance and density mode work. 2016-03-24 11:44:23 +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
wescoeur
06f60b7d92 Make code modular. 2016-03-24 09:46:14 +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
wescoeur
3ddb4d2b23 Log VM migrations (density mode). 2016-03-23 17:37:41 +01:00
wescoeur
5a825bd459 Density mode test. 2016-03-23 16:52:05 +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
Olivier Lambert
ab1f08f687 0.3.4 2016-03-23 10:35:41 +01:00
Pierre
2f89e3658a Backup type in report e-mail (See vatesfr/xo-web#822) 2016-03-23 10:11:01 +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
eac29993d3 0.7.4 2016-03-22 09:37:55 +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
Olivier Lambert
f08ab729bd 0.3.3 2016-03-17 14:18:18 +01:00
Pierre
052c974369 Fixed get tag 2016-03-17 14:15:19 +01:00
Olivier Lambert
e760e868c1 0.3.2 2016-03-17 13:47:45 +01:00
Julien Fontanet
2034445f5b Various updates. 2016-03-17 12:13:29 +01:00
Pierre
5e3831a1a4 Added tag in report e-mail 2016-03-17 12:11:49 +01:00
wescoeur
99e046ddea Performance mode: The worst host is removed of hosts array after optimization. 2016-03-17 12:11:34 +01:00
wescoeur
12e0759711 Optimize hosts in order priority. 2016-03-17 11:21:15 +01:00
wescoeur
da0c1cec22 Fix cpu average. Use the cpu number of host and vm. 2016-03-17 11:01:12 +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
Julien Fontanet
d23df2ab15 0.0.6 2016-03-16 14:04:14 +01:00
Julien Fontanet
dbe828097c Do not set credentials if they are undefined. 2016-03-16 14:03:28 +01:00
Julien Fontanet
48a0623ded Fix handling of ignoreUnauthorized option. 2016-03-16 14:03:01 +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
3527b86ec5 Add empty test file. 2016-03-15 16:25:46 +01:00
Julien Fontanet
fe7a9104a8 Minor package.json changes. 2016-03-15 16:13:49 +01:00
Julien Fontanet
cbfb94afcb Update deps. 2016-03-15 15:42:14 +01:00
Julien Fontanet
74d8eff6d8 Add support for JSON encoded values. 2016-03-14 10:20:15 +01:00
wescoeur
d7ed9ab64e Remove masters from toOptimize and hosts. 2016-03-11 16:48:36 +01:00
wescoeur
3b6c5898fe Plugin can use enum for modes now. 2016-03-11 15:57:29 +01:00
wescoeur
ae22adc920 Density mode in progress. 2016-03-11 15:45:23 +01:00
wescoeur
5dacf9c3f5 The configuration object must not be modified. 2016-03-11 14:42:40 +01:00
wescoeur
9129bfa284 Excluded hosts in options. 2016-03-11 11:32:37 +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
96190c21d6 threshold 0 can by used with cpu. 2016-03-09 17:53:38 +01:00
Julien Fontanet
af2a9225b8 Fix invalid \t in JSON. 2016-03-09 17:41:55 +01:00
wescoeur
aa117a0ee3 Fixes hosts top optimize. 2016-03-09 17:29:57 +01:00
wescoeur
39b0ea381b Debug exec plans 2016-03-09 17:24:57 +01:00
wescoeur
8ce3a4f904 SMB can be used with delta backups. 2016-03-09 17:12:15 +01:00
wescoeur
021cea0b34 Thresholds are exposed in configuration. 2016-03-09 16:59:36 +01:00
wescoeur
eaad41fe55 Load balancer config use a checkbox. 2016-03-09 16:06:06 +01:00
wescoeur
e25d58d70a Fixes. 2016-03-09 15:34:57 +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
wescoeur
9c0967170a Schema update. 2016-03-09 12:23:02 +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
wescoeur
abd89df365 Three class: Plan, PerfomancePlan, DensityPlan. 2016-03-03 14:47:56 +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
wescoeur
651e4bb775 Fixes (cpus to cpu). Add Low/Critical thresholds. 2016-03-03 11:17:04 +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
wescoeur
7f06d6e68c Low threshold are automatically computed. 2016-03-02 16:56:59 +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
wescoeur
e5146f7def Many fixes. Cron Job is in a job structure. 2016-03-02 12:16:30 +01:00
wescoeur
d9bf7c7d12 Many fixes. Configure must operate if cron job is running. 2016-03-02 11:20:28 +01:00
wescoeur
b0bf18e235 Debug messages. 2016-03-02 10:36:43 +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
wescoeur
f001b2c68f Unstable, plugin can migrate vm. (to test) 2016-03-02 10:24:56 +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
a24de7fe3f Fix type case in README. 2016-02-29 18:02:30 +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
wescoeur
296141ad3d Unsable: _computeOptimizations 2016-02-26 16:42:11 +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
wescoeur
7abba0a69b Many fixes. Compute real cpu usage of vms. 2016-02-26 15:28:00 +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
wescoeur
dee7767427 Get only the vms stats of the worst host. 2016-02-26 11:57:41 +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
wescoeur
087a71367d Optimizations only on one host ! 2016-02-26 11:07:22 +01:00
wescoeur
bec2e3b4a0 getVms & getVmsStats functions. 2016-02-26 10:20:15 +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
wescoeur
274884ef4d Reorder exceeded hosts by priority. 2016-02-25 16:06:46 +01:00
Olivier Lambert
77b773388f fix network list in new vm, using map before orderby 2016-02-25 15:47:34 +01:00
wescoeur
d3f52cdd1a Compute exceeded hosts. 2016-02-25 13:10:27 +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
wescoeur
cb97e37c15 Get stats for host. 2016-02-24 15:27:11 +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
wescoeur
3013fa86b6 Configure implem. 2016-02-24 12:50:03 +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
wescoeur
2593743746 Json schema (prototype). 2016-02-24 10:53:48 +01:00
wescoeur
ab6bd56006 Initial commit. 2016-02-24 10:05:20 +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
Julien Fontanet
e02b8522d6 0.0.5 2016-02-22 16:03:54 +01:00
Julien Fontanet
8cf74c88ce Add ignoreUnauthorized option. 2016-02-22 16:03:33 +01:00
Julien Fontanet
4095d6dcf6 0.3.1 2016-02-22 15:45:51 +01:00
Julien Fontanet
cd4221e4f2 0.3.0 2016-02-22 15:44:38 +01:00
Julien Fontanet
e4e65e4576 0.0.4 2016-02-22 15:42:05 +01:00
Julien Fontanet
72e93786df Log errors. 2016-02-22 15:41:03 +01:00
Julien Fontanet
548754821e Merge pull request #8 from vatesfr/conditional-reporting
Implement conditional reporting.
2016-02-19 10:32:17 +01:00
Danp2
77f85579e3 Implement conditional reporting. 2016-02-19 10:23:48 +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
Pierre
e3ec03794a Markdown generator first version 2016-02-12 14:29:51 +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
Julien Fontanet
05c325d686 Fetch the correct VM even when the param is vm and not id (fix #3). 2016-02-12 09:09:39 +01:00
thehanatos
cf9472eb56 changes 2016-02-11 16:53:28 +01:00
Pierre
bb2085436e Network usage stats 2016-02-11 16:20:04 +01:00
Olivier Lambert
07a03940a0 order installed patch by name 2016-02-11 11:45:56 +01:00
Pierre
d882a4249a Standardized function declarations 2016-02-11 11:38:18 +01:00
thehanatos
a2420e4288 changes 2016-02-11 11:21:43 +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
3687a230e1 promise-toolbox: all to resolve promises in object 2016-02-10 12:27:55 +01:00
Pierre
c274486057 Improved getHostVmsStats (Promise.all) 2016-02-10 12:13:26 +01:00
Pierre
94e9bbfd63 VM stats for multiple hosts with generateHostsVmsReport.
Renamed generateHostVmReport.
2016-02-10 11:40:21 +01:00
Julien Fontanet
adb71ad174 FIx my previous commit -_-". 2016-02-10 11:06:47 +01:00
Julien Fontanet
4a95f5cd9d Coding style. 2016-02-10 10:48:02 +01:00
Julien Fontanet
f3b368fae4 Merge pull request #2 from Danp2/Danp2-deltacopy
Enable reporting on additional backup types.
2016-02-10 10:45:54 +01:00
Julien Fontanet
20919a8a39 Absence of tests should not prevent CI linting. 2016-02-10 10:31:30 +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
Danp2
f2e86efc4d Update index.js 2016-02-09 21:22:17 -06:00
Danp2
98b27d647e Add logic for processing delta copy backup types 2016-02-09 21:10:00 -06: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
Pierre
7a884d1f87 getPoolVmStats returns an object with VM IDs as keys instead of an array 2016-02-05 16:42:00 +01:00
Pierre
d21f5f427c getPoolVmStats to get all the VMs stats from a specific pool 2016-02-05 15:01:55 +01:00
Pierre
9ba2a6628d generateGlobalCpuReport: average CPU usage for each host 2016-02-05 10:59:56 +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
Julien Fontanet
739641b857 0.0.3 2016-02-04 18:12:31 +01:00
Julien Fontanet
d02a110f99 Minor comment. 2016-02-04 18:12:16 +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
thehanatos
9120db2dc6 get n values max 2016-02-04 09:49:14 +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
Julien Fontanet
bf586d0837 0.0.0-0 2016-02-03 11:41:01 +01:00
Julien Fontanet
ed45a9b156 VDI-snapshot inherits from its VDI. 2016-02-03 11:35:48 +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
Julien Fontanet
f4ea39b602 Initial commit. 2016-02-03 10:02:39 +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
Julien Fontanet
a6dca12bad user and password config entries are optional (fix #2). 2016-02-02 16:49:45 +01:00
Julien Fontanet
e40411ef91 Use live stats. 2016-02-02 11:13:27 +01:00
thehanatos
fd20c21243 granularity added 2016-02-02 10:55:32 +01:00
Julien Fontanet
5c0474ef96 Various updates. 2016-02-02 10:23:20 +01:00
Julien Fontanet
73d1de75f9 Fix computeMin() and computeMax(). 2016-02-02 10:23:11 +01:00
thehanatos
8ea6989ea4 max, min and mean in the same function 2016-02-02 10:02:15 +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
Julien Fontanet
16a9f44d4d Xapi#getObject(): behave nicely when a XAPI object is passed. 2016-01-28 10:08:26 +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
f26fc9a0f0 0.1.0 2016-01-26 17:32:49 +01:00
Fabrice Marsaud
3fd637b3c7 method rename 2016-01-26 17:32:35 +01:00
Fabrice Marsaud
ea605383d5 Various info 2016-01-26 16:08:40 +01:00
Fabrice Marsaud
a4fa670dc5 Initial commit 2016-01-26 16:01:03 +01:00
Julien Fontanet
56f99b2129 Implement a more generic method. 2016-01-26 15:38:03 +01:00
thehanatos
ccb508705b Fonctions computemin and computemax added 2016-01-26 15:06:53 +01:00
Julien Fontanet
6f8fa96150 Mutualize code into functions. 2016-01-26 14:22:35 +01:00
thehanatos
72e1632499 Method to get min, max average values (cpu) 2016-01-26 11:39:39 +01: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
7d7cc56527 0.8.0-1 2016-01-22 17:47:41 +01:00
Julien Fontanet
85d0271b86 Xo#call(method, args).retry(predicate) 2016-01-22 17:47:35 +01:00
Julien Fontanet
749d5e22bb Update jsonrpc-websocket-client to 0.0.1-4. 2016-01-22 17:46:38 +01:00
Julien Fontanet
0ffa9d4225 Various updates. 2016-01-22 16:03:33 +01:00
Julien Fontanet
61c61adea1 Minor code dedup. 2016-01-21 15:42:34 +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
Julien Fontanet
c8a6fd19a7 0.8.0-0 2016-01-07 18:04:52 +01:00
Julien Fontanet
0b143b580a Various updates. 2016-01-07 18:01:11 +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
Julien Fontanet
ed69fedc0a Initial commit. 2016-01-05 18:13:43 +01:00
Julien Fontanet
8098464f58 Initial commit. 2016-01-05 18:13:43 +01:00
Julien Fontanet
ea0db57388 0.6.0 2016-01-05 18:03:58 +01:00
Julien Fontanet
6fcc148105 0.7.3 2016-01-05 16:09:19 +01:00
Julien Fontanet
3485cb4ec4 Guard against null/undefined error.res. 2016-01-05 16:09:06 +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
Julien Fontanet
e6ef6ccccf 0.5.1 2015-12-30 19:16:05 +01:00
Julien Fontanet
4826e14cad Log bind failures. 2015-12-30 19:15:58 +01:00
Julien Fontanet
5515f90147 README updates. 2015-12-30 19:12:24 +01:00
Julien Fontanet
2193c26acb 0.5.0 2015-12-30 19:03:13 +01:00
Julien Fontanet
1974a2c0e4 Use my Vates email. 2015-12-30 19:01:41 +01:00
Julien Fontanet
84fbe9ee06 Do not depend on Bluebird. 2015-12-30 19:00:32 +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
Julien Fontanet
b8e2cfc47f CLI for testing. 2015-12-30 17:46:21 +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
553fc6f5d9 0.7.4 2015-12-30 12:01:12 +01:00
Julien Fontanet
f5d790b264 Do not automatically retry on connection errors! 2015-12-30 12:00:58 +01:00
Julien Fontanet
641e13496e Return null instead of throwing when no matches. 2015-12-28 10:18:47 +01:00
Julien Fontanet
a6e18819d4 Use arrow funcs where possible. 2015-12-28 10:18:21 +01:00
Julien Fontanet
faf5ff6aa4 Reading certs is now async. 2015-12-28 10:11:17 +01:00
Julien Fontanet
ae20ca5558 Update deps. 2015-12-28 09:20:11 +01:00
Julien Fontanet
22bd87c965 Update ldapjs to 1.0. 2015-12-28 09:20:11 +01:00
Julien Fontanet
2129645f39 Babel 6. 2015-12-28 09:20:11 +01:00
Julien Fontanet
93a07b6207 Typo. 2015-12-28 09:20:09 +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
Julien Fontanet
b2a51bd658 0.7.2 2015-12-18 11:29:08 +01:00
Julien Fontanet
e5ab1dc154 Fix opaque ref detection in arrays. 2015-12-18 11:28:58 +01:00
Julien Fontanet
6274969635 0.7.1 2015-12-18 11:23:29 +01:00
Julien Fontanet
069c430346 Fix opaque ref detection. 2015-12-18 11:23:24 +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
Julien Fontanet
cbcc4dd21d 0.7.0 2015-12-17 16:33:55 +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
Julien Fontanet
b4cdf4d277 Minor optimizations. 2015-12-16 14:19:30 +01:00
Julien Fontanet
716d7bfcf6 Optimize opaque refs detection. 2015-12-16 14:15:37 +01:00
Julien Fontanet
b45a169a2f Read only mode can be altered after initial construction. 2015-12-16 13:58:33 +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
Julien Fontanet
d98a457271 0.0.2 2015-12-03 16:34:23 +01:00
Julien Fontanet
ef3a0d881f Add empty file to make Travis not fail. 2015-12-03 16:34:13 +01:00
Julien Fontanet
669a9e5cc3 Merge pull request #1 from Phlogi/patch-1
Fix required field, changed from pass to password
2015-12-03 16:32:31 +01:00
Phlogi
5eb58ae6cc Fix required field, changed from pass to password
this one was missed on 7af5964f13
2015-12-03 16:29:26 +01:00
wescoeur
7fa1923400 0.1.1 2015-12-03 16:24:14 +01:00
wescoeur
4c165bd620 Package is not private. 2015-12-03 16:24:05 +01:00
wescoeur
7c04a455b4 0.1.0 2015-12-03 16:22:16 +01:00
ABHAMON Ronan
06b6061518 Update README.md 2015-12-03 16:19:49 +01:00
wescoeur
3821ee3dcd Update package.json description. 2015-12-03 16:11:58 +01:00
wescoeur
03a33646d6 0.2.1 2015-12-03 15:54:24 +01:00
wescoeur
791183553e Update README 2015-12-03 15:53:19 +01:00
wescoeur
de6ef49043 0.2.0 2015-12-03 15:43:35 +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
Julien Fontanet
720b9ef999 0.6.9 2015-12-03 12:40:31 +01:00
Julien Fontanet
9b9e4dddfc Gracefully fails if error.res does not exists. 2015-12-03 12:39:59 +01:00
Julien Fontanet
7434e0352f 0.6.8 2015-12-02 17:37:28 +01:00
Julien Fontanet
26d61af902 Fall back to legacy events on server failure (work around #2). 2015-12-02 17:36:29 +01:00
Julien Fontanet
5bd12c5f9e Fix XML-RPC error display. 2015-12-02 17:31:13 +01:00
Julien Fontanet
e07fae4290 Revert to Babel 5 for now. 2015-12-02 17:30:42 +01:00
wescoeur
c487c5042f The plugins configurations can be cleaned. fix #539 2015-12-02 16:14:36 +01:00
wescoeur
28bf7ee90b Update schema with titles/descriptions on mails/xmpp attributes. 2015-12-02 15:47:33 +01:00
wescoeur
4d1ca7ede4 Merge remote-tracking branch 'refs/remotes/origin/master' 2015-12-02 15:42:27 +01:00
wescoeur
f3b46515c5 Update for Xmpp support 2015-12-02 15:40:40 +01:00
wescoeur
0aa5e7ba63 Use {...conf} instead of conf (Frozen object) 2015-12-02 15:39:47 +01:00
wescoeur
8d8bf43b46 to parameter is now an array of xmpp address 2015-12-02 15:27:51 +01:00
wescoeur
9983407c8b Make the client in load. 2015-12-02 15:00:38 +01:00
wescoeur
2471ad4215 Plugin works with few options 2015-12-02 14:33:50 +01:00
wescoeur
f266982560 Use node-xmpp-client for the transport protocol 2015-12-02 10:46:24 +01:00
Julien Fontanet
c059a416f7 0.1.1 2015-12-01 15:54:42 +01:00
Olivier Lambert
82dc0c0593 Update README.md 2015-12-01 14:43:17 +01:00
Olivier Lambert
5faad3db92 Update the documentation 2015-11-30 19:15:01 +01:00
Olivier Lambert
099db6792a Update the documentatioh 2015-11-30 18:58:56 +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
wescoeur
74a31f3301 Add schema 2015-11-27 16:47:16 +01:00
wescoeur
f88c0b9b67 Init 2015-11-27 14:51:54 +01:00
wescoeur
61ef313b1c 0.1.0 2015-11-27 14:45:04 +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
048cea19b7 0.0.1 2015-11-27 10:59:41 +01:00
Julien Fontanet
3e77c76c34 Make config entry from required. 2015-11-27 10:59:08 +01:00
Julien Fontanet
9b6c5d2ea3 Rename config entry pass to password. 2015-11-27 10:58:56 +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
wescoeur
2fa081a4ba Plugin supports now Disaster recovery jobs 2015-11-26 15:47:25 +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
Julien Fontanet
5b9a3ca1cb This module is no longer private. 2015-11-26 15:22:32 +01:00
Julien Fontanet
bf7c56a269 Remove unnecessary new line. 2015-11-26 15:21:40 +01:00
Julien Fontanet
d33af742dd Initial commit. 2015-11-26 15:19:09 +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
wescoeur
823879e9f9 0.0.2 2015-11-26 11:12:08 +01:00
ABHAMON Ronan
98eb285e14 Update README.md 2015-11-26 11:11:16 +01:00
wescoeur
37fd2e1103 0.0.1 2015-11-26 10:57:16 +01:00
ABHAMON Ronan
56db5dc341 Update README 2015-11-26 10:39:48 +01:00
ABHAMON Ronan
d48fa235b1 Update README 2015-11-25 17:41:17 +01:00
wescoeur
06a111495b Update package.json with plugin infos 2015-11-25 17:23:52 +01:00
wescoeur
f3fb0797bf Schema description fix 2015-11-25 17:14:58 +01:00
wescoeur
561b8f4eed Coding style fixes 2015-11-25 17:13:29 +01:00
wescoeur
8cfc6f0b1d Add schema + Plugin use now an array of receivers 2015-11-25 16:36:08 +01:00
wescoeur
7e04f26f78 Send email to one address 2015-11-25 16:11:27 +01:00
Julien Fontanet
348c30b61e Use Babel 5. 2015-11-25 15:00:41 +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
Julien Fontanet
ad1e60e137 Fix transport config. 2015-11-25 14:21:29 +01:00
Julien Fontanet
97e0a983f1 Fix schema. 2015-11-25 14:19:41 +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
Julien Fontanet
45681e645b Revert to Babel 5. 2015-11-25 10:21:02 +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
Julien Fontanet
a4e9f1a683 Remove unused code. 2015-11-24 11:48:31 +01:00
Julien Fontanet
f8c74daef5 Use object spread instead of altering passed object. 2015-11-24 11:47:53 +01:00
Julien Fontanet
b3a593afd7 Test on Node stable. 2015-11-24 11:47:31 +01:00
Julien Fontanet
d45461bc47 Various updates. 2015-11-23 16:24:47 +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
wescoeur
58aa2b6a49 Check backup calls 2015-11-20 11:30:01 +01:00
wescoeur
fb06905c86 Fix NoSuchObject exception 2015-11-20 11:07:47 +01:00
wescoeur
4a2911557d Fix remove listener 2015-11-20 10:31:29 +01:00
Pierre
3692ffcde7 Rename function : emergencyHostShutdown -> emergencyShutdownHost 2015-11-20 10:19:06 +01:00
wescoeur
99caa5dddc Load/unload implem. 2015-11-20 10:13:12 +01:00
Julien Fontanet
86b42a3716 Initial commit. 2015-11-19 18:22:57 +01:00
wescoeur
12c4680501 Initial commit 2015-11-19 17:22:55 +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
Julien Fontanet
b7e05c236f Initial commit. 2015-11-19 16:59:06 +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
Julien Fontanet
e304395179 Work around ESLint bug. 2015-11-11 15:58:15 +01:00
Julien Fontanet
6b83130853 Various updates. 2015-11-11 15:52:12 +01:00
Julien Fontanet
9565718699 Update deps. 2015-11-11 15:52:06 +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
0f03208aa1 Commands filtering. 2015-10-30 11:30:22 +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
Julien Fontanet
d58add18fc Document --list-objects 2015-10-28 14:47:24 +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
Julien Fontanet
3a0413d8bb Fix coding style. 2015-10-28 12:54:52 +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
Julien Fontanet
9122f9b291 Always use session.signIn(). 2015-10-28 12:46:51 +01:00
Julien Fontanet
d279db2a0e Update deps. 2015-10-28 12:42:20 +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
Julien Fontanet
c6657b9619 Sets the length when/if known on download. 2015-10-27 18:47:44 +01:00
Julien Fontanet
80d8388eb6 Update deps. 2015-10-27 16:12:09 +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
Julien Fontanet
b1ee4bdc09 Standard coding style. 2015-10-27 12:27:57 +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
Julien Fontanet
ac11885379 0.6.7 2015-10-23 16:53:53 +02:00
Julien Fontanet
277669a13c Fix events watching XenServer < 6.0. 2015-10-23 16:53:42 +02:00
Julien Fontanet
fcbc476462 Fix coding style. 2015-10-23 16:53:05 +02:00
Julien Fontanet
4944b415c7 0.6.6 2015-10-23 16:03:02 +02:00
Julien Fontanet
5da7312d2d Correctly publish .mocha.js 2015-10-23 16:02:42 +02:00
Pierre
562820180c Added button to install all the missing patches on host at one go 2015-10-23 15:48:03 +02:00
Julien Fontanet
954d19fe50 Fix objects collection in read-only mode. 2015-10-23 15:33:22 +02:00
Julien Fontanet
addd86f5d2 Better stack traces in CLI. 2015-10-23 15:33:02 +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
Julien Fontanet
1b90223210 0.6.5 2015-10-23 14:54:02 +02:00
Julien Fontanet
95989ff63b Add find() and findAll() in CLI. 2015-10-23 14:51:25 +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
799f758dce Document constructor options. 2015-10-20 15:46:50 +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
Julien Fontanet
5b782993fd Fix the license. 2015-10-12 15:39:26 +02:00
Julien Fontanet
138e60e77c 0.4.2 2015-10-12 15:38:50 +02:00
Julien Fontanet
9771402c54 No need to reload the plugin after a configure. 2015-10-12 15:38:34 +02:00
Julien Fontanet
30dcb4d8d2 Should be globally installed. 2015-10-12 15:31:09 +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
Julien Fontanet
c418c766d8 This test is no longer relevant. 2015-10-12 10:26:45 +02:00
Julien Fontanet
334d843955 Move defaults to the schema. 2015-10-12 10:16:45 +02:00
Julien Fontanet
2e5169eb46 0.4.1 2015-10-09 18:55:23 +02:00
Julien Fontanet
3cdc1c03c3 0.1.1 2015-10-09 18:54:19 +02:00
Julien Fontanet
733c619b1f 0.2.1 2015-10-09 18:53:13 +02:00
Julien Fontanet
2021b644c0 0.4.1 2015-10-09 18:52:57 +02:00
Julien Fontanet
f55ed13bd2 0.2.0 2015-10-09 17:57:27 +02:00
Julien Fontanet
14b7072b5b 0.1.0 2015-10-09 17:56:59 +02:00
Julien Fontanet
98395abc17 0.4.0 2015-10-09 17:56:37 +02:00
Julien Fontanet
5db5c4e52c 0.4.0 2015-10-09 17:56:00 +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
Julien Fontanet
b31f55063d New plugin API. 2015-10-08 13:56:03 +02:00
Julien Fontanet
71e77ad45a New plugin API. 2015-10-08 13:55:57 +02:00
Julien Fontanet
25873e0e02 New plugin API. 2015-10-08 13:55:26 +02:00
Julien Fontanet
22638a8147 New plugin API. 2015-10-08 13:54:33 +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
Julien Fontanet
e075f1c08b 0.6.4 2015-10-06 14:35:33 +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
Julien Fontanet
7e0aa719b4 Use Collection.unset() instead of remove() to avoid exceptions. 2015-10-02 14:05:26 +02:00
Julien Fontanet
ce7bc9f438 Correctly export isObject(). 2015-10-02 12:57:51 +02:00
Julien Fontanet
43a362d0eb Use constants for code robustness & performance. 2015-10-02 12:56:39 +02:00
Julien Fontanet
7d7e6e10b9 Properly use Object.prototype.hasOwnProperty(). 2015-10-02 12:27:18 +02:00
Julien Fontanet
73821b0f12 Isolate isObject(). 2015-10-02 12:26:54 +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
2071a7d308 Use kindof instead of typeof where appropriate. 2015-10-01 20:47:32 +02:00
Julien Fontanet
c439daadad Minor opt. 2015-10-01 20:43:27 +02:00
Julien Fontanet
083f325076 Temporary work around for eslint/eslint#3946. 2015-10-01 20:31: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
Julien Fontanet
ee53433dcc Use const wherever possible. 2015-10-01 18:25:01 +02:00
Julien Fontanet
ad10d13a75 Update standard. 2015-10-01 18:23:17 +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
Julien Fontanet
4fd9639457 0.7.3 2015-09-24 16:40:31 +02:00
Julien Fontanet
2f2ee1f431 Update ws 0.8.0 to support Node 4. 2015-09-24 16:39:54 +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
Julien Fontanet
ad06c8147f Initial commit. 2015-09-22 17:27:57 +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
Julien Fontanet
a2f5f1cb0e 0.5.0 2015-09-21 18:13:13 +02:00
Julien Fontanet
1fbe7d92eb Add --list-objects (fix #8 and fix #9). 2015-09-21 18:13:04 +02:00
Julien Fontanet
760974c7c7 Clearer explanation for the callback URL. 2015-09-21 10:30:53 +02:00
Julien Fontanet
e1587d11b1 FIXME: certificates reading should be async. 2015-09-21 10:23:48 +02:00
Julien Fontanet
0595360808 Update deps. 2015-09-18 14:51:34 +02:00
Julien Fontanet
1a8149e456 This package should be installed globally. 2015-09-18 14:51:18 +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
Julien Fontanet
fd6f92f6b5 0.3.1 2015-09-16 11:57:52 +02:00
Julien Fontanet
ddf7226ba8 Minor fixes in the README. 2015-09-16 11:57:44 +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
Julien Fontanet
a1cd95752a 0.3.0 2015-09-16 11:35:32 +02:00
Julien Fontanet
d131a26a41 Fix the license. 2015-09-16 11:35:26 +02:00
Julien Fontanet
10a7c75001 Enable tests on Node 4. 2015-09-16 11:13:25 +02:00
Julien Fontanet
1f454ababf Support custom username field. 2015-09-16 11:12:42 +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
Julien Fontanet
4ee352fdb2 Always use instances of Error for errors. 2015-09-14 16:45:17 +02:00
Fabrice Marsaud
2c10996bb3 UI terms 2015-09-14 16:13:33 +02:00
Julien Fontanet
96ea3ded4a Better stacktraces in CLI. 2015-09-14 16:02:09 +02:00
Julien Fontanet
8bbc6e9ff5 Initial read only mode (fix #3). 2015-09-14 16:01:46 +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
af7029812c 0.6.3 2015-09-11 15:32:16 +02:00
Julien Fontanet
e9127bdbb3 4.5.0 2015-09-11 12:59:00 +02:00
Julien Fontanet
84c9532456 0.1.0 2015-09-11 10:45:02 +02:00
Julien Fontanet
aa7c9bca46 Test with Node 4. 2015-09-11 10:44:32 +02:00
Julien Fontanet
3d00b4ffbe 0.2.0 2015-09-11 10:43:36 +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
Julien Fontanet
c517b59138 Enable testing on Node 4. 2015-09-10 15:22:09 +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
0304d6079d GitHub screenshot. 2015-09-07 17:24:27 +02:00
Julien Fontanet
ae41e64999 Fix passport-github links. 2015-09-07 17:02:57 +02:00
Julien Fontanet
8c9f32c927 Initial commit. 2015-09-07 17:01:37 +02:00
Julien Fontanet
5485e8a322 Test on iojs 3 and use containers on Travis. 2015-09-07 16:23:33 +02:00
Julien Fontanet
b4c612ff6d Remove unnecessary ESLint directive. 2015-09-07 14:16:10 +02:00
Julien Fontanet
e708268067 Test on iojs 3 and use Travis containers. 2015-09-07 14:15:55 +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
Julien Fontanet
e61873f335 username is not define in passport-saml. 2015-08-28 18:23:46 +02:00
Julien Fontanet
6c3719b9b8 0.1.0 2015-08-28 17:47:53 +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
8c9ea7885a First working version. 2015-08-28 16:16:32 +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
Julien Fontanet
2540ac34b3 Be verbose on XML-RPC errors. 2015-08-28 08:51:38 +02:00
Julien Fontanet
76e5d41a34 Upgrade deps. 2015-08-28 08:51:15 +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
Julien Fontanet
2c32a4e912 0.6.2 2015-08-10 15:52:55 +02:00
Julien Fontanet
c66f7235b6 Fix master change. 2015-08-10 15:51:45 +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
20cbf0c710 Initial commit. 2015-07-15 15:51:43 +02:00
Julien Fontanet
a5573e62c6 Update deps. 2015-07-15 09:47:01 +02:00
Julien Fontanet
5444381f7d 0.6.1 2015-06-30 17:20:31 +02:00
Julien Fontanet
dc44679031 Optimize and clean _watchEvents() & _watchEventsLegacy(). 2015-06-30 14:24:43 +02:00
Julien Fontanet
2cbd17b745 Better traces. 2015-06-30 11:07:33 +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
Julien Fontanet
8de2066634 0.4.0 2015-06-26 12:01:51 +02:00
Julien Fontanet
dfc312c092 Various updates. 2015-06-26 11:57:41 +02:00
Julien Fontanet
ce15dbf31b New Collection#unset(). 2015-06-26 11:20:50 +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
Julien Fontanet
9ef13696d8 0.6.0 2015-06-23 10:39:55 +02:00
Julien Fontanet
c3f635fd12 Ask JSON encoded values to XenApi.
The XML is therefore much faster to parse (3-4 ×).
2015-06-23 10:39:04 +02:00
Julien Fontanet
e3d1380435 0.5.7 2015-06-23 10:38:41 +02:00
Julien Fontanet
f83737b538 Make objects immutable. 2015-06-23 09:17:42 +02:00
Julien Fontanet
bb1ea4e4d0 Optimization for empty arrays. 2015-06-23 09:13:43 +02:00
Julien Fontanet
9cb4de2ea8 Inline an only-used-once function. 2015-06-22 23:33:52 +02:00
Julien Fontanet
048cbf60ec Added tested Xen Server versions in README. 2015-06-22 16:23:38 +02:00
Julien Fontanet
36f40b4188 Support Xen Server < 6. 2015-06-22 16:19:32 +02:00
Julien Fontanet
ea1afb260a Update README.md 2015-06-22 14:00:35 +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
a3bba92063 Remove duplicate source-map-support. 2015-06-19 15:53:23 +02:00
Julien Fontanet
ebcc6c9341 Remove unused lodash.{find,findkey,size}. 2015-06-19 15:51:22 +02:00
Julien Fontanet
95f765055e Fix invalid session handling. 2015-06-19 15:15:23 +02:00
Julien Fontanet
49aa5ffccc Password can be supplied on the command line. 2015-06-19 15:13:21 +02:00
Julien Fontanet
d09d3fa80b 0.5.6 2015-06-18 13:40:18 +02:00
Julien Fontanet
4c8cd50643 Better build & tests. 2015-06-18 13:15:27 +02:00
Julien Fontanet
eee72f4f27 Test on both io.js v1 & v2. 2015-06-18 13:13:40 +02:00
Julien Fontanet
45f6a7cb4d Minor changes. 2015-06-17 17:09:46 +02:00
Julien Fontanet
8866bd8663 Minor code simplification. 2015-06-17 15:53:48 +02:00
Julien Fontanet
3f9c515f1d Better error messages. 2015-06-17 15:39:33 +02:00
Julien Fontanet
e9e0fdae37 Run linter with npm test. 2015-06-16 17:53:47 +02:00
Julien Fontanet
124f7f43ab Minor changes. 2015-06-16 17:53:47 +02:00
Julien Fontanet
27df44bf44 Use more ES6/7 features. 2015-06-16 16:09:40 +02:00
Julien Fontanet
b934a7de6a npm run lint 2015-06-16 16:00:29 +02:00
Julien Fontanet
d521c75085 Minor changes. 2015-06-16 16:00:17 +02:00
Julien Fontanet
5e18b6b878 Improve Babel configuration. 2015-06-16 15:57:12 +02:00
Julien Fontanet
3183ca02b3 Improve tests execution. 2015-06-16 15:56:36 +02:00
Julien Fontanet
60a278490f Fix coding style. 2015-06-16 12:49:22 +02:00
Julien Fontanet
b78e74cdf6 Use a valid SPDX license. 2015-06-16 12:46:58 +02:00
Julien Fontanet
f61a16074b Update deps. 2015-06-16 12:46:11 +02:00
Julien Fontanet
82766d1645 Update README.md 2015-06-16 12:39:54 +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
725f471a6a 0.7.2 2015-05-28 15:36:49 +02:00
Julien Fontanet
0b01a79d9d Implements object.messages. 2015-05-28 15:36:33 +02:00
Julien Fontanet
2653ff6536 Comment currently unused declarations. 2015-05-28 15:36:04 +02:00
Julien Fontanet
0f30cc8e59 Work around linter issue (eslint/espree#136). 2015-05-28 15:35:27 +02:00
Julien Fontanet
e3879cd4d1 Minor style fix. 2015-05-28 15:34:41 +02:00
Julien Fontanet
7a4cdf8688 Fix connection errors handling in Api#connect(). 2015-05-28 15:33:49 +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
Julien Fontanet
c92567d4fa 0.5.5 2015-05-27 17:04:04 +02:00
Fabrice Marsaud
2467b336e5 Group managment in settings 2015-05-27 17:03:28 +02:00
Julien Fontanet
1839bf938a 0.7.1 2015-05-27 17:02:25 +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
44d4096a79 Remove a console.log(). 2015-05-27 14:07:14 +02:00
Julien Fontanet
0610ceafdf Remove unused $scope.removeMessage(). 2015-05-27 12:52:01 +02:00
Julien Fontanet
41280c9d38 Various updates. 2015-05-27 12:18:41 +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
Julien Fontanet
df3c76fa72 Remove useless statement. 2015-05-26 16:47:14 +02:00
Julien Fontanet
cea4157402 Perf traces in the CLI. 2015-05-26 16:35:51 +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
7c54adec9d 0.3.2 2015-05-24 14:41:22 +02:00
Julien Fontanet
68abd91fc2 Api#close() returns a promise. 2015-05-24 14:41:01 +02:00
Julien Fontanet
4d2e42d244 One more Angular work around. 2015-05-24 14:39:48 +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
5a87a6c502 This lib is not ES6! 2015-05-22 16:41:33 +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
d8ca15ceb3 Fix objects removal. 2015-05-22 15:12:22 +02:00
Julien Fontanet
a17f718517 Update xo-collection to 0.3.1. 2015-05-22 14:53:52 +02:00
Julien Fontanet
3589dda8ee Remove ugly hack. 2015-05-22 14:52:27 +02:00
Julien Fontanet
21f8e4d55b Remove unused UUID index. 2015-05-22 14:52:19 +02:00
Julien Fontanet
811e0123c9 0.3.1 2015-05-22 14:46:46 +02:00
Julien Fontanet
47c4516060 Index & UniqueIndex: Correctly updates even if the hash has not changed. 2015-05-22 14:46:20 +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
29ce3bd05e Source maps support in the CLI. 2015-05-22 10:38:38 +02:00
Julien Fontanet
b3d58f4f0c Update to xo-collection 0.3. 2015-05-22 10:38:08 +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
13913334b6 0.7.0 2015-05-19 16:48:19 +02:00
Julien Fontanet
7f60725c88 Make it work with current version of xo-web. 2015-05-19 16:48:03 +02:00
Julien Fontanet
d55fb36182 0.3.0 2015-05-19 16:39:54 +02:00
Julien Fontanet
41205aef20 Work around xo-web bug due to Angular. 2015-05-19 16:38:02 +02:00
Julien Fontanet
aeadbc1d58 Minor standardization. 2015-05-19 16:35:23 +02:00
Julien Fontanet
bd12ade426 UniqueIndex only expose the values of contained items. 2015-05-19 16:34:48 +02:00
Julien Fontanet
92b0d4561e xo-web should only have dev deps. 2015-05-19 15:54:27 +02:00
Julien Fontanet
f9c26089cd Document exceptions. 2015-05-19 15:25:44 +02:00
Julien Fontanet
7ddb57078c Finish event. 2015-05-19 15:25:30 +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
Julien Fontanet
3e7f1275d8 Remove unnecessary array. 2015-05-19 14:43:16 +02:00
Julien Fontanet
e963938016 Do not attach collection to index if duplicate. 2015-05-19 14:42:11 +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
Julien Fontanet
312fcea5f1 Auto links. 2015-05-15 18:08:21 +02:00
Olivier Lambert
29d9ba0446 some UI fixes for VM view 2015-05-15 10:46:57 +02:00
Julien Fontanet
9d05653f5b Use xo-collection. 2015-05-14 17:19:28 +02:00
Julien Fontanet
644ebd0a4f 0.2.1 2015-05-14 17:18:12 +02:00
Julien Fontanet
1033bfcfe5 Add missing files. 2015-05-14 17:16:35 +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
Julien Fontanet
d93d234c71 Fix Travis badge. 2015-05-14 15:06:27 +02:00
Julien Fontanet
7fe9ae8a04 Document custom props. 2015-05-14 15:04:55 +02:00
Fabrice Marsaud
375f3ac3ac updater loss and reconnection properly handled 2015-05-14 15:03:34 +02:00
Julien Fontanet
87cf1ed7cb All custom properties are read-only and non enumerable. 2015-05-14 14:58:54 +02:00
Julien Fontanet
a0ba5c8a57 Fix auto links for arrays. 2015-05-14 14:58:27 +02:00
Olivier Lambert
b60a02bc34 use ellipsis to compact lines in tables 2015-05-14 14:56:25 +02:00
Julien Fontanet
d7208a15d9 Remove unused dep. 2015-05-14 14:46:06 +02:00
Julien Fontanet
debde0c67a Links do not shadow refs. 2015-05-14 14:39:36 +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
Julien Fontanet
97db55156a $pool should not be enumerable. 2015-05-13 17:29:24 +02:00
Julien Fontanet
9d3477d465 Fix propagation of Xapi errors. 2015-05-13 17:27:22 +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
Julien Fontanet
031af000e6 Alias Object.create() and Object.defineProperty() for perf. 2015-05-06 18:14:43 +02:00
Julien Fontanet
0512fac3aa Better name for the OpaqueRef regex constant. 2015-05-06 18:14:20 +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
Julien Fontanet
4272e8196a Bypass Xapi#objects getter internally for perf. 2015-05-06 14:08:59 +02:00
Julien Fontanet
140f9d05df Code style and comments. 2015-05-06 14:06:25 +02:00
Julien Fontanet
9222733243 Xapi#getObject() 2015-05-06 14:06:17 +02:00
Julien Fontanet
5838c56c4e Xapi#getObjectByRef() and Xapi#getObjectByUuid() 2015-05-06 13:27:59 +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
Julien Fontanet
1814e0a260 0.5.4 2015-05-05 13:46:03 +02:00
Julien Fontanet
711c5781e6 Export wrapError(). 2015-05-05 13:45:51 +02:00
Julien Fontanet
a688310b95 Remove thisArg param. 2015-05-04 17:34:02 +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
e3ffc8784e Use shared module instead of custom isNotEmpty(). 2015-04-30 11:45:14 +02:00
Julien Fontanet
bb35fc3801 Fix README title. 2015-04-30 11:44:53 +02:00
Julien Fontanet
c804630576 0.2.0 2015-04-29 18:17:39 +02:00
Julien Fontanet
e5f3ca1623 Initial UniqueIndex. 2015-04-29 17:51:18 +02:00
Julien Fontanet
0880787d68 new Index() now accepts a computeHash() callback-ish. 2015-04-29 14:33:37 +02:00
Julien Fontanet
cd582e2e3a Rename Index#itemsByHash to Index#items. 2015-04-29 14:12:22 +02:00
Julien Fontanet
aebd9319f5 Comments in Collection#_onUpdate(). 2015-04-29 13:22:36 +02:00
Julien Fontanet
de6cbb0f45 Fix Index#sweep(). 2015-04-29 13:22:36 +02:00
Julien Fontanet
e14dcd0184 Put some utils in their own modules. 2015-04-29 13:22:30 +02:00
Julien Fontanet
17ef653903 0.1.1 2015-04-28 17:10:58 +02:00
Julien Fontanet
f5d5b5efc0 Make View and Index requireable. 2015-04-28 17:10:31 +02:00
Julien Fontanet
59dbee8f28 Minor doc about views. 2015-04-28 17:06:37 +02:00
Julien Fontanet
4db6971cc4 0.3.2 2015-04-28 14:06:08 +02:00
Julien Fontanet
71482bd06c Correctly build the package. 2015-04-28 14:05:47 +02:00
Julien Fontanet
c3acf8341b 0.3.1 2015-04-28 13:25:03 +02:00
Julien Fontanet
1bc48fbf96 0.1.0 2015-04-27 15:27:12 +02:00
Julien Fontanet
d45348c167 Minor fixes. 2015-04-27 15:09:07 +02:00
Julien Fontanet
22caa0ee66 Initial Index implementation (see #1). 2015-04-27 15:05:02 +02:00
Julien Fontanet
e6e8ccc855 Remove standard from npm test.
Currently broken du to due to eslint/espree#123
2015-04-27 15:04:52 +02:00
Julien Fontanet
d78522f5e1 Comment doc for Collection#getId(). 2015-04-27 12:14:30 +02:00
Julien Fontanet
3da2a618b9 Coding style. 2015-04-27 10:55:22 +02:00
Julien Fontanet
047fa5b2db Fix checkCertificate (thx @wrigby). 2015-04-26 11:16:15 +02:00
Julien Fontanet
c763794ef3 Install json-rpc from the npm repository. 2015-04-24 11:21:15 +02:00
Julien Fontanet
7a4dcd52c4 0.3.0 2015-04-21 17:52:07 +02:00
Julien Fontanet
e8e7a92131 Minor README updates. 2015-04-21 17:48:26 +02:00
Julien Fontanet
7e8c2211d8 The REPL waits for promise completion. 2015-04-21 17:20:38 +02:00
Julien Fontanet
99694161e1 The REPL waits for promise completion. 2015-04-21 17:17:00 +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
f0858b7d93 0.5.3 2015-04-20 19:14:48 +02:00
Julien Fontanet
3af6c28ab0 Do not swallow all errors. 2015-04-20 19:01:05 +02:00
Julien Fontanet
5c31c7f14c Typo! 2015-04-20 19:00:52 +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
Julien Fontanet
2610a9c777 0.5.2 2015-04-20 15:19:06 +02:00
Julien Fontanet
58cf611497 Fix this._sessionId. 2015-04-20 15:18:48 +02:00
Olivier Lambert
ae54b8eba8 Remove useless notifications for VM import 2015-04-19 17:20:48 +02:00
Julien Fontanet
00f944f3f4 Remove unused import. 2015-04-19 00:42:02 +02:00
Julien Fontanet
1269411771 Add iteration to the README. 2015-04-18 22:33:32 +02:00
Julien Fontanet
d4d8ea6cf2 Collection #getId() renamed to getKey(). 2015-04-18 22:20:57 +02:00
Julien Fontanet
160522c520 Collection iteration more similar to Map. 2015-04-18 22:04:37 +02:00
Julien Fontanet
7024b5ec1b Reorganization of Collection code. 2015-04-18 21:58:17 +02:00
Julien Fontanet
5b020035d6 Collection is iterable. 2015-04-18 21:34:36 +02:00
Julien Fontanet
fcea7fd4bf mkdir -p is more portable. 2015-04-18 19:37:04 +02:00
Julien Fontanet
37e5bcad61 Minor style fixes. 2015-04-18 12:37:02 +02:00
Julien Fontanet
20679a62fd Merge pull request #1 from wrigby/tls_options
Ability to ignore SSL/TLS certs errors and to specify custom CAs.
2015-04-17 21:15:10 +02:00
Julien Fontanet
bb5a5bf2ed Merge pull request #2 from wrigby/fix-osx-build
`mkdir -p` is more portable
2015-04-17 21:02:36 +02:00
Julien Fontanet
c1db993b92 Fix missing quotes. 2015-04-17 16:25:18 +02:00
Julien Fontanet
61631e405b Coding style. 2015-04-17 16:22:23 +02:00
Julien Fontanet
c19916ff1c Add CLI. 2015-04-17 14:05:49 +02:00
Julien Fontanet
6fa2e79c1c Use standard code style. 2015-04-17 13:35:33 +02:00
Julien Fontanet
185e0849b1 0.5.1 2015-04-17 12:04:06 +02:00
Julien Fontanet
f48b9d364b Shebang and executable mode for cli.js 2015-04-17 12:04:01 +02:00
Julien Fontanet
e4f1a7d4c1 0.5.0 2015-04-17 11:58:08 +02:00
Julien Fontanet
e02f19ff67 Typo. 2015-04-17 11:58:05 +02:00
Julien Fontanet
72a2110845 Add CLI. 2015-04-17 10:38:15 +02:00
Julien Fontanet
9baa415249 0.4.0 2015-04-16 16:44:05 +02:00
Julien Fontanet
22b840af14 Add a description. 2015-04-16 16:43:15 +02:00
Julien Fontanet
61f32d89ca Declare Xapi#_pool in the constructor for perf. 2015-04-16 16:34:09 +02:00
Julien Fontanet
3c7da93dfc Xapi#_poolId is no longer used. 2015-04-16 16:33:45 +02:00
Julien Fontanet
5831616fac Merge branch 'linked-objects' 2015-04-16 16:30:46 +02:00
Julien Fontanet
d7b6d9f124 Objects are now linked together!
```javascript
const {pool} = xapi

console.log(pool.master.name_label)
```
2015-04-16 16:22:01 +02:00
Will Rigby
6e7588e9fc Fix npm scripts on OS X
BSD's mkdir doesn't support the long --parents flag.
2015-04-16 01:03:20 -04:00
Will Rigby
03cc8248bc Update documentation 2015-04-16 00:59:29 -04:00
Will Rigby
068df6f2b1 Support specifying path(s) to CA certificate(s)
Wires the 'ca_certificates' configuration option
through to tls.connect's 'ca' option.
2015-04-16 00:48:04 -04:00
Will Rigby
0966ba909b Allow connecting to SSL-secured servers with self-signed certificates
Adds a new configuration parameter ('check_certificate'),
which gets wired up to the rejectUnauthorized option of
tls.connect.
2015-04-16 00:25:55 -04:00
Fabrice Marsaud
47bcaa8659 stat graph tooltip radius fixed 2015-04-15 18:46:16 +02:00
Julien Fontanet
245978e2b3 0.3.1 2015-04-15 18:27:02 +02:00
Julien Fontanet
3aae60bde9 Better handling of transport call retries. 2015-04-15 18:23:49 +02:00
Olivier Lambert
73dc6fb050 fix URL for source versions 2015-04-15 16:44:33 +02:00
Julien Fontanet
7941a24d51 Force npm test to be successful before committing. 2015-04-15 15:16:28 +02:00
Olivier Lambert
a4ced510c6 refresh 10secs only and login page with icons 2015-04-15 13:36:09 +02:00
Julien Fontanet
91d36122eb Rmove unused JSHint conf. 2015-04-15 10:46:25 +02:00
Julien Fontanet
e004ba63f8 Remove unused JSHint conf. 2015-04-15 10:46: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
Julien Fontanet
36c1e2cc73 Limit tries in case of transport errors (ugly). 2015-04-14 17:57:31 +02:00
Julien Fontanet
4a0a09ba3e Update to latest make-error. 2015-04-14 17:56:51 +02:00
Olivier Lambert
52d71e5c4a refactoring of Settings view. WIP 2015-04-14 17:27:28 +02:00
Julien Fontanet
1f30a19566 Improved view example. 2015-04-14 12:18:29 +02:00
Julien Fontanet
51f4578a41 View handles existing items. 2015-04-14 12:18:24 +02:00
Julien Fontanet
bd3954a5f1 Rename index.* to collection.*. 2015-04-14 10:47:47 +02:00
Julien Fontanet
94967add7c Merge branch 'views' 2015-04-14 10:25:49 +02:00
Olivier Lambert
d86c2b64f2 UI fixes in settings page 2015-04-14 00:04:03 +02:00
Julien Fontanet
783ab0b611 Initial view implementation (fix #3). 2015-04-13 20:23:43 +02:00
Olivier Lambert
84449f4e2e UI reworks for setting page. Work in progress 2015-04-13 19:00:43 +02:00
Julien Fontanet
04b44cff2b 0.3.0 2015-04-13 17:44:55 +02:00
Julien Fontanet
8309755ee3 Expose session identifier. 2015-04-13 17:44:05 +02:00
Julien Fontanet
41a75d404c 0.2.1 2015-04-13 16:48:45 +02:00
Julien Fontanet
8eb63de201 Stupid fix -_-". 2015-04-13 16:48:32 +02:00
Julien Fontanet
1dec134a6b 0.2.0 2015-04-13 16:42:58 +02:00
Julien Fontanet
6f6a8e4bb1 Do not require params to be in an array. 2015-04-13 16:42:30 +02:00
Julien Fontanet
87d216c578 0.1.1 2015-04-13 16:17:53 +02:00
Julien Fontanet
bb0ee61870 Various fixes. 2015-04-13 16:16:30 +02:00
Julien Fontanet
653a9526f5 0.0.1 2015-04-13 14:54:19 +02:00
Julien Fontanet
34ac4b25af Test and fix #clear(). 2015-04-13 14:53:25 +02:00
Julien Fontanet
c7b7f9236f Default to secure if no protocol. 2015-04-13 14:13:56 +02:00
Julien Fontanet
881779744f 0.1.0 2015-04-13 13:34:31 +02:00
Julien Fontanet
ddf3356b5d Expose the pool object. 2015-04-13 13:27:29 +02:00
Julien Fontanet
94e8f3e2c1 Initial doc. 2015-04-10 17:12:59 +02:00
Julien Fontanet
2c4a7f48d1 Update package.json & README. 2015-04-10 16:49:00 +02:00
Julien Fontanet
af47c23ca1 Swallow any errors in #_watchEvents(). 2015-04-10 16:45:40 +02:00
Julien Fontanet
326a001c57 More log. 2015-04-10 16:41:59 +02:00
Julien Fontanet
fe9e548e89 #connect() & #disconnect(). 2015-04-10 16:41:43 +02:00
Julien Fontanet
e58ef1f436 connected/disconnected events. 2015-04-10 16:41:17 +02:00
Julien Fontanet
f249fa6f65 Minor fixes. 2015-04-10 16:40:45 +02:00
Julien Fontanet
68c6b63c9c Host is slave correctly handled. 2015-04-10 16:00:20 +02:00
Julien Fontanet
a249597225 Skip failing test for now. 2015-04-10 15:36:47 +02:00
Julien Fontanet
4906c677af Remove unused code. 2015-04-10 15:35:39 +02:00
Julien Fontanet
2534a9f14a _fetchObjects() is not necessary. 2015-04-10 15:34:10 +02:00
Julien Fontanet
5488c2bdeb Various updates. 2015-04-10 15:33:39 +02:00
Julien Fontanet
835dbac81a Explicit the license. 2015-04-10 12:06:46 +02:00
Julien Fontanet
e072ff2d77 Update README.md 2015-04-10 11:51:54 +02:00
Julien Fontanet
41dfbc2709 Publish to npm as xo-collection. 2015-04-10 11:41:02 +02:00
Julien Fontanet
964e461597 Better Collection#_resolveItem(). 2015-04-10 10:51:01 +02:00
Julien Fontanet
ef2eec4c4a Minor build updates. 2015-04-10 10:50:23 +02:00
Julien Fontanet
bf1d76d853 Source map support for tests. 2015-04-10 10:49:25 +02:00
Julien Fontanet
0682cbd554 Test for Collection#touch(). 2015-04-10 10:49:08 +02:00
Julien Fontanet
f5191cdd42 Better error classes. 2015-04-10 10:48:47 +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
Julien Fontanet
b1c73208c5 Do not return this. 2015-04-08 16:33:28 +02:00
Julien Fontanet
ab221a465b Use lodash.foreach instead of native implementation. 2015-04-08 16:32:46 +02:00
Olivier Lambert
bfe9598ce4 ui fixes 2015-04-08 14:38:58 +02:00
Julien Fontanet
4ecfa0477d Optimize Collection#_touch(). 2015-04-08 14:30:16 +02:00
Julien Fontanet
bab2de36ad Tests for events deduplication. 2015-04-08 14:24:07 +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
Julien Fontanet
f479e914bb #getId() should behave even if the item is null or undefined. 2015-04-08 12:00:52 +02:00
Julien Fontanet
45441653f6 #bufferChanges() → #bufferEvents(). 2015-04-08 11:51:18 +02:00
Julien Fontanet
0303558ae1 Prefer the term of item over entry. 2015-04-08 11:49:25 +02:00
Julien Fontanet
b70e0e3e2b Tests for #add(), #update(), #set() and #remove() with an object. 2015-04-08 11:40:07 +02:00
Julien Fontanet
5e0c4d7b7a Avoid Function#apply() for performance. 2015-04-08 10:50:04 +02:00
Julien Fontanet
6c83308451 Optimize Collection#get(). 2015-04-08 10:48:27 +02:00
Julien Fontanet
eeb898179e Minor simplification of buffer flushing. 2015-04-08 10:42:00 +02:00
Julien Fontanet
0ea662d8fe Replace let by const where possible. 2015-04-08 10:05:41 +02:00
Julien Fontanet
ea3219fa10 Typo. 2015-04-08 10:04:58 +02:00
Julien Fontanet
fb9203d396 Fix doc: unset() → remove(). 2015-04-07 18:49:20 +02:00
Julien Fontanet
23e7542871 Document Collection#all. 2015-04-07 18:15:38 +02:00
Julien Fontanet
a40832dffd Typo. 2015-04-07 18:06:17 +02:00
Julien Fontanet
5ba7493613 Better repo architecture. 2015-04-07 18:01:33 +02:00
Julien Fontanet
e7b406c127 Initial commit. 2015-04-02 18:44:16 +02:00
Fabrice Marsaud
dd1d16f91c Fixes and enhancements 2015-04-02 16:49:40 +02:00
Julien Fontanet
82e2a19749 0.2.0 2015-04-02 16:34:21 +02:00
Julien Fontanet
b73126e6c1 README updates [skip ci]. 2015-04-02 16:34:11 +02:00
Fabrice Marsaud
cbd93f450e Implementation seems ok. Deeper tests to come 2015-04-02 15:32:08 +02:00
Fabrice Marsaud
35c64be3d7 All tests for "simple" buffer 2015-04-02 10:14:32 +02:00
Olivier Lambert
1837d3d291 fixes #225 2015-04-01 21:59:31 +02:00
Fabrice Marsaud
96ea70c027 Buffer implemented and tested 2015-04-01 18:06:23 +02:00
Julien Fontanet
ea277d0579 Add missing dev dep. 2015-04-01 16:35:51 +02:00
Julien Fontanet
10d7cd1520 Build sources in npm test. 2015-04-01 16:30:51 +02:00
Julien Fontanet
9051322338 Remove erroneous paste. 2015-04-01 16:16:35 +02:00
Julien Fontanet
d26b6103b5 Tweak ESLint. 2015-04-01 16:16:22 +02:00
Julien Fontanet
f2e7963e1f New implementation. 2015-04-01 16:08:40 +02:00
Olivier Lambert
8fe3a788d7 add auto power. Fixes #224 2015-04-01 15:40:46 +02:00
Fabrice Marsaud
a3d7e541d3 Events implemented and tested, without buffering 2015-04-01 15:06:39 +02:00
Julien Fontanet
4617025bd4 Travis CI 2015-04-01 10:47:12 +02:00
Julien Fontanet
0693e19605 Unit tests. 2015-04-01 10:47:02 +02:00
Julien Fontanet
62618acfed ES6 & standard style 2015-04-01 10:46:38 +02:00
Julien Fontanet
1feaa43d2e Update license. 2015-04-01 10:45:37 +02:00
Fabrice Marsaud
92d7d61926 Various fixes and enhancements 2015-03-31 17:08:41 +02:00
Fabrice Marsaud
265d77d776 First main methods. No events, no buffer yet 2015-03-31 16:09:05 +02:00
Olivier Lambert
c622f9a295 add local LVM SR creation. Fixes #219 2015-03-30 12:02:50 +02:00
Fabrice Marsaud
48d9fde3b6 Left over solution 2015-03-30 09:31:42 +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
Fabrice Marsaud
a9ea1a02ed Use let and const 2015-03-27 16:43:43 +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
Fabrice Marsaud
19cd5c8881 Minor renaming 2015-03-27 15:55:37 +01:00
Fabrice Marsaud
cdb9c661bd A first version without unit tests, but a gross test script 2015-03-27 15:55:37 +01:00
Fabrice Marsaud
c3a01c240b First base 2015-03-27 15:55:37 +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
Fabrice Marsaud
e2f748e63d Initial commit 2015-03-27 15:51:06 +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
52fa4f11ac 0.1.2 2015-03-18 18:21:44 +01:00
Julien Fontanet
bfcabd30c5 ldapjs is a production dependency! 2015-03-18 17:33:33 +01:00
Julien Fontanet
095ea470a1 0.1.1 2015-03-18 17:24:59 +01:00
Julien Fontanet
c9b502c72b Use YAML in config example. 2015-03-18 17:24:36 +01:00
Julien Fontanet
9390eacb7c Remove ES6 syntax. 2015-03-18 17:23:21 +01:00
Julien Fontanet
f193ce87bf 0.1.0 2015-03-18 17:10:58 +01:00
Julien Fontanet
f6b3f898de Various fixes. 2015-03-18 17:07:19 +01:00
Julien Fontanet
de5ba5d0d3 Initial commit. 2015-03-17 16:28:31 +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
Julien Fontanet
c539dd5570 0.6.3 2015-03-04 18:23:21 +01:00
Julien Fontanet
de76afea99 New implementation of Xo (fixes many issues). 2015-03-04 18:22:11 +01:00
Fabrice Marsaud
32cd323b54 #179 progress 2015-03-04 18:19:50 +01:00
Julien Fontanet
1d3616ae71 Minor changes. 2015-03-04 17:42:22 +01:00
Julien Fontanet
d76cb440f9 Move BackOff to its own module. 2015-03-04 17:42:18 +01:00
Julien Fontanet
7c89d658f7 Fix setScheduler(). 2015-03-04 17:37:12 +01:00
Julien Fontanet
292c929117 Split code in to multiple files. 2015-03-04 17:31:14 +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
Julien Fontanet
daf42b63c8 Better back off implementation. 2015-03-04 16:18:57 +01:00
Julien Fontanet
07da03618f Use specific version of json-rpc. 2015-03-04 15:51:35 +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
dda51f2801 Xo::call() should never through synchronously. 2015-03-04 15:01:30 +01:00
Julien Fontanet
25472bcfa6 Correctly catch some errors. 2015-03-04 15:01:03 +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
6ff17d16f0 0.6.2 2015-02-23 14:48:39 +01:00
Julien Fontanet
06b7116692 Never break object refs for Collection:all & Collection:indexes[*]. 2015-02-23 14:48:32 +01:00
Julien Fontanet
3c3ea0f3e1 Fix Collection::data. 2015-02-23 14:47:11 +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
Julien Fontanet
db4d6511d6 0.6.1 2015-02-23 12:25:53 +01:00
Julien Fontanet
6e42a67268 Update README. 2015-02-23 12:25:30 +01:00
Julien Fontanet
fd066e5eef Handle credentials directly in constructor. 2015-02-23 12:25:17 +01:00
Julien Fontanet
3dd0c44410 Handle string parameter in Xo constructor. 2015-02-23 12:24:47 +01:00
Julien Fontanet
12b42854e4 Delete useless example. 2015-02-23 12:23:42 +01:00
Julien Fontanet
2fcb6d0c7c 0.6.0 2015-02-23 12:11:53 +01:00
Julien Fontanet
68e863723a Explicitely handle sign in/out. 2015-02-23 12:10:45 +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
d0b37d0f9a Update example. 2015-02-20 17:15:00 +01:00
Julien Fontanet
a0a1353445 Update collection API. 2015-02-20 17:14:44 +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
6725cc6f61 0.5.2 2015-02-12 12:23:56 +01:00
Julien Fontanet
7e9639052b getCurrentUrl() must not ignore protocol and search parts. 2015-02-12 12:23:35 +01:00
Julien Fontanet
21bd5ba376 fixUrl() properly handles search and hash parts. 2015-02-12 12:22:58 +01:00
Julien Fontanet
28d5fb1822 0.5.1 2015-02-11 15:17:51 +01:00
Julien Fontanet
cd3c031df1 Fix back off reset. 2015-02-11 15:17:42 +01:00
Julien Fontanet
a6db0f6fd9 Fix reconnection. 2015-02-11 15:11:23 +01:00
Julien Fontanet
c80f6e8285 Better status during reconnection. 2015-02-11 15:11:03 +01:00
Julien Fontanet
c6d779853a Remove unused require. 2015-02-11 15:10:52 +01:00
Julien Fontanet
1368b747be Update to latest xo-lib. 2015-02-11 15:02:20 +01:00
Julien Fontanet
1b720a504c 0.5.0 2015-02-11 14:40:19 +01:00
Julien Fontanet
72f8854a7a Remove factory. 2015-02-11 14:39:52 +01:00
Julien Fontanet
097d195f00 Disable session.*() from high level API. 2015-02-11 14:16:38 +01:00
Julien Fontanet
807da8f696 Make Xo.connect() private. 2015-02-11 14:13:01 +01:00
Julien Fontanet
a8ca6b6fcb Do not use assign for methods. 2015-02-11 14:11:38 +01:00
Julien Fontanet
85e2e14c81 README update. 2015-02-11 14:11:10 +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
5ae45ddd55 Do not clear objects on disconnect. 2015-02-10 20:13:11 +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
4e0a3da01e 0.4.1 2015-02-10 18:57:03 +01:00
Julien Fontanet
541a99bbc5 Fix item removal. 2015-02-10 18:56:32 +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
Julien Fontanet
f62008aba4 0.4.0 2015-02-10 18:22:11 +01:00
Julien Fontanet
74f7415f84 Minor changes. 2015-02-10 18:21:53 +01:00
Julien Fontanet
1e1e079b65 Use current location if URL not provided (for browsers). 2015-02-10 18:21:07 +01:00
Julien Fontanet
0b4f808b2d Only emit disconnected event if previously connected. 2015-02-10 18:13:01 +01:00
Julien Fontanet
ae4af99c59 Xo cannot be closed. 2015-02-10 17:53:56 +01:00
Julien Fontanet
0b17556fa4 Auto reconnect. 2015-02-10 17:53:43 +01:00
Julien Fontanet
e6ebc347e5 setScheduler() to ease integration. 2015-02-10 17:53:33 +01:00
Julien Fontanet
f2323a9d19 Various updates. 2015-02-10 17:12:10 +01:00
Julien Fontanet
ce53fe5e31 Fix module exports. 2015-02-10 14:47:16 +01:00
Julien Fontanet
f1d359b3e7 Smart objects collection. 2015-02-10 14:42:56 +01:00
Julien Fontanet
da99f3bc2a High level interface. 2015-02-10 11:40:11 +01:00
Olivier Lambert
acc4130347 running task in the navbar 2015-02-06 13:04:20 +01:00
Julien Fontanet
fec8dd74af Use json-rpc. 2015-02-05 17:05:49 +01:00
Olivier Lambert
69cf3c99f4 better icons used and more sass usage 2015-02-05 16:39:17 +01:00
Julien Fontanet
f598e0d0d5 Not available via Bower. 2015-02-05 14:13:06 +01:00
Julien Fontanet
656d2494b0 Travis CI. 2015-02-05 13:51:50 +01:00
Julien Fontanet
6d07d58f37 0.3.0 2015-02-05 13:45:52 +01:00
Olivier Lambert
3c11444302 add model for cancelling a task 2015-02-05 13:41:10 +01:00
Julien Fontanet
dd5270f620 Minimalist browser example. 2015-02-05 13:33:21 +01:00
Julien Fontanet
216f895953 Update deps. 2015-02-05 13:33:21 +01:00
Julien Fontanet
6acb87b7ea Update Bluebird. 2015-02-05 13:33:21 +01:00
Julien Fontanet
acdccd697c Fix browser compatibility. 2015-02-05 13:33:21 +01:00
Julien Fontanet
cecc4b1f6d Fix secure URL check. 2015-02-05 13:33:21 +01:00
Julien Fontanet
f93f115e13 Better and tested fixUrl(). 2015-02-05 13:33:16 +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
Julien Fontanet
debcf086b5 Code style. 2015-02-05 11:57:05 +01:00
Julien Fontanet
c6db974962 Update jshintrc. 2015-02-05 11:55:00 +01:00
Julien Fontanet
e9b0b0c42e ws supports browser natively. 2015-02-05 11:53:27 +01:00
Julien Fontanet
ebee1a02fd Promise is already defined in ES6. 2015-02-05 11:46:56 +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
Julien Fontanet
de05139dfc Use xdg-basedir instead of xdg. 2014-10-08 09:50:34 +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
Julien Fontanet
e88d0579b0 Use nice-pipe instead of own code. 2014-09-29 14:53:11 +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
Julien Fontanet
5564e4daa2 Minor update. 2014-09-25 15:23:53 +02:00
Julien Fontanet
4742cd4a03 0.4.0 2014-09-25 14:59:54 +02:00
Julien Fontanet
99985f4fab Better progress stats. 2014-09-24 18:18:17 +02:00
Julien Fontanet
42bb3b5aca Always use the POST method. 2014-09-24 17:22:44 +02:00
Olivier Lambert
70bedaf8dd fix by using PUT instead of POST 2014-09-24 17:09:59 +02:00
Olivier Lambert
e720f6449d add explicit alert when start async actions 2014-09-23 19:58:46 +02:00
Julien Fontanet
38683a7fea Syntax update. 2014-09-23 19:16:11 +02:00
Julien Fontanet
ae1a68500c Remove erroneous require. 2014-09-23 17:57:04 +02:00
Julien Fontanet
578f842eed vm.export. 2014-09-23 17:31:29 +02:00
Julien Fontanet
a7dea95f90 Named functions for better stack traces. 2014-09-22 15:35:12 +02:00
Julien Fontanet
1080562d96 Sort requires. 2014-09-22 15:29:45 +02:00
Julien Fontanet
b8cf5a2347 Use per function lodash modules. 2014-09-22 15:29:28 +02:00
Julien Fontanet
e9706d605a Promise is already defined in ES6. 2014-09-22 15:12:14 +02:00
Julien Fontanet
4b338c56b5 Remove dead code. 2014-09-22 15:11:04 +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
Julien Fontanet
2974a96e96 0.3.2 2014-07-28 15:34:19 +02:00
Julien Fontanet
ab7fd3d019 README update. 2014-07-28 15:32:55 +02:00
Julien Fontanet
54c5659496 0.3.1 2014-07-28 15:09:12 +02:00
Julien Fontanet
8c0811885f Handle -h as an alias for --help. 2014-07-28 15:09:00 +02:00
Julien Fontanet
291570dfd7 Add colors to the help message. 2014-07-28 15:06:15 +02:00
Julien Fontanet
f6b9b4cc19 0.3.0 2014-07-28 14:47:08 +02:00
Julien Fontanet
a06403ab7c Update to latest xo-lib. 2014-07-28 13:37:07 +02:00
Julien Fontanet
e64a95d1d7 Handle boolean params. 2014-07-28 13:35:30 +02:00
Julien Fontanet
6939e49643 Enable async long traces. 2014-07-28 13:35:19 +02:00
Julien Fontanet
bb18586484 Update JSHint config. 2014-07-28 13:35:05 +02:00
Julien Fontanet
09b39a4bf9 0.2.0 2014-07-28 13:33:45 +02:00
Julien Fontanet
1d7d639654 Set rejectUnauthorized only for secure connection. 2014-07-28 13:33:29 +02:00
Julien Fontanet
42ec509574 Fix URL fixing. 2014-07-28 13:30:57 +02:00
Julien Fontanet
dcef864c1c Fix URL if necessary. 2014-07-28 13:21:40 +02:00
Julien Fontanet
e8cb4f90f4 Update JSHint conf. 2014-07-28 13:21:40 +02:00
Julien Fontanet
4e0b2e4f77 Update deps. 2014-07-28 12:42:55 +02:00
Julien Fontanet
a2bcadeb7c Remove now useless code & Update deps. 2014-07-26 23:51:23 +02:00
Julien Fontanet
84a4242e27 0.1.1 2014-07-26 23:48:53 +02:00
Julien Fontanet
6373d667d9 Work around XO-Server incomplete TLS 2014-07-26 23:42:04 +02:00
Julien Fontanet
7840d601e1 Use xo-lib. 2014-07-26 10:19:32 +02:00
Julien Fontanet
1893061c0d 0.1.0 2014-07-26 10:15:38 +02:00
Julien Fontanet
0289cc3ee5 Initial commit. 2014-07-26 10:15:29 +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
Julien Fontanet
a35c9d2d9e 0.2.3 2014-06-09 15:36:44 +02:00
Julien Fontanet
7f739a1371 Update deps. 2014-06-09 15:36:17 +02:00
Olivier Lambert
62df78f329 fix error in doc 2014-06-03 15:11:39 +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
Julien Fontanet
be4511d95b 0.2.2 2014-05-27 19:17:53 +01:00
Julien Fontanet
b17e6058d1 Minor fixes. 2014-05-27 19:17:47 +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
Julien Fontanet
99c28a184f 0.2.1 2014-05-27 18:55:33 +01:00
Julien Fontanet
7ed9adaf49 Allows connection to incorrect SSL certificates. 2014-05-27 18:55:25 +01: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
Julien Fontanet
c3ef051657 0.2.0 2014-05-26 14:26:55 +02:00
Julien Fontanet
ba149efa4a Merge branch 'dev' 2014-05-26 14:26:41 +02:00
Julien Fontanet
e30a7b3849 README update. 2014-05-26 14:22:08 +02:00
Julien Fontanet
97ad0483ec Minor change. 2014-05-26 14:01:55 +02:00
Julien Fontanet
3981c772a2 --register and --unregister. 2014-05-26 13:57:18 +02:00
Julien Fontanet
e762002560 Remove unused deps. 2014-05-26 13:42:36 +02:00
Julien Fontanet
061d8dc94f Use API introspection. 2014-05-26 13:33:56 +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
Julien Fontanet
84e6228f90 Various updates. 2014-05-24 17:09:10 +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
Julien Fontanet
301cc22985 Various updates. 2014-04-14 16:38:29 +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
29398b9869 Various updates. 2014-04-03 10:19:31 +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
Julien Fontanet
8b65a75235 Fixes register in README. 2014-03-28 15:19:53 +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
Julien Fontanet
313f7e8173 Minor fixes and new command: whoami. 2014-03-25 17:18:02 +01:00
Julien Fontanet
d9e615e696 First working version. 2014-03-25 15:34:07 +01:00
Julien Fontanet
b526067eeb Initial commit. 2014-03-24 17:44:06 +01: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
Julien Fontanet
526efcae14 Merge branch 'next-release' 2014-02-07 18:12:15 +01:00
Julien Fontanet
b2b5d95046 Fixes secure WebSocket on HTTPs. 2014-02-07 17:40:55 +01:00
Julien Fontanet
ce3661e4c9 Bumps version number and updates README. 2014-02-07 17:23:32 +01:00
Julien Fontanet
920ea27d26 Disable autocomplete in the settings page. 2014-02-07 17:04:18 +01:00
Julien Fontanet
29b32f60a4 Remove default values for the login form. 2014-02-07 16:59:21 +01:00
Julien Fontanet
c13297b409 Ctrl+Alt+Del for console. 2014-02-07 16:11:14 +01:00
Julien Fontanet
35d75399a9 Minor fixes. 2014-02-07 15:47:23 +01:00
Julien Fontanet
68cdd46f37 Correctly refreshes mounted ISO in console page. 2014-02-07 15:40:26 +01:00
Julien Fontanet
742fda31e6 Insertion/ejection of CDs in the console page. 2014-02-07 15:28:51 +01:00
Olivier Lambert
4a99f13c4a restore about page 2014-02-07 13:38:36 +01:00
Julien Fontanet
7627c6f7c6 Minor updates. 2014-02-07 12:20:17 +01:00
Julien Fontanet
1609cdaf31 Fixes redirection after VM creation. 2014-02-07 12:20:17 +01:00
Olivier Lambert
c71848d07b fix small mistake in os display 2014-02-07 12:09:16 +01:00
Olivier Lambert
467681160d fix size display in vdi edition for VM view 2014-02-07 10:45:46 +01:00
Olivier Lambert
920e2a733e add distro info in vm view 2014-02-06 23:18:02 +01:00
Olivier Lambert
cf38c70023 add distro icon is main view. Fixes #50 2014-02-06 22:59:20 +01:00
Olivier Lambert
38bcb13f80 more explicit missing features 2014-02-06 19:43:03 +01:00
Olivier Lambert
0b03b19e4c propper handling for vdi delete 2014-02-06 17:40:58 +01:00
Julien Fontanet
db89dc55a4 Remove the WebSocket URL redefination used for development. 2014-02-06 16:55:16 +01:00
Olivier Lambert
6bdf474195 minor fix for start action 2014-02-06 16:44:50 +01:00
Julien Fontanet
5f750837ee VM stop and restart. 2014-02-06 16:33:21 +01:00
Olivier Lambert
95581faaef handle modal message when delete a vdi in sr page 2014-02-06 16:23:13 +01:00
Julien Fontanet
e2a5dbc8f0 Auto-reconnection works much better. 2014-02-06 16:14:42 +01:00
Julien Fontanet
4c875eaac9 Initial auto-reconnection to XO-Server. 2014-02-06 14:54:30 +01:00
Julien Fontanet
61958fb540 VM deletion from the VM page (does not provide a way to keep disks atm). 2014-02-06 13:50:27 +01:00
Julien Fontanet
41e578f0fd VMs deletion. 2014-02-06 12:03:30 +01:00
Olivier Lambert
7138819927 add create snapshot call without server implementation 2014-02-06 11:20:34 +01:00
Julien Fontanet
7c35b589a8 Some more work for VMs deletion. 2014-02-05 17:13:36 +01:00
Julien Fontanet
20212a9b89 Initial work for the modal window for VMs deletion. 2014-02-05 16:26:56 +01:00
Olivier Lambert
a574de754d add trackby, fixing a display bug 2014-02-05 15:59:49 +01:00
Julien Fontanet
b870131a8d .form-control should not be used on checkboxes and radios. 2014-02-05 15:45:07 +01:00
Julien Fontanet
e0bf5ca7cc Initial notifications. 2014-02-05 15:28:42 +01:00
Olivier Lambert
631cc3d9e6 add editing for multiple objects 2014-02-05 15:23:49 +01:00
Olivier Lambert
d0d9ca9838 add registration link 2014-02-05 09:14:19 +01:00
Olivier Lambert
8225c31a54 dynamic summary for vm creation 2014-02-04 21:23:12 +01:00
Olivier Lambert
df9274be2e handle sr rescan and do not display too small vdi in vdi map in sr view 2014-02-04 21:05:59 +01:00
Olivier Lambert
5244820133 small fix (display via bytesToSize) in sr view 2014-02-04 20:55:29 +01:00
Olivier Lambert
dca0f10c45 handle vdi remove 2014-02-04 20:43:29 +01:00
Julien Fontanet
f5cafb08da VM creation seems to work… 2014-02-04 18:50:35 +01:00
Julien Fontanet
7dce0bbecb VM creation almost finished. 2014-02-04 17:02:34 +01:00
Julien Fontanet
4f4a675d06 The settings page behaves nicer. 2014-02-04 10:59:39 +01:00
Olivier Lambert
71b34010bb small fixes in main view 2014-01-31 10:41:58 +01:00
Olivier Lambert
0a838f0448 add bulk live migration in main menu 2014-01-31 10:32:49 +01:00
Julien Fontanet
3d98b9f36c Minor changes. 2014-01-30 20:57:09 +01:00
Julien Fontanet
3f0a010964 Log messages for SRs. 2014-01-30 20:50:35 +01:00
Julien Fontanet
a3ac80b264 Various changes. 2014-01-30 20:46:14 +01:00
Olivier Lambert
15501d8d3c allow object modification 2014-01-30 20:33:37 +01:00
Julien Fontanet
5b8fca23a3 VM edition works as good as possible for now :) 2014-01-30 20:07:55 +01:00
Julien Fontanet
3387001f35 Minor fix in bytesToSize filter. 2014-01-30 19:38:05 +01:00
Julien Fontanet
5644d71422 VM edition 2. 2014-01-30 19:31:43 +01:00
Julien Fontanet
c6f069181c VM edition. 2014-01-30 18:13:21 +01:00
Olivier Lambert
533e55e4c7 remove useless cpu info for now in main view 2014-01-30 18:07:02 +01:00
Olivier Lambert
2e288991dc extend editable fields in sr and fix icon in vm view 2014-01-30 17:59:43 +01:00
Olivier Lambert
4e1e2970ad add edit for SR and fix ng init 2014-01-30 17:31:04 +01:00
Julien Fontanet
c4bd53ce58 Build workaround. 2014-01-30 17:09:46 +01:00
Julien Fontanet
2b6dfbf69b Better placement for the “missing Xen tools” warning icon. 2014-01-30 16:35:17 +01:00
Olivier Lambert
ebec5ff54b move icon for xentools 2014-01-30 16:16:44 +01:00
Olivier Lambert
19f14416fb add xen tools status in stats panel in vm view 2014-01-30 16:03:07 +01:00
Olivier Lambert
373aa488b3 add tool display when hover in main view 2014-01-30 15:48:28 +01:00
Julien Fontanet
2eaa3985c7 Bug fix in VMs selection. 2014-01-30 15:05:05 +01:00
Julien Fontanet
86e8d7d145 Unselects all VMs after a bulk action. 2014-01-30 14:58:22 +01:00
Olivier Lambert
84c88ad2e1 start edit form in pool 2014-01-30 14:11:30 +01:00
Julien Fontanet
b16a4e0e49 Fixes: moving progress bars & messages. 2014-01-30 14:08:58 +01:00
Olivier Lambert
7d2a70dd13 fix merge 2014-01-30 12:58:28 +01:00
Olivier Lambert
7dca624418 fix missing span 2014-01-30 12:57:43 +01:00
Olivier Lambert
6aa712d7f4 add edit for host view 2014-01-30 12:56:21 +01:00
Julien Fontanet
19c4ff83af Filter bytes renamed bytesToSize and new filter sizeToBytes. 2014-01-30 12:50:59 +01:00
Olivier Lambert
1514ae2f33 add pending state when a vm has a current operation 2014-01-30 12:30:57 +01:00
Olivier Lambert
de455cc6a7 add status for connected SR in host view 2014-01-30 12:30:29 +01:00
Julien Fontanet
48f0e91098 Fix VMs selection per host. 2014-01-30 10:11:14 +01:00
Olivier Lambert
7c01c46a50 minor visual changes 2014-01-29 23:27:34 +01:00
Olivier Lambert
4335a67113 add bulk actions forcereboot, forcestop and destroy. Last one is commented for now, until we put a confirmation message 2014-01-29 22:50:43 +01:00
Olivier Lambert
0ea96ca2e8 add bulk reboot action: tested and validated 2014-01-29 22:34:06 +01:00
Olivier Lambert
d039bd4caa editable general settings for host 2014-01-29 22:22:19 +01:00
Julien Fontanet
210de2a440 Initial bulk actions. 2014-01-29 19:50:27 +01:00
Julien Fontanet
c1cfd4d6db Minor HTML update. 2014-01-29 19:47:07 +01:00
Olivier Lambert
1f1f7610db small fixes on about page 2014-01-29 17:24:31 +01:00
Julien Fontanet
09fef67aca Update to last XO API. 2014-01-29 17:20:15 +01:00
Julien Fontanet
d17a163570 Minor changes. 2014-01-29 17:02:52 +01:00
Olivier Lambert
6eca471b0d add content in vm creation page 2014-01-29 15:44:34 +01:00
Julien Fontanet
2b16bdce33 Initial VM creation. 2014-01-24 12:28:50 +01:00
Julien Fontanet
5fe6610cd9 Do not expose byUUIDs and byRefs. 2014-01-23 12:20:50 +01:00
Julien Fontanet
6460d5cf6b Work around UI-Router package problem. 2014-01-22 18:18:03 +01:00
Julien Fontanet
6785cdc494 noVNC managed with Bower like other deps. 2014-01-22 18:17:37 +01:00
Julien Fontanet
39bf7f3d0f Minor fix. 2014-01-17 12:03:51 +01:00
Olivier Lambert
475750074a fix local SR. but warning: SR in host seems to be empty. 2014-01-16 23:52:56 +01:00
Julien Fontanet
9cee41675d Updates to latest changes in XO-Server. 2014-01-16 17:00:14 +01:00
Olivier Lambert
f66bd0f390 initial view creation for add a SR 2014-01-11 16:32:16 +01:00
Olivier Lambert
ba35049897 minor fixes 2014-01-08 19:13:42 +01:00
Olivier Lambert
ff3315573f add remove/disconnect button for interfaces 2014-01-08 19:11:07 +01:00
Olivier Lambert
0469992ae8 vm view: more x-editable tables and forms 2014-01-08 19:07:06 +01:00
Olivier Lambert
c3d3ad57c2 add angular editable table for disks. Not finished yet 2014-01-08 18:18:12 +01:00
Olivier Lambert
942dd3d240 add various things in VM view (status of vdi connection, buttons for editing etc). 2014-01-08 15:37:48 +01:00
Olivier Lambert
c8a00a76b8 display SR for VM's vdi 2014-01-08 11:25:08 +01:00
Julien Fontanet
ed5b099893 Message deletion. 2014-01-06 14:51:49 +01:00
Julien Fontanet
612271d2d0 Minor fix. 2014-01-06 14:48:08 +01:00
Julien Fontanet
f8b2623dc8 Removes unecessary includes. 2014-01-06 14:24:15 +01:00
Olivier Lambert
4a6664d9a1 prepare for task/message removal in view and model 2014-01-05 23:05:37 +01:00
Olivier Lambert
66149581dc initial task display in host view 2014-01-05 17:34:55 +01:00
Julien Fontanet
b1df71d2d8 Minor fix. 2014-01-05 14:38:57 +01:00
Julien Fontanet
afb807b66b Minor HTML changes. 2014-01-04 15:41:08 +01:00
Olivier Lambert
9c8ffcb1f8 template list when create a vm in a host 2014-01-03 18:27:51 +01:00
Julien Fontanet
42957b1e59 Initial consoles support. 2014-01-03 14:12:27 +01:00
Olivier Lambert
4002ad87ea display template list and start working on creating VMs 2014-01-02 16:25:33 +01:00
Olivier Lambert
adcd799253 Merge pull request #45 from sarahfuture/patch-1
Changed URL which was 404'ing
Thanks for the pull request!
2014-01-02 07:23:15 -08:00
sarahfuture
c9d91a5232 Changed URL which was 404'ing
https://github.com/vatesfr/xo-server/tree/nodejs resulted in a 404. Changed to https://github.com/vatesfr/xo-server
2014-01-02 14:48:55 +00:00
Olivier Lambert
d10957709a add snapshot view in vm 2014-01-02 13:21:04 +01:00
Olivier Lambert
c4fb4c2d7c small label for vm in host view 2014-01-02 12:14:15 +01:00
Olivier Lambert
d01fb34df0 add log view for pool, vm and host 2014-01-02 11:39:39 +01:00
Julien Fontanet
a8b5d64213 Minor fixes. 2014-01-02 10:59:38 +01:00
Julien Fontanet
586bedd484 Fix: HTML closing tags. 2014-01-01 14:58:35 +01:00
Julien Fontanet
2359c5a7d4 Fix: filtering in the list view. 2014-01-01 13:49:07 +01:00
Julien Fontanet
823691c26b Use qualified names. 2014-01-01 13:43:19 +01:00
Julien Fontanet
1dd83dbc37 Sort entries in the flat view. 2014-01-01 13:35:29 +01:00
Olivier Lambert
24f4627161 better display with badge 2013-12-31 18:47:18 +01:00
Olivier Lambert
3d9849e813 pif displayed in host view 2013-12-31 17:01:33 +01:00
Julien Fontanet
aaee585af5 Avoid unecessary $scope.$watch(). 2013-12-31 16:43:26 +01:00
Julien Fontanet
e13e48012d Old files. 2013-12-31 16:43:26 +01:00
Olivier Lambert
532627f4c9 minor display fix 2013-12-31 16:40:27 +01:00
Julien Fontanet
48dd80eb83 fromUUIDFilter should now work correctly. 2013-12-31 16:32:17 +01:00
Olivier Lambert
54e65708d1 add VIF display in VM view 2013-12-31 16:16:08 +01:00
Julien Fontanet
752b3704c3 Various minor changes. 2013-12-31 15:58:30 +01:00
Olivier Lambert
5538fc1659 better help 2013-12-31 14:15:07 +01:00
Julien Fontanet
c563e03731 Minor TODO. 2013-12-31 13:46:48 +01:00
Julien Fontanet
5b9bb0f0cb Users and servers creation. 2013-12-31 13:36:53 +01:00
Julien Fontanet
8c3dd547ac Passwords modification for users/servers. 2013-12-31 12:54:31 +01:00
Julien Fontanet
f638daa773 TODOs added in the settings page. 2013-12-31 12:53:33 +01:00
Olivier Lambert
527e3aa505 add class form control for better style 2013-12-30 20:16:10 +01:00
Julien Fontanet
961b632908 Servers modification and deletion. 2013-12-30 17:45:45 +01:00
Julien Fontanet
470da11d72 Users modification and deletion. 2013-12-30 17:21:29 +01:00
Olivier Lambert
09024a50e7 Merge branch 'next-release' of https://github.com/vatesfr/xo-web into next-release 2013-12-30 15:02:23 +01:00
Olivier Lambert
9cd3418d1a add param link for new vm 2013-12-30 15:02:06 +01:00
Julien Fontanet
3f6bcff7b8 Users and servers should be ordered. 2013-12-30 12:16:46 +01:00
Julien Fontanet
53a544d064 Remove unused deps. 2013-12-30 12:13:35 +01:00
Julien Fontanet
d1260a9310 Display users list. 2013-12-29 23:20:44 +01:00
Julien Fontanet
60f6115072 Display servers list. 2013-12-29 22:52:18 +01:00
Julien Fontanet
825163b22f The session service does not alter $rootScope anymore. 2013-12-28 18:50:10 +01:00
Julien Fontanet
010e36444c session.signIn*() now returns the signed user. 2013-12-28 18:40:39 +01:00
Julien Fontanet
eb1bc60d27 Persistent login. 2013-12-28 18:05:53 +01:00
Olivier Lambert
32dc2b198b add real actions and also implement them in vm view 2013-12-28 18:04:37 +01:00
Julien Fontanet
41060bf4f3 Data is refreshed every 5s, track by used for performance. 2013-12-28 17:10:43 +01:00
Julien Fontanet
daf58b422a Pause/Unpause action for VMs. 2013-12-28 14:57:29 +01:00
Julien Fontanet
d2e3f9c1ca Minor fix. 2013-12-28 14:57:09 +01:00
Julien Fontanet
c5479c8c4f Bower and Grunt CLI added as dependency. 2013-12-28 14:56:45 +01:00
Julien Fontanet
487f4c94f4 Session sign in/out works. 2013-12-27 18:45:21 +01:00
Olivier Lambert
7fa6172d71 add link from vdi in vm page to its sr 2013-12-27 16:54:02 +01:00
Olivier Lambert
cf5ca9f2c7 add links to consoles 2013-12-20 13:13:00 +01:00
Olivier Lambert
dfc5a0505d building console view 2013-12-20 12:33:25 +01:00
Olivier Lambert
5ceaaf6b43 add iso list in console view 2013-12-20 11:05:33 +01:00
Olivier Lambert
67d1295b41 fix display for very small vdi in vdi map (sr view) 2013-12-20 10:10:25 +01:00
Olivier Lambert
4ce80145c0 add cpu and vcpu display in various views 2013-12-20 01:45:38 +01:00
Olivier Lambert
2c8383a0aa remove display of VDI using less than 1% of space 2013-12-20 00:04:10 +01:00
Olivier Lambert
a1b2008729 fix address display in list view 2013-12-19 23:59:48 +01:00
Olivier Lambert
75a6d2cfaf introduce vdi map in SR view with intelligent display of vdi name in their progress bar 2013-12-19 23:56:38 +01:00
Olivier Lambert
70425d877f add on which host a vm is running in vm view. Clickable link to host view, and display this line only if the vm is paused or running 2013-12-19 23:27:55 +01:00
Olivier Lambert
a31b509859 add ip address in guest_metrics for VM 2013-12-19 23:11:30 +01:00
Olivier Lambert
24a6187de7 count vm in host view 2013-12-19 20:13:31 +01:00
Olivier Lambert
5a93982533 filter shared SR for avoiding duplicated entries in SR list in host view. Also modify byte filter for remove negative values in bytes 2013-12-19 19:38:10 +01:00
Olivier Lambert
af324ca9a8 css hack from Chrome based browsers 2013-12-19 18:19:38 +01:00
Olivier Lambert
da1927d0bc add dummy actions for main view 2013-12-19 17:18:05 +01:00
Olivier Lambert
bea995fecf remove useless decimals 2013-12-19 17:05:05 +01:00
Julien Fontanet
b10536c3fc Various updates. 2013-12-19 16:45:44 +01:00
Julien Fontanet
7da25155f4 Minor fixes in the SR page. 2013-12-19 15:14:49 +01:00
Julien Fontanet
d4e4c1b2f5 API fix. 2013-12-19 15:03:06 +01:00
Olivier Lambert
7ff13332af remove useless tooltip 2013-12-19 14:34:58 +01:00
Olivier Lambert
009d451b07 add mem for halted hosts 2013-12-19 14:31:58 +01:00
Julien Fontanet
5c1f593a12 Minor coding style fixes. 2013-12-18 17:54:42 +01:00
Julien Fontanet
5f676becf1 Show the master host in home page. 2013-12-18 16:15:32 +01:00
Julien Fontanet
2d2c22a321 Checkoxes & stats fixed in home page. 2013-12-18 15:57:54 +01:00
Julien Fontanet
bf3855f04c Do not inject XO objects in the root scope. 2013-12-18 13:54:12 +01:00
Olivier Lambert
15e87bb2da add pool info if empty and snap in SR/vdi view 2013-12-14 23:52:27 +01:00
Olivier Lambert
1a13c13b07 remove useless dots 2013-12-14 19:10:46 +01:00
Olivier Lambert
b12702cd39 sr view completed with real data 2013-12-14 19:04:53 +01:00
Julien Fontanet
e9eac2ac0f Minor coding style fixes. 2013-12-14 17:27:32 +01:00
Olivier Lambert
962e39faa3 fix local SR display routine in host view 2013-12-14 17:00:26 +01:00
Olivier Lambert
6d5b9e39dc add host name order in super checkbox 2013-12-14 13:02:01 +01:00
Olivier Lambert
f83d586784 fix views with new data model 2013-12-14 12:59:31 +01:00
Julien Fontanet
a1faff191d Fix host page. 2013-12-13 16:31:02 +01:00
Julien Fontanet
e0234b5ec7 Initial communication with XO-Server. 2013-12-12 17:55:14 +01:00
Olivier Lambert
d285121c76 fix typo and list style 2013-12-09 17:54:49 +01:00
Julien Fontanet
d7e5cbc7c9 Swap the link between SR and VDIs. 2013-12-09 15:10:33 +01:00
Julien Fontanet
7cfa8ba793 Use UI-Router instead of ngRoute. 2013-12-06 21:40:00 +01:00
Julien Fontanet
3652795524 Remove incorrectly added file. 2013-12-06 21:14:41 +01:00
Olivier Lambert
f8601a0e06 add files for vm new 2013-12-03 16:16:02 +01:00
Olivier Lambert
92455c2524 add view new vm. add angularui-select2. start testing tags management in vm view 2013-12-02 17:49:37 +01:00
Olivier Lambert
eee3d443fb add tooltip for action bar 2013-11-27 09:54:32 +01:00
Julien Fontanet
b09b1093b6 Uses uiIndeterminate and uiRoute. 2013-11-26 19:09:17 +01:00
Olivier Lambert
0f10988d3e add editable SR 2013-11-26 19:01:16 +01:00
Olivier Lambert
2d296a3597 add edit in pool view and remove hover for edit icon in all views 2013-11-26 18:39:04 +01:00
Olivier Lambert
8cb18c7cc6 mod host view with editable 2013-11-26 17:07:55 +01:00
Olivier Lambert
7a7dd14abf add angular-xeditable and started to use it in vm view 2013-11-26 16:52:56 +01:00
Julien Fontanet
ad65f23bc1 Comments added to Gruntfile.js to make it more understandable. 2013-11-26 13:58:32 +01:00
Julien Fontanet
8de4ae9409 VMs selection per host: fixed & list only hosts with VMs. 2013-11-25 00:38:25 +01:00
Olivier Lambert
e6210b3c63 add mockup data for screenshots and icon for host in master checkbox 2013-11-22 16:19:23 +01:00
Julien Fontanet
5de91699e6 VMs not on a host are correctly handled. 2013-11-22 16:16:53 +01:00
Julien Fontanet
436c98fe38 Minor fixes in the VDIs listing of the VM view. 2013-11-22 15:40:32 +01:00
Julien Fontanet
21324efdaf Use xoClick instead of ngClick. 2013-11-22 15:25:40 +01:00
Julien Fontanet
2d77dae6e5 Data model: comments and new fields in VDI. 2013-11-22 14:13:28 +01:00
Olivier Lambert
4acd28eb8e add vdi list in vm view with new custom angular property 2013-11-21 16:21:37 +01:00
Julien Fontanet
2d0b51c08c Data model updated: VDIs & VBDs. 2013-11-21 12:28:36 +01:00
Julien Fontanet
b5e87ea4ba Power state icons added in the VM selection menu. 2013-11-20 11:53:53 +01:00
Julien Fontanet
b1ab4430dd (Hopefully :p) Final VMs selection for the main view. 2013-11-20 11:30:39 +01:00
Olivier Lambert
e9706207fb add user view 2013-11-20 11:03:47 +01:00
Olivier Lambert
7f70b16b49 minox fixes (cursor grab + fix in mockup data) 2013-11-19 23:30:09 +01:00
Olivier Lambert
ca9bd9f6a7 fix uuid for SR in main view 2013-11-19 19:46:22 +01:00
Olivier Lambert
45f633acb1 add checkbox and select for user permission and delete in settings view 2013-11-19 19:14:00 +01:00
Julien Fontanet
24e279886a The checkboxes in the main view should work perfectly. 2013-11-19 19:11:08 +01:00
Olivier Lambert
afb4b5fcb7 fix link in navbar and color icon in settings view 2013-11-19 18:50:29 +01:00
Julien Fontanet
4eb23a1b79 Fix for the master checkbox. 2013-11-19 18:47:25 +01:00
Olivier Lambert
bf388787e7 add new server view and settings view 2013-11-19 18:44:55 +01:00
Julien Fontanet
7ee49cdc8d Initial master checkbox in main view. 2013-11-19 18:41:59 +01:00
Olivier Lambert
0229db584c add link for new server in main menu in navbar view 2013-11-19 18:05:18 +01:00
Olivier Lambert
e21455912e add new server view and minor fixes on about page 2013-11-19 18:02:44 +01:00
Olivier Lambert
577ff28387 oops remove a useless console log in custom directive 2013-11-19 17:06:37 +01:00
Olivier Lambert
06654d2e4f add detailed screen if no host connected + minor fixes on about page 2013-11-19 16:32:10 +01:00
Olivier Lambert
6337e1685a add link for SR and Host in pool view 2013-11-19 16:12:32 +01:00
Olivier Lambert
c900e1d32f add link to SR from host view 2013-11-19 16:07:58 +01:00
Olivier Lambert
5f299aaf90 add directive for stop propagation of ng click in main view for VM rows 2013-11-19 16:00:05 +01:00
Olivier Lambert
9cb8af44e0 restore SR display for pools in main view 2013-11-19 15:19:42 +01:00
Olivier Lambert
c617f16861 revert pbd in model 2013-11-19 14:57:40 +01:00
Olivier Lambert
32a5c74194 fix variable for sr list in pool 2013-11-19 14:31:03 +01:00
Olivier Lambert
c7ab0719d9 add controller VM for each host, dynamic memory toolbar created in host view 2013-11-19 14:25:13 +01:00
Julien Fontanet
efd0b7ceab Updates in the data model. 2013-11-19 12:20:56 +01:00
Olivier Lambert
004fd5e936 add if for empty object on main page 2013-11-18 18:17:26 +01:00
Olivier Lambert
4a4c82bd40 change data model with pbd 2013-11-18 16:23:19 +01:00
Olivier Lambert
cc0f0ef769 fix sr size, add iscsi iqn in host 2013-11-18 15:39:36 +01:00
Olivier Lambert
c178689927 add no tag if no tag in sr, host and pool view 2013-11-18 15:00:44 +01:00
Julien Fontanet
00a628b235 Use the objects service everywhere and various fixes. 2013-11-18 14:36:14 +01:00
Olivier Lambert
76228059bf more on about page, but not yet complete 2013-11-17 15:40:35 +01:00
Olivier Lambert
ee57492f3f add stuff on about. But not complete yet 2013-11-16 19:18:08 +01:00
Julien Fontanet
4d91460bf5 Links to objects in the list view. 2013-11-16 17:26:48 +01:00
Olivier Lambert
c60fb54bc3 first add of about page 2013-11-16 17:22:46 +01:00
Julien Fontanet
732eec5d64 Data model updated. 2013-11-16 17:21:56 +01:00
Olivier Lambert
bc943aecfd add console view 2013-11-16 16:40:00 +01:00
Julien Fontanet
b8bff3e777 Mock data are now shared through a service. 2013-11-16 16:35:34 +01:00
Olivier Lambert
8480d1c91f add link to vm in host memory bar 2013-11-16 14:39:56 +01:00
Olivier Lambert
6351ed9413 add link to VM. Warning: erase possibility to click on a element in a row 2013-11-15 17:30:22 +01:00
Olivier Lambert
5671ca1e47 add icon snapshot 2013-11-15 17:15:41 +01:00
Olivier Lambert
82a29c8abf add action panel for pool 2013-11-15 17:13:31 +01:00
Olivier Lambert
fd7d2fe530 add action panel for host 2013-11-15 17:06:45 +01:00
Olivier Lambert
70cc26e7e5 add vm view 2013-11-15 17:02:01 +01:00
Olivier Lambert
c4bafa43b2 sr page mockup completed 2013-11-15 15:35:15 +01:00
Olivier Lambert
54899f48a4 add click for SR visible on main view 2013-11-15 14:57:10 +01:00
Olivier Lambert
9d1a85f315 fix color for the logging form 2013-11-15 14:07:37 +01:00
Olivier Lambert
754c27f8c8 dark login form + icon when not logged 2013-11-15 14:05:55 +01:00
Julien Fontanet
0119d0f05e Log in form. 2013-11-15 12:10:33 +01:00
Julien Fontanet
13abf00fc6 Icons alignment fixed in various menus. 2013-11-15 12:10:33 +01:00
Julien Fontanet
ead5103ab8 Various cleanings. 2013-11-15 12:10:33 +01:00
Olivier Lambert
7fa9c1d228 views added (sr and pool). Pool mockup created. Fix tooltip bug by removing fixed position globally 2013-11-15 11:52:39 +01:00
Olivier Lambert
f8e3fab5d5 modify host route with uuid 2013-11-15 10:56:44 +01:00
Olivier Lambert
cbfc40a2d8 add tags for mockup host data and a badge for status 2013-11-14 23:21:20 +01:00
Olivier Lambert
84dcb4fc1e add host view. Mockup almost completed 2013-11-14 22:36:17 +01:00
Julien Fontanet
76a919b7bf Basic search implemented. 2013-11-14 15:58:10 +01:00
Julien Fontanet
dab9a9ed15 Simpler code for VM power states in main view. 2013-11-14 15:20:12 +01:00
Olivier Lambert
27094fa7ee cleaning vm table 2013-11-14 15:14:41 +01:00
Julien Fontanet
ba8588aee0 Initial list view. 2013-11-14 15:03:20 +01:00
Olivier Lambert
4bd7b07f06 add new cpu color state and fix css over qualification, modify mockup data with high vm cpu 2013-11-14 11:13:56 +01:00
Olivier Lambert
d95da7ae61 display memory only if host is Running 2013-11-14 11:04:01 +01:00
Olivier Lambert
d79de8cead fix search bar incorrect padding 2013-11-14 10:44:37 +01:00
Olivier Lambert
264ea26238 add tooltips and simplify host stats 2013-11-14 10:31:04 +01:00
Olivier Lambert
c8f0edd368 minor css fix 2013-11-13 20:04:39 +01:00
Julien Fontanet
6acd68d8fe Default SRs are now visible. 2013-11-13 19:57:57 +01:00
Olivier Lambert
b5964e3bff power state on host and css classes reorder 2013-11-13 19:51:02 +01:00
Julien Fontanet
cf6ab6b204 Navbar: comments, menu links, collapse on mobile fixed. 2013-11-13 19:36:11 +01:00
Olivier Lambert
b042e260f9 proper icon name replacement 2013-11-13 19:24:08 +01:00
Olivier Lambert
188f602acc minor fix on cloud/pool icon 2013-11-13 19:19:28 +01:00
Julien Fontanet
a987dfc422 Explicit memory tooltip in main view. 2013-11-13 18:58:01 +01:00
Julien Fontanet
d775606cb9 Dynamic stats on main view. 2013-11-13 18:56:40 +01:00
Olivier Lambert
6477c0eaee icon with sass 2013-11-13 18:52:24 +01:00
Olivier Lambert
9f91447c49 fix dropdown 2013-11-13 18:05:26 +01:00
Julien Fontanet
228040f611 Pointer cursor for all links. 2013-11-13 18:00:49 +01:00
Julien Fontanet
40e919712c Minor fix. 2013-11-13 17:56:26 +01:00
Julien Fontanet
10cda83f43 Tooltip added using UI-Bootstrap. 2013-11-13 17:32:58 +01:00
Julien Fontanet
48553ea909 Main view almost finished (using mock data). 2013-11-13 16:19:40 +01:00
Julien Fontanet
355e3946b6 Almost everything is broken! 2013-11-12 18:09:54 +01:00
Julien Fontanet
3491c111b8 Missing files. 2013-10-31 13:44:21 +01:00
Julien Fontanet
6b73eda23f Switch to Bower, Grunt & Require.js. 2013-10-31 11:59:24 +01:00
Julien Fontanet
67516c7ab0 Add EditorConfig. 2013-10-29 10:58:36 +01:00
Julien Fontanet
668c027961 WebSocket over HTTPS support. 2013-10-21 17:08:04 +02:00
Julien Fontanet
d123939993 Minor updates. 2013-10-14 15:37:16 +02:00
Julien Fontanet
9481afc79b Various updates. 2013-10-09 18:51:01 +02:00
Julien Fontanet
567ace697f Minor fixes. 2013-10-09 18:03:39 +02:00
Olivier Lambert
34f341b8a1 ui improvements for hosts 2013-10-09 18:01:18 +02:00
Olivier Lambert
8c05a78f0f ui improvements 2013-10-09 17:55:04 +02:00
Julien Fontanet
48eab1985b Various updates. 2013-10-09 17:40:46 +02:00
Julien Fontanet
5c30647807 Various updates. 2013-10-09 16:40:30 +02:00
Julien Fontanet
64825f2f07 Fix old issue. 2013-10-08 17:35:41 +02:00
Julien Fontanet
8d99c32e0c Various updates. 2013-10-08 17:01:30 +02:00
Julien Fontanet
83124dff9f Various updates. 2013-10-08 16:15:38 +02:00
Julien Fontanet
576ad5d84a Various updates. 2013-10-08 10:38:47 +02:00
Julien Fontanet
4ff4aba405 Various updates. 2013-10-07 18:00:54 +02:00
Julien Fontanet
41185dd64b New stats (fixes #29). 2013-09-13 11:12:43 +02:00
Julien Fontanet
ac91b8c513 Minor fix. 2013-09-13 11:06:56 +02:00
Julien Fontanet
6a8534f0e9 Servers can be deleted (fixes vatesfr/xo-server#11).
For now, servers are not automatically disconnected, you have to restart.
2013-09-11 16:38:07 +02:00
Olivier Lambert
1d2ba4a1d4 add button and forms for tpl-admin-servers 2013-09-11 14:29:57 +02:00
Olivier Lambert
34ff816208 minor fix: span in table head and simplify address display 2013-09-07 14:15:19 +02:00
Julien Fontanet
3f4bfcfe36 Autofocus (fixes #39). 2013-09-07 14:04:32 +02:00
Olivier Lambert
2dc42c1503 try more condensed display 2013-09-06 17:09:47 +02:00
Olivier Lambert
0ef0786054 center state icons 2013-09-06 16:08:19 +02:00
Olivier Lambert
96323809cd better display for status 2013-09-06 15:59:28 +02:00
Julien Fontanet
6f0db1c54e Merge pull request #38 from SRCF/fix-memory-bar
Fix the memory bars for 100%.
2013-09-06 01:05:30 -07:00
Andrew Cooper
28f8c416d7 Fix the memory bars for 100%
When a host's free memory rounds to 0, the associated progress bar
would end up as 0% rater than 100%.  Now, completely full hosts are
correctly displayed.
2013-09-05 23:09:06 +01:00
Olivier Lambert
c9f09befb7 simplify state display 2013-09-05 18:21:16 +02:00
Julien Fontanet
d56ef76d85 Correctly close the console when no logger necessary (prevent double inputs) (fixes #25). 2013-09-05 16:55:58 +02:00
Julien Fontanet
b804550f29 Various updates (fixes #34). 2013-09-05 16:01:45 +02:00
Julien Fontanet
b2355f9920 Update in users management. 2013-09-05 10:59:40 +02:00
Julien Fontanet
f2b6507d9e Initial users management. 2013-09-05 09:40:41 +02:00
Olivier Lambert
daafa2b478 add address and uptime on host overview 2013-09-03 14:45:11 +02:00
Julien Fontanet
5366479410 Remove old crumbs. 2013-09-03 13:49:30 +02:00
Olivier Lambert
3fd980613d add more information and simplifiy host General tab 2013-09-03 13:26:32 +02:00
Olivier Lambert
76fcd51d00 Fixes #35 2013-09-02 13:38:25 +02:00
Julien Fontanet
0176743587 Refresh-proof sign-in. 2013-08-30 17:46:55 +02:00
Julien Fontanet
5eb516434d Links in the overview. 2013-08-16 18:42:19 +02:00
Julien Fontanet
2feab38403 Initial overview. 2013-08-16 18:17:13 +02:00
Olivier Lambert
7c0287b289 add ip addresses for vm with xstools 2013-08-14 13:38:45 +02:00
Julien Fontanet
998c80ec61 Merge branch 'web-app'
This new version of XO-Web no longer uses PHP but is fully developped
in JavaScript using Backbone.js.
2013-08-13 16:49:36 +02:00
Julien Fontanet
af1d97732b Minor updates. 2013-08-13 16:39:44 +02:00
Olivier Lambert
7449b086aa add fixed size for name column in host view 2013-08-05 17:10:59 +02:00
Olivier Lambert
e36b94b3a0 change readme to reflect new JS version 2013-08-04 20:15:40 +02:00
Olivier Lambert
b8e1514464 add buttons for start,shutdown,reboot actions + smaller buttons 2013-08-02 16:03:31 +02:00
Olivier Lambert
239f0c8b24 fix unpause: it works now 2013-08-01 12:35:23 +02:00
Julien Fontanet
fd29ae7291 Minor fix. 2013-08-01 12:16:37 +02:00
Julien Fontanet
fb6f85d9f4 Minor fix. 2013-08-01 11:50:58 +02:00
Julien Fontanet
149d2e32e9 Minor updates. 2013-08-01 09:24:46 +02:00
Olivier Lambert
ba52a38ae2 add Action buttons with working Pause button 2013-07-31 23:32:36 +02:00
Julien Fontanet
5b55e15287 Update Backbone.js. 2013-07-31 19:00:26 +02:00
Julien Fontanet
6433e5f42e Various updates. 2013-07-31 18:51:13 +02:00
Julien Fontanet
43bba98042 Auto-refresh (but a bit broken). 2013-07-31 16:12:05 +02:00
Julien Fontanet
4bd2624db5 Various updates. 2013-07-31 15:27:13 +02:00
Julien Fontanet
993fe6636b Minor fix. 2013-07-31 15:15:45 +02:00
Julien Fontanet
3808de66d1 Various updates. 2013-07-31 14:51:35 +02:00
Olivier Lambert
73aef9e41b add almost complete mockup for VM new wizard 2013-07-31 14:48:42 +02:00
Olivier Lambert
7bbd7b4c10 navbar fontawesome like with caret 2013-07-31 12:08:55 +02:00
Olivier Lambert
328e3b7856 new version of FontAwesome and remove useless files 2013-07-31 11:15:18 +02:00
Olivier Lambert
909fab7622 remove useless wizard files 2013-07-31 11:03:53 +02:00
Olivier Lambert
6c6a79d660 start to add new VM wizard in vms/new route 2013-07-31 10:43:45 +02:00
Julien Fontanet
176a59f87e Minor fix. 2013-07-30 17:41:14 +02:00
Julien Fontanet
096b1e4a63 Various updates. 2013-07-30 17:34:18 +02:00
Olivier Lambert
1d2e3e1656 fix modal bug, forget hide in class 2013-07-30 16:32:44 +02:00
Olivier Lambert
4c1df4452e various fixes: remove caret in menu, rename button and fix its call to modal 2013-07-30 16:01:25 +02:00
Julien Fontanet
6ed5680f8f Various updates. 2013-07-30 15:19:28 +02:00
Olivier Lambert
193e16c59e add global modal 2013-07-30 15:19:02 +02:00
Olivier Lambert
99afaa5820 add modal window for adding hosts 2013-07-30 13:45:47 +02:00
Olivier Lambert
5b2b100101 working console 2013-07-30 13:05:29 +02:00
Olivier Lambert
bc13712414 xen console port 2013-07-30 10:31:19 +02:00
Olivier Lambert
a69be6f652 change protocol for websock lib in NoVNC 2013-07-29 16:15:53 +02:00
Julien Fontanet
e9e8e788aa Various updates. 2013-07-29 16:06:27 +02:00
Julien Fontanet
4e9a2ec277 Storages are ok. 2013-07-29 13:30:58 +02:00
Julien Fontanet
e9e03b223f Various updates. 2013-07-29 12:53:29 +02:00
Julien Fontanet
a49b68d63f “xapi” namespace in XO API. 2013-07-29 10:21:23 +02:00
Julien Fontanet
98ef52baa9 Initial VNC console (does not work). 2013-07-26 15:02:43 +02:00
Julien Fontanet
39b52fe04a More real data. 2013-07-26 13:44:50 +02:00
Julien Fontanet
1f4d737765 Starting to use real data from XO-Server. 2013-07-25 15:11:07 +02:00
Julien Fontanet
efdc725022 Various updates. 2013-07-23 15:01:02 +02:00
Olivier Lambert
8899d705c4 add template page 2013-07-23 10:47:44 +02:00
Olivier Lambert
77f4fc32ce add function to display connected or not 2013-07-23 10:40:12 +02:00
Olivier Lambert
bf296502bc add networks 2013-07-23 10:23:32 +02:00
Olivier Lambert
67916cff5c storage page is now working 2013-07-23 09:33:57 +02:00
Olivier Lambert
3fd93658e8 try to implement storage in web-app way: not finished 2013-07-22 23:29:17 +02:00
Julien Fontanet
0e2696ad23 Minor fix. 2013-07-22 17:07:17 +02:00
Julien Fontanet
7143ef9a2a VM. 2013-07-22 16:31:47 +02:00
Julien Fontanet
139a187cb7 Initial VMs listing. 2013-07-22 15:05:34 +02:00
Julien Fontanet
82b645cf61 Hosts. 2013-07-22 14:20:45 +02:00
Olivier Lambert
e88c09887a fix readme 2013-07-22 10:36:16 +02:00
Julien Fontanet
a4039e99c1 Initial version based on Backbone.js & Marionette.js. 2013-07-19 17:58:17 +02:00
Julien Fontanet
850cf95d3b Merge pull request #17 from SRCF/monospaced-mac
Format MAC addresses as monospaced.
2013-07-08 05:26:21 -07:00
Andrew Cooper
8ecc6482b2 Following review, rename "monospaced" -> "mac-address" and remove the
needless span element by applying the class to the td element instead.
2013-07-04 23:04:01 +01:00
Julien Fontanet
ec2b60ee27 Merge pull request #16 from SRCF/gitignore
Gitignore
2013-07-03 01:00:09 -07:00
Andrew Cooper
d3976fd64a Newline at end of file 2013-07-03 00:11:09 +01:00
Andrew Cooper
1efd7a73e6 Format MAC addresses as monospaced 2013-07-03 00:06:49 +01:00
Andrew Cooper
b06d1edc5f Misc additions to .gitignore 2013-07-02 23:26:48 +01:00
Julien Fontanet
b7a00941b4 Best preferred host handling (fixes #6). 2013-05-27 16:36:06 +02:00
Julien Fontanet
f326de8c3b Minor cleanup. 2013-05-27 15:37:05 +02:00
Julien Fontanet
c39a0c983c Missing file. 2013-05-27 15:36:40 +02:00
Julien Fontanet
060872cacb Better time handling.
Using Moment.js to display dates (fixes #15).
Using our own function to display durations.
2013-05-27 15:34:36 +02:00
Julien Fontanet
fda02aea84 Sizes are now correctly formatted and use appropriate units. 2013-05-24 11:19:21 +02:00
Julien Fontanet
451e96e848 Better representation for VMs memory usage in host page (fixes #14).
The scale is not logarithmic but the order is respected.
2013-05-23 17:53:47 +02:00
Julien Fontanet
45d4c7b20c Minor missing fix. 2013-05-16 15:09:07 +01:00
Julien Fontanet
cd2cdd3692 Be clearer if there is no IPs (fixes #9). 2013-05-16 15:02:40 +01:00
Julien Fontanet
0c13928109 No link for Dom0 in server memory bar (fixes #13). 2013-05-16 12:01:14 +01:00
Julien Fontanet
6be05423d8 Dom0 appears first in server memory bar (fixes #12). 2013-05-16 11:53:44 +01:00
Julien Fontanet
aa5fa39d7a Merge pull request #11 from SRCF/firefox-ui-fixes
Fix empty <dd> issues and alignment of information in <dl>s
2013-04-13 07:56:28 -07:00
Andrew Cooper
ebb3336da0 On Firefox 19 using the XO sytle, empty <dd> blocks collapse into
nothing, and lower ones reflow upwards, including <br/> blocks.

Remove <br/>s from the middle of <dl> blocks and split into seperate
<dl> blocks to limit the effect of the reflowing.

Insert &nbsp;s into the PIF list to prevent the empty <dd> blocks from
reflowing together, allowing the IP addreses to match up with their
correct PIF.
2013-04-13 16:38:38 +01:00
Julien Fontanet
2792315d39 Merge pull request #10 from SRCF/server-description
Add server description to index listing.
2013-04-13 07:13:38 -07:00
Andrew Cooper
0162842b97 Add server description to index listing 2013-04-13 15:56:14 +01:00
Julien Fontanet
97812a24b4 Display memory usage in a tooltip in the hosts list (fix #3). 2013-04-12 15:10:43 +02:00
Julien Fontanet
830d7fbdb0 Display correctly the XCP version of a host (fix #2). 2013-04-12 15:04:48 +02:00
Julien Fontanet
5f877b77ea Update dependencies. 2013-04-12 15:04:20 +02:00
Julien Fontanet
2fa669f9c6 Minor README update. 2013-04-12 14:11:19 +02:00
Julien Fontanet
fc714f7d43 Fixes issue #4. 2013-04-06 22:30:30 +02:00
Julien Fontanet
428dc5ff07 Merge pull request #5 from SRCF/correct-network-title
Correct network index title.
2013-04-06 12:46:42 -07:00
Andrew Cooper
a0d651a5b8 Correct network index title 2013-04-06 19:14:59 +01:00
Julien Fontanet
84e6f71416 More PHP 5.3 compatibility fixes (see issue vatesfr/xo#1). 2013-03-29 14:27:06 +01:00
Julien Fontanet
b38ed38297 Various updates. 2013-03-28 22:23:57 +01:00
Julien Fontanet
58765763e2 Various updates. 2013-03-28 16:10:23 +01:00
Julien Fontanet
3618e84c17 os_version can be null. 2013-03-27 18:42:51 +01:00
Julien Fontanet
c29dcb9053 Various updates. 2013-03-27 18:02:16 +01:00
Julien Fontanet
c4a4d95e3c Minor fix. 2013-03-27 15:24:33 +01:00
Julien Fontanet
21befdeb0e Various updates. 2013-03-26 19:02:45 +01:00
Olivier Lambert
79ddafb594 reduce display for tablets 2013-03-26 17:47:46 +01:00
Olivier Lambert
8e060c8ae4 minor fix 2013-03-26 16:34:52 +01:00
Olivier Lambert
01321b0cf6 creation of dashboard home page 2013-03-26 16:24:08 +01:00
Olivier Lambert
b57b6ac69c add AGPL mention in home page 2013-03-26 14:09:02 +01:00
Julien Fontanet
0de22f10c0 Initial stats. 2013-03-26 13:57:29 +01:00
Julien Fontanet
2e8c931fb6 Remove incorrect file. 2013-03-26 10:59:18 +01:00
Olivier Lambert
0436bd1b41 disable search bar (for now) 2013-03-25 16:38:35 +01:00
Olivier Lambert
7238f99d19 whoops. fix bootstrap name 2013-03-25 16:34:33 +01:00
Olivier Lambert
2d7cd2fe4e add help with bootstrap tour 2013-03-25 16:27:19 +01:00
Olivier Lambert
9a586c397f simplify server/vms views 2013-03-23 11:25:19 +01:00
Olivier Lambert
6f4289b3a0 fix another layout bug 2013-03-23 10:41:51 +01:00
Olivier Lambert
382e368f2a fix layout 2013-03-23 10:40:43 +01:00
Olivier Lambert
f3e7cb3972 add comments in source code 2013-03-23 10:39:01 +01:00
Julien Fontanet
4530db087a Various updates. 2013-03-22 18:34:07 +01:00
Julien Fontanet
7f08163eda User modification. 2013-03-22 18:34:07 +01:00
Julien Fontanet
ea79adb277 Various updates. 2013-03-22 18:34:07 +01:00
Olivier Lambert
f32d42f38a reorg view 2013-03-22 18:29:27 +01:00
Olivier Lambert
565e4bdc9e views modifications 2013-03-22 17:02:54 +01:00
Olivier Lambert
f26d79dabd fix template view 2013-03-22 15:24:25 +01:00
Olivier Lambert
9e0c36d0ff add template view and fix other views 2013-03-22 15:17:30 +01:00
Olivier Lambert
74b3b6eb7d remove old css comments 2013-03-22 14:33:18 +01:00
Olivier Lambert
ac24219449 vms view corrected 2013-03-22 13:57:23 +01:00
Olivier Lambert
c6771ca2d3 fix server page and add informations 2013-03-21 00:07:08 +01:00
Olivier Lambert
0b739f1c39 add static pages 2013-03-20 23:43:26 +01:00
Olivier Lambert
5c08323321 fix CSS and modify server page 2013-03-19 17:37:40 +01:00
Julien Fontanet
c8f01b2b1f Fix in config merging. 2013-03-18 17:18:48 +01:00
Olivier Lambert
b04d5b4feb layout changes. Simplify toolbar 2013-03-18 12:48:37 +01:00
Julien Fontanet
aa90079225 Various updates. 2013-03-14 17:02:06 +01:00
Julien Fontanet
717e1d67b4 Initial Backbone experiment. 2013-03-14 12:04:53 +01:00
Julien Fontanet
5dff96f951 Various updates. 2013-03-14 11:51:08 +01:00
Julien Fontanet
fb8605216c Minor cleaning. 2013-03-08 10:36:00 +01:00
Julien Fontanet
f74167fc9c Dependencies update. 2013-03-04 18:35:22 +01:00
Julien Fontanet
a49840e87f Minor README update. 2013-03-04 15:31:39 +01:00
Julien Fontanet
56d3536bc0 Various updates. 2013-03-03 13:01:40 +01:00
Julien Fontanet
af45b81c28 HTML fixes. 2013-03-03 11:29:03 +01:00
Julien Fontanet
fe2aa3e030 Minor change. 2013-03-02 21:26:37 +01:00
Julien Fontanet
bd263b1413 Various changes.
- Templates compilation can be configured.
- Main layout is cleaner and more commented.
2013-03-02 21:02:06 +01:00
Julien Fontanet
513ac603c5 Minor link corrections. 2013-03-02 15:25:04 +01:00
Julien Fontanet
c96a7ca308 Various updates.
- Clearer error messages when no routes match.
- Favicon link fixed.
- “<base href="…">” tag removed from the layout.
2013-03-02 14:50:17 +01:00
Julien Fontanet
b00064ca9b Minor fix in configuration merging. 2013-03-01 17:13:57 +01:00
Julien Fontanet
983ec963ea Remove unnecessary VMs dropdown menu. 2013-03-01 17:06:10 +01:00
Julien Fontanet
88bb4fbb26 Various updates. 2013-03-01 16:55:06 +01:00
Julien Fontanet
20ad59514e Big refactoring (Controller/action). 2013-03-01 14:42:35 +01:00
Julien Fontanet
079e737567 Improvement in user modification. 2013-02-21 13:34:23 +01:00
Olivier Lambert
e05b60ef75 add link + help modal window 2013-02-08 15:54:58 +01:00
Julien Fontanet
cb1ff82a33 Do not ship composer.phar. 2013-02-08 15:47:38 +01:00
Julien Fontanet
20d6e258b0 README update. 2013-02-08 15:46:59 +01:00
Julien Fontanet
0b580f6d30 Composer update. 2013-02-08 15:27:59 +01:00
Julien Fontanet
5d59616d01 README update. 2013-02-08 10:38:55 +01:00
Olivier Lambert
2d483150e6 adding README stuff 2013-02-07 19:37:55 +01:00
Julien Fontanet
f51b8cc8b3 Do not use application environments anymore. 2013-02-07 18:40:20 +01:00
Julien Fontanet
486c7a933e Composer and dependencies updated. 2013-02-07 18:30:46 +01:00
Julien Fontanet
48cd65cb31 Initial users modification (does not work). 2013-02-01 10:37:50 +01:00
Olivier Lambert
944f2b0bc4 change icon 2013-01-30 16:21:01 +01:00
Olivier Lambert
752fcb57ae minor layout fix for logout 2013-01-17 11:49:37 +01:00
Olivier Lambert
6658f92b5e Merge pull request #4 from julien-f/master
Various updates.
2013-01-16 06:26:51 -08:00
Julien Fontanet
f096056637 Minor fixes. 2013-01-16 15:24:39 +01:00
Julien Fontanet
6749694729 User can be created with a specified permission. 2013-01-16 15:21:23 +01:00
Julien Fontanet
f4faa478c9 Initial users administration. 2013-01-16 15:21:08 +01:00
Julien Fontanet
8423121f9b FontAwesome updated to 3.0 + Initial display of VMs. 2013-01-08 16:58:05 +01:00
Olivier Lambert
5cbf775614 Merge pull request #3 from julien-f/master
Initial session support.
2013-01-04 02:39:12 -08:00
Julien Fontanet
b2bfd4e411 Initial session support. 2013-01-04 11:37:15 +01:00
Olivier Lambert
17c2815bf2 Merge pull request #2 from julien-f/master
Various updates.
2013-01-03 02:29:22 -08:00
Julien Fontanet
91f38af97e Logging system based on Monolog. 2013-01-03 11:13:38 +01:00
Julien Fontanet
1b6ae84a8a License uniformization + COPYING file. 2013-01-03 11:13:09 +01:00
Olivier Lambert
d383aa86a3 better colors on progress bar 2013-01-02 15:03:00 +01:00
Olivier Lambert
e9dde6f963 normal colors on progress bar 2013-01-02 14:45:15 +01:00
Olivier Lambert
f1d4275e52 search bar icon + server memory bar skecthed 2013-01-02 14:38:26 +01:00
Olivier Lambert
03f0ab50c0 Merge pull request #1 from julien-f/master
Only “www/” should be publicly accessible.
2013-01-02 03:09:41 -08:00
Julien Fontanet
615c2e530d Only “www” is publicly accessible. 2013-01-02 12:04:10 +01:00
Olivier Lambert
aa3e2962cb trivial fix on index 2013-01-02 12:02:58 +01:00
Olivier Lambert
19b460f1e3 refactoring with Gallic template system 2012-12-31 13:37:03 +01:00
Olivier Lambert
7a174aded6 add dependencies 2012-12-31 10:07:17 +01:00
Olivier Lambert
2066b5f7b0 delete old page 2012-12-27 16:52:19 +01:00
Olivier Lambert
456734a4cd more sketches 2012-12-27 16:51:38 +01:00
Olivier Lambert
d967bb690c blinking bell for notifications 2012-12-26 18:31:50 +01:00
Olivier Lambert
b8d3f8f7c1 minor fixes + favicon 2012-12-26 18:09:46 +01:00
Olivier Lambert
f8dabca6ca starting dev folder and add graphics 2012-12-26 18:02:11 +01:00
Olivier Lambert
1034d284a8 less text and tooltip 2012-12-26 14:47:53 +01:00
Olivier Lambert
d60b3c5652 fluid layout done 2012-12-26 14:01:59 +01:00
Olivier Lambert
38a2fa9cd1 clean up and modified style 2012-12-26 13:53:49 +01:00
Olivier Lambert
1b83a15b25 welcome page 2012-12-25 21:39:22 +01:00
Olivier Lambert
019f4a4beb new white theme with icons 2012-12-25 17:12:40 +01:00
Olivier Lambert
5ac8bf7b9b add search and register UI 2012-12-22 14:00:11 +01:00
Olivier Lambert
ac4235126f first draft with boostrap 2012-12-22 13:31:50 +01:00
Olivier Lambert
029fa5e724 first src arch 2012-12-21 15:58:20 +01:00
Olivier Lambert
c4748250c9 Initial commit 2012-12-21 06:38:39 -08:00
630 changed files with 108382 additions and 9840 deletions

View File

@@ -11,7 +11,7 @@ root = true
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespaces = true
trim_trailing_whitespace = true
# CoffeeScript
#
@@ -28,12 +28,12 @@ indent_style = space
# Package.json
#
# This indentation style is the one used by npm.
[/package.json]
[package.json]
indent_size = 2
indent_style = space
# Jade
[*.jade]
# Pug (Jade)
[*.{jade,pug}]
indent_size = 2
indent_style = space
@@ -41,7 +41,7 @@ indent_style = space
#
# Two spaces seems to be the standard most common style, at least in
# Node.js (http://nodeguide.com/style.html#tabs-vs-spaces).
[*.js]
[*.{js,jsx,ts,tsx}]
indent_size = 2
indent_style = space

18
.eslintrc.js Normal file
View File

@@ -0,0 +1,18 @@
module.exports = {
extends: ['standard', 'standard-jsx'],
globals: {
__DEV__: true,
$Diff: true,
$Exact: true,
$Keys: true,
$Shape: true,
},
parser: 'babel-eslint',
rules: {
'comma-dangle': ['error', 'always-multiline'],
'no-var': 'error',
'node/no-extraneous-import': 'error',
'node/no-extraneous-require': 'error',
'prefer-const': 'error',
},
}

15
.flowconfig Normal file
View File

@@ -0,0 +1,15 @@
[ignore]
<PROJECT_ROOT>/node_modules/.*
[include]
[libs]
[lints]
[options]
esproposal.decorators=ignore
include_warnings=true
module.use_strict=true
[strict]

31
.gitignore vendored
View File

@@ -1,11 +1,28 @@
/.nyc_output/
/dist/
/coverage/
/node_modules/
/src/api/index.js
/src/xapi/mixins/index.js
/src/xo-mixins/index.js
/lerna-debug.log
/lerna-debug.log.*
/@xen-orchestra/*/dist/
/@xen-orchestra/*/node_modules/
/packages/*/dist/
/packages/*/node_modules/
/packages/xen-api/plot.dat
/packages/xo-server/.xo-server.*
/packages/xo-server/src/api/index.js
/packages/xo-server/src/xapi/mixins/index.js
/packages/xo-server/src/xo-mixins/index.js
/packages/xo-server-auth-ldap/ldap.cache.conf
/packages/xo-web/src/common/intl/locales/index.js
/packages/xo-web/src/common/themes/index.js
npm-debug.log
npm-debug.log.*
.xo-server.*
pnpm-debug.log
pnpm-debug.log.*
yarn-error.log
yarn-error.log.*

4
.prettierrc.js Normal file
View File

@@ -0,0 +1,4 @@
module.exports = {
semi: false,
singleQuote: true,
}

View File

@@ -1,9 +1,16 @@
language: node_js
node_js:
- stable
- 8
- 6
- 4
# Use containers.
# http://docs.travis-ci.com/user/workers/container-based-infrastructure/
sudo: false
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"
cache:
yarn: true

View File

@@ -0,0 +1,47 @@
'use strict'
const PLUGINS_RE = /^(?:@babel\/plugin-.+|babel-plugin-lodash)$/
const PRESETS_RE = /^@babel\/preset-.+$/
const NODE_ENV = process.env.NODE_ENV || 'development'
const __PROD__ = NODE_ENV === 'production'
const __TEST__ = NODE_ENV === 'test'
module.exports = function (pkg, plugins, presets) {
plugins === undefined && (plugins = {})
presets === undefined && (presets = {})
presets['@babel/preset-env'] = {
debug: !__TEST__,
loose: true,
shippedProposals: true,
targets: __PROD__
? (() => {
let node = (pkg.engines || {}).node
if (node !== undefined) {
const trimChars = '^=>~'
while (trimChars.includes(node[0])) {
node = node.slice(1)
}
return { node: node }
}
})()
: { browsers: '', node: 'current' },
useBuiltIns: '@babel/polyfill' in (pkg.dependencies || {}) && 'usage',
}
Object.keys(pkg.devDependencies || {}).forEach(name => {
if (!(name in presets) && PLUGINS_RE.test(name)) {
plugins[name] = {}
} else if (!(name in presets) && PRESETS_RE.test(name)) {
presets[name] = {}
}
})
return {
comments: !__PROD__,
ignore: __TEST__ ? undefined : [/\.spec\.js$/],
plugins: Object.keys(plugins).map(plugin => [plugin, plugins[plugin]]),
presets: Object.keys(presets).map(preset => [preset, presets[preset]]),
}
}

View File

@@ -0,0 +1,11 @@
{
"private": true,
"name": "@xen-orchestra/babel-config",
"version": "0.0.0",
"homepage": "https://github.com/vatesfr/xen-orchestra/tree/master/packages/@xen-orchestra/babel-config",
"bugs": "https://github.com/vatesfr/xen-orchestra/issues",
"repository": {
"type": "git",
"url": "https://github.com/vatesfr/xen-orchestra.git"
}
}

View File

@@ -0,0 +1,3 @@
module.exports = require('../../@xen-orchestra/babel-config')(
require('./package.json')
)

View File

@@ -0,0 +1,24 @@
/benchmark/
/benchmarks/
*.bench.js
*.bench.js.map
/examples/
example.js
example.js.map
*.example.js
*.example.js.map
/fixture/
/fixtures/
*.fixture.js
*.fixture.js.map
*.fixtures.js
*.fixtures.js.map
/test/
/tests/
*.spec.js
*.spec.js.map
__snapshots__/

View File

@@ -0,0 +1,145 @@
# @xen-orchestra/cron [![Build Status](https://travis-ci.org/vatesfr/xen-orchestra.png?branch=master)](https://travis-ci.org/vatesfr/xen-orchestra)
> Focused, well maintained, cron parser/scheduler
## Install
Installation of the [npm package](https://npmjs.org/package/@xen-orchestra/cron):
```
> npm install --save @xen-orchestra/cron
```
### Pattern syntax
```
<minute> <hour> <day of month> <month> <day of week>
```
Each entry can be:
- a single value
- a range (`0-23` or `*/2`)
- a list of values/ranges (`1,8-12`)
A wildcard (`*`) can be used as a shortcut for the whole range
(`first-last`).
Step values can be used in conjunctions with ranges. For instance,
`1-7/2` is the same as `1,3,5,7`.
| Field | Allowed values |
|------------------|----------------|
| minute | 0-59 |
| hour | 0-23 |
| day of the month | 1-31 or 3-letter names (`jan`, `feb`, …) |
| month | 0-11 |
| day of week | 0-7 (0 and 7 both mean Sunday) or 3-letter names (`mon`, `tue`, …) |
> Note: the month range is 0-11 to be compatible with
> [cron](https://github.com/kelektiv/node-cron), it does not appear to
> be very standard though.
### API
`createSchedule(pattern: string, zone: string = 'utc'): Schedule`
> Create a new schedule.
- `pattern`: the pattern to use, see [the syntax](#pattern-syntax)
- `zone`: the timezone to use, use `'local'` for the local timezone
```js
import { createSchedule } from '@xen-orchestra/cron'
const schedule = createSchedule('0 0 * * sun', 'America/New_York')
```
`Schedule#createJob(fn: Function): Job`
> Create a new job from this schedule.
- `fn`: function to execute, if it returns a promise, it will be
awaited before scheduling the next run.
```js
const job = schedule.createJob(() => {
console.log(new Date())
})
```
`Schedule#next(n: number): Array<Date>`
> Returns the next dates matching this schedule.
- `n`: number of dates to return
```js
schedule.next(2)
// [ 2018-02-11T05:00:00.000Z, 2018-02-18T05:00:00.000Z ]
```
`Schedule#startJob(fn: Function): () => void`
> Start a new job from this schedule and return a function to stop it.
- `fn`: function to execute, if it returns a promise, it will be
awaited before scheduling the next run.
```js
const stopJob = schedule.startJob(() => {
console.log(new Date())
})
stopJob()
```
`Job#start(): void`
> Start this job.
```js
job.start()
```
`Job#stop(): void`
> Stop this job.
```js
job.stop()
```
## Development
```
# Install dependencies
> yarn
# Run the tests
> yarn test
# Continuously compile
> yarn dev
# Continuously run the tests
> yarn dev-test
# Build for production (automatically called by npm install)
> yarn build
```
## Contributions
Contributions are *very* welcomed, either on the documentation or on
the code.
You may:
- report any [issue](https://github.com/vatesfr/xen-orchestra/issues)
you've encountered;
- fork and create a pull request.
## License
ISC © [Vates SAS](https://vates.fr)

View File

@@ -0,0 +1,59 @@
{
"name": "@xen-orchestra/cron",
"version": "1.0.2",
"license": "ISC",
"description": "Focused, well maintained, cron parser/scheduler",
"keywords": [
"cron",
"cronjob",
"crontab",
"job",
"parser",
"pattern",
"schedule",
"scheduling",
"task"
],
"homepage": "https://github.com/vatesfr/xen-orchestra/tree/master/packages/@xen-orchestra/cron",
"bugs": "https://github.com/vatesfr/xen-orchestra/issues",
"repository": {
"type": "git",
"url": "https://github.com/vatesfr/xen-orchestra.git"
},
"author": {
"name": "Julien Fontanet",
"email": "julien.fontanet@isonoe.net"
},
"preferGlobal": false,
"main": "dist/",
"bin": {},
"files": [
"dist/"
],
"browserslist": [
">2%"
],
"engines": {
"node": ">=6"
},
"dependencies": {
"lodash": "^4.17.4",
"moment-timezone": "^0.5.14"
},
"devDependencies": {
"@babel/cli": "7.0.0-beta.40",
"@babel/core": "7.0.0-beta.40",
"@babel/preset-env": "7.0.0-beta.40",
"@babel/preset-flow": "7.0.0-beta.40",
"cross-env": "^5.1.3",
"rimraf": "^2.6.2"
},
"scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"clean": "rimraf dist/",
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
"prebuild": "yarn run clean",
"predev": "yarn run clean",
"prepublishOnly": "yarn run build"
}
}

View File

@@ -0,0 +1,76 @@
import moment from 'moment-timezone'
import next from './next'
import parse from './parse'
const MAX_DELAY = 2 ** 31 - 1
class Job {
constructor (schedule, fn) {
const wrapper = () => {
const result = fn()
let then
if (result != null && typeof (then = result.then) === 'function') {
then.call(result, scheduleNext, scheduleNext)
} else {
scheduleNext()
}
}
const scheduleNext = () => {
const delay = schedule._nextDelay()
this._timeout =
delay < MAX_DELAY
? setTimeout(wrapper, delay)
: setTimeout(scheduleNext, MAX_DELAY)
}
this._scheduleNext = scheduleNext
this._timeout = undefined
}
start () {
this.stop()
this._scheduleNext()
}
stop () {
clearTimeout(this._timeout)
}
}
class Schedule {
constructor (pattern, zone = 'utc') {
this._schedule = parse(pattern)
this._createDate =
zone.toLowerCase() === 'utc'
? moment.utc
: zone === 'local' ? moment : () => moment.tz(zone)
}
createJob (fn) {
return new Job(this, fn)
}
next (n) {
const dates = new Array(n)
const schedule = this._schedule
let date = this._createDate()
for (let i = 0; i < n; ++i) {
dates[i] = (date = next(schedule, date)).toDate()
}
return dates
}
_nextDelay () {
const now = this._createDate()
return next(this._schedule, now) - now
}
startJob (fn) {
const job = this.createJob(fn)
job.start()
return job.stop.bind(job)
}
}
export const createSchedule = (...args) => new Schedule(...args)

View File

@@ -0,0 +1,89 @@
import moment from 'moment-timezone'
import sortedIndex from 'lodash/sortedIndex'
const NEXT_MAPPING = {
month: { year: 1 },
date: { month: 1 },
day: { week: 1 },
hour: { day: 1 },
minute: { hour: 1 },
}
const getFirst = values => (values !== undefined ? values[0] : 0)
const setFirstAvailable = (date, unit, values) => {
if (values === undefined) {
return
}
const curr = date.get(unit)
const next = values[sortedIndex(values, curr) % values.length]
if (curr === next) {
return
}
const timestamp = +date
date.set(unit, next)
if (timestamp > +date) {
date.add(NEXT_MAPPING[unit])
}
return true
}
// returns the next run, after the passed date
export default (schedule, fromDate) => {
let date = moment(fromDate)
.set({
second: 0,
millisecond: 0,
})
.add({ minute: 1 })
const { minute, hour, dayOfMonth, month, dayOfWeek } = schedule
setFirstAvailable(date, 'minute', minute)
if (setFirstAvailable(date, 'hour', hour)) {
date.set('minute', getFirst(minute))
}
let loop
let i = 0
do {
loop = false
if (setFirstAvailable(date, 'month', month)) {
date.set({
date: 1,
hour: getFirst(hour),
minute: getFirst(minute),
})
}
let newDate = date.clone()
if (dayOfMonth === undefined) {
if (dayOfWeek !== undefined) {
setFirstAvailable(newDate, 'day', dayOfWeek)
}
} else if (dayOfWeek === undefined) {
setFirstAvailable(newDate, 'date', dayOfMonth)
} else {
const dateDay = newDate.clone()
setFirstAvailable(dateDay, 'date', dayOfMonth)
setFirstAvailable(newDate, 'day', dayOfWeek)
newDate = moment.min(dateDay, newDate)
}
if (+date !== +newDate) {
loop = date.month() !== newDate.month()
date = newDate.set({
hour: getFirst(hour),
minute: getFirst(minute),
})
}
} while (loop && ++i < 5)
if (loop) {
throw new Error('no solutions found for this schedule')
}
return date
}

View File

@@ -0,0 +1,44 @@
/* eslint-env jest */
import mapValues from 'lodash/mapValues'
import moment from 'moment-timezone'
import next from './next'
import parse from './parse'
const N = (pattern, fromDate = '2018-04-09T06:25') => {
const iso = next(parse(pattern), moment.utc(fromDate)).toISOString()
return iso.slice(0, iso.lastIndexOf(':'))
}
describe('next()', () => {
mapValues(
{
minutely: ['* * * * *', '2018-04-09T06:26'],
hourly: ['@hourly', '2018-04-09T07:00'],
daily: ['@daily', '2018-04-10T00:00'],
monthly: ['@monthly', '2018-05-01T00:00'],
yearly: ['@yearly', '2019-01-01T00:00'],
weekly: ['@weekly', '2018-04-15T00:00'],
},
([pattern, result], title) =>
it(title, () => {
expect(N(pattern)).toBe(result)
})
)
it('select first between month-day and week-day', () => {
expect(N('* * 10 * wen')).toBe('2018-04-10T00:00')
expect(N('* * 12 * wen')).toBe('2018-04-11T00:00')
})
it('select the last available day of a month', () => {
expect(N('* * 29 feb *')).toBe('2020-02-29T00:00')
})
it('fails when no solutions has been found', () => {
expect(() => N('0 0 30 feb *')).toThrow(
'no solutions found for this schedule'
)
})
})

View File

@@ -0,0 +1,193 @@
const compareNumbers = (a, b) => a - b
const createParser = ({ fields: [...fields], presets: { ...presets } }) => {
const m = fields.length
for (let j = 0; j < m; ++j) {
const field = fields[j]
let { aliases } = field
if (aliases !== undefined) {
let symbols = aliases
if (Array.isArray(aliases)) {
aliases = {}
const [start] = field.range
symbols.forEach((alias, i) => {
aliases[alias] = start + i
})
} else {
symbols = Object.keys(aliases)
}
fields[j] = {
...field,
aliases,
aliasesRegExp: new RegExp(symbols.join('|'), 'y'),
}
}
}
let field, i, n, pattern, schedule, values
const isDigit = c => c >= '0' && c <= '9'
const match = c => pattern[i] === c && (++i, true)
const consumeWhitespaces = () => {
let c
while ((c = pattern[i]) === ' ' || c === '\t') {
++i
}
}
const parseInteger = () => {
let c
const digits = []
while (isDigit((c = pattern[i]))) {
++i
digits.push(c)
}
if (digits.length === 0) {
throw new SyntaxError(`${field.name}: missing integer at character ${i}`)
}
return Number.parseInt(digits.join(''), 10)
}
const parseValue = () => {
let value
const { aliasesRegExp } = field
if (aliasesRegExp === undefined || isDigit(pattern[i])) {
value = parseInteger()
const { post } = field
if (post !== undefined) {
value = post(value)
}
} else {
aliasesRegExp.lastIndex = i
const matches = aliasesRegExp.exec(pattern)
if (matches === null) {
throw new SyntaxError(
`${field.name}: missing alias or integer at character ${i}`
)
}
const [alias] = matches
i += alias.length
value = field.aliases[alias]
}
const { range } = field
if (value < range[0] || value > range[1]) {
throw new SyntaxError(
`${field.name}: ${value} is not between ${range[0]} and ${range[1]}`
)
}
return value
}
const parseRange = () => {
let end, start, step
if (match('*')) {
if (!match('/')) {
return
}
;[start, end] = field.range
step = parseInteger()
} else {
start = parseValue()
if (!match('-')) {
values.add(start)
return
}
end = parseValue()
step = match('/') ? parseInteger() : 1
}
for (let i = start; i <= end; i += step) {
values.add(i)
}
}
const parseSequence = () => {
do {
parseRange()
} while (match(','))
}
const parse = p => {
{
const schedule = presets[p]
if (schedule !== undefined) {
return typeof schedule === 'string'
? (presets[p] = parse(schedule))
: schedule
}
}
try {
i = 0
n = p.length
pattern = p
schedule = {}
for (let j = 0; j < m; ++j) {
consumeWhitespaces()
field = fields[j]
values = new Set()
parseSequence()
if (values.size !== 0) {
schedule[field.name] = Array.from(values).sort(compareNumbers)
}
}
consumeWhitespaces()
if (i !== n) {
throw new SyntaxError(
`unexpected character at offset ${i}, expected end`
)
}
return schedule
} finally {
field = pattern = schedule = values = undefined
}
}
return parse
}
export default createParser({
fields: [
{
name: 'minute',
range: [0, 59],
},
{
name: 'hour',
range: [0, 23],
},
{
name: 'dayOfMonth',
range: [1, 31],
},
{
aliases: 'jan feb mar apr may jun jul aug sep oct nov dec'.split(' '),
name: 'month',
range: [0, 11],
},
{
aliases: 'mon tue wen thu fri sat sun'.split(' '),
name: 'dayOfWeek',
post: value => (value === 0 ? 7 : value),
range: [1, 7],
},
],
presets: {
'@annually': '0 0 1 jan *',
'@daily': '0 0 * * *',
'@hourly': '0 * * * *',
'@monthly': '0 0 1 * *',
'@weekly': '0 0 * * sun',
'@yearly': '0 0 1 jan *',
},
})

View File

@@ -0,0 +1,49 @@
/* eslint-env jest */
import parse from './parse'
describe('parse()', () => {
it('works', () => {
expect(parse('0 0-10 */10 jan,2,4-11/3 *')).toEqual({
minute: [0],
hour: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
dayOfMonth: [1, 11, 21, 31],
month: [0, 2, 4, 7, 10],
})
})
it('correctly parse months', () => {
expect(parse('* * * 0,11 *')).toEqual({
month: [0, 11],
})
expect(parse('* * * jan,dec *')).toEqual({
month: [0, 11],
})
})
it('correctly parse days', () => {
expect(parse('* * * * mon,sun')).toEqual({
dayOfWeek: [1, 7],
})
})
it('reports missing integer', () => {
expect(() => parse('*/a')).toThrow('minute: missing integer at character 2')
expect(() => parse('*')).toThrow('hour: missing integer at character 1')
})
it('reports invalid aliases', () => {
expect(() => parse('* * * jan-foo *')).toThrow(
'month: missing alias or integer at character 10'
)
})
it('dayOfWeek: 0 and 7 bind to sunday', () => {
expect(parse('* * * * 0')).toEqual({
dayOfWeek: [7],
})
expect(parse('* * * * 7')).toEqual({
dayOfWeek: [7],
})
})
})

1483
CHANGELOG.md Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,3 +1,27 @@
# ALL ISSUES SHOULD BE CREATED IN XO-WEB'S TRACKER!
<!--
Welcome to the issue section of Xen Orchestra!
https://github.com/vatesfr/xo-web/issues
Here you can:
- report an issue
- propose an enhancement
- ask a question
Please, respect this template as much as possible, it helps us sort
the issues :)
-->
### Context
- **XO origin**: the sources / XO Appliance
- **Versions**:
- Node: **FILL HERE**
- xo-web: **FILL HERE**
- xo-server: **FILL HERE**
### Expected behavior
<!-- What you expect to happen -->
### Current behavior
<!-- What is actually happening -->

View File

@@ -1,40 +1,11 @@
# Xen Orchestra Server
# Xen Orchestra [![Chat with us](https://storage.crisp.im/plugins/images/936925df-f37b-4ba8-bab0-70cd2edcb0be/badge.svg)](https://go.crisp.im/chat/embed/?website_id=-JzqzzwddSV7bKGtEyAQ) [![Build Status](https://travis-ci.org/vatesfr/xen-orchestra.png?branch=master)](https://travis-ci.org/vatesfr/xen-orchestra)
![](http://i.imgur.com/HVFMrTk.png)
XO-Server is part of [Xen Orchestra](https://github.com/vatesfr/xo), a web interface for XenServer or XAPI enabled hosts.
It contains all the logic of XO and handles:
- connections to all XAPI servers/pools;
- a cache system to provide the best response time possible;
- users authentication and authorizations (work in progress);
- a JSON-RPC based interface for XO clients (i.e. [XO-Web](https://github.com/vatesfr/xo-web)).
[![Build Status](https://travis-ci.org/vatesfr/xo-server.svg?branch=next-release)](https://travis-ci.org/vatesfr/xo-server)
[![Dependency Status](https://david-dm.org/vatesfr/xo-server.svg?theme=shields.io)](https://david-dm.org/vatesfr/xo-server)
[![devDependency Status](https://david-dm.org/vatesfr/xo-server/dev-status.svg?theme=shields.io)](https://david-dm.org/vatesfr/xo-server#info=devDependencies)
___
![](http://i.imgur.com/tRffA5y.png)
## Installation
Manual install procedure is [available here](https://xen-orchestra.com/docs/from_the_sources.html).
XOA or manual install procedure is [available here](https://xen-orchestra.com/docs/installation.html)
## Compilation
## License
Production build:
```
$ npm run build
```
Development build:
```
$ npm run dev
```
## How to report a bug?
All bug reports should go into the [bugtracker of xo-web](https://github.com/vatesfr/xo-web/issues).
AGPL3 © [Vates SAS](http://vates.fr)

View File

@@ -1,40 +0,0 @@
// Vendor config: DO NOT TOUCH!
//
// See sample.config.yaml to override.
{
"http": {
"listen": [
{
"port": 80
}
],
"mounts": {},
// Ciphers to use.
//
// These are the default ciphers in Node 4.2.6, we are setting
// them explicitly for older Node versions.
"ciphers": "ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!SRP:!CAMELLIA",
// Tell Node to respect the cipher order.
"honorCipherOrder": true,
// Specify to use at least TLSv1.1.
// See: https://github.com/certsimple/minimum-tls-version
"secureOptions": 117440512
},
"datadir": "/var/lib/xo-server/data",
// Should users be created on first sign in?
//
// Necessary for external authentication providers.
"createUserOnFirstSignin": true,
// Whether API logs should contains the full request/response on
// errors.
//
// This is disabled by default for performance (lots of data) and
// security concerns (avoiding sensitive data in the logs) but can
// be turned for investigation by the administrator.
"verboseApiLogsOnErrors": false
}

View File

@@ -1,70 +0,0 @@
'use strict'
// ===================================================================
var gulp = require('gulp')
var babel = require('gulp-babel')
var coffee = require('gulp-coffee')
var plumber = require('gulp-plumber')
var rimraf = require('rimraf')
var sourceMaps = require('gulp-sourcemaps')
var watch = require('gulp-watch')
var join = require('path').join
// ===================================================================
var SRC_DIR = join(__dirname, 'src')
var DIST_DIR = join(__dirname, 'dist')
var PRODUCTION = process.argv.indexOf('--production') !== -1
// ===================================================================
function src (patterns) {
return PRODUCTION
? gulp.src(patterns, {
base: SRC_DIR,
cwd: SRC_DIR
})
: watch(patterns, {
base: SRC_DIR,
cwd: SRC_DIR,
ignoreInitial: false,
verbose: true
})
.pipe(plumber())
}
// ===================================================================
gulp.task(function clean (cb) {
rimraf(DIST_DIR, cb)
})
gulp.task(function buildCoffee () {
return src('**/*.coffee')
.pipe(sourceMaps.init())
.pipe(coffee({
bare: true
}))
// Necessary to correctly compile generators.
.pipe(babel())
.pipe(sourceMaps.write('.'))
.pipe(gulp.dest(DIST_DIR))
})
gulp.task(function buildEs6 () {
return src([ '**/*.js', '!*.spec.js' ])
.pipe(sourceMaps.init())
.pipe(babel())
.pipe(sourceMaps.write('.'))
.pipe(gulp.dest(DIST_DIR))
})
// ===================================================================
gulp.task('build', gulp.series('clean', gulp.parallel('buildCoffee', 'buildEs6')))

View File

@@ -1,183 +1,65 @@
{
"name": "xo-server",
"version": "5.11.0",
"license": "AGPL-3.0",
"description": "Server part of Xen-Orchestra",
"keywords": [
"xen",
"orchestra",
"xen-orchestra",
"server"
],
"homepage": "http://github.com/vatesfr/xo-server/",
"bugs": {
"url": "https://github.com/vatesfr/xo-web/issues"
},
"repository": {
"type": "git",
"url": "git://github.com/vatesfr/xo-server.git"
},
"author": "Julien Fontanet <julien.fontanet@vates.fr>",
"preferGlobal": true,
"files": [
"better-stacks.js",
"bin/",
"dist/",
"config.json",
"index.js",
"signin.pug"
],
"directories": {
"bin": "bin"
"devDependencies": {
"@babel/register": "^7.0.0-beta.40",
"babel-7-jest": "^21.3.2",
"babel-eslint": "^8.1.2",
"benchmark": "^2.1.4",
"eslint": "^4.14.0",
"eslint-config-standard": "^11.0.0-beta.0",
"eslint-config-standard-jsx": "^4.0.2",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-node": "^6.0.0",
"eslint-plugin-promise": "^3.6.0",
"eslint-plugin-react": "^7.6.1",
"eslint-plugin-standard": "^3.0.1",
"exec-promise": "^0.7.0",
"flow-bin": "^0.66.0",
"globby": "^8.0.0",
"husky": "^0.14.3",
"jest": "^22.0.4",
"lodash": "^4.17.4",
"prettier": "^1.10.2",
"promise-toolbox": "^0.9.5",
"sorted-object": "^2.0.1"
},
"engines": {
"node": ">=4.5"
},
"dependencies": {
"@marsaud/smb2-promise": "^0.2.1",
"@nraynaud/struct-fu": "^1.0.1",
"ajv": "^5.2.2",
"app-conf": "^0.5.0",
"archiver": "^2.0.0",
"arp-a": "^0.5.1",
"babel-runtime": "^6.23.0",
"base64url": "^2.0.0",
"bind-property-descriptor": "^1.0.0",
"blocked": "^1.2.1",
"bluebird": "^3.5.0",
"body-parser": "^1.17.1",
"connect-flash": "^0.1.1",
"cookie": "^0.3.1",
"cookie-parser": "^1.4.3",
"cron": "^1.2.1",
"d3-time-format": "^2.0.5",
"debug": "^2.6.7",
"decorator-synchronized": "^0.3.0",
"deptree": "^1.0.0",
"escape-string-regexp": "^1.0.5",
"event-to-promise": "^0.8.0",
"exec-promise": "^0.7.0",
"execa": "^0.7.0",
"express": "^4.15.2",
"express-session": "^1.15.4",
"fatfs": "^0.10.4",
"from2": "^2.3.0",
"fs-extra": "^4.0.0",
"golike-defer": "^0.3.0",
"hashy": "^0.6.2",
"helmet": "^3.8.0",
"highland": "^2.11.1",
"http-proxy": "^1.16.2",
"http-request-plus": "^0.4.0",
"http-server-plus": "^0.8.0",
"human-format": "^0.8.0",
"is-redirect": "^1.0.0",
"js-yaml": "^3.9.0",
"json-rpc-peer": "^0.14.0",
"json5": "^0.5.1",
"julien-f-source-map-support": "0.0.0",
"julien-f-unzip": "^0.2.1",
"kindof": "^2.0.0",
"level": "^1.6.0",
"level-party": "^3.0.4",
"level-sublevel": "^6.6.1",
"leveldown": "^1.6.0",
"lodash": "^4.17.4",
"make-error": "^1",
"micromatch": "^3.0.4",
"minimist": "^1.2.0",
"moment-timezone": "^0.5.13",
"ms": "^2.0.0",
"multikey-hash": "^1.0.4",
"ndjson": "^1.5.0",
"parse-pairs": "^0.2.2",
"partial-stream": "0.0.0",
"passport": "^0.3.2",
"passport-local": "^1.0.0",
"pretty-format": "^20.0.1",
"promise-toolbox": "^0.9.5",
"proxy-agent": "^2.1.0",
"pug": "^2.0.0-rc.2",
"pw": "^0.0.4",
"redis": "^2.7.1",
"schema-inspector": "^1.6.8",
"semver": "^5.4.1",
"serve-static": "^1.12.3",
"split-lines": "^1.1.0",
"stack-chain": "^1.3.7",
"tar-stream": "^1.5.4",
"through2": "^2.0.3",
"tmp": "^0.0.31",
"uuid": "^3.0.1",
"ws": "^3.0.0",
"xen-api": "^0.14.0",
"xml2js": "~0.4.17",
"xo-acl-resolver": "^0.2.3",
"xo-collection": "^0.4.1",
"xo-common": "^0.1.1",
"xo-remote-parser": "^0.3",
"xo-vmdk-to-vhd": "0.0.12"
},
"devDependencies": {
"babel-eslint": "^7.2.3",
"babel-plugin-lodash": "^3.2.11",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.6.0",
"babel-preset-stage-0": "^6.24.1",
"dependency-check": "^2.8.0",
"gulp": "git://github.com/gulpjs/gulp#4.0",
"gulp-babel": "^6",
"gulp-coffee": "^2.3.4",
"gulp-plumber": "^1.1.0",
"gulp-sourcemaps": "^2.6.0",
"gulp-watch": "^4.3.11",
"husky": "^0.14.3",
"index-modules": "^0.3.0",
"jest": "^20.0.1",
"rimraf": "^2.6.1",
"standard": "^10.0.2"
},
"scripts": {
"build": "gulp build --production",
"commitmsg": "npm test",
"dev": "gulp build",
"dev-test": "jest --bail --watch",
"posttest": "standard && dependency-check -i constant-stream ./package.json",
"prebuild": "index-modules src/api src/xapi/mixins src/xo-mixins",
"predev": "npm run prebuild",
"prepublish": "npm run build",
"start": "node bin/xo-server",
"test": "jest"
},
"babel": {
"plugins": [
"lodash",
"transform-decorators-legacy",
"transform-runtime"
],
"presets": [
[
"env",
{
"targets": {
"node": 4
}
}
],
"stage-0"
]
"yarn": "^1.2.1"
},
"jest": {
"roots": [
"<rootDir>/src"
"collectCoverage": true,
"projects": [
"<rootDir>",
"<rootDir>/packages/xo-web"
],
"testRegex": "\\.spec\\.js$"
"testEnvironment": "node",
"testPathIgnorePatterns": [
"/dist/",
"/xo-vmdk-to-vhd/",
"/xo-web/"
],
"testRegex": "\\.spec\\.js$",
"transform": {
"/@xen-orchestra/cron/.+\\.jsx?$": "babel-7-jest",
"/packages/complex-matcher/.+\\.jsx?$": "babel-7-jest",
"/packages/value-matcher/.+\\.jsx?$": "babel-7-jest",
"/packages/xo-cli/.+\\.jsx?$": "babel-7-jest",
"\\.jsx?$": "babel-jest"
}
},
"standard": {
"ignore": [
"dist"
],
"parser": "babel-eslint"
}
"private": true,
"scripts": {
"build": "scripts/run-script --parallel build",
"clean": "scripts/run-script --parallel clean",
"dev": "scripts/run-script --parallel dev",
"dev-test": "jest --bail --watch",
"posttest": "scripts/run-script test",
"precommit": "scripts/lint-staged",
"prepare": "scripts/run-script prepare",
"pretest": "eslint --ignore-path .gitignore .",
"test": "jest"
},
"workspaces": [
"@xen-orchestra/*",
"packages/*"
]
}

View File

@@ -0,0 +1,3 @@
module.exports = require('../../@xen-orchestra/babel-config')(
require('./package.json')
)

View File

@@ -0,0 +1,24 @@
/benchmark/
/benchmarks/
*.bench.js
*.bench.js.map
/examples/
example.js
example.js.map
*.example.js
*.example.js.map
/fixture/
/fixtures/
*.fixture.js
*.fixture.js.map
*.fixtures.js
*.fixtures.js.map
/test/
/tests/
*.spec.js
*.spec.js.map
__snapshots__/

View File

@@ -0,0 +1,66 @@
# complex-matcher [![Build Status](https://travis-ci.org/vatesfr/xen-orchestra.png?branch=master)](https://travis-ci.org/vatesfr/xen-orchestra)
> ${pkg.description}
## Install
Installation of the [npm package](https://npmjs.org/package/complex-matcher):
```
> npm install --save complex-matcher
```
## Usage
```js
import * as CM from 'complex-matcher'
const characters = [
{ name: 'Catwoman', costumeColor: 'black' },
{ name: 'Superman', costumeColor: 'blue', hasCape: true },
{ name: 'Wonder Woman', costumeColor: 'blue' },
]
const predicate = CM.parse('costumeColor:blue hasCape?').createPredicate()
characters.filter(predicate)
// [
// { name: 'Superman', costumeColor: 'blue', hasCape: true },
// ]
new CM.String('foo').createPredicate()
```
## Development
```
# Install dependencies
> yarn
# Run the tests
> yarn test
# Continuously compile
> yarn dev
# Continuously run the tests
> yarn dev-test
# Build for production (automatically called by npm install)
> yarn build
```
## Contributions
Contributions are *very* welcomed, either on the documentation or on
the code.
You may:
- report any [issue](https://github.com/vatesfr/xen-orchestra/issues)
you've encountered;
- fork and create a pull request.
## License
ISC © [Vates SAS](https://vates.fr)

View File

@@ -0,0 +1,48 @@
{
"name": "complex-matcher",
"version": "0.3.0",
"license": "ISC",
"description": "",
"keywords": [],
"homepage": "https://github.com/vatesfr/xen-orchestra/tree/master/packages/complex-matcher",
"bugs": "https://github.com/vatesfr/xen-orchestra/issues",
"repository": {
"type": "git",
"url": "https://github.com/vatesfr/xen-orchestra.git"
},
"author": {
"name": "Julien Fontanet",
"email": "julien.fontanet@isonoe.net"
},
"preferGlobal": false,
"main": "dist/",
"bin": {},
"files": [
"dist/"
],
"browserslist": [
">2%"
],
"engines": {
"node": ">=4"
},
"dependencies": {
"lodash": "^4.17.4"
},
"devDependencies": {
"@babel/cli": "7.0.0-beta.40",
"@babel/core": "7.0.0-beta.40",
"@babel/preset-env": "7.0.0-beta.40",
"babel-plugin-lodash": "^3.3.2",
"cross-env": "^5.1.1",
"rimraf": "^2.6.2"
},
"scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"clean": "rimraf dist/",
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
"prebuild": "yarn run clean",
"predev": "yarn run prebuild",
"prepublishOnly": "yarn run build"
}
}

View File

@@ -0,0 +1,12 @@
import { parse } from './'
import { ast, pattern } from './index.fixtures'
export default ({ benchmark }) => {
benchmark('parse', () => {
parse(pattern)
})
benchmark('toString', () => {
ast.toString()
})
}

View File

@@ -0,0 +1,15 @@
import * as CM from './'
export const pattern =
'foo !"\\\\ \\"" name:|(wonderwoman batman) hasCape? age:32'
export const ast = new CM.And([
new CM.String('foo'),
new CM.Not(new CM.String('\\ "')),
new CM.Property(
'name',
new CM.Or([new CM.String('wonderwoman'), new CM.String('batman')])
),
new CM.TruthyProperty('hasCape'),
new CM.Property('age', new CM.Number(32)),
])

View File

@@ -0,0 +1,531 @@
import { isPlainObject, some } from 'lodash'
// ===================================================================
const RAW_STRING_CHARS = (() => {
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 (!(string[i] in RAW_STRING_CHARS)) {
return false
}
}
return true
}
// -------------------------------------------------------------------
class Node {
createPredicate () {
return value => this.match(value)
}
}
export class Null extends Node {
match () {
return true
}
toString () {
return ''
}
}
const formatTerms = terms => terms.map(term => term.toString(true)).join(' ')
export class And extends Node {
constructor (children) {
super()
if (children.length === 1) {
return children[0]
}
this.children = children
}
match (value) {
return this.children.every(child => child.match(value))
}
toString (isNested) {
const terms = formatTerms(this.children)
return isNested ? `(${terms})` : terms
}
}
export class Comparison extends Node {
constructor (operator, value) {
super()
this._comparator = Comparison.comparators[operator]
this._operator = operator
this._value = value
}
match (value) {
return typeof value === 'number' && this._comparator(value, this._value)
}
toString () {
return this._operator + String(this._value)
}
}
Comparison.comparators = {
'>': (a, b) => a > b,
'>=': (a, b) => a >= b,
'<': (a, b) => a < b,
'<=': (a, b) => a <= b,
}
export class Or extends Node {
constructor (children) {
super()
if (children.length === 1) {
return children[0]
}
this.children = children
}
match (value) {
return this.children.some(child => child.match(value))
}
toString () {
return `|(${formatTerms(this.children)})`
}
}
export class Not extends Node {
constructor (child) {
super()
this.child = child
}
match (value) {
return !this.child.match(value)
}
toString () {
return '!' + this.child.toString(true)
}
}
export class NumberNode extends Node {
constructor (value) {
super()
this.value = value
// should not be enumerable for the tests
Object.defineProperty(this, 'match', {
value: this.match.bind(this),
})
}
match (value) {
return (
value === this.value ||
(value !== null && typeof value === 'object' && some(value, this.match))
)
}
toString () {
return String(this.value)
}
}
export { NumberNode as Number }
export class Property extends Node {
constructor (name, child) {
super()
this.name = name
this.child = child
}
match (value) {
return value != null && this.child.match(value[this.name])
}
toString () {
return `${formatString(this.name)}:${this.child.toString(true)}`
}
}
const escapeChar = char => '\\' + char
const formatString = value =>
Number.isNaN(+value)
? isRawString(value) ? value : `"${value.replace(/\\|"/g, escapeChar)}"`
: `"${value}"`
export class StringNode extends Node {
constructor (value) {
super()
this.lcValue = value.toLowerCase()
this.value = value
// should not be enumerable for the tests
Object.defineProperty(this, 'match', {
value: this.match.bind(this),
})
}
match (value) {
if (typeof value === 'string') {
return value.toLowerCase().indexOf(this.lcValue) !== -1
}
if (Array.isArray(value) || isPlainObject(value)) {
return some(value, this.match)
}
return false
}
toString () {
return formatString(this.value)
}
}
export { StringNode as String }
export class TruthyProperty extends Node {
constructor (name) {
super()
this.name = name
}
match (value) {
return value != null && !!value[this.name]
}
toString () {
return formatString(this.name) + '?'
}
}
// -------------------------------------------------------------------
// https://gist.github.com/yelouafi/556e5159e869952335e01f6b473c4ec1
class Failure {
constructor (pos, expected) {
this.expected = expected
this.pos = pos
}
get value () {
throw new Error(
`parse error: expected ${this.expected} at position ${this.pos}`
)
}
}
class Success {
constructor (pos, value) {
this.pos = pos
this.value = value
}
}
// -------------------------------------------------------------------
class P {
static alt (...parsers) {
const { length } = parsers
return new P((input, pos, end) => {
for (let i = 0; i < length; ++i) {
const result = parsers[i]._parse(input, pos, end)
if (result instanceof Success) {
return result
}
}
return new Failure(pos, 'alt')
})
}
static grammar (rules) {
const grammar = {}
Object.keys(rules).forEach(k => {
const rule = rules[k]
grammar[k] = rule instanceof P ? rule : P.lazy(rule, grammar)
})
return grammar
}
static lazy (parserCreator, arg) {
const parser = new P((input, pos, end) =>
(parser._parse = parserCreator(arg)._parse)(input, pos, end)
)
return parser
}
static regex (regex) {
regex = new RegExp(regex.source, 'y')
return new P((input, pos) => {
regex.lastIndex = pos
const matches = regex.exec(input)
return matches !== null
? new Success(regex.lastIndex, matches[0])
: new Failure(pos, regex)
})
}
static seq (...parsers) {
const { length } = parsers
return new P((input, pos, end) => {
const values = new Array(length)
for (let i = 0; i < length; ++i) {
const result = parsers[i]._parse(input, pos, end)
if (result instanceof Failure) {
return result
}
pos = result.pos
values[i] = result.value
}
return new Success(pos, values)
})
}
static text (text) {
const { length } = text
return new P(
(input, pos) =>
input.startsWith(text, pos)
? new Success(pos + length, text)
: new Failure(pos, `'${text}'`)
)
}
constructor (parse) {
this._parse = parse
}
map (fn) {
return new P((input, pos, end) => {
const result = this._parse(input, pos, end)
if (result instanceof Success) {
result.value = fn(result.value)
}
return result
})
}
parse (input, pos = 0, end = input.length) {
return this._parse(input, pos, end).value
}
repeat (min = 0, max = Infinity) {
return new P((input, pos, end) => {
const value = []
let result
let i = 0
while (i < min) {
++i
result = this._parse(input, pos, end)
if (result instanceof Failure) {
return result
}
value.push(result.value)
pos = result.pos
}
while (
i < max &&
(result = this._parse(input, pos, end)) instanceof Success
) {
++i
value.push(result.value)
pos = result.pos
}
return new Success(pos, value)
})
}
skip (otherParser) {
return new P((input, pos, end) => {
const result = this._parse(input, pos, end)
if (result instanceof Failure) {
return result
}
const otherResult = otherParser._parse(input, result.pos, end)
if (otherResult instanceof Failure) {
return otherResult
}
result.pos = otherResult.pos
return result
})
}
}
P.eof = new P(
(input, pos, end) =>
pos < end ? new Failure(pos, 'end of input') : new Success(pos)
)
// -------------------------------------------------------------------
const parser = P.grammar({
default: r =>
P.seq(r.ws, r.term.repeat(), P.eof).map(
([, terms]) => (terms.length === 0 ? new Null() : new And(terms))
),
quotedString: new P((input, pos, end) => {
if (input[pos] !== '"') {
return new Failure(pos, '"')
}
++pos
const value = []
let char
while (pos < end && (char = input[pos++]) !== '"') {
if (char === '\\') {
char = input[pos++]
}
value.push(char)
}
return new Success(pos, value.join(''))
}),
rawString: new P((input, pos, end) => {
let value = ''
let c
while (pos < end && RAW_STRING_CHARS[(c = input[pos])]) {
++pos
value += c
}
return value.length === 0
? new Failure(pos, 'a raw string')
: new Success(pos, value)
}),
string: r => P.alt(r.quotedString, r.rawString),
term: r =>
P.alt(
P.seq(P.text('('), r.ws, r.term.repeat(1), P.text(')')).map(
_ => new And(_[2])
),
P.seq(
P.text('|'),
r.ws,
P.text('('),
r.ws,
r.term.repeat(1),
P.text(')')
).map(_ => new Or(_[4])),
P.seq(P.text('!'), r.ws, r.term).map(_ => new Not(_[2])),
P.seq(P.regex(/[<>]=?/), r.rawString).map(([op, val]) => {
val = +val
if (Number.isNaN(val)) {
throw new TypeError('value must be a number')
}
return new Comparison(op, val)
}),
P.seq(r.string, r.ws, P.text(':'), r.ws, r.term).map(
_ => new Property(_[0], _[4])
),
P.seq(r.string, P.text('?')).map(_ => new TruthyProperty(_[0])),
P.alt(
r.quotedString.map(_ => new StringNode(_)),
r.rawString.map(str => {
const asNum = +str
return Number.isNaN(asNum)
? new StringNode(str)
: new NumberNode(asNum)
})
)
).skip(r.ws),
ws: P.regex(/\s*/),
}).default
export const parse = parser.parse.bind(parser)
// -------------------------------------------------------------------
const _getPropertyClauseStrings = ({ child }) => {
if (child instanceof Or) {
const strings = []
child.children.forEach(child => {
if (child instanceof StringNode) {
strings.push(child.value)
}
})
return strings
}
if (child instanceof StringNode) {
return [child.value]
}
return []
}
// Find possible values for property clauses in a and clause.
export const getPropertyClausesStrings = node => {
if (!node) {
return {}
}
if (node instanceof Property) {
return {
[node.name]: _getPropertyClauseStrings(node),
}
}
if (node instanceof And) {
const strings = {}
node.children.forEach(node => {
if (node instanceof 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 setPropertyClause = (node, name, child) => {
const property =
child &&
new Property(
name,
typeof child === 'string' ? new StringNode(child) : child
)
if (node === undefined) {
return property
}
const children = (node instanceof And ? node.children : [node]).filter(
child => !(child instanceof Property && child.name === name)
)
if (property !== undefined) {
children.push(property)
}
return new And(children)
}

View File

@@ -0,0 +1,86 @@
/* eslint-env jest */
import { ast, pattern } from './index.fixtures'
import {
getPropertyClausesStrings,
Null,
NumberNode,
parse,
setPropertyClause,
} from './'
it('getPropertyClausesStrings', () => {
const tmp = getPropertyClausesStrings(parse('foo bar:baz baz:|(foo bar)'))
expect(tmp).toEqual({
bar: ['baz'],
baz: ['foo', 'bar'],
})
})
describe('parse', () => {
it('analyses a string and returns a node/tree', () => {
expect(parse(pattern)).toEqual(ast)
})
it('supports an empty string', () => {
expect(parse('')).toEqual(new Null())
})
it('differentiate between numbers and numbers in strings', () => {
let node
node = parse('32')
expect(node.match(32)).toBe(true)
expect(node.match('32')).toBe(false)
expect(node.toString()).toBe('32')
node = parse('"32"')
expect(node.match(32)).toBe(false)
expect(node.match('32')).toBe(true)
expect(node.toString()).toBe('"32"')
})
})
describe('Number', () => {
it('match a number recursively', () => {
expect(new NumberNode(3).match([{ foo: 3 }])).toBe(true)
})
})
describe('setPropertyClause', () => {
it('creates a node if none passed', () => {
expect(setPropertyClause(undefined, 'foo', 'bar').toString()).toBe(
'foo:bar'
)
})
it('adds a property clause if there was none', () => {
expect(setPropertyClause(parse('baz'), 'foo', 'bar').toString()).toBe(
'baz foo:bar'
)
})
it('replaces the property clause if there was one', () => {
expect(
setPropertyClause(parse('plip foo:baz plop'), 'foo', 'bar').toString()
).toBe('plip plop foo:bar')
expect(
setPropertyClause(parse('foo:|(baz plop)'), 'foo', 'bar').toString()
).toBe('foo:bar')
})
it('removes the property clause if no chid is passed', () => {
expect(
setPropertyClause(parse('foo bar:baz qux'), 'bar', undefined).toString()
).toBe('foo qux')
expect(
setPropertyClause(parse('foo bar:baz qux'), 'baz', undefined).toString()
).toBe('foo bar:baz qux')
})
})
it('toString', () => {
expect(pattern).toBe(ast.toString())
})

View File

@@ -0,0 +1,3 @@
module.exports = require('../../@xen-orchestra/babel-config')(
require('./package.json')
)

View File

@@ -0,0 +1,24 @@
/benchmark/
/benchmarks/
*.bench.js
*.bench.js.map
/examples/
example.js
example.js.map
*.example.js
*.example.js.map
/fixture/
/fixtures/
*.fixture.js
*.fixture.js.map
*.fixtures.js
*.fixtures.js.map
/test/
/tests/
*.spec.js
*.spec.js.map
__snapshots__/

View File

@@ -0,0 +1,66 @@
# value-matcher [![Build Status](https://travis-ci.org/vatefr/xen-orchestra.png?branch=master)](https://travis-ci.org/vatefr/xen-orchestra)
> ${pkg.description}
## Install
Installation of the [npm package](https://npmjs.org/package/value-matcher):
```
> npm install --save value-matcher
```
## Usage
```js
import { createPredicate } from 'value-matcher'
[
{ user: 'sam', age: 65, active: false },
{ user: 'barney', age: 36, active: true },
{ user: 'fred', age: 40, active: false },
].filter(createPredicate({
__or: [
{ user: 'sam' },
{ active: true },
],
}))
// [
// { user: 'sam', age: 65, active: false },
// { user: 'barney', age: 36, active: true },
// ]
```
## Development
```
# Install dependencies
> yarn
# Run the tests
> yarn test
# Continuously compile
> yarn dev
# Continuously run the tests
> yarn dev-test
# Build for production (automatically called by npm install)
> yarn build
```
## Contributions
Contributions are *very* welcomed, either on the documentation or on
the code.
You may:
- report any [issue](https://github.com/vatesfr/xen-orchestra/issues)
you've encountered;
- fork and create a pull request.
## License
ISC © [Vates SAS](https://vates.fr)

View File

@@ -0,0 +1,47 @@
{
"name": "value-matcher",
"version": "0.2.0",
"license": "ISC",
"description": "",
"keywords": [],
"homepage": "https://github.com/vatesfr/xen-orchestra/tree/master/packages/value-matcher",
"bugs": "https://github.com/vatesfr/xen-orchestra/issues",
"repository": {
"type": "git",
"url": "https://github.com/vatesfr/xen-orchestra.git"
},
"author": {
"name": "Julien Fontanet",
"email": "julien.fontanet@isonoe.net"
},
"preferGlobal": false,
"main": "dist/",
"bin": {},
"files": [
"dist/"
],
"browserslist": [
">2%"
],
"engines": {
"node": ">=4"
},
"dependencies": {},
"devDependencies": {
"@babel/cli": "7.0.0-beta.40",
"@babel/core": "7.0.0-beta.40",
"@babel/preset-env": "7.0.0-beta.40",
"@babel/preset-flow": "7.0.0-beta.40",
"cross-env": "^5.1.3",
"rimraf": "^2.6.2"
},
"scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"clean": "rimraf dist/",
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
"prebuild": "yarn run clean",
"predev": "yarn run prebuild",
"prepare": "yarn run build",
"prepublishOnly": "yarn run build"
}
}

View File

@@ -0,0 +1,81 @@
// @flow
/* eslint-disable no-use-before-define */
export type Pattern =
| AndPattern
| OrPattern
| NotPattern
| ObjectPattern
| ArrayPattern
| ValuePattern
/* eslint-enable no-use-before-define */
// all patterns must match
type AndPattern = {| __and: Array<Pattern> |}
// one of the pattern must match
type OrPattern = {| __or: Array<Pattern> |}
// the pattern must not match
type NotPattern = {| __not: Pattern |}
// value is an object with properties matching the patterns
type ObjectPattern = { [string]: Pattern }
// value is an array and each patterns must match a different item
type ArrayPattern = Array<Pattern>
// value equals the pattern
type ValuePattern = boolean | number | string
const match = (pattern: Pattern, value: any) => {
if (Array.isArray(pattern)) {
return (
Array.isArray(value) &&
pattern.every((subpattern, i) =>
// FIXME: subpatterns should match different subvalues
value.some(subvalue => match(subpattern, subvalue))
)
)
}
if (pattern !== null && typeof pattern === 'object') {
const keys = Object.keys(pattern)
const { length } = keys
if (length === 1) {
const [key] = keys
if (key === '__and') {
const andPattern: AndPattern = (pattern: any)
return andPattern.__and.every(subpattern => match(subpattern, value))
}
if (key === '__or') {
const orPattern: OrPattern = (pattern: any)
return orPattern.__or.some(subpattern => match(subpattern, value))
}
if (key === '__not') {
const notPattern: NotPattern = (pattern: any)
return !match(notPattern.__not, value)
}
}
if (value === null || typeof value !== 'object') {
return false
}
const objectPattern: ObjectPattern = (pattern: any)
for (let i = 0; i < length; ++i) {
const key = keys[i]
const subvalue = value[key]
if (subvalue === undefined || !match(objectPattern[key], subvalue)) {
return false
}
}
return true
}
return pattern === value
}
export const createPredicate = (pattern: Pattern) => (value: any) =>
match(pattern, value)

View File

@@ -0,0 +1,24 @@
/benchmark/
/benchmarks/
*.bench.js
*.bench.js.map
/examples/
example.js
example.js.map
*.example.js
*.example.js.map
/fixture/
/fixtures/
*.fixture.js
*.fixture.js.map
*.fixtures.js
*.fixtures.js.map
/test/
/tests/
*.spec.js
*.spec.js.map
__snapshots__/

View File

@@ -0,0 +1,51 @@
# vhd-cli [![Build Status](https://travis-ci.org/vatesfr/xen-orchestra.png?branch=master)](https://travis-ci.org/vatesfr/xen-orchestra)
> ${pkg.description}
## Install
Installation of the [npm package](https://npmjs.org/package/vhd-cli):
```
> npm install --global vhd-cli
```
## Usage
```
> vhd-cli <VHD file>
```
## Development
```
# Install dependencies
> npm install
# Run the tests
> npm test
# Continuously compile
> npm run dev
# Continuously run the tests
> npm run dev-test
# Build for production (automatically called by npm install)
> npm run build
```
## Contributions
Contributions are *very* welcomed, either on the documentation or on
the code.
You may:
- report any [issue](https://github.com/vatesfr/xen-orchestra/issues)
you've encountered;
- fork and create a pull request.
## License
ISC © [Vates SAS](https://vates.fr)

View File

@@ -0,0 +1,67 @@
{
"name": "vhd-cli",
"version": "0.0.0",
"license": "ISC",
"description": "",
"keywords": [],
"homepage": "https://github.com/vatesfr/xen-orchestra/tree/master/packages/vhd-cli",
"bugs": "https://github.com/vatesfr/xen-orchestra/issues",
"repository": {
"type": "git",
"url": "https://github.com/vatesfr/xen-orchestra.git"
},
"author": {
"name": "Julien Fontanet",
"email": "julien.fontanet@isonoe.net"
},
"preferGlobal": false,
"main": "dist/",
"bin": {
"vhd-cli": "dist/index.js"
},
"files": [
"dist/"
],
"engines": {
"node": ">=4"
},
"dependencies": {
"@nraynaud/struct-fu": "^1.0.1",
"@nraynaud/xo-fs": "^0.0.5",
"babel-runtime": "^6.22.0",
"exec-promise": "^0.7.0"
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-plugin-lodash": "^3.3.2",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.5.2",
"babel-preset-stage-3": "^6.24.1",
"cross-env": "^5.1.3",
"rimraf": "^2.6.1"
},
"scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
"prebuild": "rimraf dist/",
"predev": "yarn run prebuild",
"prepublishOnly": "yarn run build"
},
"babel": {
"plugins": [
"lodash",
"transform-runtime"
],
"presets": [
[
"env",
{
"targets": {
"node": 4
}
}
],
"stage-3"
]
}
}

19
packages/vhd-cli/src/index.js Executable file
View File

@@ -0,0 +1,19 @@
#!/usr/bin/env node
import execPromise from 'exec-promise'
import { RemoteHandlerLocal } from '@nraynaud/xo-fs'
import { resolve } from 'path'
import Vhd from './vhd'
execPromise(async args => {
const vhd = new Vhd(
new RemoteHandlerLocal({ url: 'file:///' }),
resolve(args[0])
)
await vhd.readHeaderAndFooter()
console.log(vhd._header)
console.log(vhd._footer)
})

461
packages/vhd-cli/src/vhd.js Normal file
View File

@@ -0,0 +1,461 @@
import assert from 'assert'
import fu from '@nraynaud/struct-fu'
import { dirname } from 'path'
// ===================================================================
//
// Spec:
// https://www.microsoft.com/en-us/download/details.aspx?id=23850
//
// C implementation:
// https://github.com/rubiojr/vhd-util-convert
//
// ===================================================================
/* eslint-disable no-unused-vars */
const HARD_DISK_TYPE_DIFFERENCING = 4
const HARD_DISK_TYPE_DYNAMIC = 3
const HARD_DISK_TYPE_FIXED = 2
const PLATFORM_CODE_NONE = 0
export const SECTOR_SIZE = 512
/* eslint-enable no-unused vars */
// ===================================================================
const fuFooter = fu.struct([
fu.char('cookie', 8), // 0
fu.uint32('features'), // 8
fu.uint32('fileFormatVersion'), // 12
fu.struct('dataOffset', [
fu.uint32('high'), // 16
fu.uint32('low'), // 20
]),
fu.uint32('timestamp'), // 24
fu.char('creatorApplication', 4), // 28
fu.uint32('creatorVersion'), // 32
fu.uint32('creatorHostOs'), // 36
fu.struct('originalSize', [
// At the creation, current size of the hard disk.
fu.uint32('high'), // 40
fu.uint32('low'), // 44
]),
fu.struct('currentSize', [
// Current size of the virtual disk. At the creation: currentSize = originalSize.
fu.uint32('high'), // 48
fu.uint32('low'), // 52
]),
fu.struct('diskGeometry', [
fu.uint16('cylinders'), // 56
fu.uint8('heads'), // 58
fu.uint8('sectorsPerTrackCylinder'), // 59
]),
fu.uint32('diskType'), // 60 Disk type, must be equal to HARD_DISK_TYPE_DYNAMIC/HARD_DISK_TYPE_DIFFERENCING.
fu.uint32('checksum'), // 64
fu.uint8('uuid', 16), // 68
fu.char('saved'), // 84
fu.char('hidden'), // 85
fu.byte('reserved', 426), // 86
])
const FOOTER_SIZE = fuFooter.size
const fuHeader = fu.struct([
fu.char('cookie', 8),
fu.struct('dataOffset', [fu.uint32('high'), fu.uint32('low')]),
fu.struct('tableOffset', [
// Absolute byte offset of the Block Allocation Table.
fu.uint32('high'),
fu.uint32('low'),
]),
fu.uint32('headerVersion'),
fu.uint32('maxTableEntries'), // Max entries in the Block Allocation Table.
fu.uint32('blockSize'), // Block size (without bitmap) in bytes.
fu.uint32('checksum'),
fu.uint8('parentUuid', 16),
fu.uint32('parentTimestamp'),
fu.byte('reserved1', 4),
fu.char16be('parentUnicodeName', 512),
fu.struct(
'parentLocatorEntry',
[
fu.uint32('platformCode'),
fu.uint32('platformDataSpace'),
fu.uint32('platformDataLength'),
fu.uint32('reserved'),
fu.struct('platformDataOffset', [
// Absolute byte offset of the locator data.
fu.uint32('high'),
fu.uint32('low'),
]),
],
8
),
fu.byte('reserved2', 256),
])
const HEADER_SIZE = fuHeader.size
// ===================================================================
// Helpers
// ===================================================================
const SIZE_OF_32_BITS = Math.pow(2, 32)
const uint32ToUint64 = fu => fu.high * SIZE_OF_32_BITS + fu.low
// Returns a 32 bits integer corresponding to a Vhd version.
const getVhdVersion = (major, minor) => (major << 16) | (minor & 0x0000ffff)
// bytes[] bit manipulation
const testBit = (map, bit) => map[bit >> 3] & (1 << (bit & 7))
const setBit = (map, bit) => {
map[bit >> 3] |= 1 << (bit & 7)
}
const unsetBit = (map, bit) => {
map[bit >> 3] &= ~(1 << (bit & 7))
}
const addOffsets = (...offsets) =>
offsets.reduce(
(a, b) =>
b == null
? a
: typeof b === 'object'
? { bytes: a.bytes + b.bytes, bits: a.bits + b.bits }
: { bytes: a.bytes + b, bits: a.bits },
{ bytes: 0, bits: 0 }
)
const pack = (field, value, buf, offset) => {
field.pack(value, buf, addOffsets(field.offset, offset))
}
const unpack = (field, buf, offset) =>
field.unpack(buf, addOffsets(field.offset, offset))
// ===================================================================
const streamToNewBuffer = stream =>
new Promise((resolve, reject) => {
const chunks = []
let length = 0
const onData = chunk => {
chunks.push(chunk)
length += chunk.length
}
stream.on('data', onData)
const clean = () => {
stream.removeListener('data', onData)
stream.removeListener('end', onEnd)
stream.removeListener('error', onError)
}
const onEnd = () => {
resolve(Buffer.concat(chunks, length))
clean()
}
stream.on('end', onEnd)
const onError = error => {
reject(error)
clean()
}
stream.on('error', onError)
})
const streamToExistingBuffer = (
stream,
buffer,
offset = 0,
end = buffer.length
) =>
new Promise((resolve, reject) => {
assert(offset >= 0)
assert(end > offset)
assert(end <= buffer.length)
let i = offset
const onData = chunk => {
const prev = i
i += chunk.length
if (i > end) {
return onError(new Error('too much data'))
}
chunk.copy(buffer, prev)
}
stream.on('data', onData)
const clean = () => {
stream.removeListener('data', onData)
stream.removeListener('end', onEnd)
stream.removeListener('error', onError)
}
const onEnd = () => {
resolve(i - offset)
clean()
}
stream.on('end', onEnd)
const onError = error => {
reject(error)
clean()
}
stream.on('error', onError)
})
// ===================================================================
// Returns the checksum of a raw struct.
const computeChecksum = (struct, buf, offset = 0) => {
let sum = 0
// Do not use the stored checksum to compute the new checksum.
const checksumField = struct.fields.checksum
const checksumOffset = offset + checksumField.offset
for (let i = offset, n = checksumOffset; i < n; ++i) {
sum += buf[i]
}
for (
let i = checksumOffset + checksumField.size, n = offset + struct.size;
i < n;
++i
) {
sum += buf[i]
}
return ~sum >>> 0
}
const verifyChecksum = (struct, buf, offset) =>
unpack(struct.fields.checksum, buf, offset) ===
computeChecksum(struct, buf, offset)
const getParentLocatorSize = parentLocatorEntry => {
const { platformDataSpace } = parentLocatorEntry
if (platformDataSpace < SECTOR_SIZE) {
return platformDataSpace * SECTOR_SIZE
}
return platformDataSpace % SECTOR_SIZE === 0 ? platformDataSpace : 0
}
// ===================================================================
// Euclidean division, returns the quotient and the remainder of a / b.
const div = (a, b) => [Math.floor(a / b), a % b]
export default class Vhd {
constructor (handler, path) {
this._handler = handler
this._path = path
this._blockAllocationTable = null
this._blockBitmapSize = null
this._footer = null
this._header = null
this._parent = null
this._sectorsPerBlock = null
}
// Read `length` bytes starting from `begin`.
//
// - if `buffer`: it is filled starting from `offset`, and the
// number of written bytes is returned;
// - otherwise: a new buffer is allocated and returned.
_read (begin, length, buf, offset) {
assert(begin >= 0)
assert(length > 0)
return this._handler
.createReadStream(this._path, {
end: begin + length - 1,
start: begin,
})
.then(
buf
? stream =>
streamToExistingBuffer(
stream,
buf,
offset,
(offset || 0) + length
)
: streamToNewBuffer
)
}
// - if `buffer`: it is filled with 0 starting from `offset`, and
// the number of written bytes is returned;
// - otherwise: a new buffer is allocated and returned.
_zeroes (length, buf, offset = 0) {
if (buf) {
assert(offset >= 0)
assert(length > 0)
const end = offset + length
assert(end <= buf.length)
buf.fill(0, offset, end)
return Promise.resolve(length)
}
return Promise.resolve(Buffer.alloc(length))
}
// Return the position of a block in the VHD or undefined if not found.
_getBlockAddress (block) {
assert(block >= 0)
assert(block < this._header.maxTableEntries)
const blockAddr = this._blockAllocationTable[block]
if (blockAddr !== 0xffffffff) {
return blockAddr * SECTOR_SIZE
}
}
// -----------------------------------------------------------------
async readHeaderAndFooter () {
const buf = await this._read(0, FOOTER_SIZE + HEADER_SIZE)
if (!verifyChecksum(fuFooter, buf)) {
throw new Error('footer checksum does not match')
}
if (!verifyChecksum(fuHeader, buf, FOOTER_SIZE)) {
throw new Error('header checksum does not match')
}
return this._initMetadata(
unpack(fuHeader, buf, FOOTER_SIZE),
unpack(fuFooter, buf)
)
}
async _initMetadata (header, footer) {
const sectorsPerBlock = header.blockSize / SECTOR_SIZE
assert(sectorsPerBlock % 1 === 0)
// 1 bit per sector, rounded up to full sectors
this._blockBitmapSize =
Math.ceil(sectorsPerBlock / 8 / SECTOR_SIZE) * SECTOR_SIZE
assert(this._blockBitmapSize === SECTOR_SIZE)
this._footer = footer
this._header = header
this.size = uint32ToUint64(this._footer.currentSize)
if (footer.diskType === HARD_DISK_TYPE_DIFFERENCING) {
const parent = new Vhd(
this._handler,
`${dirname(this._path)}/${header.parentUnicodeName}`
)
await parent.readHeaderAndFooter()
await parent.readBlockAllocationTable()
this._parent = parent
}
}
// -----------------------------------------------------------------
async readBlockAllocationTable () {
const { maxTableEntries, tableOffset } = this._header
const fuTable = fu.uint32(maxTableEntries)
this._blockAllocationTable = unpack(
fuTable,
await this._read(uint32ToUint64(tableOffset), fuTable.size)
)
}
// -----------------------------------------------------------------
// read a single sector in a block
async _readBlockSector (block, sector, begin, length, buf, offset) {
assert(begin >= 0)
assert(length > 0)
assert(begin + length <= SECTOR_SIZE)
const blockAddr = this._getBlockAddress(block)
const blockBitmapSize = this._blockBitmapSize
const parent = this._parent
if (
blockAddr &&
(!parent || testBit(await this._read(blockAddr, blockBitmapSize), sector))
) {
return this._read(
blockAddr + blockBitmapSize + sector * SECTOR_SIZE + begin,
length,
buf,
offset
)
}
return parent
? parent._readBlockSector(block, sector, begin, length, buf, offset)
: this._zeroes(length, buf, offset)
}
_readBlock (block, begin, length, buf, offset) {
assert(begin >= 0)
assert(length > 0)
const { blockSize } = this._header
assert(begin + length <= blockSize)
const blockAddr = this._getBlockAddress(block)
const parent = this._parent
if (!blockAddr) {
return parent
? parent._readBlock(block, begin, length, buf, offset)
: this._zeroes(length, buf, offset)
}
if (!parent) {
return this._read(
blockAddr + this._blockBitmapSize + begin,
length,
buf,
offset
)
}
// FIXME: we should read as many sectors in a single pass as
// possible for maximum perf.
const [sector, beginInSector] = div(begin, SECTOR_SIZE)
return this._readBlockSector(
block,
sector,
beginInSector,
Math.min(length, SECTOR_SIZE - beginInSector),
buf,
offset
)
}
read (buf, begin, length = buf.length, offset) {
assert(Buffer.isBuffer(buf))
assert(begin >= 0)
const { size } = this
if (begin >= size) {
return Promise.resolve(0)
}
const { blockSize } = this._header
const [block, beginInBlock] = div(begin, blockSize)
return this._readBlock(
block,
beginInBlock,
Math.min(length, blockSize - beginInBlock, size - begin),
buf,
offset
)
}
}

View File

@@ -0,0 +1,24 @@
/benchmark/
/benchmarks/
*.bench.js
*.bench.js.map
/examples/
example.js
example.js.map
*.example.js
*.example.js.map
/fixture/
/fixtures/
*.fixture.js
*.fixture.js.map
*.fixtures.js
*.fixtures.js.map
/test/
/tests/
*.spec.js
*.spec.js.map
__snapshots__/

130
packages/xen-api/README.md Normal file
View File

@@ -0,0 +1,130 @@
# xen-api [![Build Status](https://travis-ci.org/vatesfr/xen-orchestra.png?branch=master)](https://travis-ci.org/vatesfr/xen-orchestra)
> Connector to the Xen API
Tested with:
- XenServer 7.3
- XenServer 7.2
- XenServer 7.1
- XenServer 7
- XenServer 6.5
- XenServer 6.2
- XenServer 5.6
## Install
Installation of the [npm package](https://npmjs.org/package/xen-api):
```
> npm install --save xen-api
```
## Usage
### Library
```javascript
const { createClient } = require('xen-api')
const xapi = createClient({
url: 'https://xen1.company.net',
allowUnauthorized: false,
auth: {
user: 'root',
password: 'important secret password'
},
readOnly: false
})
```
Options:
- `url`: address of a host in the pool we are trying to connect to
- `allowUnauthorized`: whether to accept self-signed certificates
- `auth`: credentials used to sign in (can also be specified in the URL)
- `readOnly = false`: if true, no methods with side-effects can be called
```js
// Force connection.
xapi.connect().catch(error => {
console.error(error)
})
// Watch objects.
xapi.objects.on('add', objects => {
console.log('new objects:', objects)
})
```
> Note: all objects are frozen and cannot be altered!
Custom fields on objects (hidden ie. non enumerable):
- `$type`: the type of the object (`VM`, `task`, …);
- `$ref`: the (opaque) reference of the object;
- `$id`: the identifier of this object (its UUID if any, otherwise its reference);
- `$pool`: the pool object this object belongs to.
Furthermore, any field containing a reference (or references if an
array) can be resolved by prepending the field name with a `$`:
```javascript
console.log(xapi.pool.$master.$resident_VMs[0].name_label)
// vm1
```
### CLI
A CLI is provided to help exploration and discovery of the XAPI.
```
> xen-api https://xen1.company.net root
Password: ******
root@xen1.company.net> xapi.status
'connected'
root@xen1.company.net> xapi.pool.master
'OpaqueRef:ec7c5147-8aee-990f-c70b-0de916a8e993'
root@xen1.company.net> xapi.pool.$master.name_label
'xen1'
```
To ease searches, `find()` and `findAll()` functions are available:
```
root@xen1.company.net> findAll({ $type: 'vm' }).length
183
```
## Development
```
# Install dependencies
> npm install
# Run the tests
> npm test
# Continuously compile
> npm run dev
# Continuously run the tests
> npm run dev-test
# Build for production (automatically called by npm install)
> npm run build
```
## Contributions
Contributions are *very* welcomed, either on the documentation or on
the code.
You may:
- report any [issue](https://github.com/xen-api/issues)
you've encountered;
- fork and create a pull request.
## License
ISC © [Julien Fontanet](https://github.com/julien-f)

View File

@@ -0,0 +1,50 @@
#!/usr/bin/env node
process.env.DEBUG = '*'
const defer = require('golike-defer').default
const pump = require('pump')
const { fromCallback } = require('promise-toolbox')
const { createClient } = require('../')
const { createOutputStream, resolveRef } = require('./utils')
defer(async ($defer, args) => {
let raw = false
if (args[0] === '--raw') {
raw = true
args.shift()
}
if (args.length < 2) {
return console.log('Usage: export-vdi [--raw] <XS URL> <VDI identifier> [<VHD file>]')
}
const xapi = createClient({
allowUnauthorized: true,
url: args[0],
watchEvents: false
})
await xapi.connect()
$defer(() => xapi.disconnect())
// https://xapi-project.github.io/xen-api/snapshots.html#downloading-a-disk-or-snapshot
const exportStream = await xapi.getResource('/export_raw_vdi/', {
query: {
format: raw ? 'raw' : 'vhd',
vdi: await resolveRef(xapi, 'VDI', args[1])
}
})
console.warn('Export task:', exportStream.headers['task-id'])
await fromCallback(cb => pump(
exportStream,
createOutputStream(args[2]),
cb
))
})(process.argv.slice(2)).catch(
console.error.bind(console, 'error')
)

View File

@@ -0,0 +1,44 @@
#!/usr/bin/env node
process.env.DEBUG = '*'
const defer = require('golike-defer').default
const pump = require('pump')
const { fromCallback } = require('promise-toolbox')
const { createClient } = require('../')
const { createOutputStream, resolveRef } = require('./utils')
defer(async ($defer, args) => {
if (args.length < 2) {
return console.log('Usage: export-vm <XS URL> <VM identifier> [<XVA file>]')
}
const xapi = createClient({
allowUnauthorized: true,
url: args[0],
watchEvents: false
})
await xapi.connect()
$defer(() => xapi.disconnect())
// https://xapi-project.github.io/xen-api/importexport.html
const exportStream = await xapi.getResource('/export/', {
query: {
ref: await resolveRef(xapi, 'VM', args[1]),
use_compression: 'true'
}
})
console.warn('Export task:', exportStream.headers['task-id'])
await fromCallback(cb => pump(
exportStream,
createOutputStream(args[2]),
cb
))
})(process.argv.slice(2)).catch(
console.error.bind(console, 'error')
)

View File

@@ -0,0 +1,40 @@
#!/usr/bin/env node
process.env.DEBUG = '*'
const defer = require('golike-defer').default
const { createClient } = require('../')
const { createInputStream, resolveRef } = require('./utils')
defer(async ($defer, args) => {
let raw = false
if (args[0] === '--raw') {
raw = true
args.shift()
}
if (args.length < 2) {
return console.log('Usage: import-vdi [--raw] <XS URL> <VDI identifier> [<VHD file>]')
}
const xapi = createClient({
allowUnauthorized: true,
url: args[0],
watchEvents: false
})
await xapi.connect()
$defer(() => xapi.disconnect())
// https://xapi-project.github.io/xen-api/snapshots.html#uploading-a-disk-or-snapshot
await xapi.putResource(createInputStream(args[2]), '/import_raw_vdi/', {
query: {
format: raw ? 'raw' : 'vhd',
vdi: await resolveRef(xapi, 'VDI', args[1])
}
})
})(process.argv.slice(2)).catch(
console.error.bind(console, 'error')
)

View File

@@ -0,0 +1,31 @@
#!/usr/bin/env node
process.env.DEBUG = '*'
const defer = require('golike-defer').default
const { createClient } = require('../')
const { createInputStream, resolveRef } = require('./utils')
defer(async ($defer, args) => {
if (args.length < 1) {
return console.log('Usage: import-vm <XS URL> [<XVA file>] [<SR identifier>]')
}
const xapi = createClient({
allowUnauthorized: true,
url: args[0],
watchEvents: false
})
await xapi.connect()
$defer(() => xapi.disconnect())
// https://xapi-project.github.io/xen-api/importexport.html
await xapi.putResource(createInputStream(args[1]), '/import/', {
query: args[2] && { sr_id: await resolveRef(xapi, 'SR', args[2]) }
})
})(process.argv.slice(2)).catch(
console.error.bind(console, 'error')
)

View File

@@ -0,0 +1,57 @@
#!/usr/bin/env node
require('source-map-support').install()
const { forEach, size } = require('lodash')
const { createClient } = require('../')
// ===================================================================
if (process.argv.length < 3) {
return console.log('Usage: log-events <XS URL>')
}
// ===================================================================
// Creation
const xapi = createClient({
allowUnauthorized: true,
url: process.argv[2]
})
// ===================================================================
// Method call
xapi.connect().then(() => {
xapi.call('VM.get_all_records')
.then(function (vms) {
console.log('%s VMs fetched', size(vms))
})
.catch(function (error) {
console.error(error)
})
})
// ===================================================================
// Objects
const objects = xapi.objects
objects.on('add', objects => {
forEach(objects, object => {
console.log('+ %s: %s', object.$type, object.$id)
})
})
objects.on('update', objects => {
forEach(objects, object => {
console.log('± %s: %s', object.$type, object.$id)
})
})
objects.on('remove', objects => {
forEach(objects, (value, id) => {
console.log('- %s', id)
})
})

View File

@@ -0,0 +1,6 @@
{
"dependencies": {
"golike-defer": "^0.1.0",
"pump": "^1.0.2"
}
}

View File

@@ -0,0 +1,43 @@
const { createReadStream, createWriteStream, statSync } = require('fs')
const { PassThrough } = require('stream')
const { isOpaqueRef } = require('../')
exports.createInputStream = path => {
if (path === undefined || path === '-') {
return process.stdin
}
const { size } = statSync(path)
const stream = createReadStream(path)
stream.length = size
return stream
}
exports.createOutputStream = path => {
if (path !== undefined && path !== '-') {
return createWriteStream(path)
}
// introduce a through stream because stdout is not a normal stream!
const stream = new PassThrough()
stream.pipe(process.stdout)
return stream
}
exports.resolveRef = (xapi, type, refOrUuidOrNameLabel) =>
isOpaqueRef(refOrUuidOrNameLabel)
? refOrUuidOrNameLabel
: xapi.call(`${type}.get_by_uuid`, refOrUuidOrNameLabel).catch(() =>
xapi
.call(`${type}.get_by_name_label`, refOrUuidOrNameLabel)
.then(refs => {
if (refs.length === 1) {
return refs[0]
}
throw new Error(
`no single match for ${type} with name label ${refOrUuidOrNameLabel}`
)
})
)

View File

@@ -0,0 +1,4 @@
set yrange [ 0 : ]
set grid
plot for [i=2:4] "plot.dat" using 1:i with lines

View File

@@ -0,0 +1,89 @@
{
"name": "xen-api",
"version": "0.16.6",
"license": "ISC",
"description": "Connector to the Xen API",
"keywords": [
"xen",
"api",
"xen-api",
"xenapi",
"xapi"
],
"homepage": "https://github.com/vatesfr/xen-orchestra/tree/master/packages/xen-api",
"bugs": "https://github.com/vatesfr/xen-orchestra/issues",
"repository": {
"type": "git",
"url": "https://github.com/vatesfr/xen-orchestra.git"
},
"author": {
"name": "Julien Fontanet",
"email": "julien.fontanet@vates.fr"
},
"preferGlobal": false,
"main": "dist/",
"bin": {
"xen-api": "dist/cli.js"
},
"files": [
"dist/"
],
"engines": {
"node": ">=4"
},
"dependencies": {
"babel-polyfill": "^6.23.0",
"blocked": "^1.2.1",
"debug": "^3.1.0",
"event-to-promise": "^0.8.0",
"exec-promise": "^0.7.0",
"http-request-plus": "^0.5.0",
"iterable-backoff": "^0.0.0",
"json-rpc-protocol": "^0.11.2",
"kindof": "^2.0.0",
"lodash": "^4.17.4",
"make-error": "^1.3.0",
"minimist": "^1.2.0",
"ms": "^2.1.1",
"promise-toolbox": "^0.9.5",
"pw": "0.0.4",
"xmlrpc": "^1.3.2",
"xo-collection": "^0.4.1"
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-plugin-lodash": "^3.3.2",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-function-bind": "^6.22.0",
"babel-preset-env": "^1.6.0",
"babel-preset-stage-3": "^6.24.1",
"cross-env": "^5.1.3",
"rimraf": "^2.6.1"
},
"scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
"plot": "gnuplot -p memory-test.gnu",
"prebuild": "rimraf dist/",
"predev": "yarn run prebuild",
"prepublishOnly": "yarn run build"
},
"babel": {
"plugins": [
"lodash",
"transform-decorators-legacy",
"transform-function-bind"
],
"presets": [
[
"env",
{
"targets": {
"node": 4
}
}
],
"stage-3"
]
}
}

106
packages/xen-api/src/cli.js Executable file
View File

@@ -0,0 +1,106 @@
#!/usr/bin/env node
import 'babel-polyfill'
import blocked from 'blocked'
import createDebug from 'debug'
import eventToPromise from 'event-to-promise'
import execPromise from 'exec-promise'
import minimist from 'minimist'
import pw from 'pw'
import { asCallback, fromCallback } from 'promise-toolbox'
import { filter, find, isArray } from 'lodash'
import { start as createRepl } from 'repl'
import { createClient } from './'
// ===================================================================
function askPassword (prompt = 'Password: ') {
if (prompt) {
process.stdout.write(prompt)
}
return new Promise(resolve => {
pw(resolve)
})
}
// ===================================================================
const usage = 'Usage: xen-api <url> [<user> [<password>]]'
const main = async args => {
const opts = minimist(args, {
boolean: ['allow-unauthorized', 'help', 'read-only', 'verbose'],
alias: {
'allow-unauthorized': 'au',
debounce: 'd',
help: 'h',
'read-only': 'ro',
verbose: 'v',
},
})
if (opts.help) {
return usage
}
if (opts.verbose) {
// Does not work perfectly.
//
// https://github.com/visionmedia/debug/pull/156
createDebug.enable('xen-api,xen-api:*')
}
let auth
if (opts._.length > 1) {
const [, user, password = await askPassword()] = opts._
auth = { user, password }
}
{
const debug = createDebug('xen-api:perf')
blocked(ms => {
debug('blocked for %sms', ms | 0)
})
}
const xapi = createClient({
url: opts._[0],
allowUnauthorized: opts.au,
auth,
debounce: opts.debounce != null ? +opts.debounce : null,
readOnly: opts.ro,
})
await xapi.connect()
const repl = createRepl({
prompt: `${xapi._humanId}> `,
})
repl.context.xapi = xapi
repl.context.find = predicate => find(xapi.objects.all, predicate)
repl.context.findAll = predicate => filter(xapi.objects.all, predicate)
// Make the REPL waits for promise completion.
repl.eval = (evaluate => (cmd, context, filename, cb) => {
;fromCallback(cb => {
evaluate.call(repl, cmd, context, filename, cb)
})
.then(value => (isArray(value) ? Promise.all(value) : value))
::asCallback(cb)
})(repl.eval)
await eventToPromise(repl, 'exit')
try {
await xapi.disconnect()
} catch (error) {}
}
export default main
if (!module.parent) {
execPromise(main)
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,32 @@
#!/usr/bin/env node
import { delay as pDelay } from 'promise-toolbox'
import { createClient } from './'
const xapi = (() => {
const [, , url, user, password] = process.argv
return createClient({
auth: { user, password },
url,
watchEvents: false,
})
})()
xapi
.connect()
// Get the pool record's ref.
.then(() => xapi.call('pool.get_all'))
// Injects lots of events.
.then(([poolRef]) => {
const loop = () =>
xapi
.call('event.inject', 'pool', poolRef)
::pDelay(10) // A small delay is required to avoid overloading the Xen API.
.then(loop)
return loop()
})

View File

@@ -0,0 +1,22 @@
#!/usr/bin/env node
import { createClient } from './'
let i = 0
setInterval(() => {
const usage = process.memoryUsage()
console.log(
'%s %s %s %s',
i++,
Math.round(usage.rss / 1e6),
Math.round(usage.heapTotal / 1e6),
Math.round(usage.heapUsed / 1e6)
)
}, 1e2)
const [, , url, user, password] = process.argv
createClient({
auth: { user, password },
readOnly: true,
url,
}).connect()

View File

@@ -0,0 +1,3 @@
import makeError from 'make-error'
export const UnsupportedTransport = makeError('UnsupportedTransport')

View File

@@ -0,0 +1,36 @@
import jsonRpc from './json-rpc'
import xmlRpc from './xml-rpc'
import xmlRpcJson from './xml-rpc-json'
import { UnsupportedTransport } from './_utils'
const factories = [jsonRpc, xmlRpcJson, xmlRpc]
const { length } = factories
export default opts => {
let i = 0
let call
function create () {
const current = factories[i++](opts)
if (i < length) {
const currentI = i
call = (method, args) =>
current(method, args).catch(error => {
if (error instanceof UnsupportedTransport) {
if (currentI === i) {
// not changed yet
create()
}
return call(method, args)
}
throw error
})
} else {
call = current
}
}
create()
return (method, args) => call(method, args)
}

View File

@@ -0,0 +1,43 @@
import httpRequestPlus from 'http-request-plus'
import { format, parse } from 'json-rpc-protocol'
import { UnsupportedTransport } from './_utils'
export default ({ allowUnauthorized, url }) => {
return (method, args) =>
httpRequestPlus
.post(url, {
rejectUnauthorized: !allowUnauthorized,
body: format.request(0, method, args),
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
},
path: '/jsonrpc',
})
.readAll('utf8')
.then(
text => {
let response
try {
response = parse(text)
} catch (error) {
throw new UnsupportedTransport()
}
if (response.type === 'response') {
return response.result
}
throw response.error
},
error => {
if (error.response !== undefined) {
// HTTP error
throw new UnsupportedTransport()
}
throw error
}
)
}

View File

@@ -0,0 +1,87 @@
import { createClient, createSecureClient } from 'xmlrpc'
import { promisify } from 'promise-toolbox'
import { UnsupportedTransport } from './_utils'
const logError = error => {
if (error.res) {
console.error(
'XML-RPC Error: %s (response status %s)',
error.message,
error.res.statusCode
)
console.error('%s', error.body)
}
throw error
}
const SPECIAL_CHARS = {
'\r': '\\r',
'\t': '\\t',
}
const SPECIAL_CHARS_RE = new RegExp(Object.keys(SPECIAL_CHARS).join('|'), 'g')
const parseResult = result => {
const status = result.Status
// Return the plain result if it does not have a valid XAPI
// format.
if (status === undefined) {
return result
}
if (status !== 'Success') {
throw result.ErrorDescription
}
const value = result.Value
// XAPI returns an empty string (invalid JSON) for an empty
// result.
if (value === '') {
return ''
}
try {
return JSON.parse(value)
} catch (error) {
// XAPI JSON sometimes contains invalid characters.
if (!(error instanceof SyntaxError)) {
throw error
}
}
let replaced = false
const fixedValue = value.replace(SPECIAL_CHARS_RE, match => {
replaced = true
return SPECIAL_CHARS[match]
})
if (replaced) {
try {
return JSON.parse(fixedValue)
} catch (error) {
if (!(error instanceof SyntaxError)) {
throw error
}
}
}
throw new UnsupportedTransport()
}
export default ({
allowUnauthorized,
url: { hostname, path, port, protocol },
}) => {
const client = (protocol === 'https:' ? createSecureClient : createClient)({
host: hostname,
path: '/json',
port,
rejectUnauthorized: !allowUnauthorized,
})
const call = promisify(client.methodCall, client)
return (method, args) => call(method, args).then(parseResult, logError)
}

View File

@@ -0,0 +1,45 @@
import { createClient, createSecureClient } from 'xmlrpc'
import { promisify } from 'promise-toolbox'
const logError = error => {
if (error.res) {
console.error(
'XML-RPC Error: %s (response status %s)',
error.message,
error.res.statusCode
)
console.error('%s', error.body)
}
throw error
}
const parseResult = result => {
const status = result.Status
// Return the plain result if it does not have a valid XAPI
// format.
if (status === undefined) {
return result
}
if (status !== 'Success') {
throw result.ErrorDescription
}
return result.Value
}
export default ({
allowUnauthorized,
url: { hostname, path, port, protocol },
}) => {
const client = (protocol === 'https:' ? createSecureClient : createClient)({
host: hostname,
port,
rejectUnauthorized: !allowUnauthorized,
})
const call = promisify(client.methodCall, client)
return (method, args) => call(method, args).then(parseResult, logError)
}

View File

@@ -0,0 +1,13 @@
{
"comments": false,
"compact": true,
"presets": [
[
"env", {
"targets": {
"node": 4
}
}
]
]
}

View File

@@ -0,0 +1,74 @@
# xo-acl-resolver [![Build Status](https://travis-ci.org/vatesfr/xen-orchestra.png?branch=master)](https://travis-ci.org/vatesfr/xen-orchestra)
> [Xen-Orchestra](http://xen-orchestra.com/) internal: do ACLs resolution.
## Install
Installation of the [npm package](https://npmjs.org/package/xo-acl-resolver):
```
> npm install --save xo-acl-resolver
```
## Usage
```js
import check from 'xo-acl-resolver'
// This object contains a list of permissions returned from
// xo-server's acl.getCurrentPermissions.
const permissions = { /* ... */ }
// This function should returns synchronously an object from an id.
const getObject = id => { /* ... */ }
// For a single object:
if (check(permissions, getObject, objectId, permission)) {
console.log(`${permission} set for object ${objectId}`)
}
// For multiple objects/permissions:
if (check(permissions, getObject, [
[ object1Id, permission1 ],
[ object12d, permission2 ],
])) {
console.log('all permissions checked')
}
```
## Development
### Installing dependencies
```
> npm install
```
### Compilation
The sources files are watched and automatically recompiled on changes.
```
> npm run dev
```
### Tests
```
> npm run test-dev
```
## Contributions
Contributions are *very* welcomed, either on the documentation or on
the code.
You may:
- report any [issue](https://github.com/vatesfr/xen-orchestra/issues)
you've encountered;
- fork and create a pull request.
## License
ISC © [Vates SAS](https://vates.fr)

View File

@@ -0,0 +1,35 @@
{
"name": "xo-acl-resolver",
"version": "0.2.3",
"license": "ISC",
"description": "Xen-Orchestra internal: do ACLs resolution",
"keywords": [],
"homepage": "https://github.com/vatesfr/xen-orchestra/tree/master/packages/xo-acl-resolver",
"bugs": "https://github.com/vatesfr/xen-orchestra/issues",
"repository": {
"type": "git",
"url": "https://github.com/vatesfr/xen-orchestra.git"
},
"author": {
"name": "Julien Fontanet",
"email": "julien.fontanet@vates.fr"
},
"preferGlobal": false,
"main": "dist/",
"bin": {},
"files": [
"dist/"
],
"engines": {
"node": ">=0.12"
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-preset-env": "^1.6.1"
},
"scripts": {
"build": "babel --source-maps --out-dir=dist/ src/",
"dev": "babel --watch --source-maps --out-dir=dist/ src/",
"prepublishOnly": "yarn run build"
}
}

View File

@@ -0,0 +1,125 @@
// These global variables are not a problem because the algorithm is
// synchronous.
let permissionsByObject
let getObject
// -------------------------------------------------------------------
const authorized = () => true // eslint-disable-line no-unused-vars
const forbiddden = () => false // eslint-disable-line no-unused-vars
// eslint-disable-next-line no-unused-vars
const and = (...checkers) => (object, permission) => {
for (const checker of checkers) {
if (!checker(object, permission)) {
return false
}
}
return true
}
// eslint-disable-next-line no-unused-vars
const or = (...checkers) => (object, permission) => {
for (const checker of checkers) {
if (checker(object, permission)) {
return true
}
}
return false
}
// -------------------------------------------------------------------
const checkMember = memberName => (object, permission) => {
const member = object[memberName]
return member !== object.id && checkAuthorization(member, permission)
}
const checkSelf = ({ id }, permission) => {
const permissionsForObject = permissionsByObject[id]
return permissionsForObject && permissionsForObject[permission]
}
// ===================================================================
const checkAuthorizationByTypes = {
host: or(checkSelf, checkMember('$pool')),
message: checkMember('$object'),
network: or(checkSelf, checkMember('$pool')),
SR: or(checkSelf, checkMember('$pool')),
task: checkMember('$host'),
VBD: checkMember('VDI'),
// Access to a VDI is granted if the user has access to the
// containing SR or to a linked VM.
VDI (vdi, permission) {
// Check authorization for the containing SR.
if (checkAuthorization(vdi.$SR, permission)) {
return true
}
// Check authorization for each of the connected VMs.
for (const vbdId of vdi.$VBDs) {
if (checkAuthorization(getObject(vbdId).VM, permission)) {
return true
}
}
return false
},
'VDI-snapshot': checkMember('$snapshot_of'),
VIF: or(checkMember('$network'), checkMember('$VM')),
VM: or(checkSelf, checkMember('$container')),
'VM-controller': checkMember('$container'),
'VM-snapshot': checkMember('$snapshot_of'),
'VM-template': or(checkSelf, checkMember('$pool')),
}
// Hoisting is important for this function.
function checkAuthorization (objectId, permission) {
const object = getObject(objectId)
if (!object) {
return false
}
const checker = checkAuthorizationByTypes[object.type] || checkSelf
return checker(object, permission)
}
// -------------------------------------------------------------------
export default (permissionsByObject_, getObject_, permissions, permission) => {
// Assign global variables.
permissionsByObject = permissionsByObject_
getObject = getObject_
try {
if (permission) {
return checkAuthorization(permissions, permission)
} else {
for (const [objectId, permission] of permissions) {
if (!checkAuthorization(objectId, permission)) {
return false
}
}
}
return true
} finally {
// Free the global variables.
permissionsByObject = getObject = null
}
}

View File

@@ -0,0 +1,3 @@
module.exports = require('../../@xen-orchestra/babel-config')(
require('./package.json')
)

View File

@@ -0,0 +1,24 @@
/benchmark/
/benchmarks/
*.bench.js
*.bench.js.map
/examples/
example.js
example.js.map
*.example.js
*.example.js.map
/fixture/
/fixtures/
*.fixture.js
*.fixture.js.map
*.fixtures.js
*.fixtures.js.map
/test/
/tests/
*.spec.js
*.spec.js.map
__snapshots__/

159
packages/xo-cli/README.md Normal file
View File

@@ -0,0 +1,159 @@
# XO-CLI
[![Build Status](https://travis-ci.org/vatesfr/xen-orchestra.png?branch=master)](http://travis-ci.org/vatesfr/xen-orchestra)
[![Dependency Status](https://david-dm.org/vatesfr/xo-cli/status.svg?theme=shields.io)](https://david-dm.org/vatesfr/xo-cli)
[![devDependency Status](https://david-dm.org/vatesfr/xo-cli/dev-status.svg?theme=shields.io)](https://david-dm.org/vatesfr/xo-cli#info=devDependencies)
> Basic CLI for Xen-Orchestra
## Install
#### [npm](https://npmjs.org/package/xo-cli)
```
npm install -g xo-cli
```
## Usage
```
> xo-cli --help
Usage:
xo-cli --register [--expiresIn duration] <XO-Server URL> <username> [<password>]
Registers the XO instance to use.
--expiresIn duration
Can be used to change the validity duration of the
authorization token (default: one month).
xo-cli --unregister
Remove stored credentials.
xo-cli --list-commands [--json] [<pattern>]...
Returns the list of available commands on the current XO instance.
The patterns can be used to filter on command names.
xo-cli --list-objects [--<property>]… [<property>=<value>]...
Returns a list of XO objects.
--<property>
Restricts displayed properties to those listed.
<property>=<value>
Restricted displayed objects to those matching the patterns.
xo-cli <command> [<name>=<value>]...
Executes a command on the current XO instance.
```
#### Register your XO instance
```
> xo-cli --register http://xo.my-company.net admin@admin.net admin
Successfully logged with admin@admin.net
```
Note: only a token will be saved in the configuration file.
#### List available objects
Prints all objects:
```
> xo-cli --list-objects
```
It is possible to filter on object properties, for instance to prints
all VM templates:
```
> xo-cli --list-objects type=VM-template
```
#### List available commands
```
> xo-cli --list-commands
```
Commands can be filtered using patterns:
```
> xo-cli --list-commands '{user,group}.*'
```
#### Execute a command
The same syntax is used for all commands: `xo-cli <command> <param
name>=<value>...`
E.g., adding a new server:
```
> xo-cli server.add host=my.server.net username=root password=secret-password
42
```
The return value is the identifier of this new server in XO.
Parameters (except `true` and `false` which are correctly parsed as
booleans) are assumed to be strings, for other types, you may use JSON
encoding by prefixing with `json:`:
```
> xo-cli foo.bar baz='json:[1, 2, 3]'
```
##### Configuration export
```
> xo-cli xo.exportConfig @=config.json
```
##### VM export
```
> xo-cli vm.export vm=a01667e0-8e29-49fc-a550-17be4226783c @=vm.xva
```
##### VM import
```
> xo-cli vm.import host=60a6939e-8b0a-4352-9954-5bde44bcdf7d @=vm.xva
```
## Development
```
# Install dependencies
> yarn
# Run the tests
> yarn test
# Continuously compile
> yarn dev
# Continuously run the tests
> yarn dev-test
# Build for production (automatically called by npm install)
> yarn build
```
## Contributions
Contributions are *very* welcomed, either on the documentation or on
the code.
You may:
- report any [issue](https://github.com/vatesfr/xen-orchestra/issues)
you've encountered;
- fork and create a pull request.
## License
XO-CLI is released under the [AGPL
v3](http://www.gnu.org/licenses/agpl-3.0-standalone.html).

View File

@@ -0,0 +1,67 @@
{
"name": "xo-cli",
"version": "0.10.1",
"license": "AGPL-3.0",
"description": "Basic CLI for Xen-Orchestra",
"keywords": [
"xo",
"xen-orchestra",
"xen",
"orchestra"
],
"homepage": "https://github.com/vatesfr/xen-orchestra/tree/master/packages/xo-cli",
"bugs": "https://github.com/vatesfr/xen-orchestra/issues",
"repository": {
"type": "git",
"url": "https://github.com/vatesfr/xen-orchestra.git"
},
"author": "Julien Fontanet <julien.fontanet@vates.fr>",
"preferGlobal": true,
"main": "dist/",
"bin": {
"xo-cli": "dist/index.js"
},
"files": [
"dist/"
],
"engines": {
"node": ">=6"
},
"dependencies": {
"@babel/polyfill": "7.0.0-beta.40",
"bluebird": "^3.5.1",
"chalk": "^2.2.0",
"event-to-promise": "^0.8.0",
"exec-promise": "^0.7.0",
"fs-promise": "^2.0.3",
"got": "^8.0.1",
"human-format": "^0.10.0",
"l33teral": "^3.0.3",
"lodash": "^4.17.4",
"micromatch": "^3.1.3",
"mkdirp": "^0.5.1",
"nice-pipe": "0.0.0",
"pretty-ms": "^3.0.1",
"progress-stream": "^2.0.0",
"pw": "^0.0.4",
"strip-indent": "^2.0.0",
"xdg-basedir": "^3.0.0",
"xo-lib": "^0.9.0"
},
"devDependencies": {
"@babel/cli": "7.0.0-beta.40",
"@babel/core": "7.0.0-beta.40",
"@babel/preset-env": "7.0.0-beta.40",
"@babel/preset-flow": "7.0.0-beta.40",
"babel-plugin-lodash": "^3.3.2",
"cross-env": "^5.1.3",
"rimraf": "^2.6.2"
},
"scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
"prebuild": "rimraf dist/",
"predev": "yarn run prebuild",
"prepublishOnly": "yarn run build"
}
}

View File

@@ -0,0 +1,56 @@
'use strict'
// ===================================================================
const promisify = require('bluebird').promisify
const readFile = promisify(require('fs').readFile)
const writeFile = promisify(require('fs').writeFile)
const assign = require('lodash/assign')
const l33t = require('l33teral')
const mkdirp = promisify(require('mkdirp'))
const xdgBasedir = require('xdg-basedir')
// ===================================================================
const configPath = xdgBasedir.config + '/xo-cli'
const configFile = configPath + '/config.json'
// ===================================================================
const load = (exports.load = function () {
return readFile(configFile)
.then(JSON.parse)
.catch(function () {
return {}
})
})
exports.get = function (path) {
return load().then(function (config) {
return l33t(config).tap(path)
})
}
const save = (exports.save = function (config) {
return mkdirp(configPath).then(function () {
return writeFile(configFile, JSON.stringify(config))
})
})
exports.set = function (data) {
return load().then(function (config) {
return save(assign(config, data))
})
}
exports.unset = function (paths) {
return load().then(function (config) {
const l33tConfig = l33t(config)
;[].concat(paths).forEach(function (path) {
l33tConfig.purge(path, true)
})
return save(config)
})
}

420
packages/xo-cli/src/index.js Executable file
View File

@@ -0,0 +1,420 @@
#!/usr/bin/env node
'use strict'
const Bluebird = require('bluebird')
Bluebird.longStackTraces()
const createReadStream = require('fs').createReadStream
const createWriteStream = require('fs').createWriteStream
const resolveUrl = require('url').resolve
const stat = require('fs-promise').stat
const chalk = require('chalk')
const eventToPromise = require('event-to-promise')
const forEach = require('lodash/forEach')
const getKeys = require('lodash/keys')
const got = require('got')
const humanFormat = require('human-format')
const identity = require('lodash/identity')
const isArray = require('lodash/isArray')
const isObject = require('lodash/isObject')
const micromatch = require('micromatch')
const nicePipe = require('nice-pipe')
const pairs = require('lodash/toPairs')
const pick = require('lodash/pick')
const startsWith = require('lodash/startsWith')
const prettyMs = require('pretty-ms')
const progressStream = require('progress-stream')
const pw = require('pw')
const Xo = require('xo-lib').default
// -------------------------------------------------------------------
const config = require('./config')
// ===================================================================
async function connect () {
const { server, token } = await config.load()
if (server === undefined) {
throw new Error('no server to connect to!')
}
if (token === undefined) {
throw new Error('no token available')
}
const xo = new Xo({ url: server })
await xo.open()
await xo.signIn({ token })
return xo
}
const FLAG_RE = /^--([^=]+)(?:=([^]*))?$/
function extractFlags (args) {
const flags = {}
let i = 0
const n = args.length
let matches
while (i < n && (matches = args[i].match(FLAG_RE))) {
const value = matches[2]
flags[matches[1]] = value === undefined ? true : value
++i
}
args.splice(0, i)
return flags
}
const PARAM_RE = /^([^=]+)=([^]*)$/
function parseParameters (args) {
const params = {}
forEach(args, function (arg) {
let matches
if (!(matches = arg.match(PARAM_RE))) {
throw new Error('invalid arg: ' + arg)
}
const name = matches[1]
let value = matches[2]
if (startsWith(value, 'json:')) {
value = JSON.parse(value.slice(5))
}
if (name === '@') {
params['@'] = value
return
}
if (value === 'true') {
value = true
} else if (value === 'false') {
value = false
}
params[name] = value
})
return params
}
const humanFormatOpts = {
unit: 'B',
scale: 'binary',
}
function printProgress (progress) {
if (progress.length) {
console.warn(
'%s% of %s @ %s/s - ETA %s',
Math.round(progress.percentage),
humanFormat(progress.length, humanFormatOpts),
humanFormat(progress.speed, humanFormatOpts),
prettyMs(progress.eta * 1e3)
)
} else {
console.warn(
'%s @ %s/s',
humanFormat(progress.transferred, humanFormatOpts),
humanFormat(progress.speed, humanFormatOpts)
)
}
}
function wrap (val) {
return function wrappedValue () {
return val
}
}
// ===================================================================
const help = wrap(
(function (pkg) {
return require('strip-indent')(
`
Usage:
$name --register [--expiresIn duration] <XO-Server URL> <username> [<password>]
Registers the XO instance to use.
--expiresIn duration
Can be used to change the validity duration of the
authorization token (default: one month).
$name --unregister
Remove stored credentials.
$name --list-commands [--json] [<pattern>]...
Returns the list of available commands on the current XO instance.
The patterns can be used to filter on command names.
$name --list-objects [--<property>]… [<property>=<value>]...
Returns a list of XO objects.
--<property>
Restricts displayed properties to those listed.
<property>=<value>
Restricted displayed objects to those matching the patterns.
$name <command> [<name>=<value>]...
Executes a command on the current XO instance.
$name v$version
`
).replace(/<([^>]+)>|\$(\w+)/g, function (_, arg, key) {
if (arg) {
return '<' + chalk.yellow(arg) + '>'
}
if (key === 'name') {
return chalk.bold(pkg[key])
}
return pkg[key]
})
})(require('../package'))
)
// -------------------------------------------------------------------
function main (args) {
if (!args || !args.length || args[0] === '-h') {
return help()
}
const fnName = args[0].replace(/^--|-\w/g, function (match) {
if (match === '--') {
return ''
}
return match[1].toUpperCase()
})
if (fnName in exports) {
return exports[fnName](args.slice(1))
}
return exports.call(args)
}
exports = module.exports = main
// -------------------------------------------------------------------
exports.help = help
async function register (args) {
let expiresIn
if (args[0] === '--expiresIn') {
expiresIn = args[1]
args = args.slice(2)
}
const [
url,
email,
password = await new Promise(function (resolve) {
process.stdout.write('Password: ')
pw(resolve)
}),
] = args
const xo = new Xo({ url })
await xo.open()
await xo.signIn({ email, password })
console.log('Successfully logged with', xo.user.email)
await config.set({
server: url,
token: await xo.call('token.create', { expiresIn }),
})
}
exports.register = register
function unregister () {
return config.unset(['server', 'token'])
}
exports.unregister = unregister
async function listCommands (args) {
const xo = await connect()
let methods = await xo.call('system.getMethodsInfo')
let json = false
const patterns = []
forEach(args, function (arg) {
if (arg === '--json') {
json = true
} else {
patterns.push(arg)
}
})
if (patterns.length) {
methods = pick(methods, micromatch(Object.keys(methods), patterns))
}
if (json) {
return methods
}
methods = pairs(methods)
methods.sort(function (a, b) {
a = a[0]
b = b[0]
if (a < b) {
return -1
}
return +(a > b)
})
const str = []
forEach(methods, function (method) {
const name = method[0]
const info = method[1]
str.push(chalk.bold.blue(name))
forEach(info.params || [], function (info, name) {
str.push(' ')
if (info.optional) {
str.push('[')
}
const type = info.type
str.push(
name,
'=<',
type == null ? 'unknown type' : isArray(type) ? type.join('|') : type,
'>'
)
if (info.optional) {
str.push(']')
}
})
str.push('\n')
if (info.description) {
str.push(' ', info.description, '\n')
}
})
return str.join('')
}
exports.listCommands = listCommands
async function listObjects (args) {
const properties = getKeys(extractFlags(args))
const filterProperties = properties.length
? function (object) {
return pick(object, properties)
}
: identity
const filter = args.length ? parseParameters(args) : undefined
const xo = await connect()
const objects = await xo.call('xo.getAllObjects', { filter })
const stdout = process.stdout
stdout.write('[\n')
const keys = Object.keys(objects)
for (let i = 0, n = keys.length; i < n;) {
stdout.write(JSON.stringify(filterProperties(objects[keys[i]]), null, 2))
stdout.write(++i < n ? ',\n' : '\n')
}
stdout.write(']\n')
}
exports.listObjects = listObjects
function ensurePathParam (method, value) {
if (typeof value !== 'string') {
const error =
method +
' requires the @ parameter to be a path (e.g. @=/tmp/config.json)'
throw error
}
}
async function call (args) {
if (!args.length) {
throw new Error('missing command name')
}
const method = args.shift()
const params = parseParameters(args)
const file = params['@']
delete params['@']
const xo = await connect()
// FIXME: do not use private properties.
const baseUrl = xo._url.replace(/^ws/, 'http')
const result = await xo.call(method, params)
let keys, key, url
if (isObject(result) && (keys = getKeys(result)).length === 1) {
key = keys[0]
if (key === '$getFrom') {
ensurePathParam(method, file)
url = resolveUrl(baseUrl, result[key])
const output = createWriteStream(file)
const progress = progressStream({ time: 1e3 }, printProgress)
return eventToPromise(
nicePipe([
got.stream(url).on('response', function (response) {
const length = response.headers['content-length']
if (length !== undefined) {
progress.length(length)
}
}),
progress,
output,
]),
'finish'
)
}
if (key === '$sendTo') {
ensurePathParam(method, file)
url = resolveUrl(baseUrl, result[key])
const stats = await stat(file)
const length = stats.size
const input = nicePipe([
createReadStream(file),
progressStream(
{
length: length,
time: 1e3,
},
printProgress
),
])
const response = await got.post(url, {
body: input,
headers: {
'content-length': length,
},
method: 'POST',
})
return response.body
}
}
return result
}
exports.call = call
// ===================================================================
if (!module.parent) {
require('exec-promise')(exports)
}

View File

@@ -0,0 +1,24 @@
/benchmark/
/benchmarks/
*.bench.js
*.bench.js.map
/examples/
example.js
example.js.map
*.example.js
*.example.js.map
/fixture/
/fixtures/
*.fixture.js
*.fixture.js.map
*.fixtures.js
*.fixtures.js.map
/test/
/tests/
*.spec.js
*.spec.js.map
__snapshots__/

View File

@@ -0,0 +1,662 @@
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

@@ -0,0 +1,265 @@
# xo-collection [![Build Status](https://travis-ci.org/vatesfr/xen-orchestra.png?branch=master)](https://travis-ci.org/vatesfr/xen-orchestra)
> Generic in-memory collection with events
## Install
Installation of the [npm package](https://npmjs.org/package/xo-collection):
```
> npm install --save xo-collection
```
## Usage
```javascript
var Collection = require('xo-collection')
```
### Creation
```javascript
// Creates a new collection.
var col = new Collection()
```
### Manipulation
**Inserting a new item**
```javascript
col.add('foo', true)
```
- **Throws** `DuplicateItem` if the item is already in the collection.
**Updating an existing item**
```javascript
col.update('foo', false)
```
- **Throws** `NoSuchItem` if the item is not in the collection.
**Inserting or updating an item**
```javascript
col.set('bar', true)
```
**Notifying an external update**
> If an item is an object, it can be updated directly without using
> the `set`/`update` methods.
>
> To make sure the collection stays in sync and the correct events are
> sent, the `touch` method can be used to notify the change.
```javascript
var baz = {}
col.add('baz', baz)
baz.prop = true
col.touch('baz')
```
> Because this is a much used pattern, `touch` returns the item to
> allow its direct modification.
```javascript
col.touch('baz').prop = false
```
- **Throws** `NoSuchItem` if the item is not in the collection.
- **Throws** `IllegalTouch` if the item is not an object.
**Removing an existing item**
```javascript
col.remove('bar')
```
- **Throws** `NoSuchItem` if the item is not in the collection.
**Removing an item without error**
This is the symmetric method of `set()`: it removes the item if it
exists otherwise does nothing.
```javascript
col.unset('bar')
```
**Removing all items**
```javascript
col.clear()
```
### Query
**Checking the existence of an item**
```javascript
var hasBar = col.has('bar')
```
**Getting an existing item**
```javascript
var foo = col.get('foo')
// The second parameter can be used to specify a fallback in case the
// item does not exist.
var bar = col.get('bar', 6.28)
```
- **Throws** `NoSuchItem` if the item is not in the collection and no
fallback has been passed.
**Getting a read-only view of the collection**
> This property is useful for example to iterate over the collection
> or to make advanced queries with the help of utility libraries such
> as lodash.
```javascript
var _ = require('lodash')
// Prints all the items.
_.forEach(col.all, function (value, key) {
console.log('- %s: %j', key, value)
})
// Finds all the items which are objects and have a property
// `active` which equals `true`.
var results = _.where(col.all, { active: true })
```
**Getting the number of items**
```javascript
var size = col.size
```
### Events
> The events are emitted asynchronously (at the next turn/tick of the
> event loop) and are deduplicated which means, for instance, that an
> addition followed by an update will result only in a single
> addition.
**New items**
```javascript
col.on('add', (added) => {
forEach(added, (value, key) => {
console.log('+ %s: %j', key, value)
})
})
```
**Updated items**
```javascript
col.on('update', (updated) => {
forEach(updated, (value, key) => {
console.log('± %s: %j', key, value)
})
})
```
**Removed items**
```javascript
col.on('remove', (removed) => {
// For consistency, `removed` is also a map but contrary to `added`
// and `updated`, the values associated to the keys are not
// significant since the items have already be removed.
forEach(removed, (value, key) => {
console.log('- %s', key)
})
})
```
**End of update**
> Emitted when all the update process is finished and all the update
> events has been emitted.
```javascript
col.on('finish', () => {
console.log('the collection has been updated')
})
```
### Iteration
```javascript
for (const [key, value] of col) {
console.log('- %s: %j', key, value)
}
for (const key of col.keys()) {
console.log('- %s', key)
}
for (const value of col.values()) {
console.log('- %j', value)
}
```
### Views
```javascript
const View = require('xo-collection/view')
```
> A view is a read-only collection which contains only the items of a
> parent collection which satisfy a predicate.
>
> It is updated at most once per turn of the event loop and therefore
> can be briefly invalid.
```javascript
const myView = new View(parentCollection, function predicate (value, key) {
// This function should return a boolean indicating whether the
// current item should be in this view.
})
```
## Development
```
# Install dependencies
> npm install
# Run the tests
> npm test
# Continuously compile
> npm run dev
# Continuously run the tests
> npm run dev-test
# Build for production (automatically called by npm install)
> npm run build
```
## Contributions
Contributions are *very* welcomed, either on the documentation or on
the code.
You may:
- report any [issue](https://github.com/vatesfr/xen-orchestra/issues)
you've encountered;
- fork and create a pull request.
## License
ISC © [Vates SAS](http://vates.fr)

View File

@@ -0,0 +1 @@
module.exports = require('./dist/index')

View File

@@ -0,0 +1,67 @@
{
"name": "xo-collection",
"version": "0.4.1",
"license": "ISC",
"description": "Generic in-memory collection with events",
"keywords": [],
"homepage": "https://github.com/vatesfr/xen-orchestra/tree/master/packages/xo-collection",
"bugs": "https://github.com/vatesfr/xen-orchestra/issues",
"repository": {
"type": "git",
"url": "https://github.com/vatesfr/xen-orchestra.git"
},
"author": {
"name": "Fabrice Marsaud",
"email": "fabrice.marsaud@vates.fr"
},
"preferGlobal": false,
"main": "dist/collection",
"bin": {},
"files": [
"dist/",
"*.js"
],
"engines": {
"node": ">=4"
},
"dependencies": {
"babel-runtime": "^6.18.0",
"kindof": "^2.0.0",
"lodash": "^4.17.2",
"make-error": "^1.0.2"
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-plugin-lodash": "^3.3.2",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.5.2",
"babel-preset-stage-3": "^6.24.1",
"cross-env": "^5.1.3",
"event-to-promise": "^0.8.0",
"rimraf": "^2.6.1"
},
"scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
"prebuild": "rimraf dist/",
"predev": "yarn run prebuild",
"prepublishOnly": "yarn run build"
},
"babel": {
"plugins": [
"lodash",
"transform-runtime"
],
"presets": [
[
"env",
{
"targets": {
"node": 4
}
}
],
"stage-3"
]
}
}

View File

@@ -0,0 +1,5 @@
export default function clearObject (object) {
for (const key in object) {
delete object[key]
}
}

View File

@@ -0,0 +1,361 @@
import kindOf from 'kindof'
import { BaseError } from 'make-error'
import { EventEmitter } from 'events'
import { forEach } from 'lodash'
import isEmpty from './is-empty'
import isObject from './is-object'
// ===================================================================
const { create: createObject, prototype: { hasOwnProperty } } = Object
export const ACTION_ADD = 'add'
export const ACTION_UPDATE = 'update'
export const ACTION_REMOVE = 'remove'
// ===================================================================
export class BufferAlreadyFlushed extends BaseError {
constructor () {
super('buffer flush already requested')
}
}
export class DuplicateIndex extends BaseError {
constructor (name) {
super('there is already an index with the name ' + name)
}
}
export class DuplicateItem extends BaseError {
constructor (key) {
super('there is already a item with the key ' + key)
}
}
export class IllegalTouch extends BaseError {
constructor (value) {
super('only an object value can be touched (found a ' + kindOf(value) + ')')
}
}
export class InvalidKey extends BaseError {
constructor (key) {
super('invalid key of type ' + kindOf(key))
}
}
export class NoSuchIndex extends BaseError {
constructor (name) {
super('there is no index with the name ' + name)
}
}
export class NoSuchItem extends BaseError {
constructor (key) {
super('there is no item with the key ' + key)
}
}
// -------------------------------------------------------------------
export default class Collection extends EventEmitter {
constructor () {
super()
this._buffer = createObject(null)
this._buffering = 0
this._indexes = createObject(null)
this._indexedItems = createObject(null)
this._items = {} // createObject(null)
this._size = 0
}
// Overridable method used to compute the key of an item when
// unspecified.
//
// Default implementation returns the `id` property.
getKey (value) {
return value && value.id
}
// -----------------------------------------------------------------
// Properties
// -----------------------------------------------------------------
get all () {
return this._items
}
get indexes () {
return this._indexedItems
}
get size () {
return this._size
}
// -----------------------------------------------------------------
// Manipulation
// -----------------------------------------------------------------
add (keyOrObjectWithId, valueIfKey = undefined) {
const [key, value] = this._resolveItem(keyOrObjectWithId, valueIfKey)
this._assertHasNot(key)
this._items[key] = value
this._size++
this._touch(ACTION_ADD, key)
}
clear () {
forEach(this._items, (_, key) => this._remove(key))
}
remove (keyOrObjectWithId) {
const [key] = this._resolveItem(keyOrObjectWithId)
this._assertHas(key)
this._remove(key)
}
set (keyOrObjectWithId, valueIfKey = undefined) {
const [key, value] = this._resolveItem(keyOrObjectWithId, valueIfKey)
const action = this.has(key) ? ACTION_UPDATE : ACTION_ADD
this._items[key] = value
if (action === ACTION_ADD) {
this._size++
}
this._touch(action, key)
}
touch (keyOrObjectWithId) {
const [key] = this._resolveItem(keyOrObjectWithId)
this._assertHas(key)
const value = this.get(key)
if (!isObject(value)) {
throw new IllegalTouch(value)
}
this._touch(ACTION_UPDATE, key)
return this.get(key)
}
unset (keyOrObjectWithId) {
const [key] = this._resolveItem(keyOrObjectWithId)
if (this.has(key)) {
this._remove(key)
}
}
update (keyOrObjectWithId, valueIfKey = undefined) {
const [key, value] = this._resolveItem(keyOrObjectWithId, valueIfKey)
this._assertHas(key)
this._items[key] = value
this._touch(ACTION_UPDATE, key)
}
// -----------------------------------------------------------------
// Query
// -----------------------------------------------------------------
get (key, defaultValue) {
if (this.has(key)) {
return this._items[key]
}
if (arguments.length > 1) {
return defaultValue
}
// Throws a NoSuchItem.
this._assertHas(key)
}
has (key) {
return hasOwnProperty.call(this._items, key)
}
// -----------------------------------------------------------------
// Indexes
// -----------------------------------------------------------------
createIndex (name, index) {
const { _indexes: indexes } = this
if (hasOwnProperty.call(indexes, name)) {
throw new DuplicateIndex(name)
}
indexes[name] = index
this._indexedItems[name] = index.items
index._attachCollection(this)
}
deleteIndex (name) {
const { _indexes: indexes } = this
if (!hasOwnProperty.call(indexes, name)) {
throw new NoSuchIndex(name)
}
const index = indexes[name]
delete indexes[name]
delete this._indexedItems[name]
index._detachCollection(this)
}
// -----------------------------------------------------------------
// Iteration
// -----------------------------------------------------------------
* [Symbol.iterator] () {
const { _items: items } = this
for (const key in items) {
yield [key, items[key]]
}
}
* keys () {
const { _items: items } = this
for (const key in items) {
yield key
}
}
* values () {
const { _items: items } = this
for (const key in items) {
yield items[key]
}
}
// -----------------------------------------------------------------
// Events buffering
// -----------------------------------------------------------------
bufferEvents () {
++this._buffering
let called = false
return () => {
if (called) {
throw new BufferAlreadyFlushed()
}
called = true
if (--this._buffering) {
return
}
const { _buffer: buffer } = this
// Due to deduplication there could be nothing in the buffer.
if (isEmpty(buffer)) {
return
}
const data = {
add: createObject(null),
remove: createObject(null),
update: createObject(null),
}
for (const key in this._buffer) {
data[buffer[key]][key] = this._items[key]
}
forEach(data, (items, action) => {
if (!isEmpty(items)) {
this.emit(action, items)
}
})
// Indicates the end of the update.
//
// This name has been chosen because it is used in Node writable
// streams when the data has been successfully committed.
this.emit('finish')
this._buffer = createObject(null)
}
}
// =================================================================
_assertHas (key) {
if (!this.has(key)) {
throw new NoSuchItem(key)
}
}
_assertHasNot (key) {
if (this.has(key)) {
throw new DuplicateItem(key)
}
}
_assertValidKey (key) {
if (!this._isValidKey(key)) {
throw new InvalidKey(key)
}
}
_isValidKey (key) {
return typeof key === 'number' || typeof key === 'string'
}
_remove (key) {
delete this._items[key]
this._size--
this._touch(ACTION_REMOVE, key)
}
_resolveItem (keyOrObjectWithId, valueIfKey = undefined) {
if (valueIfKey !== undefined) {
this._assertValidKey(keyOrObjectWithId)
return [keyOrObjectWithId, valueIfKey]
}
if (this._isValidKey(keyOrObjectWithId)) {
return [keyOrObjectWithId]
}
const key = this.getKey(keyOrObjectWithId)
this._assertValidKey(key)
return [key, keyOrObjectWithId]
}
_touch (action, key) {
if (this._buffering === 0) {
const flush = this.bufferEvents()
process.nextTick(flush)
}
if (action === ACTION_ADD) {
this._buffer[key] = this._buffer[key] ? ACTION_UPDATE : ACTION_ADD
} else if (action === ACTION_REMOVE) {
if (this._buffer[key] === ACTION_ADD) {
delete this._buffer[key]
} else {
this._buffer[key] = ACTION_REMOVE
}
} else {
// update
if (!this._buffer[key]) {
this._buffer[key] = ACTION_UPDATE
}
}
}
}

View File

@@ -0,0 +1,325 @@
/* eslint-env jest */
import eventToPromise from 'event-to-promise'
import { forEach } from 'lodash'
import Collection, { DuplicateItem, NoSuchItem } from './collection'
// ===================================================================
function waitTicks (n = 2) {
const { nextTick } = process
return new Promise(function (resolve) {
;(function waitNextTick () {
// The first tick is handled by Promise#then()
if (--n) {
nextTick(waitNextTick)
} else {
resolve()
}
})()
})
}
describe('Collection', function () {
let col
beforeEach(function () {
col = new Collection()
col.add('bar', 0)
return waitTicks()
})
it('is iterable', function () {
const iterator = col[Symbol.iterator]()
expect(iterator.next()).toEqual({ done: false, value: ['bar', 0] })
expect(iterator.next()).toEqual({ done: true, value: undefined })
})
describe('#keys()', function () {
it('returns an iterator over the keys', function () {
const iterator = col.keys()
expect(iterator.next()).toEqual({ done: false, value: 'bar' })
expect(iterator.next()).toEqual({ done: true, value: undefined })
})
})
describe('#values()', function () {
it('returns an iterator over the values', function () {
const iterator = col.values()
expect(iterator.next()).toEqual({ done: false, value: 0 })
expect(iterator.next()).toEqual({ done: true, value: undefined })
})
})
describe('#add()', function () {
it('adds item to the collection', function () {
const spy = jest.fn()
col.on('add', spy)
col.add('foo', true)
expect(col.get('foo')).toBe(true)
// No sync events.
expect(spy).not.toHaveBeenCalled()
// Async event.
return eventToPromise(col, 'add').then(function (added) {
expect(Object.keys(added)).toEqual(['foo'])
expect(added.foo).toBe(true)
})
})
it('throws an exception if the item already exists', function () {
expect(() => col.add('bar', true)).toThrowError(DuplicateItem)
})
it('accepts an object with an id property', function () {
const foo = { id: 'foo' }
col.add(foo)
expect(col.get(foo.id)).toBe(foo)
})
})
describe('#update()', function () {
it('updates an item of the collection', function () {
const spy = jest.fn()
col.on('update', spy)
col.update('bar', 1)
expect(col.get('bar')).toBe(1) // Will be forgotten by de-duplication
col.update('bar', 2)
expect(col.get('bar')).toBe(2)
// No sync events.
expect(spy).not.toHaveBeenCalled()
// Async event.
return eventToPromise(col, 'update').then(function (updated) {
expect(Object.keys(updated)).toEqual(['bar'])
expect(updated.bar).toBe(2)
})
})
it('throws an exception if the item does not exist', function () {
expect(() => col.update('baz', true)).toThrowError(NoSuchItem)
})
it('accepts an object with an id property', function () {
const bar = { id: 'bar' }
col.update(bar)
expect(col.get(bar.id)).toBe(bar)
})
})
describe('#remove()', function () {
it('removes an item of the collection', function () {
const spy = jest.fn()
col.on('remove', spy)
col.update('bar', 1)
expect(col.get('bar')).toBe(1) // Will be forgotten by de-duplication
col.remove('bar')
// No sync events.
expect(spy).not.toHaveBeenCalled()
// Async event.
return eventToPromise(col, 'remove').then(function (removed) {
expect(Object.keys(removed)).toEqual(['bar'])
expect(removed.bar).toBeUndefined()
})
})
it('throws an exception if the item does not exist', function () {
expect(() => col.remove('baz', true)).toThrowError(NoSuchItem)
})
it('accepts an object with an id property', function () {
const bar = { id: 'bar' }
col.remove(bar)
expect(col.has(bar.id)).toBe(false)
})
})
describe('#set()', function () {
it('adds item if collection has not key', function () {
const spy = jest.fn()
col.on('add', spy)
col.set('foo', true)
expect(col.get('foo')).toBe(true)
// No sync events.
expect(spy).not.toHaveBeenCalled()
// Async events.
return eventToPromise(col, 'add').then(function (added) {
expect(Object.keys(added)).toEqual(['foo'])
expect(added.foo).toBe(true)
})
})
it('updates item if collection has key', function () {
const spy = jest.fn()
col.on('udpate', spy)
col.set('bar', 1)
expect(col.get('bar')).toBe(1)
// No sync events.
expect(spy).not.toHaveBeenCalled()
// Async events.
return eventToPromise(col, 'update').then(function (updated) {
expect(Object.keys(updated)).toEqual(['bar'])
expect(updated.bar).toBe(1)
})
})
it('accepts an object with an id property', function () {
const foo = { id: 'foo' }
col.set(foo)
expect(col.get(foo.id)).toBe(foo)
})
})
describe('#unset()', function () {
it('removes an existing item', function () {
col.unset('bar')
expect(col.has('bar')).toBe(false)
return eventToPromise(col, 'remove').then(function (removed) {
expect(Object.keys(removed)).toEqual(['bar'])
expect(removed.bar).toBeUndefined()
})
})
it('does not throw if the item does not exists', function () {
col.unset('foo')
})
it('accepts an object with an id property', function () {
col.unset({ id: 'bar' })
expect(col.has('bar')).toBe(false)
return eventToPromise(col, 'remove').then(function (removed) {
expect(Object.keys(removed)).toEqual(['bar'])
expect(removed.bar).toBeUndefined()
})
})
})
describe('touch()', function () {
it('can be used to signal an indirect update', function () {
const foo = { id: 'foo' }
col.add(foo)
return waitTicks().then(() => {
col.touch(foo)
return eventToPromise(col, 'update', items => {
expect(Object.keys(items)).toEqual(['foo'])
expect(items.foo).toBe(foo)
})
})
})
})
describe('clear()', function () {
it('removes all items from the collection', function () {
col.clear()
expect(col.size).toBe(0)
return eventToPromise(col, 'remove').then(items => {
expect(Object.keys(items)).toEqual(['bar'])
expect(items.bar).toBeUndefined()
})
})
})
describe('deduplicates events', function () {
forEach(
{
'add & update → add': [
[['add', 'foo', 0], ['update', 'foo', 1]],
{
add: {
foo: 1,
},
},
],
'add & remove → ∅': [[['add', 'foo', 0], ['remove', 'foo']], {}],
'update & update → update': [
[['update', 'bar', 1], ['update', 'bar', 2]],
{
update: {
bar: 2,
},
},
],
'update & remove → remove': [
[['update', 'bar', 1], ['remove', 'bar']],
{
remove: {
bar: undefined,
},
},
],
'remove & add → update': [
[['remove', 'bar'], ['add', 'bar', 0]],
{
update: {
bar: 0,
},
},
],
},
([operations, results], label) => {
it(label, function () {
forEach(operations, ([method, ...args]) => {
col[method](...args)
})
const spies = Object.create(null)
forEach(['add', 'update', 'remove'], event => {
col.on(event, (spies[event] = jest.fn()))
})
return waitTicks().then(() => {
forEach(spies, (spy, event) => {
const items = results[event]
if (items) {
expect(spy.mock.calls).toEqual([[items]])
} else {
expect(spy).not.toHaveBeenCalled()
}
})
})
})
}
)
})
})

View File

@@ -0,0 +1,136 @@
import { bind, iteratee } from 'lodash'
import clearObject from './clear-object'
import isEmpty from './is-empty'
import NotImplemented from './not-implemented'
import { ACTION_ADD, ACTION_UPDATE, ACTION_REMOVE } from './collection'
// ===================================================================
export default class Index {
constructor (computeHash) {
if (computeHash) {
this.computeHash = iteratee(computeHash)
}
this._itemsByHash = Object.create(null)
this._keysToHash = Object.create(null)
// Bound versions of listeners.
this._onAdd = bind(this._onAdd, this)
this._onUpdate = bind(this._onUpdate, this)
this._onRemove = bind(this._onRemove, this)
}
// This method is used to compute the hash under which an item must
// be saved.
computeHash (value, key) {
throw new NotImplemented('this method must be overridden')
}
// Remove empty items lists.
sweep () {
const { _itemsByHash: itemsByHash } = this
for (const hash in itemsByHash) {
if (isEmpty(itemsByHash[hash])) {
delete itemsByHash[hash]
}
}
}
// -----------------------------------------------------------------
get items () {
return this._itemsByHash
}
// -----------------------------------------------------------------
_attachCollection (collection) {
// Add existing entries.
//
// FIXME: I think there may be a race condition if the `add` event
// has not been emitted yet.
this._onAdd(collection.all)
collection.on(ACTION_ADD, this._onAdd)
collection.on(ACTION_UPDATE, this._onUpdate)
collection.on(ACTION_REMOVE, this._onRemove)
}
_detachCollection (collection) {
collection.removeListener(ACTION_ADD, this._onAdd)
collection.removeListener(ACTION_UPDATE, this._onUpdate)
collection.removeListener(ACTION_REMOVE, this._onRemove)
clearObject(this._itemsByHash)
clearObject(this._keysToHash)
}
// -----------------------------------------------------------------
_onAdd (items) {
const {
computeHash,
_itemsByHash: itemsByHash,
_keysToHash: keysToHash,
} = this
for (const key in items) {
const value = items[key]
const hash = computeHash(value, key)
if (hash != null) {
;(itemsByHash[hash] ||
// FIXME: We do not use objects without prototype for now
// because it breaks Angular in xo-web, change it back when
// this is fixed.
(itemsByHash[hash] = {}))[key] = value
keysToHash[key] = hash
}
}
}
_onUpdate (items) {
const {
computeHash,
_itemsByHash: itemsByHash,
_keysToHash: keysToHash,
} = this
for (const key in items) {
const value = items[key]
const prev = keysToHash[key]
const hash = computeHash(value, key)
// Removes item from the previous hash's list if any.
if (prev != null) delete itemsByHash[prev][key]
// Inserts item into the new hash's list if any.
if (hash != null) {
;(itemsByHash[hash] ||
// FIXME: idem: change back to Object.create(null)
(itemsByHash[hash] = {}))[key] = value
keysToHash[key] = hash
} else {
delete keysToHash[key]
}
}
}
_onRemove (items) {
const { _itemsByHash: itemsByHash, _keysToHash: keysToHash } = this
for (const key in items) {
const prev = keysToHash[key]
if (prev != null) {
delete itemsByHash[prev][key]
delete keysToHash[key]
}
}
}
}

View File

@@ -0,0 +1,180 @@
/* eslint-env jest */
import eventToPromise from 'event-to-promise'
import { forEach } from 'lodash'
import Collection from './collection'
import Index from './index'
// ===================================================================
const waitTicks = (n = 2) => {
const { nextTick } = process
return new Promise(resolve => {
;(function waitNextTick () {
// The first tick is handled by Promise#then()
if (--n) {
nextTick(waitNextTick)
} else {
resolve()
}
})()
})
}
// ===================================================================
describe('Index', function () {
let col, byGroup
const item1 = {
id: '2ccb8a72-dc65-48e4-88fe-45ef541f2cba',
group: 'foo',
}
const item2 = {
id: '7d21dc51-4da8-4538-a2e9-dd6f4784eb76',
group: 'bar',
}
const item3 = {
id: '668c1274-4442-44a6-b99a-512188e0bb09',
group: 'foo',
}
const item4 = {
id: 'd90b7335-e540-4a44-ad22-c4baae9cd0a9',
}
beforeEach(function () {
col = new Collection()
forEach([item1, item2, item3, item4], item => {
col.add(item)
})
byGroup = new Index('group')
col.createIndex('byGroup', byGroup)
return waitTicks()
})
it('works with existing items', function () {
expect(col.indexes).toEqual({
byGroup: {
foo: {
[item1.id]: item1,
[item3.id]: item3,
},
bar: {
[item2.id]: item2,
},
},
})
})
it('works with added items', function () {
const item5 = {
id: '823b56c4-4b96-4f3a-9533-5d08177167ac',
group: 'baz',
}
col.add(item5)
return waitTicks().then(() => {
expect(col.indexes).toEqual({
byGroup: {
foo: {
[item1.id]: item1,
[item3.id]: item3,
},
bar: {
[item2.id]: item2,
},
baz: {
[item5.id]: item5,
},
},
})
})
})
it('works with updated items', function () {
const item1bis = {
id: item1.id,
group: 'bar',
}
col.update(item1bis)
return waitTicks().then(() => {
expect(col.indexes).toEqual({
byGroup: {
foo: {
[item3.id]: item3,
},
bar: {
[item1.id]: item1bis,
[item2.id]: item2,
},
},
})
})
})
it('works with removed items', function () {
col.remove(item2)
return waitTicks().then(() => {
expect(col.indexes).toEqual({
byGroup: {
foo: {
[item1.id]: item1,
[item3.id]: item3,
},
bar: {},
},
})
})
})
it('correctly updates the value even the same object has the same hash', function () {
const item1bis = {
id: item1.id,
group: item1.group,
newProp: true,
}
col.update(item1bis)
return eventToPromise(col, 'finish').then(() => {
expect(col.indexes).toEqual({
byGroup: {
foo: {
[item1.id]: item1bis,
[item3.id]: item3,
},
bar: {
[item2.id]: item2,
},
},
})
})
})
describe('#sweep()', function () {
it('removes empty items lists', function () {
col.remove(item2)
return waitTicks().then(() => {
byGroup.sweep()
expect(col.indexes).toEqual({
byGroup: {
foo: {
[item1.id]: item1,
[item3.id]: item3,
},
},
})
})
})
})
})

View File

@@ -0,0 +1,7 @@
export default function isEmpty (object) {
/* eslint no-unused-vars: 0 */
for (const key in object) {
return false
}
return true
}

View File

@@ -0,0 +1,3 @@
export default function isObject (value) {
return value !== null && typeof value === 'object'
}

View File

@@ -0,0 +1,7 @@
import { BaseError } from 'make-error'
export default class NotImplemented extends BaseError {
constructor (message) {
super(message || 'this method is not implemented')
}
}

View File

@@ -0,0 +1,117 @@
import { bind, iteratee } from 'lodash'
import clearObject from './clear-object'
import NotImplemented from './not-implemented'
import { ACTION_ADD, ACTION_UPDATE, ACTION_REMOVE } from './collection'
// ===================================================================
export default class UniqueIndex {
constructor (computeHash) {
if (computeHash) {
this.computeHash = iteratee(computeHash)
}
this._itemByHash = Object.create(null)
this._keysToHash = Object.create(null)
// Bound versions of listeners.
this._onAdd = bind(this._onAdd, this)
this._onUpdate = bind(this._onUpdate, this)
this._onRemove = bind(this._onRemove, this)
}
// This method is used to compute the hash under which an item must
// be saved.
computeHash (value, key) {
throw new NotImplemented('this method must be overridden')
}
// -----------------------------------------------------------------
get items () {
return this._itemByHash
}
// -----------------------------------------------------------------
_attachCollection (collection) {
// Add existing entries.
//
// FIXME: I think there may be a race condition if the `add` event
// has not been emitted yet.
this._onAdd(collection.all)
collection.on(ACTION_ADD, this._onAdd)
collection.on(ACTION_UPDATE, this._onUpdate)
collection.on(ACTION_REMOVE, this._onRemove)
}
_detachCollection (collection) {
collection.removeListener(ACTION_ADD, this._onAdd)
collection.removeListener(ACTION_UPDATE, this._onUpdate)
collection.removeListener(ACTION_REMOVE, this._onRemove)
clearObject(this._itemByHash)
clearObject(this._keysToHash)
}
// -----------------------------------------------------------------
_onAdd (items) {
const {
computeHash,
_itemByHash: itemByHash,
_keysToHash: keysToHash,
} = this
for (const key in items) {
const value = items[key]
const hash = computeHash(value, key)
if (hash != null) {
itemByHash[hash] = value
keysToHash[key] = hash
}
}
}
_onUpdate (items) {
const {
computeHash,
_itemByHash: itemByHash,
_keysToHash: keysToHash,
} = this
for (const key in items) {
const value = items[key]
const prev = keysToHash[key]
const hash = computeHash(value, key)
// Removes item from the previous hash's list if any.
if (prev != null) delete itemByHash[prev]
// Inserts item into the new hash's list if any.
if (hash != null) {
itemByHash[hash] = value
keysToHash[key] = hash
} else {
delete keysToHash[key]
}
}
}
_onRemove (items) {
const { _itemByHash: itemByHash, _keysToHash: keysToHash } = this
for (const key in items) {
const prev = keysToHash[key]
if (prev != null) {
delete itemByHash[prev]
delete keysToHash[key]
}
}
}
}

View File

@@ -0,0 +1,131 @@
/* eslint-env jest */
import eventToPromise from 'event-to-promise'
import { forEach } from 'lodash'
import Collection from './collection'
import Index from './unique-index'
// ===================================================================
const waitTicks = (n = 2) => {
const { nextTick } = process
return new Promise(resolve => {
;(function waitNextTick () {
// The first tick is handled by Promise#then()
if (--n) {
nextTick(waitNextTick)
} else {
resolve()
}
})()
})
}
// ===================================================================
describe('UniqueIndex', function () {
let col, byKey
const item1 = {
id: '2ccb8a72-dc65-48e4-88fe-45ef541f2cba',
key: '036dee1b-9a3b-4fb5-be8a-4f535b355581',
}
const item2 = {
id: '7d21dc51-4da8-4538-a2e9-dd6f4784eb76',
key: '103cd893-d2cc-4d37-96fd-c259ad04c0d4',
}
const item3 = {
id: '668c1274-4442-44a6-b99a-512188e0bb09',
}
beforeEach(function () {
col = new Collection()
forEach([item1, item2, item3], item => {
col.add(item)
})
byKey = new Index('key')
col.createIndex('byKey', byKey)
return waitTicks()
})
it('works with existing items', function () {
expect(col.indexes).toEqual({
byKey: {
[item1.key]: item1,
[item2.key]: item2,
},
})
})
it('works with added items', function () {
const item4 = {
id: '823b56c4-4b96-4f3a-9533-5d08177167ac',
key: '1437af14-429a-40db-8a51-8a2f5ed03201',
}
col.add(item4)
return waitTicks().then(() => {
expect(col.indexes).toEqual({
byKey: {
[item1.key]: item1,
[item2.key]: item2,
[item4.key]: item4,
},
})
})
})
it('works with updated items', function () {
const item1bis = {
id: item1.id,
key: 'e03d4a3a-0331-4aca-97a2-016bbd43a29b',
}
col.update(item1bis)
return waitTicks().then(() => {
expect(col.indexes).toEqual({
byKey: {
[item1bis.key]: item1bis,
[item2.key]: item2,
},
})
})
})
it('works with removed items', function () {
col.remove(item2)
return waitTicks().then(() => {
expect(col.indexes).toEqual({
byKey: {
[item1.key]: item1,
},
})
})
})
it('correctly updates the value even the same object has the same hash', function () {
const item1bis = {
id: item1.id,
key: item1.key,
newProp: true,
}
col.update(item1bis)
return eventToPromise(col, 'finish').then(() => {
expect(col.indexes).toEqual({
byKey: {
[item1.key]: item1bis,
[item2.key]: item2,
},
})
})
})
})

View File

@@ -0,0 +1,56 @@
import { forEach } from 'lodash'
import Collection from './collection'
import View from './view'
// ===================================================================
// Create the collection.
const users = new Collection()
users.getKey = user => user.name
// Inserts some data.
users.add({
name: 'bob',
})
users.add({
name: 'clara',
active: true,
})
users.add({
name: 'ophelia',
})
users.add({
name: 'Steve',
active: true,
})
// -------------------------------------------------------------------
// Create the view.
const activeUsers = new View(users, 'active')
// Register some event listeners to see the changes.
activeUsers.on('add', users => {
forEach(users, (_, id) => {
console.log('+ active user:', id)
})
})
activeUsers.on('remove', users => {
forEach(users, (_, id) => {
console.log('- active user:', id)
})
})
// Make some changes in the future.
setTimeout(function () {
console.log('-----')
users.set({
name: 'ophelia',
active: true,
})
users.set({
name: 'Steve',
})
}, 10)

View File

@@ -0,0 +1,88 @@
import { bind, forEach, iteratee as createCallback } from 'lodash'
import Collection, {
ACTION_ADD,
ACTION_UPDATE,
ACTION_REMOVE,
} from './collection'
// ===================================================================
export default class View extends Collection {
constructor (collection, predicate) {
super()
this._collection = collection
this._predicate = createCallback(predicate)
// Handles initial items.
this._onAdd(this._collection.all)
// Bound versions of listeners.
this._onAdd = bind(this._onAdd, this)
this._onUpdate = bind(this._onUpdate, this)
this._onRemove = bind(this._onRemove, this)
// Register listeners.
this._collection.on(ACTION_ADD, this._onAdd)
this._collection.on(ACTION_UPDATE, this._onUpdate)
this._collection.on(ACTION_REMOVE, this._onRemove)
}
// This method is necessary to free the memory of the view if its
// life span is shorter than the collection.
destroy () {
this._collection.removeListener(ACTION_ADD, this._onAdd)
this._collection.removeListener(ACTION_UPDATE, this._onUpdate)
this._collection.removeListener(ACTION_REMOVE, this._onRemove)
}
add () {
throw new Error('a view is read only')
}
clear () {
throw new Error('a view is read only')
}
set () {
throw new Error('a view is read only')
}
update () {
throw new Error('a view is read only')
}
_onAdd (items) {
const { _predicate: predicate } = this
forEach(items, (value, key) => {
if (predicate(value, key, this)) {
// super.add() cannot be used because the item may already be
// in the view if it was already present at the creation of
// the view and its event not already emitted.
super.set(key, value)
}
})
}
_onUpdate (items) {
const { _predicate: predicate } = this
forEach(items, (value, key) => {
if (predicate(value, key, this)) {
super.set(key, value)
} else if (super.has(key)) {
super.remove(key)
}
})
}
_onRemove (items) {
forEach(items, (value, key) => {
if (super.has(key)) {
super.remove(key)
}
})
}
}

View File

@@ -0,0 +1 @@
module.exports = require('./dist/unique-index')

View File

@@ -0,0 +1 @@
module.exports = require('./dist/view')

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

@@ -0,0 +1,49 @@
# xo-common [![Build Status](https://travis-ci.org/vatesfr/xen-orchestra.png?branch=master)](https://travis-ci.org/vatesfr/xen-orchestra)
> Code shared between [XO](https://xen-orchestra.com) server and clients
## Install
Installation of the [npm package](https://npmjs.org/package/xo-common):
```
> npm install --save xo-common
```
## Usage
**TODO**
## Development
```
# Install dependencies
> npm install
# Run the tests
> npm test
# Continuously compile
> npm run dev
# Continuously run the tests
> npm run dev-test
# Build for production (automatically called by npm install)
> npm run build
```
## Contributions
Contributions are *very* welcomed, either on the documentation or on
the code.
You may:
- report any [issue](https://github.com/vatesfr/xen-orchestra/issues)
you've encountered;
- fork and create a pull request.
## License
AGPL3 © [Vates SAS](https://vates.fr)

View File

@@ -0,0 +1 @@
module.exports = require('./dist/api-errors')

View File

@@ -0,0 +1,65 @@
{
"name": "xo-common",
"version": "0.1.1",
"license": "AGPL-3.0",
"description": "Code shared between [XO](https://xen-orchestra.com) server and clients",
"keywords": [],
"homepage": "https://github.com/vatesfr/xen-orchestra/tree/master/packages/xo-common",
"bugs": "https://github.com/vatesfr/xen-orchestra/issues",
"repository": {
"type": "git",
"url": "https://github.com/vatesfr/xen-orchestra.git"
},
"author": {
"name": "Julien Fontanet",
"email": "julien.fontanet@isonoe.net"
},
"preferGlobal": false,
"bin": {},
"files": [
"dist/",
"*.js"
],
"engines": {
"node": ">=4"
},
"dependencies": {
"babel-runtime": "^6.18.0",
"lodash": "^4.16.6",
"make-error": "^1.2.1"
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-plugin-lodash": "^3.3.2",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.5.2",
"babel-preset-stage-3": "^6.24.1",
"cross-env": "^5.1.3",
"rimraf": "^2.6.1"
},
"scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"clean": "rimraf dist/",
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
"prebuild": "yarn run clean",
"predev": "yarn run prebuild",
"prepublishOnly": "yarn run build"
},
"babel": {
"plugins": [
"lodash"
],
"presets": [
[
"env",
{
"targets": {
"browsers": "> 1%",
"node": 4
}
}
],
"stage-3"
]
}
}

View File

@@ -0,0 +1,166 @@
import { BaseError } from 'make-error'
import { isArray, iteratee } from 'lodash'
class XoError extends BaseError {
constructor ({ code, message, data }) {
super(message)
this.code = code
this.data = data
}
toJsonRpcError () {
return {
message: this.message,
code: this.code,
data: this.data,
}
}
}
const create = (code, getProps) => {
const factory = (...args) => new XoError({ ...getProps(...args), code })
factory.is = (error, predicate) =>
error.code === code && iteratee(predicate)(error)
return factory
}
// =============================================================================
export const notImplemented = create(0, () => ({
message: 'not implemented',
}))
export const noSuchObject = create(1, (id, type) => ({
data: { id, type },
message: 'no such object',
}))
export const unauthorized = create(2, () => ({
message: 'not authenticated or not enough permissions',
}))
export const invalidCredentials = create(3, () => ({
message: 'invalid credentials',
}))
// Deprecated alreadyAuthenticated (4)
export const forbiddenOperation = create(5, (operation, reason) => ({
data: { operation, reason },
message: `forbidden operation: ${operation}`,
}))
// Deprecated GenericError (6)
export const noHostsAvailable = create(7, () => ({
message: 'no hosts available',
}))
export const authenticationFailed = create(8, () => ({
message: 'authentication failed',
}))
export const serverUnreachable = create(9, objectId => ({
data: {
objectId,
},
message: 'server unreachable',
}))
export const invalidParameters = create(10, (message, errors) => {
if (isArray(message)) {
errors = message
message = undefined
}
return {
data: { errors },
message: message || 'invalid parameters',
}
})
export const vmMissingPvDrivers = create(11, ({ vm }) => ({
data: {
objectId: vm,
},
message: 'missing PV drivers',
}))
export const vmIsTemplate = create(12, ({ vm }) => ({
data: {
objectId: vm,
},
message: 'VM is a template',
}))
// TODO: We should probably create a more generic error which gathers all incorrect state errors.
// e.g.:
// incorrectState {
// data: {
// objectId: 'af43e227-3deb-4822-a79b-968825de72eb',
// property: 'power_state',
// actual: 'Running',
// expected: 'Halted'
// },
// message: 'incorrect state'
// }
export const vmBadPowerState = create(13, ({ vm, expected, actual }) => ({
data: {
objectId: vm,
expected,
actual,
},
message: `VM state is ${actual} but should be ${expected}`,
}))
export const vmLacksFeature = create(14, ({ vm, feature }) => ({
data: {
objectId: vm,
feature,
},
message: `VM lacks feature ${feature || ''}`,
}))
export const notSupportedDuringUpgrade = create(15, () => ({
message: 'not supported during upgrade',
}))
export const objectAlreadyExists = create(16, ({ objectId, objectType }) => ({
data: {
objectId,
objectType,
},
message: `${objectType || 'object'} already exists`,
}))
export const vdiInUse = create(17, ({ vdi, operation }) => ({
data: {
objectId: vdi,
operation,
},
message: 'VDI in use',
}))
export const hostOffline = create(18, ({ host }) => ({
data: {
objectId: host,
},
message: 'host offline',
}))
export const operationBlocked = create(19, ({ objectId, code }) => ({
data: {
objectId,
code,
},
message: 'operation blocked',
}))
export const patchPrecheckFailed = create(20, ({ errorType, patch }) => ({
data: {
objectId: patch,
errorType,
},
message: `patch precheck failed: ${errorType}`,
}))

View File

@@ -0,0 +1,24 @@
/benchmark/
/benchmarks/
*.bench.js
*.bench.js.map
/examples/
example.js
example.js.map
*.example.js
*.example.js.map
/fixture/
/fixtures/
*.fixture.js
*.fixture.js.map
*.fixtures.js
*.fixtures.js.map
/test/
/tests/
*.spec.js
*.spec.js.map
__snapshots__/

168
packages/xo-lib/README.md Normal file
View File

@@ -0,0 +1,168 @@
# xo-lib [![Build Status](https://travis-ci.org/vatesfr/xen-orchestra.png?branch=master)](https://travis-ci.org/vatesfr/xen-orchestra)
> Library to connect to XO-Server.
## Install
Installation of the [npm package](https://npmjs.org/package/xo-lib):
```
npm install --save xo-lib
```
Then require the package:
```javascript
import Xo from 'xo-lib'
```
## Usage
> If the URL is not provided and the current environment is a web
> browser, the location of the current page will be used.
```javascript
// Connect to XO.
const xo = new Xo({ url: 'https://xo.company.tld' })
// Let's start by opening the connection.
await xo.open()
// Must sign in before being able to call any methods (all calls will
// be buffered until signed in).
await xo.signIn({
email: 'admin@admin.net',
password: 'admin'
})
console('signed as', xo.user)
```
The credentials can also be passed directly to the constructor:
```javascript
const xo = Xo({
url: 'https://xo.company.tld',
credentials: {
email: 'admin@admin.net',
password: 'admin',
}
})
xo.open()
xo.on('authenticated', () => {
console.log(xo.user)
})
```
> If the URL is not provided and the current environment is a web
> browser, the location of the current page will be used.
### Connection
```javascript
await xo.open()
console.log('connected')
```
### Disconnection
```javascript
xo.close()
console.log('disconnected')
```
### Method call
```javascript
const token = await xo.call('token.create')
console.log('Token created', token)
```
### Status
The connection status is available through the status property which
is *open*, *connecting* or *closed*.
```javascript
console.log('%s to xo-server', xo.status)
```
### Current user
Information about the user account used to sign in is available
through the `user` property.
```javascript
console.log('Current user is', xo.user)
```
> This property is null when the status is not connected.
### Events
```javascript
xo.on('open', () => {
console.log('connected')
})
```
```javascript
xo.on('closed', () => {
console.log('disconnected')
})
```
```javascript
xo.on('notification', function (notif) {
console.log('notification:', notif.method, notif.params)
})
```
```javascript
xo.on('authenticated', () => {
console.log('authenticated as', xo.user)
})
xo.on('authenticationFailure', () => {
console.log('failed to authenticate')
})
```
## Development
```
# Install dependencies
> npm install
# Run the tests
> npm test
# Continuously compile
> npm run dev
# Continuously run the tests
> npm run dev-test
# Build for production (automatically called by npm install)
> npm run build
```
## Contributions
Contributions are *very* welcomed, either on the documentation or on
the code.
You may:
- report any [issue](https://github.com/vatesfr/xen-orchestra/issues)
you've encountered;
- fork and create a pull request.
## License
ISC © [Vates SAS](http://vates.fr)

View File

@@ -0,0 +1,62 @@
'use strict'
process.on('unhandledRejection', function (error) {
console.log(error)
})
const Xo = require('./').default
const xo = new Xo({
url: 'localhost:9000',
})
xo
.open()
.then(function () {
return xo
.call('acl.get', {})
.then(function (result) {
console.log('success:', result)
})
.catch(function (error) {
console.log('failure:', error)
})
})
.then(function () {
return xo
.signIn({
email: 'admin@admin.net',
password: 'admin',
})
.then(function () {
console.log('connected as ', xo.user)
})
.catch(function (error) {
console.log('failure:', error)
})
})
.then(function () {
return xo
.signIn({
email: 'tom',
password: 'tom',
})
.then(function () {
console.log('connected as', xo.user)
return xo
.call('acl.get', {})
.then(function (result) {
console.log('success:', result)
})
.catch(function (error) {
console.log('failure:', error)
})
})
.catch(function (error) {
console.log('failure', error)
})
})
.then(function () {
return xo.close()
})

View File

@@ -0,0 +1,73 @@
{
"name": "xo-lib",
"version": "0.9.0",
"license": "ISC",
"description": "Library to connect to XO-Server",
"keywords": [
"xen",
"orchestra",
"xen-orchestra"
],
"homepage": "https://github.com/vatesfr/xen-orchestra/tree/master/packages/xo-lib",
"bugs": "https://github.com/vatesfr/xen-orchestra/issues",
"repository": {
"type": "git",
"url": "https://github.com/vatesfr/xen-orchestra.git"
},
"author": {
"name": "Julien Fontanet",
"email": "julien.fontanet@vates.fr"
},
"preferGlobal": false,
"main": "dist/",
"bin": {},
"files": [
"dist/"
],
"engines": {
"node": ">=4"
},
"dependencies": {
"jsonrpc-websocket-client": "^0.3.0",
"lodash": "^4.17.2",
"make-error": "^1.0.4"
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-plugin-lodash": "^3.3.2",
"babel-preset-env": "^1.5.2",
"babel-preset-stage-3": "^6.24.1",
"cross-env": "^5.1.3",
"rimraf": "^2.6.1"
},
"scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
"prebuild": "rimraf dist/",
"predev": "yarn run prebuild",
"prepublishOnly": "yarn run build"
},
"babel": {
"env": {
"test": {
"ignore": null
}
},
"ignore": "*.spec.js",
"plugins": [
"lodash"
],
"presets": [
[
"env",
{
"targets": {
"browsers": "> 2%",
"node": 4
}
}
],
"stage-3"
]
}
}

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