@burh/nuxt-core 1.0.96 → 1.0.98

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.
Files changed (27) hide show
  1. package/components/burh-ds/Capsules/SearchSlug.vue +1 -1
  2. package/components/burh-ds/Dropdown/UserMenuDropdown.vue +1 -1
  3. package/components/burh-ds/Headings/AppHeader.vue +3 -9
  4. package/components/burh-ds/Headings/ProfileHeader.vue +2 -2
  5. package/components/burh-ds/Headings/SettingsHeader.vue +1 -1
  6. package/components/burh-ds/Jobs/JobDetail.vue +1 -1
  7. package/components/burh-ds/Lists/VagasSimple.vue +1 -1
  8. package/components/burh-ds/Loadings/LoadingFullPage.vue +1 -1
  9. package/components/burh-ds/Modals/AppConfigModal.vue +1 -1
  10. package/components/burh-ds/Modals/ModalTests.vue +2 -2
  11. package/components/burh-ds/Modals/SendCourse.vue +3 -3
  12. package/components/burh-ds/Modals/SendDisc.vue +194 -0
  13. package/components/burh-ds/Modals/ShareModal.vue +3 -3
  14. package/components/burh-ds/Questions/Question.vue +1 -1
  15. package/components/layouts/burh-ds/footer/StatusFooter.vue +1 -1
  16. package/components/layouts/burh-ds/navbar/AppNavbar.vue +1 -1
  17. package/components/layouts/burh-ds/navbar/CarreirasNavbar.vue +1 -1
  18. package/components/layouts/burh-ds/navbar/EmpresasNavbarLogado.vue +1 -1
  19. package/components/layouts/burh-ds/navbar/GlobalNavbar.vue +1 -1
  20. package/components/layouts/burh-ds/navbar/MobileNavbar.vue +1 -1
  21. package/components/layouts/burh-ds/navbar/PublicNavbar.vue +1 -1
  22. package/components/layouts/burh-ds/navbar/UserNavbar.vue +1 -1
  23. package/components/layouts/burh-ds/navbar/UserNavbarLogin.vue +1 -1
  24. package/environment.js +1 -1
  25. package/middleware/new-account.js +2 -2
  26. package/package.json +1 -1
  27. package/plugins/localstorage.js +1 -1
@@ -642,7 +642,7 @@ export default {
642
642
  } else {
643
643
  text = "Não há resultados para sua busca";
644
644
  this.searchEmpty = true;
645
- console.log(text, this.searchEmpty);
645
+
646
646
 
647
647
  //this.$router.push({ path: "/", query: { term: this.$route.query.term, city: this.$route.query.city ? this.$route.query.city : await this.$location(), type: this.$route.query.type, date: this.$route.query.date, page: 1, handicapped: this.$route.query.handicapped, error: "404_job"}, });
648
648
  }
@@ -50,7 +50,7 @@ export default {
50
50
  },
51
51
  methods: {
52
52
  handleCompanyClick(company) {
53
- console.log(company.name);
53
+
54
54
  }
55
55
  },
56
56
  data() {
@@ -14,9 +14,8 @@
14
14
  <font-awesome-icon :icon="item.icon" class="mr-2" />
15
15
  </base-button>
16
16
  </el-tooltip>
17
-
18
- <base-button v-if="firstButtonText" role="button" @click="$emit('btn-first-click')" size="sm" :type="firstButtonType"
19
- class="ml-2">{{firstButtonText}}</base-button>
17
+
18
+ <slot name="buttons"></slot>
20
19
  </div>
21
20
 
22
21
  <slot/>
@@ -39,11 +38,6 @@ export default {
39
38
  type: String,
40
39
  default: 'Teste de matematica'
41
40
  },
42
- firstButtonType:{
43
- type: String,
44
- default: 'primary'
45
- },
46
- firstButtonText: String,
47
41
  },
48
42
  };
49
43
  </script>
@@ -54,4 +48,4 @@ export default {
54
48
  padding-top: 1.25rem;
55
49
  box-shadow: 0 0 2rem 0 rgba(136, 152, 170, 0.15);
56
50
  }
