Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
trinity
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tony Bonnin
trinity
Commits
b124ec29
Unverified
Commit
b124ec29
authored
1 year ago
by
Tony Bonnin
Browse files
Options
Downloads
Patches
Plain Diff
Dashboard App for ACF
parent
9c79ebdb
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/acf-util/welcome-html.lsp
+2
-2
2 additions, 2 deletions
app/acf-util/welcome-html.lsp
app/alpine-baselayout/health-model.lua
+1
-1
1 addition, 1 deletion
app/alpine-baselayout/health-model.lua
css/dashboard-main/footer.css
+0
-8
0 additions, 8 deletions
css/dashboard-main/footer.css
with
3 additions
and
11 deletions
app/acf-util/welcome-html.lsp
+
2
−
2
View file @
b124ec29
...
@@ -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">
- <!--<a class="version-link" href="https://www.alpinelinux.org/posts/Alpine-<%= actual_distver %>-released.html" target="_blank">
-->
- <!--<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 %>
...
...
This diff is collapsed.
Click to expand it.
app/alpine-baselayout/health-model.lua
+
1
−
1
View file @
b124ec29
...
@@ -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"
})
...
...
This diff is collapsed.
Click to expand it.
css/dashboard-main/footer.css
+
0
−
8
View file @
b124ec29
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment