Agregado soporte para disqus en los animes

master
Fernando 2019-04-20 19:36:45 -05:00
parent 2dd9adec8f
commit 23e9c9382d
7 changed files with 94 additions and 72 deletions

View File

@ -12,6 +12,7 @@
"mysql": "^2.16.0", "mysql": "^2.16.0",
"register-service-worker": "^1.6.2", "register-service-worker": "^1.6.2",
"vue": "^2.6.6", "vue": "^2.6.6",
"vue-disqus": "^3.0.5",
"vue-router": "^3.0.1", "vue-router": "^3.0.1",
"vuex": "^3.0.1", "vuex": "^3.0.1",
"yaml": "^1.4.0" "yaml": "^1.4.0"

View File

@ -3,8 +3,6 @@
div(v-if="estadoAnime === 0") Cargando... div(v-if="estadoAnime === 0") Cargando...
div(v-if="estadoAnime === -1") Error. Anime no encontrado div(v-if="estadoAnime === -1") Error. Anime no encontrado
div(v-if="estadoAnime === 1") div(v-if="estadoAnime === 1")
// div.titulo {{ anime.titulo }} -> {{ anime.anime_ID }}
// p {{ anime }}
br br
br br
div.datos div.datos
@ -24,6 +22,9 @@
div.tarjeta.fondo1.op-ed ops y eds aqui. En construcción. div.tarjeta.fondo1.op-ed ops y eds aqui. En construcción.
br br
panel-de-descarga(:animeid="anime.anime_ID" :color="anime.color") 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 br
// //
</template> </template>
@ -39,6 +40,9 @@
anime: {} anime: {}
# -1 no encontrado, 0 cargando y 1 encontrado # -1 no encontrado, 0 cargando y 1 encontrado
estadoAnime: 0 estadoAnime: 0
computed:
nombreCortoAnime: ->
@anime.link?.substr(7)
created: -> created: ->
_ = this _ = this
animes = @$store.state.animes animes = @$store.state.animes
@ -70,6 +74,10 @@
<style scoped lang="sass"> <style scoped lang="sass">
@import "../../assets/sass/variables" @import "../../assets/sass/variables"
.background__disqus
background-color: #101010
padding: 15px
.contenedor .contenedor
margin: 0 50px margin: 0 50px

View File

@ -1,12 +1,12 @@
<!-- Y notarás la diferencia. Responsivo hasta 285px de ancho. --> <!-- Y notarás la diferencia. Responsivo hasta 285px de ancho. -->
<template lang="pug"> <template lang="pug">
div(style="position: absolute; width: 100%") div(style="position: absolute; width: 100%")
div.contImg(:style="'min-height: ' + altoPantalla + 'px' ") div.contImg(:style="'min-height: ' + altoPantalla + 'px; ' + imagenActual")
div.otro(:style="'min-height: ' + altoPantalla + 'px' ") div.otro(:style="'min-height: ' + altoPantalla + 'px' ")
div.col div.col
div.fil div.fil
div.titulo <!--Cámbiate a PseudoSubs--> RIP PseudoSubs - 2017-2019 div.titulo PseudoSubs ain't fansub
div.motto Y notarás la diferencia <small>¿O no?</small> div.motto Nuevos eps cuando me de la gana.
br br
br br
br br
@ -25,6 +25,9 @@
window.innerHeight ? document.documentElement.clientHeight ? document.body.clientHeight window.innerHeight ? document.documentElement.clientHeight ? document.body.clientHeight
anchoPantalla: -> anchoPantalla: ->
window.innerWidth ? document.documentElement.clientWidth ? document.body.clientWidth window.innerWidth ? document.documentElement.clientWidth ? document.body.clientWidth
imagenActual: ->
num = Math.floor(Math.random() * 1) + 1
"background-image: url(\"/img/notaras-dif-img/img#{num}.svg\")"
# #
</script> </script>
@ -38,7 +41,7 @@
filter: brightness(0.4) filter: brightness(0.4)
background-image: url("../../assets/img/y_notaras_la_diferencia.jpg") // background-image: url("/img/notaras-dif-img/img1.webp")
background-attachment: fixed background-attachment: fixed
background-position: center background-position: center
background-repeat: no-repeat background-repeat: no-repeat
@ -52,19 +55,23 @@
z-index: 2 z-index: 2
width: 100% width: 100%
display: inline-table display: inline-table
.col .col
display: table-row display: table-row
.fil .fil
display: table-cell display: table-cell
vertical-align: middle vertical-align: middle
text-align: center text-align: center
color: white color: white
.titulo .titulo
padding: 0 20px padding: 0 20px
font: font:
family: "Product Sans", Muli, "Open Sans", sans-serif family: "Product Sans", Muli, "Open Sans", sans-serif
weight: bold weight: bold
size: 4rem size: 4rem
.comparar .comparar
display: inline-block display: inline-block
color: white color: white

View File

@ -3,8 +3,10 @@ import App from './App.vue'
import router from './router.coffee' import router from './router.coffee'
import store from './store.coffee' import store from './store.coffee'
import './registerServiceWorker' import './registerServiceWorker'
import VueDisqus from "vue-disqus"
Vue.config.productionTip = false; Vue.config.productionTip = false;
Vue.use(VueDisqus);
new Vue({ new Vue({
router, router,

View File

@ -6,7 +6,6 @@
caracteristicas caracteristicas
y-notaras-la-diferencia y-notaras-la-diferencia
// //
</template> </template>
<script lang="coffee"> <script lang="coffee">

View File

@ -8171,6 +8171,11 @@ vue-cli-plugin-express@^1.0.0:
portfinder "^1.0.17" portfinder "^1.0.17"
ts-node "^7.0.1" ts-node "^7.0.1"
vue-disqus@^3.0.5:
version "3.0.5"
resolved "https://registry.yarnpkg.com/vue-disqus/-/vue-disqus-3.0.5.tgz#8d0dd5cabdba7c47f82d129d2907a64366842fa8"
integrity sha512-T3Y68lXf5W2lYt6j4Y3kZ4opLPH0EAzqriy11MS4D4Q2+UN0tFuUXeYP1MxfvdyaCEboXSM6CUswxsULuNV70Q==
vue-hot-reload-api@^2.3.0: vue-hot-reload-api@^2.3.0:
version "2.3.3" version "2.3.3"
resolved "https://registry.yarnpkg.com/vue-hot-reload-api/-/vue-hot-reload-api-2.3.3.tgz#2756f46cb3258054c5f4723de8ae7e87302a1ccf" resolved "https://registry.yarnpkg.com/vue-hot-reload-api/-/vue-hot-reload-api-2.3.3.tgz#2756f46cb3258054c5f4723de8ae7e87302a1ccf"