57
- </style>
51
+ </style>
@@ -41,7 +41,7 @@ export default {
41
41
  toggleBar: function() {
42
42
  if (!isMobileOnly) {
43
43
  //this.isBig = !this.isBig;
44
- console.log("toggleBar");
44
+
45
45
  }
46
46
  },
47
47
  // stickyTurnOn(topElement, bodyElement, subHeader, subHeaderInitial, topElementHeight, windowHeight, headerBodyElementInitial) {
@@ -88,7 +88,7 @@ export default {
88
88
 
89
89
  // topElement = topElement[0];
90
90
 
91
- // console.log(topElementHeight, subHeaderInitial, bodyElement[0], headerBodyElementInitial);
91
+ //
92
92
 
93
93
  // this.stickyTurnOn(topElement, bodyElement, subHeader, subHeaderInitial, topElementHeight, windowHeight, headerBodyElementInitial);
94
94
 
@@ -34,7 +34,7 @@ export default {
34
34
  toggleBar: function() {
35
35
  if (!isMobileOnly) {
36
36
  //this.isBig = !this.isBig;
37
- console.log("toggleBar");
37
+
38
38
  }
39
39
  }
40
40
  }
@@ -391,7 +391,7 @@ export default {
391
391
  }
392
392
  }
393
393
  // searchEmpty(searchEmpty) {
394
- // console.log(searchEmpty);
394
+ //
395
395
  // return searchEmpty;
396
396
  // }
397
397
  }
@@ -124,7 +124,7 @@ export default {
124
124
  async callSaveJob(id) {
125
125
  this.childClickPrevent = true;
126
126
  let res = await userSaveJob(id);
127
- console.log(res);
127
+
128
128
  },
129
129
 
130
130
  callShareJob(jobId){
@@ -54,7 +54,7 @@ export default {
54
54
  }, 5000);
55
55
  },
56
56
  onCancel() {
57
- console.log('User cancelled the loader.');
57
+
58
58
  }
59
59
  }
60
60
  };
@@ -321,7 +321,7 @@ export default {
321
321
  selectedTime: this.configInfo.selectedTime,
322
322
  category: this.configInfo.category
323
323
  };
