@burh/nuxt-core 1.0.122 → 1.0.124
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/components/burh-ds/Curriculum/UserCurriculum/UserCvLeftSide.vue +3 -3
- package/components/burh-ds/Curriculum/UserCurriculum/UserCvRightSide.vue +11 -21
- package/components/burh-ds/Curriculum/UserCurriculum/index.vue +0 -12
- package/components/burh-ds/Modals/DropzoneModal.vue +64 -45
- package/package.json +1 -1
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
<p
|
|
36
36
|
v-for="(skill, index) in userData.user_skill"
|
|
37
37
|
:key="`skill-${index}`"
|
|
38
|
-
class="ml-1 mt-1 mb-0"
|
|
38
|
+
class="ml-1 mt-1 mb-0 text-capitalize"
|
|
39
39
|
>
|
|
40
40
|
{{ skill.skill_word }}
|
|
41
41
|
</p>
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
<div class="line"></div>
|
|
50
50
|
|
|
51
51
|
<p
|
|
52
|
-
class="mb-1"
|
|
52
|
+
class="mb-1 text-capitalize"
|
|
53
53
|
v-for="(lan, index) in userData.user_language"
|
|
54
54
|
:key="index"
|
|
55
55
|
>
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
<p
|
|
68
68
|
v-for="(des, index) in userData.user_desired_job"
|
|
69
69
|
:key="`skill-${index}`"
|
|
70
|
-
class="ml-1 mt-1 mb-0"
|
|
70
|
+
class="ml-1 mt-1 mb-0 text-capitalize"
|
|
71
71
|
>
|
|
72
72
|
{{ des.occupation }}
|
|
73
73
|
</p>
|
|
@@ -65,11 +65,12 @@
|
|
|
65
65
|
</div>
|
|
66
66
|
|
|
67
67
|
<input
|
|
68
|
-
class="notes-new pl-4 mt-3 mb-3 form-
|
|
68
|
+
class="notes-new pl-4 mt-3 mb-3 form-rounded"
|
|
69
69
|
type="text"
|
|
70
70
|
placeholder="Escrever anotação"
|
|
71
71
|
v-model="newNote"
|
|
72
72
|
@change="$emit('new-note', newNote, userData.id)"
|
|
73
|
+
v-on:change="cleatInput()"
|
|
73
74
|
/>
|
|
74
75
|
</el-tab-pane>
|
|
75
76
|
</el-tabs>
|
|
@@ -96,16 +97,21 @@ export default {
|
|
|
96
97
|
userData: Object,
|
|
97
98
|
notes: Array
|
|
98
99
|
},
|
|
100
|
+
methods: {
|
|
101
|
+
cleatInput() {
|
|
102
|
+
this.newNote = '';
|
|
103
|
+
}
|
|
104
|
+
},
|
|
99
105
|
data() {
|
|
100
106
|
return {
|
|
101
|
-
activeName: '
|
|
107
|
+
activeName: 'notes',
|
|
102
108
|
newNote: ''
|
|
103
109
|
};
|
|
104
110
|
}
|
|
105
111
|
};
|
|
106
112
|
</script>
|
|
107
113
|
|
|
108
|
-
<style lang="scss">
|
|
114
|
+
<style lang="scss" scoped>
|
|
109
115
|
@import '@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss';
|
|
110
116
|
|
|
111
117
|
.readmore {
|
|
@@ -116,24 +122,6 @@ export default {
|
|
|
116
122
|
-webkit-box-orient: vertical;
|
|
117
123
|
}
|
|
118
124
|
|
|
119
|
-
.tabs {
|
|
120
|
-
.el-tabs__nav-wrap::after {
|
|
121
|
-
background: #fff !important;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.el-tabs__active-bar {
|
|
125
|
-
height: 4px;
|
|
126
|
-
border-radius: 10px 10px 0px 0px;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.el-dialog {
|
|
131
|
-
overflow: hidden;
|
|
132
|
-
border-radius: 10px;
|
|
133
|
-
padding-bottom: 50px;
|
|
134
|
-
max-width: 1500px;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
125
|
.content-right {
|
|
138
126
|
width: 25%;
|
|
139
127
|
}
|
|
@@ -197,6 +185,8 @@ export default {
|
|
|
197
185
|
background: #f5f5f5;
|
|
198
186
|
border-radius: 16.5px;
|
|
199
187
|
border: none;
|
|
188
|
+
|
|
189
|
+
outline: 0;
|
|
200
190
|
}
|
|
201
191
|
|
|
202
192
|
.line {
|
|
@@ -111,18 +111,6 @@ export default {
|
|
|
111
111
|
|
|
112
112
|
.user-pdf {
|
|
113
113
|
background-color: #fff;
|
|
114
|
-
// clip-path: polygon(0 12%, 10% 0, 100% 0, 100% 100%, 0 100%);
|
|
115
|
-
/* clip-path: polygon(
|
|
116
|
-
10% 0%,
|
|
117
|
-
100% 0,
|
|
118
|
-
100% 10%,
|
|
119
|
-
100% 90%,
|
|
120
|
-
90% 100%,
|
|
121
|
-
10% 100%,
|
|
122
|
-
0 100%,
|
|
123
|
-
0% 10%
|
|
124
|
-
); */
|
|
125
|
-
|
|
126
114
|
img {
|
|
127
115
|
width: 100%;
|
|
128
116
|
height: 150px;
|
|
@@ -1,99 +1,118 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<modal
|
|
2
|
+
<modal
|
|
3
|
+
:show.sync="openModal"
|
|
4
|
+
v-on:close="$emit('close-modal-video')"
|
|
5
|
+
modalContentClasses="container-fluid"
|
|
6
|
+
class="modal"
|
|
7
|
+
>
|
|
3
8
|
<template slot="header">
|
|
4
|
-
|
|
5
|
-
|
|
9
|
+
<div class="">
|
|
10
|
+
<h2 class="display-4">Editar capa do treinamento</h2>
|
|
11
|
+
</div>
|
|
12
|
+
</template>
|
|
6
13
|
|
|
7
|
-
<dropzone-file-upload
|
|
14
|
+
<dropzone-file-upload
|
|
15
|
+
v-if="image == null"
|
|
8
16
|
v-on:error="showError"
|
|
9
|
-
|
|
17
|
+
ref="Mydropzone"
|
|
18
|
+
:options="dropzoneOptions"
|
|
19
|
+
v-model="fileToUpload"
|
|
20
|
+
class=""
|
|
21
|
+
/>
|
|
10
22
|
|
|
11
23
|
<div class="row mb-4" v-if="image != null">
|
|
12
|
-
<img class="col-12" :src="image" alt="Cover"
|
|
24
|
+
<img class="col-12" :src="image" alt="Cover" />
|
|
13
25
|
</div>
|
|
14
26
|
|
|
15
27
|
<template slot="footer">
|
|
16
|
-
<base-button type="link" @click="removeImage"
|
|
28
|
+
<base-button type="link" @click="removeImage"
|
|
29
|
+
>Remover Imagem
|
|
17
30
|
</base-button>
|
|
18
|
-
<base-button
|
|
31
|
+
<base-button
|
|
32
|
+
type="primary"
|
|
33
|
+
class="ml-auto"
|
|
34
|
+
role="button"
|
|
19
35
|
@click="saveImage"
|
|
20
36
|
>Salvar Imagem
|
|
21
37
|
</base-button>
|
|
22
|
-
|
|
38
|
+
</template>
|
|
23
39
|
</modal>
|
|
24
40
|
</template>
|
|
25
41
|
<script>
|
|
26
42
|
import DropzoneFileUpload from '@burh/nuxt-core/components/argon-core/Inputs/DropzoneFileUpload.vue';
|
|
27
|
-
import swal from
|
|
43
|
+
import swal from 'sweetalert2';
|
|
28
44
|
|
|
29
45
|
export default {
|
|
30
46
|
components: {
|
|
31
|
-
DropzoneFileUpload
|
|
47
|
+
DropzoneFileUpload
|
|
32
48
|
},
|
|
33
|
-
props:{
|
|
49
|
+
props: {
|
|
34
50
|
show: false,
|
|
35
51
|
image: {
|
|
36
52
|
type: String,
|
|
37
53
|
default: null
|
|
38
54
|
}
|
|
39
55
|
},
|
|
40
|
-
data(){
|
|
41
|
-
return{
|
|
56
|
+
data() {
|
|
57
|
+
return {
|
|
42
58
|
fileToUpload: null,
|
|
43
59
|
dropzoneOptions: {
|
|
44
60
|
maxFiles: 1,
|
|
45
|
-
maxFilesize: .2,
|
|
46
|
-
dictFileTooBig:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
61
|
+
maxFilesize: 0.2, // ESTÁ DEFINIDO TAMANHO MÁXIMO DE 20 KB NA FOTO
|
|
62
|
+
dictFileTooBig:
|
|
63
|
+
'A imagem que você tentou inserir é maior que 200KB',
|
|
64
|
+
dictDefaultMessage: 'Clique ou arraste seu arquivo aqui'
|
|
65
|
+
}
|
|
66
|
+
};
|
|
50
67
|
},
|
|
51
|
-
model:{
|
|
68
|
+
model: {
|
|
52
69
|
prop: 'show'
|
|
53
70
|
},
|
|
54
|
-
computed:{
|
|
55
|
-
openModal:{
|
|
56
|
-
get(){
|
|
57
|
-
return this.show
|
|
71
|
+
computed: {
|
|
72
|
+
openModal: {
|
|
73
|
+
get() {
|
|
74
|
+
return this.show;
|
|
58
75
|
},
|
|
59
|
-
set(show){
|
|
60
|
-
this.$emit('input', show)
|
|
76
|
+
set(show) {
|
|
77
|
+
this.$emit('input', show);
|
|
61
78
|
}
|
|
62
79
|
}
|
|
63
80
|
},
|
|
64
|
-
methods:{
|
|
81
|
+
methods: {
|
|
65
82
|
showError(file, message) {
|
|
66
83
|
return swal.fire({
|
|
67
|
-
title:
|
|
84
|
+
title: 'Erro',
|
|
68
85
|
text: message,
|
|
69
|
-
type:
|
|
86
|
+
type: 'error',
|
|
70
87
|
buttonsStyling: false,
|
|
71
|
-
confirmButtonText:
|
|
72
|
-
confirmButtonClass:
|
|
88
|
+
confirmButtonText: 'Ok, fechar!',
|
|
89
|
+
confirmButtonClass: 'btn btn-primary btn-fill'
|
|
73
90
|
});
|
|
74
91
|
},
|
|
75
92
|
removeImage() {
|
|
76
|
-
if(!this.image) {
|
|
93
|
+
if (!this.image) {
|
|
77
94
|
this.$refs.Mydropzone.removeAllFiles();
|
|
78
95
|
}
|
|
79
|
-
this.$emit('remove-image')
|
|
96
|
+
this.$emit('remove-image');
|
|
80
97
|
},
|
|
81
98
|
async saveImage() {
|
|
82
|
-
if(this.fileToUpload != null) {
|
|
83
|
-
let image = this.fileToUpload
|
|
84
|
-
|
|
99
|
+
if (this.fileToUpload != null) {
|
|
100
|
+
let image = this.fileToUpload;
|
|
101
|
+
if (image[0].size <= 200000) {
|
|
102
|
+
this.$emit('save-img', image);
|
|
103
|
+
}
|
|
85
104
|
}
|
|
86
105
|
|
|
87
|
-
this.$emit('close-modal-video')
|
|
106
|
+
this.$emit('close-modal-video');
|
|
88
107
|
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
108
|
+
}
|
|
109
|
+
};
|
|
91
110
|
</script>
|
|
92
111
|
<style lang="scss" scoped>
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}
|
|
112
|
+
/deep/.dropzone {
|
|
113
|
+
button.dz-button {
|
|
114
|
+
background-color: transparent;
|
|
115
|
+
border: 0;
|
|
98
116
|
}
|
|
99
|
-
|
|
117
|
+
}
|
|
118
|
+
</style>
|