@burh/nuxt-core 1.0.160 → 1.0.162

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.
@@ -1,300 +1,339 @@
1
- <template>
2
- <div class="bg-white content-middle">
3
- <!-- FERRAMENTAS -->
4
- <div class="tools mt-3">
5
- <button
6
- @click="$emit(tool.event)"
7
- class="ml-3"
8
- v-for="(tool, index) in tools"
9
- :key="index"
10
- >
11
- {{ tool.name }}
12
- </button>
13
- </div>
14
-
15
- <!-- SOBRE -->
16
- <div
17
- v-show="userData.user_complementary_information.about"
18
- class="about content-block mt-5 ml-3 mr-3"
19
- >
20
- <h5 class="font-weight-bold">Sobre</h5>
21
- <p
22
- id="USER_ABOUT"
23
- class="mb-0"
24
- :class="
25
- !wordIsLesserThan(
26
- userData.user_complementary_information.about
27
- ) && 'readmore'
28
- "
29
- >
30
- {{ userData.user_complementary_information.about }}
31
- </p>
32
- <a
33
- href="#"
34
- aria-label="expandir conteudo"
35
- v-show="
36
- userData.user_complementary_information.about &&
37
- !wordIsLesserThan(
38
- userData.user_complementary_information.about
39
- )
40
- "
41
- @click.prevent.stop="toggleReadMore($event, 'USER_ABOUT')"
42
- >Ler mais</a
43
- >
44
- </div>
45
-
46
- <!-- EDUCAÇÃO -->
47
- <h5 class="font-weight-bold mt-4 ml-3">Educação</h5>
48
- <div
49
- v-show="userData.user_education.length > 0"
50
- class="education ml-3"
51
- v-for="(edu, index) in userData.user_education"
52
- :key="index"
53
- >
54
- <p class="sub-title">{{ edu.formation }}</p>
55
- <p class="info-text">{{ edu.institution }}</p>
56
- <span class="info-text">
57
- {{ edu.start_month }}/{{ edu.start_year }} -
58
- {{ treatEndDate(edu.end_month, edu.end_year) }}
59
- {{ getTime(false, edu) }}
60
- {{
61
- edu.user_education_period
62
- ? '-' + edu.user_education_period.name
63
- : ''
64
- }}
65
- </span>
66
- </div>
67
-
68
- <!-- EXPERIÊNCIAS -->
69
- <h5 class="font-weight-bold mt-4 ml-3">Experiência</h5>
70
- <div
71
- v-show="userData.user_experience.length > 0"
72
- class="experience ml-3 mr-3"
73
- v-for="(exp, index) in userData.user_experience"
74
- :key="`experience-${index}`"
75
- >
76
- <p class="sub-title">{{ exp.job_title }}</p>
77
- <p class="info-text">{{ exp.company }}, {{ exp.location }}</p>
78
- <span class="info-text">
79
- {{ exp.start_month }}/{{ exp.start_year }} -
80
- {{ treatEndDate(exp.end_month, exp.end_year) }}
81
- {{ getTime(true, exp) }}
82
- </span>
83
-
84
- <p
85
- :id="`USER_EXPERIENCE-${index}`"
86
- class="description mt-4 mb-0"
87
- :class="!wordIsLesserThan(exp.description) && 'readmore'"
88
- >
89
- {{ exp.description }}
90
- </p>
91
-
92
- <a
93
- href="#"
94
- aria-label="expandir conteudo"
95
- v-show="!wordIsLesserThan(exp.description)"
96
- @click.prevent.stop="
97
- toggleReadMore($event, `USER_EXPERIENCE-${index}`)
98
- "
99
- >Ler mais</a
100
- ><br /><br />
101
- </div>
102
-
103
- <!-- CURSOS -->
104
- <h5 class="font-weight-bold mt-1 ml-3">Cursos</h5>
105
- <div
106
- v-show="userData.user_course.length > 0"
107
- class="courses ml-3"
108
- v-for="(cou, index) in userData.user_course"
109
- :key="`course-${index}`"
110
- >
111
- <p class="sub-title">{{ cou.institution }}</p>
112
- <p class="info-text mb-3">
113
- {{ cou.name }} - {{ cou.end_year }}
114
- {{ getTime(false, cou) }}
115
- </p>
116
- </div>
117
- </div>
118
- </template>
119
-
120
- <script>
121
- import getPrefixes from '~/util/getPrefixes.js';
122
-
123
- export default {
124
- name: 'user-cv-middle',
125
- props: {
126
- userData: Object,
127
- tools: {
128
- type: Array,
129
- default: () => []
130
- }
131
- },
132
- methods: {
133
- toggleReadMore(event, id) {
134
- const element = document.getElementById(id);
135
- element.classList.toggle('readmore');
136
- event.target.innerText == 'Ler mais'
137
- ? (event.target.innerText = 'Esconder')
138
- : (event.target.innerText = 'Ler mais');
139
- },
140
- getTime(
141
- isExperience,
142
- { start_year = null, end_year = null, start_month, end_month },
143
- textHappening = 'Cursando'
144
- ) {
145
- const isHappening = !end_month && !end_year;
146
-
147
- if (isHappening) {
148
- return isExperience === true ? 'Atualmente' : textHappening;
149
- }
150
-
151
- const dateInitial = this.$moment(
152
- ['1', start_month.toString(), start_year.toString()],
153
- 'DD/MM/YYYY'
154
- );
155
- const dateDone = this.$moment(
156
- ['1', end_month.toString(), end_year.toString()],
157
- 'DD/MM/YYYY'
158
- );
159
- const diffDuration = this.$moment.duration(
160
- dateDone.diff(dateInitial)
161
- );
162
- const years = diffDuration.years();
163
- const months = diffDuration.months();
164
-
165
- if (years) {
166
- return years > 1 ? `(${years} anos)` : `(${years} ano)`;
167
- }
168
-
169
- return months > 1
170
- ? `(${months} meses)`
171
- : months == 1
172
- ? `(${months} mês)`
173
- : '';
174
- },
175
- languageLevel(level) {
176
- switch (parseInt(level)) {
177
- case 1:
178
- return 'Iniciante';
179
- case 2:
180
- return 'Elementar';
181
- case 3:
182
- return 'Pré-intermediário';
183
- case 4:
184
- return 'Intermediário';
185
- case 5:
186
- return 'Intermediário Superior';
187
- case 6:
188
- return 'Avançado';
189
- case 7:
190
- return 'Fluente';
191
- default:
192
- return '';
193
- }
194
- },
195
- treatPhone(phone) {
196
- if (phone) {
197
- if (phone == '0' || phone.length < 9 || !phone) {
198
- return 'não cadastrado';
199
- }
200
- }
201
-
202
- return phone;
203
- },
204
- treatCellphone(cellphone) {
205
- if (cellphone) {
206
- if (cellphone == '0' || cellphone.length < 11 || !cellphone) {
207
- return 'não cadastrado';
208
- }
209
- }
210
-
211
- return cellphone;
212
- },
213
- handleGetPrefixes(name = '') {
214
- return getPrefixes(name);
215
- },
216
- treatEndDate(end_month, end_year) {
217
- if (end_month && end_year) {
218
- return `${end_month}/${end_year}`;
219
- }
220
- return '';
221
- },
222
- wordIsLesserThan(word, value = 300) {
223
- return word && word.length < value;
224
- }
225
- }
226
- };
227
- </script>
228
-
229
- <style lang="scss" scoped>
230
- @import '@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss';
231
- .content-middle {
232
- width: 50%;
233
- border-right: 1px solid #ececec5c;
234
- word-break: break-word !important;
235
- }
236
-
237
- .readmore {
238
- overflow: hidden;
239
- text-overflow: ellipsis;
240
- display: -webkit-box;
241
- -webkit-line-clamp: 3;
242
- -webkit-box-orient: vertical;
243
- }
244
-
245
- .tools {
246
- flex-wrap: wrap;
247
- button {
248
- width: 117px;
249
- height: 29px;
250
- border: none;
251
- margin-top: 15px;
252
-
253
- background: #5983fe;
254
- border-radius: 16px;
255
- color: #fff;
256
-
257
- font-size: 12px;
258
- font-weight: 600;
259
- }
260
- }
261
-
262
- .education {
263
- margin-top: 15px;
264
- }
265
-
266
- .experience {
267
- .description {
268
- font-size: 14px;
269
- color: #62778c;
270
- }
271
-
272
- a {
273
- margin-bottom: 1px;
274
- }
275
- }
276
-
277
- .sub-title {
278
- margin-bottom: 1px;
279
-
280
- font-weight: 600;
281
- font-size: 14px;
282
- line-height: 21px;
283
- color: #62778c;
284
- text-transform: uppercase;
285
- }
286
-
287
- .info-text {
288
- margin-bottom: 1px;
289
-
290
- font-size: 14px;
291
- color: #8da2b5;
292
- }
293
-
294
- .content-block {
295
- p {
296
- font-size: 14px;
297
- color: #62778c;
298
- }
299
- }
300
- </style>
1
+ <template>
2
+ <div class="bg-white content-middle">
3
+ <!-- FERRAMENTAS -->
4
+ <div class="tools mt-3">
5
+ <button
6
+ @click="$emit(tool.event)"
7
+ class="ml-3"
8
+ v-for="(tool, index) in tools"
9
+ :key="index"
10
+ >
11
+ {{ tool.name }}
12
+ </button>
13
+ </div>
14
+
15
+ <!-- SOBRE -->
16
+ <div
17
+ v-show="userData.user_complementary_information.about"
18
+ class="about content-block mt-5 ml-3 mr-3"
19
+ >
20
+ <h5 class="font-weight-bold">Sobre</h5>
21
+ <p
22
+ id="USER_ABOUT"
23
+ class="mb-0"
24
+ :class="
25
+ !wordIsLesserThan(
26
+ userData.user_complementary_information.about
27
+ ) && 'readmore'
28
+ "
29
+ >
30
+ {{ userData.user_complementary_information.about }}
31
+ </p>
32
+ <a
33
+ href="#"
34
+ aria-label="expandir conteudo"
35
+ v-show="
36
+ userData.user_complementary_information.about &&
37
+ !wordIsLesserThan(
38
+ userData.user_complementary_information.about
39
+ )
40
+ "
41
+ @click.prevent.stop="toggleReadMore($event, 'USER_ABOUT')"
42
+ >Ler mais</a
43
+ >
44
+ </div>
45
+
46
+ <!-- EDUCAÇÃO -->
47
+ <h5 class="font-weight-bold mt-4 ml-3">Educação</h5>
48
+ <div
49
+ v-show="userData.user_education.length > 0"
50
+ class="education ml-3"
51
+ v-for="(edu, index) in filterByDate(userData.user_education, 'old')"
52
+ :key="index"
53
+ >
54
+ <p class="sub-title">{{ edu.formation }}</p>
55
+ <p class="info-text">{{ edu.institution }}</p>
56
+ <span class="info-text">
57
+ {{ edu.start_month }}/{{ edu.start_year }} -
58
+ {{ treatEndDate(edu.end_month, edu.end_year) }}
59
+ {{ getTime(false, edu) }}
60
+ {{
61
+ edu.user_education_period
62
+ ? '-' + edu.user_education_period.name
63
+ : ''
64
+ }}
65
+ </span>
66
+ </div>
67
+
68
+ <!-- EXPERIÊNCIAS -->
69
+ <h5 class="font-weight-bold mt-4 ml-3">Experiência</h5>
70
+ <div
71
+ v-show="userData.user_experience.length > 0"
72
+ class="experience ml-3 mr-3"
73
+ v-for="(exp, index) in filterByDate(userData.user_experience)"
74
+ :key="`experience-${index}`"
75
+ >
76
+ <p class="sub-title">{{ exp.job_title }}</p>
77
+ <p class="info-text">{{ exp.company }}, {{ exp.location }}</p>
78
+ <span class="info-text">
79
+ {{ exp.start_month }}/{{ exp.start_year }} -
80
+ {{ treatEndDate(exp.end_month, exp.end_year) }}
81
+ {{ getTime(true, exp) }}
82
+ </span>
83
+
84
+ <p
85
+ :id="`USER_EXPERIENCE-${index}`"
86
+ class="description mt-4 mb-0"
87
+ :class="!wordIsLesserThan(exp.description) && 'readmore'"
88
+ >
89
+ {{ exp.description }}
90
+ </p>
91
+
92
+ <a
93
+ href="#"
94
+ aria-label="expandir conteudo"
95
+ v-show="!wordIsLesserThan(exp.description)"
96
+ @click.prevent.stop="
97
+ toggleReadMore($event, `USER_EXPERIENCE-${index}`)
98
+ "
99
+ >Ler mais</a
100
+ ><br /><br />
101
+ </div>
102
+
103
+ <!-- CURSOS -->
104
+ <h5 class="font-weight-bold mt-1 ml-3">Cursos</h5>
105
+ <div
106
+ v-show="userData.user_course.length > 0"
107
+ class="courses ml-3"
108
+ v-for="(cou, index) in filterByDate(userData.user_course, 'old')"
109
+ :key="`course-${index}`"
110
+ >
111
+ <p class="sub-title">{{ cou.institution }}</p>
112
+ <p class="info-text mb-3">
113
+ {{ cou.name }} - {{ cou.end_year }}
114
+ {{ getTime(false, cou) }}
115
+ </p>
116
+ </div>
117
+ </div>
118
+ </template>
119
+
120
+ <script>
121
+ import getPrefixes from '~/util/getPrefixes.js';
122
+
123
+ export default {
124
+ name: 'user-cv-middle',
125
+ props: {
126
+ userData: Object,
127
+ tools: {
128
+ type: Array,
129
+ default: () => []
130
+ }
131
+ },
132
+ methods: {
133
+ filterByDate(data, by = 'new') {
134
+ let sortedArray = data.sort((a, b) => {
135
+ a = [
136
+ a.start_month,
137
+ a.start_year,
138
+ a.end_month | 12,
139
+ a.end_year | 9999
140
+ ];
141
+
142
+ b = [
143
+ b.start_month,
144
+ b.start_year,
145
+ b.end_month | 12,
146
+ b.end_year | 9999
147
+ ];
148
+
149
+ // Primeiro filtro -> chaves: 0 e 1 -> Filtro por data de inicio
150
+ // Segundo filtro -> chaves: 2 e 3 -> Filtro por data de termino (subir não concluídos para primeiros)
151
+
152
+ let byStart;
153
+ let byEnd;
154
+
155
+ switch (by) {
156
+ case 'old':
157
+ byStart = (new Date(a[1], a[0], 1).getTime() - new Date(b[1], b[0], 1).getTime());
158
+ byEnd = (new Date(b[3], b[2], 1).getTime() - new Date(a[3], a[2], 1).getTime());
159
+ break;
160
+
161
+ default:
162
+ byStart = (new Date(b[1], b[0], 1).getTime() - new Date(a[1], a[0], 1).getTime());
163
+ byEnd = (new Date(b[3], b[2], 1).getTime() - new Date(a[3], a[2], 1).getTime());
164
+ break;
165
+ }
166
+
167
+ return (byStart - byEnd);
168
+ });
169
+
170
+ return sortedArray;
171
+ },
172
+ toggleReadMore(event, id) {
173
+ const element = document.getElementById(id);
174
+ element.classList.toggle('readmore');
175
+ event.target.innerText == 'Ler mais'
176
+ ? (event.target.innerText = 'Esconder')
177
+ : (event.target.innerText = 'Ler mais');
178
+ },
179
+ getTime(
180
+ isExperience,
181
+ { start_year = null, end_year = null, start_month, end_month },
182
+ textHappening = 'Cursando'
183
+ ) {
184
+ const isHappening = !end_month && !end_year;
185
+
186
+ if (isHappening) {
187
+ return isExperience === true ? 'Atualmente' : textHappening;
188
+ }
189
+
190
+ const dateInitial = this.$moment(
191
+ ['1', start_month.toString(), start_year.toString()],
192
+ 'DD/MM/YYYY'
193
+ );
194
+ const dateDone = this.$moment(
195
+ ['1', end_month.toString(), end_year.toString()],
196
+ 'DD/MM/YYYY'
197
+ );
198
+ const diffDuration = this.$moment.duration(
199
+ dateDone.diff(dateInitial)
200
+ );
201
+ const years = diffDuration.years();
202
+ const months = diffDuration.months();
203
+
204
+ if (years) {
205
+ return years > 1 ? `(${years} anos)` : `(${years} ano)`;
206
+ }
207
+
208
+ return months > 1
209
+ ? `(${months} meses)`
210
+ : months == 1
211
+ ? `(${months} mês)`
212
+ : '';
213
+ },
214
+ languageLevel(level) {
215
+ switch (parseInt(level)) {
216
+ case 1:
217
+ return 'Iniciante';
218
+ case 2:
219
+ return 'Elementar';
220
+ case 3:
221
+ return 'Pré-intermediário';
222
+ case 4:
223
+ return 'Intermediário';
224
+ case 5:
225
+ return 'Intermediário Superior';
226
+ case 6:
227
+ return 'Avançado';
228
+ case 7:
229
+ return 'Fluente';
230
+ default:
231
+ return '';
232
+ }
233
+ },
234
+ treatPhone(phone) {
235
+ if (phone) {
236
+ if (phone == '0' || phone.length < 9 || !phone) {
237
+ return 'não cadastrado';
238
+ }
239
+ }
240
+
241
+ return phone;
242
+ },
243
+ treatCellphone(cellphone) {
244
+ if (cellphone) {
245
+ if (cellphone == '0' || cellphone.length < 11 || !cellphone) {
246
+ return 'não cadastrado';
247
+ }
248
+ }
249
+
250
+ return cellphone;
251
+ },
252
+ handleGetPrefixes(name = '') {
253
+ return getPrefixes(name);
254
+ },
255
+ treatEndDate(end_month, end_year) {
256
+ if (end_month && end_year) {
257
+ return `${end_month}/${end_year}`;
258
+ }
259
+ return '';
260
+ },
261
+ wordIsLesserThan(word, value = 300) {
262
+ return word && word.length < value;
263
+ }
264
+ }
265
+ };
266
+ </script>
267
+
268
+ <style lang="scss" scoped>
269
+ @import '@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss';
270
+ .content-middle {
271
+ width: 50%;
272
+ border-right: 1px solid #ececec5c;
273
+ word-break: break-word !important;
274
+ }
275
+
276
+ .readmore {
277
+ overflow: hidden;
278
+ text-overflow: ellipsis;
279
+ display: -webkit-box;
280
+ -webkit-line-clamp: 3;
281
+ -webkit-box-orient: vertical;
282
+ }
283
+
284
+ .tools {
285
+ flex-wrap: wrap;
286
+ button {
287
+ width: 117px;
288
+ height: 29px;
289
+ border: none;
290
+ margin-top: 15px;
291
+
292
+ background: #5983fe;
293
+ border-radius: 16px;
294
+ color: #fff;
295
+
296
+ font-size: 12px;
297
+ font-weight: 600;
298
+ }
299
+ }
300
+
301
+ .education {
302
+ margin-top: 15px;
303
+ }
304
+
305
+ .experience {
306
+ .description {
307
+ font-size: 14px;
308
+ color: #62778c;
309
+ }
310
+
311
+ a {
312
+ margin-bottom: 1px;
313
+ }
314
+ }
315
+
316
+ .sub-title {
317
+ margin-bottom: 1px;
318
+
319
+ font-weight: 600;
320
+ font-size: 14px;
321
+ line-height: 21px;
322
+ color: #62778c;
323
+ text-transform: uppercase;
324
+ }
325
+
326
+ .info-text {
327
+ margin-bottom: 1px;
328
+
329
+ font-size: 14px;
330
+ color: #8da2b5;
331
+ }
332
+
333
+ .content-block {
334
+ p {
335
+ font-size: 14px;
336
+ color: #62778c;
337
+ }
338
+ }
339
+ </style>
@@ -1,29 +1,27 @@
1
1
  <template>
