freifunkh / site

Freifunk Hannover specific Gluon site configuration for Firmware building.
https://hannover.freifunk.net
5 stars 5 forks source link

Move from luci to gluon web #3

Closed lemoer closed 6 years ago

lemoer commented 7 years ago

Hi, with the merge of https://github.com/freifunk-gluon/gluon/pull/1007 , Gluon now doesn't use LuCI for its Config Mode anymore, but our own fork "gluon-web", which is significantly smaller (as lots of features we don't need have been removed).

In a typical Gluon build (including the locales en and de), this reduces the compressed size of the root filesystem by about 140KB. The per-language overhead for all packages in the Gluon repository is less than 4KB in total (with LuCI, it was more than 20KB).

As there are significant differences from LuCI in our fork, all Config Mode Wizard / Advanced settings modules will need to be adjusted (in particular, the "luci" Lua module has been renamed to "gluon.web"). Our documentation has been updated to provide some guidelines how to develop for gluon-web, and how to migrate LuCI-based code:

http://gluon.readthedocs.io/en/latest/#gluon-web-reference

This change also requires some changes in site repositories. All "advanced settings" packages have been renamed:

gluon-luci-admin -> gluon-web-admin
gluon-luci-autoupdater -> gluon-web-autoupdater
gluon-luci-mesh-vpn-fastd -> gluon-web-mesh-vpn-fastd
gluon-luci-node-role -> gluon-web-node-role
gluon-luci-portconfig -> gluon-web-network
gluon-luci-private-wifi -> gluon-web-private-wifi
gluon-luci-wifi-config -> gluon-web-wifi-config

In addtion, i18n templates containing Lua code will need adjustments if the "escape" or "urlescape" functions are used; they have been dropped in favour of the "pcdata" and "urlencode" functions from LuCI (that do exactly the same thing).

-- NeoRaider

lemoer commented 7 years ago

Blocked by #12

lemoer commented 7 years ago

I'll also remove the blocked label here, as this is blocked neither...

lemoer commented 7 years ago

Interessting... We are having no packages gluon-luci-mesh-vpn-fastd, gluon-luci-node-role yet.

lemoer commented 7 years ago

I just pushed the adjustments.

I think we should test at least, whether the i18n/ stuff is working, so i'll leave this issue opened.

lemoer commented 6 years ago

Seems to work in nightly builds. Closing.