From 2a5c5f47f95978c6eb5c52b41b4e931e63afa4f5 Mon Sep 17 00:00:00 2001
From: Jo-Philipp Wich
Date: Tue, 24 Sep 2019 11:33:21 +0200
Subject: luci-mod-system: reimplement flashops as client side view
Signed-off-by: Jo-Philipp Wich
---
.../luasrc/view/admin_system/backupfiles.htm | 10 --
.../luasrc/view/admin_system/flashops.htm | 137 ---------------------
.../luasrc/view/admin_system/upgrade.htm | 65 ----------
3 files changed, 212 deletions(-)
delete mode 100644 modules/luci-mod-system/luasrc/view/admin_system/backupfiles.htm
delete mode 100644 modules/luci-mod-system/luasrc/view/admin_system/flashops.htm
delete mode 100644 modules/luci-mod-system/luasrc/view/admin_system/upgrade.htm
(limited to 'modules/luci-mod-system/luasrc/view')
diff --git a/modules/luci-mod-system/luasrc/view/admin_system/backupfiles.htm b/modules/luci-mod-system/luasrc/view/admin_system/backupfiles.htm
deleted file mode 100644
index c1f3361ae2..0000000000
--- a/modules/luci-mod-system/luasrc/view/admin_system/backupfiles.htm
+++ /dev/null
@@ -1,10 +0,0 @@
-<%#
- Copyright 2008 Steven Barth
- Copyright 2008 Jo-Philipp Wich
- Licensed to the public under the Apache License 2.0.
--%>
-
-
diff --git a/modules/luci-mod-system/luasrc/view/admin_system/flashops.htm b/modules/luci-mod-system/luasrc/view/admin_system/flashops.htm
deleted file mode 100644
index 8204d38e34..0000000000
--- a/modules/luci-mod-system/luasrc/view/admin_system/flashops.htm
+++ /dev/null
@@ -1,137 +0,0 @@
-<%#
- Copyright 2008 Steven Barth
- Copyright 2008-2015 Jo-Philipp Wich
- Licensed to the public under the Apache License 2.0.
--%>
-
-<%+header%>
-
-<%:Flash operations%>
-
-
-
-
-
<%:Backup%>
-
<%:Click "Generate archive" to download a tar archive of the current configuration files.%>
-
-
-
<%:Restore%>
-
<%:To restore configuration files, you can upload a previously generated backup archive here. To reset the firmware to its initial state, click "Perform reset" (only possible with squashfs images).%>
-
- <% if reset_avail then %>
-
- <% end %>
-
- <% if backup_invalid then %>
-
<%:The backup archive does not appear to be a valid gzip file.%>
- <% end %>
-
-
- <% local mtds = require("luci.sys").mtds(); if #mtds > 0 then -%>
-
<%:Save mtdblock contents%>
-
<%:Click "Save mtdblock" to download specified mtdblock file. (NOTE: THIS FEATURE IS FOR PROFESSIONALS! )%>
-
- <% end %>
-
-
-
-
-
<%:Flash new firmware image%>
- <% if upgrade_avail then %>
-
- <% else %>
-
<%:Sorry, there is no sysupgrade support present; a new firmware image must be flashed manually. Please refer to the wiki for device specific install instructions.%>
- <% end %>
-
-
-<%+footer%>
diff --git a/modules/luci-mod-system/luasrc/view/admin_system/upgrade.htm b/modules/luci-mod-system/luasrc/view/admin_system/upgrade.htm
deleted file mode 100644
index 597ddfd6bf..0000000000
--- a/modules/luci-mod-system/luasrc/view/admin_system/upgrade.htm
+++ /dev/null
@@ -1,65 +0,0 @@
-<%#
- Copyright 2008 Steven Barth
- Copyright 2008-2009 Jo-Philipp Wich
- Licensed to the public under the Apache License 2.0.
--%>
-
-<%+header%>
-
-<%:Flash Firmware%> - <%:Verify%>
-
- <%_ The flash image was uploaded.
- Below is the checksum and file size listed,
- compare them with the original file to ensure data integrity.
- Click "Proceed" below to start the flash procedure. %>
-
- <% if storage > 0 and size > storage then %>
-
-
<%:It appears that you are trying to
- flash an image that does not fit into the flash memory, please verify
- the image file! %>
- <% end %>
-
-
-
-
-
- - <%:Checksum%>
- <%:MD5%>: <%=checksum%>
- <%:SHA256%>: <%=sha256ch%>
- - <%:Size%>: <%
- local w = require "luci.tools.webadmin"
- write(w.byte_format(size))
-
- if storage > 0 then
- write(luci.i18n.translatef(
- " (%s available)",
- w.byte_format(storage)
- ))
- end
- %>
- - <% if keep then %>
- <%:Configuration files will be kept%>
- <% else %>
- <%:Caution: Configuration files will be erased%>
- <% end %>
- <% if force then %>
- -
- <%:Caution: System upgrade will be forced%>
-
- <% end %>
-
-
-
-
-
-
-
-<%+footer%>
--
cgit v1.2.3