Update schemas and templates

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

View File

@ -38,6 +38,14 @@
]}
]
},
"maintainer": {
"oneOf": [
{"type": "string"},
{"enum": [
"''"
]}
]
},
"type": {
"type": "string",
"anyOf": [

View File

@ -38,6 +38,14 @@
]}
]
},
"maintainer": {
"oneOf": [
{"type": "string"},
{"enum": [
"''"
]}
]
},
"type": {
"type": "string",
"anyOf": [

View File

@ -38,6 +38,14 @@
]}
]
},
"maintainer": {
"oneOf": [
{"type": "string"},
{"enum": [
"''"
]}
]
},
"type": {
"type": "string",
"anyOf": [

View File

@ -38,6 +38,14 @@
]}
]
},
"maintainer": {
"oneOf": [
{"type": "string"},
{"enum": [
"''"
]}
]
},
"type": {
"type": "string",
"anyOf": [

View File

@ -38,6 +38,14 @@
]}
]
},
"maintainer": {
"oneOf": [
{"type": "string"},
{"enum": [
"''"
]}
]
},
"publisher": {
"oneOf": [
{"type": "string"},

View File

@ -38,6 +38,14 @@
]}
]
},
"maintainer": {
"oneOf": [
{"type": "string"},
{"enum": [
"''"
]}
]
},
"type": {
"type": "string",
"anyOf": [

View File

@ -1,5 +1,6 @@
todo
name
maintainer
computer_type
# computer_roles
model

View File

@ -1,5 +1,6 @@
todo
name
maintainer
netdev_type
netdev_roles
model

View File

@ -1,5 +1,6 @@
todo
name
maintainer
printer_type
model
location

View File

@ -1,5 +1,6 @@
todo
name
maintainer
server_type
server_roles
model

View File

@ -1,5 +1,6 @@
todo
name
maintainer
software
urls
files

View File

@ -1,5 +1,6 @@
todo
name
maintainer
voipdev_type
model
location

View File

@ -0,0 +1,13 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"maintainer": {
"oneOf": [
{"type": "string"},
{"enum": [
"''"
]}
]
}
}
}

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,6 +63,13 @@ table
th Object
th Message
each itm in todos
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

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