From 537192c9bf45e55bfa35848cb30e6f02c180b01a Mon Sep 17 00:00:00 2001 From: Lucas Pinto Date: Fri, 10 Dec 2021 23:36:56 +0000 Subject: [PATCH] finals Co-authored-by: PedrosGuitarLegend Co-authored-by: Frankiice --- src/App.vue | 6 ++-- src/components/Messages.vue | 6 +++- src/components/NavBar.vue | 17 ++--------- src/components/dialogs/CriarGrupo.vue | 42 ++++++++++++++++++++++----- src/components/dialogs/Jogos.vue | 20 +++++++++---- src/containers/ChatContainer.vue | 16 ++++++++-- src/scss/helpers.scss | 3 ++ src/store/modules/contactos.ts | 17 ++++++++++- src/views/Login.vue | 11 +++++-- 9 files changed, 101 insertions(+), 37 deletions(-) diff --git a/src/App.vue b/src/App.vue index 013e1a7..f29fc84 100644 --- a/src/App.vue +++ b/src/App.vue @@ -35,6 +35,8 @@ import Vue from 'vue'; export default Vue.extend({ created() { console.log('Hola que hace'); + console.log('a mi me gusta la gasolina'); + const lightMode = localStorage.getItem('vsTheme') === 'light'; this.$vs.setTheme(lightMode ? 'light' : 'dark'); @@ -51,9 +53,9 @@ export default Vue.extend({ }, mounted() { // this.ataque(); - const primaryColor = localStorage.getItem('vsPrimary') || '#7289DA'; + const primaryColor = sessionStorage.getItem('vsPrimary') || '#7289DA'; this.$vs.setColor('primary', primaryColor); - localStorage.setItem('vsPrimary', primaryColor); + sessionStorage.setItem('vsPrimary', primaryColor); }, methods: { getCor() { diff --git a/src/components/Messages.vue b/src/components/Messages.vue index a3b01ea..3e2392d 100644 --- a/src/components/Messages.vue +++ b/src/components/Messages.vue @@ -39,7 +39,7 @@ - {{ mensagem.momento.toTimeString().slice(0, -45) }} + {{ getHoras(mensagem.momento) }}
@@ -174,6 +174,10 @@ export default Vue.extend({ if (autor === '$$user$$') { return this.$store.state.user.contacto.nome; } return autor; }, + getHoras(data: Date) { + const d = data.toTimeString(); + return d.slice(0, d.indexOf(':') + 3); + }, }, computed: { computedMensagens() { diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index 796f1de..7bc0fd0 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -6,19 +6,6 @@ Concord - - + @@ -34,6 +39,11 @@ collapse-chips v-model="selecionados" @input="contactosErrors"> +