From 5643187ebdfb90519f1519c27a9bd7988b67ea6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20L=C3=B3pez=20Pazos?= Date: Sat, 25 Apr 2020 14:12:56 +0200 Subject: [PATCH 001/117] =?UTF-8?q?#63=20Importaci=C3=B3n=20de=20fichero?= =?UTF-8?q?=20de=20maquetaci=C3=B3n=20global=20en=20la=20configuraci=C3=B3?= =?UTF-8?q?n=20de=20nuxt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nuxt.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nuxt.config.js b/nuxt.config.js index 9f6954d..e21d1d4 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -87,7 +87,10 @@ export default { ], styleResources: { - scss: ['./assets/styles/*.scss'], + scss: [ + './assets/styles/_variables.scss', + './assets/styles/_global.scss', + ], }, /* ** Axios module configuration From ef85a2eadfece59cec2694925e6020817f7a3434 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20L=C3=B3pez=20Pazos?= Date: Sat, 25 Apr 2020 14:13:14 +0200 Subject: [PATCH 002/117] =?UTF-8?q?#63=20Definici=C3=B3n=20de=20hoja=20de?= =?UTF-8?q?=20estilos=20global?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/styles/_global.scss | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 assets/styles/_global.scss diff --git a/assets/styles/_global.scss b/assets/styles/_global.scss new file mode 100644 index 0000000..7f2e6d6 --- /dev/null +++ b/assets/styles/_global.scss @@ -0,0 +1,3 @@ +.pointer{ + cursor: pointer; +} From 6afc65643fc7bfeaeda9c782c67bdea522634ae1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20L=C3=B3pez=20Pazos?= Date: Sat, 25 Apr 2020 14:15:38 +0200 Subject: [PATCH 003/117] =?UTF-8?q?#63=20Implementaci=C3=B3n=20de=20store?= =?UTF-8?q?=20de=20configuraciones?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- store/configs.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 store/configs.js diff --git a/store/configs.js b/store/configs.js new file mode 100644 index 0000000..308fc1d --- /dev/null +++ b/store/configs.js @@ -0,0 +1,13 @@ +import Vue from 'vue'; + +export const state = () => ({ + currentTitle: '', +}); + +export const getters = {}; + +export const mutations = { + setCurrentTitle(state, title) { + Vue.set(state, 'currentTitle', title); + }, +}; From fbf95e966a45afd1e307a5c9ada7edde1aae53ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20L=C3=B3pez=20Pazos?= Date: Sat, 25 Apr 2020 14:16:01 +0200 Subject: [PATCH 004/117] =?UTF-8?q?#63=20Modificaci=C3=B3n=20de=20locale?= =?UTF-8?q?=20para=20el=20t=C3=ADtulo=20de=20las=20pantallas=20de=20detall?= =?UTF-8?q?e=20de=20un=20cap=C3=ADtulo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/es.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locales/es.js b/locales/es.js index f745ca6..fc257e8 100644 --- a/locales/es.js +++ b/locales/es.js @@ -111,7 +111,7 @@ export default TITLE: 'Temporada {number}', CHAPTERS: { DETAIL: { - TITLE: 'Capítulo {slug}', + TITLE: '{slug} - {name}', INFO: { TITLE: 'Datos del capítulo', NAME: 'Capítulo', From 89a997770292926b3db997ea97a8fbdbcd268563 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20L=C3=B3pez=20Pazos?= Date: Sat, 25 Apr 2020 14:16:38 +0200 Subject: [PATCH 005/117] =?UTF-8?q?#63=20Modificaci=C3=B3n=20del=20t=C3=AD?= =?UTF-8?q?tulo=20del=20componente=20Header=20para=20que=20muestre=20siemp?= =?UTF-8?q?re=20el=20t=C3=ADtulo=20de=20la=20web?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Header.vue | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/components/Header.vue b/components/Header.vue index b12643a..de13b97 100644 --- a/components/Header.vue +++ b/components/Header.vue @@ -1,19 +1,13 @@ From 2c514409971e6cc3b502f5c819cc68207a1a8ccc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20L=C3=B3pez=20Pazos?= Date: Sat, 25 Apr 2020 14:17:36 +0200 Subject: [PATCH 006/117] =?UTF-8?q?#63=20Modificaci=C3=B3n=20de=20la=20maq?= =?UTF-8?q?uetaci=C3=B3n=20del=20layout=20para=20incluir=20un=20banner=20o?= =?UTF-8?q?pcional=20con=20el=20t=C3=ADtulo=20de=20la=20p=C3=A1gina?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/default.vue | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/layouts/default.vue b/layouts/default.vue index 84ac6ce..5dd2de1 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -67,9 +67,38 @@ body{ } #main { + padding: 0; - @media screen and (min-width: $tablet-min-width){ - padding: 50px; + .banner { + h1 { + padding: 5px; + height: 75px; + line-height: 75px; + font-size: 20px; + text-align: center; + background: $color-text-blue; // #66b3ff; + box-shadow: inset 0 8px 8px -8px rgba(0,0,0,.3), inset 0 -8px 8px -8px rgba(0,0,0,.3); + color: $color-text-white; + margin: 0; + + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + + @media screen and (min-width: $tablet-min-width){ + height: 150px; + line-height: 150px; + font-size: 50px; + } + } + } + + .wrapper { + padding: 20px; + + @media screen and (min-width: $tablet-min-width){ + padding: 50px; + } } } From 40e032bdf66fe365710adc0ca1e047c438bc6287 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20L=C3=B3pez=20Pazos?= Date: Sat, 25 Apr 2020 14:18:25 +0200 Subject: [PATCH 007/117] =?UTF-8?q?#63=20Adaptaci=C3=B3n=20de=20la=20vista?= =?UTF-8?q?=20de=20inicio=20para=20a=C3=B1adir=20banner=20con=20el=20t?= =?UTF-8?q?=C3=ADtulo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index.vue | 251 +++++++++++++++++++++++++----------------------- 1 file changed, 132 insertions(+), 119 deletions(-) diff --git a/pages/index.vue b/pages/index.vue index 247dd08..7f584ce 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,140 +1,149 @@ From 1b543787143b34a6c991658d928cfca094c952cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20L=C3=B3pez=20Pazos?= Date: Sat, 25 Apr 2020 14:18:36 +0200 Subject: [PATCH 008/117] =?UTF-8?q?#63=20Adaptaci=C3=B3n=20de=20la=20vista?= =?UTF-8?q?=20de=20personajes=20para=20a=C3=B1adir=20banner=20con=20el=20t?= =?UTF-8?q?=C3=ADtulo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/characters/index.vue | 46 +++++++++++++++++++++++--------------- 1 file changed, 28 insertions(+), 18 deletions(-) diff --git a/pages/characters/index.vue b/pages/characters/index.vue index 25ca164..0f15ec0 100644 --- a/pages/characters/index.vue +++ b/pages/characters/index.vue @@ -1,24 +1,29 @@ @@ -62,6 +67,9 @@ export default { ...mapState('characters', { characters: 'all', }), + ...mapState('configs', { + title: 'currentTitle', + }), }, created() { if (process.browser) { @@ -69,6 +77,8 @@ export default { window.addEventListener('resize', this.handleResize); this.handleResize(); } + + this.$store.commit('configs/setCurrentTitle', this.$t('VIEWS.CHARACTERS.TITLE')); }, beforeDestroy() { if (this.loadingInstance) this.loadingInstance.close(); From c9cb3a77042be3d9a70843cb8faf3501900f9419 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20L=C3=B3pez=20Pazos?= Date: Sat, 25 Apr 2020 14:18:46 +0200 Subject: [PATCH 009/117] =?UTF-8?q?#63=20Adaptaci=C3=B3n=20de=20la=20vista?= =?UTF-8?q?=20de=20cap=C3=ADtulos=20para=20a=C3=B1adir=20banner=20con=20el?= =?UTF-8?q?=20t=C3=ADtulo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/seasons/index.vue | 40 +++++++++++++++++++++++++--------------- 1 file changed, 25 insertions(+), 15 deletions(-) diff --git a/pages/seasons/index.vue b/pages/seasons/index.vue index 0879a18..02c5465 100644 --- a/pages/seasons/index.vue +++ b/pages/seasons/index.vue @@ -1,21 +1,26 @@ @@ -44,6 +49,8 @@ export default { }); } + this.$store.commit('configs/setCurrentTitle', this.$t('VIEWS.SEASONS.DETAIL.TITLE', { number: this.$route.params.season_number })); + return this.$store.dispatch('chapters/getAll', { season: this.$route.params.season_number }) .finally(() => { if (this.loadingInstance) this.loadingInstance.close(); @@ -59,6 +66,9 @@ export default { ...mapState('chapters', { chapters: 'all', }), + ...mapState('configs', { + title: 'currentTitle', + }), }, created() { if (process.browser) { From b9e46a064d426bb9b7e1b212f69ff5d0943b17e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20L=C3=B3pez=20Pazos?= Date: Sat, 25 Apr 2020 14:18:55 +0200 Subject: [PATCH 010/117] =?UTF-8?q?#63=20Adaptaci=C3=B3n=20de=20la=20vista?= =?UTF-8?q?=20de=20actores=20para=20a=C3=B1adir=20banner=20con=20el=20t?= =?UTF-8?q?=C3=ADtulo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/actors/index.vue | 46 +++++++++++++++++++++++++----------------- 1 file changed, 28 insertions(+), 18 deletions(-) diff --git a/pages/actors/index.vue b/pages/actors/index.vue index df8378c..83ec6a2 100644 --- a/pages/actors/index.vue +++ b/pages/actors/index.vue @@ -1,24 +1,29 @@ @@ -48,6 +53,8 @@ export default { }); } + this.$store.commit('configs/setCurrentTitle', this.$t('VIEWS.ACTORS.TITLE')); + return this.$store.dispatch('actors/getAll') .finally(() => { if (this.loadingInstance) this.loadingInstance.close(); @@ -62,6 +69,9 @@ export default { ...mapState('actors', { actors: 'all', }), + ...mapState('configs', { + title: 'currentTitle', + }), }, created() { if (process.browser) { From 6b7bbacc98e69c0ec650074a47117b5e08200d14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20L=C3=B3pez=20Pazos?= Date: Sat, 25 Apr 2020 14:19:10 +0200 Subject: [PATCH 011/117] =?UTF-8?q?#63=20Adaptaci=C3=B3n=20de=20la=20vista?= =?UTF-8?q?=20de=20detalle=20de=20un=20actor=20para=20a=C3=B1adir=20banner?= =?UTF-8?q?=20con=20el=20t=C3=ADtulo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/actors/_slug/index.vue | 153 +++++++++++++++++++---------------- 1 file changed, 83 insertions(+), 70 deletions(-) diff --git a/pages/actors/_slug/index.vue b/pages/actors/_slug/index.vue index bd97dc8..093ea04 100644 --- a/pages/actors/_slug/index.vue +++ b/pages/actors/_slug/index.vue @@ -1,75 +1,80 @@ @@ -97,9 +102,14 @@ export default { }); } + this.$store.commit('configs/setCurrentTitle', this.$t('VIEWS.ACTORS.DETAIL.TITLE', { actor: '' })); + return this.$store.dispatch('actors/getBySlug', { slug: this.$route.params.slug }) + .then(() => { + this.$store.commit('configs/setCurrentTitle', this.$t('VIEWS.ACTORS.DETAIL.TITLE', { actor: this.actor.shortname })); + }) .finally(() => { - this.loadingInstance.close(); + if (this.loadingInstance) this.loadingInstance.close(); }); }, data() { @@ -118,6 +128,9 @@ export default { ...mapState('actors', { actor: 'current', }), + ...mapState('configs', { + title: 'currentTitle', + }), }, created() { if (process.browser) { From 432b672ba3ab2ca7cbe7cd03ecec674abc9fa6f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20L=C3=B3pez=20Pazos?= Date: Sat, 25 Apr 2020 14:19:17 +0200 Subject: [PATCH 012/117] =?UTF-8?q?#63=20Adaptaci=C3=B3n=20de=20la=20vista?= =?UTF-8?q?=20de=20detalle=20de=20un=20personaje=20para=20a=C3=B1adir=20ba?= =?UTF-8?q?nner=20con=20el=20t=C3=ADtulo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/characters/_slug/index.vue | 161 +++++++++++++++++-------------- 1 file changed, 87 insertions(+), 74 deletions(-) diff --git a/pages/characters/_slug/index.vue b/pages/characters/_slug/index.vue index 93d8a8e..10f83b6 100644 --- a/pages/characters/_slug/index.vue +++ b/pages/characters/_slug/index.vue @@ -1,79 +1,84 @@ @@ -101,9 +106,14 @@ export default { }); } + this.$store.commit('configs/setCurrentTitle', this.$t('VIEWS.CHARACTERS.DETAIL.TITLE', { character: '' })); + return this.$store.dispatch('characters/getBySlug', { slug: this.$route.params.slug }) + .then(() => { + this.$store.commit('configs/setCurrentTitle', this.$t('VIEWS.CHARACTERS.DETAIL.TITLE', { character: this.character.shortname })); + }) .finally(() => { - this.loadingInstance.close(); + if (this.loadingInstance) this.loadingInstance.close(); }); }, data() { @@ -121,6 +131,9 @@ export default { ...mapState('characters', { character: 'current', }), + ...mapState('configs', { + title: 'currentTitle', + }), }, created() { if (process.browser) { From 1d3bd01072044be6e068d8508bb7b76acb8b8634 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20L=C3=B3pez=20Pazos?= Date: Sat, 25 Apr 2020 14:19:49 +0200 Subject: [PATCH 013/117] =?UTF-8?q?#63=20Adaptaci=C3=B3n=20de=20la=20vista?= =?UTF-8?q?=20de=20detalle=20de=20un=20cap=C3=ADtulo=20para=20a=C3=B1adir?= =?UTF-8?q?=20banner=20con=20el=20t=C3=ADtulo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../_season_number/chapters/_slug/index.vue | 250 ++++++++++-------- 1 file changed, 133 insertions(+), 117 deletions(-) diff --git a/pages/seasons/_season_number/chapters/_slug/index.vue b/pages/seasons/_season_number/chapters/_slug/index.vue index c83ecf6..fa84601 100644 --- a/pages/seasons/_season_number/chapters/_slug/index.vue +++ b/pages/seasons/_season_number/chapters/_slug/index.vue @@ -1,126 +1,131 @@