@burh/nuxt-core 1.0.263 → 1.0.264

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.
@@ -0,0 +1,166 @@
1
+ <template>
2
+ <div class="recruitment__user__card">
3
+ <div
4
+ class="recruitment__user__card__header"
5
+ :class="[
6
+ { 'header__cover--shadow': cover },
7
+ { 'header__cover--glass': glass }
8
+ ]"
9
+ >
10
+ <div class="recruitment__user__card__header__actions">
11
+ <div class="left">
12
+ <slot name="header-left" />
13
+ </div>
14
+ <div class="right">
15
+ <slot name="header-right" />
16
+ </div>
17
+ </div>
18
+ <img
19
+ :src="cover"
20
+ class="user__cover"
21
+ >
22
+ </div>
23
+
24
+ <div class="recruitment__user__card__content">
25
+ <img :src="avatar" :alt="name">
26
+
27
+ <slot name="card-content" />
28
+ </div>
29
+
30
+ <div class="recruitment__user__card__footer">
31
+ <slot name="card-footer" />
32
+ </div>
33
+ </div>
34
+ </template>
35
+
36
+ <script>
37
+ export default {
38
+ name: 'recruitment-user-card',
39
+ props: {
40
+ cover: {
41
+ type: String,
42
+ default: null
43
+ },
44
+ avatar: {
45
+ type: String,
46
+ default: null
47
+ },
48
+ name: {
49
+ type: String,
50
+ default: null
51
+ },
52
+ glass: {
53
+ type: Boolean,
54
+ default: false
55
+ }
56
+ }
57
+ };
58
+ </script>
59
+
60
+ <style lang="scss" scoped>
61
+
62
+ .recruitment__user__card {
63
+ background: #fff;
64
+ box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
65
+ border-radius: 4px;
66
+ overflow: hidden;
67
+ cursor: pointer;
68
+ transition: transform 0.25s;
69
+ &:focus {
70
+ outline: none;
71
+ transform: translateY(-5px);
72
+ }
73
+ &:hover {
74
+ transform: translateY(-5px);
75
+ }
76
+
77
+ &__header {
78
+ width: 100%;
79
+ height: 70px;
80
+ overflow: hidden;
81
+ position: relative;
82
+ background: #1F8CEB;
83
+ &.header__cover--shadow::before {
84
+ content: '';
85
+ position: absolute;
86
+ top: 0;
87
+ left: 0;
88
+ width: 100%;
89
+ height: 100%;
90
+ background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), 80%, transparent);
91
+ z-index: 1;
92
+ }
93
+ &.header__cover--glass {
94
+ &::before {
95
+ backdrop-filter: blur( 4px );
96
+ -webkit-backdrop-filter: blur( 4px );
97
+ background: rgba(0,0,0,0.2)!important;
98
+ }
99
+ }
100
+ .user__cover {
101
+ width: 100%;
102
+ height: 100%;
103
+ object-fit: cover;
104
+ }
105
+ &__actions {
106
+ position: absolute;
107
+ top: 0;
108
+ left: 0;
109
+ width: 100%;
110
+ display: flex;
111
+ align-items: center;
112
+ justify-content: space-between;
113
+ padding: 10px 15px;
114
+ z-index: 2;
115
+ .right {
116
+ display: flex;
117
+ align-items: center;
118
+ flex-direction: row;
119
+ button {
120
+ color: #fff;
121
+ border: 0;
122
+ background: transparent;
123
+ width: 32px;
124
+ height: 32px;
125
+ display: flex;
126
+ align-items: center;
127
+ justify-content: center;
128
+ }
129
+ }
130
+ }
131
+ }
132
+ &__content {
133
+ display: flex;
134
+ flex-direction: column;
135
+ align-items: center;
136
+ justify-content: center;
137
+ img {
138
+ width: 120px;
139
+ height: 120px;
140
+ border-radius: 100px;
141
+ object-fit: contain;
142
+ margin-top: -20px;
143
+ z-index: 10;
144
+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
145
+ background: #fff;
146
+ border: 4px solid #fff;
147
+ }
148
+ }
149
+ &__footer {
150
+ display: flex;
151
+ align-items: center;
152
+ justify-content: center;
153
+ padding-bottom: 20px;
154
+ span {
155
+ font-size: 0.875rem;
156
+ font-weight: 500;
157
+ margin: 0 10px;
158
+ color: #AEB6BE;
159
+ &.new {
160
+ color: #1F8CEB;
161
+ }
162
+ }
163
+ }
164
+ }
165
+
166
+ </style>
@@ -284,7 +284,7 @@ export default {
284
284
  },
285
285
 
