mirror of
https://github.com/kenzok8/small-package
synced 2025-01-07 07:06:58 +08:00
update 2024-06-21 16:21:21
This commit is contained in:
parent
cc10a53f62
commit
43c46d208c
@ -11,7 +11,7 @@ LUCI_DEPENDS:=+luci-lib-xterm +taskd
|
|||||||
LUCI_EXTRA_DEPENDS:=taskd (>=1.0.3-1)
|
LUCI_EXTRA_DEPENDS:=taskd (>=1.0.3-1)
|
||||||
LUCI_PKGARCH:=all
|
LUCI_PKGARCH:=all
|
||||||
|
|
||||||
PKG_VERSION:=1.0.19
|
PKG_VERSION:=1.0.20
|
||||||
PKG_RELEASE:=
|
PKG_RELEASE:=
|
||||||
PKG_MAINTAINER:=jjm2473 <jjm2473@gmail.com>
|
PKG_MAINTAINER:=jjm2473 <jjm2473@gmail.com>
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
if (oReq.status == 403) {
|
if (oReq.status == 403) {
|
||||||
alert($gettext("Lost login status"));
|
alert($gettext("Lost login status"));
|
||||||
location.href = location.href;
|
location.href = location.href;
|
||||||
} else if (oReq.status == 404) {
|
} else if (oReq.status >= 400) {
|
||||||
reject(oEvent);
|
reject(oEvent);
|
||||||
} else {
|
} else {
|
||||||
resolve(oReq);
|
resolve(oReq);
|
||||||
@ -155,7 +155,7 @@
|
|||||||
}
|
}
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
if (showing) {
|
if (showing) {
|
||||||
if (err.target.status == 0) {
|
if (err.target.status == 0 || err.target.status == 502) {
|
||||||
title_view.innerText = task_id + ' (' + $gettext("Fetch log failed, retrying...") + ')';
|
title_view.innerText = task_id + ' (' + $gettext("Fetch log failed, retrying...") + ')';
|
||||||
setTimeout(()=>pulllog(true), 1000);
|
setTimeout(()=>pulllog(true), 1000);
|
||||||
} else if (err.target.status == 403 || err.target.status == 404) {
|
} else if (err.target.status == 403 || err.target.status == 404) {
|
||||||
@ -183,23 +183,23 @@
|
|||||||
// compat
|
// compat
|
||||||
if (typeof(window.findParent) !== 'function') {
|
if (typeof(window.findParent) !== 'function') {
|
||||||
const elem = function(e) {
|
const elem = function(e) {
|
||||||
return (e != null && typeof(e) == 'object' && 'nodeType' in e);
|
return (e != null && typeof(e) == 'object' && 'nodeType' in e);
|
||||||
};
|
};
|
||||||
const matches = function(node, selector) {
|
const matches = function(node, selector) {
|
||||||
var m = elem(node) ? node.matches || node.msMatchesSelector : null;
|
var m = elem(node) ? node.matches || node.msMatchesSelector : null;
|
||||||
return m ? m.call(node, selector) : false;
|
return m ? m.call(node, selector) : false;
|
||||||
};
|
};
|
||||||
window.findParent = function (node, selector) {
|
window.findParent = function (node, selector) {
|
||||||
if (elem(node) && node.closest)
|
if (elem(node) && node.closest)
|
||||||
return node.closest(selector);
|
return node.closest(selector);
|
||||||
|
|
||||||
while (elem(node))
|
while (elem(node))
|
||||||
if (matches(node, selector))
|
if (matches(node, selector))
|
||||||
return node;
|
return node;
|
||||||
else
|
else
|
||||||
node = node.parentNode;
|
node = node.parentNode;
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
if (typeof(window.cbi_submit) !== 'function') {
|
if (typeof(window.cbi_submit) !== 'function') {
|
||||||
|
Loading…
Reference in New Issue
Block a user