Commit Graph

350 Commits

Author SHA1 Message Date
Arthur Lu
abe70d0b72 remove unit from size
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 15:27:41 -08:00
Arthur Lu
a2b4dcd985 fix delete button alt text
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 15:24:24 -08:00
Arthur Lu
14ee712d3c add delete disk button
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 15:22:39 -08:00
Arthur Lu
36d93017f9 fix storageSelect and sizeInput populating
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 15:16:02 -08:00
Arthur Lu
0aa983594f fix storage options populating
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 15:14:34 -08:00
Arthur Lu
ea06755a1e fix icon alt again
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 15:13:17 -08:00
Arthur Lu
9c37a9e562 fix bus prefix issue
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 15:12:46 -08:00
Arthur Lu
f378a1c7f9 fix icon alt text
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 15:10:24 -08:00
Arthur Lu
4d0a44995b fix icon reference
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 15:09:21 -08:00
Arthur Lu
92739d9660 make each disk configurable
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 15:05:58 -08:00
Arthur Lu
40c844a6f4 remove name field
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 14:25:31 -08:00
Arthur Lu
39cce60fc0 right align all disk config buttons 2023-01-12 15:26:45 -08:00
Arthur Lu
d0482e867f disable bus when lxc,
disable path when qemu
2023-01-12 15:17:35 -08:00
Arthur Lu
a1727eebdc remove console.log s 2023-01-12 15:08:45 -08:00
Arthur Lu
79a46b1f9b removed redundant params in populateResources 2023-01-12 15:08:02 -08:00
Arthur Lu
6984f20998 add storage target option adding 2023-01-12 15:05:22 -08:00
Arthur Lu
8345dd61f2 add fetch storage options 2023-01-12 14:43:17 -08:00
Arthur Lu
0da9812b89 fix event listener callback function 2023-01-11 03:02:17 -08:00
Arthur Lu
ec1426f0c1 fix disk populating bugs 2023-01-11 03:00:01 -08:00
Arthur Lu
cdb06ce8cc add query select for addDiskDevice 2023-01-11 02:58:22 -08:00
Arthur Lu
79fd1f0625 try global vars 2023-01-11 02:57:37 -08:00
Arthur Lu
d5d495f566 fix parameters 2023-01-11 02:52:52 -08:00
Arthur Lu
8b2fb8c1ba consolidate handler params 2023-01-11 02:51:06 -08:00
Arthur Lu
32ca9c2309 add missing type param in add disk handlers 2023-01-11 02:47:36 -08:00
Arthur Lu
acc6d834c4 fix missing param in add disk handlers 2023-01-11 02:46:25 -08:00
Arthur Lu
906c292e53 streamline add disk code 2023-01-11 02:43:56 -08:00
Arthur Lu
2da3d77860 add correct event listener 2023-01-11 02:16:30 -08:00
Arthur Lu
fadf3f206c add red border on add disk device input focus 2023-01-11 02:15:58 -08:00
Arthur Lu
e9bfea7233 populate add disk device with next avaliable value,
add red border around invalid device number
2023-01-11 02:01:34 -08:00
Arthur Lu
9b455a2616 flip qemu disk ordering 2023-01-11 01:33:50 -08:00
Arthur Lu
0ee6a217e3 add pointer to disk items 2023-01-11 01:32:51 -08:00
Arthur Lu
d9d9a0a0e7 fixes to limit and bus selection 2023-01-10 17:16:05 -08:00
Arthur Lu
d6d028ff89 use capital case for disk name 2023-01-10 17:12:24 -08:00
Arthur Lu
b3f76107ec fix prefix in disk population 2023-01-10 17:11:00 -08:00
Arthur Lu
5e11295390 remove all references to disks 2023-01-10 17:09:59 -08:00
Arthur Lu
724048e7d0 fix populating bug 2023-01-10 17:09:10 -08:00
Arthur Lu
583286041e fix variable typo 2023-01-10 17:06:34 -08:00
Arthur Lu
d54605edd5 fix variable name collision 2023-01-10 17:05:41 -08:00
Arthur Lu
e91bcb6ad1 used variable to store disk configuration 2023-01-10 17:04:20 -08:00
Arthur Lu
6f848f9fda add logic for bus select and device limit 2023-01-10 16:49:57 -08:00
Arthur Lu
fff454ea0e fix disk populating issue 2023-01-09 23:51:11 -08:00
Arthur Lu
ff31563f88 sort disks in numerical order 2023-01-09 23:50:11 -08:00
Arthur Lu
5072aef9dc add logic for disk and drive icon 2023-01-09 22:24:04 -08:00
Arthur Lu
c88f44bfdb generalize disk populating
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-09 16:21:45 -08:00
Arthur Lu
d097266c3d add configurable disk population
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-09 16:02:25 -08:00
Arthur Lu
eed1678b90 add auth successful message to login
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-09 15:20:34 -08:00
Arthur Lu
dace5237c8 fix cookie deletion
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-09 15:16:24 -08:00
Arthur Lu
78edc9e0a3 add deleteAllCookies util function,
add functionality to nav buttons

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-09 15:08:45 -08:00
Arthur Lu
45d6a6993b fix some styling 2023-01-08 21:46:14 -08:00
Arthur Lu
a114fe2477 fix memory populating bug 2023-01-08 21:32:22 -08:00
Arthur Lu
b4361b0ccf add label for in name fieldset 2023-01-08 21:28:35 -08:00
Arthur Lu
05679be08c fix label for assignment,
fix disk icon alt
2023-01-08 21:26:44 -08:00
Arthur Lu
f4c830f1ca add image alts in config page,
add for to labels in config page
2023-01-08 21:23:08 -08:00
Arthur Lu
70611e0864 add config button to disk entry 2023-01-08 20:49:57 -08:00
Arthur Lu
6a92706e80 add config button to disk items 2023-01-08 20:48:58 -08:00
Arthur Lu
f3e6856cd3 populate name field using addMetaLine 2023-01-08 20:32:15 -08:00
Arthur Lu
9f866647e7 populate id parameter in addDiskLine 2023-01-08 20:30:09 -08:00
Arthur Lu
f0d4ca3f7a fix another variable name conflict 2023-01-08 20:28:50 -08:00
Arthur Lu
bbc4286297 fix variable name conflict 2023-01-08 20:28:19 -08:00
Arthur Lu
0e066c75fc populate disks in separate fieldset 2023-01-08 20:26:20 -08:00
Arthur Lu
542c22b364 fix icon null check 2022-12-21 16:00:28 -08:00
Arthur Lu
0fe83fa2b8 fix config form icon styling 2022-12-21 15:59:54 -08:00
Arthur Lu
ffd48cafad add icons to config form 2022-12-21 15:56:52 -08:00
Arthur Lu
54fa98e754 add swap in config 2022-12-21 15:39:09 -08:00
Arthur Lu
a98057ae39 remove resource bar from instance article 2022-12-21 15:31:31 -08:00
Arthur Lu
a9c816f9c0 set step to 0.001 2022-12-21 15:26:18 -08:00
Arthur Lu
512c615351 use min of 1 2022-12-21 15:22:50 -08:00
Arthur Lu
5f40fea9ff set min size for storage to 1 GB 2022-12-21 15:15:45 -08:00
Arthur Lu
ec6b3c4510 switch instance name logic 2022-12-21 15:10:13 -08:00
Arthur Lu
2375263a9a add better label text for rootfs 2022-12-21 15:08:21 -08:00
Arthur Lu
3748fcdd99 fix name populating issue 2022-12-21 15:07:34 -08:00
Arthur Lu
05b5853c8f add lxc config form populating 2022-12-21 15:06:26 -08:00
Arthur Lu
7ac537d00b fix string to int parsing 2022-12-21 01:36:24 -08:00
Arthur Lu
d3d2670198 fix string to float conversion 2022-12-21 01:33:37 -08:00
Arthur Lu
0c4917c77a improve form populating 2022-12-21 01:31:58 -08:00
Arthur Lu
cdcae0b05e add units to config form 2022-12-21 00:49:57 -08:00
Arthur Lu
da4dab35cc remove colons from forms 2022-12-20 18:03:07 -08:00
Arthur Lu
3a174c6989 add colon to sata config 2022-12-20 18:01:44 -08:00
Arthur Lu
1f3ee1c456 populate vm name 2022-12-20 17:07:58 -08:00
Arthur Lu
ab5410218d parse disk to only use size 2022-12-20 16:47:49 -08:00
Arthur Lu
d2bee8d432 try window.assign 2022-12-20 15:45:43 -08:00
Arthur Lu
36dadf5e9a add cancel button listener 2022-12-20 15:42:13 -08:00
Arthur Lu
99ef947b1c fix missing increment 2022-12-20 15:38:53 -08:00
Arthur Lu
2104a0e15e add populating sata drives 2022-12-20 15:37:04 -08:00
Arthur Lu
f5403c7af1 add credential check to config.js 2022-12-20 15:15:08 -08:00
Arthur Lu
6ac057bdbf use grid layout for forms 2022-12-19 18:46:28 -08:00
Arthur Lu
86eadf1791 use innerHTML directly 2022-12-19 18:21:48 -08:00
Arthur Lu
3368305b9b remove unecessary line 2022-12-19 18:17:19 -08:00
Arthur Lu
4b5c00f541 use label property 2022-12-19 18:16:07 -08:00
Arthur Lu
51965010e8 use innerHTML 2022-12-19 18:14:00 -08:00
Arthur Lu
35dfbc9b70 use setAttribute 2022-12-19 18:12:39 -08:00
Arthur Lu
4294fd7ca0 fix config populating bug 2022-12-19 18:08:16 -08:00
Arthur Lu
cf0f06fb22 populate cores and memory in config 2022-12-19 17:59:34 -08:00
Arthur Lu
e0e3d5802e add await to config form request 2022-12-19 16:21:24 -08:00
Arthur Lu
913175239c populate static elements of config.html,
add node info to config page search,
change login.css to form.css
2022-12-19 16:13:43 -08:00
Arthur Lu
529959cba5 remove unecessary cookie header 2022-12-19 15:22:20 -08:00
Arthur Lu
ecb7e6f192 add config.html,
add config.js,
add getURIData function to parse URI search params
2022-12-18 22:14:57 -08:00
Arthur Lu
4fd15f804b readd proper imports to login.js 2022-12-18 22:00:59 -08:00
Arthur Lu
f497973cc8 fix login.js imports 2022-12-18 22:00:02 -08:00
Arthur Lu
18da1b996d fix goToPage 2022-12-18 21:58:46 -08:00
Arthur Lu
fe27bba986 modularize redirect function 2022-12-18 21:52:39 -08:00
Arthur Lu
f5e360046d fix config button updating 2022-12-18 21:05:05 -08:00
Arthur Lu
652c409055 change config button icon on power action 2022-12-18 21:00:58 -08:00
Arthur Lu
bbf94c983d handle instance action update by process id 2022-12-18 20:32:05 -08:00
Arthur Lu
a31e370d4d set proper alt for instance type/status and power action 2022-12-18 17:11:35 -08:00
Arthur Lu
6c64c06687 add loading icon 2022-12-18 17:06:05 -08:00
Arthur Lu
3fd9f3bb3f remove console 2022-12-18 16:56:02 -08:00
Arthur Lu
015855d38f add actionLock to element power action 2022-12-18 16:53:07 -08:00
Arthur Lu
5971c1ebef remove periodic refresh in favor of refresh as needed 2022-12-17 17:52:20 -08:00
Arthur Lu
f4374faccd assign alt properties 2022-12-17 17:36:45 -08:00
Arthur Lu
c39fca591c remove debug console.log 2022-12-17 16:44:43 -08:00
Arthur Lu
c5137481b7 update power action button in element updater 2022-12-17 16:37:26 -08:00
Arthur Lu
aacb2cb86d fix waitFor issue 2022-12-17 16:35:51 -08:00
Arthur Lu
14e35fe670 handle update element in listener 2022-12-17 16:34:40 -08:00
Arthur Lu
8397f313c9 disable reload for now 2022-12-17 16:15:28 -08:00
Arthur Lu
d37b8a5bc0 run instance population every second 2022-12-17 16:07:18 -08:00
Arthur Lu
e66cf54a2e remove csrf token from cookie 2022-12-15 23:51:51 -08:00
Arthur Lu
9dc6b6d588 put CSRF only for POST 2022-12-15 23:44:48 -08:00
Arthur Lu
c62f583dd4 try setting CSRFPreventionToken header 2022-12-15 23:40:04 -08:00
Arthur Lu
b63a9b254f add csrf token saving 2022-12-15 23:15:52 -08:00
Arthur Lu
2c7121d84a fix power management request 2022-12-15 23:08:56 -08:00
Arthur Lu
07b17cf12c fix import 2022-12-15 23:05:32 -08:00
Arthur Lu
5dcd6a805d implement basic power management 2022-12-15 23:03:50 -08:00
Arthur Lu
b2c8458e5d add action icons,
set action icons depending on instance status
2022-12-15 18:28:12 -08:00
Arthur Lu
b4a15c4118 add power button html and css 2022-12-15 18:04:20 -08:00
Arthur Lu
cff0986b29 set qemu instance maxswap to 0 2022-12-14 17:31:05 -08:00
Arthur Lu
f53048edc4 fix resource disk text assignment 2022-12-14 17:28:48 -08:00
Arthur Lu
f12454a56c add resource details to instance article 2022-12-14 17:20:31 -08:00
Arthur Lu
08dca0cb9e add implicit instance typing 2022-12-14 17:01:38 -08:00
Arthur Lu
866d3c6aca fix instance article element selection 2022-12-14 16:10:28 -08:00
Arthur Lu
1b57b587c7 fix instance article content 2022-12-14 16:07:25 -08:00
Arthur Lu
77673e80fe use templates to streamline instance creation 2022-12-14 16:05:15 -08:00
Arthur Lu
36b86e4edb improve instance article layout 2022-12-14 15:47:29 -08:00
Arthur Lu
90eba4904c arrange instance elements inline 2022-12-14 15:38:13 -08:00
Arthur Lu
223681ccc6 add top div to instance article 2022-12-14 15:32:22 -08:00
Arthur Lu
12ef3de58c fix node icon ref 2022-12-14 15:29:08 -08:00
Arthur Lu
7b276c2649 add icons 2022-12-14 15:28:22 -08:00
Arthur Lu
6400f36324 separate instance card data elements 2022-12-14 14:42:40 -08:00
Arthur Lu
8ef1cc3344 add instance styling 2022-12-14 14:30:46 -08:00
Arthur Lu
5c0176dc98 simplify instacne node assignment 2022-12-14 14:11:20 -08:00
Arthur Lu
0b4f50c85c fix instance node data assignment 2022-12-14 13:48:29 -08:00
Arthur Lu
f81fea1268 add node data to instances 2022-12-14 13:47:28 -08:00
Arthur Lu
f12be4b2a9 fix concat logic 2022-12-14 13:40:19 -08:00
Arthur Lu
a1fd99e102 simplify instance display 2022-12-14 13:37:30 -08:00
Arthur Lu
4730ada40a fix instanceDiv 2022-12-13 23:28:07 -08:00
Arthur Lu
979307095d fix instance type setting,
add min-content to center-div
2022-12-13 23:26:43 -08:00
Arthur Lu
f0e5b31bdf fix node and instance element stylesheet reference 2022-12-12 21:43:19 -08:00
Arthur Lu
184cc5ee60 add useful login statuses 2022-12-12 17:12:11 -08:00
Arthur Lu
f681ad77e7 make body optional parameter for request function 2022-12-12 16:30:55 -08:00
Arthur Lu
4a97631ec9 move js to scripts folder,
move css to css folder
2022-12-12 16:27:45 -08:00