286
286
  removeArchive(archive, index){
287
- console.log(archive)
287
+ console.log(archive);
288
288
  this.$emit('remove-archive', archive.user_id, archive.id, archive.company_id, index);
289
289
  this.hasRemove = null;
290
290
  },
@@ -297,10 +297,20 @@ export default {
297
297
  date: x.created_at,
298
298
  text: 'Recebeu um SMS'
299
299
  }));
300
- let tests = this.userData.tests.map(x => ({
301
- date: x.finished_at,
302
- text: `Finalizou o teste ${x.test.name.toUpperCase()}`
303
- }));
300
+ let tests = this.userData.tests.map(x => {
301
+ if (x.finished_at) {
302
+ return {
303
+ date: x.finished_at,
304
+ text: `Finalizou o teste ${x.test.name.toUpperCase()}`
305
+ };
306
+ } else {
307
+ return {
308
+ date: x.created_at,
309
+ text: `Recebeu o teste ${x.test.name.toUpperCase()}`
310
+ };
311
+ }
312
+
313
+ });
304
314
  let discs = this.userData.solides.map(x => ({
305
315
  date: x.end,
306
316
  text: 'Realizou um teste DISC'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burh/nuxt-core",
3
- "version": "1.0.263",
3
+ "version": "1.0.264",
4
4
  "description": "Design System and Components.",
5
5
  "author": "Burh",
6
6
  "scripts": {
@@ -1,230 +0,0 @@
1
- <template>
2
- <div class="recruitment__user__card">
3
- <div class="recruitment__user__card__header">
4
- <div class="recruitment__user__card__header__actions">
5
- <div class="left">
6
- <el-checkbox v-model="isChecked" />
7
- </div>
8
- <div class="right">
9
- <el-tooltip placement="top" content="Anotações">
10
- <button>
11
- <i class="far fa-comment-alt notes"></i>
12
- </button>
13
- </el-tooltip>
14
- <el-tooltip placement="top" content="Reprovar">
15
- <button>
16
- <i class="fas fa-times"></i>
17
- </button>
18
- </el-tooltip>
19
- </div>
20
- </div>
21
- <img src="https://www.rotamaxima.com.br/wp-content/uploads/2018/11/principal.png" alt="Cover" class="user__cover">
22
- </div>
23
-
24
- <div class="recruitment__user__card__content">
25
- <img src="https://randomuser.me/api/portraits/women/86.jpg" alt="Marisa da Silva">
26
- <span class="name">
27
- Marisa Silva
28
- <i class="fas fa-wheelchair pcd"></i>
29
- </span>
30
- <span class="age">23 anos</span>
31
- <span class="city">
32
- <i class="fas fa-map-marker-alt"></i>
33
- Sorocaba
34
- </span>
35
- <div class="info">
36
- <span>ÚLTIMA EXPERIÊNCIA</span>
37
- <p>Programadora PHP em Burh Brasil</p>
38
- </div>
39
- </div>
40
-
41
- <div class="recruitment__user__card__footer">
42
- <span>
43
- <el-tooltip placement="top" content="Indicado">
44
- <i class="fas fa-user-plus"></i>
45
- </el-tooltip>
46
- </span>
47
- <span>
48
- <el-tooltip placement="top" content="Reincidente">
49
- <i class="fas fa-sync-alt"></i>
50
- </el-tooltip>
51
- </span>
52
- <span>
53
- <el-tooltip placement="top" content="Visualizado">
54
- <i class="fas fa-eye"></i>
55
- </el-tooltip>
56
- </span>
57
- <span>
58
- <el-tooltip placement="top" content="Interno">
59
- <i class="fas fa-building"></i>
60
- </el-tooltip>
61
- </span>
62
- </div>
63
- </div>
64
- </template>
65
-
66
- <script>
67
- import { Checkbox } from 'element-ui';
68
-
69
- export default {
70
- name: 'recruitment-user-card',
71
- components: {
72
- ElCheckbox: Checkbox
73
- },
74
- data() {
75
- return {
76
- isChecked: false,
77
- };
78
- }
79
- };
80
- </script>
81
-
82
- <style lang="scss" scoped>
83
-
84
- .recruitment__user__card {
85
- background: #fff;
86
- box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
87
- border-radius: 4px;
88
- overflow: hidden;
89
- cursor: pointer;
90
- transition: transform 0.25s;
91
- &:focus {
92
- outline: none;
93
- transform: translateY(-5px);
94
- }
95
- &:hover {
96
- transform: translateY(-5px);
97
- }
98
-
99
- &__header {
100
- width: 100%;
101
- height: 70px;
102
- overflow: hidden;
103
- position: relative;
104
- &::before {
105
- content: '';
106
- position: absolute;
107
- top: 0;
108
- left: 0;
109
- width: 100%;
110
- height: 100%;
111
- background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), 80%, transparent);
112
- z-index: 1;
113
- }
114
- img {
115
- width: 100%;
116
- height: 100%;
117
- object-fit: cover;
118
- }
119
- &__actions {
120
- position: absolute;
121
- top: 0;
122
- left: 0;
123
- width: 100%;
124
- display: flex;
125
- align-items: center;
126
- justify-content: space-between;
127
- padding: 10px 15px;
128
- z-index: 2;
129
- .right {
130
- display: flex;
131
- align-items: center;
132
- flex-direction: row;
133
- button {
134
- color: #fff;
135
- border: 0;
136
- background: transparent;
137
- width: 32px;
138
- height: 32px;
139
- display: flex;
140
- align-items: center;
141
- justify-content: center;
142
- .notes {
143
- position: relative;
144
- &::after {
145
- content: '';
146
- position: absolute;
147
- top: -5px;
148
- right: -5px;
149
- width: 10px;
150
- height: 10px;
151
- background: #FF7D7E;
152
- border-radius: 100px;
153
- }
154
- }
155
- }
156
- }
157
- }
158
- }
159
- &__content {
160
- display: flex;
161
- flex-direction: column;
162
- align-items: center;
163
- justify-content: center;
164
- img {
165
- width: 120px;
166
- height: 120px;
167
- border-radius: 100px;
168
- object-fit: cover;
169
- margin-top: -20px;
170
- z-index: 10;
171
- box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
172
- }
173
-
174
- .name {
175
- font-size: 1.275rem;
176
- font-weight: 500;
177
- color: #1D364B;
178
- padding-top: 20px;
179
- .pcd {
180
- color: #1F8CEB;
181
- margin-left: 5px;
182
- }
183
- }
184
- .age {
185
- font-weight: 500;
186
- font-size: 0.875rem;
187
- color: #1F8CEB;
188
- padding-bottom: 20px;
189
- }
190
-
191
- .city {
192
- font-size: 1rem;
193
- font-weight: 400;
194
- color: #525F7F;
195
- }
196
-
197
- .info {
198
- padding: 30px 0;
199
- text-align: center;
200
- span {
201
- font-size: 0.75rem;
202
- font-weight: 500;
203
- color: #AEB6BE;
204
- }
205
- p {
206
- margin: 0;
207
- color: #525F7F;
208
- font-size: 1rem;
209
- font-weight: 400;
210
- }
211
- }
212
- }
213
- &__footer {
214
- display: flex;
215
- align-items: center;
216
- justify-content: center;
217
- padding-bottom: 20px;
218
- span {
219
- font-size: 0.875rem;
220
- font-weight: 500;
221
- margin: 0 10px;
222
- color: #AEB6BE;
223
- &.new {
224
- color: #1F8CEB;
225
- }
226
- }
227
- }
228
- }
229
-
230
- </style>
@@ -1,244 +0,0 @@
1
- <template>
2
- <div class="university__user__card">
3
- <div class="university__user__card__header">
4
- <img :src="cover" alt="Cover" class="user__cover" />
5
- </div>
6
-
7
- <div class="university__user__card__content">
8
- <img
9
- v-if="universityData.urlLogo"
10
- :src="universityData.urlLogo"
11
- :alt="universityData.name"
12
- />
13
- <div v-if="!universityData.urlLogo" class="no-image">
14
- {{ handleGetPrefixes(universityData.name) }}
15
- </div>
16
- <span class="name">
17
- {{ universityData.initials }}
18
- </span>
19
- <!-- <span class="city">
20
- <i class="fas fa-map-marker-alt"></i>
21
- Sorocaba
22
- </span> -->
23
- <div class="info">
24
- <span
25
- >Aproximadamente
26
- {{ universityData.studentsCount }} alunos</span
27
- >
28
- </div>
29
- </div>
30
-
31
- <!-- <div class="university__user__card__footer">
32
- <span>
33
- <el-tooltip placement="top" content="Indicado">
34
- <i class="fas fa-user-plus"></i>
35
- </el-tooltip>
36
- </span>
37
- <span>
38
- <el-tooltip placement="top" content="Reincidente">
39
- <i class="fas fa-sync-alt"></i>
40
- </el-tooltip>
41
- </span>
42
- <span>
43
- <el-tooltip placement="top" content="Visualizado">
44
- <i class="fas fa-eye"></i>
45
- </el-tooltip>
46
- </span>
47
- <span>
48
- <el-tooltip placement="top" content="Interno">
49
- <i class="fas fa-building"></i>
50
- </el-tooltip>
51
- </span>
52
- </div> -->
53
- </div>
54
- </template>
55
-
56
- <script>
57
- import { Checkbox } from 'element-ui';
58
- import getPrefixes from '~/util/getPrefixes.js';
59
-
60
- export default {
61
- name: 'university-card',
62
- components: {
63
- ElCheckbox: Checkbox
64
- },
65
- data() {
66
- return {
67
- isChecked: false
68
- };
69
- },
70
- props: {
71
- universityData: {
72
- type: Object,
73
- default: {},
74
- description: 'Data of university'
75
- },
76
- cover: {
77
- type: String,
78
- default: '',
79
- description: 'University cover'
80
- }
81
- },
82
- methods: {
83
- handleGetPrefixes(name = '') {
84
- return getPrefixes(name);
85
- }
86
- }
87
- };
88
- </script>
89
-
90
- <style lang="scss" scoped>
91
- .university__user__card {
92
- background: #fff;
93
- box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
94
- border-radius: 4px;
95
- overflow: hidden;
96
- cursor: pointer;
97
- transition: transform 0.25s;
98
- &:focus {
99
- outline: none;
100
- transform: translateY(-5px);
101
- }
102
- &:hover {
103
- transform: translateY(-5px);
104
- }
105
-
106
- &__header {
107
- width: 100%;
108
- height: 70px;
109
- overflow: hidden;
110
- position: relative;
111
- &::before {
112
- content: '';
113
- position: absolute;
114
- top: 0;
115
- left: 0;
116
- width: 100%;
117
- height: 100%;
118
- z-index: 1;
119
- backdrop-filter: blur(3px);
120
- -webkit-backdrop-filter: blur(3px);
121
- }
122
- img {
123
- width: 100%;
124
- height: 100%;
125
- object-fit: cover;
126
- }
127
- &__actions {
128
- position: absolute;
129
- top: 0;
130
- left: 0;
131
- width: 100%;
132
- display: flex;
133
- align-items: center;
134
- justify-content: space-between;
135
- padding: 10px 15px;
136
- z-index: 2;
137
- .right {
138
- display: flex;
139
- align-items: center;
140
- flex-direction: row;
141
- button {
142
- color: #fff;
143
- border: 0;
144
- background: transparent;
145
- width: 32px;
146
- height: 32px;
147
- display: flex;
148
- align-items: center;
149
- justify-content: center;
150
- .notes {
151
- position: relative;
152
- &::after {
153
- content: '';
154
- position: absolute;
155
- top: -5px;
156
- right: -5px;
157
- width: 10px;
158
- height: 10px;
159
- background: #ff7d7e;
160
- border-radius: 100px;
161
- }
162
- }
163
- }
164
- }
165
- }
166
- }
167
- &__content {
168
- display: flex;
169
- flex-direction: column;
170
- align-items: center;
171
- justify-content: center;
172
- img {
173
- background: #fff;
174
- width: 120px;
175
- height: 120px;
176
- border-radius: 100px;
177
- margin-top: -20px;
178
- z-index: 10;
179
- box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
180
- object-fit: contain;
181
- }
182
-
183
- .name {
184
- font-size: 1.275rem;
185
- font-weight: 500;
186
- color: #1d364b;
187
- padding-top: 20px;
188
- text-transform: uppercase;
189
- }
190
- .age {
191
- font-weight: 500;
192
- font-size: 0.875rem;
193
- color: #1f8ceb;
194
- padding-bottom: 20px;
195
- }
196
-
197
- .city {
198
- font-size: 1rem;
199
- font-weight: 400;
200
- color: #525f7f;
201
- }
202
-
203
- .info {
204
- padding: 30px 0;
205
- text-align: center;
206
- span {
207
- font-size: 0.75rem;
208
- font-weight: 500;
209
- color: #aeb6be;
210
- text-transform: uppercase;
211
- }
212
- }
213
- .no-image {
214
- width: 120px;
215
- height: 120px;
216
- border-radius: 100px;
217
- margin-top: -20px;
218
- z-index: 10;
219
-
220
- background: #adb5bd;
221
- color: #fff;
222
-
223
- display: flex;
224
- justify-content: center;
225
- align-items: center;
226
- }
227
- }
228
- &__footer {
229
- display: flex;
230
- align-items: center;
231
- justify-content: center;
232
- padding-bottom: 20px;
233
- span {
234
- font-size: 0.875rem;
235
- font-weight: 500;
236
- margin: 0 10px;
237
- color: #aeb6be;
238
- &.new {
239
- color: #1f8ceb;
240
- }
241
- }
242
- }
243
- }
244
- </style>