Update schemas and templates

This commit is contained in:
2024-04-27 23:27:29 +02:00
parent 1db2eed430
commit 30519a4d24
21 changed files with 131 additions and 11 deletions

View File

@@ -0,0 +1,13 @@
div#HEADFILES
table
thead
th Account
th Notes
each itm in node.items
tr
td=itm.data.name
td=itm.data.notes
div#FILES
div#FOOTFILES

View File

@@ -13,7 +13,7 @@ div#HEADFILES
if(itm?.data?.backups?.length > 0) {
const nodeItem = {
name: itm.data.name,
url: curNode.url + '?itm=' + itm.data.name,
url: curNode.url + '?itm=' + itm.name,
backups: itm.data.backups,
}
backups.push(nodeItem)

View File

@@ -0,0 +1,13 @@
div#HEADFILES
table
thead
th Account
th Notes
each itm in node.items
tr
td=itm.data.name
td=itm.data.notes
div#FILES
div#FOOTFILES

View File

@@ -42,7 +42,7 @@ if dhcpRanges.length > 0
td=rng.from
td=rng.to
if ipNodes.length > 0
h3 Fixed IPs
h3 Static IPs
table
thead
th IP

View File

@@ -3,9 +3,11 @@ div#HEADFILES
table
thead
th Account
th Notes
each itm in node.items
tr
td=itm.data.name
td=itm.data.notes
div#FILES
div#FOOTFILES

View File

@@ -17,7 +17,7 @@ div#HEADFILES
itm.data.todo.forEach((todo) => {
const nodeItem = {
name: itm.data.name,
url: curNode.url + '?itm=' + itm.data.name,
url: curNode.url + '?itm=' + itm.name,
todo: todo,
}
todos.push(nodeItem)
@@ -41,7 +41,7 @@ div#HEADFILES
if(itm?.data?.todo?.length > 0) {
const nodeItem = {
name: itm.data.name,
url: curNode.url + '?itm=' + itm.data.name,
url: curNode.url + '?itm=' + itm.name,
todos: itm.data.todo,
}
todos.push(nodeItem)
@@ -54,7 +54,7 @@ div#HEADFILES
readNode(doc)
todos = todos.sort((x, y) => {
return (x.todo.priority - y.todo.priority)
return (y.todo.priority - x.todo.priority)
})
table
@@ -63,11 +63,18 @@ table
th Object
th Message
each itm in todos
tr
td=itm.todo.priority
td
a(href=itm.url)=itm.name
td=itm.todo.msg
if itm.todo.priority >= 10
tr.alert
td=itm.todo.priority
td
a.alert(href=itm.url)=itm.name
td=itm.todo.msg
else
tr
td=itm.todo.priority
td
a(href=itm.url)=itm.name
td=itm.todo.msg
div#FILES
div#FOOTFILES

View File

@@ -13,7 +13,7 @@ div#HEADFILES
if(itm?.data?.updates?.length > 0) {
const nodeItem = {
name: itm.data.name,
url: curNode.url + '?itm=' + itm.data.name,
url: curNode.url + '?itm=' + itm.name,
updates: itm.data.updates,
}
updates.push(nodeItem)

View File

@@ -0,0 +1,18 @@
div#HEADFILES
table
thead
th Name
th Notes
each itm in node.items
tr
td=itm.data.name
td=itm.data.notes
if itm.data.aliases
each alias in itm.data.aliases
tr
td=alias.name
td=alias.notes
div#FILES
div#FOOTFILES