-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
migrate luci-mod-freifunk to js #54
Conversation
missing or gone: * osm in basic settings to select location * default routes in public status * freifunk widgets in public index Signed-off-by: Andreas Bräu <[email protected]>
|
Is this the default route when smartgw in olsrd is disabled? If so, then it would be "nice to have" but definitaley not a "need to have".
The Hedy and Falter firmwares both do not use freifunk-widgets. If other communities use them, I'm not sure. I would say to just leave them out.
|
Signed-off-by: Andreas Bräu <[email protected]>
@@ -60,41 +21,6 @@ function index() | |||
|
|||
-- backend | |||
assign({"mini", "freifunk"}, {"admin", "freifunk"}, _("Freifunk"), 5) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jow- is there something equivalent to assign
in the new json-based menu?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andibraeu - theoretically you just need to add different menu items invoking the same action (view, template, call, etc.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But it is not possible to "inherit" a complete submenu structure from another package like in
page = assign({"freifunk", "olsr"}, {"admin", "status", "olsr"}, _("OLSR"), 30)
page.setuser = false
page.setgroup = false
page.acl_depends = {}
?
Signed-off-by: Andreas Bräu <[email protected]>
It's done so far. However, we do have some leftovers in There are also some links to other modules, e.g. to show the OLSR menu in the unauthenticated freifunk module. |
Signed-off-by: Andreas Bräu <[email protected]>
as I am not active in the repo, and falter firmware doesn't use it, then I would prefer if @SvenRoederer merged this |
Thanks for this rework.
I'll give it a short test on some device, but prefer merging and fix possible issues / add missing features later |
yes, correct.
👍 |
I didn't even know they existed ^^' Are there any examples what could be done or has been done using the widgets? |
I guess these are some examples for widgets: https://github.com/freifunk/openwrt-packages/tree/master/applications/luci-app-freifunk-widgets/luasrc/view/freifunk/widgets (I wasn't aware of those widgets, too) But I'm not sure if we can use them in the shiny new js world as is. I would say not to support them anymore until someone who needs them will reimplement the widgets. |
@SvenRoederer have you had a chance to test? |
just gave it a short test with recent OpenWrt-snapshot. Seen some small issues when some data-fields are not filled, map-loading and others. But that are minor things, which should not block merging as this will fix the more critical issues (mentioned above) One comment regarding #44 and dropping the permissions (#44 (comment)): Looks like the new code is not doing this explicitly like the old one, but as we now use the RPCd-acls it seems acceptable to do not. I did not test OLSR or statistics, as they are not included in my test-build. |
Access control is handled here: OLSR and Statistics have not been part of this package, but the menu items. That's why there's still an old part is here |
* they are not supported anymore after migrating luci-mod-freifunk * there seems nobody using them Signed-off-by: Sven Roederer <[email protected]>
just pushed 7eb0703 to remove the widgets, that are now not supported anymore. |
no concerns from me |
* migrate luci-mod-freifunk to to new JavaScript based design introduced by LuCI in OpenWrt-19.07 * drops the Freifunk-widgets, as the infrastructure is not ported and they seem not to be used at all
* migrate luci-mod-freifunk to to new JavaScript based design introduced by LuCI in OpenWrt-19.07 * drops the Freifunk-widgets, as the infrastructure is not ported and they seem not to be used at all Signed-off-by: Andreas Bräu <[email protected]>
* migrate luci-mod-freifunk to to new JavaScript based design introduced by LuCI in OpenWrt-19.07 * drops the Freifunk-widgets, as the infrastructure is not ported and they seem not to be used at all Signed-off-by: Andreas Bräu <[email protected]>
missing or gone:
Signed-off-by: Andreas Bräu [email protected]