From 83a1dec8aee16ba816df114c874df0eafeab9268 Mon Sep 17 00:00:00 2001 From: Florian Sylvain Date: Mon, 17 Nov 2025 19:46:53 +0100 Subject: [PATCH] refac: renamed 'GoCMS' -> 'RenewCMS' --- .env.example | 2 +- README.md | 4 ++-- .../secondary/gateways/articleRepository.go | 6 +++--- .../secondary/gateways/imageRepository.go | 6 +++--- .../mail/templates/mailValidation.html | 6 +++--- .../mail/templates/passwordReset.html | 6 +++--- adapters/secondary/gateways/mailRepository.go | 6 +++--- adapters/secondary/gateways/pageRepository.go | 2 +- adapters/secondary/gateways/userRepository.go | 8 ++++---- .../gateways/web/templates/articleCreate.html | 2 +- .../gateways/web/templates/articleEdit.html | 2 +- .../gateways/web/templates/articles.html | 2 +- .../web/templates/componentNavbar.html | 6 +++--- .../gateways/web/templates/home.html | 4 ++-- .../gateways/web/templates/integration.html | 2 +- .../gateways/web/templates/login.html | 4 ++-- .../web/templates/passwordResetRequest.html | 4 ++-- .../web/templates/passwordResetValidate.html | 4 ++-- .../gateways/web/templates/register.html | 4 ++-- .../web/templates/registerPending.html | 4 ++-- .../web/templates/registerValidate.html | 4 ++-- api/controllers/article/article.go | 8 ++++---- api/controllers/auth/auth.go | 6 +++--- api/controllers/image/image.go | 2 +- api/controllers/pages/articleCreate.go | 4 ++-- api/controllers/pages/articleDelete.go | 4 ++-- api/controllers/pages/articleEdit.go | 4 ++-- .../pages/articleUpdateIsOnline.go | 2 +- api/controllers/pages/articles.go | 2 +- api/controllers/pages/home.go | 2 +- api/controllers/pages/integration.go | 2 +- api/controllers/pages/login.go | 4 ++-- api/controllers/pages/page.go | 6 +++--- api/controllers/pages/passwordResetRequest.go | 2 +- .../pages/passwordResetValidate.go | 2 +- api/controllers/pages/register.go | 4 ++-- api/controllers/pages/registerPending.go | 4 ++-- api/controllers/pages/registerValidate.go | 4 ++-- api/dependecyInjection.go | 8 ++++---- api/static/favicon.ico | Bin 19518 -> 15406 bytes api/static/gocms-favicon-128.png | Bin 1825 -> 0 bytes api/static/renewcms-favicon-64.png | Bin 0 -> 472 bytes compose.yml | 2 +- domain/article/article.go | 4 ++-- domain/gateways/IArticleRepository.go | 2 +- domain/gateways/IImageRepository.go | 2 +- domain/gateways/IUserRepository.go | 2 +- go.mod | 2 +- main/main.go | 2 +- main/route/route.go | 6 +++--- main/server/server.go | 4 ++-- super_build.sh | 2 +- useCases/CreateArticle.go | 4 ++-- useCases/CreateImage.go | 4 ++-- useCases/CreateUser.go | 4 ++-- useCases/DeleteArticle.go | 2 +- useCases/DeleteImage.go | 2 +- useCases/DeleteUser.go | 2 +- useCases/GetArticle.go | 4 ++-- useCases/GetPage.go | 2 +- useCases/GetUser.go | 4 ++-- useCases/ListArticles.go | 4 ++-- useCases/ListUsers.go | 4 ++-- useCases/SendMail.go | 2 +- useCases/UpdateArticle.go | 4 ++-- useCases/UpdateUser.go | 4 ++-- 66 files changed, 116 insertions(+), 116 deletions(-) delete mode 100644 api/static/gocms-favicon-128.png create mode 100644 api/static/renewcms-favicon-64.png diff --git a/.env.example b/.env.example index e1e6449..09a7702 100644 --- a/.env.example +++ b/.env.example @@ -3,7 +3,7 @@ HOST=example.com PORT=8080 JWT_SECRET=abc123 CORS_ALLOWED_ORIGINS=* -DB_FILE=./gocms.db +DB_FILE=./renewcms.db DOCKER_DB_FOLDER=./data SMTP_EMAIL=a@b.c SMTP_PASSWORD=12341234 diff --git a/README.md b/README.md index f1f3a36..7f43be1 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# GoCMS +# RenewCMS ## 🚧 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. `./gocms.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. `./RenewCMS.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/articleRepository.go b/adapters/secondary/gateways/articleRepository.go index f219b1e..ff444dc 100644 --- a/adapters/secondary/gateways/articleRepository.go +++ b/adapters/secondary/gateways/articleRepository.go @@ -1,9 +1,9 @@ package gateways import ( - entity "GoCMS/adapters/secondary/gateways/models" - domain "GoCMS/domain/article" - "GoCMS/domain/gateways" + entity "RenewCMS/adapters/secondary/gateways/models" + domain "RenewCMS/domain/article" + "RenewCMS/domain/gateways" "gorm.io/gorm" ) diff --git a/adapters/secondary/gateways/imageRepository.go b/adapters/secondary/gateways/imageRepository.go index ee3f9b7..9ac7a98 100644 --- a/adapters/secondary/gateways/imageRepository.go +++ b/adapters/secondary/gateways/imageRepository.go @@ -1,9 +1,9 @@ package gateways import ( - entity "GoCMS/adapters/secondary/gateways/models" - "GoCMS/domain/gateways" - domain "GoCMS/domain/image" + entity "RenewCMS/adapters/secondary/gateways/models" + "RenewCMS/domain/gateways" + domain "RenewCMS/domain/image" "errors" "github.com/google/uuid" "gorm.io/gorm" diff --git a/adapters/secondary/gateways/mail/templates/mailValidation.html b/adapters/secondary/gateways/mail/templates/mailValidation.html index f12683f..27bb96a 100644 --- a/adapters/secondary/gateways/mail/templates/mailValidation.html +++ b/adapters/secondary/gateways/mail/templates/mailValidation.html @@ -2,11 +2,11 @@

