Welcome, Guest
Please Login or Register.
Lost Password?
Re:developing themes with extjs? (1 viewing)
Post Reply

TOPIC: Re:developing themes with extjs?

#15452
kato (User)
Posts: 114
graphgraph
developing themes with extjs? 2008/08/06 12:47  
Hello gents,

I've been stewing this discussion that branched into themes for a couple days in my brain.

What really struck me was the need for abstraction between the virtualmin logic and the presentation. With that realization, I immediately started looking at tools available that can manage the entire UI without help from virtualmin, like extjs and flex.

Both of these tools provide all the libraries to generate trees, forms, dropdowns, dynamic server lookup of data, suggest and auto-complete on forms, sortable/scrollable/dynamic tables, and about everything else that could bring the VM interface alive.

And, most importantly, they can both do dynamic http requests to get all that data. So it seems to me that, rather than rewriting all the virtualmin modules from the ground up, maybe expanding the remote http API could be a better solution.

Then we'd be able to build any sort of interface on top of it without interfering with VM code development at all.

Let me know what sort of road blocks and limitations you forsee in this approach. If it sounds useful and possible, I'll throw together a proof of concept.

Post edited by: kato, at: 2008/08/06 12:49
Operating system CentOS Linux 4.6
Webmin version 1.420
Virtualmin version 3.60 (Pro)
Kernel and CPU Linux 2.6.9-67.0.22.ELsmp on i686
  The administrator has disabled public write access.
#15453
Joe (Admin)
Posts: 3796
graph
Re:developing themes with extjs? 2008/08/06 13:22  
Hehehe...I've been working on an ExtJS based theme for several months. Great minds think alike. Or something. ;-)

Part of that work is providing a JSON request type for many types of data. But, as with any theming in Webmin, it has to take into account all of the hundreds of modules, and many of them do not expose everything via API. In fact, very few expose the same thing you see in the UI. Virtualmin does mostly...but we need the whole enchilada, or we lose huge swaths of functionality.
  The administrator has disabled public write access.
#15454
Joe (Admin)
Posts: 3796
graph
Re:developing themes with extjs? 2008/08/06 13:25  
BTW-I'll contact you off-list, and get you access to the development version of the new theme. It'll probably just scare the enthusiasm right out of you, but if I'm lucky when you see it "almost working" it might be inspiring enough to overcome the fear of all the work still remaining.
  The administrator has disabled public write access.
#15485
kato (User)
Posts: 114
graphgraph
Re:developing themes with extjs? 2008/08/07 06:36  
Sure, use the email from my user profile. I'd be happy to check it out.
Operating system CentOS Linux 4.6
Webmin version 1.420
Virtualmin version 3.60 (Pro)
Kernel and CPU Linux 2.6.9-67.0.22.ELsmp on i686
  The administrator has disabled public write access.
#15486
kato (User)
Posts: 114
graphgraph
Re:developing themes with extjs? 2008/08/07 06:41  
One note on the use of extjs... they recently switched to a GPL license. Sadly, it's not even an LGPL, which means all libs and software that ship with it have to be GPL too, or you have to buy an expensive developer license (an org I work for recently went through this).

I'm guessing that is incompatible with the Virtualmin Pro license, since users aren't allowed to redistribute it freely.

However, when they switched the license, someone branched off and put one on sourceforge which was an LGPL or BSD license, can't quite remember. So that's a possible angle for using extjs.
Operating system CentOS Linux 4.6
Webmin version 1.420
Virtualmin version 3.60 (Pro)
Kernel and CPU Linux 2.6.9-67.0.22.ELsmp on i686
  The administrator has disabled public write access.
#15495
Joe (Admin)
Posts: 3796
graph
Re:developing themes with extjs? 2008/08/07 10:29  
We have a commercial license and support agreement, though we will probably be releasing the theme under the GPL, anyway (because I don't think we want to keep Virtualmin GPL users out in the cold from the awesome new theme). It's not that expensive. Just a few hundred bucks per developer.
  The administrator has disabled public write access.
#15497
kato (User)
Posts: 114
graphgraph
Re:developing themes with extjs? 2008/08/07 10:38  
It's not that expensive.
Well, that may be true if you're not a cheapskate like me :(

And yay, commercial license solves all those worries.
Operating system CentOS Linux 4.6
Webmin version 1.420
Virtualmin version 3.60 (Pro)
Kernel and CPU Linux 2.6.9-67.0.22.ELsmp on i686
  The administrator has disabled public write access.
#15574
kato (User)
Posts: 114
graphgraph
Re:developing themes with extjs? 2008/08/09 08:04  
BTW-I'll contact you off-list
Haven't got that contact yet. But I am definitely interested.
Operating system CentOS Linux 4.6
Webmin version 1.420
Virtualmin version 3.60 (Pro)
Kernel and CPU Linux 2.6.9-67.0.22.ELsmp on i686
  The administrator has disabled public write access.
#15580
Joe (Admin)
Posts: 3796
graph
Re:developing themes with extjs? 2008/08/09 13:02  
I realized when I was writing up what you need to checkout, that it's actually rather complicated to make it work from an SVN checkout, so I'm writing a script to run after the checkout to make it a little more sane (I need such a script anyway, as I keep running into problems with the process myself). You and Eric both want to tinker with it, so I'm going to try to avoid wasting too much of your time poking at it. ;-)

I'll try to wrap it up today.
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.