I’m wanting to “graduate” from CLI-only modules (i.e., where all the configuration is done by config setprop commands from the shell) to being able to configure the module within the server manager. And since NS is moving to Cockpit, I guess that’s what I’d need to figure out. But reading through the tutorial has me wondering just how far over my head I’m getting here.
My biggest problem, I think, is that I’m simply not a web developer in any way, shape, or form. I know a little basic HTML, and I can manage a bit in PHP, but I’ve never touched CSS or done anything with Javascript. That last point seems like the real problem, as everything in Cockpit seems to be in .js. So–just how much Javascript do I need to know? Where should I start on that? Or am I misunderstanding even that much?
Some guys could say it is easy, but others could say it is beyond their knowledge of system administrators. Nethgui was easy, but you could do only what nethgui allowed you, cockpit let your free hands, however you have to write everything.
From what I think, vanilla js is not the way to go, vuejs is better, even if a js knowledge is needed, the data binding is easier. Vuejs takes care to update in the dom, the vars you have declared.
I started a scarfold of a rpm for cockpit vuejs, it is a starting point, after that you have to write your html/js/css but now you have several hundred thousand lines of code as example in the nethserver github repository.
If you only want to display a web application (or a nethgui panel) I did another way
The session I did at nethesis last year, helped me a lot, but at a point sometime you need to accept that it works without understand how it works…and read a lot of lines of code.
Thanks for the pointers. I’m not above cobbling together pieces of existing modules (that’s what Open Source is all about, right?), but it does sound like I’d need to learn at least some basics of JavaScript to make sense of what the existing stuff is doing.
Too much other stuff going on. I’d thought that with the COVID-19 lockdown I might have some extra time, but I’m busier with work than I’ve ever been. Still on my to-do list, but it doesn’t seem to be getting much higher on that list.