From 9820ecac644dfe34528f1ab72ddbd452bde56d04 Mon Sep 17 00:00:00 2001 From: Azpect3120 <104033825+Azpect3120@users.noreply.github.com> Date: Fri, 9 Aug 2024 13:50:07 -0700 Subject: [PATCH] FEAT: Some work on the tree Found some bugs with the connection creation modal. Need to work on the parsing and such with regex. --- internal/database/tree.go | 2 - internal/templates/tree.go | 18 ++++---- tailwind.config.js | 3 +- web/static/scripts/tree.js | 25 ++++++++++++ web/static/styles/main.css | 84 +++++++++++++++++++++++++++++++++++--- web/templates/index.html | 9 ++-- 6 files changed, 121 insertions(+), 20 deletions(-) create mode 100644 web/static/scripts/tree.js diff --git a/internal/database/tree.go b/internal/database/tree.go index 2f8a1e3..d0de7ae 100644 --- a/internal/database/tree.go +++ b/internal/database/tree.go @@ -34,8 +34,6 @@ func TableTree(c *gin.Context) string { return "" } - fmt.Printf("%+v\n", tree) - return templates.TableTree(tree) } diff --git a/internal/templates/tree.go b/internal/templates/tree.go index 865f145..188a3d4 100644 --- a/internal/templates/tree.go +++ b/internal/templates/tree.go @@ -12,18 +12,19 @@ const TREE_BODY_TEMPLATE string = `
  • %s
  • ` // Table definition const TABLE_TEMPLATE string = ` - ` // Fields definition -const FIELDS_LIST_OPEN string = `