From 026ccc72d46f9018a3946485ebd21e5e1d24b27e Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Mon, 15 Jul 2024 15:01:34 -0700 Subject: [PATCH 1/6] adding initial submodule --- .gitmodules | 3 +++ templ-bulma | 1 + 2 files changed, 4 insertions(+) create mode 100644 .gitmodules create mode 160000 templ-bulma diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..8bb5009 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "templ-bulma"] + path = templ-bulma + url = https://github.com/jtom38/templ-bulma diff --git a/templ-bulma b/templ-bulma new file mode 160000 index 0000000..3bc7f42 --- /dev/null +++ b/templ-bulma @@ -0,0 +1 @@ +Subproject commit 3bc7f426c6e2925cb0b73134c8b06bf0ada078b9 -- 2.45.2 From 523f445c9085d53787ffbf91594133597b2b20c5 Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Mon, 15 Jul 2024 15:08:18 -0700 Subject: [PATCH 2/6] Updated to the newest version --- templ-bulma | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templ-bulma b/templ-bulma index 3bc7f42..bca7b9b 160000 --- a/templ-bulma +++ b/templ-bulma @@ -1 +1 @@ -Subproject commit 3bc7f426c6e2925cb0b73134c8b06bf0ada078b9 +Subproject commit bca7b9b72001dd3fa809fb5a65d5bb00d64bfbfe -- 2.45.2 From 32d1869e9b1953a5c0ac57220f1b1f12cb3f5d80 Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Mon, 15 Jul 2024 15:34:49 -0700 Subject: [PATCH 3/6] removed components package in favor of the new git repo version --- components/bulma/block.templ | 8 ---- components/bulma/button.templ | 30 -------------- components/bulma/card.templ | 52 ------------------------- components/bulma/example/example.templ | 19 --------- components/bulma/form/control.templ | 8 ---- components/bulma/form/field.templ | 8 ---- components/bulma/form/input.templ | 19 --------- components/bulma/form/label.templ | 6 --- components/bulma/form/new.templ | 13 ------- components/bulma/form/select.templ | 33 ---------------- components/bulma/form/submit.templ | 5 --- components/bulma/form/textarea.templ | 5 --- components/bulma/form/util.go | 8 ---- components/bulma/html/br.templ | 5 --- components/bulma/html/href.templ | 9 ----- components/bulma/html/html.templ | 26 ------------- components/bulma/html/img.templ | 9 ----- components/bulma/image.templ | 10 ----- components/bulma/layout/container.templ | 7 ---- components/bulma/layout/hero.templ | 37 ------------------ components/bulma/layout/section.templ | 9 ----- components/bulma/notification.templ | 7 ---- components/bulma/script.templ | 5 --- components/bulma/table.templ | 37 ------------------ components/bulma/tags.templ | 13 ------- components/bulma/title.templ | 49 ----------------------- components/bulma/util.go | 20 ---------- 27 files changed, 457 deletions(-) delete mode 100644 components/bulma/block.templ delete mode 100644 components/bulma/button.templ delete mode 100644 components/bulma/card.templ delete mode 100644 components/bulma/example/example.templ delete mode 100644 components/bulma/form/control.templ delete mode 100644 components/bulma/form/field.templ delete mode 100644 components/bulma/form/input.templ delete mode 100644 components/bulma/form/label.templ delete mode 100644 components/bulma/form/new.templ delete mode 100644 components/bulma/form/select.templ delete mode 100644 components/bulma/form/submit.templ delete mode 100644 components/bulma/form/textarea.templ delete mode 100644 components/bulma/form/util.go delete mode 100644 components/bulma/html/br.templ delete mode 100644 components/bulma/html/href.templ delete mode 100644 components/bulma/html/html.templ delete mode 100644 components/bulma/html/img.templ delete mode 100644 components/bulma/image.templ delete mode 100644 components/bulma/layout/container.templ delete mode 100644 components/bulma/layout/hero.templ delete mode 100644 components/bulma/layout/section.templ delete mode 100644 components/bulma/notification.templ delete mode 100644 components/bulma/script.templ delete mode 100644 components/bulma/table.templ delete mode 100644 components/bulma/tags.templ delete mode 100644 components/bulma/title.templ delete mode 100644 components/bulma/util.go diff --git a/components/bulma/block.templ b/components/bulma/block.templ deleted file mode 100644 index 57d129b..0000000 --- a/components/bulma/block.templ +++ /dev/null @@ -1,8 +0,0 @@ -package bulma - -// Simple spacer that accepts children -templ Block() { -
- { children... } -
-} \ No newline at end of file diff --git a/components/bulma/button.templ b/components/bulma/button.templ deleted file mode 100644 index 5385978..0000000 --- a/components/bulma/button.templ +++ /dev/null @@ -1,30 +0,0 @@ -package bulma - -// This creates a button that accepts children under it. -templ Button() { - -} - -// Used to create a button and lets you define the color. -// Accepts children. -templ ButtonColor(color string) { - -} - -templ ButtonNewTab(url, text string) { - -} - -templ ALink(url, title string) { - { title } -} - -templ ANewTab(url, text string) { - { text } -} diff --git a/components/bulma/card.templ b/components/bulma/card.templ deleted file mode 100644 index 402b1dd..0000000 --- a/components/bulma/card.templ +++ /dev/null @@ -1,52 +0,0 @@ -package bulma - -templ ArticleCardWithThumbnail(title, thumbnailUrl, url, datePosted, sourceName string) { -
-
-
- -
-
-
-
-
- { title } -
-
-
- { datePosted } -
- { sourceName } -
-
-
-} - -// Creates a card container. -// Accepts children -templ Card() { -
- { children... } -
-} - -// Creates a image card container. -// Accepts children -templ CardImage() { -
- { children... } -
-} - -// -templ CardImageSize(size string) { -
- { children... } -
-} - -templ CardContentContainer() { -
- { children... } -
-} diff --git a/components/bulma/example/example.templ b/components/bulma/example/example.templ deleted file mode 100644 index 8940fe2..0000000 --- a/components/bulma/example/example.templ +++ /dev/null @@ -1,19 +0,0 @@ -package example - -import "git.jamestombleson.com/jtom38/newsbot-portal/components/bulma" -import "git.jamestombleson.com/jtom38/newsbot-portal/components/bulma/html" -import "git.jamestombleson.com/jtom38/newsbot-portal/components/bulma/layout" - -templ example() { - @html.Doctype() - @html.New("en"){ - @html.NewHeader(){ - @bulma.UseBulmaCdn() - } - @html.NewBody() { - @layout.Container(bulma.BreakpointDefault) { - { children... } - } - } - } -} \ No newline at end of file diff --git a/components/bulma/form/control.templ b/components/bulma/form/control.templ deleted file mode 100644 index d5183b2..0000000 --- a/components/bulma/form/control.templ +++ /dev/null @@ -1,8 +0,0 @@ -package form - -// Div container to add a input field to. -templ Control() { -
- { children... } -
-} \ No newline at end of file diff --git a/components/bulma/form/field.templ b/components/bulma/form/field.templ deleted file mode 100644 index ad7b0c3..0000000 --- a/components/bulma/form/field.templ +++ /dev/null @@ -1,8 +0,0 @@ -package form - -// This creates a field that you can add a Label, Control or Input object. -templ Field() { -
- { children... } -
-} \ No newline at end of file diff --git a/components/bulma/form/input.templ b/components/bulma/form/input.templ deleted file mode 100644 index 12a45bc..0000000 --- a/components/bulma/form/input.templ +++ /dev/null @@ -1,19 +0,0 @@ -package form - -templ TextInput(id, fieldType, placeholder string) { - -} - -templ TextInputColor(color, id, fieldType, placeholder string) { - if color == "" { - - } else { - - } -} - -templ Checkbox(text, id string) { - -} diff --git a/components/bulma/form/label.templ b/components/bulma/form/label.templ deleted file mode 100644 index 66deea3..0000000 --- a/components/bulma/form/label.templ +++ /dev/null @@ -1,6 +0,0 @@ -package form - -// This will create a small bit of text to add context to the form. -templ Label(text string) { - -} \ No newline at end of file diff --git a/components/bulma/form/new.templ b/components/bulma/form/new.templ deleted file mode 100644 index 8f5029e..0000000 --- a/components/bulma/form/new.templ +++ /dev/null @@ -1,13 +0,0 @@ -package form - -type NewParam struct { - HxPost string -} - -templ New(param NewParam) { - if param.HxPost != "" { -
- { children... } -
- } -} diff --git a/components/bulma/form/select.templ b/components/bulma/form/select.templ deleted file mode 100644 index 8adffdc..0000000 --- a/components/bulma/form/select.templ +++ /dev/null @@ -1,33 +0,0 @@ -package form - -templ SelectOne(color string, isRound bool) { - if isRound { -
- -
- } else { -
- -
- } -} - -templ SelectOneItem(name string) { - -} - -templ SelectMany(howManySelectable int, color string, isRound bool) { -
- -
-} - -templ SelectManyItem(name string) { - -} diff --git a/components/bulma/form/submit.templ b/components/bulma/form/submit.templ deleted file mode 100644 index e12ada7..0000000 --- a/components/bulma/form/submit.templ +++ /dev/null @@ -1,5 +0,0 @@ -package form - -templ Submit(text, color string) { - -} \ No newline at end of file diff --git a/components/bulma/form/textarea.templ b/components/bulma/form/textarea.templ deleted file mode 100644 index d922742..0000000 --- a/components/bulma/form/textarea.templ +++ /dev/null @@ -1,5 +0,0 @@ -package form - -templ TextArea(id, placeholder, color string) { -