Add luci-theme-design
3353
luci-theme-design/htdocs/luci-static/design/css/style copy.css
Normal file
3611
luci-theme-design/htdocs/luci-static/design/css/style.css
Normal file
BIN
luci-theme-design/htdocs/luci-static/design/favicon.png
Normal file
After Width: | Height: | Size: 535 B |
BIN
luci-theme-design/htdocs/luci-static/design/fonts/font.eot
Normal file
16
luci-theme-design/htdocs/luci-static/design/fonts/font.svg
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<metadata>Generated by IcoMoon</metadata>
|
||||
<defs>
|
||||
<font id="icomoon" horiz-adv-x="1024">
|
||||
<font-face units-per-em="1024" ascent="960" descent="-64" />
|
||||
<missing-glyph horiz-adv-x="1024" />
|
||||
<glyph unicode=" " horiz-adv-x="512" d="" />
|
||||
<glyph unicode="" glyph-name="expand_less" d="M512 596.667l256-256-60-60-196 196-196-196-60 60z" />
|
||||
<glyph unicode="" glyph-name="expand_more" d="M708 572.667l60-60-256-256-256 256 60 60 196-196z" />
|
||||
<glyph unicode="" glyph-name="menu" d="M128 682.667h768v-86h-768v86zM128 384.667v84h768v-84h-768zM128 170.667v86h768v-86h-768z" />
|
||||
<glyph unicode="" glyph-name="favorite" d="M512 28.667l-62 56q-106 96-154 142t-107 114-81 123-22 113q0 98 67 166t167 68q116 0 192-90 76 90 192 90 100 0 167-68t67-166q0-78-52-162t-113-146-199-186z" />
|
||||
<glyph unicode="" glyph-name="spinner9" d="M512 960c-278.748 0-505.458-222.762-511.848-499.974 5.92 241.864 189.832 435.974 415.848 435.974 229.75 0 416-200.576 416-448 0-53.020 42.98-96 96-96s96 42.98 96 96c0 282.77-229.23 512-512 512zM512-64c278.748 0 505.458 222.762 511.848 499.974-5.92-241.864-189.832-435.974-415.848-435.974-229.75 0-416 200.576-416 448 0 53.020-42.98 96-96 96s-96-42.98-96-96c0-282.77 229.23-512 512-512z" />
|
||||
<glyph unicode="" glyph-name="question-circle" horiz-adv-x="878" d="M512 164.571v109.714q0 8-5.143 13.143t-13.143 5.143h-109.714q-8 0-13.143-5.143t-5.143-13.143v-109.714q0-8 5.143-13.143t13.143-5.143h109.714q8 0 13.143 5.143t5.143 13.143zM658.286 548.571q0 50.286-31.714 93.143t-79.143 66.286-97.143 23.429q-138.857 0-212-121.714-8.571-13.714 4.571-24l75.429-57.143q4-3.429 10.857-3.429 9.143 0 14.286 6.857 30.286 38.857 49.143 52.571 19.429 13.714 49.143 13.714 27.429 0 48.857-14.857t21.429-33.714q0-21.714-11.429-34.857t-38.857-25.714q-36-16-66-49.429t-30-71.714v-20.571q0-8 5.143-13.143t13.143-5.143h109.714q8 0 13.143 5.143t5.143 13.143q0 10.857 12.286 28.286t31.143 28.286q18.286 10.286 28 16.286t26.286 20 25.429 27.429 16 34.571 7.143 46.286zM877.714 438.857q0-119.429-58.857-220.286t-159.714-159.714-220.286-58.857-220.286 58.857-159.714 159.714-58.857 220.286 58.857 220.286 159.714 159.714 220.286 58.857 220.286-58.857 159.714-159.714 58.857-220.286z" />
|
||||
</font></defs></svg>
|
After Width: | Height: | Size: 2.4 KiB |
BIN
luci-theme-design/htdocs/luci-static/design/fonts/font.ttf
Normal file
BIN
luci-theme-design/htdocs/luci-static/design/fonts/font.woff
Normal file
BIN
luci-theme-design/htdocs/luci-static/design/images/add.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
luci-theme-design/htdocs/luci-static/design/images/bridge.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 4.2 KiB |
BIN
luci-theme-design/htdocs/luci-static/design/images/ethernet.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2 KiB |
BIN
luci-theme-design/htdocs/luci-static/design/images/home.png
Normal file
After Width: | Height: | Size: 7.5 KiB |
BIN
luci-theme-design/htdocs/luci-static/design/images/icon.png
Normal file
After Width: | Height: | Size: 7.3 KiB |
BIN
luci-theme-design/htdocs/luci-static/design/images/link.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
luci-theme-design/htdocs/luci-static/design/images/loading.gif
Normal file
After Width: | Height: | Size: 36 KiB |
BIN
luci-theme-design/htdocs/luci-static/design/images/openclash.png
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
luci-theme-design/htdocs/luci-static/design/images/port_down.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
luci-theme-design/htdocs/luci-static/design/images/port_up.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
luci-theme-design/htdocs/luci-static/design/images/rank.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
luci-theme-design/htdocs/luci-static/design/images/reload.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
luci-theme-design/htdocs/luci-static/design/images/remove.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 2 KiB |
BIN
luci-theme-design/htdocs/luci-static/design/images/signal-0.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2 KiB |
After Width: | Height: | Size: 2 KiB |
After Width: | Height: | Size: 2 KiB |
After Width: | Height: | Size: 3 KiB |
BIN
luci-theme-design/htdocs/luci-static/design/images/ssr.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
luci-theme-design/htdocs/luci-static/design/images/tunnel.png
Normal file
After Width: | Height: | Size: 3 KiB |
After Width: | Height: | Size: 3.2 KiB |
BIN
luci-theme-design/htdocs/luci-static/design/images/user.png
Normal file
After Width: | Height: | Size: 9.1 KiB |
BIN
luci-theme-design/htdocs/luci-static/design/images/vlan.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 3 KiB |
BIN
luci-theme-design/htdocs/luci-static/design/images/wifi.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
luci-theme-design/htdocs/luci-static/design/images/wifi_big.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 4 KiB |
After Width: | Height: | Size: 15 KiB |
6
luci-theme-design/htdocs/luci-static/design/js/jquery.min.js
vendored
Normal file
28
luci-theme-design/htdocs/luci-static/design/js/style.js
Normal file
|
@ -0,0 +1,28 @@
|
|||
(function ($) {
|
||||
|
||||
// 修复某些插件导致在https下env(safe-area-inset-bottom)为0的情况
|
||||
var url = self.location.href;
|
||||
if ((/(iPhone|iPad|iPod|iOS|Mac|Macintosh)/i.test(navigator.userAgent)) && url.indexOf("openclash") != -1 ) {
|
||||
var oMeta = document.createElement('meta');
|
||||
oMeta.content = 'width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0,viewport-fit=cover';
|
||||
oMeta.name = 'viewport';
|
||||
document.getElementsByTagName('head')[0].appendChild(oMeta);
|
||||
}
|
||||
|
||||
// 设置indicators图标,(放在menu script执行之前passwall某些代码错误中断导致失败)
|
||||
document.getElementById("indicators").addEventListener('DOMSubtreeModified', function () {
|
||||
var child = document.getElementById("indicators");
|
||||
if (child.firstElementChild.getAttribute("data-indicator") != "uci-changes") {
|
||||
child.firstElementChild.textContent = eval("'\ue6b9'")
|
||||
}
|
||||
}, false);
|
||||
|
||||
// 监听窗口大小,动态设置header box阴影长度
|
||||
$(window).resize( function () {
|
||||
if (window.innerWidth <= 992) {
|
||||
$("header").css("box-shadow", "0 2px 4px rgb(0 0 0 / 8%)")
|
||||
} else {
|
||||
$("header").css("box-shadow", "17rem 2px 4px rgb(0 0 0 / 8%)")
|
||||
}
|
||||
});
|
||||
})(jQuery);
|
25
luci-theme-design/htdocs/luci-static/design/manifest.json
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"name":"Design",
|
||||
"short_name":"Design",
|
||||
"description":"Design for OpenWRT by 2smile.",
|
||||
"start_url":"/",
|
||||
"scope": "/",
|
||||
"orientation":"portrait",
|
||||
"display":"standalone",
|
||||
"prompt_message":"在主屏幕添加图标,以便快速访问 Design",
|
||||
"icons":[
|
||||
{
|
||||
"src":"images/icon.png",
|
||||
"sizes":"144x144",
|
||||
"type":"image/png"
|
||||
},
|
||||
{
|
||||
"src":"images/icon.png",
|
||||
"sizes":"192x192",
|
||||
"type":"image/png"
|
||||
}
|
||||
],
|
||||
"gcm_sender_id":"524223308106",
|
||||
"gcm_user_visible_only":true,
|
||||
"status":"ok"
|
||||
}
|