mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-16 21:43:33 +08:00
Update 50_luci-quickstart
This commit is contained in:
1 parent
92b5d486f9
commit
726716720b
1 file changed
+3
-4
@@ -14,10 +14,9 @@ sed -i -E '
|
||||
s/[a-zA-Z0-9_$]+\.networkInfo/&==="softSourceFailed"?"netSuccess":&/
|
||||
s/,"softSourceFailed"|,softSourceFailed:\[[^]]*\]|:[^:?]*==="softSourceFailed"\?"source"//g
|
||||
|
||||
# 4. 彻底移除软件源配置(tool-source)入口与“恢复默认八项”按钮
|
||||
s/,\{id:"tool-source"[^}]*\}|,"tool-source"//g
|
||||
s/,\{id:"tool-firmware"[^}]*\}|,"tool-firmware"//g
|
||||
s/,\{id:"tool-sandbox"[^}]*\}|,"tool-sandbox"//g
|
||||
# 4. 移除指定工具入口(如 tool-source, tool-firmware, tool-sandbox)与“恢复默认八项”按钮
|
||||
s/,\{id:"tool-(source|firmware|sandbox)"[^}]*\}|,"tool-(source|firmware|sandbox)"//g
|
||||
s/get favorites\(\)\{return ([^}]*\.favorites)\}/get favorites(){return \1.filter(y=>!["tool-source","tool-firmware","tool-sandbox"].includes(y))}/
|
||||
s/,[a-zA-Z0-9_$]+\("button",\{[^}]*"data-shortcut-restore":""\},[^}]*\("恢复默认八项","Restore eight defaults"\)\),1\)//
|
||||
|
||||
# 5. 自定义链接支持 / 开头的绝对路径(保存时转为 http://localhost/... 以通过后端校验,展示与跳转时还原为 /...)
|
||||
|
||||
Reference in new issue
Block a user