From 12e61cc0abbbf23509f9258ac2ee79e54c615c4c Mon Sep 17 00:00:00 2001 From: axzilla Date: Wed, 11 Dec 2024 11:47:45 +0700 Subject: [PATCH 1/2] refactor: update module name and adjust import paths to reflect new structure --- CONTRIBUTING.md | 18 +++++------ README.md | 20 ++++++------ cmd/server/main.go | 8 ++--- go.mod | 2 +- internals/middleware/preview.go | 2 +- internals/ui/layouts/base.templ | 8 ++--- internals/ui/layouts/docs.templ | 2 +- internals/ui/modules/example_wrapper.templ | 4 +-- internals/ui/modules/footer.templ | 2 +- internals/ui/modules/navbar.templ | 12 +++---- internals/ui/modules/preview_indicator.templ | 4 +-- internals/ui/modules/sidebar.templ | 2 +- internals/ui/modules/sidebar_right.templ | 2 +- internals/ui/modules/themeswitcher.templ | 4 +-- internals/ui/pages/accordion.templ | 6 ++-- internals/ui/pages/alert.templ | 6 ++-- internals/ui/pages/avatar.templ | 6 ++-- internals/ui/pages/badge.templ | 6 ++-- internals/ui/pages/button.templ | 6 ++-- internals/ui/pages/card.templ | 6 ++-- internals/ui/pages/checkbox.templ | 6 ++-- internals/ui/pages/datepicker.templ | 6 ++-- internals/ui/pages/dropdown_menu.templ | 6 ++-- internals/ui/pages/form.templ | 8 ++--- internals/ui/pages/how_to_use.templ | 32 +++++++++---------- internals/ui/pages/icon.templ | 6 ++-- internals/ui/pages/input.templ | 6 ++-- internals/ui/pages/introduction.templ | 14 ++++---- internals/ui/pages/label.templ | 8 ++--- internals/ui/pages/landing.templ | 10 +++--- internals/ui/pages/modal.templ | 6 ++-- internals/ui/pages/radio.templ | 6 ++-- internals/ui/pages/select.templ | 6 ++-- internals/ui/pages/sheet.templ | 6 ++-- internals/ui/pages/slider.templ | 6 ++-- internals/ui/pages/tabs.templ | 6 ++-- internals/ui/pages/textarea.templ | 6 ++-- internals/ui/pages/themes.templ | 6 ++-- internals/ui/pages/toggle.templ | 6 ++-- internals/ui/showcase/accordion.templ | 2 +- internals/ui/showcase/alert_default.templ | 4 +-- internals/ui/showcase/alert_destructive.templ | 4 +-- internals/ui/showcase/avatar_with_image.templ | 2 +- .../ui/showcase/avatar_with_placeholder.templ | 2 +- internals/ui/showcase/avatar_with_sizes.templ | 2 +- internals/ui/showcase/badge_icons.templ | 4 +-- internals/ui/showcase/badge_variants.templ | 2 +- internals/ui/showcase/button_disabled.templ | 2 +- internals/ui/showcase/button_icons.templ | 4 +-- internals/ui/showcase/button_sizes.templ | 4 +-- internals/ui/showcase/button_variants.templ | 2 +- internals/ui/showcase/card_default.templ | 2 +- .../ui/showcase/card_with_image_bottom.templ | 2 +- .../ui/showcase/card_with_image_left.templ | 2 +- .../ui/showcase/card_with_image_right.templ | 2 +- .../ui/showcase/card_with_image_top.templ | 2 +- internals/ui/showcase/checkbox_checked.templ | 2 +- .../ui/showcase/checkbox_custom_icon.templ | 4 +-- internals/ui/showcase/checkbox_default.templ | 2 +- internals/ui/showcase/checkbox_disabled.templ | 2 +- internals/ui/showcase/checkbox_form.templ | 2 +- .../ui/showcase/checkbox_with_label.templ | 2 +- .../datepicker_custom_placeholder.templ | 2 +- .../ui/showcase/datepicker_default.templ | 2 +- .../ui/showcase/datepicker_disabled.templ | 2 +- internals/ui/showcase/datepicker_form.templ | 2 +- .../ui/showcase/datepicker_formats.templ | 2 +- .../showcase/datepicker_selected_date.templ | 2 +- .../ui/showcase/datepicker_with_label.templ | 2 +- .../ui/showcase/dropdown_menu_advanced.templ | 6 ++-- .../ui/showcase/dropdown_menu_default.templ | 2 +- .../showcase/dropdown_menu_with_icons.templ | 4 +-- internals/ui/showcase/icon_colored.templ | 2 +- .../ui/showcase/icon_custom_classes.templ | 2 +- internals/ui/showcase/icon_default.templ | 2 +- internals/ui/showcase/icon_filled.templ | 2 +- internals/ui/showcase/icon_sizes.templ | 2 +- internals/ui/showcase/input_default.templ | 2 +- internals/ui/showcase/input_disabled.templ | 2 +- internals/ui/showcase/input_file.templ | 2 +- internals/ui/showcase/input_form.templ | 2 +- internals/ui/showcase/input_with_label.templ | 2 +- internals/ui/showcase/modal.templ | 2 +- internals/ui/showcase/radio_checked.templ | 2 +- internals/ui/showcase/radio_default.templ | 2 +- internals/ui/showcase/radio_disabled.templ | 2 +- internals/ui/showcase/radio_form.templ | 2 +- internals/ui/showcase/radio_with_label.templ | 2 +- internals/ui/showcase/select_default.templ | 2 +- internals/ui/showcase/select_disabled.templ | 2 +- internals/ui/showcase/select_form.templ | 2 +- .../ui/showcase/select_selected_value.templ | 2 +- internals/ui/showcase/select_with_label.templ | 2 +- .../ui/showcase/select_with_placeholder.templ | 2 +- internals/ui/showcase/sheet.templ | 2 +- internals/ui/showcase/slider_default.templ | 2 +- internals/ui/showcase/slider_disabled.templ | 2 +- internals/ui/showcase/slider_with_label.templ | 2 +- .../slider_with_label_and_value.templ | 2 +- internals/ui/showcase/slider_with_steps.templ | 2 +- internals/ui/showcase/slider_with_value.templ | 2 +- internals/ui/showcase/tabs.templ | 2 +- .../ui/showcase/textarea_auto_resize.templ | 2 +- internals/ui/showcase/textarea_default.templ | 2 +- internals/ui/showcase/textarea_disabled.templ | 2 +- internals/ui/showcase/textarea_form.templ | 2 +- .../ui/showcase/textarea_with_label.templ | 2 +- .../ui/showcase/textarea_with_rows.templ | 2 +- .../ui/showcase/textarea_with_value.templ | 2 +- internals/ui/showcase/toggle_checked.templ | 2 +- internals/ui/showcase/toggle_default.templ | 2 +- internals/ui/showcase/toggle_disabled.templ | 2 +- internals/ui/showcase/toggle_form.templ | 2 +- internals/ui/showcase/toggle_with_label.templ | 2 +- pkg/components/accordion.templ | 4 +-- pkg/components/accordion_templ.go | 4 +-- pkg/components/alert.templ | 2 +- pkg/components/alert_templ.go | 2 +- pkg/components/avatar.templ | 2 +- pkg/components/avatar_templ.go | 2 +- pkg/components/badge.templ | 2 +- pkg/components/badge_templ.go | 2 +- pkg/components/button.templ | 2 +- pkg/components/button_templ.go | 2 +- pkg/components/card.templ | 2 +- pkg/components/card_templ.go | 2 +- pkg/components/checkbox.templ | 4 +-- pkg/components/checkbox_templ.go | 4 +-- pkg/components/datepicker.templ | 4 +-- pkg/components/datepicker_templ.go | 4 +-- pkg/components/dropdown_menu.templ | 4 +-- pkg/components/dropdown_menu_templ.go | 4 +-- pkg/components/form.templ | 2 +- pkg/components/form_templ.go | 2 +- pkg/components/input.templ | 2 +- pkg/components/input_templ.go | 2 +- pkg/components/modal.templ | 2 +- pkg/components/modal_templ.go | 2 +- pkg/components/radio.templ | 2 +- pkg/components/radio_templ.go | 2 +- pkg/components/select.templ | 4 +-- pkg/components/select_templ.go | 4 +-- pkg/components/slider.templ | 2 +- pkg/components/slider_templ.go | 2 +- pkg/components/textarea.templ | 2 +- pkg/components/textarea_templ.go | 2 +- pkg/components/toggle.templ | 2 +- pkg/components/toggle_templ.go | 2 +- 148 files changed, 269 insertions(+), 269 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index bbd69a7..244a7b9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,17 +1,17 @@ -# Contributing to Goilerplate +# Contributing to TemplUI -First off, thank you for considering contributing to Goilerplate! We're excited to have you join our community. +First off, thank you for considering contributing to TemplUI! We're excited to have you join our community. ## Our Vision and Your Contributions -Goilerplate is an open-source project that aims to provide value to the Go community. We want to be transparent about our long-term vision: +TemplUI is an open-source project that aims to provide value to the Go community. We want to be transparent about our long-term vision: -1. We may explore opportunities to monetize aspects of Goilerplate or offer premium services related to it in the future. +1. We may explore opportunities to monetize aspects of TemplUI or offer premium services related to it in the future. 2. All contributions to this repository are subject to the MIT License, which allows for commercial use. -3. By contributing to Goilerplate, you agree that your contributions may be used in both open-source and potential future commercial aspects of the project. +3. By contributing to TemplUI, you agree that your contributions may be used in both open-source and potential future commercial aspects of the project. 4. We value every contribution and will always strive to maintain a strong, open-source core that benefits the entire community. -We believe this approach allows us to sustainably develop and maintain Goilerplate while keeping it open and accessible to all. If you have any questions or concerns about this, please reach out to us before contributing. +We believe this approach allows us to sustainably develop and maintain TemplUI while keeping it open and accessible to all. If you have any questions or concerns about this, please reach out to us before contributing. ## How Can I Contribute? @@ -25,7 +25,7 @@ We believe this approach allows us to sustainably develop and maintain Goilerpla - Use a clear and descriptive title for the issue to identify the suggestion. - Provide a step-by-step description of the suggested enhancement in as many details as possible. -- Explain why this enhancement would be useful to most Goilerplate users. +- Explain why this enhancement would be useful to most TemplUI users. ### Pull Requests @@ -60,6 +60,6 @@ This section lists the labels we use to help us track and manage issues and pull ## Recognition -We're committed to giving proper credit and recognition to all contributors. Your contributions, whether they're improvements to documentation, bug fixes, or new features, are invaluable to the growth and success of Goilerplate. +We're committed to giving proper credit and recognition to all contributors. Your contributions, whether they're improvements to documentation, bug fixes, or new features, are invaluable to the growth and success of TemplUI. -Thank you for contributing to Goilerplate and helping make it a great tool for the Go community! +Thank you for contributing to TemplUI and helping make it a great tool for the Go community! diff --git a/README.md b/README.md index 7d95913..e39e68f 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ -# Goilerplate +# TemplUI Modern UI Components for Go & Templ -Goilerplate Logo +TemplUI Logo ## About -Goilerplate is a growing library of modern UI components designed specifically for Go and Templ. It leverages Alpine.js for enhanced interactivity and Tailwind CSS for effortless styling. Whether you're building a small website or a large web application, Goilerplate provides the tools you need to create sleek, responsive interfaces with ease. +TemplUI is a growing library of modern UI components designed specifically for Go and Templ. It leverages Alpine.js for enhanced interactivity and Tailwind CSS for effortless styling. Whether you're building a small website or a large web application, TemplUI provides the tools you need to create sleek, responsive interfaces with ease. ## Features @@ -20,23 +20,23 @@ Goilerplate is a growing library of modern UI components designed specifically f ## Quick Start -Visit our [documentation](https://goilerplate.com/docs/how-to-use) for detailed installation and usage instructions. +Visit our [documentation](https://templui.io/docs/how-to-use) for detailed installation and usage instructions. -For a ready-to-go setup, check out our [Quickstart Template](https://github.com/axzilla/goilerplate-quickstart). +For a ready-to-go setup, check out our [Quickstart Template](https://github.com/axzilla/templui-quickstart). ## Components -Explore our growing list of components in the [components documentation](https://goilerplate.com/docs/components). +Explore our growing list of components in the [components documentation](https://templui.io/docs/components). ## Inspiration -Goilerplate draws inspiration from several popular UI libraries and frameworks: +TemplUI draws inspiration from several popular UI libraries and frameworks: - [shadcn/ui](https://ui.shadcn.com/) - [Pines UI](https://devdojo.com/pines) - [daisyUI](https://daisyui.com/) -We're exploring whether to make Goilerplate a strict port of shadcn/ui or to create a unique blend of various inspirations. The project is still evolving, and community feedback will play a crucial role in shaping its direction. +We're exploring whether to make TemplUI a strict port of shadcn/ui or to create a unique blend of various inspirations. The project is still evolving, and community feedback will play a crucial role in shaping its direction. ## Current Status @@ -51,11 +51,11 @@ We welcome contributions from the community! Whether it's adding new components, ## License -Goilerplate is open-source software licensed under the [MIT license](LICENSE). +TemplUI is open-source software licensed under the [MIT license](LICENSE). ## Support -For support, questions, or discussions, please [open an issue](https://github.com/axzilla/goilerplate/issues) on our GitHub repository or [visit our community (GitHub Discussions)](https://github.com/axzilla/goilerplate/discussions). +For support, questions, or discussions, please [open an issue](https://github.com/axzilla/templui/issues) on our GitHub repository or [visit our community (GitHub Discussions)](https://github.com/axzilla/templui/discussions). --- diff --git a/cmd/server/main.go b/cmd/server/main.go index f1431da..457bc99 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -5,10 +5,10 @@ import ( "net/http" "github.com/a-h/templ" - "github.com/axzilla/goilerplate/assets" - "github.com/axzilla/goilerplate/internals/config" - "github.com/axzilla/goilerplate/internals/middleware" - "github.com/axzilla/goilerplate/internals/ui/pages" + "github.com/axzilla/templui/assets" + "github.com/axzilla/templui/internals/config" + "github.com/axzilla/templui/internals/middleware" + "github.com/axzilla/templui/internals/ui/pages" ) func main() { diff --git a/go.mod b/go.mod index 2f62589..445a7a4 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/axzilla/goilerplate +module github.com/axzilla/templui go 1.23.3 diff --git a/internals/middleware/preview.go b/internals/middleware/preview.go index 36dd815..346dc36 100644 --- a/internals/middleware/preview.go +++ b/internals/middleware/preview.go @@ -5,7 +5,7 @@ import ( "net/http" "strings" - "github.com/axzilla/goilerplate/internals/config" + "github.com/axzilla/templui/internals/config" ) func WithPreviewCheck(next http.Handler) http.Handler { diff --git a/internals/ui/layouts/base.templ b/internals/ui/layouts/base.templ index a346013..5dc6bc6 100644 --- a/internals/ui/layouts/base.templ +++ b/internals/ui/layouts/base.templ @@ -1,15 +1,15 @@ package layouts import ( - "github.com/axzilla/goilerplate/internals/config" - "github.com/axzilla/goilerplate/internals/ui/modules" + "github.com/axzilla/templui/internals/config" + "github.com/axzilla/templui/internals/ui/modules" ) templ BaseLayout() { - Goilerplate - Modern UI Components for Go & Templ + TemplUI - Modern UI Components for Go & Templ