Comments (4)
The issue is apparently using the existence of ";" in the URL to sniff if the user is logged in or still at the login screen. In the new scheme there is no ";" in the URL, so Material gets it wrong.
https://github.com/LuttyYang/luci-theme-material/blob/master/files/htdocs/js/script.js#L147
I made a small patch in a live router to /www/luci-static/material/js/script.js . I eliminated the sniffing for ";". This works for me otherwise ok, but there is an empty left menu visible at the login screen:
root@OpenWrt:/usr/lib/lua/luci# diff /rom/www/luci-static/material/js/script.js
/www/luci-static/material/js/script.js
--- /rom/www/luci-static/material/js/script.js
+++ /www/luci-static/material/js/script.js
@@ -145,9 +145,6 @@
var ret = false;
var getUrlNode = function (href){
var linkPos = href.indexOf(";");
- if (linkPos == -1){
- return "login";
- }else{
linkPos = href.indexOf("/", linkPos);
if (linkPos == -1){
return "overview";
@@ -158,7 +155,6 @@
else
return link;
}
- }
};
var currentNode = getUrlNode(window.location.pathname);
from luci-theme-material.
Jow implemented a fix at the Openwrt Luci repo:
openwrt/luci@f9e590a
from luci-theme-material.
I'm busy these days, forgive me for not fixing it in time.
I will merger it latter, thanks
from luci-theme-material.
I fix it in version 0.2.13, I created a PR to fix it.
from luci-theme-material.
Related Issues (20)
- switch tab cannot show port status HOT 5
- Gap between </ul> and <div> in tabbed maps HOT 2
- Cannot satisfy the following dependencies for luci-theme-material HOT 11
- Fail to install luci-theme-material_0.2.18-1_all.ipk HOT 4
- Failed to execute template 'themes/material/header'. attempt to call global 'url' (a nil value) HOT 3
- "Loading" splashscreen is distracting
- Problems on 21:9 screen
- Invalid property value in css breaking left sidebar
- [0.2.19] doesn't shows main screen at all HOT 4
- Switch page doesn't show the "Port status" HOT 1
- Monospace font for textarea elements
- 500 Internal Server Error on header.htm while calling global 'url' HOT 5
- Stuck on loading HOT 3
- How i compile this theme myself?
- Spelling mistakes in English HOT 1
- Display problems (Material theme, IE) HOT 1
- input-textarea initial size not correct
- Style of logout button HOT 1
- MTK WiFi configuration HOT 4
- System Log scroll bars and log screen clipping
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luci-theme-material.