|
dd165d58a5
|
hide instance actions if the node is offline
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-17 12:45:16 -08:00 |
|
|
019ee1b140
|
set instance to original if request returns an error
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-17 12:41:52 -08:00 |
|
|
dccb5ec582
|
fix unknown status check order
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-17 12:36:34 -08:00 |
|
|
93490a7e65
|
fix instance icon assignment
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-17 12:34:22 -08:00 |
|
|
72e0407be2
|
show blank name if instance is unknown,
show stopped icon if instance is unknown
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-17 12:33:21 -08:00 |
|
|
6a20785b7c
|
ensure node search returns a node
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-17 12:29:10 -08:00 |
|
|
80be88c6b9
|
fix variable item typo
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-17 12:27:15 -08:00 |
|
|
5077dca134
|
fix finding nodes in resources
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-17 12:26:49 -08:00 |
|
|
18b70c4506
|
fix instance population
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-17 12:26:19 -08:00 |
|
|
89d5fcff16
|
use resource path rather than querying each node
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-17 12:24:51 -08:00 |
|
|
7f29719532
|
remove unrelated comments
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-17 12:02:02 -08:00 |
|
|
3b79a997be
|
remove unused function getDiskImageOptions
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-17 11:56:20 -08:00 |
|
|
0127b60bf3
|
keep disk filename prefixes to assign value correctly
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-17 11:50:59 -08:00 |
|
|
b29b1dd08f
|
remove iso/ prefix from disk filename
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-17 11:48:50 -08:00 |
|
|
faea8bf08d
|
fix varaible naming for storage in handleStorageChange
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-17 11:45:29 -08:00 |
|
|
940ea453d1
|
fix varaible instantiation
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-17 11:44:34 -08:00 |
|
|
cd2d93ad34
|
fix disk image select id assignment
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-17 11:43:50 -08:00 |
|
|
977f363934
|
add storage change handler
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-17 11:39:28 -08:00 |
|
|
253342826c
|
use grid-column to span some inputs
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-17 11:15:04 -08:00 |
|
|
70d1995453
|
remove storage and iso from disk image options
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-17 11:04:28 -08:00 |
|
|
d9ccaddd3c
|
populate diskImageSelect with options
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-17 10:59:06 -08:00 |
|
|
5ccf122ca6
|
add options to disk image selection
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-17 10:48:09 -08:00 |
|
|
c0cd6a546e
|
add ids to storage and size input
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-17 10:31:26 -08:00 |
|
|
453dc9051b
|
set non resiable disk size value to 0
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-17 10:26:11 -08:00 |
|
|
6cd66db083
|
fix handleDeviceChange not implemented
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-17 10:19:07 -08:00 |
|
|
5e03f48ba6
|
min input content,
disable disk device reassignment for all disks
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-17 10:18:22 -08:00 |
|
|
f3b9a5d81e
|
hide device input if device input is not required
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-17 10:01:06 -08:00 |
|
|
44f837b33d
|
remove unit selector for unit text,
hide size input and unit text if disk is not resizable
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-17 09:52:20 -08:00 |
|
|
ecf593f9ef
|
change volume contents includes to be specific to bus type
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-16 16:14:33 -08:00 |
|
|
b928f87a79
|
fix min checking
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-16 16:10:56 -08:00 |
|
|
b8fb562c41
|
fix invalid query selector ids
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-16 16:08:20 -08:00 |
|
|
c21838d760
|
fix query selector in handleUnitChange
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-16 16:07:06 -08:00 |
|
|
680bb92242
|
set minimum size on unit change,
check min size value on unit change
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-16 16:06:19 -08:00 |
|
|
a4ea5a2a60
|
disable size unit select if resizable is false
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-16 15:50:32 -08:00 |
|
|
28a4dc94cb
|
add required params to addDiskLine
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-16 15:48:20 -08:00 |
|
|
7fe8dd2b7e
|
fix variable naming conflict
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-16 15:47:13 -08:00 |
|
|
474a9c9222
|
add selector for size unit
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-16 15:45:51 -08:00 |
|
|
dfba5cdd5a
|
remove unit from size
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-16 15:27:41 -08:00 |
|
|
75e77b1362
|
fix delete button alt text
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-16 15:24:24 -08:00 |
|
|
ba7a96f0eb
|
add delete disk button
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-16 15:22:39 -08:00 |
|
|
4512242336
|
fix storageSelect and sizeInput populating
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-16 15:16:02 -08:00 |
|
|
f7a11046e0
|
fix storage options populating
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-16 15:14:34 -08:00 |
|
|
32a3c50f97
|
fix icon alt again
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-16 15:13:17 -08:00 |
|
|
5bc908eaae
|
fix bus prefix issue
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-16 15:12:46 -08:00 |
|
|
5041f7ea1c
|
fix icon alt text
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-16 15:10:24 -08:00 |
|
|
fd8025ed32
|
fix icon reference
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-16 15:09:21 -08:00 |
|
|
2ea2865d8d
|
make each disk configurable
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-16 15:05:58 -08:00 |
|
|
bee34d4569
|
remove name field
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-16 14:25:31 -08:00 |
|
|
b0b3698258
|
right align all disk config buttons
|
2023-01-12 15:26:45 -08:00 |
|
|
6598ae3133
|
disable bus when lxc,
disable path when qemu
|
2023-01-12 15:17:35 -08:00 |
|
|
cb9c3a051f
|
remove console.log s
|
2023-01-12 15:08:45 -08:00 |
|
|
5b111b1114
|
removed redundant params in populateResources
|
2023-01-12 15:08:02 -08:00 |
|
|
976b62fce8
|
add storage target option adding
|
2023-01-12 15:05:22 -08:00 |
|
|
ad84fc9772
|
add fetch storage options
|
2023-01-12 14:43:17 -08:00 |
|
|
c6f8b7542d
|
fix event listener callback function
|
2023-01-11 03:02:17 -08:00 |
|
|
ba97c056d8
|
fix disk populating bugs
|
2023-01-11 03:00:01 -08:00 |
|
|
d43363c066
|
add query select for addDiskDevice
|
2023-01-11 02:58:22 -08:00 |
|
|
4f8f4ae863
|
try global vars
|
2023-01-11 02:57:37 -08:00 |
|
|
7e71d098c4
|
fix parameters
|
2023-01-11 02:52:52 -08:00 |
|
|
4556abc8ea
|
consolidate handler params
|
2023-01-11 02:51:06 -08:00 |
|
|
3993b23d22
|
add missing type param in add disk handlers
|
2023-01-11 02:47:36 -08:00 |
|
|
da1b0661ca
|
fix missing param in add disk handlers
|
2023-01-11 02:46:25 -08:00 |
|
|
7799954b0f
|
streamline add disk code
|
2023-01-11 02:43:56 -08:00 |
|
|
1ce205c17b
|
add correct event listener
|
2023-01-11 02:16:30 -08:00 |
|
|
847f2d4d64
|
add red border on add disk device input focus
|
2023-01-11 02:15:58 -08:00 |
|
|
801bd1e105
|
populate add disk device with next avaliable value,
add red border around invalid device number
|
2023-01-11 02:01:34 -08:00 |
|
|
f12ee81b3e
|
flip qemu disk ordering
|
2023-01-11 01:33:50 -08:00 |
|
|
49416cdd34
|
add pointer to disk items
|
2023-01-11 01:32:51 -08:00 |
|
|
619003616a
|
fixes to limit and bus selection
|
2023-01-10 17:16:05 -08:00 |
|
|
f53882a50b
|
use capital case for disk name
|
2023-01-10 17:12:24 -08:00 |
|
|
dbd6213b86
|
fix prefix in disk population
|
2023-01-10 17:11:00 -08:00 |
|
|
ffbfc04511
|
remove all references to disks
|
2023-01-10 17:09:59 -08:00 |
|
|
60737d1e77
|
fix populating bug
|
2023-01-10 17:09:10 -08:00 |
|
|
81da4724e9
|
fix variable typo
|
2023-01-10 17:06:34 -08:00 |
|
|
d3c4f338cf
|
fix variable name collision
|
2023-01-10 17:05:41 -08:00 |
|
|
0b139f37c0
|
used variable to store disk configuration
|
2023-01-10 17:04:20 -08:00 |
|
|
17676a8564
|
add logic for bus select and device limit
|
2023-01-10 16:49:57 -08:00 |
|
|
392446219d
|
fix disk populating issue
|
2023-01-09 23:51:11 -08:00 |
|
|
0dee24b337
|
sort disks in numerical order
|
2023-01-09 23:50:11 -08:00 |
|
|
4c23ac5c5e
|
add logic for disk and drive icon
|
2023-01-09 22:24:04 -08:00 |
|
|
6adf04efe8
|
generalize disk populating
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-09 16:21:45 -08:00 |
|
|
45e3fb9509
|
add configurable disk population
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-09 16:02:25 -08:00 |
|
|
cf96ffe561
|
add auth successful message to login
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-09 15:20:34 -08:00 |
|
|
0740d65363
|
fix cookie deletion
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
|
2023-01-09 15:16:24 -08:00 |
|
|
9d0e0db27d
|
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 |
|
|
915450b0b0
|
fix some styling
|
2023-01-08 21:46:14 -08:00 |
|
|
594254dac3
|
fix memory populating bug
|
2023-01-08 21:32:22 -08:00 |
|
|
80e259b4f7
|
add label for in name fieldset
|
2023-01-08 21:28:35 -08:00 |
|
|
b572b79798
|
fix label for assignment,
fix disk icon alt
|
2023-01-08 21:26:44 -08:00 |
|
|
835b7261aa
|
add image alts in config page,
add for to labels in config page
|
2023-01-08 21:23:08 -08:00 |
|
|
72ec1c134f
|
add config button to disk entry
|
2023-01-08 20:49:57 -08:00 |
|
|
b78d749df1
|
add config button to disk items
|
2023-01-08 20:48:58 -08:00 |
|
|
b95187ee2c
|
populate name field using addMetaLine
|
2023-01-08 20:32:15 -08:00 |
|
|
eb4970344f
|
populate id parameter in addDiskLine
|
2023-01-08 20:30:09 -08:00 |
|
|
4e15b71d5b
|
fix another variable name conflict
|
2023-01-08 20:28:50 -08:00 |
|
|
089e52b1a0
|
fix variable name conflict
|
2023-01-08 20:28:19 -08:00 |
|
|
e4c7f45e6c
|
populate disks in separate fieldset
|
2023-01-08 20:26:20 -08:00 |
|
|
b4a92a26e1
|
fix icon null check
|
2022-12-21 16:00:28 -08:00 |
|
|
e37c19de77
|
fix config form icon styling
|
2022-12-21 15:59:54 -08:00 |
|
|
7f4c006385
|
add icons to config form
|
2022-12-21 15:56:52 -08:00 |
|
|
0b2bb51bdd
|
add swap in config
|
2022-12-21 15:39:09 -08:00 |
|
|
6b2dbf2450
|
remove resource bar from instance article
|
2022-12-21 15:31:31 -08:00 |
|
|
afaf6c678d
|
set step to 0.001
|
2022-12-21 15:26:18 -08:00 |
|
|
06a54aa8a8
|
use min of 1
|
2022-12-21 15:22:50 -08:00 |
|
|
c18388c634
|
set min size for storage to 1 GB
|
2022-12-21 15:15:45 -08:00 |
|
|
2cd7d9bfeb
|
switch instance name logic
|
2022-12-21 15:10:13 -08:00 |
|
|
0a392cb6a6
|
add better label text for rootfs
|
2022-12-21 15:08:21 -08:00 |
|
|
655732fb9e
|
fix name populating issue
|
2022-12-21 15:07:34 -08:00 |
|
|
72f356d50a
|
add lxc config form populating
|
2022-12-21 15:06:26 -08:00 |
|
|
76fea95adc
|
fix string to int parsing
|
2022-12-21 01:36:24 -08:00 |
|
|
a8d66a8ae6
|
fix string to float conversion
|
2022-12-21 01:33:37 -08:00 |
|
|
9189d4aa0e
|
improve form populating
|
2022-12-21 01:31:58 -08:00 |
|
|
cce8cf8115
|
add units to config form
|
2022-12-21 00:49:57 -08:00 |
|
|
c4d607570e
|
remove colons from forms
|
2022-12-20 18:03:07 -08:00 |
|
|
8341b88c76
|
add colon to sata config
|
2022-12-20 18:01:44 -08:00 |
|
|
4484f7dc8b
|
populate vm name
|
2022-12-20 17:07:58 -08:00 |
|
|
41d8b240ab
|
parse disk to only use size
|
2022-12-20 16:47:49 -08:00 |
|
|
9854792407
|
try window.assign
|
2022-12-20 15:45:43 -08:00 |
|
|
85f7fac100
|
add cancel button listener
|
2022-12-20 15:42:13 -08:00 |
|
|
e31c91679f
|
fix missing increment
|
2022-12-20 15:38:53 -08:00 |
|
|
589ecc1f9e
|
add populating sata drives
|
2022-12-20 15:37:04 -08:00 |
|
|
f7a52a27d6
|
add credential check to config.js
|
2022-12-20 15:15:08 -08:00 |
|
|
b2cd65212b
|
use grid layout for forms
|
2022-12-19 18:46:28 -08:00 |
|
|
ce1119f14a
|
use innerHTML directly
|
2022-12-19 18:21:48 -08:00 |
|
|
dc95d5092d
|
remove unecessary line
|
2022-12-19 18:17:19 -08:00 |
|
|
37508e646e
|
use label property
|
2022-12-19 18:16:07 -08:00 |
|
|
54e09d8b31
|
use innerHTML
|
2022-12-19 18:14:00 -08:00 |
|
|
06aa9ac47e
|
use setAttribute
|
2022-12-19 18:12:39 -08:00 |
|
|
ca2633fb79
|
fix config populating bug
|
2022-12-19 18:08:16 -08:00 |
|
|
bd81fdb8e6
|
populate cores and memory in config
|
2022-12-19 17:59:34 -08:00 |
|
|
534c40d7a9
|
add await to config form request
|
2022-12-19 16:21:24 -08:00 |
|
|
ef4597490a
|
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 |
|
|
818748ef2b
|
remove unecessary cookie header
|
2022-12-19 15:22:20 -08:00 |
|
|
e369456c57
|
add config.html,
add config.js,
add getURIData function to parse URI search params
|
2022-12-18 22:14:57 -08:00 |
|
|
3160e0a858
|
readd proper imports to login.js
|
2022-12-18 22:00:59 -08:00 |
|
|
368208fc61
|
fix login.js imports
|
2022-12-18 22:00:02 -08:00 |
|
|
73ab09983c
|
fix goToPage
|
2022-12-18 21:58:46 -08:00 |
|
|
5dc35cbbf3
|
modularize redirect function
|
2022-12-18 21:52:39 -08:00 |
|
|
42ebaff402
|
fix config button updating
|
2022-12-18 21:05:05 -08:00 |
|
|
2721fd3e5e
|
change config button icon on power action
|
2022-12-18 21:00:58 -08:00 |
|
|
aa4ea3e0de
|
handle instance action update by process id
|
2022-12-18 20:32:05 -08:00 |
|
|
0c5f20677e
|
set proper alt for instance type/status and power action
|
2022-12-18 17:11:35 -08:00 |
|
|
5e46481f72
|
add loading icon
|
2022-12-18 17:06:05 -08:00 |
|
|
a24467ee39
|
remove console
|
2022-12-18 16:56:02 -08:00 |
|
|
bb10726eef
|
add actionLock to element power action
|
2022-12-18 16:53:07 -08:00 |
|
|
e6290cc058
|
remove periodic refresh in favor of refresh as needed
|
2022-12-17 17:52:20 -08:00 |
|
|
7a5c1222ca
|
assign alt properties
|
2022-12-17 17:36:45 -08:00 |
|
|
83246d1fa1
|
remove debug console.log
|
2022-12-17 16:44:43 -08:00 |
|
|
4cfd550a47
|
update power action button in element updater
|
2022-12-17 16:37:26 -08:00 |
|
|
12927fd8a4
|
fix waitFor issue
|
2022-12-17 16:35:51 -08:00 |
|
|
46da693292
|
handle update element in listener
|
2022-12-17 16:34:40 -08:00 |
|
|
3d902a745d
|
disable reload for now
|
2022-12-17 16:15:28 -08:00 |
|
|
4153d7f76c
|
run instance population every second
|
2022-12-17 16:07:18 -08:00 |
|
|
fcb28f0a9d
|
remove csrf token from cookie
|
2022-12-15 23:51:51 -08:00 |
|
|
c83c706a32
|
put CSRF only for POST
|
2022-12-15 23:44:48 -08:00 |
|
|
aa8ff06b6f
|
try setting CSRFPreventionToken header
|
2022-12-15 23:40:04 -08:00 |
|
|
7618b24898
|
add csrf token saving
|
2022-12-15 23:15:52 -08:00 |
|
|
22f334f373
|
fix power management request
|
2022-12-15 23:08:56 -08:00 |
|
|
8997caa7be
|
fix import
|
2022-12-15 23:05:32 -08:00 |
|
|
ff6c4fdd09
|
implement basic power management
|
2022-12-15 23:03:50 -08:00 |
|
|
f40e05fbf5
|
add action icons,
set action icons depending on instance status
|
2022-12-15 18:28:12 -08:00 |
|
|
10526d1a67
|
add power button html and css
|
2022-12-15 18:04:20 -08:00 |
|
|
bc9c9b87d8
|
set qemu instance maxswap to 0
|
2022-12-14 17:31:05 -08:00 |
|
|
3f33684edf
|
fix resource disk text assignment
|
2022-12-14 17:28:48 -08:00 |
|
|
2af76405ef
|
add resource details to instance article
|
2022-12-14 17:20:31 -08:00 |
|
|
0235760565
|
add implicit instance typing
|
2022-12-14 17:01:38 -08:00 |
|
|
52cb2a9a10
|
fix instance article element selection
|
2022-12-14 16:10:28 -08:00 |
|
|
3670730f2b
|
fix instance article content
|
2022-12-14 16:07:25 -08:00 |
|
|
9d29ae078a
|
use templates to streamline instance creation
|
2022-12-14 16:05:15 -08:00 |
|
|
ea2011b734
|
improve instance article layout
|
2022-12-14 15:47:29 -08:00 |
|
|
3e87f5ba29
|
arrange instance elements inline
|
2022-12-14 15:38:13 -08:00 |
|
|
02ed33c674
|
add top div to instance article
|
2022-12-14 15:32:22 -08:00 |
|
|
a8664a4e04
|
fix node icon ref
|
2022-12-14 15:29:08 -08:00 |
|
|
a4c7a36012
|
add icons
|
2022-12-14 15:28:22 -08:00 |
|
|
bdec04aaf7
|
separate instance card data elements
|
2022-12-14 14:42:40 -08:00 |
|
|
ffa468fba2
|
add instance styling
|
2022-12-14 14:30:46 -08:00 |
|
|
b5901cb002
|
simplify instacne node assignment
|
2022-12-14 14:11:20 -08:00 |
|
|
0a72233baa
|
fix instance node data assignment
|
2022-12-14 13:48:29 -08:00 |
|
|
a10a8a4ddc
|
add node data to instances
|
2022-12-14 13:47:28 -08:00 |
|
|
5121060671
|
fix concat logic
|
2022-12-14 13:40:19 -08:00 |
|
|
3247edbbbb
|
simplify instance display
|
2022-12-14 13:37:30 -08:00 |
|
|
35dd1402b0
|
fix instanceDiv
|
2022-12-13 23:28:07 -08:00 |
|
|
cb2cc97387
|
fix instance type setting,
add min-content to center-div
|
2022-12-13 23:26:43 -08:00 |
|
|
63943782c6
|
fix node and instance element stylesheet reference
|
2022-12-12 21:43:19 -08:00 |
|
|
ccf7efb9b9
|
add useful login statuses
|
2022-12-12 17:12:11 -08:00 |
|
|
ad9969c393
|
make body optional parameter for request function
|
2022-12-12 16:30:55 -08:00 |
|
|
5cee249285
|
move js to scripts folder,
move css to css folder
|
2022-12-12 16:27:45 -08:00 |
|