2
- <base-dropdown menu-on-right
3
- class="nav-item"
4
- tag="li"
5
- title-tag="a"
6
- >
7
- <business-avatar
8
- :logo="userAvatar"
9
- :userName="userName"
10
- :companyName="companyName"
11
- class="nav-link pr-0 pt-2 pb-2"
12
- :class="textColor"
13
- @click.prevent
14
- slot="title-container"
15
- />
16
- <h6 class="dropdown-header">Entrar como</h6>
17
- <slot name="companies"></slot>
18
- <dropdown-section
19
- v-for="(value, name) in text"
20
- :key="name"
21
- :title="name"
22
- :items="value"
23
- />
24
- <hr class="dropdown-divider">
25
- <sign-out-item @logout="$emit('logout')" />
26
- </base-dropdown>
2
+ <base-dropdown menu-on-right class="nav-item" tag="li" title-tag="a">
3
+ <business-avatar
4
+ :logo="userAvatar"
5
+ :userName="userName"
6
+ :companyName="companyName"
7
+ class="nav-link pr-0 pt-2 pb-2"
8
+ :class="textColor"
9
+ @click.prevent
10
+ slot="title-container"
11
+ />
12
+ <h6 class="dropdown-header">
13
+ {{ isSindipecas ? 'Opções' : 'Entrar como' }}
14
+ </h6>
15
+ <slot name="companies"></slot>
16
+ <dropdown-section
17
+ v-for="(value, name) in text"
18
+ :key="name"
19
+ :title="name"
20
+ :items="value"
21
+ />
22
+ <hr class="dropdown-divider" />
23
+ <sign-out-item @logout="$emit('logout')" />
24
+ </base-dropdown>
27
25
  </template>
