@burh/nuxt-core 1.0.460 → 1.0.461
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.
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
<span @click="handleClick">
|
|
3
3
|
<div class="media align-items-center">
|
|
4
4
|
<span class="avatar avatar-sm rounded-circle">
|
|
5
|
-
<
|
|
5
|
+
<image-with-fallback
|
|
6
|
+
:src="logo"
|
|
7
|
+
:alt="`Logo da empresa ${name}`"
|
|
8
|
+
:fallbackText="name"
|
|
9
|
+
/>
|
|
6
10
|
</span>
|
|
7
11
|
<div class="media-body ml-2 d-none d-lg-block" v-if="!isCompany">
|
|
8
12
|
<span class="mb-0 text-sm font-weight-bold">
|
|
@@ -3,15 +3,11 @@
|
|
|
3
3
|
<div class="profile w-100 text-center">
|
|
4
4
|
<div class="avatar">
|
|
5
5
|
<image-with-fallback
|
|
6
|
-
v-if="userData.urlAvatar"
|
|
7
6
|
:src="userData.urlAvatar"
|
|
8
7
|
:alt="userData.name"
|
|
9
8
|
:fallbackText="userData.name"
|
|
10
9
|
fallbackSize="1024"
|
|
11
10
|
/>
|
|
12
|
-
<div v-else class=".">
|
|
13
|
-
{{ userData.name }}
|
|
14
|
-
</div>
|
|
15
11
|
</div>
|
|
16
12
|
|
|
17
13
|
<h5
|
|
@@ -98,9 +98,9 @@
|
|
|
98
98
|
:key="index"
|
|
99
99
|
>
|
|
100
100
|
<button
|
|
101
|
+
v-if="buttons.id != 8"
|
|
101
102
|
role="button"
|
|
102
103
|
class="tag tag-outline-primary d-block w-100 buttons"
|
|
103
|
-
:id="'button-' + buttons.id"
|
|
104
104
|
:value="buttons.value"
|
|
105
105
|
:class="
|
|
106
106
|
buttons.id == currentSelectedButton
|
|
@@ -115,6 +115,26 @@
|
|
|
115
115
|
></i>
|
|
116
116
|
<small>{{ buttons.time }}</small>
|
|
117
117
|
</button>
|
|
118
|
+
<div :class="
|
|
119
|
+
buttons.id == currentSelectedButton
|
|
120
|
+
? 'active-time'
|
|
121
|
+
: ''" class="custom-time-div">
|
|
122
|
+
<i
|
|
123
|
+
v-if="buttons.id == currentSelectedButton"
|
|
124
|
+
class="fas fa-check mr-1 custom-time-icon"
|
|
125
|
+
></i>
|
|
126
|
+
<input
|
|
127
|
+
v-if="buttons.id == 8"
|
|
128
|
+
:placeholder="buttons.time"
|
|
129
|
+
v-model="buttons.value"
|
|
130
|
+
@change="setValueChange()"
|
|
131
|
+
@click="setInitValue(buttons.id)"
|
|
132
|
+
:class="currentSelectedButton == buttons.id ? 'active-custom': '' "
|
|
133
|
+
class="d-block w-100 buttons tag tag-outline-primary custom-time"
|
|
134
|
+
type="text"
|
|
135
|
+
v-mask="['##:##:##']"
|
|
136
|
+
/>
|
|
137
|
+
</div>
|
|
118
138
|
</div>
|
|
119
139
|
</div>
|
|
120
140
|
</div>
|
|
@@ -142,11 +162,12 @@
|
|
|
142
162
|
</template>
|
|
143
163
|
<script>
|
|
144
164
|
import { mask } from 'vue-the-mask';
|
|
165
|
+
import swal from 'sweetalert2';
|
|
145
166
|
import { Select, Option } from 'element-ui';
|
|
146
167
|
export default {
|
|
147
168
|
components: {
|
|
148
169
|
[Select.name]: Select,
|
|
149
|
-
[Option.name]: Option
|
|
170
|
+
[Option.name]: Option,
|
|
150
171
|
},
|
|
151
172
|
directives: { mask },
|
|
152
173
|
data() {
|
|
@@ -197,14 +218,14 @@ export default {
|
|
|
197
218
|
buttons: {
|
|
198
219
|
type: Array,
|
|
199
220
|
default: () => [
|
|
200
|
-
{ id: '1', time: '5 minutos', value: '00:05:00' },
|
|
201
|
-
{ id: '2', time: '10 minutos', value: '00:10:00' },
|
|
202
|
-
{ id: '3', time: '15 minutos', value: '00:15:00' },
|
|
203
|
-
{ id: '4', time: '30 minutos', value: '00:30:00' },
|
|
204
|
-
{ id: '5', time: '45 minutos', value: '00:45:00' },
|
|
205
|
-
{ id: '6', time: '60 minutos', value: '01:00:00' },
|
|
206
|
-
{ id: '7', time: '2 horas', value: '02:00:00' },
|
|
207
|
-
{ id: '8', time: '
|
|
221
|
+
{ id: '1', time: '5 minutos', value: '00:05:00', custom: false },
|
|
222
|
+
{ id: '2', time: '10 minutos', value: '00:10:00', custom: false },
|
|
223
|
+
{ id: '3', time: '15 minutos', value: '00:15:00', custom: false },
|
|
224
|
+
{ id: '4', time: '30 minutos', value: '00:30:00', custom: false },
|
|
225
|
+
{ id: '5', time: '45 minutos', value: '00:45:00', custom: false },
|
|
226
|
+
{ id: '6', time: '60 minutos', value: '01:00:00', custom: false },
|
|
227
|
+
{ id: '7', time: '2 horas', value: '02:00:00', custom: false },
|
|
228
|
+
{ id: '8', time: 'Outro', value: null, custom: true }
|
|
208
229
|
],
|
|
209
230
|
description: 'Botoes de tempo'
|
|
210
231
|
},
|
|
@@ -295,11 +316,28 @@ export default {
|
|
|
295
316
|
set(show) {
|
|
296
317
|
this.$emit('input', show);
|
|
297
318
|
}
|
|
298
|
-
}
|
|
319
|
+
},
|
|
299
320
|
},
|
|
300
321
|
methods: {
|
|
322
|
+
setInitValue(id){
|
|
323
|
+
this.currentSelectedButton = id;
|
|
324
|
+
let getIndex = this.buttons.findIndex((e)=>e.custom == true);
|
|
325
|
+
if(!this.buttons[getIndex].value){
|
|
326
|
+
this.buttons[getIndex].value = '00:00:00';
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
setValueChange(){
|
|
330
|
+
this.configInfo.selectedTime = this.buttons.find((e)=>e.custom == true).value;
|
|
331
|
+
},
|
|
301
332
|
loadTime() {
|
|
302
|
-
let time =
|
|
333
|
+
let time = null;
|
|
334
|
+
if(this.time){
|
|
335
|
+
time = this.buttons.find(e => e.value === this.time);
|
|
336
|
+
if(!time){
|
|
337
|
+
time = this.buttons.find(e => e.custom === true);
|
|
338
|
+
time.value = this.time;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
303
341
|
if (time != null) {
|
|
304
342
|
this.currentSelectedButton = time.id;
|
|
305
343
|
this.configInfo.selectedTime = this.time;
|
|
@@ -312,16 +350,37 @@ export default {
|
|
|
312
350
|
}
|
|
313
351
|
},
|
|
314
352
|
timeSelection(buttonId) {
|
|
315
|
-
let btn =
|
|
353
|
+
let btn = this.buttons.find((e)=>e.id == buttonId);
|
|
354
|
+
this.buttons[7].value = null;
|
|
316
355
|
this.configInfo.selectedTime = btn.value;
|
|
317
356
|
this.currentSelectedButton = buttonId;
|
|
318
357
|
},
|
|
319
358
|
async sendConfig() {
|
|
359
|
+
let customButton = this.buttons.find((e)=>e.custom == true);
|
|
320
360
|
const pass = await this.$refs.appConfigModal.validate();
|
|
321
361
|
if (!pass) {
|
|
322
362
|
return;
|
|
323
363
|
}
|
|
324
364
|
let config;
|
|
365
|
+
if(this.currentSelectedButton == customButton.id){
|
|
366
|
+
let minuteReplace = customButton.value.search(60);
|
|
367
|
+
let timeReplaced = customButton.value.replaceAll(':', '');
|
|
368
|
+
|
|
369
|
+
if(timeReplaced == '000000' || timeReplaced.length < 6){
|
|
370
|
+
return this.showMessage('Tempo inválido');
|
|
371
|
+
}
|
|
372
|
+
if(timeReplaced > 240000){
|
|
373
|
+
return this.showMessage('O tempo não pode ser maior que 24 horas');
|
|
374
|
+
}
|
|
375
|
+
if((minuteReplace && minuteReplace >= 0 && minuteReplace == 3)
|
|
376
|
+
|| customButton.value[3] + customButton.value[4] > 60 ){
|
|
377
|
+
return this.showMessage('Insira um valor entre 00 e 59 para o minuto');
|
|
378
|
+
}
|
|
379
|
+
if(minuteReplace && minuteReplace >= 0 && minuteReplace == 6
|
|
380
|
+
|| customButton.value[6] + customButton.value[7] > 60){
|
|
381
|
+
return this.showMessage('Insira um valor entre 00 e 59 para o segundo');
|
|
382
|
+
}
|
|
383
|
+
}
|
|
325
384
|
if (!this.isCourse) {
|
|
326
385
|
config = {
|
|
327
386
|
title: this.configInfo.title,
|
|
@@ -339,6 +398,19 @@ export default {
|
|
|
339
398
|
}
|
|
340
399
|
this.$emit('send-config-info', config);
|
|
341
400
|
this.openModal = false;
|
|
401
|
+
},
|
|
402
|
+
showMessage(title, type = 'error'){
|
|
403
|
+
const Toast = swal.mixin({
|
|
404
|
+
toast: true,
|
|
405
|
+
position: 'top-end',
|
|
406
|
+
showConfirmButton: false,
|
|
407
|
+
timer: 3100,
|
|
408
|
+
});
|
|
409
|
+
|
|
410
|
+
return Toast.fire({
|
|
411
|
+
type: type,
|
|
412
|
+
title: title
|
|
413
|
+
});
|
|
342
414
|
}
|
|
343
415
|
}
|
|
344
416
|
};
|
|
@@ -388,3 +460,30 @@ export default {
|
|
|
388
460
|
}
|
|
389
461
|
}
|
|
390
462
|
</style>
|
|
463
|
+
<style lang="scss" scoped>
|
|
464
|
+
.custom-time::placeholder{
|
|
465
|
+
font-size: 80%;
|
|
466
|
+
color:#00b388;
|
|
467
|
+
}
|
|
468
|
+
.custom-time:hover::placeholder{
|
|
469
|
+
color: #fff;
|
|
470
|
+
}
|
|
471
|
+
.active-time{
|
|
472
|
+
background-color:#00B388;
|
|
473
|
+
}
|
|
474
|
+
.custom-time-div{
|
|
475
|
+
position: relative;
|
|
476
|
+
.custom-time-icon{
|
|
477
|
+
position:absolute;
|
|
478
|
+
top:1rem;
|
|
479
|
+
left:1.5rem;
|
|
480
|
+
color:#fff;
|
|
481
|
+
}
|
|
482
|
+
.active-custom{
|
|
483
|
+
color: #fff !important;
|
|
484
|
+
&::placeholder{
|
|
485
|
+
color: #fff !important;
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
</style>
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
<ul class="product__content--list">
|
|
30
30
|
<li><a :href="`${baseAppUrl}/busca`">Busca Avançada</a></li>
|
|
31
31
|
<li>
|
|
32
|
-
<a :href="`${
|
|
32
|
+
<a :href="`${baseAppUrl}/recrutamento`"
|
|
33
33
|
>Recrutamento</a
|
|
34
34
|
>
|
|
35
35
|
</li>
|
|
36
36
|
<li>
|
|
37
|
-
<a :href="`${
|
|
37
|
+
<a :href="`${baseAppUrl}/universidades`"
|
|
38
38
|
>Busca por Universidades</a
|
|
39
39
|
>
|
|
40
40
|
</li>
|
|
@@ -170,15 +170,15 @@ export default {
|
|
|
170
170
|
data() {
|
|
171
171
|
return {
|
|
172
172
|
year: new Date().getFullYear(),
|
|
173
|
-
url: '',
|
|
174
|
-
baseAppUrl: '',
|
|
175
|
-
oldBusinessUrl: ''
|
|
176
173
|
};
|
|
177
174
|
},
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
175
|
+
computed: {
|
|
176
|
+
url() {
|
|
177
|
+
return process.env.baseUserUrl;
|
|
178
|
+
},
|
|
179
|
+
baseAppUrl() {
|
|
180
|
+
return process.env.baseAppUrl;
|
|
181
|
+
}
|
|
182
182
|
}
|
|
183
183
|
};
|
|
184
184
|
</script>
|