-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some improvments #90
base: master
Are you sure you want to change the base?
Some improvments #90
Conversation
Add to database os_storage on plans Remove on start stop reboot get_node_list and load from vms installed
…er, if vm is already stop just delete it
Remove duplicate query
…is lead to exception on client area
Overhall, move all functions on Admin Dispatcher Reskin menu -> Still working on conntent From 1615 line on pvewhmcs to 158 lines ( sorting out the mess ) Add template with smarty easy to maintain the design and functionallity Old -> New -> Update WIP
|
@lsthompson , thank you I will try to not end up on project creap so this must be done by steps, I will release all the changes for new design and improve on how we write the code on addons. In regards of those I'm aware of the request but I think the priority is clean up the code so we can work on it in future On each suggestion must be each one treated as new PR as if you start going to deep you could loose the focus what you trying to achieve. Other note : your Repo should be defork and setup the Credits to intial repo and move as a own repo own stuff. Thanks |
@ChristianGabs Just wanted to say, its incredible, Thank you, I would love to see UI Overhaul! |
Overhaul UI Move all to smarty template
Ready for testing Thanks |
Documentation is not yet done, there are some template where I use to rebuild the design, so we have to do that as well |
Pagination need to be done as well. so I will start new PR for each when I'm going to work on those. and the moment is overhaul UI and migrate to smarty |
Many thanks @ChristianGabs - appreciate your efforts here! Have you moved the Admin Area menu up to be to-the-right of the module logo like I asked? Else it wastes vertical space. With the 10x issues I linked above, which of those have you solved with this PR? So they can be tagged into this properly. Also, please let me know what you have tested, and in which cases. Like LXC/QEMU create from blank / from template, etc. |
Hi @lsthompson This is a request to clean up and improve the code on the admin side, focusing on the following points:
Regarding the menu, I have already designed it and included a logo, as shown in the image below. Although the menu design doesn’t seem like a major issue to me, as it's not taking up too much space. However, this is not a priority for this PR, but I will like you to join this PR and change in the way you see fit, possible to add as well the documentation as you understand it better than me. Regarding server usage, when dealing with a cluster, there may be an issue selecting which server you want to view. I'll need to look into that. It's possible to add a list, like a tree structure, under the server in WHMCS. In the future, I would like to see this expanded with more options, tasks, logs, and support for multiple IPs per LXC. Each IP should be associated with both a hosting ID and a user ID, allowing us to track where it is assigned and enabling the assignment of multiple IPs as needed. Whats next? Addons / Admin Area -> Possible for this PR but not required
Not for this repo just for ref
Please as well contribuite with any feedback you have. Thanks |
Hi again, thanks for your work on this. I'm down on time at the moment to review and test this properly. Does anyone else have time to test this properly and report back with screenshots and info? There's mention of potential issues with this PR in its current state, so need to ensure we prioritise stability with merging! :-) |
Hey @ChristianGabs - can you please add screenshots of the Client Area and successful testing of all basic functions? Thanks! |
Hi, I apologize for the late response; I've been busy with work. On the client side, there aren’t to many changes—these updates are focused on addons. I understand there are changes on the server side, but it’s primarily just a code reformat. I can run additional tests if needed, but at this point, I've been working in my free time to rebuild the server side. There’s a lot I want to accomplish, but finding the time has been challenging. Here’s a preview of the server-side updates. As well I ditch the if (file_exists('../modules/addons/pvewhmcs/proxmox.php')) {
require_once('../modules/addons/pvewhmcs/proxmox.php');
} else {
require_once(ROOTDIR.'/modules/addons/pvewhmcs/proxmox.php');
} I'm using a wrapper ( package ) from Saleh7 where is more easy to use and run proxmox api's I’ll go back and rerun a test to ensure I haven’t broken anything on the server side. On another note, I've spent some time adding more features. I'm considering handling longer tasks, like creating a new server, as scheduled jobs to be managed by cron. This would prevent issues with browser timeouts, which aren’t ideal. Here is a sample of the new changes as well. Again, these changes are long-term and won’t be added here. I've simplified the addons to make it easier for us to start adding or building more features, especially pagination and other ideas we’d like. @lsthompson It would be great if you could join this repo to help with documentation and structuring the remaining pages as you see fit. Thank you PS: How api works Set config for login Set the login Call a stop for a VM I will stop poiting any directions where I'm going because this PR has no relation with server side Thanks |
Thanks @ChristianGabs - great stuff!
No problem, thanks for your work on this. It's always appreciated to get contributions towards the project. :-)
We can't merge it with that, as we use the wrapper from @CpuID (which I co-maintain).
I don't understand this undertone about isolating some changes from this repo. Please explain?
How'd you go with testing everything? We can look to amend and merge this in this quarter, if you can fully test it? Key thing is that we overhauled this so it does these things, in this order:
Hence the key focus is making sure we don't push anything hastily. |
Change title to VNC Secret on vnc template
Hi, I will do my best to finish this with you Let me start adding some DEMO : Adding - LXC Adding KVM Testing update for LXC Testing update for KVM I will update here all testing PS: Do not worry I will add the Balloon part as well Adding Balloon in design Update Balloon adding new KVM plan for balloon test |
There are lots of issues and try to compose some suggestion
->get()[0] -> use ->first()
node when you have cluster will be an issue ( store node name in vms tables)
Sleep 30 sec -> move to checking when server is offline
POST has exception retify that by try-catch
LXC can have OS Template in different location storage ( Add Storage and OS Storage )
Set as draft while I'm working