-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
luci-app-olsr: migrate to JavaScript-based implementation #6445
luci-app-olsr: migrate to JavaScript-based implementation #6445
Conversation
And one issue is the null that you can see in the screencast in some of the status views, which is actually the hostname that I'm attempting to obtain using hosthints.getHostnameByIPAddr(v.gateway). We're getting the data and hosthints successfully, as can be seen in the screenshot, but it's still returning null, meaning that the hostname not known It's used in other apps & modules like this. luci/modules/luci-mod-dashboard/htdocs/luci-static/resources/view/dashboard/include/30_wifi.js Line 205 in fd5440a
|
Looks good! You should deal with the empty hostnames by doing something like I see you do something like
|
Okay! Sure, I'll fix it with the format function, and actually, in the old app, hostnames are visible instead of null. Means we've to find a way to get the hostnames. Because in my same VirtualBox OpenWrt, If I use the old Lua app, then all hostnames are visible.This is the only issue left. |
ad82cee
to
3500bc0
Compare
I fixed that for every instance of the hostname. |
dc4a59d
to
6d65aee
Compare
6d65aee
to
3e244ab
Compare
3e244ab
to
f09e211
Compare
applications/luci-app-olsr/root/usr/share/rpcd/acl.d/luci-app-olsr-unauthenticated.json
Outdated
Show resolved
Hide resolved
applications/luci-app-olsr/htdocs/luci-static/resources/view/olsr/status-olsr/hna.js
Outdated
Show resolved
Hide resolved
applications/luci-app-olsr/htdocs/luci-static/resources/view/olsr/status-olsr/routes.js
Outdated
Show resolved
Hide resolved
applications/luci-app-olsr/htdocs/luci-static/resources/view/olsr/status-olsr/neighbors.js
Outdated
Show resolved
Hide resolved
f09e211
to
44fa8df
Compare
Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com> luci-app-olsr: migrate to js fix XSS vulnerability Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com> luci-app-olsr: migrate to js luci-app-olsr: migrate to js fix minor bugs Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com> luci-app-olsr: migrate to js luci-app-olsr: migrate to js fix plugins bugs Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com> luci-app-olsr: migrate to js luci-app-olsr: migrate to js fix interfaces bugs Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com> luci-app-olsr: migrate to js luci-app-olsr: migrate to js fix interface & snr bugs Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com> luci-app-olsr: migrate to js luci-app-olsr: migrate to js fix hostname Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com> luci-app-olsr: migrate to js luci-app-olsr: migrate to js fix typo Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com> luci-app-olsr: migrate to js luci-app-olsr: migrate to js fix missing files, use rpc for hostnames, remove luci-compat Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com> luci-app-olsr: migrate to js luci-app-olsr: migrate to js fix menu order Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com> luci-app-olsr: migrate to js
44fa8df
to
ebd0933
Compare
@andibraeu - I don't have the means to runtime test but if you say it's fine then I'll go ahead and merge it. @Ayushmanwebdeveloper - thanks a lot for your effort! |
@jow- is it possible to backport this app to 23.05? I just tested 23.05 and the old app doesn't work anymore there. The new one is working fine |
Hi all, Just flashing our Freifunk Evernet last nigth with current OpenWrt trunk and Luci we run into the following issue, that might belong to this commit: after flashing trunk, the LUCI webinterface did only show olsr status - no menu for admin/network & co anymore: After deinstalling luci-app-olsr the Luci webinterface went back to a normal menu: @andibraeu @jow- any hints from the experts ? (seems like something is overloaded by luci-app-olsr) Greets Bluse |
Hello! We migrated the app such that status views are exposed to the public, which means they can be accessed without authentication. Particularly in your openwrt theme, you can return to admin by choosing Administration in the bottom right area of the page. In the Freifunk or Material theme everything works okay as shown in my screencast. |
luci-app-olsrjs.mp4
Hi! I've almost completed the migration of luci-app-olsr to JavaScript. Most of the features are functioning just like they did in the old Lua app. There are only two minor bugs remaining in the status views, which I will make sure to fix soon.
You can review the changes and please provide any suggestions or improvements. Since this is a very large application, I believe there is ample scope for feedback.
During the migration, I implemented a new RPCD and made changes to how plugins and their configurations were handled in the old app. I have implemented plugin configuration using the previous approach used for interfaces.
Most of the work is complete and functional. I am also uploading a screencast for reference. Fixes #5363
Thank you for your time!