Skip to content

Commit

Permalink
minorUpdate23217
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitounmax committed Jul 21, 2023
1 parent 27e335e commit ce580fb
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 29 deletions.
4 changes: 3 additions & 1 deletion backend/src/models/PostManager .js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ class PostManager extends AbstractManager {

delete(post) {
return this.database.query(`DELETE FROM ${this.table} VALUES id = ?`, [
post.id,
post.title,
post.description,
post.image,
]);
}
}
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/components/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ function Navbar() {
<Link className="link" to="/?cat=dossier">
<h6>Dossiers</h6>
</Link>
<span>ZeitounMax</span>
<span>Déconnexion</span>
<span className="write">
<Link className="link" to="/write">
Ecrire
Expand Down
29 changes: 5 additions & 24 deletions frontend/src/pages/Single.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,32 +26,13 @@ function Single() {
<Link to="/write?edit=2">
<img src={Edit} alt="" />
</Link>
<img src={Delete} alt="" />
<Link to="/write?delete=3">
<img src={Delete} alt="" />
</Link>
</div>
</div>
<h1>Lorem ipsum</h1>
<p>
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Excepturi
nihil soluta sint fugiat sunt doloremque, suscipit maiores est? Culpa
natus alias reiciendis nobis quo accusantium cupiditate optio quis,
aperiam quos? Dolore quod, ab voluptas tempore soluta voluptatem
perspiciatis molestiae mollitia cumque culpa unde esse, laborum
exercitationem, tempora minima sequi maiores quasi. Labore voluptatem
consequatur a dolorum blanditiis facilis fugiat numquam? Saepe maxime
vero officia accusantium, modi illum facere consequatur incidunt
nesciunt ad vitae libero voluptate unde dolorum odit sapiente autem
veritatis voluptatum repellat earum. Animi quis atque numquam
quibusdam officiis? Eius tempore, facilis doloribus et sapiente
recusandae ut porro, vitae illo voluptate soluta unde ducimus
voluptatem repellendus nisi dolore, illum vero. Cum quas adipisci
maiores suscipit mollitia quidem commodi aliquam! Velit, ab? Ipsam
esse quos debitis ut rem fugit veritatis beatae illum magni ratione
labore molestiae, sapiente consequatur vero et. Ipsam illo debitis
nostrum eos modi sunt, pariatur quas quis. Magni sunt dicta cumque
deserunt aliquid officia repellendus sapiente magnam molestias!
Dignissimos ipsum ex nulla debitis quibusdam esse vitae veniam ipsam
deleniti sunt illo amet, quis, iusto quos saepe nam!
</p>
<h1>Bonjour Ceci est un texte</h1>
<p>Il est beau le texte.</p>
</div>
<Menu />
</div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/Write.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function Write() {
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({ title: "Nouveau titre", description: value }),
body: JSON.stringify({ title: value, description: value }),
})
.then((response) => {
if (response.ok) {
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ $lightGreen: #b9e7e7;
p {
text-align: justify;
line-height: 30px;
color: white;
}
}
.menu {
Expand All @@ -267,7 +268,7 @@ $lightGreen: #b9e7e7;

h1 {
font-size: 20px;
color: #555;
color: #000000;
}

.post {
Expand Down

0 comments on commit ce580fb

Please sign in to comment.