Git Product home page Git Product logo

luci-theme-neobird's Introduction

luci-theme-neobird

针对移动端优化的Openwrt主题

For Lean's OpenWRT Only https://github.com/coolsnowwolf/lede

六年前用OP,随手把luci-theme-material改成了自己喜欢的Advancedtomato样式 因为用了很短时间便没再用OP了,主题也没再管。 后来便有了lede固件默认使用material主题的修改版做主题,包括今天的luci-theme-netgear和luci-theme-argon还是我的思路,不过都不是我喜欢的样子。 还有一些luci-theme-atmaterial之类的都是当时我的样式表改的,还存在于某些固件中。

前几天又用上了OP做旁路,顺手又改了一把,然后随便找了个LOGO(netgear arlo),起了个名字,编译了一下。

主要特点:

  • 针对移动端优化,特别适合手机端做为webapp使用;
  • 修改很多细节,尽量视觉统一(但由于luci插件开发不规范,页面结构有些杂乱,难免有些小问题无法修正);
  • 极简易用设计,移动端去除繁杂信息,隐藏了提示信息(可能并不适合OP新手,请手机横屏查看提示文本);
  • 简洁的登录界面,底部导航栏,类App的沉浸式体验;
  • 适配深色模式,适配系统自动切换;
  • 全(tou)新(lai)的APP桌面图标;
  • Retina图片适配。

体验Webapp方法:

  • 在移动端(iOS/iPadOS)浏览器打开管理界面,添加到主屏幕即可。
  • 想要实现完全的沉浸式(无浏览器导航、无地址栏等)体验,需要使用SSL证书,请自行申请域名、证书、安装并启用。
  • 如果不使用SSL证书,基于安全原因,iOS/iPadOS 在打开新的页面后,将会显示浏览器顶部菜单栏。

目前存在的问题

  • 做为旁路由,安装的插件比较少,接口比较少,部分图片不可见则懒得换,可能未来会主动把图片换掉;
  • 部分插件或页面仅通过样式表很难达到完美,需要修改底层页面结构,这部分内容存在于luci源码中;

关于其它

  • 你可以改来自己用,也可以继续优化共享,但如果想改进后共享给他人,请再三确认自己的审美能力,以确保不是丑化我的成果
  • 因为用了arlo的logo,请勿用于商业用途
  • 我可能会在某个时间改掉logo
  • luci插件众多,不规范的插件可能会存在显示问题,不做保证

预览

macOS macOS macOS iOS iOS iOS

自行编译:

cd lede/package/lean  
rm -rf luci-theme-neobird  
git clone https://github.com/thinktip/luci-theme-neobird.git  
cd ~/lede/
make menuconfig #choose LUCI->Theme->Luci-theme-neobird  
make -j1 V=s

luci-theme-neobird's People

Contributors

thinktip avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

luci-theme-neobird's Issues

Error on snapshot

OpenWrt SNAPSHOT r19160-7ea2f3d6e2 / LuCI Master git-22.058.70382-d29400e
Version: luci-theme-neobird_1.99-202201272020_all.ipk

/usr/lib/lua/luci/template.lua:97: Failed to execute template 'view'.
A runtime error occurred: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'header'.
A runtime error occurred: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'themes/neobird/header'.
A runtime error occurred: [string "/usr/lib/lua/luci/view/themes/neobird/heade..."]:23: attempt to call field 'node_childs' (a nil value)
stack traceback:
	[string "/usr/lib/lua/luci/view/themes/neobird/heade..."]:23: in main chunk
stack traceback:
	[C]: in function 'error'
	/usr/lib/lua/luci/template.lua:97: in function 'render'
	/usr/lib/lua/luci/dispatcher.lua:696: in function 'include'
	[string "/usr/lib/lua/luci/view/header.htm"]:3: in main chunk
stack traceback:
	[C]: in function 'error'
	/usr/lib/lua/luci/template.lua:97: in function 'render'
	/usr/lib/lua/luci/dispatcher.lua:696: in function 'include'
	[string "/usr/lib/lua/luci/view/view.htm"]:1: in main chunk
