From bdedeaede1b7892159e644ed5913ea6a06973960 Mon Sep 17 00:00:00 2001 From: Celestino Rey Date: Fri, 5 Jul 2024 14:30:07 +0200 Subject: [PATCH] =?UTF-8?q?Limpieza=20y=20cambio=20de=20versi=C3=B3n=20de?= =?UTF-8?q?=20imagen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LyricsPy/K8S/lyrics-deployment.yaml | 2 +- LyricsPy/servicios/creaImagen.sh | 4 +- LyricsPy/templates.antiguo/_navegacion.html | 78 ----------------- LyricsPy/templates.antiguo/add_album.html | 49 ----------- LyricsPy/templates.antiguo/add_song.html | 71 ---------------- LyricsPy/templates.antiguo/album.html | 38 --------- LyricsPy/templates.antiguo/base.html | 72 ---------------- LyricsPy/templates.antiguo/index.html | 94 --------------------- LyricsPy/templates.antiguo/login.html | 36 -------- LyricsPy/templates.antiguo/signup.html | 50 ----------- LyricsPy/templates.antiguo/song.html | 9 -- 11 files changed, 3 insertions(+), 500 deletions(-) delete mode 100644 LyricsPy/templates.antiguo/_navegacion.html delete mode 100644 LyricsPy/templates.antiguo/add_album.html delete mode 100644 LyricsPy/templates.antiguo/add_song.html delete mode 100644 LyricsPy/templates.antiguo/album.html delete mode 100644 LyricsPy/templates.antiguo/base.html delete mode 100644 LyricsPy/templates.antiguo/index.html delete mode 100644 LyricsPy/templates.antiguo/login.html delete mode 100644 LyricsPy/templates.antiguo/signup.html delete mode 100644 LyricsPy/templates.antiguo/song.html diff --git a/LyricsPy/K8S/lyrics-deployment.yaml b/LyricsPy/K8S/lyrics-deployment.yaml index 3803e80..b0f1901 100644 --- a/LyricsPy/K8S/lyrics-deployment.yaml +++ b/LyricsPy/K8S/lyrics-deployment.yaml @@ -36,7 +36,7 @@ spec: - --bind - 0.0.0.0:5000 - lyrics:create_app() - image: creylopez/lyrics:5.4 + image: creylopez/lyrics:6.0 name: lyrics ports: - containerPort: 5000 diff --git a/LyricsPy/servicios/creaImagen.sh b/LyricsPy/servicios/creaImagen.sh index 73c7ae8..8993e5f 100644 --- a/LyricsPy/servicios/creaImagen.sh +++ b/LyricsPy/servicios/creaImagen.sh @@ -1,3 +1,3 @@ -docker build --no-cache -t creylopez/lyrics:5.4 . -docker push creylopez/lyrics:5.4 +docker build --no-cache -t creylopez/lyrics:6.0 . +docker push creylopez/lyrics:6.0 diff --git a/LyricsPy/templates.antiguo/_navegacion.html b/LyricsPy/templates.antiguo/_navegacion.html deleted file mode 100644 index 1a2d300..0000000 --- a/LyricsPy/templates.antiguo/_navegacion.html +++ /dev/null @@ -1,78 +0,0 @@ - diff --git a/LyricsPy/templates.antiguo/add_album.html b/LyricsPy/templates.antiguo/add_album.html deleted file mode 100644 index b43a9da..0000000 --- a/LyricsPy/templates.antiguo/add_album.html +++ /dev/null @@ -1,49 +0,0 @@ -{% extends 'base.html' %} - -{% block content %} -
- -

Añadir nuevo Álbum

-
- -
-
- -
- - -
-
- -
- -
- - -
-
- -
- -
- - -
-
- -
- -
- -
-
- -
-
- -
-
-
-
-
-{% endblock %} diff --git a/LyricsPy/templates.antiguo/add_song.html b/LyricsPy/templates.antiguo/add_song.html deleted file mode 100644 index 5893fc9..0000000 --- a/LyricsPy/templates.antiguo/add_song.html +++ /dev/null @@ -1,71 +0,0 @@ -{% extends 'base.html' %} - -{% block content %} -
-

Añadir nueva canción

-
-
-
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
-
- -
-
-
- -
- -
- -
-
- -
-
- -
-
-
-
- - -
-{% endblock %} diff --git a/LyricsPy/templates.antiguo/album.html b/LyricsPy/templates.antiguo/album.html deleted file mode 100644 index 802fad3..0000000 --- a/LyricsPy/templates.antiguo/album.html +++ /dev/null @@ -1,38 +0,0 @@ -{% extends 'base.html' %} - -{% block content %} -