28
26
  <script>
29
27
  import DropdownSection from './DropdownSection';
@@ -32,33 +30,34 @@ import AvatarLink from '../Avatar/AvatarLink';
32
30
  import BusinessAvatar from '../Avatar/BusinessAvatar';
33
31
 
34
32
  export default {
35
- name: 'user-menu-dropdown',
36
- components: {
37
- DropdownSection,
38
- SignOutItem,
39
- AvatarLink,
40
- BusinessAvatar
41
- },
42
- props: {
43
- text: Object,
44
- userAvatar: String,
45
- userName: String,
46
- companyLogo: String,
47
- companyName: String,
48
- textColor: String,
49
- companies: Array
50
- },
51
- methods: {
52
- handleCompanyClick(company) {
53
-
54
- }
55
- },
56
- data() {
57
- return {
58
- console : console
59
- };
60
- }
33
+ name: 'user-menu-dropdown',
34
+ components: {
35
+ DropdownSection,
36
+ SignOutItem,
37
+ AvatarLink,
38
+ BusinessAvatar
39
+ },
40
+ props: {
41
+ text: Object,
42
+ userAvatar: String,
43
+ userName: String,
44
+ companyLogo: String,
45
+ companyName: String,
46
+ textColor: String,
47
+ companies: Array,
48
+ isSindipecas: {
49
+ type: Boolean,
50
+ default: false
51
+ }
52
+ },
53
+ methods: {
54
+ handleCompanyClick(company) {}
55
+ },
56
+ data() {
57
+ return {
58
+ console: console
59
+ };
60
+ }
61
61
  };
