Browse Source

ya se puede añadir y responder!!!

master
Cristobal Bernal Mayordomo 1 year ago
parent
commit
76a68de8e0
6 changed files with 9 additions and 8 deletions
  1. +2
    -2
      src/main/java/com/cristobalbernal/foro/Entidades/Foro.java
  2. +2
    -2
      src/main/java/com/cristobalbernal/foro/Entidades/UsersEntity.java
  3. +1
    -1
      src/main/resources/application.properties
  4. +2
    -1
      src/main/resources/static/css/style.css
  5. +1
    -1
      src/main/resources/templates/index.html
  6. +1
    -1
      src/main/resources/templates/miperfil/miperfil.html

+ 2
- 2
src/main/java/com/cristobalbernal/foro/Entidades/Foro.java View File

@ -15,7 +15,7 @@ public class Foro {
@Column(name = "titulo", nullable = true, length = 150) @Column(name = "titulo", nullable = true, length = 150)
private String titulo; private String titulo;
@Basic @Basic
@Column(name = "descripcion", nullable = true, length = 150)
@Column(name = "descripcion", nullable = true, length = 500)
private String descripcion; private String descripcion;
@Version @Version
@Basic @Basic
@ -25,7 +25,7 @@ public class Foro {
@Column(name = "imagen", nullable = false) @Column(name = "imagen", nullable = false)
private int imagen; private int imagen;
@Basic @Basic
@Column(name = "categoria_foro_id", nullable = false)
@Column(name = "categoria_foro_id", nullable = true)
private int categoriaForoId; private int categoriaForoId;
public Foro() { public Foro() {


+ 2
- 2
src/main/java/com/cristobalbernal/foro/Entidades/UsersEntity.java View File

@ -19,13 +19,13 @@ public class UsersEntity {
@Column(name = "secondname", nullable = true, length = 45) @Column(name = "secondname", nullable = true, length = 45)
private String secondname; private String secondname;
@Basic @Basic
@Column(name = "password", nullable = true, length = 45)
@Column(name = "password", nullable = true, length = 120)
private String password; private String password;
@Basic @Basic
@Column(name = "email", nullable = true, length = 45) @Column(name = "email", nullable = true, length = 45)
private String email; private String email;
@Basic @Basic
@Column(name = "username", nullable = true, length = 45)
@Column(name = "username", nullable = true, length = 120)
private String username; private String username;
@Basic @Basic
@Column(name = "Imgen", nullable = true, length = 150) @Column(name = "Imgen", nullable = true, length = 150)


+ 1
- 1
src/main/resources/application.properties View File

@ -2,7 +2,7 @@ server.port=9000
spring.thymeleaf.cache=false spring.thymeleaf.cache=false
spring.jpa.hibernate.ddl-auto=update spring.jpa.hibernate.ddl-auto=update
spring.datasource.url=jdbc:mariadb://localhost:3306/foro
spring.datasource.url=jdbc:mariadb://localhost:3306/forogruas
spring.datasource.username=root spring.datasource.username=root
spring.datasource.password= spring.datasource.password=
spring.jpa.properties.hibernate.jdbc.time_zone=UTC spring.jpa.properties.hibernate.jdbc.time_zone=UTC


+ 2
- 1
src/main/resources/static/css/style.css View File

@ -2343,7 +2343,7 @@ button:active {
border-radius: 50%; border-radius: 50%;
} }
.user-name{ .user-name{
font-size: 18pt;
font-size: 20pt;
margin-top: 14px; margin-top: 14px;
} }
.socials{ .socials{
@ -2358,6 +2358,7 @@ button:active {
.colorCorreo{ .colorCorreo{
text-decoration: none; text-decoration: none;
color: #ad0000; color: #ad0000;
font-size: 14pt;
} }
a:hover{ a:hover{
color: #dd1919; color: #dd1919;


+ 1
- 1
src/main/resources/templates/index.html View File

@ -66,7 +66,7 @@
<!--strart col-md-3 (side bar)--> <!--strart col-md-3 (side bar)-->
</section> </section>
<!-- Podemos añadir el usuario-->
</div> </div>
</div> </div>
<aside class="col-md-3 sidebar97239"> <aside class="col-md-3 sidebar97239">


+ 1
- 1
src/main/resources/templates/miperfil/miperfil.html View File

@ -8,7 +8,7 @@
</div> </div>
<ul class="socials"> <ul class="socials">
<li> <li>
<a class="colorCorreo" href="mailto:[email protected]">[email protected]</a>
<a class="colorCorreo" th:text="${nombre.getEmail()}"></a>
</li> </li>
</ul> </ul>
<form th:action="@{/logout}" method="post" class="cerrarSesion"> <form th:action="@{/logout}" method="post" class="cerrarSesion">


Loading…
Cancel
Save