update 2022-08-29 20:20:12

This commit is contained in:
github-actions[bot] 2022-08-29 20:20:12 +08:00
parent e3dd871834
commit 82d6f07f33
7 changed files with 11 additions and 18 deletions

View File

@ -8,10 +8,10 @@ include $(TOPDIR)/rules.mk
LUCI_TITLE:=LuCI based ipk store LUCI_TITLE:=LuCI based ipk store
LUCI_DESCRIPTION:=luci-app-store is a ipk store developed by LinkEase team LUCI_DESCRIPTION:=luci-app-store is a ipk store developed by LinkEase team
LUCI_DEPENDS:=+curl +opkg +luci-base +tar +coreutils +coreutils-stat +libuci-lua +mount-utils +luci-lib-taskd LUCI_DEPENDS:=+curl +opkg +luci-base +tar +coreutils +coreutils-stat +libuci-lua +mount-utils +luci-lib-taskd
LUCI_EXTRA_DEPENDS:=luci-lib-taskd (>=1.0.16) LUCI_EXTRA_DEPENDS:=luci-lib-taskd (>=1.0.17)
LUCI_PKGARCH:=all LUCI_PKGARCH:=all
PKG_VERSION:=0.1.12-4 PKG_VERSION:=0.1.12-5
# PKG_RELEASE MUST be empty for luci.mk # PKG_RELEASE MUST be empty for luci.mk
PKG_RELEASE:= PKG_RELEASE:=

View File

@ -49,7 +49,7 @@
<% <%
local taskd = require "luci.model.tasks" local taskd = require "luci.model.tasks"
local status = taskd.status("istore") local status = taskd.status("istore")
if status.running then if status.running or status.exit_code ~= 404 then
-%> -%>
window.istore_log(true); window.istore_log(true);
<% <%

View File

@ -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.16 PKG_VERSION:=1.0.17
PKG_RELEASE:= PKG_RELEASE:=
PKG_MAINTAINER:=jjm2473 <jjm2473@gmail.com> PKG_MAINTAINER:=jjm2473 <jjm2473@gmail.com>

View File

@ -22,11 +22,8 @@
} }
oReq.onload = function (oEvent) { oReq.onload = function (oEvent) {
if (oReq.status == 403) { if (oReq.status == 403) {
if (confirm($gettext("Lost login status, retry?"))) { alert($gettext("Lost login status"));
setTimeout(retry, 0); location.href = location.href;
} else {
reject(oEvent);
}
} else if (oReq.status == 404) { } else if (oReq.status == 404) {
reject(oEvent); reject(oEvent);
} else { } else {
@ -112,9 +109,9 @@
title_view.title = title; title_view.title = title;
title_view.innerText = title; title_view.innerText = title;
if (!data.running) { if (!data.running) {
container.classList.add('tasks_stopped') container.classList.add('tasks_stopped');
if (data.exit_code) { if (data.exit_code) {
container.classList.add('tasks_failed') container.classList.add('tasks_failed');
} }
} }
// last pull // last pull
@ -161,9 +158,9 @@
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) {
title_view.innerText += ' (' + $gettext(err.target.status == 403?"Lost login status":"Task does not exist or has been deleted") + ')'; title_view.innerText = task_id + ' (' + $gettext(err.target.status == 403?"Lost login status":"Task does not exist or has been deleted") + ')';
container.querySelector(".dialog-icon-close").hidden = true; container.querySelector(".dialog-icon-close").hidden = true;
container.classList.add('tasks_unknown'); container.classList.add('tasks_unknown');
} else { } else {
console.error(err); console.error(err);
} }

View File

@ -35,7 +35,7 @@ taskd.status = function (task_id)
if task_id == "" then if task_id == "" then
data = {} data = {}
else else
data = {running=false, exit_code=255} data = {running=false, exit_code=404}
end end
end end
if task_id ~= "" then if task_id ~= "" then

View File

@ -10,7 +10,6 @@
tr("Stopped at:") tr("Stopped at:")
tr("Finished at:") tr("Finished at:")
tr("Failed at:") tr("Failed at:")
tr("Lost login status, retry?")
tr("Lost login status") tr("Lost login status")
tr("Fetch log failed, retrying...") tr("Fetch log failed, retrying...")
tr("Task does not exist or has been deleted") tr("Task does not exist or has been deleted")

View File

@ -10,9 +10,6 @@ msgstr "完成于:"
msgid "Failed at:" msgid "Failed at:"
msgstr "失败于:" msgstr "失败于:"
msgid "Lost login status, retry?"
msgstr "丢失登陆状态,是否重试?"
msgid "Lost login status" msgid "Lost login status"
msgstr "丢失登陆状态" msgstr "丢失登陆状态"