2018-11-05 21:40:16 -06:00
|
|
|
<template lang="pug">
|
2019-03-19 19:39:46 +00:00
|
|
|
.navbar.is-u-blue
|
|
|
|
|
.navbar-brand
|
|
|
|
|
router-link.navbar-item(to="/")
|
|
|
|
|
b PC PUMA
|
|
|
|
|
.navbar-menu
|
|
|
|
|
.navbar-start
|
2019-02-20 17:08:47 +00:00
|
|
|
router-link.navbar-item(to="/equipo") Equipo
|
2018-11-16 06:15:49 -06:00
|
|
|
router-link.navbar-item(to="/carrito") Carrito
|
2018-11-12 18:43:21 -06:00
|
|
|
router-link.navbar-item(to="/usuario") Usuarios
|
2019-01-17 00:51:05 -06:00
|
|
|
router-link.navbar-item(to="/multa") Multas
|
2020-02-28 17:44:31 -06:00
|
|
|
router-link.navbar-item(v-if="$store.getters.permiso" to="/bans") Blacklist
|
2019-03-19 19:39:46 +00:00
|
|
|
.navbar-end
|
|
|
|
|
.navbar-item
|
2019-09-04 12:55:24 -05:00
|
|
|
p {{`Bienvenido : ${this.usuario}`}}
|
2019-03-19 19:39:46 +00:00
|
|
|
span.tag.is-danger.is-medium(v-if=" env === 'development' ") Localhost
|
|
|
|
|
span.tag.is-danger.is-medium(v-else-if=" env === 'TEST' ") Test
|
|
|
|
|
.navbar-item
|
2018-11-06 21:32:20 -06:00
|
|
|
a.button.is-u-golden(v-on:click='salir()')
|
2018-11-05 21:40:16 -06:00
|
|
|
strong Salir
|
2018-11-05 13:59:26 -06:00
|
|
|
</template>
|
2018-11-06 21:32:20 -06:00
|
|
|
<script>
|
|
|
|
|
export default {
|
2020-02-28 17:44:31 -06:00
|
|
|
data() {
|
2019-03-19 19:39:46 +00:00
|
|
|
return {
|
2019-09-04 12:55:24 -05:00
|
|
|
env: process.env.NODE_ENV,
|
2019-09-04 16:18:47 -05:00
|
|
|
usuario: this.$store.getters.usuario
|
2020-02-28 17:44:31 -06:00
|
|
|
};
|
2019-03-19 19:39:46 +00:00
|
|
|
},
|
2018-11-06 21:32:20 -06:00
|
|
|
methods: {
|
2020-02-28 17:44:31 -06:00
|
|
|
salir: function() {
|
|
|
|
|
this.$store.commit("close");
|
|
|
|
|
this.$router.push("login");
|
2018-11-06 21:32:20 -06:00
|
|
|
}
|
|
|
|
|
}
|
2020-02-28 17:44:31 -06:00
|
|
|
};
|
2018-11-06 21:32:20 -06:00
|
|
|
</script>
|
2019-03-19 19:39:46 +00:00
|
|
|
<style lang="scss" scoped>
|
2020-02-28 17:44:31 -06:00
|
|
|
.navbar {
|
|
|
|
|
width: 100%;
|
|
|
|
|
border-bottom: #b08100 solid 5px;
|
|
|
|
|
box-shadow: 0px 13px 21px 2px rgba(0, 0, 0, 0.21);
|
|
|
|
|
position: fixed;
|
|
|
|
|
top: 0;
|
|
|
|
|
}
|
2019-03-19 19:39:46 +00:00
|
|
|
</style>
|