diff --git a/README.md b/README.md index a1ec4dc..cf8af69 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -Config example (default location $HOME/.config/datagraph.yaml): +Config example: ```yaml network: diff --git a/main.go b/main.go index 197d062..3b317cf 100644 --- a/main.go +++ b/main.go @@ -12,7 +12,7 @@ import ( "path" ) -const VERSION = "v3" +const VERSION = "v1" var ( flagConfigFile string diff --git a/node.go b/node.go index 39ac133..2bf6302 100644 --- a/node.go +++ b/node.go @@ -149,7 +149,7 @@ func GetNodeTree(startNodeID, maxDepth int, withData bool) (topNode *Node, err e n.id, ns.depth+1 AS depth FROM node n - INNER JOIN nodes ns ON ns.depth < $2 AND n.parent_id = ns.id AND n.id != ns.id + INNER JOIN nodes ns ON ns.depth < $2 AND n.parent_id = ns.id ) SEARCH DEPTH FIRST BY id SET ordercol diff --git a/static/css/main.css b/static/css/main.css index 04e9df3..a3e4c8b 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -53,10 +53,9 @@ button { } #menu { grid-area: menu; - grid-template-columns: repeat(5, min-content) 1fr; + grid-template-columns: repeat(100, min-content); grid-gap: 24px; align-items: center; - padding-right: 24px !important; } #menu.page { display: grid; @@ -71,11 +70,6 @@ button { #menu .item.selected { font-weight: bold; } -#menu .version { - text-align: right; - align-self: start; - color: #888; -} #logo img { height: 64px; margin-right: 32px; @@ -225,24 +219,6 @@ dialog#create-type > div { dialog::backdrop { background-color: rgba(0, 0, 0, 0.75); } -dialog .dialog-close { - position: absolute; - top: 8px; - right: 8px; - width: 32px !important; - height: 32px !important; - min-width: unset !important; -} -dialog .dialog-close::after { - display: block; - content: ""; - width: 100%; - height: 100%; - background-image: url("/images/v0/node_modules/@mdi/svg/svg/close-box-outline.svg"); - background-size: 32px; - background-repeat: no-repeat; - background-position: 0px 0px; -} select:focus { outline: 2px solid #888; outline-offset: -2px; @@ -550,13 +526,6 @@ dialog#connection-data div.button { grid-gap: 8px; padding: 32px; } -#script-hook-dialog img.trash { - position: absolute; - right: 44px; - top: 8px; - height: 32px; - cursor: pointer; -} #script-hook-dialog .top { display: grid; grid-template-columns: 1fr min-content; @@ -567,6 +536,10 @@ dialog#connection-data div.button { font-weight: bold; color: var(--section-color); } +#script-hook-dialog .top img { + height: 32px; + cursor: pointer; +} #script-hook-dialog .label { font-weight: bold; margin-top: 16px; @@ -639,14 +612,11 @@ dialog#connection-data div.button { font-weight: bold; color: var(--section-color); } -#script-execution-value-dialog .copy { +#script-execution-value-dialog .top .copy { height: 32px; cursor: pointer; - position: absolute; - right: 44px; - top: 8px; } -#script-execution-value-dialog .copy.clicked { +#script-execution-value-dialog .top .copy.clicked { filter: invert(50%); } #script-execution-value-dialog .label { diff --git a/static/js/app.mjs b/static/js/app.mjs index b6decb4..dba1c17 100644 --- a/static/js/app.mjs +++ b/static/js/app.mjs @@ -500,8 +500,7 @@ class NodeCreateDialog { this.dialog.id = 'create-type' this.dialog.addEventListener('close', () => this.dialog.remove()) this.dialog.innerHTML = ` -
-