That bit is, yes.
Post by brian readLooking forward to paying with it again.
Cool.
Post by brian readSo - does the team think that we should re-create our existing server
manager in mojolicious? Giving us the extra flexibility to create new
pages, but with the same general look and feel.
I've just hit a new roadblock, and this is a biggy.
The issue is that the current panels have formmagick stuff actually
embedded in the code.
Think of the old html days before separation of code and style prior to css.
That means you can't just use/call an existing function. It won't just
give you pure data, but a load of formmagick layout code too.
The current server-manager 'API' is a mix of code and style.
It would need entirely unpicking, separating the code from the content.
What makes it even worse is the complete mix of style. Some files are
probably easier than others. useraccounts.pm includes quite a bit of
Formmagick code inline. Others have much less.
Post by brian readThen perhaps we could work on a new look and feel later on.
Or do we try to do a complete re-write now?
I am certainly up for re-programming our existing interface in mojo...
Essentially look and feel isn't really an issue if we separate function
from style.
I had a look at Stefanos code last night and today and can see what he
was doing (though he was running his mojo script as a 'daemon' which I
do not think is required)
Essentially if the functions were rewritten with the style completely
stripped out, they could output to a Mojo template (using say
bootstrap/jquery as I have done), or just as a string of JSON data to
another frontend - eg cockpit or somesuch.
Really it is then a case of :
Get "called.pm?send me a template/send me some json using this data"
Do something
render->template
or
render->jsonstring
The call could come from 'anywhere/any app'. You could theoretically
drop in any frontend you wanted as long as the data was output in a
standard form.
(As an aside, language is another issue I'll happily forget about right
now !)
Post by brian readI am certainly up for re-programming our existing interface in mojo... I
think (hope) it is not beyond my limited Perl skills now that john has
seen the general way forward.
My ability at designing look and feel is minimal but am happy to do what
someone else has designed.
As I have outlined, I think it really needs a rewrite of all the core
panel code. Have a look here to see the files that need modifying:
/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel
Whether there is a quick/dirty/easy way of doing this I do not know -
the original files can be used as a template, in conjunction with
whatever is in /etc/e-smith/web/functions
The only GOOD news is there are not too many files !!!!
Whether I can figure out an interim way of doing something, or if you
just have to bite the bullet and rewrite entirely I don't as yet know.
I had a look at the WBL plugin code - that seems to be fairly well
separated between code and style and I might try and use that as the
basis for a test panel with my bootstrap/jquery stuff, just for the
shits & giggles :-)
Any comments or suggestions are welcome.... I may have missed some
important stuff, made some stupid assumptions, or just be plain wrong.
But I never claimed to be a coder.....
_______________________________________________
Server Development Discussion
To unsubscribe, e-mail devinfo-***@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/devinfo/