324
- console.log(config);
324
+
325
325
  } else if (this.isCourse) {
326
326
  config = {
327
327
  title: this.configInfo.title,
@@ -76,7 +76,7 @@ export default {
76
76
  }
77
77
  },
78
78
  mounted() {
79
- console.log(this.modalData);
79
+
80
80
  },
81
81
  methods:{
82
82
  goToTest(testId){
@@ -89,7 +89,7 @@ export default {
89
89
  },
90
90
  async redoTest(testId){
91
91
  let test_id = this.courseInfo.tests.find(e => e.id === testId)
92
- console.log(this.courseInfo);
92
+
93
93
  let payload = {
94
94
  company_id: this.courseInfo.course.company_id,
95
95
  users:[
@@ -135,9 +135,9 @@ export default {
135
135
  },
136
136
 
137
137
  removeSlot(email) {
138
- console.log(email, this.slots)
138
+
139
139
  this.slots = this.slots.filter(slot => slot.email !== email);
140
- console.log(this.slots)
140
+
141
141
  },
142
142
 
143
143
  addSlot() {
@@ -158,7 +158,7 @@ export default {
158
158
  }
159
159
 
160
160
  const filterSlots = slot => slot.email !== '';
161
-
161
+
162
162
  const formatRequest = () => {
163
163
  let formattedCourses = this.coursesToSend.map(course => ({
164
164
  course_id: course
@@ -0,0 +1,194 @@
1
+ <template>
2
+ <modal
3
+ :show.sync="openModal"
4
+ v-on:close="closeModal"
5
+ size="lg"
6
+ class="modal"
7
+ >
8
+ <template slot="header">
9
+ <h2 class="display-4 py-2 px-1">
10
+ Enviar Passaporte
11
+ </h2>
12
+ </template>
13
+ <div class="row p-2 px-4">
14
+ <div class="col-6">
15
+ <label for="name">Nome Completo</label>
16
+ </div>
17
+ <div class="col-6">
18
+ <label for="email">E-mail</label>
19
+ </div>
20
+ </div>
21
+ <validation-observer ref="sendCourse">
22
+ <div class="row px-4" v-for="(slot, idx) in slots" :key="idx">
23
+ <validation-provider
24
+ tag="div"
25
+ class="col-6"
26
+ :vid="`send-name-${idx}`"
27
+ name="Nome"
28
+ rules="required|regex:\w+\s+\w+"
29
+ v-slot="{ errors }"
30
+ >
31
+ <base-input
32
+ v-model="slot.name"
33
+ :error="errors[0]"
34
+ :valid="errors.length ? true : false"
35
+ />
36
+ </validation-provider>
37
+
38
+ <validation-provider
39
+ tag="div"
40
+ class="col-5"
41
+ :vid="`send-email-${idx}`"
42
+ name="Email"
43
+ rules="required|email"
44
+ v-slot="{ errors }"
45
+ >
46
+ <base-input
47
+ v-model="slot.email"
48
+ :error="errors[0]"
49
+ :valid="errors.length ? true : false"
50
+ />
51
+ </validation-provider>
52
+
53
+ <div class="col-1 py-2">
54
+ <i
55
+ v-if="idx !== slots.length - 1"
56
+ class="fa fa-trash pointer"
57
+ @click="removeSlot(idx)"
58
+ ></i>
59
+ <i v-else class="fa fa-plus pointer" @click="addSlot"></i>
60
+ </div>
61
+ </div>
62
+ </validation-observer>
63
+
64
+ <base-button class="mr-5 float-right" type="primary" @click="sendTest">
65
+ Enviar
66
+ </base-button>
67
+
68
+ <div id="credits-amount" class="ml-3 float-left">
69
+ {{ creditsAmount }} Créditos disponíveis
70
+ </div>
71
+ </modal>
72
+ </template>
73
+
74
+ <script>
75
+ import { Select, Option } from "element-ui";
76
+
77
+ export default {
78
+ name: "send-course",
79
+ components: {
80
+ [Select.name]: Select,
81
+ [Option.name]: Option
82
+ },
83
+ props: {
84
+ show: {
85
+ type: Boolean,
86
+ default: false
87
+ },
88
+ selectedCourse: Number,
89
+ corporativeRole: null,
90
+ courses: Array,
91
+ reportType: null,
92
+ creditsAmount: Number
93
+ },
94
+ model: {
95
+ prop: "show"
96
+ },
97
+ computed: {
98
+ openModal: {
99
+ get() {
100
+ return this.show;
101
+ },
102
+ set(show) {
103
+ this.$emit("input", show);
104
+ }
105
+ }
106
+ },
107
+ methods: {
108
+ closeModal(e) {
109
+ this.$emit("close-modal", e);
110
+ },
111
+
112
+ removeSlot(idx) {
113
+ this.slots = this.slots.filter((slot, index) => index !== idx);
114
+ },
115
+
116
+ addSlot() {
117
+ const newSlot = {
118
+ name: "",
119
+ email: ""
120
+ };
121
+
122
+ this.slots = [...this.slots, newSlot];
123
+ },
124
+
125
+ resetSlots() {
126
+ this.slots = [
127
+ {
128
+ name: "",
129
+ email: ""
130
+ }
131
+ ];
132
+ },
133
+ sendTest() {
134
+ this.$emit("submit", this.slots);
135
+
136
+ this.resetSlots();
137
+
138
+ requestAnimationFrame(() => {
139
+ this.$refs.sendCourse.reset();
140
+ });
141
+
142
+ this.closeModal();
143
+ }
144
+ },
145
+ watch: {
146
+ show(newValue) {
147
+ this.show = newValue;
148
+ }
149
+ },
150
+ data() {
151
+ return {
152
+ slots: [
153
+ {
154
+ name: "",
155
+ email: ""
156
+ }
157
+ ]
158
+ };
159
+ }
160
+ };
161
+ </script>
162
+ <style lang="scss" scoped>
163
+ @import "@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss";
164
+
165
+ .send-test-modal {
166
+ position: fixed;
167
+ overflow-y: scroll;
168
+ overflow-x: hidden;
169
+ width: 60%;
170
+ height: 50%;
171
+ background-color: #ffffff;
172
+ z-index: 999 !important;
173
+ top: 20% !important;
174
+ left: 20% !important;
175
+ box-sizing: border-box;
176
+ }
177
+
178
+ .pointer {
179
+ cursor: pointer;
180
+ }
181
+
182
+ #credits-amount {
183
+ min-width: 8em;
184
+ margin: 1rem 1rem 1rem 0;
185
+ padding: 0.75em 2em;
186
+ font-size: 1rem;
187
+ line-height: 1.4em;
188
+ border-radius: 23rem;
189
+ font-weight: 400;
190
+ text-align: center;
191
+ background-color: rgba($color-primary, 0.1);
192
+ color: $color-primary;
193
+ }
194
+ </style>
@@ -102,7 +102,7 @@ export default {
102
102
  this.$shareOnFacebook(
103
103
  this.url,
104
104
  function() {
105
- // console.log("Shared");
105
+ //
106
106
  }
107
107
  );
108
108
  },
@@ -111,7 +111,7 @@ export default {
111
111
  this.$shareOnLinkedin(
112
112
  this.url,
113
113
  function(popup) {
114
- // console.log(popup);
114
+ //
115
115
  }
116
116
  );
117
117
  },
@@ -120,7 +120,7 @@ export default {
120
120
  this.$shareOnTwitter(
121
121
  this.url,
122
122
  function(popup) {
123
- // console.log(popup);
123
+ //
124
124
  }
125
125
  );
126
126
  },
@@ -147,7 +147,7 @@ export default {
147
147
  setQuestion(type, data) {
148
148
  this.question[type] = data;
149
149
  this.emitQuestion();
150
- console.log(this.question);
150
+
151
151
  },
152
152
  mergeDataQuestion(data) {
153
153
  this.question = { ...this.question, ...data };
@@ -62,7 +62,7 @@ export default {
62
62
  methods:{
63
63
  statusDefiner(status){
64
64
  let selectedStatus = status;
65
- console.log(selectedStatus)
65
+
66
66
  this.currentStatus.default = status;
67
67
  },
68
68
  }
@@ -89,7 +89,7 @@ export default {
89
89
  },
90
90
  mounted(){
91
91
  this.getCurrentApp();
92
- console.log(this.currentUser)
92
+
93
93
  }
94
94
  };
95
95
  </script>
@@ -271,7 +271,7 @@
271
271
  // } else if (window.scrollY < screenHeight) {
272
272
  // header.classList.remove('navbar-main--mini');
273
273
  // //page.classList.remove('menu-fixed');
274
- // console.log('final');
274
+ //
275
275
  // }
276
276
  },
277
277
  onFocus: function(event) {
@@ -345,7 +345,7 @@
345
345
  } else if (window.scrollY < screenHeight) {
346
346
  header.classList.remove('navbar-main--mini');
347
347
  //page.classList.remove('menu-fixed');
348
- console.log('final');
348
+
349
349
  }
350
350
  },
351
351
  onFocus: function(event) {
@@ -412,7 +412,7 @@
412
412
  // } else if (window.scrollY < screenHeight) {
413
413
  // header.classList.remove('navbar-main--mini');
414
414
  // //page.classList.remove('menu-fixed');
415
- // console.log('final');
415
+ //
416
416
  // }
417
417
  },
418
418
  onFocus: function(event) {
@@ -333,7 +333,7 @@ export default {
333
333
  // } else if (window.scrollY < screenHeight) {
334
334
  // header.classList.remove('navbar-main--mini');
335
335
  // //page.classList.remove('menu-fixed');
336
- // console.log('final');
336
+ //
337
337
  // }
338
338
  },
339
339
  onFocus: function(event) {
@@ -113,7 +113,7 @@
113
113
  } else if (window.scrollY < screenHeight) {
114
114
  header.classList.remove('navbar-main--mini');
115
115
  //page.classList.remove('menu-fixed');
116
- console.log('final');
116
+
117
117
  }
118
118
  },
119
119
  onFocus: function(event) {
@@ -303,7 +303,7 @@
303
303
  } else if (window.scrollY < screenHeight) {
304
304
  header.classList.remove('navbar-main--mini');
305
305
  //page.classList.remove('menu-fixed');
306
- console.log('final');
306
+
307
307
  }
308
308
  },
309
309
  onFocus: function(event) {
@@ -197,7 +197,7 @@ export default {
197
197
  // } else if (window.scrollY < screenHeight) {
198
198
  // header.classList.remove('navbar-main--mini');
199
199
  // //page.classList.remove('menu-fixed');
200
- // console.log('final');
200
+ //
201
201
  // }
202
202
  },
203
203
  onFocus: function(event) {
package/environment.js CHANGED
@@ -13,7 +13,7 @@ try {
13
13
  extendEnv = require(`./${envName}.env.js`);
14
14
  }
15
15
  } catch (error) {
16
- console.log('message', error.message);
16
+
17
17
  }
18
18
 
19
19
  function env() {
@@ -1,6 +1,6 @@
1
1
  export default function ({ store, redirect }) {
2
- console.log('Middlewaring...');
3
- console.log(store.state.newAccount);
2
+
3
+
4
4
  if (!store.state.newAccount.isNewAccount) {
5
5
  return redirect('/');
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burh/nuxt-core",
3
- "version": "1.0.96",
3
+ "version": "1.0.98",
4
4
  "description": "Design System and Components.",
5
5
  "author": "Burh",
6
6
  "scripts": {
@@ -4,7 +4,7 @@ import 'core-js/es7';
4
4
 
5
5
  export default function ({ store, route }) {
6
6
  if (process.client) {
7
- // console.log(store.state);
7
+ //
8
8
  // window.localStorage[key] = store.state.localStorage[key];
9
9
  if(window.localStorage.currentUser != null) {
10
10
  store.commit('localStorage/setUser', JSON.parse(window.localStorage.currentUser));