stack traceback:
	[C]: in function 'error'
	/usr/lib/lua/luci/template.lua:97: in function </usr/lib/lua/luci/template.lua:85>
	(tail call): ?
	/usr/lib/lua/luci/dispatcher.lua:986: in function 'dispatch'
	/usr/lib/lua/luci/dispatcher.lua:479: in function </usr/lib/lua/luci/dispatcher.lua:478>

error

error

/usr/lib/lua/luci/template.lua:97: Failed to execute template 'admin_status/index'.
A runtime error occurred: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'header'.
A runtime error occurred: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'themes/neobird/header'.
A runtime error occurred: [string "/usr/lib/lua/luci/view/themes/neobird/heade..."]:23: attempt to call field 'node_childs' (a nil value)
stack traceback:
[string "/usr/lib/lua/luci/view/themes/neobird/heade..."]:23: in main chunk
stack traceback:
[C]: in function 'error'
/usr/lib/lua/luci/template.lua:97: in function 'render'
/usr/lib/lua/luci/dispatcher.lua:700: in function 'include'
[string "/usr/lib/lua/luci/view/header.htm"]:3: in main chunk
stack traceback:
[C]: in function 'error'
/usr/lib/lua/luci/template.lua:97: in function 'render'
/usr/lib/lua/luci/dispatcher.lua:700: in function 'include'
[string "/usr/lib/lua/luci/view/admin_status/index.h..."]:1: in main chunk
stack traceback:
[C]: in function 'error'
/usr/lib/lua/luci/template.lua:97: in function </usr/lib/lua/luci/template.lua:85>
(tail call): ?
/usr/lib/lua/luci/dispatcher.lua:1053: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:483: in function </usr/lib/lua/luci/dispatcher.lua:482>

怎么回事?求帮助
版本 luci-theme-neobird_1.99-202201272020_all.ipk

360V6显示问题

固件:LEDE, QSDK
内核:4.4.60
image
主题是最新版本,其他版本也是同样的问题
问题:
① MWAN3不能加载数据
image
② 接口图标异常或不显示
image
③ DHCPv6分配栏错位
image

安装后报错 红米2100

安装后整页面都出错,只能按之前#6 这位说的改回原有才行/etc/config/luci
/usr/lib/lua/luci/template.lua:97: Failed to execute template 'view'.
A runtime error occurred: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'header'.
A runtime error occurred: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'themes/neobird/header'.
A runtime error occurred: [string "/usr/lib/lua/luci/view/themes/neobird/heade..."]:23: attempt to call field 'node_childs' (a nil value)
stack traceback:
[string "/usr/lib/lua/luci/view/themes/neobird/heade..."]:23: in main chunk
stack traceback:
[C]: in function 'error'
/usr/lib/lua/luci/template.lua:97: in function 'render'
/usr/lib/lua/luci/dispatcher.lua:756: in function 'include'
[string "/usr/lib/lua/luci/view/header.htm"]:3: in main chunk
stack traceback:
[C]: in function 'error'
/usr/lib/lua/luci/template.lua:97: in function 'render'
/usr/lib/lua/luci/dispatcher.lua:756: in function 'include'
[string "/usr/lib/lua/luci/view/view.htm"]:1: in main chunk
stack traceback:
[C]: in function 'error'
/usr/lib/lua/luci/template.lua:97: in function </usr/lib/lua/luci/template.lua:85>
(tail call): ?
/usr/lib/lua/luci/dispatcher.lua:954: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:479: in function </usr/lib/lua/luci/dispatcher.lua:478>

请教一下,想云编译时拉作者的库直接修改 header.htm 把小飞机指向 Passwall,应该怎么弄?

想把 header.htm 里的 shadowsocksr 指向 passwall
云编译时用了下面的脚本

git clone https://github.com/thinktip/luci-theme-neobird package/luci-theme-neobird
sed -i 's/shadowsocksr/passwall/g' package/luci-theme-neobird/luasrc/view/themes/neobird/header.htm

