Skip to content
Snippets Groups Projects
Unverified Commit b124ec29 authored by Tony Bonnin's avatar Tony Bonnin
Browse files

Dashboard App for ACF

parent 9c79ebdb
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,7 @@ end ...@@ -41,7 +41,7 @@ end
end end
-- GET DIST VERSION CHANGES -- GET DIST VERSION CHANGES
local check_verchanges = string.match(sys.value.alpineposts.value, "%W+("..actual_distver..")%W+") local check_verchanges = string.match(sys.value.alpineposts.value, "((("..actual_distver..").+%$)-released.html)")
-- FORMAT UPTIME -- FORMAT UPTIME
local up_time = math.floor(string.match(sys.value.uptime.value, "[%d]+")) local up_time = math.floor(string.match(sys.value.uptime.value, "[%d]+"))
...@@ -145,7 +145,7 @@ end ...@@ -145,7 +145,7 @@ end
<span class="data-title">OS : </span> <span class="data-title">OS : </span>
<%= chkres %> <%= chkres %>
<span class="check-version"> <span class="check-version">
- &nbsp;<!--<a class="version-link" href="https://www.alpinelinux.org/posts/Alpine-<%= actual_distver %>-released.html" target="_blank"> --> - &nbsp;<!--<a class="version-link" href="https://www.alpinelinux.org/posts/Alpine-<%= actual_distver %>-released.html" target="_blank">-->
Last Release : <%= actual_distver %> Last Release : <%= actual_distver %>
</span><!--</a>--><br> </span><!--</a>--><br>
<span class="data-title">ACF Version : </span><%= sys.value.luaver.value %> <span class="data-title">ACF Version : </span><%= sys.value.luaver.value %>
......
...@@ -75,7 +75,7 @@ mymodule.get_system = function (self) ...@@ -75,7 +75,7 @@ mymodule.get_system = function (self)
system.version = cfe({ value=indexver or fs.read_file("/etc/alpine-release") or "Unknown", label="Version" }) system.version = cfe({ value=indexver or fs.read_file("/etc/alpine-release") or "Unknown", label="Version" })
system.alpineluaver = cfe({ value=string.match(querycmd("cat /usr/share/acf/www/cgi-bin/acf"), "lua%d.%d") or "Unknown", label="Alpine Lua Version" }) system.alpineluaver = cfe({ value=string.match(querycmd("cat /usr/share/acf/www/cgi-bin/acf"), "lua%d.%d") or "Unknown", label="Alpine Lua Version" })
system.luaver = cfe({ value=string.match(querycmd((system.alpineluaver.value) .. " -v"), "Lua%s%d.%d.%d") or "Unknown", label="Lua Version" }) system.luaver = cfe({ value=string.match(querycmd((system.alpineluaver.value) .. " -v"), "Lua%s%d.%d.%d") or "Unknown", label="Lua Version" })
system.ACFserver = cfe({ value=querycmd("lighttpd -v"), label="ACF Server Version" }) system.ACFserver = cfe({ value=querycmd("lighttpd -v") or "unknow", label="ACF Server" })
system.timezone = cfe({ value=date.what_tz(), label="Time Zone" }) system.timezone = cfe({ value=date.what_tz(), label="Time Zone" })
system.uname = cfe({ value=querycmd("uname -a"), label="UName" }) system.uname = cfe({ value=querycmd("uname -a"), label="UName" })
system.memory = cfe({ value=querycmd("free"), label="Memory usage" }) system.memory = cfe({ value=querycmd("free"), label="Memory usage" })
......
...@@ -16,12 +16,4 @@ ...@@ -16,12 +16,4 @@
#footer a { #footer a {
color: #939393 !important; color: #939393 !important;
}
.data-title.data-footer.data-version {
font-weight: 600;
float: right;
margin: auto 1rem;
font-size: 0.5rem;
text-transform: capitalize;
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment