Revert "add luci-theme-amazeui (#3764)"

This reverts commit 3b0c27bea0.
This commit is contained in:
lean 2020-03-14 23:43:39 +08:00
parent 3b0c27bea0
commit 0314d86ca0
17 changed files with 0 additions and 25433 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,17 +0,0 @@
#
# Copyright (C) 2008-2014 The LuCI Team <luci@lists.subsignal.org>
#
# This is free software, licensed under the Apache License, Version 2.0 .
#
include $(TOPDIR)/rules.mk
LUCI_TITLE:=Amazeui Theme
LUCI_DEPENDS:=
LUCI_PKGARCH:=all
PKG_VERSION:=1.0
PKG_RELEASE:=2
include $(TOPDIR)/feeds/luci/luci.mk
# call BuildPackage - OpenWrt buildroot signature

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

View File

@ -1,678 +0,0 @@
/* Taken from luci-theme-bootstrap */
.tabs, .cbi-tabmenu {
margin: 0 0 18px;
padding: 0;
list-style: none;
zoom: 1;
}
.tabs:before,
.cbi-tabmenu:before,
.tabs:after,
.cbi-tabmenu:after {
display: table;
content: "";
zoom: 1;
}
.tabs:after, .cbi-tabmenu:after {
clear: both;
}
.tabs > li, .cbi-tabmenu > li {
float: left;
}
.tabs > li > a, .cbi-tabmenu > li > a {
display: block;
}
.tabs,
.cbi-tabmenu {
border-color: #ddd;
border-style: solid;
border-width: 0 0 1px;
}
.tabs > li,
.cbi-tabmenu > li {
position: relative;
margin-bottom: -1px;
}
.tabs > li > a,
.cbi-tabmenu > li > a {
padding: 0 15px;
margin-right: 2px;
line-height: 34px;
border: 1px solid transparent;
-webkit-border-radius: 4px 4px 0 0;
-moz-border-radius: 4px 4px 0 0;
border-radius: 4px 4px 0 0;
}
.tabs > li > a:hover,
.cbi-tabmenu > li > a:hover {
text-decoration: none;
background-color: #eee;
border-color: #eee #eee #ddd;
}
.tabs .active > a, .tabs .active > a:hover,
.cbi-tabmenu .active > a, .cbi-tabmenu .active > a:hover,
.cbi-tab > a:link, .cbi-tab > a:hover {
color: #808080;
background-color: #ffffff;
border: 1px solid #ddd;
border-bottom-color: transparent;
cursor: default;
}
.tabs .menu-dropdown, .tabs .dropdown-menu,
.cbi-tabmenu .menu-dropdown, .cbi-tabmenu .dropdown-menu {
top: 35px;
border-width: 1px;
-webkit-border-radius: 0 6px 6px 6px;
-moz-border-radius: 0 6px 6px 6px;
border-radius: 0 6px 6px 6px;
}
.tabs a.menu:after, .tabs .dropdown-toggle:after,
.cbi-tabmenu a.menu:after, .cbi-tabmenu .dropdown-toggle:after {
border-top-color: #999;
margin-top: 15px;
margin-left: 5px;
}
.tabs li.open.menu .menu, .tabs .open.dropdown .dropdown-toggle,
.cbi-tabmenu li.open.menu .menu, .cbi-tabmenu .open.dropdown .dropdown-toggle {
border-color: #999;
}
.tabs li.open a.menu:after, .tabs .dropdown.open .dropdown-toggle:after,
.cbi-tabmenu li.open a.menu:after, .cbi-tabmenu .dropdown.open .dropdown-toggle:after {
border-top-color: #555;
}
form {
margin-bottom: 18px;
}
fieldset {
margin-bottom: 9px;
padding-top: 9px;
}
fieldset legend {
display: block;
font-size: 19.5px;
line-height: 1;
color: #404040;
padding-top: 20px;
*padding: 0 0 5px 0px;
/* IE6-7 */
*line-height: 1.5;
/* IE6-7 */
}
form .clearfix,
form .cbi-value {
margin-bottom: 18px;
zoom: 1;
overflow: hidden;
}
form .clearfix:before, form .clearfix:after,
form .cbi-value:before, form .cbi-value:after {
display: table;
content: "";
zoom: 1;
}
form .clearfix:after
form .cbi-value:after {
clear: both;
}
label,
input,
select,
textarea {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 13px;
font-weight: normal;
line-height: normal;
}
form .input,
form .cbi-value-field {
margin-left: 200px;
}
form .cbi-value label.cbi-value-title {
padding-top: 6px;
// font-size: 13px;
line-height: 18px;
float: left;
width: 180px;
text-align: right;
color: #404040;
}
input[type=checkbox], input[type=radio] {
cursor: pointer;
}
input,
textarea,
select,
.uneditable-input {
display: inline-block;
}
select {
padding: initial;
}
input[type=checkbox], input[type=radio] {
width: auto;
height: auto;
padding: 0;
margin: 3px 0;
*margin-top: 0;
/* IE6-7 */
line-height: normal;
border: none;
}
input[type=file] {
background-color: #ffffff;
padding: initial;
border: initial;
line-height: initial;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
width: auto !important;
}
input[type=button], input[type=reset], input[type=submit] {
width: auto;
height: auto;
}
select, input[type=file] {
*height: auto;
*margin-top: 4px;
/* For IE7, add top margin to align select with labels */
}
select[multiple] {
height: inherit;
background-color: #ffffff;
}
textarea {
height: auto;
}
.uneditable-input {
background-color: #ffffff;
display: block;
border-color: #eee;
-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025);
-moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025);
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025);
cursor: not-allowed;
}
::-moz-placeholder {
color: #bfbfbf;
}
::-webkit-input-placeholder {
color: #bfbfbf;
}
input, textarea {
-webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
-moz-transition: border linear 0.2s, box-shadow linear 0.2s;
-ms-transition: border linear 0.2s, box-shadow linear 0.2s;
-o-transition: border linear 0.2s, box-shadow linear 0.2s;
transition: border linear 0.2s, box-shadow linear 0.2s;
-webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
-moz-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}
input:focus, textarea:focus {
outline: 0;
border-color: rgba(82, 168, 236, 0.8);
-webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6);
-moz-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6);
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6);
}
input[type=file]:focus, input[type=checkbox]:focus, select:focus {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
outline: 1px dotted #666;
}
form .clearfix.error > label, form .clearfix.error .help-block, form .clearfix.error .help-inline {
color: #b94a48;
}
form .clearfix.error input, form .clearfix.error textarea {
color: #b94a48;
border-color: #ee5f5b;
}
form .clearfix.error input:focus, form .clearfix.error textarea:focus {
border-color: #e9322d;
-webkit-box-shadow: 0 0 6px #f8b9b7;
-moz-box-shadow: 0 0 6px #f8b9b7;
box-shadow: 0 0 6px #f8b9b7;
}
form .clearfix.error .input-prepend .add-on, form .clearfix.error .input-append .add-on {
color: #b94a48;
background-color: #fce6e6;
border-color: #b94a48;
}
form .clearfix.warning > label, form .clearfix.warning .help-block, form .clearfix.warning .help-inline {
color: #c09853;
}
form .clearfix.warning input, form .clearfix.warning textarea {
color: #c09853;
border-color: #ccae64;
}
form .clearfix.warning input:focus, form .clearfix.warning textarea:focus {
border-color: #be9a3f;
-webkit-box-shadow: 0 0 6px #e5d6b1;
-moz-box-shadow: 0 0 6px #e5d6b1;
box-shadow: 0 0 6px #e5d6b1;
}
form .clearfix.warning .input-prepend .add-on, form .clearfix.warning .input-append .add-on {
color: #c09853;
background-color: #d2b877;
border-color: #c09853;
}
form .clearfix.success > label, form .clearfix.success .help-block, form .clearfix.success .help-inline {
color: #468847;
}
form .clearfix.success input, form .clearfix.success textarea {
color: #468847;
border-color: #57a957;
}
form .clearfix.success input:focus, form .clearfix.success textarea:focus {
border-color: #458845;
-webkit-box-shadow: 0 0 6px #9acc9a;
-moz-box-shadow: 0 0 6px #9acc9a;
box-shadow: 0 0 6px #9acc9a;
}
form .clearfix.success .input-prepend .add-on, form .clearfix.success .input-append .add-on {
color: #468847;
background-color: #bcddbc;
border-color: #468847;
}
input[disabled],
select[disabled],
textarea[disabled],
input[readonly],
select[readonly],
textarea[readonly] {
background-color: #f5f5f5;
border-color: #ddd;
}
.actions,
.cbi-page-actions {
background: #f5f5f5;
margin-bottom: 18px;
padding: 17px 20px 18px 150px;
border-top: 1px solid #ddd;
-webkit-border-radius: 0 0 3px 3px;
-moz-border-radius: 0 0 3px 3px;
border-radius: 0 0 3px 3px;
text-align: right;
}
.actions .secondary-action,
.cbi-page-actions .secondary-action{
float: right;
}
.actions .secondary-action a,
.cbi-page-actions .secondary-action a {
line-height: 30px;
}
.actions .secondary-action a:hover,
.cbi-page-actions .secondary-action a:hover {
text-decoration: underline;
}
.help-inline, .help-block {
display: block;
margin-top: 5px;
margin-bottom: 10px;
color: #999999;
font-size: 1.3rem;
}
.help-inline {
padding-left: 5px;
*position: relative;
/* IE6-7 */
*top: -5px;
/* IE6-7 */
}
.help-block {
display: block;
max-width: 600px;
}
/*
* Tables.less
* Tables for, you guessed it, tabular data
* ---------------------------------------- */
table {
width: 100%;
margin-bottom: 18px;
padding: 0;
font-size: 13px;
border-collapse: collapse;
}
table th, table td {
padding: 10px 10px 9px;
line-height: 18px;
text-align: left;
}
table th {
padding-top: 9px;
font-weight: bold;
vertical-align: middle;
}
table td {
vertical-align: top;
border-top: 1px solid #ddd;
}
table tbody th {
border-top: 1px solid #ddd;
vertical-align: top;
}
/* LuCI specific items */
.hidden { display: none }
#memtotal > div,
#memfree > div,
#memcache > div,
#membuff > div,
#conns > div {
border: 1px solid #CCCCCC;
border-radius: 3px 3px 3px 3px;
color: #808080;
display: inline-block;
font-size: 13px;
height: 22 dpx;
line-height: 18px;
}
#xhr_poll_status {
cursor: pointer;
}
form.inline { display: inline }
header .pull-right { padding-top: 8px; }
#modemenu li:last-child span.divider { display: none }
#syslog { width: 100%; }
.cbi-section-table tbody tr:nth-child(odd) td, .cbi-section-table tbody tr:nth-child(odd) th {
background-color: #f9f9f9;
}
.cbi-section-table tbody tr:hover td, .cbi-section-table tbody tr:hover th {
background-color: #f5f5f5;
}
.cbi-section-table tr.cbi-section-table-descr th {
font-weight: normal;
}
.left { text-align: left !important; }
.right { text-align: right !important; }
.cbi-value-field { line-height: 1.5em; }
.cbi-value-field input[type=checkbox],
.cbi-value-field input[type=radio] {
margin-top: 8px;
margin-right: 6px;
}
table table td,
.cbi-value-field table td {
border: none;
}
table.cbi-section-table input,
table.cbi-section-table textarea,
table.cbi-section-table select {
width: auto;
}
table.cbi-section-table td.cbi-section-table-cell {
white-space: nowrap;
text-align: right;
}
table.cbi-section-table td.cbi-section-table-cell select {
width: inherit;
}
.cbi-value-description { display: inline; }
.cbi-value-description img { vertical-align: middle; }
.cbi-section-error {
border: 1px solid #FF0000;
border-radius: 3px;
background-color: #FCE6E6;
padding: 5px;
}
.cbi-section-error ul { margin: 0 0 0 20px; }
.cbi-section-error ul li {
color: #FF0000;
font-weight: bold;
}
.ifacebox {
background-color: #FFFFFF;
border: 1px solid #CCCCCC;
margin: 0 10px;
text-align: center;
white-space: nowrap;
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), color-stop(25%, #ffffff), to(#e6e6e6));
background-image: -webkit-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
background-image: -moz-linear-gradient(top, #ffffff, #ffffff 25%, #e6e6e6);
background-image: -ms-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
background-image: -o-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
background-image: linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#e6e6e6', GradientType=0);
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}
.ifacebox .ifacebox-head {
border-bottom: 1px solid #CCCCCC;
padding: 2px;
}
.ifacebox .ifacebox-body {
padding: 6px;
}
.ifacebadge {
display: inline-block;
white-space: nowrap;
background-color: #FFFFFF;
border: 1px solid #CCCCCC;
padding: 2px;
margin-left: 2px;
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), color-stop(25%, #ffffff), to(#e6e6e6));
background-image: -webkit-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
background-image: -moz-linear-gradient(top, #ffffff, #ffffff 25%, #e6e6e6);
background-image: -ms-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
background-image: -o-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
background-image: linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#e6e6e6', GradientType=0);
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}
.ifacebadge-active {
border-color: #000000;
font-weight: bold;
}
.zonebadge {
padding: 2px;
border-radius: 4px;
display: inline-block;
white-space: nowrap;
color: #666666;
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
cursor: pointer;
}
.zonebadge > em,
.zonebadge > strong {
margin: 5px;
display: inline-block;
}
.zonebadge input {
width: 6em;
}
.zonebadge-empty {
border: 1px dashed #AAAAAA;
color: #AAAAAA;
font-style: italic;
font-size: smaller;
}
div.cbi-value var,
td.cbi-value-field var {
font-style: italic;
color: #0069D6;
}
.uci-change-list {
font-family: monospace;
}
.uci-change-list ins,
.uci-change-legend-label ins {
text-decoration: none;
border: 1px solid #00FF00;
background-color: #CCFFCC;
display: block;
padding: 2px;
}
.uci-change-list del,
.uci-change-legend-label del {
text-decoration: none;
border: 1px solid #FF0000;
background-color: #FFCCCC;
display: block;
font-style: normal;
padding: 2px;
}
.uci-change-list var,
.uci-change-legend-label var {
text-decoration: none;
border: 1px solid #CCCCCC;
background-color: #EEEEEE;
display: block;
font-style: normal;
padding: 2px;
}
.uci-change-list var ins,
.uci-change-list var del {
/*display: inline;*/
border: none;
white-space: pre;
font-style: normal;
padding: 0px;
}
.uci-change-legend {
padding: 5px;
}
.uci-change-legend-label {
width: 150px;
float: left;
}
.uci-change-legend-label>ins,
.uci-change-legend-label>del,
.uci-change-legend-label>var {
float: left;
margin-right: 4px;
width: 10px;
height: 10px;
display: block;
}
.uci-change-legend-label var ins,
.uci-change-legend-label var del {
line-height: 6px;
border: none;
}

View File

@ -1,493 +0,0 @@
.hidden { display: none }
form.inline { display: inline }
/* Common form controls */
select,
input[type="text"],
.cbi-input-select,
.cbi-input-textarea,
.cbi-section-create-name,
.cbi-input-text,
.cbi-input-user,
.cbi-input-password {
display: block;
display: inline;
width: 70%;
padding: 0.625em;
font-size: 1.3rem;
line-height: 1.2;
color: #555555;
vertical-align: middle;
background-color: #ffffff;
background-image: none;
border: 1px solid #cccccc;
border-radius: 0;
-webkit-appearance: none;
-webkit-transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
select:focus,
input[type="text"]:focus,
.cbi-input-select:focus,
.cbi-input-textarea:focus,
.cbi-section-create-name:focus,
.cbi-input-text:focus,
.cbi-input-user:focus,
.cbi-input-password:focus {
outline: 0;
}
select:focus,
input[type="text"]:focus,
.cbi-input-select:focus,
.cbi-input-textarea:focus,
.cbi-section-create-name:focus,
.cbi-input-text:focus,
.cbi-input-user:focus,
.cbi-input-password:focus {
background-color: #fefffe;
border-color: #3bb4f2;
outline: 0;
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 5px rgba(59, 180, 242, 0.3);
box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 5px rgba(59, 180, 242, 0.3);
}
select::-webkit-input-placeholder,
input[type="text"]::-webkit-input-placeholder,
.cbi-input-select::-webkit-input-placeholder,
.cbi-input-textarea::-webkit-input-placeholder,
.cbi-section-create-name::-webkit-input-placeholder,
.cbi-input-text::-webkit-input-placeholder,
.cbi-input-password::-webkit-input-placeholder {
color: #999999;
}
select::-moz-placeholder,
input[type="text"]::-moz-placeholder,
.cbi-input-select::-moz-placeholder,
.cbi-input-textarea::-moz-placeholder,
.cbi-section-create-name::-moz-placeholder,
.cbi-input-text::-moz-placeholder,
.cbi-input-password::-moz-placeholder {
color: #999999;
}
select:-ms-input-placeholder,
input[type="text"]::-ms-input-placeholder,
.cbi-input-select:-ms-input-placeholder,
.cbi-input-textarea:-ms-input-placeholder,
.cbi-section-create-name::-ms-input-placeholder,
.cbi-input-text:-ms-input-placeholder,
.cbi-input-password:-ms-input-placeholder {
color: #999999;
}
select::placeholder,
input[type="text"]::placeholder,
.cbi-input-select::placeholder,
.cbi-input-textarea::placeholder,
.cbi-section-create-name::placeholder,
.cbi-input-text::placeholder,
.cbi-input-password::placeholder {
color: #999999;
}
select::-moz-placeholder,
input[type="text"]::-moz-placeholder,
.cbi-input-select::-moz-placeholder,
.cbi-input-textarea::-moz-placeholder,
.cbi-section-create-name::--moz-placeholder,
.cbi-input-text::-moz-placeholder,
.cbi-input-password::-moz-placeholder {
opacity: 1;
}
select.am-radius,
.cbi-input-select.am-radius,
.cbi-input-textarea.am-radius,
.cbi-input-text.am-radius,
.cbi-input-password.am-radius {
border-radius: 2px;
}
.cbi-input-select.am-round,
.cbi-input-textarea.am-round,
.cbi-input-text.am-round,
.cbi-input-password.am-round {
border-radius: 1000px;
}
.cbi-input-textarea,
.cbi-input-select[multiple],
.cbi-input-select[size] {
height: auto;
}
select,
.cbi-input-select {
-webkit-appearance: none !important;
-webkit-border-radius: 0;
background: #ffffff url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMTJweCIgeT0iMHB4IiB3aWR0aD0iMjRweCIgaGVpZ2h0PSIzcHgiIHZpZXdCb3g9IjAgMCA2IDMiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDYgMyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHBvbHlnb24gcG9pbnRzPSI1Ljk5MiwwIDIuOTkyLDMgLTAuMDA4LDAgIi8+PC9zdmc+') no-repeat 100% center;
}
.cbi-input-select[multiple="multiple"] {
background-image: none;
}
/* help text */
.cbi-value-description {
display: block;
margin-top: 5px;
margin-bottom: 10px;
color: #999999;
font-size: 1.3rem;
}
.cbi-button {
display: inline-block;
margin-bottom: 0;
padding: 0.625em 1em;
vertical-align: middle;
font-size: 1.6rem;
font-weight: normal;
line-height: 0.7;
text-align: center;
white-space: nowrap;
background-image: none;
border: 1px solid transparent;
border-radius: 0;
cursor: pointer;
outline: 0;
-webkit-appearance: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-transition: background-color 300ms ease-out, border-color 300ms ease-out;
transition: background-color 300ms ease-out, border-color 300ms ease-out;
}
.cbi-button:focus {
outline: thin dotted;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}
.cbi-button:hover,
.cbi-button:focus {
outline: 0;
color: #444444;
text-decoration: none;
}
.cbi-button:active,
.cbi-button.am-active {
background-image: none;
-webkit-box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.125);
box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.125);
}
.cbi-button.am-round {
border-radius: 1000px;
}
.cbi-button.am-radius {
border-radius: 2px;
}
.cbi-button-default {
color: #444444;
background-color: #e6e6e6;
border-color: #e6e6e6;
}
.cbi-input-save {
color: #ffffff;
background-color: #0e90d2;
border-color: #0e90d2;
}
.cbi-input-save:hover,
.cbi-input-save:focus,
.cbi-input-save:active,
.cbi-input-save.am-active,
.am-active .cbi-input-save.am-dropdown-toggle {
color: #ffffff;
background-color: #0a6999;
border-color: #0a6999;
}
.cbi-input-save:active,
.cbi-input-save.cbi-button-active,
.am-active .cbi-input-save.am-dropdown-toggle {
background-image: none;
}
.cbi-button-link,
.cbi-button-save {
color: #ffffff;
background-color: #f37b1d;
border-color: #f37b1d;
}
.cbi-button-save:hover,
.cbi-button-save:focus,
.cbi-button-save:active,
.cbi-button-save.am-active,
.am-active .cbi-button-save.am-dropdown-toggle,
.cbi-button-link:hover,
.cbi-button-link:focus,
.cbi-button-link:active,
.cbi-button-link.am-active,
.am-active .cbi-button-link.am-dropdown-toggle {
color: #ffffff;
background-color: #c85e0b;
border-color: #c85e0b;
}
.cbi-button-save:active,
.cbi-button-save.cbi-button-active,
.am-active .cbi-button-save.am-dropdown-toggle,
.cbi-button-link:active,
.cbi-button-link.cbi-button-active,
.am-active .cbi-button-link.am-dropdown-toggle {
background-image: none;
}
.cbi-button-reset {
color: #ffffff;
background-color: #dd514c;
border-color: #dd514c;
}
.cbi-button-reset:hover,
.cbi-button-reset:focus,
.cbi-button-reset:active,
.cbi-button-reset.am-active,
.am-active .cbi-button-reset.am-dropdown-toggle {
color: #ffffff;
background-color: #c62b26;
border-color: #c62b26;
}
.cbi-button-reset:active,
.cbi-button-reset.cbi-button-active,
.am-active .cbi-button-reset.am-dropdown-toggle {
background-image: none;
}
.cbi-input-reset {
color: #ffffff;
background-color: #f37b1d;
border-color: #f37b1d;
}
.cbi-input-reset:hover,
.cbi-input-reset:focus,
.cbi-input-reset:active,
.cbi-input-reset.am-active,
.am-active .cbi-input-reset.am-dropdown-toggle {
color: #ffffff;
background-color: #c85e0b;
border-color: #c85e0b;
}
.cbi-input-reset:active,
.cbi-input-reset.cbi-button-active,
.am-active .cbi-input-reset.am-dropdown-toggle {
background-image: none;
}
.cbi-input-remove {
color: #ffffff;
background-color: #dd514c;
border-color: #dd514c;
}
.cbi-input-remove:hover,
.cbi-input-remove:focus,
.cbi-input-remove:active,
.cbi-input-remove.am-active,
.am-active .cbi-input-remove.am-dropdown-toggle {
color: #ffffff;
background-color: #c62b26;
border-color: #c62b26;
}
.cbi-input-remove:active,
.cbi-input-remove.cbi-button-active,
.am-active .cbi-input-remove.am-dropdown-toggle {
background-image: none;
}
.cbi-button-remove {
color: #ffffff;
background-color: #dd514c;
border-color: #dd514c;
}
.cbi-button-remove:hover,
.cbi-button-remove:focus,
.cbi-button-remove:active,
.cbi-button-remove.am-active,
.am-active .cbi-button-remove.am-dropdown-toggle {
color: #ffffff;
background-color: #c62b26;
border-color: #c62b26;
}
.cbi-button-remove:active,
.cbi-button-remove.cbi-button-active,
.am-active .cbi-button-remove.am-dropdown-toggle {
background-image: none;
}
.cbi-button-apply {
color: #ffffff;
background-color: #5eb95e;
border-color: #5eb95e;
}
.cbi-button-apply:hover,
.cbi-button-apply:focus,
.cbi-button-apply:active,
.cbi-button-apply.am-active,
.am-active .cbi-button-apply.am-dropdown-toggle {
color: #ffffff;
background-color: #429842;
border-color: #429842;
}
.cbi-button-apply:active,
.cbi-button-apply.cbi-button-active,
.am-active .cbi-button-apply.am-dropdown-toggle {
background-image: none;
}
.cbi-input-apply {
color: #ffffff;
background-color: #5eb95e;
border-color: #5eb95e;
}
.cbi-input-apply:hover,
.cbi-input-apply:focus,
.cbi-input-apply:active,
.cbi-input-apply.am-active,
.am-active .cbi-input-apply.am-dropdown-toggle {
color: #ffffff;
background-color: #429842;
border-color: #429842;
}
.cbi-input-apply:active,
.cbi-input-apply.cbi-button-active,
.am-active .cbi-input-apply.am-dropdown-toggle {
background-image: none;
}
.cbi-button-add {
color: #ffffff;
background-color: #5eb95e;
border-color: #5eb95e;
}
.cbi-button-add:hover,
.cbi-button-add:focus,
.cbi-button-add:active,
.cbi-button-add.am-active,
.am-active .cbi-button-add.am-dropdown-toggle {
color: #ffffff;
background-color: #429842;
border-color: #429842;
}
.cbi-button-add:active,
.cbi-button-add.cbi-button-active,
.am-active .cbi-button-add.am-dropdown-toggle {
background-image: none;
}
.cbi-input-reload {
color: #ffffff;
background-color: #f37b1d;
border-color: #f37b1d;
}
.cbi-input-reload:hover,
.cbi-input-reload:focus,
.cbi-input-reload:active,
.cbi-input-reload.am-active,
.am-active .cbi-input-reload.am-dropdown-toggle {
color: #ffffff;
background-color: #c85e0b;
border-color: #c85e0b;
}
.cbi-input-reload:active,
.cbi-input-reload.cbi-button-active,
.am-active .cbi-input-reload.am-dropdown-toggle {
background-image: none;
}
.cbi-button-find,
.cbi-button-reload {
color: #ffffff;
background-color: #f37b1d;
border-color: #f37b1d;
}
.cbi-button-find:hover,
.cbi-button-find:focus,
.cbi-button-find:active,
.cbi-button-find.am-active,
.cbi-button-reload:hover,
.cbi-button-reload:focus,
.cbi-button-reload:active,
.cbi-button-reload.am-active,
.am-active .cbi-button-find.am-dropdown-toggle,
.am-active .cbi-button-reload.am-dropdown-toggle {
color: #ffffff;
background-color: #c85e0b;
border-color: #c85e0b;
}
.cbi-button-reload:active,
.cbi-button-reload.cbi-button-active,
.am-active .cbi-button-reload.am-dropdown-toggle {
background-image: none;
}
.cbi-button-group .cbi-input-apply,
.cbi-button-group-stacked .cbi-input-apply {
border-color: #4db14d;
}
.cbi-button-edit {
color: #ffffff;
background-color: #3bb4f2;
border-color: #3bb4f2;
}
.cbi-button-edit:hover,
.cbi-button-edit:focus,
.cbi-button-edit:active,
.cbi-button-edit.am-active,
.am-active .cbi-button-edit.am-dropdown-toggle {
color: #ffffff;
background-color: #0f9ae0;
border-color: #0f9ae0;
}
.cbi-button-edit:active,
.cbi-button-edit.cbi-button-active,
.am-active .cbi-button-edit.am-dropdown-toggle {
background-image: none;
}
.cbi-button-group .cbi-button-edit,
.cbi-button-group-stacked .cbi-button-edit {
border-color: #23abf0;
}
.cbi-button-up,
.cbi-input-up {
background-position: center center;
background-image: url('../resources/cbi/up.gif'), -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), color-stop(25%, #ffffff), to(#e6e6e6));
background-image: url('../resources/cbi/up.gif'), -webkit-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
background-image: url('../resources/cbi/up.gif'), -moz-linear-gradient(top, #ffffff, #ffffff 25%, #e6e6e6);
background-image: url('../resources/cbi/up.gif'), -ms-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
background-image: url('../resources/cbi/up.gif'), -o-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
background-image: url('../resources/cbi/up.gif'), linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
background-size:contain;
}
.cbi-button-down,
.cbi-input-down {
background-position: center center;
background-image: url('../resources/cbi/down.gif'), -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), color-stop(25%, #ffffff), to(#e6e6e6));
background-image: url('../resources/cbi/down.gif'), -webkit-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
background-image: url('../resources/cbi/down.gif'), -moz-linear-gradient(top, #ffffff, #ffffff 25%, #e6e6e6);
background-image: url('../resources/cbi/down.gif'), -ms-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
background-image: url('../resources/cbi/down.gif'), -o-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
background-image: url('../resources/cbi/down.gif'), linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
background-size: contain;
}
/* Block button */
.cbi-button-block {
display: block;
width: 100%;
padding-left: 0;
padding-right: 0;
}
/* Multiple block buttons vertically space */
.cbi-button-block + .cbi-button-block {
margin-top: 5px;
}
/* Specificity overrides */
input[type="submit"].cbi-button-block,
input[type="reset"].cbi-button-block,
input[type="button"].cbi-button-block {
width: 100%;
}
/* Button with loading spinner */
.cbi-button.cbi-button-loading .am-icon-spin {
margin-right: 5px;
}
input[type="file"],
.cbi-input-file {
display: inline-block;
}
input[type="file"]:focus,
.cbi-input-file:focus {
outline: thin dotted;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -1,163 +0,0 @@
<!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>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp"/>
<link rel="alternate icon" type="image/png" href="favicon.png">
<style title="text/css">
<%-= css %>
</style>
<!-- 百度站长工具 -->
<meta name="baidu-site-verification" content="T3s7tbr1uW" />
<!--<link rel="stylesheet" href="amazeui.min.css">-->
<link rel="stylesheet" href="amazeui.min.css">
<link rel="stylesheet" href="app.min.css">
<link rel="Shortcut Icon" type="image/png" href="favicon.ico" />
<link rel='Shortcut Icon' type='image/x-icon' href='favicon.ico' />
<!--网站诸葛IO数据埋点-->
<script type="text/javascript">
window.zhuge = window.zhuge || [];
window.zhuge.methods = "_init debug identify track trackLink trackForm page".split(" ");
window.zhuge.factory = function(b) {
return function() {
var a = Array.prototype.slice.call(arguments);
a.unshift(b);
window.zhuge.push(a);
return window.zhuge;
}
};
for (var i = 0; i < window.zhuge.methods.length; i++) {
var key = window.zhuge.methods[i];
window.zhuge[key] = window.zhuge.factory(key);
}
window.zhuge.load = function(b, x) {
if (!document.getElementById("zhuge-js")) {
var a = document.createElement("script");
var verDate = new Date();
var verStr = verDate.getFullYear().toString()
+ verDate.getMonth().toString() + verDate.getDate().toString();
a.type = "text/javascript";
a.id = "zhuge-js";
a.async = !0;
a.src = (location.protocol == 'http:' ? "sdk.zhugeio.com/zhuge-lastest.min.js?v=" : 'https://zgsdk.zhugeio.com/zhuge-lastest.min.js?v=') + verStr;
var c = document.getElementsByTagName("script")[0];
c.parentNode.insertBefore(a, c);
window.zhuge._init(b, x)
}
};
window.zhuge.load('e82475754a3246d982edaed062a59038');
</script>
<!--网站SEO优化代码-->
<script>
(function(){
var bp=document.createElement('script');
var curProtocol = window.location.protocol.split(":")[0];
if(curProtocol==='https'){
bp.src="https://zz.bdstatic.com/linksubmit/push.js";
}else {
bp.src = "push.zhanzhang.baidu.com/push.js";
}
var s=document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp,s);
})();
</script>
<!-- <script src="localhost:35729/livereload.js"></script> -->
<!-- Growing IO数据监测代码 -->
<script type='text/javascript'>
var _vds = _vds || [];
window._vds = _vds;
(function(){
_vds.push(['setAccountId', '1ea11729575d45df8e9ba32b799647aa']);
(function() {
var vds = document.createElement('script');
vds.type='text/javascript';
vds.async = true;
vds.src = ('https:' == document.location.protocol ? 'https://' : '') + 'dn-growing.qbox.me/vds.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(vds, s);
})();
})();
</script>
</head>
<body>
<div class="usage-main">
<div class="usage-main-div">
<h3>使用条款</h3>
<p> 免责及隐私保护声明(以下简称“隐私声明”或“本声明”)适用于孤爺仔编译的路由系统(以下简称"本系统") 在您阅读本声明后若不同意此声明中的任何条款,或对本声明存在质疑,请立刻停止使用本系统。若您已经开始或正在使用本系统,则表示您已阅读并同意本声明的所有条款之约定。</p>
<p></p>
<h3></h3>
<p>1、 总则:您通过安装本系统并使用本系统内提供的插件服务与功能即表示您已经同意与本系统立本协议。我们可随时执行全权决定更改“条款”。如“条款”有任何变更,我们不作通知。经修订的“条款”一经在集成于系统后,立即自动生效。</p>
<h3></h3>
<p>2、 本系统是一款免费的路由系统。本系统永久免费,无后门。</p>
<p></p>
<h3></h3>
<p>3、一切因使用本系统而引致之任何意外、疏忽、合约毁坏、诽谤、版权或知识产权侵犯及其所造成的损失包括在本系统内外的插件或而感染电脑病毒我们概不负责亦不承担任何法律责任。 </p>
<p></p>
<h3></h3>
<p>4、用户对使用本系统自行承担风险我们不做任何形式的保证, 因网络状况、通讯线路等任何技术原因而导致用户不能正常使用,我们也不承担任何法律责任。 </p>
<p></p>
<h3></h3>
<p>5、我们尊重并保护所有用户的个人隐私权不会窃取任何用户计算机中的信息。</p>
<p></p>
<h3></h3>
<p>6、任何单位或个人不得在没有我们授权的情况下对本系统进行二次开发、功能修改和反编译。我们保留版权与著作权。 </p>
<p></p>
<h3></h3>
<p>7、系统的版权我们对所有开发的或合作开发的系统拥有知识产权著作权版权和使用权这些系统受到适用的知识产权、版权、商标、服务商标、专利或其他法律的保护。</p>
<h3></h3>
<p></p>
<p>8、传播:任何公司或个人在网络上发布,传播本系统的行为都是允许的,但因公司或个人传播软件可能造成的任何法律和刑事事件我们不负任何责任。</p>
<p></p>
<h3></h3>
<p>9、本系统仅供学习和研究使用,不得用于盈利性质.</p>
<p></p>
<h3></h3>
<p>10、使用本系统时用户不得##损害他人利益(特别是未成年人)或侵犯他人权利;
<p>&nbsp;&nbsp;&nbsp;&nbsp;1.以其使用方式违反公共道德;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;2.侵犯任何知识产权或任何其他专有权利;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;3.上传任何包含病毒(所谓“特洛伊木马”)的内容或任何可能会损坏数据的其他程序;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;4.传播、存储或上传用户未获得授权的超链接或内容,特别是如果此类超链接或内容违反保密义务或不合法时;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;或发布广告或来路不明的电子邮件(所谓“垃圾邮件”)或不准确的病毒警告、缺陷或类似内容,<p><p>&nbsp;&nbsp;&nbsp;&nbsp;且用户不得征集或请求参与任何抽奖、雪球式系统、连锁信、金字塔式游戏或类似活动。</p>
<p></p>
<h3></h3>
<p>11、信息、软件和文档的使用权
<p>&nbsp;&nbsp;&nbsp;&nbsp;1.通过我们提供或发布的任何信息、软件和文档均须遵守本使用条款,或在更新信息、软件或文档时,必须遵守与我们达成的相应许可条款。另行商定的许可条款(如软件下载)应优先于本使用条款。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;2.以商定的范围内,或在没有此类协议时在我们提供信息时所预期的目的范围内,我们向用户授予非独占、不可转让且不可再授权的许可,允许用户使用我们提供或发布的信息、软件和文档。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;3.软件应以目标代码的方式免费提供。无要求提供源代码的权利。上述规定不适用于下述与开源软件相关的源代码,即转让开源软件时,此类软件的许可条件优先于本使用条款,且其许可条件要求提供源代码。在上述情况下,我们应提供源代码作为支付费用的回报。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;4.信息、软件和文档在任何时间均不得由用户分发给任何第三方,也不得出租或以其他方式公开。除非强制性法律允许,否则用户不应修改软件或文档,也不能对软件进行反编汇、逆向工程或反编译或分离其中的任何部分。确有需要为保证按照本使用条款进一步使用时,用户可以备份软件的一份副本。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;5.信息、软件和文档受版权法、国际著作权条约以及与知识产权相关的其他法律和公约的保护。用户应遵守此类法律,特别是不得修改、隐藏或删除信息和软件或文档中或其任何副本中的任何字母数字代码、标识或版权声明。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;6.版权法在此不受上述规定影响。</p>
<p></p>
</div>
</div>
</body>
<script src="jquery.js"></script>
<script src="amazeui.min.js"></script>
<script src="app.min.js"></script>
</html>

View File

@ -1,48 +0,0 @@
<%#
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
Copyright 2012 David Menting <david@nut-bolt.nl>
Copyright 2015 GuoGuo <gch981213@gmail.com>
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)
%>
</div>
</div>
<footer class="amz-footer">
<div class="am-container am-text-center">
<div class="footer-icon">
<a href="javascript:;" target="_blank" title="微信" class="wechat"><i class="am-icon-weixin"></i></a>
</div>
<span>©2020 Theme by</span>
<span><a href="https://www.guyezi.com/" title="guyezi" target="_blank">guyezi</a></span>
<span><a href="<%=media%>/usage.html">使用条款</a></span>
<a href="http://luci.subsignal.org/">Powered by <%= ver.luciname %> <!--(<%= ver.luciversion %>)--></a> / <%= ver.distversion %>
<% if #categories > 1 then %>
<ul 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>|</span></li>
<% end %>
</ul>
<% end %>
<div class="am-text-center">
<a target="_blank" href="https://github.com/coolsnowwolf/lede" style="display:inline-block;text-decoration:none;height:20px;line-height:20px;">
<img src="<%=media%>/beian.png" style="float:left;">&nbsp;Coolsnowwolf
<p style="float:left;height:20px;line-height:20px;margin: 0px 0px 0px 5px; color:#333; font-size:12px;">Source support from </p>
</a>
</div>
</div>
</footer>
<script src="<%=media%>/jquery.min.js"></script>
<script src="<%=media%>/amazeui.min.js"></script>
</body>
</html>

View File

@ -1,221 +0,0 @@
<%#
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
Copyright 2012 David Menting <david@nut-bolt.nl>
Copyright 2015 GuoGuo <gch981213@gmail.com>
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)%>" class="am-btn am-btn-link"><%=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>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp"/>
<link rel="alternate icon" type="image/png" href="<%=media%>/favicon.png">
<link rel="stylesheet" href="<%=media%>/cascade.css"/>
<link rel="stylesheet" href="<%=media%>/amazeui-cut.min.css"/>
<link rel="stylesheet" href="<%=media%>/cbi.css"/>
<% 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 class="am-topbar am-topbar-fixed-top am-topbar-inverse">
<h1 class="am-topbar-brand">
<a href="#"><%=boardinfo.hostname or "?"%></a>
</h1>
<button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only"
data-am-collapse="{target: '#doc-topbar-collapse'}"><span style="font-size=15px;"><b></b></span></button>
<div class="am-collapse am-topbar-collapse" id="doc-topbar-collapse">
<ul class="am-nav am-nav-pills am-topbar-nav">
<%-
local function submenu(prefix, node)
local childs = disp.node_childs(node)
if #childs > 0 then
%>
<ul class="am-dropdown-content">
<%-
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="am-dropdown" data-am-dropdown>
<a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">
<%=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
%>
<% if ucichanges > 0 then %>
<div class="am-topbar-form am-topbar-right">
<a class="am-btn am-btn-warning am-btn-sm" href="<%=controller%>/<%=category%>/uci/changes"><%:Unsaved Changes%>: <%=ucichanges%></a>
</div>
<% end %>
<div class="am-topbar-form am-topbar-right">
<span id="xhr_poll_status" style="display:none" onclick="XHR.running() ? XHR.halt() : XHR.run()">
<span class="am-btn am-btn-success am-btn-sm" id="xhr_poll_status_on"><%:Auto Refresh%> <%:on%></span>
<span class="am-btn am-btn-warning am-btn-sm" id="xhr_poll_status_off" style="display:none"><%:Auto Refresh%> <%:off%></span>
</span>
</div>
<% end %>
</div>
</header>
<div class="am-g am-g-fixed am-with-topbar-fixed-top am-g-with-margin" style="max-width: 1200px;">
<%- if luci.sys.process.info("uid") == 0 and luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") then -%>
<div>
<div class="am-panel-group">
<section class="am-panel am-panel-danger">
<div class="am-panel-hd"><%:No password set!%></div>
<div class="am-panel-bd">
<p><%:There is no password set on this router. Please configure a root password to protect the web interface and enable SSH.%></p>
<a class="am-btn am-btn-warning am-btn-sm" href="<%=pcdata(luci.dispatcher.build_url("admin/system/admin"))%>"><%:Go to password configuration...%></a>
</div>
</section>
</div>
</div>
<%- end -%>
<div>
<% if category then subtree("/" .. category .. "/", cattree) end %>

View File

@ -1,6 +0,0 @@
#!/bin/sh
uci batch <<-EOF
set luci.themes.amazeui=/luci-static/amazeui
commit luci
EOF