- G - GoCMS + G + RenewCMS

-

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

You or someone tried to create a RenewCMS 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/mail/templates/passwordReset.html b/adapters/secondary/gateways/mail/templates/passwordReset.html index 8fe8f05..5a4555f 100644 --- a/adapters/secondary/gateways/mail/templates/passwordReset.html +++ b/adapters/secondary/gateways/mail/templates/passwordReset.html @@ -2,11 +2,11 @@

- G - GoCMS + G + RenewCMS

-

You or someone tried to create reset your GoCMS account with this e-mail address. If you are not responsible for +

You or someone tried to create reset your RenewCMS account with this e-mail address. If you are not responsible for this, please do not validate the password reset.

If you want to reset your password, please click HERE. diff --git a/adapters/secondary/gateways/mailRepository.go b/adapters/secondary/gateways/mailRepository.go index 0121fd7..9e1b600 100644 --- a/adapters/secondary/gateways/mailRepository.go +++ b/adapters/secondary/gateways/mailRepository.go @@ -1,7 +1,7 @@ package gateways import ( - "GoCMS/domain/gateways" + "RenewCMS/domain/gateways" "bytes" "embed" "html/template" @@ -44,12 +44,12 @@ func (m MailRepository) Send(receiverAddress string, templateName string, data a msg := gomail.NewMessage() msg.SetHeaders(map[string][]string{ - "From": {"GoCMS <" + from + ">"}, + "From": {"RenewCMS <" + from + ">"}, "To": {receiverAddress}, "MIME-version": {"1.0"}, "Content-Type": {"text/html"}, "charset": {"UTF-8"}, - "Subject": {"GoCMS | Action required"}, + "Subject": {"RenewCMS | Action required"}, }) msg.SetBody("text/html", body.String()) diff --git a/adapters/secondary/gateways/pageRepository.go b/adapters/secondary/gateways/pageRepository.go index 2ec4d04..12bba13 100644 --- a/adapters/secondary/gateways/pageRepository.go +++ b/adapters/secondary/gateways/pageRepository.go @@ -1,7 +1,7 @@ package gateways import ( - "GoCMS/domain/gateways" + "RenewCMS/domain/gateways" "bytes" "embed" "html/template" diff --git a/adapters/secondary/gateways/userRepository.go b/adapters/secondary/gateways/userRepository.go index b0e5561..52fd4c9 100644 --- a/adapters/secondary/gateways/userRepository.go +++ b/adapters/secondary/gateways/userRepository.go @@ -1,10 +1,10 @@ package gateways import ( - entity "GoCMS/adapters/secondary/gateways/models" - "GoCMS/domain/gateways" - "GoCMS/domain/user" - domain "GoCMS/domain/user" + entity "RenewCMS/adapters/secondary/gateways/models" + "RenewCMS/domain/gateways" + "RenewCMS/domain/user" + domain "RenewCMS/domain/user" "golang.org/x/crypto/bcrypt" "gorm.io/gorm" ) diff --git a/adapters/secondary/gateways/web/templates/articleCreate.html b/adapters/secondary/gateways/web/templates/articleCreate.html index 39ba457..bce85c0 100644 --- a/adapters/secondary/gateways/web/templates/articleCreate.html +++ b/adapters/secondary/gateways/web/templates/articleCreate.html @@ -1,7 +1,7 @@ - GoCMS | Create article + RenewCMS | Create article {{.Head}}