Bumped to v11, display version in web-UI

This commit is contained in:
Magnus Åhall 2023-07-20 10:52:15 +02:00
parent db33be9a37
commit 63a7370570
4 changed files with 13 additions and 2 deletions

View File

@ -20,7 +20,7 @@ import (
_ "embed" _ "embed"
) )
const VERSION = "v10"; const VERSION = "v11";
const LISTEN_HOST = "0.0.0.0"; const LISTEN_HOST = "0.0.0.0";
const DB_SCHEMA = 13 const DB_SCHEMA = 13

View File

@ -279,6 +279,11 @@ header .menu {
margin-bottom: 32px; margin-bottom: 32px;
font-size: 1.5em; font-size: 1.5em;
} }
#notes-version {
margin-top: 64px;
color: #888;
text-align: center;
}
#node-content.encrypted { #node-content.encrypted {
color: #a00; color: #a00;
} }

View File

@ -57,7 +57,7 @@ export class NodeUI extends Component {
case 'node': case 'node':
if(node.ID == 0) { if(node.ID == 0) {
page = html` page = html`
${children.length > 0 ? html`<div class="child-nodes">${children}</div>` : html``} ${children.length > 0 ? html`<div class="child-nodes">${children}</div><div id="notes-version">Notes version ${window._VERSION}</div>` : html``}
` `
} else { } else {
let padlock = '' let padlock = ''

View File

@ -322,6 +322,12 @@ header {
font-size: 1.5em; font-size: 1.5em;
} }
#notes-version {
margin-top: 64px;
color: #888;
text-align: center;
}
#node-content.encrypted { #node-content.encrypted {
color: #a00; color: #a00;
} }