mirror of
https://github.com/MatMoul/dokytree.git
synced 2024-12-23 16:16:12 +00:00
46 lines
826 B
Plaintext
46 lines
826 B
Plaintext
div#HEADFILES
|
|
-
|
|
const updates = []
|
|
const readNode = (curNode) => {
|
|
if(curNode?.data?.updates?.length > 0) {
|
|
const nodeItem = {
|
|
name: curNode.data.name,
|
|
updates: curNode.data.updates,
|
|
}
|
|
updates.push(nodeItem)
|
|
}
|
|
curNode.items.forEach((itm) => {
|
|
if(itm?.data?.updates?.length > 0) {
|
|
const nodeItem = {
|
|
name: itm.data.name,
|
|
url: curNode.url + '?itm=' + itm.name,
|
|
updates: itm.data.updates,
|
|
}
|
|
updates.push(nodeItem)
|
|
}
|
|
})
|
|
curNode.nodes.forEach((childNode) => {
|
|
readNode(childNode)
|
|
})
|
|
}
|
|
readNode(doc)
|
|
|
|
table
|
|
thead
|
|
th Object
|
|
th Type
|
|
th Method
|
|
th Frequency
|
|
th Time
|
|
th Duration
|
|
each itm in updates
|
|
each update in itm.updates
|
|
tr
|
|
td
|
|
a(href=itm.url)=itm.name
|
|
each key in Object.keys(update)
|
|
td=update[key]
|
|
|
|
div#FILES
|
|
div#FOOTFILES
|