@burh/nuxt-core 1.0.21 → 1.0.23
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/assets/css/variables.css +3 -0
- package/assets/sass/argon-panna.scss +106 -0
- package/assets/sass/argon-test-online.scss +106 -0
- package/assets/sass/burh-ds/_variables.scss +1 -0
- package/assets/sass/burh-ds/organisms/_cards.scss +36 -4
- package/assets/sass/burh-ds/variables/_colors-panna.scss +303 -0
- package/assets/sass/burh-ds/variables/_colors-test-online.scss +303 -0
- package/assets/sass/burh-ds/variables/_colors.scss +0 -1
- package/assets/sass/custom/_variables.scss +1 -0
- package/components/argon-core/BaseDropdown.vue +1 -1
- package/components/argon-core/Modal.vue +1 -1
- package/components/burh-ds/Avatar/AvatarLink.vue +24 -18
- package/components/burh-ds/Button/ExportButton.vue +3 -8
- package/components/burh-ds/Cards/TestCard.vue +181 -0
- package/components/burh-ds/Cards/WelcomeCard.vue +48 -42
- package/components/burh-ds/Dropdown/AppLinkArea.vue +125 -39
- package/components/burh-ds/Dropdown/DropdownItem.vue +21 -16
- package/components/burh-ds/Dropdown/DropdownSection.vue +26 -26
- package/components/burh-ds/Dropdown/FaqVideoArea.vue +79 -65
- package/components/burh-ds/Dropdown/SignOutItem.vue +6 -6
- package/components/burh-ds/Dropdown/UserMenuDropdown.vue +54 -48
- package/components/burh-ds/Groups/SimpleProductItem.vue +26 -11
- package/components/burh-ds/Headings/AppHeader.vue +46 -47
- package/components/burh-ds/Headings/StepHeader.vue +95 -51
- package/components/burh-ds/Link/DefaultLink.vue +31 -0
- package/components/burh-ds/Lists/ListNavLinks.vue +47 -34
- package/components/burh-ds/Modals/AppConfigModal.vue +158 -156
- package/components/burh-ds/Modals/SendTest.vue +170 -0
- package/components/burh-ds/Modals/VideoModal.vue +15 -5
- package/components/burh-ds/Navbar/BaseNav.vue +2 -2
- package/components/burh-ds/Pagination/NamedPagination.vue +179 -0
- package/components/burh-ds/Questions/Question.vue +76 -36
- package/components/burh-ds/Questions/QuestionAttach.vue +1 -1
- package/components/burh-ds/Questions/QuestionRadio.vue +79 -73
- package/components/burh-ds/Questions/QuestionRadioItem.vue +25 -18
- package/components/burh-ds/Questions/QuestionText.vue +53 -22
- package/components/burh-ds/Tabs/TesteTab.vue +100 -0
- package/components/layouts/burh-ds/navbar/AppNavbar.vue +73 -35
- package/components/layouts/burh-ds/navbar/BusinessGlobalNavbar.vue +385 -242
- package/package.json +2 -2
- package/components/burh-ds/Cards/RecentTestCard.vue +0 -51
- package/data/ListNavLinksMock.json +0 -113
|
@@ -1,233 +1,374 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
</nuxt-link>
|
|
2
|
+
<base-nav
|
|
3
|
+
id="business__nav"
|
|
4
|
+
v-model="showMenu"
|
|
5
|
+
container-classes="container-fluid container-fluid--bu"
|
|
6
|
+
class="navbar-main navbar-blue"
|
|
7
|
+
expand="lg"
|
|
8
|
+
type="primary"
|
|
9
|
+
>
|
|
10
|
+
<div
|
|
11
|
+
slot="brand"
|
|
12
|
+
class="navbar-wrapper d-flex"
|
|
13
|
+
>
|
|
14
|
+
<nuxt-link class="navbar-brand d-flex" to="/">
|
|
15
|
+
<img
|
|
16
|
+
src="/img/brand/burh-imagotipo-white.svg"
|
|
17
|
+
class="navbar-brand-img navbar-brand-img--full"
|
|
18
|
+
alt="BURH: Suas vagas"
|
|
19
|
+
>
|
|
20
|
+
</nuxt-link>
|
|
22
21
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
22
|
+
<ul class= "navbar-nav align-items-center d-none d-lg-flex flex-row mr-sm-auto">
|
|
23
|
+
<navbar-links
|
|
24
|
+
v-for="(item, index) in listOfLinks" :key="index"
|
|
25
|
+
:name="item.name"
|
|
26
|
+
:id="item.id"
|
|
27
|
+
:link="item.link"
|
|
28
|
+
:children="item.children"
|
|
29
|
+
/>
|
|
30
|
+
</ul>
|
|
31
|
+
</div>
|
|
33
32
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
33
|
+
<ul class="navbar-nav navbar-nav--menu align-items-center mr-md-auto">
|
|
34
|
+
<template v-if="currentUser == null">
|
|
35
|
+
<li class="nav-item">
|
|
36
|
+
<button
|
|
37
|
+
@click="toLogin()"
|
|
38
|
+
class="btn btn-block"
|
|
39
|
+
:class="{'btn-outline-light': !showMenu, 'btn-primary': showMenu, 'btn-light': !showMenu}"
|
|
40
|
+
>
|
|
41
|
+
Entrar
|
|
42
|
+
</button>
|
|
43
|
+
<hr class="d-lg-none mt-3 mb-3">
|
|
44
|
+
</li>
|
|
45
|
+
<li class="nav-item">
|
|
46
|
+
<a
|
|
47
|
+
v-if="showMenu"
|
|
48
|
+
href="javascript:void(0)"
|
|
49
|
+
@click="$router.push('/empresas/cadastro/criar-conta')"
|
|
50
|
+
class="btn"
|
|
51
|
+
:class="{'btn-light': !showMenu, 'btn-outline-primary': showMenu}"
|
|
52
|
+
>
|
|
53
|
+
Cadastrar-se
|
|
54
|
+
</a>
|
|
55
|
+
</li>
|
|
56
|
+
</template>
|
|
57
|
+
</ul>
|
|
59
58
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
59
|
+
<faq-video-area
|
|
60
|
+
v-if="currentUser != null"
|
|
61
|
+
:videos="listOfVideos"
|
|
62
|
+
v-on:open-video-modal="openModalVideo"
|
|
63
|
+
class="white-block"
|
|
64
|
+
/>
|
|
65
|
+
<video-modal
|
|
66
|
+
:show="videoModalProperties.showModal"
|
|
67
|
+
:link="this.videoModalProperties.link"
|
|
68
|
+
:title="this.videoModalProperties.title"
|
|
69
|
+
/>
|
|
71
70
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
71
|
+
<app-link-area
|
|
72
|
+
v-if="currentUser != null"
|
|
73
|
+
class="white-block"
|
|
74
|
+
:showableProducts="showableProducts"
|
|
75
|
+
:activeProducts="activeProducts"
|
|
76
|
+
:apps="gridApps"
|
|
77
|
+
/>
|
|
78
|
+
<user-menu-dropdown
|
|
79
|
+
slot="user"
|
|
80
|
+
v-if="currentUser != null"
|
|
81
|
+
:text="userMenuText"
|
|
82
|
+
:userAvatar="currentUser.avatar"
|
|
83
|
+
:userName="currentUser.name"
|
|
84
|
+
:companies="currentUser.companies"
|
|
85
|
+
:companyLogo="currentCompany.logo"
|
|
86
|
+
:companyName="currentCompany.name"
|
|
87
|
+
@logout="$emit('logout')"
|
|
88
|
+
>
|
|
89
|
+
<avatar-link
|
|
90
|
+
slot="companies"
|
|
91
|
+
v-for="company in currentUser.companies"
|
|
92
|
+
:key="company.name"
|
|
93
|
+
:logo="company.logo"
|
|
94
|
+
:name="company.name"
|
|
95
|
+
class="dropdown-item"
|
|
96
|
+
:data="company"
|
|
97
|
+
@avatar-click="handleAvatarClick(company)"
|
|
98
|
+
/>
|
|
99
|
+
</user-menu-dropdown>
|
|
100
|
+
<slot></slot>
|
|
101
|
+
</base-nav>
|
|
88
102
|
</template>
|
|
89
103
|
|
|
90
104
|
<script>
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
},
|
|
105
|
+
import UserMenuDropdown from '@burh/nuxt-core/components/burh-ds/Dropdown/UserMenuDropdown.vue';
|
|
106
|
+
import BaseNav from '@burh/nuxt-core/components/burh-ds/Navbar/BaseNav.vue';
|
|
107
|
+
import AvatarLink from '../../../burh-ds/Avatar/AvatarLink';
|
|
108
|
+
import VideoModal from '@burh/nuxt-core/components/burh-ds/Modals/VideoModal.vue';
|
|
109
|
+
import NavbarLinks from '@burh/nuxt-core/components/burh-ds/Lists/ListNavLinks.vue';
|
|
110
|
+
import AppLinkArea from '@burh/nuxt-core/components/burh-ds/Dropdown/AppLinkArea.vue';
|
|
111
|
+
import FaqVideoArea from '@burh/nuxt-core/components/burh-ds/Dropdown/FaqVideoArea.vue';
|
|
112
|
+
import * as ListVideos from '@burh/nuxt-core/data/ListVideoLinksMock.json';
|
|
113
|
+
import moment from 'moment';
|
|
114
|
+
import 'moment/locale/pt-br';
|
|
115
|
+
import * as _ from 'lodash';
|
|
116
|
+
export default {
|
|
117
|
+
components: {
|
|
118
|
+
BaseNav,
|
|
119
|
+
AppLinkArea,
|
|
120
|
+
FaqVideoArea,
|
|
121
|
+
NavbarLinks,
|
|
122
|
+
VideoModal,
|
|
123
|
+
UserMenuDropdown,
|
|
124
|
+
AvatarLink,
|
|
125
|
+
},
|
|
126
|
+
props: {
|
|
127
|
+
type: {
|
|
128
|
+
type: String,
|
|
129
|
+
default: 'primary', // default|light
|
|
130
|
+
description: 'Look of the dashboard navbar. primary (blue) or ligte (white)'
|
|
131
|
+
},
|
|
132
|
+
logoMini: {
|
|
133
|
+
type: String,
|
|
134
|
+
default: '/img/content/carreiras/logo-laponia.jpg',
|
|
135
|
+
description: 'Logo for scrolled navbar'
|
|
136
|
+
},
|
|
137
|
+
logoFull: {
|
|
138
|
+
type: String,
|
|
139
|
+
default: () => '/img/brand/burh-imagotipo.svg',
|
|
140
|
+
description: 'Brand da navbar'
|
|
141
|
+
},
|
|
142
|
+
navbarColor: {
|
|
143
|
+
type: String,
|
|
144
|
+
default: () => 'navbar-light', //
|
|
145
|
+
description: 'Cor do navbar [atual]'
|
|
146
|
+
},
|
|
147
|
+
currentUser: {
|
|
148
|
+
listOfLinks: {
|
|
149
|
+
type: Array,
|
|
150
|
+
default: () => ListofLinksNavbar.default,
|
|
151
|
+
description: 'Lista de links da navbar atual'
|
|
152
|
+
},
|
|
153
|
+
type: Object,
|
|
154
|
+
default: () => null,
|
|
155
|
+
description: 'Usuário logado atual'
|
|
156
|
+
},
|
|
157
|
+
currentCompany: {
|
|
158
|
+
type: Object,
|
|
159
|
+
default: () => null,
|
|
160
|
+
description: 'Empresa selecionada atual'
|
|
161
|
+
},
|
|
162
|
+
listOfVideos:{
|
|
163
|
+
type: Array,
|
|
164
|
+
default: () => ListVideos.default,
|
|
165
|
+
description: 'Lista de videos em exibição no dropdown de videos'
|
|
166
|
+
},
|
|
167
|
+
userMenuText: {
|
|
168
|
+
type:Object,
|
|
169
|
+
description: 'Contains the text for the user menu'
|
|
170
|
+
},
|
|
171
|
+
showableProducts: Object,
|
|
172
|
+
activeProducts: Array,
|
|
173
|
+
apps: {
|
|
174
|
+
type: Array,
|
|
175
|
+
default: () => [],
|
|
176
|
+
description: 'Apps that will me showed in header app section'
|
|
177
|
+
},
|
|
178
|
+
gridApps: Array
|
|
179
|
+
},
|
|
167
180
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
link: "",
|
|
175
|
-
title: ""
|
|
176
|
-
},
|
|
177
|
-
};
|
|
178
|
-
},
|
|
179
|
-
methods: {
|
|
180
|
-
capitalizeFirstLetter(string) {
|
|
181
|
-
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
182
|
-
},
|
|
183
|
-
isElementClassContain(element, typeClass) {
|
|
184
|
-
return element.classList.contains(typeClass)
|
|
185
|
-
},
|
|
186
|
-
fromNow(date) {
|
|
187
|
-
return moment(date).locale('pt-BR').fromNow();
|
|
188
|
-
},
|
|
189
|
-
openModalVideo(video){
|
|
190
|
-
this.videoModalProperties.showModal = true;
|
|
191
|
-
this.videoModalProperties.link = video.link;
|
|
192
|
-
this.videoModalProperties.title = video.title;
|
|
193
|
-
}
|
|
194
|
-
},
|
|
195
|
-
watch: {
|
|
196
|
-
'$route.path'(newRoute, oldRoute) {
|
|
197
|
-
if (this.showMenu) {
|
|
198
|
-
this.closeMenu();
|
|
199
|
-
}
|
|
181
|
+
computed: {
|
|
182
|
+
routeName() {
|
|
183
|
+
const { name } = this.$route;
|
|
184
|
+
return this.capitalizeFirstLetter(name);
|
|
185
|
+
}
|
|
186
|
+
},
|
|
200
187
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
188
|
+
data() {
|
|
189
|
+
return {
|
|
190
|
+
showMenu: false,
|
|
191
|
+
baseURL: process.env.baseAppUrl,
|
|
192
|
+
videoModalProperties: {
|
|
193
|
+
showModal: false,
|
|
194
|
+
link: '',
|
|
195
|
+
title: ''
|
|
196
|
+
},
|
|
197
|
+
listOfLinks: [
|
|
198
|
+
{
|
|
199
|
+
'id' : 'Busca',
|
|
200
|
+
'name' : 'Busca',
|
|
201
|
+
'link' : '/',
|
|
202
|
+
'children' : [
|
|
203
|
+
{
|
|
204
|
+
'id' : 'Buscar',
|
|
205
|
+
'name' : 'Buscar',
|
|
206
|
+
'link' : `${process.env.oldBusinessUrl}/app/search`,
|
|
207
|
+
'isVisible': !this.companyHasProduct(this.showableProducts['BUSCA_AVANCADA']),
|
|
208
|
+
'hasBadge': false,
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
'id' : 'Busca-Avançada',
|
|
212
|
+
'name' : 'Busca Avançada',
|
|
213
|
+
'link' : this.linkProduct('BUSCA_AVANCADA', '/app/search'),
|
|
214
|
+
'isVisible': true,
|
|
215
|
+
'hasBadge': !this.companyHasProduct(this.showableProducts['BUSCA_AVANCADA']),
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
'id' : 'Buscar-Estágio',
|
|
219
|
+
'name' : 'Buscar Estágio',
|
|
220
|
+
'link' : this.linkProduct('BUSCA_AVANCADA', '/search'),
|
|
221
|
+
'isVisible': true,
|
|
222
|
+
'hasBadge': !this.companyHasProduct(this.showableProducts['BUSCA_AVANCADA']),
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
'id' : 'Buscar-PCD',
|
|
226
|
+
'name' : 'Buscar PCD',
|
|
227
|
+
'link' : this.linkProduct('BUSCA_AVANCADA', '/search'),
|
|
228
|
+
'isVisible': true,
|
|
229
|
+
'hasBadge': !this.companyHasProduct(this.showableProducts['BUSCA_AVANCADA']),
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
'id' : 'Buscar-Terceira-Idade',
|
|
233
|
+
'name' : 'Buscar Terceira Idade',
|
|
234
|
+
'link' : this.linkProduct('BUSCA_AVANCADA', '/search'),
|
|
235
|
+
'isVisible': true,
|
|
236
|
+
'hasBadge': !this.companyHasProduct(this.showableProducts['BUSCA_AVANCADA']),
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
'id' : 'Buscar-Jovem-Aprendiz',
|
|
240
|
+
'name' : 'Buscar Jovem Aprendiz',
|
|
241
|
+
'link' : this.linkProduct('BUSCA_AVANCADA', '/search'),
|
|
242
|
+
'isVisible': true,
|
|
243
|
+
'hasBadge': !this.companyHasProduct(this.showableProducts['BUSCA_AVANCADA']),
|
|
244
|
+
}
|
|
245
|
+
]
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
'id' : 'Recrutamento',
|
|
249
|
+
'name' : 'Recrutamento',
|
|
250
|
+
'link' : 'burh.com.br',
|
|
251
|
+
'children' : [
|
|
252
|
+
{
|
|
253
|
+
'id' : 'Abrir-Vaga',
|
|
254
|
+
'name' : 'Abrir Vaga',
|
|
255
|
+
'link' : `${process.env.oldBusinessUrl}/${this.currentCompany.slug}/vagas/criar`,
|
|
256
|
+
'isVisible': !this.companyHasProduct(this.showableProducts['ABRIR_VAGAS_COM_FILTROS_AVANCADOS']),
|
|
257
|
+
'hasBadge': false,
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
'id' : 'Abrir-Vaga-Avançada',
|
|
261
|
+
'name' : 'Abrir Vaga Avançada',
|
|
262
|
+
'link' : this.linkProduct('ABRIR_VAGAS_COM_FILTROS_AVANCADOS', `/${this.currentCompany.slug}/vagas/criar`),
|
|
263
|
+
'isVisible': true,
|
|
264
|
+
'hasBadge': !this.companyHasProduct(this.showableProducts['ABRIR_VAGAS_COM_FILTROS_AVANCADOS']),
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
'id' : 'Gerenciar-Vagas',
|
|
268
|
+
'name' : 'Gerenciar Vagas',
|
|
269
|
+
'link' : `${process.env.oldBusinessUrl}/${this.currentCompany.slug}/vagas`,
|
|
270
|
+
'isVisible': true,
|
|
271
|
+
'hasBadge': false,
|
|
272
|
+
}
|
|
273
|
+
]
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
'id' : 'Universidades',
|
|
277
|
+
'name' : 'Universidades',
|
|
278
|
+
'link' : `${process.env.oldBusinessUrl}/app/university`,
|
|
279
|
+
'children' : []
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
'id' : 'Loja',
|
|
283
|
+
'name' : 'Loja',
|
|
284
|
+
'link' : 'burh.com.br',
|
|
285
|
+
'children' : [
|
|
286
|
+
{
|
|
287
|
+
'id' : 'Teste-DISC',
|
|
288
|
+
'name' : 'Teste Disc',
|
|
289
|
+
'link' : this.linkProduct('TESTE_DISC', '/app/profiler'),
|
|
290
|
+
'isVisible': true,
|
|
291
|
+
'hasBadge': !this.companyHasProduct(this.showableProducts['TESTE_DISC']),
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
'id' : 'Teste-Personalizado',
|
|
295
|
+
'name' : 'Teste Personalizado',
|
|
296
|
+
'link' : this.linkProduct('TESTE_PERSONALIZADO', '/app/testes'),
|
|
297
|
+
'isVisible': true,
|
|
298
|
+
'hasBadge': !this.companyHasProduct(this.showableProducts['TESTE_PERSONALIZADO']),
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
'id' : 'Teste-Proeficiencia',
|
|
302
|
+
'name' : 'Teste de proeficiência',
|
|
303
|
+
'link' : this.linkProduct('TESTE_PROFICIENCIA', '/app/fluenglish'),
|
|
304
|
+
'isVisible': true,
|
|
305
|
+
'hasBadge': !this.companyHasProduct(this.showableProducts['TESTE_PROFICIENCIA']),
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
'id' : 'Enviar-SMS',
|
|
309
|
+
'name' : 'Enviar SMS',
|
|
310
|
+
'link' : this.linkProduct('SMS', `/${this.currentCompany.slug}/apps/sms`),
|
|
311
|
+
'isVisible': true,
|
|
312
|
+
'hasBadge': !this.companyHasProduct(this.showableProducts['SMS']),
|
|
206
313
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
314
|
+
}
|
|
315
|
+
]
|
|
316
|
+
}
|
|
317
|
+
]
|
|
318
|
+
};
|
|
319
|
+
},
|
|
320
|
+
methods: {
|
|
321
|
+
capitalizeFirstLetter(string) {
|
|
322
|
+
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
323
|
+
},
|
|
324
|
+
isElementClassContain(element, typeClass) {
|
|
325
|
+
return element.classList.contains(typeClass);
|
|
326
|
+
},
|
|
327
|
+
fromNow(date) {
|
|
328
|
+
return moment(date).locale('pt-BR').fromNow();
|
|
329
|
+
},
|
|
330
|
+
openModalVideo(video){
|
|
331
|
+
this.videoModalProperties.showModal = true;
|
|
332
|
+
this.videoModalProperties.link = video.link;
|
|
333
|
+
this.videoModalProperties.title = video.title;
|
|
334
|
+
},
|
|
335
|
+
handleAvatarClick(company) {
|
|
336
|
+
this.$emit('company-click', company);
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
watch: {
|
|
340
|
+
'$route.path'(newRoute, oldRoute) {
|
|
341
|
+
if (this.showMenu) {
|
|
342
|
+
this.closeMenu();
|
|
343
|
+
}
|
|
212
344
|
|
|
213
|
-
|
|
214
|
-
|
|
345
|
+
if(this.navbarSearch && newRoute != '/busca'){
|
|
346
|
+
this.menuSearch = '';
|
|
347
|
+
} else {
|
|
348
|
+
this.menuSearch = this.$route.query.term;
|
|
349
|
+
}
|
|
215
350
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
mounted () {
|
|
354
|
+
window.addEventListener('scroll', this.handleScrollNavbar);
|
|
219
355
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
}
|
|
223
|
-
console.log(ListVideos)
|
|
224
|
-
},
|
|
225
|
-
created() {
|
|
356
|
+
let header = document.querySelector('[data-menu="fixed"]');
|
|
357
|
+
let page = document.querySelector('html');
|
|
226
358
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
359
|
+
if (header) {
|
|
360
|
+
page.classList.remove('menu-fixed');
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
if(this.$route.path == '/busca') {
|
|
364
|
+
this.menuSearch = this.$route.query.term;
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
created() {
|
|
368
|
+
},
|
|
369
|
+
destroyed () {
|
|
370
|
+
window.removeEventListener('scroll', this.handleScrollNavbar);
|
|
371
|
+
}
|
|
231
372
|
|
|
232
373
|
};
|
|
233
374
|
|
|
@@ -242,51 +383,53 @@
|
|
|
242
383
|
min-width: 16rem;
|
|
243
384
|
}
|
|
244
385
|
|
|
386
|
+
.white-block {
|
|
387
|
+
.dropdown-menu {
|
|
388
|
+
min-width: 21rem;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
|
|
245
392
|
.navbar-blue {
|
|
246
393
|
background-color: #258bf4 !important;
|
|
394
|
+
.nav-link{
|
|
395
|
+
&:hover{
|
|
396
|
+
color: white;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
247
399
|
}
|
|
248
400
|
|
|
249
401
|
.navbar {
|
|
250
402
|
.navbar-search-light {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
}
|
|
255
|
-
.navbar-search-dark {
|
|
256
|
-
&--focus {
|
|
257
|
-
box-shadow: 0 0 2rem 0 $primary;
|
|
403
|
+
&--focus {
|
|
404
|
+
box-shadow: 0 0 .5rem 0 darken($primary, 20%);
|
|
405
|
+
}
|
|
258
406
|
}
|
|
259
|
-
}
|
|
260
407
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
408
|
+
.navbar-search-dark {
|
|
409
|
+
&--focus {
|
|
410
|
+
box-shadow: 0 0 2rem 0 $primary;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
266
413
|
|
|
267
|
-
|
|
414
|
+
&-company__default {
|
|
415
|
+
position: fixed;
|
|
416
|
+
background-color: $primary;
|
|
417
|
+
border: 0 !important;
|
|
418
|
+
animation: navbarCompanyDefaultLoading .5s;
|
|
419
|
+
}
|
|
268
420
|
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
color: $color-dark;
|
|
274
|
-
}
|
|
421
|
+
&--white{
|
|
422
|
+
.nav-link {
|
|
423
|
+
color: $white;
|
|
424
|
+
}
|
|
275
425
|
}
|
|
276
|
-
}
|
|
277
426
|
}
|
|
278
427
|
|
|
279
428
|
.text-color {
|
|
280
429
|
color: #fff !important;
|
|
281
|
-
&:hover {
|
|
282
|
-
color: #515e7e !important;
|
|
283
|
-
}
|
|
284
430
|
}
|
|
285
431
|
|
|
286
432
|
.white-block {
|
|
287
433
|
color: white;
|
|
288
|
-
&:hover {
|
|
289
|
-
color: #515e7e;
|
|
290
|
-
}
|
|
291
434
|
}
|
|
292
435
|
</style>
|