update 2023-03-17 14:19:17

This commit is contained in:
github-actions[bot] 2023-03-17 14:19:17 +08:00
parent a55787bf14
commit beb84c18bb
10 changed files with 40 additions and 22 deletions

View File

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=aliyundrive-webdav
PKG_VERSION:=2.0.5
PKG_VERSION:=2.1.0
PKG_RELEASE:=1
PKG_LICENSE:=MIT

View File

@ -17,3 +17,4 @@ config server
option tls_key ''
option skip_upload_same_size '0'
option prefer_http_download '0'
option redirect '0'

View File

@ -59,6 +59,13 @@ start_service() {
*) ;;
esac
case "$(uci_get_by_type server redirect 0)" in
1|on|true|yes|enabled)
extra_options="$extra_options --redirect"
;;
*) ;;
esac
if [[ ! -z "$tls_cert" && ! -z "$tls_key" ]]; then
extra_options="$extra_options --tls-cert $tls_cert --tls-key $tls_key"
fi

View File

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-aliyundrive-webdav
PKG_VERSION:=2.0.5
PKG_VERSION:=2.1.0
PKG_RELEASE:=1
PKG_PO_VERSION:=$(PKG_VERSION)-$(PKG_RELEASE)

View File

@ -44,6 +44,10 @@ prefer_http_download = e:option(Flag, "prefer_http_download", translate("Prefer
prefer_http_download.description = translate("Prefer downloading files using HTTP instead of HTTPS protocol")
prefer_http_download.rmempty = false
redirect = e:option(Flag, "redirect", translate("Enable 302 Redirect"))
redirect.description = translate("Enable 302 redirect when possible")
redirect.rmempty = false
upload_buffer_size = e:option(Value, "upload_buffer_size", translate("Upload Buffer Size"))
upload_buffer_size.default = "16777216"
upload_buffer_size.datatype = "uinteger"

View File

@ -96,3 +96,9 @@ msgstr "使用 HTTP 下载"
msgid "Prefer downloading files using HTTP instead of HTTPS protocol"
msgstr "优先使用 HTTP 而不是 HTTPS 协议下载,低端设备上降低 CPU 占用"
msgid "Enable 302 Redirect"
msgstr "启用 302 重定向"
msgid "Enable 302 redirect when possible"
msgstr "在可能的情况下启用 302 重定向"

View File

@ -7,8 +7,8 @@ include $(TOPDIR)/rules.mk
LUCI_TITLE:=Design Theme
LUCI_DEPENDS:=
PKG_VERSION:=5.4.9
PKG_RELEASE:=20230316
PKG_VERSION:=5.5.0
PKG_RELEASE:=20230317
include $(TOPDIR)/feeds/luci/luci.mk

View File

@ -194,8 +194,8 @@ input {
font-family: -apple-system, 'Microsoft Yahei', sans-serif, Helvetica, Arial, sans-serif;
border: var(--inputBorder);
background-color: var(--inputbgColor);
transition: color 150ms ease, border-color 150ms ease, opacity 150ms ease;
-webkit-transition: color 150ms ease, border-color 150ms ease, opacity 150ms ease;
transition: color 100ms ease, border-color 100ms ease, opacity 100ms ease;
-webkit-transition: color 100ms ease, border-color 100ms ease, opacity 100ms ease;
outline-style: none;
vertical-align: middle;
border-radius: 8px;
@ -284,7 +284,7 @@ header, .main {
header {
background-color: var(--bgwhite);
box-shadow: 17rem 2px 4px rgba(0, 0, 0, 0.08);
transition: box-shadow 0.2s;
transition: box-shadow 0.1s;
height: 55px;
float: left;
position: fixed;
@ -1090,7 +1090,7 @@ img[src*="/luci-static/resources/icons/signal-none.png"]
position: fixed;
padding-top: 15px;
box-shadow: 0 0px 4px rgb(0 0 0 / 8%);
transition: visibility 150ms, width 150ms;
transition: visibility 100ms, width 100ms;
}
.main-right {
@ -1239,7 +1239,7 @@ p#shadowsocksr_status {
cursor: pointer;
font-weight: bold;
font-size: 1.1rem;
transition: all 0.2s;
transition: all 0.1s;
}
/*
@ -1287,10 +1287,10 @@ p#shadowsocksr_status {
line-height: 1.6;
/* Better Font Rendering =========== */
-moz-osx-font-smoothing: grayscale;
transition: all 0.15s ease;
transition: all 0.1s ease;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
transition: all 0.3s;
transition: all 0.1s;
}
.main .main-left .nav li.slide .menu.active::after {
@ -1440,7 +1440,7 @@ p#shadowsocksr_status {
.main > .main-left > .nav > .slide > .slide-menu > li:hover {
background: var(--activeColor);
color:white !important;
transition: all 0.2s;
transition: all 0.1s;
}
.main > .main-left > .nav > .slide > .slide-menu > .active:hover {
@ -1751,7 +1751,7 @@ td#__status-ifc-signal {
text-transform: uppercase;
color: #fff;
background-color: #337ab7;
transition: all 0.2s ease-in-out;
transition: all 0.1s ease-in-out;
display: inline-block;
border: none;
cursor: pointer;

File diff suppressed because one or more lines are too long

View File

@ -235,7 +235,7 @@
end
%>
<% if ucichanges > 0 then %>
<a class="label notice" href="<%=url(category, 'uci/changes')%>?redir=<%=http.urlencode(http.formvalue('redir') or table.concat(disp.context.request, "/"))%>"><%=translate('Unsaved Changes')%>: <%=ucichanges%></a>
<a class="label notice" style="margin-right: 30px;" href="<%=url(category, 'uci/changes')%>?redir=<%=http.urlencode(http.formvalue('redir') or table.concat(disp.context.request, "/"))%>"><%=translate('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"><span id="refresh_on" class="mobile-hide"></span></span>
@ -245,14 +245,13 @@
const pollStatus = document.querySelector('#xhr_poll_status');
const notice = document.querySelector('.notice');
function updateMarginRight() {
const style = notice.style; // 缓存样式对象
if (pollStatus.style.display === '') {
notice.style.marginRight = '30px';
}
if (pollStatus.style.display === 'none') {
notice.style.marginRight = '0';
notice.style.setProperty('margin-right', '30px', 'important');
} else if (pollStatus.style.display === 'none') {
notice.style.setProperty('margin-right', '0', 'important');
}
}
updateMarginRight();
const observer = new MutationObserver(function(mutationsList) {
for (let mutation of mutationsList) {
if (mutation.type === 'attributes' && mutation.attributeName === 'style') {
@ -262,6 +261,7 @@
});
const config = { attributes: true, attributeFilter: ['style'] };
observer.observe(pollStatus, config);
updateMarginRight();
</script>
<% end %>
</div>