Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
partido-interdimensional-pirata
lumi
la web de miniloom
Commits
716ef77c
Commit
716ef77c
authored
Jun 22, 2020
by
rene
Browse files
agregar integración a telegram
parent
ed5ca2b2
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/components/Nav.vue
View file @
716ef77c
...
...
@@ -18,7 +18,16 @@
<li>
<router-link
to=
"/codigoDeConducta"
>
Código de conducta
</router-link>
</li>
<li><router-link
to=
"/cerrarSesion"
>
Cerrar sesion (!)
</router-link></li>
<template
v-if=
"loggedIn"
>
<li>
<router-link
to=
"/vincularATelegram"
>
Vincular a Telegram
</router-link
>
</li>
<li>
<router-link
to=
"/cerrarSesion"
>
Cerrar sesion (!)
</router-link>
</li>
</
template
>
<li><router-link
to=
"/licencia"
>
licencia del proyecto
</router-link></li>
</ul>
<!--<div class="bottom">
...
...
src/router.js
View file @
716ef77c
...
...
@@ -7,6 +7,7 @@ import Home from './views/Home.vue'
import
CrearCuenta
from
'
./views/CrearCuenta.vue
'
import
CodigoDeConducta
from
'
./views/CodigoDeConducta.vue
'
import
IniciarSesion
from
'
./views/IniciarSesion.vue
'
import
VincularTelegram
from
'
./views/VincularTelegram.vue
'
import
CerrarSesion
from
'
./views/CerrarSesion.vue
'
import
Barcas
from
'
./views/Barcas.vue
'
import
Barca
from
'
./views/Barca.vue
'
...
...
@@ -40,6 +41,12 @@ const router = new Router({
component
:
IniciarSesion
,
meta
:
{
fullScreen
:
true
},
},
{
path
:
'
/vincularATelegram
'
,
name
:
'
vincular a telegram
'
,
component
:
VincularTelegram
,
meta
:
{
requiresAuth
:
true
},
},
{
path
:
'
/cerrarSesion
'
,
name
:
'
cerrar sesion
'
,
...
...
src/views/VincularTelegram.vue
0 → 100644
View file @
716ef77c
<
template
>
<div
class=
"vincular-telegram"
>
<h3>
Redirigiendo...
</h3>
<p>
Si tu navegador no te redirige,
<a
:href=
"telegramUrl"
target=
"_blank"
rel=
"noopener noreferrer"
>
hacé click acá
</a
>
.
</p>
</div>
</
template
>
<
script
>
import
{
mapState
}
from
'
vuex
'
export
default
{
name
:
'
VincularTelegramView
'
,
computed
:
{
...
mapState
({
telegramUrl
(
state
)
{
return
state
.
profile
.
telegram_url
},
}),
},
mounted
()
{
if
(
this
.
$route
.
query
.
directo
)
location
.
href
=
this
.
telegramUrl
else
window
.
open
(
this
.
telegramUrl
,
'
_blank
'
)
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
.vincular-telegram
{
margin
:
0
20px
;
}
</
style
>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment