Ya no se necesita una cuenta de Google para usar las notificaciones.

master
Fernando 2019-05-10 15:11:10 -05:00
parent d3a148ecf4
commit 3b371b5b45
1 changed files with 4 additions and 21 deletions

View File

@ -3,37 +3,20 @@
div.titulo.texto1 Notificaciones div.titulo.texto1 Notificaciones
br br
p.descr.texto1. p.descr.texto1.
Inicia sesión con Google y recibe notificaciones cuando salgan eps nuevos. Recibe notificaciones cuando salgan eps nuevos. Solo los animes que decidas
Solo los animes que decidas.<br>
<br>
Muy pronto...
br br
div(:class="(NODE_ENV === 'production')? 'pronto': ''") div
router-link.mas(to="/cuenta") Aprender más router-link.mas(to="/ajustes") Aprender más
boton-inicio-sesion
// //
</template> </template>
<script lang="coffee"> <script lang="coffee">
import botonInicioSesion from "../boton-inicio-sesion.vue"
export default export default
name: "notificaciones" name: "notificaciones"
components:
"boton-inicio-sesion": botonInicioSesion
data: -> data: ->
gSignInParams:
client_id: "27783367584-1hms6h62heplhlvsaihl8vqs7ho3o2b7.apps.googleusercontent.com"
NODE_ENV: process.env.NODE_ENV NODE_ENV: process.env.NODE_ENV
methods:
alIniciarSesion: (googleUser) ->
token = googleUser.getAuthResponse().id_token
xhr = new XMLHttpRequest()
xhr.open "POST", "#{this.$store.state.servidor}/u/validar"
xhr.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
xhr.onload = ->
console.log xhr.responseText
xhr.send "idToken=#{token}"
# #
</script> </script>