From 29fce9a241c07e7e63d1ab3e5ecdd932254444cb Mon Sep 17 00:00:00 2001 From: Florian Sylvain Date: Wed, 15 May 2024 19:34:38 +0200 Subject: [PATCH] brand: GohCMS -> GoCMS, project-wide --- .env.example | 2 +- README.md | 4 ++-- .../gateways/mail/templates/mailValidation.html | 6 +++--- adapters/secondary/gateways/mailRepository.go | 6 +++--- adapters/secondary/gateways/pageRepository.go | 2 +- adapters/secondary/gateways/postRepository.go | 6 +++--- adapters/secondary/gateways/userRepository.go | 8 ++++---- .../gateways/web/templates/componentNavbar.html | 6 +++--- adapters/secondary/gateways/web/templates/home.html | 4 ++-- .../secondary/gateways/web/templates/login.html | 4 ++-- .../secondary/gateways/web/templates/postEdit.html | 2 +- .../secondary/gateways/web/templates/posts.html | 2 +- .../secondary/gateways/web/templates/register.html | 4 ++-- .../gateways/web/templates/registerPending.html | 6 +++--- .../gateways/web/templates/registerValidate.html | 4 ++-- api/auth.go | 4 ++-- api/dependecyInjection.go | 4 ++-- api/post.go | 2 +- ...gohcms-favicon-128.png => gocms-favicon-128.png} | Bin compose.yml | 2 +- domain/gateways/IPostRepository.go | 2 +- domain/gateways/IUserRepository.go | 2 +- go.mod | 2 +- main/main.go | 2 +- main/route/route.go | 2 +- main/server/server.go | 4 ++-- super_build.sh | 2 +- test/post_test.go | 2 +- test/utils.go | 6 +++--- useCases/CreatePostUseCase.go | 4 ++-- useCases/CreateUserUseCase.go | 4 ++-- useCases/DeleteUserUseCase.go | 2 +- useCases/GetPageUseCase.go | 2 +- useCases/GetPostUseCase.go | 4 ++-- useCases/GetUserUseCase.go | 4 ++-- useCases/ListPostsUseCase.go | 4 ++-- useCases/ListUsersUseCase.go | 4 ++-- useCases/SendMailUseCase.go | 2 +- useCases/UpdateUserUseCase.go | 4 ++-- 39 files changed, 68 insertions(+), 68 deletions(-) rename api/static/{gohcms-favicon-128.png => gocms-favicon-128.png} (100%) diff --git a/.env.example b/.env.example index da6123e..e1e6449 100644 --- a/.env.example +++ b/.env.example @@ -3,7 +3,7 @@ HOST=example.com PORT=8080 JWT_SECRET=abc123 CORS_ALLOWED_ORIGINS=* -DB_FILE=./gohcms.db +DB_FILE=./gocms.db DOCKER_DB_FOLDER=./data SMTP_EMAIL=a@b.c SMTP_PASSWORD=12341234 diff --git a/README.md b/README.md index 33cf019..cc4c7fc 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# GohCMS +# GoCMS ## 🚧 This project is under development ! @@ -46,7 +46,7 @@ of course required, but not necessarily via the `.env` file. | PORT | int | port the API will use | required | | JWT_SECRET | string | secret for the jwt auth | required | | CORS_ALLOWED_ORIGINS | string | allowed origins for CORS | required, semicolon separated list | -| DB_FILE | string | path to the sqlite db file | required, can be at the root but name still required (e.g. `./gohcms.db`) ; have to end up with `.db` | +| DB_FILE | string | path to the sqlite db file | required, can be at the root but name still required (e.g. `./gocms.db`) ; have to end up with `.db` | | DOCKER_DB_FOLDER | string | path to the sqlite db file's folder | required with docker, this will basically be the host machine folder (e.g. `./data`) that contains the sqlite db file | | SMTP_EMAIL | string | sender email | required | | SMTP_PASSWORD | string | smtp account password | required | diff --git a/adapters/secondary/gateways/mail/templates/mailValidation.html b/adapters/secondary/gateways/mail/templates/mailValidation.html index f79ecff..44de27c 100644 --- a/adapters/secondary/gateways/mail/templates/mailValidation.html +++ b/adapters/secondary/gateways/mail/templates/mailValidation.html @@ -2,11 +2,11 @@

