refac: renamed 'GoCMS' -> 'RenewCMS'

This commit is contained in:
Florian Sylvain
2025-11-17 19:46:53 +01:00
parent b470bfcc67
commit 83a1dec8ae
66 changed files with 116 additions and 116 deletions
@@ -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"
)
@@ -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"
@@ -2,11 +2,11 @@
<html lang="en">
<body>
<h1>
<img src="{{.Host}}/static/gocms-favicon-128.png" alt="G" style="width: 2.5rem"/>
GoCMS
<img src="{{.Host}}/static/renewcms-favicon-64.png" alt="G" style="width: 2.5rem"/>
RenewCMS
</h1>
<main>
<p>You or someone tried to create a GoCMS admin account with this e-mail address. If you are not responsible for
<p>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.</p>
<p><b>If you want to validate the account creation, please <a
href="{{.Host}}/register/validate?c={{.VerificationCode}}" target="_blank">click HERE</a>.</b>
@@ -2,11 +2,11 @@
<html lang="en">
<body>
<h1>
<img src="{{.Host}}/static/gocms-favicon-128.png" alt="G" style="width: 2.5rem"/>
GoCMS
<img src="{{.Host}}/static/renewcms-favicon-64.png" alt="G" style="width: 2.5rem"/>
RenewCMS
</h1>
<main>
<p>You or someone tried to create reset your GoCMS account with this e-mail address. If you are not responsible for
<p>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.</p>
<p><b>If you want to reset your password, please <a
href="{{.Host}}/register/reset/validate?c={{.VerificationCode}}&email={{.Email}}" target="_blank">click HERE</a>.</b>
@@ -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())
@@ -1,7 +1,7 @@
package gateways
import (
"GoCMS/domain/gateways"
"RenewCMS/domain/gateways"
"bytes"
"embed"
"html/template"
@@ -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"
)
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>GoCMS | Create article</title>
<title>RenewCMS | Create article</title>
{{.Head}}
<style>
form {
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>GoCMS | Article edition</title>
<title>RenewCMS | Article edition</title>
{{.Head}}
</head>
<body class="text-dark vh-100 d-flex flex-column">
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>GoCMS | Articles</title>
<title>RenewCMS | Articles</title>
{{.Head}}
<style>
@@ -1,9 +1,9 @@
<nav class="navbar navbar-expand-lg bg-body-tertiary">
<div class="container">
<div class="d-flex gap-2 justify-content-center align-items-center">
<img src="/static/gocms-favicon-128.png" alt="Logo" style="width: 2.5rem"/>
<a class="navbar-brand h1 my-auto" href="https://github.com/Floriansylvain/GoCMS" target="_blank">
GoCMS
<img src="/static/renewcms-favicon-64.png" alt="Logo" style="width: 2.5rem"/>
<a class="navbar-brand h1 my-auto" href="https://github.com/Floriansylvain/RenewCMS" target="_blank">
RenewCMS
</a>
</div>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
@@ -1,14 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>GoCMS | Home</title>
<title>RenewCMS | Home</title>
{{.Head}}
</head>
<body class="text-dark">
{{.Navbar}}
<div class="container mt-3 text-black-50">
<h1>Home</h1>
<p>Welcome on GoCMS !</p>
<p>Welcome on RenewCMS !</p>
<a href="/article">
<button class="btn btn-outline-primary">Articles &raquo;</button>
</a>
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>GoCMS | Home</title>
<title>RenewCMS | Home</title>
{{.Head}}
</head>
<body class="text-dark">
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>GoCMS | Login</title>
<title>RenewCMS | Login</title>
{{.Head}}
<style>
@@ -14,7 +14,7 @@
<div class="container">
<div class="d-flex flex-column m-auto form-container">
<div>
<h1>GoCMS</h1>
<h1>RenewCMS</h1>
<h2>Login</h2>
</div>
<form action="login" method="POST" class="mt-5" id="loginForm">
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>GoCMS | Password reset</title>
<title>RenewCMS | Password reset</title>
{{.Head}}
<style>
@@ -14,7 +14,7 @@
<div class="container">
<div class="d-flex flex-column m-auto form-container">
<div>
<h1>GoCMS</h1>
<h1>RenewCMS</h1>
<h2>Admin account password reset</h2>
</div>
<form action="request" method="POST" class="mt-5" id="registerForm">
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>GoCMS | Password reset</title>
<title>RenewCMS | Password reset</title>
{{.Head}}
<style>
@@ -14,7 +14,7 @@
<div class="container">
<div class="d-flex flex-column m-auto form-container">
<div>
<h1>GoCMS</h1>
<h1>RenewCMS</h1>
<h2>Admin account password reset</h2>
</div>
<form action="validate" method="POST" class="mt-5" id="registerForm">
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>GoCMS | Setup</title>
<title>RenewCMS | Setup</title>
{{.Head}}
<style>
@@ -14,7 +14,7 @@
<div class="container">
<div class="d-flex flex-column m-auto form-container">
<div>
<h1>GoCMS</h1>
<h1>RenewCMS</h1>
<h2>Admin account creation</h2>
</div>
<form action="register" method="POST" class="mt-5" id="registerForm">
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>GoCMS | Setup</title>
<title>RenewCMS | Setup</title>
{{.Head}}
<style>
@@ -14,7 +14,7 @@
<div class="container">
<div class="d-flex flex-column m-auto form-container">
<div>
<h1>GoCMS</h1>
<h1>RenewCMS</h1>
<h2>Verify your email</h2>
</div>
<p>An e-mail with the validation link was sent to the address you just registered.</p>
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>GoCMS | Setup</title>
<title>RenewCMS | Setup</title>
{{.Head}}
<style>
@@ -14,7 +14,7 @@
<div class="container">
<div class="d-flex flex-column gap-5 m-auto form-container">
<div>
<h1>GoCMS</h1>
<h1>RenewCMS</h1>
<h2>E-mail verification</h2>
</div>
{{ if .PageError.IsError }}