@nixweb/nixloc-ui 0.0.53 → 0.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div class="foto-container" @click="escondeMostra = !escondeMostra">
|
|
4
|
+
<img
|
|
5
|
+
src="https://portal1.iff.edu.br/desenvolvimento-institucional/imagens/avatar.jpg/@@images/image.jpeg"
|
|
6
|
+
alt="Avatar"
|
|
7
|
+
/>
|
|
8
|
+
</div>
|
|
9
|
+
<div class="perfil-container" v-if="escondeMostra">
|
|
10
|
+
<div class="item-header text-center">
|
|
11
|
+
<span>Conta</span>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="perfil-conteudo" v-for="item in itens" :key="item.titulo">
|
|
14
|
+
<div class="item-conteudo" @click="navegarPara(item.nomeRota)">
|
|
15
|
+
<div class="titulo-container">
|
|
16
|
+
<span>
|
|
17
|
+
<i :class="item.classeIcone"></i>
|
|
18
|
+
<span class="titulo-perfil titulo-input">{{ item.titulo }}</span>
|
|
19
|
+
</span>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="perfil-conteudo" @click="executarSair">
|
|
24
|
+
<div class="item-conteudo">
|
|
25
|
+
<div class="titulo-container">
|
|
26
|
+
<span>
|
|
27
|
+
<i class="fas fa-sign-in"></i>
|
|
28
|
+
<span class="titulo-perfil titulo-input">Sair</span>
|
|
29
|
+
</span>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
</template>
|
|
36
|
+
<script>
|
|
37
|
+
export default {
|
|
38
|
+
name: "Conta",
|
|
39
|
+
props: {
|
|
40
|
+
itens: [],
|
|
41
|
+
sair: Function,
|
|
42
|
+
},
|
|
43
|
+
data() {
|
|
44
|
+
return {
|
|
45
|
+
escondeMostra: false,
|
|
46
|
+
};
|
|
47
|
+
},
|
|
48
|
+
methods: {
|
|
49
|
+
navegarPara(nomeRota) {
|
|
50
|
+
this.$router.push({ name: nomeRota });
|
|
51
|
+
this.escondeMostra = false;
|
|
52
|
+
},
|
|
53
|
+
executarSair() {
|
|
54
|
+
if (this.sair) this.sair();
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
</script>
|
|
59
|
+
<style scoped>
|
|
60
|
+
.foto-container {
|
|
61
|
+
margin-top: -32px;
|
|
62
|
+
padding-right: 10px;
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
position: fixed;
|
|
65
|
+
float: right;
|
|
66
|
+
left: auto;
|
|
67
|
+
right: 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
img {
|
|
71
|
+
border-radius: 50%;
|
|
72
|
+
height: 45px;
|
|
73
|
+
width: 45px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.perfil-container {
|
|
77
|
+
position: fixed;
|
|
78
|
+
float: right;
|
|
79
|
+
left: auto;
|
|
80
|
+
right: 0;
|
|
81
|
+
margin-right: 20px;
|
|
82
|
+
height: 100%;
|
|
83
|
+
z-index: 1000;
|
|
84
|
+
width: 190px;
|
|
85
|
+
margin-top: 26px;
|
|
86
|
+
background-color: white;
|
|
87
|
+
height: auto;
|
|
88
|
+
border-bottom: 1px solid #e9ebec;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.perfil-conteudo {
|
|
92
|
+
right: 0;
|
|
93
|
+
height: 100%;
|
|
94
|
+
z-index: 101;
|
|
95
|
+
width: 190px;
|
|
96
|
+
height: auto;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.item-header {
|
|
100
|
+
padding: 8px 20px;
|
|
101
|
+
background: #f8f8f8;
|
|
102
|
+
border-left: 1px solid #e9ebec;
|
|
103
|
+
border-right: 1px solid #e9ebec;
|
|
104
|
+
border-top: 1px solid #e9ebec;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.item-conteudo {
|
|
108
|
+
padding-left: 15px;
|
|
109
|
+
height: 45px;
|
|
110
|
+
background: white;
|
|
111
|
+
border: 1px solid #e9ebec;
|
|
112
|
+
border-bottom: 0px solid #e9ebec;
|
|
113
|
+
cursor: pointer;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.item-conteudo:hover {
|
|
117
|
+
background: #f8f8f8;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.titulo-container {
|
|
121
|
+
padding-top: 10px;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.titulo-container:hover {
|
|
125
|
+
padding-top: 10px;
|
|
126
|
+
color: #37597c;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.titulo-perfil {
|
|
130
|
+
padding-left: 10px;
|
|
131
|
+
}
|
|
132
|
+
</style>
|
|
@@ -5,7 +5,10 @@
|
|
|
5
5
|
:class="{ esconde: menu.escondeMostra, mostra: !menu.escondeMostra }"
|
|
6
6
|
:style="'background-color:' + corTopo"
|
|
7
7
|
>
|
|
8
|
-
<
|
|
8
|
+
<div class="lado-a-lado" @click="mostrar = !mostrar">
|
|
9
|
+
<span class="icone"><i class="fal fa-bars"></i></span>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="lado-a-lado"><slot></slot></div>
|
|
9
12
|
</div>
|
|
10
13
|
<br />
|
|
11
14
|
</div>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="{ 'div-mensagem': !modal.abrir }" v-if="notificacoes.length > 0">
|
|
3
|
-
<
|
|
4
|
-
<
|
|
3
|
+
<div v-for="notificacao in notificacoes">
|
|
4
|
+
<Alerta tipo="perigo">
|
|
5
5
|
{{ notificacao.mensagem }}
|
|
6
|
-
</
|
|
7
|
-
</
|
|
6
|
+
</Alerta>
|
|
7
|
+
</div>
|
|
8
8
|
<b-alert
|
|
9
9
|
v-show="false"
|
|
10
10
|
:show="contagemRegressiva"
|
|
@@ -7,11 +7,7 @@ export default {
|
|
|
7
7
|
namespaced: true,
|
|
8
8
|
state: {
|
|
9
9
|
menu: {
|
|
10
|
-
escondeMostra: false, itens: [
|
|
11
|
-
href: "/dashboard",
|
|
12
|
-
title: "Dashboard",
|
|
13
|
-
icon: "fa fa-chart-area",
|
|
14
|
-
},]
|
|
10
|
+
escondeMostra: false, itens: []
|
|
15
11
|
},
|
|
16
12
|
modal: {
|
|
17
13
|
nome: undefined,
|
|
@@ -73,8 +69,13 @@ export default {
|
|
|
73
69
|
},
|
|
74
70
|
},
|
|
75
71
|
mutations: {
|
|
76
|
-
insereItemMenu: (state,
|
|
77
|
-
|
|
72
|
+
insereItemMenu: (state, itens) => {
|
|
73
|
+
itens.forEach(function (obj) {
|
|
74
|
+
state.menu.itens.push(obj);
|
|
75
|
+
});
|
|
76
|
+
},
|
|
77
|
+
removeItensMenu: (state) => {
|
|
78
|
+
state.menu.itens = [];
|
|
78
79
|
},
|
|
79
80
|
escondeMostraMenu: (state, escondeMostra) => {
|
|
80
81
|
state.menu.escondeMostra = escondeMostra;
|