From f07303d327b0eef30868ebc81f2e8a2c6baa943d Mon Sep 17 00:00:00 2001 From: Beginner <70857188+Beginner-Go@users.noreply.github.com> Date: Fri, 26 Nov 2021 17:12:46 +0800 Subject: [PATCH] luci-app-kodexplorer: revert some code (#8314) --- .../luasrc/model/cbi/kodexplorer/settings.lua | 6 +++--- .../kodexplorer/{kodexplorer_download.htm => download.htm} | 0 .../view/kodexplorer/{kodexplorer_status.htm => status.htm} | 0 .../kodexplorer/{kodexplorer_version.htm => version.htm} | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename package/lean/luci-app-kodexplorer/luasrc/view/kodexplorer/{kodexplorer_download.htm => download.htm} (100%) rename package/lean/luci-app-kodexplorer/luasrc/view/kodexplorer/{kodexplorer_status.htm => status.htm} (100%) rename package/lean/luci-app-kodexplorer/luasrc/view/kodexplorer/{kodexplorer_version.htm => version.htm} (100%) diff --git a/package/lean/luci-app-kodexplorer/luasrc/model/cbi/kodexplorer/settings.lua b/package/lean/luci-app-kodexplorer/luasrc/model/cbi/kodexplorer/settings.lua index 2645e9c4e..33ba0dedb 100644 --- a/package/lean/luci-app-kodexplorer/luasrc/model/cbi/kodexplorer/settings.lua +++ b/package/lean/luci-app-kodexplorer/luasrc/model/cbi/kodexplorer/settings.lua @@ -2,7 +2,7 @@ m = Map("kodexplorer") m.title = translate("KodExplorer") m.description = translate("KodExplorer is a fast and efficient private cloud and online document management system that provides secure, controllable, easy-to-use and highly customizable private cloud products for personal websites, enterprise private cloud deployment, network storage, online document management, and online office. With Windows style interface and operation habits, it can be used quickly without adaptation. It supports online preview of hundreds of common file formats and is extensible and easy to customize.") -m:section(SimpleSection).template = "kodexplorer/kodexplorer_status" +m:append(Template("kodexplorer/status")) s = m:section(TypedSection, "global", translate("Global Settings")) s.anonymous = true @@ -41,11 +41,11 @@ o.description = translate("It is recommended to insert a usb flash drive or hard o.default = "/mnt/sda1/kodexplorer" o.rmempty = false -s:section(SimpleSection).template = "kodexplorer/kodexplorer_version" +s:append(Template("kodexplorer/version")) o = s:option(Button, "_download", translate("Manually update")) o.description = translate("Make sure you have enough space.
Be sure to fill out the device path and store path for the first run, and then save the application. Then manually download, otherwise can not use!") -o.template = "kodexplorer/kodexplorer_download" +o.template = "kodexplorer/download" o.inputstyle = "apply" o.btnclick = "downloadClick(this);" o.id = "download_btn" diff --git a/package/lean/luci-app-kodexplorer/luasrc/view/kodexplorer/kodexplorer_download.htm b/package/lean/luci-app-kodexplorer/luasrc/view/kodexplorer/download.htm similarity index 100% rename from package/lean/luci-app-kodexplorer/luasrc/view/kodexplorer/kodexplorer_download.htm rename to package/lean/luci-app-kodexplorer/luasrc/view/kodexplorer/download.htm diff --git a/package/lean/luci-app-kodexplorer/luasrc/view/kodexplorer/kodexplorer_status.htm b/package/lean/luci-app-kodexplorer/luasrc/view/kodexplorer/status.htm similarity index 100% rename from package/lean/luci-app-kodexplorer/luasrc/view/kodexplorer/kodexplorer_status.htm rename to package/lean/luci-app-kodexplorer/luasrc/view/kodexplorer/status.htm diff --git a/package/lean/luci-app-kodexplorer/luasrc/view/kodexplorer/kodexplorer_version.htm b/package/lean/luci-app-kodexplorer/luasrc/view/kodexplorer/version.htm similarity index 100% rename from package/lean/luci-app-kodexplorer/luasrc/view/kodexplorer/kodexplorer_version.htm rename to package/lean/luci-app-kodexplorer/luasrc/view/kodexplorer/version.htm