- G - GohCMS + G + GoCMS

-

You or someone tried to create a GohCMS admin account with this e-mail address. If you are not responsible for +

You or someone tried to create a GoCMS admin account with this e-mail address. If you are not responsible for this, please do not validate the account creation.

If you want to validate the account creation, please click HERE.

diff --git a/adapters/secondary/gateways/mailRepository.go b/adapters/secondary/gateways/mailRepository.go index 62da9ce..587c666 100644 --- a/adapters/secondary/gateways/mailRepository.go +++ b/adapters/secondary/gateways/mailRepository.go @@ -1,7 +1,7 @@ package gateways import ( - "GohCMS2/domain/gateways" + "GoCMS/domain/gateways" "bytes" "embed" "gopkg.in/gomail.v2" @@ -39,12 +39,12 @@ func (m MailRepository) Send(receiverAddress string, templateName string, data i msg := gomail.NewMessage() msg.SetHeaders(map[string][]string{ - "From": {"GohCMS <" + from + ">"}, + "From": {"GoCMS <" + from + ">"}, "To": {receiverAddress}, "MIME-version": {"1.0"}, "Content-Type": {"text/html"}, "charset": {"UTF-8"}, - "Subject": {"GohCMS | Action required"}, + "Subject": {"GoCMS | Action required"}, }) msg.SetBody("text/html", body.String()) diff --git a/adapters/secondary/gateways/pageRepository.go b/adapters/secondary/gateways/pageRepository.go index 34904c3..aadf740 100644 --- a/adapters/secondary/gateways/pageRepository.go +++ b/adapters/secondary/gateways/pageRepository.go @@ -1,7 +1,7 @@ package gateways import ( - "GohCMS2/domain/gateways" + "GoCMS/domain/gateways" "bytes" "embed" "html/template" diff --git a/adapters/secondary/gateways/postRepository.go b/adapters/secondary/gateways/postRepository.go index f1ea051..533dbbb 100644 --- a/adapters/secondary/gateways/postRepository.go +++ b/adapters/secondary/gateways/postRepository.go @@ -1,9 +1,9 @@ package gateways import ( - entity "GohCMS2/adapters/secondary/gateways/models" - "GohCMS2/domain/gateways" - domain "GohCMS2/domain/post" + entity "GoCMS/adapters/secondary/gateways/models" + "GoCMS/domain/gateways" + domain "GoCMS/domain/post" "gorm.io/gorm" ) diff --git a/adapters/secondary/gateways/userRepository.go b/adapters/secondary/gateways/userRepository.go index 44134ea..ebb6d2c 100644 --- a/adapters/secondary/gateways/userRepository.go +++ b/adapters/secondary/gateways/userRepository.go @@ -1,10 +1,10 @@ package gateways import ( - entity "GohCMS2/adapters/secondary/gateways/models" - "GohCMS2/domain/gateways" - "GohCMS2/domain/user" - domain "GohCMS2/domain/user" + entity "GoCMS/adapters/secondary/gateways/models" + "GoCMS/domain/gateways" + "GoCMS/domain/user" + domain "GoCMS/domain/user" "golang.org/x/crypto/bcrypt" "gorm.io/gorm" ) diff --git a/adapters/secondary/gateways/web/templates/componentNavbar.html b/adapters/secondary/gateways/web/templates/componentNavbar.html index fae8302..41bcde2 100644 --- a/adapters/secondary/gateways/web/templates/componentNavbar.html +++ b/adapters/secondary/gateways/web/templates/componentNavbar.html @@ -1,9 +1,9 @@