From 23e9c9382d8d528e1d0d3f8fce353340f4dd0c32 Mon Sep 17 00:00:00 2001 From: Fernando Date: Sat, 20 Apr 2019 19:36:45 -0500 Subject: [PATCH] Agregado soporte para disqus en los animes --- package.json | 1 + src/App.vue | 2 +- src/components/Anime/Anime.vue | 12 +- .../Inicio/y-notaras-la-diferencia.vue | 141 +++++++++--------- src/main.js | 2 + src/views/Inicio.vue | 3 +- yarn.lock | 5 + 7 files changed, 94 insertions(+), 72 deletions(-) diff --git a/package.json b/package.json index 258ea19..4195340 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "mysql": "^2.16.0", "register-service-worker": "^1.6.2", "vue": "^2.6.6", + "vue-disqus": "^3.0.5", "vue-router": "^3.0.1", "vuex": "^3.0.1", "yaml": "^1.4.0" diff --git a/src/App.vue b/src/App.vue index db62f57..b52498c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -33,7 +33,7 @@ }) .then((x) -> x.text()) .then (res) -> - # if DEV then console.log res + # if DEV then console.log res resultado = YAML.parse res if resultado.exito diff --git a/src/components/Anime/Anime.vue b/src/components/Anime/Anime.vue index f957cac..4dfe62a 100644 --- a/src/components/Anime/Anime.vue +++ b/src/components/Anime/Anime.vue @@ -3,8 +3,6 @@ div(v-if="estadoAnime === 0") Cargando... div(v-if="estadoAnime === -1") Error. Anime no encontrado div(v-if="estadoAnime === 1") - // div.titulo {{ anime.titulo }} -> {{ anime.anime_ID }} - // p {{ anime }} br br div.datos @@ -24,6 +22,9 @@ div.tarjeta.fondo1.op-ed ops y eds aqui. En construcción. br panel-de-descarga(:animeid="anime.anime_ID" :color="anime.color") + div.tarjeta.background__disqus + vue-disqus(shortname="www-pseudosubs-com" :identifier="nombreCortoAnime" + :url="'https://pseudosubs.com/Anime/' + nombreCortoAnime") br // @@ -39,6 +40,9 @@ anime: {} # -1 no encontrado, 0 cargando y 1 encontrado estadoAnime: 0 + computed: + nombreCortoAnime: -> + @anime.link?.substr(7) created: -> _ = this animes = @$store.state.animes @@ -70,6 +74,10 @@ \ No newline at end of file diff --git a/src/main.js b/src/main.js index 0cf8fb8..6454bf3 100644 --- a/src/main.js +++ b/src/main.js @@ -3,8 +3,10 @@ import App from './App.vue' import router from './router.coffee' import store from './store.coffee' import './registerServiceWorker' +import VueDisqus from "vue-disqus" Vue.config.productionTip = false; +Vue.use(VueDisqus); new Vue({ router, diff --git a/src/views/Inicio.vue b/src/views/Inicio.vue index 037f37d..f71e903 100644 --- a/src/views/Inicio.vue +++ b/src/views/Inicio.vue @@ -5,8 +5,7 @@ br caracteristicas y-notaras-la-diferencia - // - + //