62
62
  </script>
63
- <style lang="scss" scoped>
64
- </style>
63
+ <style lang="scss" scoped></style>
@@ -1,24 +1,35 @@
1
1
  <template>
2
- <base-nav
3
- container-classes="container-fluid container-fluid--bu"
4
- class="border-bottom navbar-animated navbar-horizontal"
5
- expand="lg"
6
- type="white"
7
- >
8
- <div style="display: flex; " slot="brand">
9
- <avatar-link
10
- :logo="brand"
11
- :name="brandName"
12
- class="row pl-4 nav-link cursor-pointer"
13
- @avatar-click="redirectIndex"
14
- />
15
- <slot name="brand-center" />
16
- </div>
2
+ <base-nav
3
+ container-classes="container-fluid container-fluid--bu"
4
+ class="border-bottom navbar-animated navbar-horizontal"
5
+ expand="lg"
6
+ type="white"
7
+ >
8
+ <div style="display: flex; " slot="brand">
9
+ <avatar-link
10
+ :logo="brand"
11
+ :name="brandName"
12
+ class="row pl-4 nav-link cursor-pointer"
13
+ @avatar-click="redirectIndex"
14
+ />
15
+ <slot name="brand-center" />
16
+ </div>
17
17
 
18
- <a v-if="currentUser && !disabledLinks" :href="urlBackToBusiness" class="btn btn-link">
19
- Voltar para o Burh
20
- </a>
21
- </base-nav>
18
+ <a
19
+ v-if="currentUser && !disabledLinks"
20
+ :href="urlBackToBusiness"
21
+ class="btn btn-link"
22
+ >
23
+ Voltar para o Burh
24
+ </a>
25
+ <user-menu-dropdown
26
+ v-else
27
+ :companyName="'Sindipeças'"
28
+ :userName="brandName"
29
+ :isSindipecas="true"
30
+ @logout="$emit('logout')"
31
+ />
32
+ </base-nav>
22
33
  </template>
