From fc34d9853386b6dbf270a10862a47a052f1fb151 Mon Sep 17 00:00:00 2001 From: realtradam Date: Sun, 28 Jul 2024 20:00:49 -0400 Subject: code cleanup --- backend/src/main/resources/application.properties | 2 - .../main/resources/templates/articles-list.html | 14 +-- .../main/resources/templates/articles/edit.html | 15 ++- .../src/main/resources/templates/articles/new.html | 94 +++++++++-------- .../main/resources/templates/articles/show.html | 32 ++++-- .../src/main/resources/templates/auth/login.html | 4 +- .../main/resources/templates/auth/register.html | 13 ++- backend/src/main/resources/templates/index.html | 46 +++++--- backend/src/main/resources/templates/layout.html | 59 +++++++---- backend/src/main/resources/templates/post.html | 117 +++++++++++++++------ 10 files changed, 254 insertions(+), 142 deletions(-) (limited to 'backend/src/main/resources') diff --git a/backend/src/main/resources/application.properties b/backend/src/main/resources/application.properties index 102e2c2..3f985f6 100644 --- a/backend/src/main/resources/application.properties +++ b/backend/src/main/resources/application.properties @@ -2,9 +2,7 @@ spring.application.name=web spring.datasource.url=jdbc:postgresql://localhost:5432/spring spring.datasource.username=tradam spring.datasource.driver-class-name=org.postgresql.Driver - spring.jpa.hibernate.ddl-auto=update spring.jpa.show-sql=true - spring.security.user.name=zxcv spring.security.user.password=zxcv diff --git a/backend/src/main/resources/templates/articles-list.html b/backend/src/main/resources/templates/articles-list.html index 799c751..3e133df 100644 --- a/backend/src/main/resources/templates/articles-list.html +++ b/backend/src/main/resources/templates/articles-list.html @@ -5,12 +5,12 @@ Title -

blah blah

-
-
my aga article
-

- ... -

-
+

blah blah

+
+
my aga article
+

+ ... +

+
\ No newline at end of file diff --git a/backend/src/main/resources/templates/articles/edit.html b/backend/src/main/resources/templates/articles/edit.html index f4faee9..d48bd14 100644 --- a/backend/src/main/resources/templates/articles/edit.html +++ b/backend/src/main/resources/templates/articles/edit.html @@ -7,7 +7,8 @@
-
+
@@ -21,7 +22,8 @@ name="title" th:field="*{title}" placeholder="Yep"> -

Please fill out this field.

+

Please + fill out this field.

@@ -49,12 +52,14 @@ name="content" th:field="*{content}" placeholder="Doe"> -

Please fill out this field.

+

+ Please fill out this field.

- + diff --git a/backend/src/main/resources/templates/articles/new.html b/backend/src/main/resources/templates/articles/new.html index f5924d6..fec6d6f 100644 --- a/backend/src/main/resources/templates/articles/new.html +++ b/backend/src/main/resources/templates/articles/new.html @@ -7,55 +7,59 @@
-
-
-
- - -

Please fill out this field.

+ +
+
+ + +

Please + fill out this field.

+
+
+ + +

+ Please fill out this field.

+
-
- - -

Please fill out this field.

+
+
+ + +

+ Please fill out this field.

+
-
-
-
- - -

Please fill out this field.

+
-
-
-
- + - +
diff --git a/backend/src/main/resources/templates/articles/show.html b/backend/src/main/resources/templates/articles/show.html index 206aaae..0912e8e 100644 --- a/backend/src/main/resources/templates/articles/show.html +++ b/backend/src/main/resources/templates/articles/show.html @@ -7,7 +7,6 @@ -

@@ -15,14 +14,16 @@
-
+
-
+
@@ -36,12 +37,17 @@

Subscribe to Ghostwind CSS

-

Get the latest posts delivered right to your inbox

+

Get the latest posts + delivered right to your inbox

- - + +
@@ -54,7 +60,9 @@ Avatar of Author

Ghostwind CSS

-

Tailwind CSS version of Ghost's Casper theme by TailwindToolbox.com

+

Tailwind CSS version of Ghost's Casper theme by TailwindToolbox.com

@@ -74,11 +82,13 @@ - + - - - + + + diff --git a/backend/src/main/resources/templates/auth/login.html b/backend/src/main/resources/templates/auth/login.html index 47bc63e..1eaa5f9 100644 --- a/backend/src/main/resources/templates/auth/login.html +++ b/backend/src/main/resources/templates/auth/login.html @@ -39,7 +39,9 @@
- +
diff --git a/backend/src/main/resources/templates/auth/register.html b/backend/src/main/resources/templates/auth/register.html index dc57ca4..89153e2 100644 --- a/backend/src/main/resources/templates/auth/register.html +++ b/backend/src/main/resources/templates/auth/register.html @@ -21,7 +21,8 @@ name="username" th:field="*{username}" placeholder="Ted"> -

Please fill out this field.

+

+ Please fill out this field.

@@ -49,12 +51,15 @@ name="password" th:field="*{password}" placeholder="Doe"> -

Please fill out this field.

+

+ Please fill out this field.

- +
diff --git a/backend/src/main/resources/templates/index.html b/backend/src/main/resources/templates/index.html index 0c42c21..e3c4a8c 100644 --- a/backend/src/main/resources/templates/index.html +++ b/backend/src/main/resources/templates/index.html @@ -1,4 +1,3 @@ - POST
  • - MULTIMENU POST + MULTIMENU POST
  • - LINK + LINK
  • - POST_VUE + POST_VUE
  • @@ -49,7 +57,8 @@
    -
    +
    @@ -57,9 +66,11 @@

    Spring Blog

    -
    👋 Welcome to my Java Spring Blog!
    +
    👋 Welcome to my Java Spring Blog! +

    - This is a blog project I have created with the goal of learning and understand the ins and outs of the Java Spring framework. + This is a blog project I have created with the goal of learning and understand the ins + and outs of the Java Spring framework.

    @@ -81,14 +92,19 @@
    diff --git a/backend/src/main/resources/templates/layout.html b/backend/src/main/resources/templates/layout.html index f3e0278..f2941f6 100644 --- a/backend/src/main/resources/templates/layout.html +++ b/backend/src/main/resources/templates/layout.html @@ -12,10 +12,12 @@ - + + +::-webkit-scrollbar{height:10px;width:10px}::-webkit-scrollbar-track{background:#efefef;border-radius:6px}::-webkit-scrollbar-thumb{background:#d5d5d5;border-radius:6px}::-webkit-scrollbar-thumb:hover{background:#c4c4c4} + @@ -29,10 +31,12 @@
    -
    +
    -
    +

    @@ -104,8 +122,7 @@

    - -
    +
    @@ -122,20 +139,22 @@
  • - +
  • - +
  • - +
  • -
    diff --git a/backend/src/main/resources/templates/post.html b/backend/src/main/resources/templates/post.html index a775ff2..75d39cc 100644 --- a/backend/src/main/resources/templates/post.html +++ b/backend/src/main/resources/templates/post.html @@ -1,5 +1,5 @@ - + @@ -8,7 +8,8 @@ - + +