luci-app-shadowsocks-libev: servers page broken in latest luci
See original GitHub issue@jow- @yousong
The “Remote Servers” page is broken in new version of luci, showing “TypeError Cannot read property ‘id’ of undefined”.
I found it’s because UIDropdown.__init__
is not called, which is caused by super
function.
https://github.com/openwrt/luci/blob/1df1421221a2e22334668e6c5524fc359f21d32d/modules/luci-base/htdocs/luci-static/resources/luci.js#L267-L291
I don’t know why superContext
is not a local veriable. Because of this, superContext
remains LuCI.View
when UIDropdown.__init__
is called. So __init__
is not found and not called.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
package: luci-app-shadowsocks-libev - OpenWRT
Name: luci-app-shadowsocks-libev; Version: git-20.216.14006-3a7c6df; Description: LuCI Support for shadowsocks-libev\\ \\; Installed size: ...
Read more >Brush OpenWRT router installation shadowsocks to use ...
First you need to download the necessary software package - a package that is shadowsocks luci and graphical control app,Their respective ...
Read more >GSoC 2018 Archives - Page 2 of 5 - Freifunkblog
The main goal was to have a ground routing configuration page in Lime-app (simple GUI for Libremesh router management). This main goal was...
Read more >Tproxy udp - Seba Online
Contribute to maxlicheng/luci-app-ssr-plus development by creating an account ... Shadowsocks-libev is a lightweight secured SOCKS5 proxy for e513/udp : who ...
Read more >Ports and Clients - renfufei/shadowsocks GitHub Wiki
Click / TAP HERE TO View Page on GitHub.com ➡️ ... Linux / Server side ... openwrt-shadowsocks - LuCI package for shadowsocks-libev ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@yousong - thanks for the suggestion. I opted for a different approach in the end which was easier for me to wrap my head around.
@jow- Likely it’s not enough and a stack-like structure is required.
Let’s consider the following case. The 2nd and 3rd
super('render')
calls are at the same level. Context will be cleared on return from 2nd call, causing the 3rd call starting from scratch invoking method of child class.