-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
34f0e0f
commit afcf336
Showing
7,274 changed files
with
2,198,209 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# | ||
# Copyright (C) 2020 Mod By-Ameng Openwrt | ||
# | ||
# This is free software, licensed under the Apache License, Version 2.0 . | ||
# | ||
|
||
include $(TOPDIR)/rules.mk | ||
|
||
LUCI_TITLE:=luci-theme-Light | ||
LUCI_PKGARCH:=all | ||
PKG_VERSION:=1.6 | ||
PKG_RELEASE:=202000308 | ||
|
||
|
||
include $(TOPDIR)/feeds/luci/luci.mk | ||
|
||
# call BuildPackage - OpenWrt buildroot signature |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
661 changes: 661 additions & 0 deletions
661
luci-theme-Light/luci-theme-Light/htdocs/luci-static/Light/cascade.css
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file added
BIN
+2.54 KB
luci-theme-Light/luci-theme-Light/htdocs/luci-static/Light/favicon.ico
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
luci-theme-Light/luci-theme-Light/htdocs/luci-static/Light/html5.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
luci-theme-Light/luci-theme-Light/htdocs/luci-static/Light/mobile.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
header h3 a, header .brand { | ||
display:none !important; | ||
} | ||
|
||
@media screen and (max-device-width: 600px) { | ||
#maincontent.container { | ||
margin-top: 30px; | ||
} | ||
} | ||
|
||
@media screen and (max-device-width: 360px) { | ||
#maincontent.container { | ||
margin-top: 60px; | ||
} | ||
} | ||
|
||
@media screen and (max-device-width: 200px) { | ||
#maincontent.container { | ||
margin-top: 230px; | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 55 additions & 0 deletions
55
luci-theme-Light/luci-theme-Light/luasrc/view/themes/Light/footer.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<%# | ||
Copyright 2008 Steven Barth <steven@midlink.org> | ||
Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> | ||
Copyright 2012 David Menting <david@nut-bolt.nl> | ||
Copyright 2018-2019 By Ameng | ||
Licensed to the public under the Apache License 2.0. | ||
-%> | ||
|
||
<% | ||
local ver = require "luci.version" | ||
local disp = require "luci.dispatcher" | ||
local request = disp.context.path | ||
local category = request[1] | ||
local tree = disp.node() | ||
local categories = disp.node_childs(tree) | ||
%> | ||
<footer> | ||
<a href="/cgi-bin/luci/admin/status/overview"> <%= ver.distversion %> </a> | ||
<% if #categories > 1 then %> | ||
<ul class="breadcrumb pull-right" id="modemenu"> | ||
<% for i, r in ipairs(categories) do %> | ||
<li<% if request[1] == r then %> class="active"<%end%>><a href="<%=controller%>/<%=r%>/"><%=striptags(translate(tree.nodes[r].title))%></a> <span class="divider">|</span></li> | ||
<% end %> | ||
</ul> | ||
<% end %> | ||
</footer> | ||
</div> | ||
</div> | ||
</body> | ||
<script> | ||
window.onload = function(){ | ||
var content = document.getElementsByName("content"); | ||
var luci_username = document.getElementsByName("luci_username"); | ||
var luci_password = document.getElementsByName("luci_password"); | ||
if (content.length == 1 && luci_username.length == 1 && luci_password.length == 1) { | ||
//需要登录 | ||
document.body.classList.add('node-main-login'); | ||
luci_username[0].parentElement.parentElement.classList.add('luci_username_div'); | ||
luci_username[0].parentElement.parentElement.children[0].style.display = "none"; | ||
luci_password[0].parentElement.parentElement.classList.add('luci_password_div'); | ||
luci_password[0].parentElement.parentElement.children[0].style.display = "none"; | ||
|
||
var errorbox = document.getElementsByClassName("errorbox"); | ||
if (errorbox.length == 1) { | ||
var tips = document.getElementsByClassName("cbi-map-descr"); | ||
if (tips.length == 1) { | ||
tips[0].innerHTML = errorbox[0].innerHTML; | ||
tips[0].classList.add('errorbox'); | ||
errorbox[0].style.display = "none"; | ||
} | ||
} | ||
} | ||
} | ||
</script> | ||
</html> |
204 changes: 204 additions & 0 deletions
204
luci-theme-Light/luci-theme-Light/luasrc/view/themes/Light/header.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,204 @@ | ||
<%# | ||
Copyright 2008 Steven Barth <steven@midlink.org> | ||
Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> | ||
Copyright 2012 David Menting <david@nut-bolt.nl> | ||
Licensed to the public under the Apache License 2.0. | ||
-%> | ||
|
||
<% | ||
local sys = require "luci.sys" | ||
local util = require "luci.util" | ||
local http = require "luci.http" | ||
local disp = require "luci.dispatcher" | ||
|
||
local boardinfo = util.ubus("system", "board") | ||
|
||
local request = disp.context.path | ||
local request2 = disp.context.request | ||
|
||
local category = request[1] | ||
local cattree = category and disp.node(category) | ||
|
||
local leaf = request2[#request2] | ||
|
||
local tree = disp.node() | ||
local node = disp.context.dispatched | ||
|
||
local categories = disp.node_childs(tree) | ||
|
||
local c = tree | ||
local i, r | ||
|
||
-- tag all nodes leading to this page | ||
for i, r in ipairs(request) do | ||
if c.nodes and c.nodes[r] then | ||
c = c.nodes[r] | ||
c._menu_selected = true | ||
end | ||
end | ||
|
||
-- send as HTML5 | ||
http.prepare_content("text/html") | ||
|
||
local function nodeurl(prefix, name, query) | ||
local url = controller .. prefix .. name .. "/" | ||
if query then | ||
url = url .. http.build_querystring(query) | ||
end | ||
return pcdata(url) | ||
end | ||
|
||
local function subtree(prefix, node, level) | ||
if not level then | ||
level = 1 | ||
end | ||
|
||
local childs = disp.node_childs(node) | ||
if #childs > 0 then | ||
|
||
if level > 2 then | ||
%> | ||
<ul class="tabs"> | ||
<% | ||
end | ||
|
||
local selected_node | ||
local selected_name | ||
local i, v | ||
|
||
for i, v in ipairs(childs) do | ||
local nnode = node.nodes[v] | ||
if nnode._menu_selected then | ||
selected_node = nnode | ||
selected_name = v | ||
end | ||
if level > 2 then | ||
%> | ||
<li class="tabmenu-item-<%=v%><%- if nnode._menu_selected or (node.leaf and v == leaf) then %> active<% end %>"> | ||
<a href="<%=nodeurl(prefix, v, nnode.query)%>"><%=striptags(translate(nnode.title))%></a> | ||
</li> | ||
<% end | ||
end | ||
|
||
if level > 2 then | ||
%> | ||
</ul> | ||
<% end | ||
|
||
if selected_node then | ||
subtree(prefix .. selected_name .. "/", selected_node, level + 1) | ||
end | ||
end | ||
end | ||
-%> | ||
<!DOCTYPE html> | ||
<html lang="<%=luci.i18n.context.lang%>"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title><%=striptags( (boardinfo.hostname or "?") .. ( (node and node.title) and ' - ' .. translate(node.title) or '')) %> - LuCI</title> | ||
<!--[if lt IE 9]><script src="<%=media%>/html5.js"></script><![endif]--> | ||
<meta name="viewport" content="initial-scale=1.0"> | ||
<link rel="stylesheet" href="<%=media%>/cascade.css"> | ||
<link rel="stylesheet" media="only screen and (max-device-width: 854px)" href="<%=media%>/mobile.css" type="text/css" /> | ||
<link rel="shortcut icon" href="<%=media%>/favicon.ico"> | ||
<% if node and node.css then %><link rel="stylesheet" href="<%=resource%>/<%=node.css%>"> | ||
<% end -%> | ||
<% if css then %><style title="text/css"> | ||
<%-= css %> | ||
</style> | ||
<% end -%> | ||
<script src="<%=resource%>/xhr.js"></script> | ||
</head> | ||
|
||
<body class="lang_<%=luci.i18n.context.lang%> <%- if node then %><%= striptags( node.title ) %><%- end %>"> | ||
<header> | ||
<div class="fill"> | ||
<div class="container"> | ||
<a class="brand" href="#"><%=boardinfo.hostname or "?"%></a> | ||
<ul class="nav"> | ||
<%- | ||
local function submenu(prefix, node) | ||
local childs = disp.node_childs(node) | ||
if #childs > 0 then | ||
%> | ||
<ul class="dropdown-menu"> | ||
<%- | ||
for i, r in ipairs(childs) do | ||
local nnode = node.nodes[r] | ||
local href = controller .. prefix .. r .. | ||
(nnode.query and http.build_querystring(nnode.query) or "") | ||
%> | ||
<li><a href="<%=pcdata(href)%>"><%=pcdata(striptags(translate(nnode.title)))%></a></li> | ||
<%- | ||
end | ||
%> | ||
</ul> | ||
<%- | ||
end | ||
end | ||
|
||
childs = disp.node_childs(cattree) | ||
|
||
if #childs > 0 then | ||
for i, r in ipairs(childs) do | ||
local nnode = cattree.nodes[r] | ||
local href = controller .. "/" .. category .. "/" .. r .. | ||
(nnode.query and http.build_querystring(k.query) or "") | ||
local grandchildren = disp.node_childs(nnode) | ||
|
||
if #grandchildren > 0 then | ||
%> | ||
<li class="dropdown"> | ||
<a class="menu" href="#"><%=pcdata(striptags(translate(nnode.title)))%></a> | ||
<%- submenu("/" .. category .. "/" .. r .. "/", nnode) %> | ||
</li> | ||
<% else %> | ||
<li> | ||
<a href="<%=pcdata(href)%>"><%=pcdata(striptags(translate(nnode.title)))%></a> | ||
</li> | ||
<% | ||
end | ||
end | ||
end | ||
%> | ||
</ul> | ||
|
||
<% | ||
-- calculate the number of unsaved changes | ||
if tree.nodes[category] and tree.nodes[category].ucidata then | ||
local ucichanges = 0 | ||
|
||
for i, j in pairs(require("luci.model.uci").cursor():changes()) do | ||
for k, l in pairs(j) do | ||
for m, n in pairs(l) do | ||
ucichanges = ucichanges + 1; | ||
end | ||
end | ||
end | ||
%> | ||
<div class="pull-right"> | ||
<% if ucichanges > 0 then %> | ||
<a class="label notice" href="<%=controller%>/<%=category%>/uci/changes"><%:Unsaved Changes%>: <%=ucichanges%></a> | ||
<% end %> | ||
<span id="xhr_poll_status" style="display:none" onclick="XHR.running() ? XHR.halt() : XHR.run()"> | ||
<span class="label success" id="xhr_poll_status_on"><%:Auto Refresh%> <%:on%></span> | ||
<span class="label" id="xhr_poll_status_off" style="display:none"><%:Auto Refresh%> <%:off%></span> | ||
</span> | ||
</div> | ||
<% end %> | ||
</div> | ||
</div> | ||
</header> | ||
|
||
<%- if luci.sys.process.info("uid") == 0 and luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") then -%> | ||
<div class="container"> | ||
<div class="alert-message warning"> | ||
<h4><%:No password set!%></h4> | ||
<%:There is no password set on this router. Please configure a root password to protect the web interface and enable SSH.%><br> | ||
<a href="<%=pcdata(luci.dispatcher.build_url("admin/system/admin"))%>"><%:Go to password configuration...%></a> | ||
</div> | ||
</div> | ||
<%- end -%> | ||
|
||
<div id="maincontent" class="container"> | ||
<% if category then subtree("/" .. category .. "/", cattree) end %> |
7 changes: 7 additions & 0 deletions
7
luci-theme-Light/luci-theme-Light/root/etc/uci-defaults/luci-theme-Light
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/sh | ||
uci batch <<-EOF | ||
set luci.themes.Light=/luci-static/Light | ||
set luci.main.mediaurlbase=/luci-static/Light | ||
commit luci | ||
EOF | ||
exit 0 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# SPDX-Identifier-License: GPL-3.0-only | ||
# | ||
# Copyright (C) 2021 ImmortalWrt.org | ||
|
||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=UnblockNeteaseMusic | ||
PKG_BASE_VERSION:=0.27.4-patch.1 | ||
PKG_RELEASE:=$(AUTORELEASE) | ||
|
||
PKG_SOURCE_PROTO:=git | ||
PKG_SOURCE_URL:=https://github.com/UnblockNeteaseMusic/server.git | ||
PKG_SOURCE_DATE:=2022-10-09 | ||
PKG_SOURCE_VERSION:=253dc89329ebd16ff22175d9d0ab9382ed8aaccc | ||
PKG_MIRROR_HASH:=c27f457713df611411d6d809d921669c07a1307f4e3c4c83d8237b478f1c3105 | ||
|
||
PKG_VERSION:=$(PKG_BASE_VERSION)-$(PKG_SOURCE_DATE)-$(call version_abbrev,$(PKG_SOURCE_VERSION)) | ||
|
||
PKG_LICENSE:=LGPL-3.0-only | ||
PKG_LICENSE_FILE:=LICENSE | ||
PKG_MAINTAINER:=Tianling Shen <[email protected]> | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define Package/UnblockNeteaseMusic | ||
SECTION:=multimedia | ||
CATEGORY:=Multimedia | ||
TITLE:=Revive Netease Cloud Music (NodeJS) | ||
URL:=https://github.com/nondanee/UnblockNeteaseMusic | ||
DEPENDS:=+node | ||
PKGARCH:=all | ||
endef | ||
|
||
define Build/Prepare | ||
mkdir -p $(PKG_BUILD_DIR) | ||
xzcat $(DL_DIR)/$(PKG_SOURCE) | $(TAR) -C $(PKG_BUILD_DIR) $(TAR_OPTIONS) | ||
endef | ||
|
||
define Build/Configure | ||
echo -e $(PKG_BASE_VERSION) > $(PKG_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/core_ver | ||
echo -e $(PKG_SOURCE_VERSION) > $(PKG_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/local_ver | ||
endef | ||
|
||
define Build/Compile | ||
endef | ||
|
||
define Package/UnblockNeteaseMusic/install | ||
$(INSTALL_DIR) $(1)/usr/share/UnblockNeteaseMusic | ||
$(CP) $(PKG_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/* $(1)/usr/share/UnblockNeteaseMusic | ||
endef | ||
|
||
$(eval $(call BuildPackage,UnblockNeteaseMusic)) |
Oops, something went wrong.