@burh/nuxt-core 1.0.128 → 1.0.129
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,215 +1,215 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="bg-white content-right tabs">
|
|
3
|
-
<el-tabs class="mt-3 ml-3 mr-3" v-model="activeName">
|
|
4
|
-
<el-tab-pane label="Histórico" class="history" name="history">
|
|
5
|
-
<p class="notes-title mb-0">Histórico com sua empresa</p>
|
|
6
|
-
<div class="line mb-3"></div>
|
|
7
|
-
|
|
8
|
-
<div
|
|
9
|
-
v-show="userData.user_applied_job.length > 0"
|
|
10
|
-
class="mt-3"
|
|
11
|
-
v-for="(applied, index) in userData.user_applied_job"
|
|
12
|
-
:key="index"
|
|
13
|
-
>
|
|
14
|
-
<p class="history-text mb-0">
|
|
15
|
-
Se candidatou na vaga {{ applied.job.title }}
|
|
16
|
-
</p>
|
|
17
|
-
<span>{{ applied.subscribe_at | convertDate }}</span>
|
|
18
|
-
</div>
|
|
19
|
-
<p
|
|
20
|
-
v-show="userData.user_applied_job.length === 0"
|
|
21
|
-
class="history-text"
|
|
22
|
-
>
|
|
23
|
-
Nenhuma vaga aplicada.
|
|
24
|
-
</p>
|
|
25
|
-
</el-tab-pane>
|
|
26
|
-
<el-tab-pane label="Anotações" name="notes" v-if="isNotesActived">
|
|
27
|
-
<p class="notes-title mb-0">Notas da equipe</p>
|
|
28
|
-
<div class="line mb-3"></div>
|
|
29
|
-
<div
|
|
30
|
-
v-show="notes.length > 0"
|
|
31
|
-
v-for="(note, index) in notes"
|
|
32
|
-
:key="index"
|
|
33
|
-
>
|
|
34
|
-
<div class="notes-baloon">
|
|
35
|
-
<div class="notes-text ml-3 pt-1">
|
|
36
|
-
<p class="mt-3">{{ note.text }}</p>
|
|
37
|
-
</div>
|
|
38
|
-
<div
|
|
39
|
-
class="d-flex justify-content-end align-items-center mr-3"
|
|
40
|
-
>
|
|
41
|
-
<p class="notes-date">
|
|
42
|
-
{{ note.created_at | convertDate }}
|
|
43
|
-
</p>
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
<div class="notes-owner d-flex mt-2">
|
|
47
|
-
<img
|
|
48
|
-
v-show="note.user.urlAvatar"
|
|
49
|
-
:src="note.user.urlAvatar"
|
|
50
|
-
:alt="note.user.name"
|
|
51
|
-
/>
|
|
52
|
-
<div
|
|
53
|
-
v-show="!note.user.urlAvatar"
|
|
54
|
-
class="notes-avatar"
|
|
55
|
-
></div>
|
|
56
|
-
<p class="ml-1">
|
|
57
|
-
{{ note.user.name }}
|
|
58
|
-
</p>
|
|
59
|
-
</div>
|
|
60
|
-
</div>
|
|
61
|
-
<div class="notes-text pt-1" v-show="notes.length === 0">
|
|
62
|
-
<p>Nenhuma nota criada.</p>
|
|
63
|
-
</div>
|
|
64
|
-
|
|
65
|
-
<input
|
|
66
|
-
class="notes-new pl-4 mt-3 mb-3 form-rounded"
|
|
67
|
-
type="text"
|
|
68
|
-
placeholder="Escrever anotação"
|
|
69
|
-
v-model="newNote"
|
|
70
|
-
@change="$emit('new-note', newNote, userData.id)"
|
|
71
|
-
v-on:change="cleatInput()"
|
|
72
|
-
/>
|
|
73
|
-
</el-tab-pane>
|
|
74
|
-
</el-tabs>
|
|
75
|
-
</div>
|
|
76
|
-
</template>
|
|
77
|
-
|
|
78
|
-
<script>
|
|
79
|
-
import { Tabs, TabPane } from 'element-ui';
|
|
80
|
-
|
|
81
|
-
export default {
|
|
82
|
-
name: 'user-cv-left-side',
|
|
83
|
-
filters: {
|
|
84
|
-
convertDate(data) {
|
|
85
|
-
let d = new Date(data);
|
|
86
|
-
let options = { hour: '2-digit', minute: '2-digit' };
|
|
87
|
-
return d.toLocaleDateString('pt-BR', options);
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
components: {
|
|
91
|
-
[Tabs.name]: Tabs,
|
|
92
|
-
[TabPane.name]: TabPane
|
|
93
|
-
},
|
|
94
|
-
props: {
|
|
95
|
-
userData: Object,
|
|
96
|
-
notes: Array,
|
|
97
|
-
activeName: String,
|
|
98
|
-
isNotesActived: {
|
|
99
|
-
type: Boolean,
|
|
100
|
-
default: true
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
methods: {
|
|
104
|
-
cleatInput() {
|
|
105
|
-
this.newNote = '';
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
data() {
|
|
109
|
-
return {
|
|
110
|
-
newNote: '',
|
|
111
|
-
active: this.activeName
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
</script>
|
|
116
|
-
|
|
117
|
-
<style lang="scss" scoped>
|
|
118
|
-
@import '@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss';
|
|
119
|
-
|
|
120
|
-
.readmore {
|
|
121
|
-
overflow: hidden;
|
|
122
|
-
text-overflow: ellipsis;
|
|
123
|
-
display: -webkit-box;
|
|
124
|
-
-webkit-line-clamp: 3;
|
|
125
|
-
-webkit-box-orient: vertical;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.content-right {
|
|
129
|
-
width: 25%;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.notes-title {
|
|
133
|
-
font-size: 14px;
|
|
134
|
-
color: #1d364b;
|
|
135
|
-
font-weight: bold;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.notes-baloon {
|
|
139
|
-
width: 231px;
|
|
140
|
-
height: auto;
|
|
141
|
-
|
|
142
|
-
background: #eff5fd;
|
|
143
|
-
border-radius: 10px 10px 10px 0px;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.notes-text {
|
|
147
|
-
p {
|
|
148
|
-
font-size: 13px;
|
|
149
|
-
color: #62778c;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.notes-date {
|
|
154
|
-
font-size: 11px;
|
|
155
|
-
text-align: right;
|
|
156
|
-
|
|
157
|
-
color: #8da2b5;
|
|
158
|
-
top: calc(50% - 17px / 2 - 444.5px);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.notes-owner {
|
|
162
|
-
img {
|
|
163
|
-
width: 23px;
|
|
164
|
-
height: 23px;
|
|
165
|
-
border-radius: 50%;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.notes-avatar {
|
|
169
|
-
width: 23px;
|
|
170
|
-
height: 23px;
|
|
171
|
-
border-radius: 50%;
|
|
172
|
-
background-color: #adb5bd;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
p {
|
|
176
|
-
font-size: 13px;
|
|
177
|
-
font-weight: 600;
|
|
178
|
-
text-transform: uppercase;
|
|
179
|
-
|
|
180
|
-
color: #62778c;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.notes-new {
|
|
185
|
-
width: 231px;
|
|
186
|
-
height: 33px;
|
|
187
|
-
|
|
188
|
-
background: #f5f5f5;
|
|
189
|
-
border-radius: 16.5px;
|
|
190
|
-
border: none;
|
|
191
|
-
|
|
192
|
-
outline: 0;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.line {
|
|
196
|
-
width: 221px;
|
|
197
|
-
height: 0px;
|
|
198
|
-
|
|
199
|
-
border: 1px solid #ececec;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
.history {
|
|
203
|
-
.history-text {
|
|
204
|
-
font-size: 13px;
|
|
205
|
-
color: #62778c;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
span {
|
|
209
|
-
font-size: 11px;
|
|
210
|
-
line-height: 16px;
|
|
211
|
-
|
|
212
|
-
color: #8da2b5;
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="bg-white content-right tabs">
|
|
3
|
+
<el-tabs class="mt-3 ml-3 mr-3" v-model="activeName">
|
|
4
|
+
<el-tab-pane label="Histórico" class="history" name="history">
|
|
5
|
+
<p class="notes-title mb-0">Histórico com sua empresa</p>
|
|
6
|
+
<div class="line mb-3"></div>
|
|
7
|
+
|
|
8
|
+
<div
|
|
9
|
+
v-show="userData.user_applied_job.length > 0"
|
|
10
|
+
class="mt-3"
|
|
11
|
+
v-for="(applied, index) in userData.user_applied_job"
|
|
12
|
+
:key="index"
|
|
13
|
+
>
|
|
14
|
+
<p class="history-text mb-0">
|
|
15
|
+
Se candidatou na vaga {{ applied.job.title }}
|
|
16
|
+
</p>
|
|
17
|
+
<span>{{ applied.subscribe_at | convertDate }}</span>
|
|
18
|
+
</div>
|
|
19
|
+
<p
|
|
20
|
+
v-show="userData.user_applied_job.length === 0"
|
|
21
|
+
class="history-text"
|
|
22
|
+
>
|
|
23
|
+
Nenhuma vaga aplicada.
|
|
24
|
+
</p>
|
|
25
|
+
</el-tab-pane>
|
|
26
|
+
<el-tab-pane label="Anotações" name="notes" v-if="isNotesActived">
|
|
27
|
+
<p class="notes-title mb-0">Notas da equipe</p>
|
|
28
|
+
<div class="line mb-3"></div>
|
|
29
|
+
<div
|
|
30
|
+
v-show="notes.length > 0"
|
|
31
|
+
v-for="(note, index) in notes"
|
|
32
|
+
:key="index"
|
|
33
|
+
>
|
|
34
|
+
<div class="notes-baloon">
|
|
35
|
+
<div class="notes-text ml-3 pt-1">
|
|
36
|
+
<p class="mt-3">{{ note.text }}</p>
|
|
37
|
+
</div>
|
|
38
|
+
<div
|
|
39
|
+
class="d-flex justify-content-end align-items-center mr-3"
|
|
40
|
+
>
|
|
41
|
+
<p class="notes-date">
|
|
42
|
+
{{ note.created_at | convertDate }}
|
|
43
|
+
</p>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
<div class="notes-owner d-flex mt-2">
|
|
47
|
+
<img
|
|
48
|
+
v-show="note.user.urlAvatar"
|
|
49
|
+
:src="note.user.urlAvatar"
|
|
50
|
+
:alt="note.user.name"
|
|
51
|
+
/>
|
|
52
|
+
<div
|
|
53
|
+
v-show="!note.user.urlAvatar"
|
|
54
|
+
class="notes-avatar"
|
|
55
|
+
></div>
|
|
56
|
+
<p class="ml-1">
|
|
57
|
+
{{ note.user.name }}
|
|
58
|
+
</p>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
<div class="notes-text pt-1" v-show="notes.length === 0">
|
|
62
|
+
<p>Nenhuma nota criada.</p>
|
|
63
|
+
</div>
|
|
64
|
+
|
|
65
|
+
<input
|
|
66
|
+
class="notes-new pl-4 mt-3 mb-3 form-rounded"
|
|
67
|
+
type="text"
|
|
68
|
+
placeholder="Escrever anotação"
|
|
69
|
+
v-model="newNote"
|
|
70
|
+
@change="$emit('new-note', newNote, userData.id)"
|
|
71
|
+
v-on:change="cleatInput()"
|
|
72
|
+
/>
|
|
73
|
+
</el-tab-pane>
|
|
74
|
+
</el-tabs>
|
|
75
|
+
</div>
|
|
76
|
+
</template>
|
|
77
|
+
|
|
78
|
+
<script>
|
|
79
|
+
import { Tabs, TabPane } from 'element-ui';
|
|
80
|
+
|
|
81
|
+
export default {
|
|
82
|
+
name: 'user-cv-left-side',
|
|
83
|
+
filters: {
|
|
84
|
+
convertDate(data) {
|
|
85
|
+
let d = new Date(data);
|
|
86
|
+
let options = { hour: '2-digit', minute: '2-digit' };
|
|
87
|
+
return d.toLocaleDateString('pt-BR', options);
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
components: {
|
|
91
|
+
[Tabs.name]: Tabs,
|
|
92
|
+
[TabPane.name]: TabPane
|
|
93
|
+
},
|
|
94
|
+
props: {
|
|
95
|
+
userData: Object,
|
|
96
|
+
notes: Array,
|
|
97
|
+
activeName: String,
|
|
98
|
+
isNotesActived: {
|
|
99
|
+
type: Boolean,
|
|
100
|
+
default: true
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
methods: {
|
|
104
|
+
cleatInput() {
|
|
105
|
+
this.newNote = '';
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
data() {
|
|
109
|
+
return {
|
|
110
|
+
newNote: '',
|
|
111
|
+
active: this.activeName
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
</script>
|
|
116
|
+
|
|
117
|
+
<style lang="scss" scoped>
|
|
118
|
+
@import '@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss';
|
|
119
|
+
|
|
120
|
+
.readmore {
|
|
121
|
+
overflow: hidden;
|
|
122
|
+
text-overflow: ellipsis;
|
|
123
|
+
display: -webkit-box;
|
|
124
|
+
-webkit-line-clamp: 3;
|
|
125
|
+
-webkit-box-orient: vertical;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.content-right {
|
|
129
|
+
width: 25%;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.notes-title {
|
|
133
|
+
font-size: 14px;
|
|
134
|
+
color: #1d364b;
|
|
135
|
+
font-weight: bold;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.notes-baloon {
|
|
139
|
+
width: 231px;
|
|
140
|
+
height: auto;
|
|
141
|
+
|
|
142
|
+
background: #eff5fd;
|
|
143
|
+
border-radius: 10px 10px 10px 0px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.notes-text {
|
|
147
|
+
p {
|
|
148
|
+
font-size: 13px;
|
|
149
|
+
color: #62778c;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.notes-date {
|
|
154
|
+
font-size: 11px;
|
|
155
|
+
text-align: right;
|
|
156
|
+
|
|
157
|
+
color: #8da2b5;
|
|
158
|
+
top: calc(50% - 17px / 2 - 444.5px);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.notes-owner {
|
|
162
|
+
img {
|
|
163
|
+
width: 23px;
|
|
164
|
+
height: 23px;
|
|
165
|
+
border-radius: 50%;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.notes-avatar {
|
|
169
|
+
width: 23px;
|
|
170
|
+
height: 23px;
|
|
171
|
+
border-radius: 50%;
|
|
172
|
+
background-color: #adb5bd;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
p {
|
|
176
|
+
font-size: 13px;
|
|
177
|
+
font-weight: 600;
|
|
178
|
+
text-transform: uppercase;
|
|
179
|
+
|
|
180
|
+
color: #62778c;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.notes-new {
|
|
185
|
+
width: 231px;
|
|
186
|
+
height: 33px;
|
|
187
|
+
|
|
188
|
+
background: #f5f5f5;
|
|
189
|
+
border-radius: 16.5px;
|
|
190
|
+
border: none;
|
|
191
|
+
|
|
192
|
+
outline: 0;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.line {
|
|
196
|
+
width: 221px;
|
|
197
|
+
height: 0px;
|
|
198
|
+
|
|
199
|
+
border: 1px solid #ececec;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.history {
|
|
203
|
+
.history-text {
|
|
204
|
+
font-size: 13px;
|
|
205
|
+
color: #62778c;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
span {
|
|
209
|
+
font-size: 11px;
|
|
210
|
+
line-height: 16px;
|
|
211
|
+
|
|
212
|
+
color: #8da2b5;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
</style>
|