主题顺利编译进去了,但那个 header.htm 文件没有修改成功

应该是我打开的姿势不正确
求助一下应该怎么做

> > 我的固件没编译SSR+,用的是passwall2,想让底栏的小飞机指向PASSWALL2,所以想请问下源码要在哪里修改这个链接

我的固件没编译SSR+,用的是passwall2,想让底栏的小飞机指向PASSWALL2,所以想请问下源码要在哪里修改这个链接

\usr\lib\lua\luci\view\themes\neobird\header.html 没找到图标在哪改。。

感谢指点,后边的目录好像写了图标的位置
<a href="/cgi-bin/luci/admin/services/shadowsocksr"><img src="<%=media%>/images/ssr.png" /></a>

Originally posted by @Curious-r in #33 (comment)

嗯。。我想多了 图片目录就在/www/luci-static/neobird/images

Menu 滚动条超出范围

Nice! 心仪的 UX!

Menu scroll 超出容器:
image

个人建议:
觉得主页面 scroll 也不盖悬浮 footer 更漂亮,再添加一个滚动条样式,超级棒!

非常感谢

手机底部小飞机

底部小飞机只调用适配与SSRPLUS+,未适配其它软件:如passwall等

两个小bug反馈

谢谢大佬百忙之中还能看我的反馈,反馈两个bug
IMG_20221202_034728
少了一张port down贴图
IMG_20221202_034746
可不可以添加一个通用图标给没适配的标签

安装后报错

报:/usr/lib/lua/luci/template.lua:97: Failed to execute template 'cbi/header'.

无法正常显示网页,ssh后改掉/etc/config/luci的设置重启恢复。
Openwrt 5.4.154内核

移动界面能否让左侧菜单自动折叠。

如果连续打开左侧菜单树,可能会因为菜单太长,导致无法选择到最下面的菜单内容。
能否像argon一样,只展开现在选择的菜单树,其他的自动收起

左侧栏底部显示被遮挡

如图所示

屏幕快照 2022-01-27 下午8 41 06-tuya
当左侧栏展开内容到底部时,最后的部分内容显示不全

ipk:luci-theme-neobird_1.99
iOS:iphone6s,iPad也一样
OpenWrt:ImmortalWrt 18.06 5.4.162 / LuCI openwrt-18.06-k5.4 branch (git-21.355.72893-3484628)


另外菜单的展开方式,neobird 展开后需要手动滑动,jerrykuku/luci-theme-argon 点击自动展开大部分内容,
当然这是偏好问题,供参考

IMB_fuFWb3-tuya
IMB_hdSUKH-tuya

X86固件安装报错

/usr/lib/lua/luci/template.lua:97: Failed to execute template 'view'.
A runtime error occurred: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'header'.
A runtime error occurred: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'themes/neobird/header'.
A runtime error occurred: [string "/usr/lib/lua/luci/view/themes/neobird/heade..."]:23: attempt to call field 'node_childs' (a nil value)
stack traceback:
	[string "/usr/lib/lua/luci/view/themes/neobird/heade..."]:23: in main chunk
stack traceback:
	[C]: in function 'error'
	/usr/lib/lua/luci/template.lua:97: in function 'render'
	/usr/lib/lua/luci/dispatcher.lua:705: in function 'include'
	[string "/usr/lib/lua/luci/view/header.htm"]:3: in main chunk
stack traceback:
	[C]: in function 'error'
	/usr/lib/lua/luci/template.lua:97: in function 'render'
	/usr/lib/lua/luci/dispatcher.lua:705: in function 'include'
	[string "/usr/lib/lua/luci/view/view.htm"]:1: in main chunk
stack traceback:
	[C]: in function 'error'
	/usr/lib/lua/luci/template.lua:97: in function </usr/lib/lua/luci/template.lua:85>
	(tail call): ?
	/usr/lib/lua/luci/dispatcher.lua:1009: in function 'dispatch'
	/usr/lib/lua/luci/dispatcher.lua:488: in function </usr/lib/lua/luci/dispatcher.lua:487>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.