brand: GohCMS -> GoCMS, project-wide

This commit is contained in:
Florian Sylvain
2024-05-15 19:34:38 +02:00
parent 7097d71f45
commit 29fce9a241
39 changed files with 68 additions and 68 deletions
@@ -2,11 +2,11 @@
<html lang="en">
<body>
<h1>
<img src="{{.Host}}/static/gohcms-favicon-128.png" alt="G" style="width: 2.5rem"/>
GohCMS
<img src="{{.Host}}/static/gocms-favicon-128.png" alt="G" style="width: 2.5rem"/>
GoCMS
</h1>
<main>
<p>You or someone tried to create a GohCMS admin account with this e-mail address. If you are not responsible for
<p>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.</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>
</p>
@@ -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())
@@ -1,7 +1,7 @@
package gateways
import (
"GohCMS2/domain/gateways"
"GoCMS/domain/gateways"
"bytes"
"embed"
"html/template"
@@ -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"
)
@@ -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"
)
@@ -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/gohcms-favicon-128.png" alt="Logo" style="width: 2.5rem"/>
<a class="navbar-brand h1 my-auto" href="https://github.com/Floriansylvain/GohCMS" target="_blank">
GohCMS
<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
</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>GohCMS | Home</title>
<title>GoCMS | Home</title>
{{.Head}}
</head>
<body class="text-dark">
{{.Navbar}}
<div class="container mt-3 text-black-50">
<h1>Accueil</h1>
<p>Welcome on GohCMS !</p>
<p>Welcome on GoCMS !</p>
<a href="/post">
<button class="btn btn-outline-primary">Posts &raquo;</button>
</a>
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>GohCMS | Login</title>
<title>GoCMS | Login</title>
{{.Head}}
<style>
@@ -14,7 +14,7 @@
<div class="container">
<div class="d-flex flex-column m-auto form-container">
<div>
<h1>GohCMS</h1>
<h1>GoCMS</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>GohCMS | Post edition</title>
<title>GoCMS | Post 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>GohCMS | Posts</title>
<title>GoCMS | Posts</title>
{{.Head}}
</head>
<body class="text-dark">
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>GohCMS | Setup</title>
<title>GoCMS | Setup</title>
{{.Head}}
<style>
@@ -14,7 +14,7 @@
<div class="container">
<div class="d-flex flex-column m-auto form-container">
<div>
<h1>GohCMS</h1>
<h1>GoCMS</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>GohCMS | Setup</title>
<title>GoCMS | Setup</title>
{{.Head}}
<style>
@@ -14,11 +14,11 @@
<div class="container">
<div class="d-flex flex-column m-auto form-container">
<div>
<h1>GohCMS</h1>
<h1>GoCMS</h1>
<h2>Verify your email</h2>
</div>
<p>An e-mail with the validation link was sent to the address you just registered.</p>
<p>If you misspelled the address or just didn't receive any e-mails, please check your spams or cancel the
<p>If you misspelled theF address or just didn't receive any e-mails, please check your spams or cancel the
account creation.</p>
<form action="" method="post" class="d-flex">
<button class="btn btn-outline-primary w-100" type="submit">
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>GohCMS | Setup</title>
<title>GoCMS | 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>GohCMS</h1>
<h1>GoCMS</h1>
<h2>E-mail verification</h2>
</div>
{{ if .PageError.IsError }}