Commit Graph

350 Commits

Author SHA1 Message Date
Arthur Lu
4f1c6a1e10 add realm selector to login
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-03-24 21:13:33 +00:00
Arthur Lu
d7e835b3c5 fix request functionr return values
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-03-01 00:01:56 +00:00
Arthur Lu
7f3bbbbff2 gracefully recover from config error
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-28 23:56:39 +00:00
Arthur Lu
7f6d5d319e fix request function return value to include status value
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-28 22:50:12 +00:00
Arthur Lu
35ca6ad9ca implement instance add,
fix multiple onclick listeners being added

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-27 23:03:19 +00:00
Arthur Lu
bf00f9adf6 use new endpoint arg format 2023-02-27 02:29:55 +00:00
Arthur Lu
74509bf78e remove console.log,
add node logic to new instance form

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-24 23:27:03 +00:00
Arthur Lu
5046bfb1c5 fix removed import
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-24 22:38:31 +00:00
Arthur Lu
b1a8dba7c5 use client api endpont for proxmox requests
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-24 22:25:36 +00:00
Arthur Lu
300f55c38f add node field for add new instance
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-23 22:14:06 +00:00
Arthur Lu
0639d53a5d add extra input fields for container specific options
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-23 21:58:42 +00:00
Arthur Lu
aeee33d705 add create instance form dialog
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-23 21:11:43 +00:00
Arthur Lu
f72bb605e5 add delete instance logic
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-21 22:50:01 +00:00
Arthur Lu
108a2bdda0 group action icons by type
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-21 21:50:54 +00:00
Arthur Lu
26e46a9c6b add delete button to insances,
add confirm message on start/stop,
change power action from shutdown to stop,
improve action button alt texts

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-21 19:57:47 +00:00
Arthur Lu
7539ff731b add saving cpu and memory resource values on exit
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-17 22:17:20 +00:00
Arthur Lu
87e50051c7 use proxmox builtin consoles 2023-02-17 05:12:28 +00:00
Arthur Lu
d8d36bee96 add handle cd add 2023-02-16 05:19:22 +00:00
Arthur Lu
c665d89fc9 comment out console handler
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-16 01:25:17 +00:00
Arthur Lu
03df04ac1c add cd-add button to vm config
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-16 00:57:11 +00:00
Arthur Lu
f8ea7a0a03 add disk add for both vm and container
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-15 00:17:35 +00:00
Arthur Lu
e796b1a6f0 remove unecessary line
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-14 22:57:42 +00:00
Arthur Lu
d1546f5511 remove appendFormBody
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-14 22:55:09 +00:00
Arthur Lu
13a3a8f425 add create disk dialog form creation
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-14 21:56:27 +00:00
Arthur Lu
2218fd558a differentiate cancel and confirm buttons in dialog
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-14 21:13:38 +00:00
Arthur Lu
a410933ff2 capitalize all button text
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-14 21:11:10 +00:00
Arthur Lu
d12ac0cf9a separate dialog and instance custom elements
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-14 21:08:48 +00:00
Arthur Lu
f666850ccb remove unecessary hr id
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-14 21:04:11 +00:00
Arthur Lu
a2b37f5fe9 improve disk dialog creation
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-14 21:03:53 +00:00
Arthur Lu
134431d88c remove handler for inactive buttons,
change delete icon

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-14 20:05:56 +00:00
Arthur Lu
7204968187 change disk icon to loading after action triggers 2023-02-14 09:23:37 +00:00
Arthur Lu
cd857d7835 open console in new window 2023-02-14 05:36:21 +00:00
Arthur Lu
fca1adea24 fix user name by adding username cookie 2023-02-14 05:21:45 +00:00
Arthur Lu
be50bf3de9 add basic xternjs functionality 2023-02-14 05:14:33 +00:00
Arthur Lu
a7affa28a8 add blank.svg,
fix usage of conflicting id values to use dataset
2023-02-13 22:51:22 +00:00
Arthur Lu
7e36a8c835 remove commented code 2023-02-13 04:15:46 +00:00
Arthur Lu
e7973db190 improve power management status update
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-10 22:48:52 +00:00
Arthur Lu
12ec4f1ee4 fix lxc handling in disk attach
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-10 22:17:23 +00:00
Arthur Lu
6fec7b61a7 implement disk delete (all disk actions finished)
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-10 21:36:47 +00:00
Arthur Lu
bbebce3c99 add disk attach
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-10 21:15:00 +00:00
Arthur Lu
fcf1ea5b96 implement disk move delete source
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-02 19:35:14 +00:00
Arthur Lu
93b1450d8c populate handler for disk move
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-02 18:26:44 +00:00
Arthur Lu
bceb816478 add diskMove handler creation, improve form css
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-02 00:12:36 +00:00
Arthur Lu
ed36cb62d2 improve dialog box custom element
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-01 23:42:30 +00:00
Arthur Lu
1ae3ffe886 add button titles to instance
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-02-01 00:02:10 +00:00
Arthur Lu
7f9130b33f add temp fix for long disk size change issue
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-30 23:43:00 +00:00
Arthur Lu
77baa2f30c fix disk detach and disk resize issues
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-30 23:35:26 +00:00
Arthur Lu
37839d4117 add dialog confirm,
add resize handler

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-30 22:21:05 +00:00
Arthur Lu
cc72688bf8 create custom dialog form element
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-27 22:33:05 +00:00
Arthur Lu
d6a37ef59c change vars export naming
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-27 21:49:50 +00:00
Arthur Lu
c6ff9c8cfa simplify power button logic,
add icons for loading instances

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-26 20:50:15 +00:00
Arthur Lu
0ba917706e avoid refreshing page on disk change
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-26 19:55:17 +00:00
Arthur Lu
603b20ee9c separate disk and resource population
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-26 19:48:41 +00:00
Arthur Lu
584696772a remove template in index,
add article content in js

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-26 19:33:39 +00:00
Arthur Lu
6c3905c847 add detach disk handler 2023-01-25 02:06:31 +00:00
Arthur Lu
860fd2c828 move api path info to vars.js
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-19 20:33:05 +00:00
Arthur Lu
c09300e6a0 add config for tronnet, will remove later
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-19 19:59:12 +00:00
Arthur Lu
c9f9ad590c use extra js file to store config data
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-19 19:58:44 +00:00
Arthur Lu
1b4e8478dc change attach and detach icons
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-19 18:08:00 +00:00
Arthur Lu
1bb0aa5d3e add action button icons
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-19 02:13:07 +00:00
Arthur Lu
2557292a28 add unused disk to disk populate
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-19 00:54:14 +00:00
Arthur Lu
be589fd586 revert to show disk text config
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-19 00:35:52 +00:00
Arthur Lu
5f3f6a9f53 improve acessibility
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-18 23:43:57 +00:00
Arthur Lu
2fe9e847c9 hide instance actions if the node is offline
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 12:45:16 -08:00
Arthur Lu
23f3153294 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
Arthur Lu
1b4e818b6d fix unknown status check order
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 12:36:34 -08:00
Arthur Lu
d957fb35ef fix instance icon assignment
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 12:34:22 -08:00
Arthur Lu
1c0faf2a71 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
Arthur Lu
f2da3882dc ensure node search returns a node
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 12:29:10 -08:00
Arthur Lu
3457e46a69 fix variable item typo
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 12:27:15 -08:00
Arthur Lu
7127439970 fix finding nodes in resources
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 12:26:49 -08:00
Arthur Lu
94bf131c43 fix instance population
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 12:26:19 -08:00
Arthur Lu
1d4981c93f use resource path rather than querying each node
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 12:24:51 -08:00
Arthur Lu
9dbbb5909a remove unrelated comments
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 12:02:02 -08:00
Arthur Lu
004c5279fb remove unused function getDiskImageOptions
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 11:56:20 -08:00
Arthur Lu
720413760a keep disk filename prefixes to assign value correctly
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 11:50:59 -08:00
Arthur Lu
8cd7142d97 remove iso/ prefix from disk filename
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 11:48:50 -08:00
Arthur Lu
9d3ab59768 fix varaible naming for storage in handleStorageChange
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 11:45:29 -08:00
Arthur Lu
445fc10e5f fix varaible instantiation
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 11:44:34 -08:00
Arthur Lu
c5224b71dc fix disk image select id assignment
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 11:43:50 -08:00
Arthur Lu
bd92558d66 add storage change handler
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 11:39:28 -08:00
Arthur Lu
6c18a44225 use grid-column to span some inputs
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 11:15:04 -08:00
Arthur Lu
fb1ed3ce4b remove storage and iso from disk image options
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 11:04:28 -08:00
Arthur Lu
0bfe716ecb populate diskImageSelect with options
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 10:59:06 -08:00
Arthur Lu
a4b7d7fd3e add options to disk image selection
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 10:48:09 -08:00
Arthur Lu
4b9ed93669 add ids to storage and size input
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 10:31:26 -08:00
Arthur Lu
bc89676f8a set non resiable disk size value to 0
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 10:26:11 -08:00
Arthur Lu
2d55625675 fix handleDeviceChange not implemented
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-17 10:19:07 -08:00
Arthur Lu
03f6493b63 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
Arthur Lu
3688b44c56 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
Arthur Lu
e5bf7e383a 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
Arthur Lu
1e035e878c 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
Arthur Lu
c8141943f5 fix min checking
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 16:10:56 -08:00
Arthur Lu
0d2a2763c9 fix invalid query selector ids
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 16:08:20 -08:00
Arthur Lu
810d33aba9 fix query selector in handleUnitChange
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 16:07:06 -08:00
Arthur Lu
767c239c82 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
Arthur Lu
bbfdfa0f98 disable size unit select if resizable is false
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 15:50:32 -08:00
Arthur Lu
e11f281a59 add required params to addDiskLine
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 15:48:20 -08:00
Arthur Lu
299f60a878 fix variable naming conflict
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 15:47:13 -08:00
Arthur Lu
eaf51064ac add selector for size unit
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-01-16 15:45:51 -08:00
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