{{ album.name }}

-

Artista: {{ album.artist }}

-

Año: {{ album.year }}

-{% if album.cover_image %} -

{{ album.name }}

-{% else %} -

No hay imágen disponible

-{% endif %} -

Canciones en este álbum

-{% if songs %} - - - - - - - - - - {% for song in songs %} - - - - - - {% endfor %} - -
PistaTítuloAutor
{{ song.pista }}{{ song.title }}{{ song.author }}
-{% else %} -

No songs found matching your query.

-{% endif %} - - -Volver al inicio -{% endblock %} diff --git a/LyricsPy/templates.antiguo/base.html b/LyricsPy/templates.antiguo/base.html deleted file mode 100644 index 0f79777..0000000 --- a/LyricsPy/templates.antiguo/base.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - Mis letras de canciones - - - - - - - - - - {% include("_navegacion.html") %} -
-
- {% block header %}{% endblock header %} -
-
- {% block content %}{% endblock %} -
-
- - - - - - - - diff --git a/LyricsPy/templates.antiguo/index.html b/LyricsPy/templates.antiguo/index.html deleted file mode 100644 index 744f0fd..0000000 --- a/LyricsPy/templates.antiguo/index.html +++ /dev/null @@ -1,94 +0,0 @@ -{% extends 'base.html' %} - -{% block content %} -
- - -
-
    -
  • -

    Lista de canciones

    - {% if songs %} - - - - - - - - - - - {% for song in songs %} - - - - - - - {% endfor %} - -
    PistaTítuloAutorÁlbum
    {{ song.pista }}{{ song.title }}{{ song.author }}{{ song.album.name }}
    - {% else %} -

    No songs found.

    - {% endif %} -
  • - -
  • -

    Lista de álbumes

    - {% if albums %} - - - - - - - - - - - {% for album in albums %} - - - - - - - {% endfor %} - -
    CoverNombreArtistaAño
    - {% if album.cover_image %} - {{ album.name }} - {% else %} - Sin imágen - {% endif %} - {{ album.name }}{{ album.artist }}{{ album.year }}
    - {% else %} -

    No albums found.

    - {% endif %} -
    - Añadir nuevo álbum -
  • -
-
-
-{% endblock %} diff --git a/LyricsPy/templates.antiguo/login.html b/LyricsPy/templates.antiguo/login.html deleted file mode 100644 index 1065aad..0000000 --- a/LyricsPy/templates.antiguo/login.html +++ /dev/null @@ -1,36 +0,0 @@ -{% extends "base.html" %} - -{% block content %} -
-

Login

-
- {% with messages = get_flashed_messages() %} - {% if messages %} -
- {{ messages[0] }} -
- {% endif %} - {% endwith %} -
-
-
- -
-
- -
-
- -
-
-
- -
- -
-
-
-{% endblock %} \ No newline at end of file diff --git a/LyricsPy/templates.antiguo/signup.html b/LyricsPy/templates.antiguo/signup.html deleted file mode 100644 index 164b6cb..0000000 --- a/LyricsPy/templates.antiguo/signup.html +++ /dev/null @@ -1,50 +0,0 @@ -{% extends "base.html" %} - -{% block content %} -
-

Nuevo usuario

-
- - {% with messages = get_flashed_messages() %} - {% if messages %} -
- {{ messages[0] }}. Go to login page. -
- {% endif %} - {% endwith %} - -
-
-
- -
-
- -
-
- -
-
- - -
-
-
-
-
-
-

- Información importante. -

-

- El correo se usará exclusivamente para informarte de que has hecho una reserva. -

-

- El nombre aparecerá en el listado de reservas. -

-
-
-
-
-
-{% endblock %} diff --git a/LyricsPy/templates.antiguo/song.html b/LyricsPy/templates.antiguo/song.html deleted file mode 100644 index 1b13cae..0000000 --- a/LyricsPy/templates.antiguo/song.html +++ /dev/null @@ -1,9 +0,0 @@ -{% extends 'base.html' %} - -{% block content %} -

{{ song.title }}

-

Autor: {{ song.author }}

-

Año: {{ song.album.year }}

-

Álbum: {{ song.album.name }}

-
{{ song.lyrics }}
-{% endblock %}