23
34
  <script>
24
35
  import BaseNav from '@burh/nuxt-core/components/burh-ds/Navbar/BaseNav.vue';
@@ -27,45 +38,44 @@ import AppLinkArea from '@burh/nuxt-core/components/burh-ds/Dropdown/AppLinkArea
27
38
  import AvatarLink from '@burh/nuxt-core/components/burh-ds/Avatar/AvatarLink.vue';
28
39
 
29
40
  export default {
30
- components: {
31
- BaseNav,
32
- UserMenuDropdown,
33
- AppLinkArea,
34
- AvatarLink,
35
- },
36
- props: {
37
- currentUser: Object,
38
- currentCompany: Object,
39
- userMenuText: Object,
40
- brand: String,
41
- brandName: String,
42
- showableProducts: Object,
43
- activeProducts: Array,
44
- gridApps: Array,
45
- disabledLinks: Boolean
46
- },
47
- data() {
48
- return {
49
- console: console,
50
- indexRoute: String,
41
+ components: {
42
+ BaseNav,
43
+ UserMenuDropdown,
44
+ AppLinkArea,
45
+ AvatarLink
46
+ },
47
+ props: {
48
+ currentUser: Object,
49
+ currentCompany: Object,
50
+ userMenuText: Object,
51
+ brand: String,
52
+ brandName: String,
53
+ showableProducts: Object,
54
+ activeProducts: Array,
55
+ gridApps: Array,
56
+ disabledLinks: Boolean
57
+ },
58
+ data() {
59
+ return {
60
+ console: console,
61
+ indexRoute: String,
51
62
  urlBackToBusiness: process.env.oldBusinessUrl
52
- };
53
- },
54
- methods: {
55
- handleAvatarClick(company) {
56
- this.$emit('company-click', company);
57
- },
58
- redirectIndex() {
59
- if (!this.disabledLinks)
60
- this.$router.push(this.indexRoute);
61
- },
62
- getCurrentApp(){
63
- this.indexRoute = `/${this.$route.path.split('/')[1]}`
64
- },
65
- },
66
- mounted(){
67
- this.getCurrentApp();
68
- }
63
+ };
64
+ },
65
+ methods: {
66
+ handleAvatarClick(company) {
67
+ this.$emit('company-click', company);
68
+ },
69
+ redirectIndex() {
70
+ if (!this.disabledLinks) this.$router.push(this.indexRoute);
71
+ },
72
+ getCurrentApp() {
73
+ this.indexRoute = `/${this.$route.path.split('/')[1]}`;
74
+ }
75
+ },
76
+ mounted() {
77
+ this.getCurrentApp();
78
+ }
69
79
  };
70
80
  </script>
71
81
  <style lang="scss">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burh/nuxt-core",
3
- "version": "1.0.160",
3
+ "version": "1.0.162",
4
4
  "description": "Design System and Components.",
5
5
  "author": "Burh",
6
6
  "scripts": {