@burh/nuxt-core 1.0.96 → 1.0.97
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.
- package/components/burh-ds/Capsules/SearchSlug.vue +1 -1
- package/components/burh-ds/Dropdown/UserMenuDropdown.vue +1 -1
- package/components/burh-ds/Headings/AppHeader.vue +3 -9
- package/components/burh-ds/Headings/ProfileHeader.vue +2 -2
- package/components/burh-ds/Headings/SettingsHeader.vue +1 -1
- package/components/burh-ds/Jobs/JobDetail.vue +1 -1
- package/components/burh-ds/Lists/VagasSimple.vue +1 -1
- package/components/burh-ds/Loadings/LoadingFullPage.vue +1 -1
- package/components/burh-ds/Modals/AppConfigModal.vue +1 -1
- package/components/burh-ds/Modals/ModalTests.vue +2 -2
- package/components/burh-ds/Modals/SendCourse.vue +3 -3
- package/components/burh-ds/Modals/SendDisc.vue +188 -0
- package/components/burh-ds/Modals/ShareModal.vue +3 -3
- package/components/burh-ds/Questions/Question.vue +1 -1
- package/components/layouts/burh-ds/footer/StatusFooter.vue +1 -1
- package/components/layouts/burh-ds/navbar/AppNavbar.vue +1 -1
- package/components/layouts/burh-ds/navbar/CarreirasNavbar.vue +1 -1
- package/components/layouts/burh-ds/navbar/EmpresasNavbarLogado.vue +1 -1
- package/components/layouts/burh-ds/navbar/GlobalNavbar.vue +1 -1
- package/components/layouts/burh-ds/navbar/MobileNavbar.vue +1 -1
- package/components/layouts/burh-ds/navbar/PublicNavbar.vue +1 -1
- package/components/layouts/burh-ds/navbar/UserNavbar.vue +1 -1
- package/components/layouts/burh-ds/navbar/UserNavbarLogin.vue +1 -1
- package/environment.js +1 -1
- package/middleware/new-account.js +2 -2
- package/package.json +1 -1
- 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
|
-
|
|
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
|
}
|
|
@@ -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
|
-
<
|
|
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
|
-
|
|
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
|
-
//
|
|
91
|
+
//
|
|
92
92
|
|
|
93
93
|
// this.stickyTurnOn(topElement, bodyElement, subHeader, subHeaderInitial, topElementHeight, windowHeight, headerBodyElementInitial);
|
|
94
94
|
|
|
@@ -76,7 +76,7 @@ export default {
|
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
mounted() {
|
|
79
|
-
|
|
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
|
-
|
|
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
|
-
|
|
138
|
+
|
|
139
139
|
this.slots = this.slots.filter(slot => slot.email !== email);
|
|
140
|
-
|
|
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,188 @@
|
|
|
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.closeModal();
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
watch: {
|
|
140
|
+
show(newValue) {
|
|
141
|
+
this.show = newValue;
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
data() {
|
|
145
|
+
return {
|
|
146
|
+
slots: [
|
|
147
|
+
{
|
|
148
|
+
name: "",
|
|
149
|
+
email: ""
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
</script>
|
|
156
|
+
<style lang="scss" scoped>
|
|
157
|
+
@import "@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss";
|
|
158
|
+
|
|
159
|
+
.send-test-modal {
|
|
160
|
+
position: fixed;
|
|
161
|
+
overflow-y: scroll;
|
|
162
|
+
overflow-x: hidden;
|
|
163
|
+
width: 60%;
|
|
164
|
+
height: 50%;
|
|
165
|
+
background-color: #ffffff;
|
|
166
|
+
z-index: 999 !important;
|
|
167
|
+
top: 20% !important;
|
|
168
|
+
left: 20% !important;
|
|
169
|
+
box-sizing: border-box;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.pointer {
|
|
173
|
+
cursor: pointer;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
#credits-amount {
|
|
177
|
+
min-width: 8em;
|
|
178
|
+
margin: 1rem 1rem 1rem 0;
|
|
179
|
+
padding: 0.75em 2em;
|
|
180
|
+
font-size: 1rem;
|
|
181
|
+
line-height: 1.4em;
|
|
182
|
+
border-radius: 23rem;
|
|
183
|
+
font-weight: 400;
|
|
184
|
+
text-align: center;
|
|
185
|
+
background-color: rgba($color-primary, .1);
|
|
186
|
+
color: $color-primary;
|
|
187
|
+
}
|
|
188
|
+
</style>
|
|
@@ -102,7 +102,7 @@ export default {
|
|
|
102
102
|
this.$shareOnFacebook(
|
|
103
103
|
this.url,
|
|
104
104
|
function() {
|
|
105
|
-
//
|
|
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
|
-
//
|
|
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
|
-
//
|
|
123
|
+
//
|
|
124
124
|
}
|
|
125
125
|
);
|
|
126
126
|
},
|
package/environment.js
CHANGED
package/package.json
CHANGED
package/plugins/localstorage.js
CHANGED
|
@@ -4,7 +4,7 @@ import 'core-js/es7';
|
|
|
4
4
|
|
|
5
5
|
export default function ({ store, route }) {
|
|
6
6
|
if (process.client) {
|
|
7
|
-
//
|
|
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));
|