@burh/nuxt-core 1.0.97 → 1.0.99

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,5 +1,5 @@
1
1
  <template>
2
- <div class="cv-left col-5 bg-light--darken py-5 px-5">
2
+ <div class="cv-left col-5 bg-light--darken py-5 px-5" :class=" !currentUser ? 'disable-none' : '' ">
3
3
  <div class="d-flex justify-content-center">
4
4
  <a href="#!" class="avatar avatar-pdf">
5
5
  <img alt="Image placeholder" :src="avatar" v-show="avatar" />
@@ -102,6 +102,7 @@ export default {
102
102
  number: String,
103
103
  cellphone: String,
104
104
  phone: String,
105
+ currentUser: Object,
105
106
  education: {
106
107
  type: Array,
107
108
  default: () => []
@@ -119,6 +120,9 @@ export default {
119
120
  default: () => []
120
121
  }
121
122
  },
123
+ mounted(){
124
+ console.log(this.currentUser)
125
+ },
122
126
  methods: {
123
127
  getTime(
124
128
  { start_year = null, end_year = null, start_month, end_month },
@@ -231,4 +235,9 @@ export default {
231
235
  .cv-left{
232
236
  word-break: initial;
233
237
  }
238
+
239
+ .disable-none {
240
+ user-select: none;
241
+ }
242
+
234
243
  </style>
@@ -1,35 +1,34 @@
1
1
  <template>
2
- <div class="cv-right col-7 bg-lighter py-5 px-5">
3
- <h2 class="display-4 text-center mb-4">{{name}}</h2>
4
- <p class="text-muted mb-0" v-show="wagePretesion"> Pretensão Salarial de {{wagePretesion | convertToReal}} reais.</p>
5
- <p class="text-muted" v-show="codUser">Código de indicação do usuário: <b>{{codUser}}</b></p>
2
+ <div class="cv-right col-7 bg-lighter py-5 px-5" :class=" !currentUser ? 'disable-none' : '' ">
3
+ <h2 class="display-4 text-center mb-4">{{name}}</h2>
4
+ <p class="text-muted mb-0" v-show="wagePretesion"> Pretensão Salarial de {{wagePretesion | convertToReal}} reais.</p>
5
+ <p class="text-muted" v-show="codUser">Código de indicação do usuário: <b>{{codUser}}</b></p>
6
6
 
7
- <h2 class="display-4" v-show="about">Sobre</h2>
8
- <p id="USER_ABOUT" class="mb-0" :class="!wordIsLesserThan(about) && 'readmore'">{{about}}</p>
9
- <a href="#" aria-label="expandir conteudo"
10
- v-show="about && !wordIsLesserThan(about)" @click.prevent.stop="toggleReadMore($event,'USER_ABOUT')">Ler mais</a>
7
+ <h2 class="display-4" v-show="about">Sobre</h2>
8
+ <p id="USER_ABOUT" class="mb-0" :class="!wordIsLesserThan(about) && 'readmore'">{{about}}</p>
9
+ <a href="#" aria-label="expandir conteudo"
10
+ v-show="about && !wordIsLesserThan(about)" @click.prevent.stop="toggleReadMore($event,'USER_ABOUT')">Ler mais</a>
11
11
 
12
- <h2 class="display-4 mt-4" v-show="experience.length">Experiência</h2>
12
+ <h2 class="display-4 mt-4" v-show="experience.length">Experiência</h2>
13
13
 
14
- <div class="mb-4" v-for="(exp, index) in experience" :key="`exp-${index}`">
15
- <h4 class="d-inline-block h6 text-muted font-weight-bold">{{exp.job_title}} - </h4>
16
- <h5 class="d-inline-block h6 text-muted font-weight-bold">{{exp.company}}</h5>
17
- <h6>{{exp.start_month}}/{{exp.start_year}} - {{treatEndDate(exp.end_month, exp.end_year)}} {{getTime(exp, 'Trabalhando')}}</h6>
18
-
19
- <div>
20
- <p :id="`USER_EXPERIENCE-${index + 1}`" class="mb-0" :class="!wordIsLesserThan(exp.description) && 'readmore'">{{exp.description}}</p>
21
- <a href="#" aria-label="expandir conteudo"
22
- v-show="!wordIsLesserThan(exp.description)" @click.prevent.stop="toggleReadMore($event,`USER_EXPERIENCE-${index+1}`)">Ler mais</a>
23
- </div>
24
- </div>
14
+ <div class="mb-4" v-for="(exp, index) in experience" :key="`exp-${index}`">
15
+ <h4 class="d-inline-block h6 text-muted font-weight-bold">{{exp.job_title}} - </h4>
16
+ <h5 class="d-inline-block h6 text-muted font-weight-bold">{{exp.company}}</h5>
17
+ <h6>{{exp.start_month}}/{{exp.start_year}} - {{treatEndDate(exp.end_month, exp.end_year)}} {{getTime(exp, 'Trabalhando')}}</h6>
25
18
 
26
- <h2 class="display-4 mt-4" v-show="roleDesireds.length">Cargos Desejados</h2>
19
+ <div>
20
+ <p :id="`USER_EXPERIENCE-${index + 1}`" class="mb-0" :class="!wordIsLesserThan(exp.description) && 'readmore'">{{exp.description}}</p>
21
+ <a href="#" aria-label="expandir conteudo"
22
+ v-show="!wordIsLesserThan(exp.description)" @click.prevent.stop="toggleReadMore($event,`USER_EXPERIENCE-${index+1}`)">Ler mais</a>
23
+ </div>
24
+ </div>
27
25
 
28
- <badge rounded type="primary" class="mr-2 mb-2"
29
- v-for="(roleDesired, i) in roleDesireds" :key="`${roleDesired.occupation}-${i}`">
30
- {{roleDesired.occupation}}
31
- </badge>
26
+ <h2 class="display-4 mt-4" v-show="roleDesireds.length">Cargos Desejados</h2>
32
27
 
28
+ <badge rounded type="primary" class="mr-2 mb-2"
29
+ v-for="(roleDesired, i) in roleDesireds" :key="`${roleDesired.occupation}-${i}`">
30
+ {{roleDesired.occupation}}
31
+ </badge>
33
32
  </div>
34
33
  </template>
35
34
 
@@ -40,6 +39,7 @@ export default {
40
39
  name: String,
41
40
  about: String,
42
41
  codUser: String | Number,
42
+ currentUser: Object,
43
43
  wagePretesion: {
44
44
  type: Number,
45
45
  default: 0
@@ -55,8 +55,8 @@ export default {
55
55
  },
56
56
  filters: {
57
57
  convertToReal(value) {
58
- return 'R$ ' + value.toFixed(2).replace('.', ',');
59
- }
58
+ return 'R$ ' + value.toFixed(2).replace('.', ',');
59
+ }
60
60
  },
61
61
  methods: {
62
62
  toggleReadMore(event, id) {
@@ -113,4 +113,8 @@ export default {
113
113
  word-break: initial;
114
114
  }
115
115
 
116
+ .disable-none {
117
+ user-select: none;
118
+ }
119
+
116
120
  </style>
@@ -133,6 +133,12 @@ export default {
133
133
  sendTest() {
134
134
  this.$emit("submit", this.slots);
135
135
 
136
+ this.resetSlots();
137
+
138
+ requestAnimationFrame(() => {
139
+ this.$refs.sendCourse.reset();
140
+ });
141
+
136
142
  this.closeModal();
137
143
  }
138
144
  },
@@ -182,7 +188,7 @@ export default {
182
188
  border-radius: 23rem;
183
189
  font-weight: 400;
184
190
  text-align: center;
185
- background-color: rgba($color-primary, .1);
191
+ background-color: rgba($color-primary, 0.1);
186
192
  color: $color-primary;
187
193
  }
188
194
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burh/nuxt-core",
3
- "version": "1.0.97",
3
+ "version": "1.0.99",
4
4
  "description": "Design System and Components.",
5
5
  "author": "Burh",
6
6
  "scripts": {