Hello @davidep and @stephdl
Happy new Year
I was asking is there a vue3 ns8 ui library
lets answer @andre8244
Hello Elvis,
there is currently no Vue 3 library for NS8. We evaluated this option carefully, but it would require migrating all library components to Carbon 11, as well as migrating the core and all NS8 modules to Vue 3. This represents a huge amount of work and, in the end, it wouldn’t be worth the effort.
Thank you @andre8244 for the feedback
i had started migrating the ui lib thats why i asked so that i dont repeat already done work
For one replacing carbon 11 i was thinking of using this
Since they appear to have the same api as carbon 11
Reason i want to migrate to vue3 is i am currently testing web terminals and i would like to impliment the web terminal in ns8-modules
Here is the example implimentation
https://web-terminals.vercel.app/
GitHub - nethesis/vue-components: Vue 3 components and utilities library based on Flowbite is the library we developed for our vue 3 applications. I don’t understand what you mean by “it appears to have the same api as carbon 11” but I don’t think this is a viable solution.
I meant like props and actions appears to be the same as for carbon vue
let me dig deep into it and let you know
i have been porting the ns8-ui-lib to vue 3 still in alpha version hopefully will test this week on a module to check if it works
Finally ported the Ns8-ui to v3
here is a starter kit to the new ui in vue3 i have been working on
Still not very clean and refined but will update it soon
i have tried to impliment websockets so that i can have embeded web terminal on the ui.
i am still looking into it here is a sample reference i have been working on
@davidep The websocket in ns8-core can it spawn a terminal process which can be used with something like xterm
no idea how, but the answer is yes ![]()
Yes, everything is possible
but api-server runs under non-root privileges, which makes it not ideal for this purpose.
There is already a web-based terminal available in Cockpit (both on Debian and Rocky). Considering the development effort required, why would you want to implement another one?
I have not explored cockpit
I didnt know it has a terminal
let me check it out
I wanted to implement the web based terminal since sometimes you can be far from your machine and you would like to run some few commands inside the containers
That’s what SSH is for, no?
True, but the port must be opened in the FW, and some people wants to use web based terminal.
I undestand you dan ![]()
The web based is mostly for convenience when you are around you machine
The web based terminal will be very useful to me