mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
Added footer with service and UI version RIVM-15
This commit is contained in:
parent
8da27aad4f
commit
d6eceef4e3
2 changed files with 16 additions and 4 deletions
|
@ -273,7 +273,6 @@
|
||||||
|
|
||||||
.column {
|
.column {
|
||||||
max-height: 350px;
|
max-height: 350px;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
@ -321,11 +320,15 @@
|
||||||
img {
|
img {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
html, body {
|
||||||
|
height: 100vh;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body onload="onLoad();">
|
<body onload="onLoad();">
|
||||||
<div style="padding:3px; max-height: 250px;">
|
<div class="container hero is-fullheight" style="padding:3px;">
|
||||||
<div class="box is-hidden">
|
<div class="box is-hidden">
|
||||||
<div style="z-index: 9;" class="box stack-top notification is-primary is-hidden" id="notification_window">
|
<div style="z-index: 9;" class="box stack-top notification is-primary is-hidden" id="notification_window">
|
||||||
<button class="delete" id="info_close"></button>
|
<button class="delete" id="info_close"></button>
|
||||||
|
@ -468,16 +471,22 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<footer class="is-flex-align-items-flex-end" style="margin-top: auto">
|
||||||
|
<hr style="margin: 0px;background-color: #5d656d;">
|
||||||
|
<div id="version" class="content has-text-left" style="padding: 10px;padding-left: 50px;">
|
||||||
|
v123456
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="margin-left: 100px; margin-right: 100px;">
|
<div class="is-hidden" style="margin-left: 100px; margin-right: 100px;">
|
||||||
<div class="notification is-primary is-hidden" id="notification_info">
|
<div class="notification is-primary is-hidden" id="notification_info">
|
||||||
<button class="delete" id="info_close1"></button>
|
<button class="delete" id="info_close1"></button>
|
||||||
<p id="info_text"></p>
|
<p id="info_text"></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="is-hidden">
|
<div class="is-hidden">
|
||||||
|
|
||||||
<img id="flag_colombia" alt="colombia"
|
<img id="flag_colombia" alt="colombia"
|
||||||
|
|
|
@ -20,6 +20,8 @@ import (
|
||||||
"github.com/RiV-chain/RiV-mesh/src/admin"
|
"github.com/RiV-chain/RiV-mesh/src/admin"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var uiVersion = "0.0.1"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
debug := true
|
debug := true
|
||||||
w := webview.New(debug)
|
w := webview.New(debug)
|
||||||
|
@ -194,6 +196,7 @@ func get_self(w webview.WebView) {
|
||||||
go setFieldValue(w, "ipv6", res.IPAddress)
|
go setFieldValue(w, "ipv6", res.IPAddress)
|
||||||
go setFieldValue(w, "pub_key", res.PublicKey)
|
go setFieldValue(w, "pub_key", res.PublicKey)
|
||||||
go setFieldValue(w, "priv_key", res.PrivateKey)
|
go setFieldValue(w, "priv_key", res.PrivateKey)
|
||||||
|
go setFieldValue(w, "version", fmt.Sprintf("v%v/%v", res.BuildVersion, uiVersion))
|
||||||
//found subnet
|
//found subnet
|
||||||
fmt.Printf("Subnet: %s\n", res.Subnet)
|
fmt.Printf("Subnet: %s\n", res.Subnet)
|
||||||
go setFieldValue(w, "subnet", res.Subnet)
|
go setFieldValue(w, "subnet", res.Subnet)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue