@burh/nuxt-core 1.0.138 → 1.0.141

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>
@@ -84,6 +84,7 @@ export default {
84
84
 
85
85
  &--title {
86
86
  text-align: center;
87
+ font-weight: 400;
87
88
  }
88
89
 
89
90
  &--content {
@@ -1,60 +1,86 @@
1
- <template lang="">
2
- <div>
3
- <span class="loader-wrapper">
4
- <div>
5
- <div :class="'mb-5 product-item--avatar bg-' + color">
6
- <img :src="productImage" alt="" />
7
- </div>
8
- <div class="d-flex justify-content-center align-items-center">
9
- <i
10
- :class="
11
- 'fas fa-3x fa-circle-notch fa-spin text-' + color
12
- "
13
- ></i>
14
- </div>
15
- </div>
16
- </span>
17
- </div>
18
- </template>
19
-
20
- <script>
21
- export default {
22
- name: 'new-loading',
23
- props: {
24
- isLoading: {
25
- type: Boolean,
26
- default: false,
27
- description: 'If the parent screen is loading'
28
- },
29
- productImage: String,
30
- color: String
31
- }
32
- };
33
- </script>
34
-
35
- <style lang="scss" scoped>
36
- // @import "assets/sass/burh-ds/variables/_colors.scss";
37
-
38
- .product-item--avatar {
39
- width: 64.78px;
40
- height: 64.78px;
41
- border-radius: 14.0834px;
42
-
43
- display: flex;
44
- align-items: center;
45
- justify-content: center;
46
-
47
- img {
48
- color: #fff;
49
- }
50
- }
51
-
52
- .loader-wrapper {
53
- background-color: #fff;
54
- display: flex;
55
- align-items: center;
56
- justify-content: center;
57
- width: 100vw;
58
- height: 100vh;
59
- }
60
- </style>
1
+ <template lang="">
2
+ <div v-if='isShowing' class="fullpage-loading">
3
+ <span class="loader-wrapper">
4
+ <div>
5
+ <div :class="'mb-5 product-item--avatar bg-' + color">
6
+ <img :src="productImage" alt="" />
7
+ </div>
8
+ <div class="d-flex justify-content-center align-items-center">
9
+ <i
10
+ :class="
11
+ 'fas fa-3x fa-circle-notch fa-spin text-' + color
12
+ "
13
+ ></i>
14
+ </div>
15
+ </div>
16
+ </span>
17
+ </div>
18
+ </template>
19
+
20
+ <script>
21
+ export default {
22
+ name: 'new-loading',
23
+ props: {
24
+ isLoading: {
25
+ type: Boolean,
26
+ default: false,
27
+ description: 'If the parent screen is loading'
28
+ },
29
+ productImage: String,
30
+ color: String
31
+ },
32
+
33
+ data() {
34
+ return {
35
+ isShowing: true
36
+ };
37
+ },
38
+
39
+ mounted(){
40
+
41
+ const currentPage = window.location.pathname.split('/')[1];
42
+ if (sessionStorage.getItem('lastPage') != currentPage ){
43
+ sessionStorage.setItem('lastPage', currentPage);
44
+ }else{
45
+ this.isShowing = false;
46
+ }
47
+ },
48
+ // beforeDestroy() {
49
+ // sessionStorage.removeItem('lastPage');
50
+ // },
51
+ };
52
+ </script>
53
+
54
+ <style lang="scss" scoped>
55
+ // @import "assets/sass/burh-ds/variables/_colors.scss";
56
+ .fullpage-loading{
57
+ width: 100vw;
58
+ height: 100vh;
59
+ position: fixed;
60
+ top: 0;
61
+ left: 0;
62
+ z-index: 1000;
63
+ }
64
+ .product-item--avatar {
65
+ width: 64.78px;
66
+ height: 64.78px;
67
+ border-radius: 14.0834px;
68
+
69
+ display: flex;
70
+ align-items: center;
71
+ justify-content: center;
72
+
73
+ img {
74
+ color: #fff;
75
+ }
76
+ }
77
+
78
+ .loader-wrapper {
79
+ background-color: #fff;
80
+ display: flex;
81
+ align-items: center;
82
+ justify-content: center;
83
+ width: 100vw;
84
+ height: 100vh;
85
+ }
86
+ </style>