@burh/nuxt-core 1.0.322 → 1.0.325
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,134 +1,134 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<modal :show.sync="showModal"
|
|
3
|
-
modalContentClasses="container-fluid" headerClasses="row px-4" bodyClasses="row px-4 pt-3"
|
|
4
|
-
v-on:close="closeModal()">
|
|
5
|
-
<template slot="header">
|
|
6
|
-
<h5 class="pl-3 modal-title">Acesso</h5>
|
|
7
|
-
</template>
|
|
8
|
-
|
|
9
|
-
<div class="col-12 d-flex">
|
|
10
|
-
<div
|
|
11
|
-
id="role"
|
|
12
|
-
tag="div"
|
|
13
|
-
class="d-flex flex-column mb-3"
|
|
14
|
-
name="role"
|
|
15
|
-
>
|
|
16
|
-
<label for="email" class="form-control-label">Email</label>
|
|
17
|
-
<el-input disabled v-model="email"></el-input>
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
|
|
21
|
-
<div class="col-12 d-flex">
|
|
22
|
-
<div
|
|
23
|
-
id="role"
|
|
24
|
-
tag="div"
|
|
25
|
-
class="d-flex flex-column mb-3"
|
|
26
|
-
name="role"
|
|
27
|
-
>
|
|
28
|
-
|
|
29
|
-
<label for="role" class="form-control-label">Cargo</label>
|
|
30
|
-
<el-input disabled v-model="role"></el-input>
|
|
31
|
-
</div>
|
|
32
|
-
|
|
33
|
-
<!-- Habilitar novamente caso volte a ser usado -->
|
|
34
|
-
|
|
35
|
-
<!-- <el-tooltip class="item" placement="top" :content="'Editar Cargo'">
|
|
36
|
-
<base-button size="md" type="link" disabled class="text-primary h-25 my-auto px-2 w-auto"
|
|
37
|
-
@click="$emit('first-icon-click', { firstFieldText: firstFieldValue })">
|
|
38
|
-
<font-awesome-icon :icon="['fas', 'save']" class="mr-2" />
|
|
39
|
-
</base-button>
|
|
40
|
-
</el-tooltip> -->
|
|
41
|
-
</div>
|
|
42
|
-
|
|
43
|
-
<label for="trainings" class="col-12 form-control-label">Acesso aos Treinamentos</label>
|
|
44
|
-
<!--não estou conseguindo listar o userTrainingsSelecteds vindo com (id, name)-->
|
|
45
|
-
<el-select
|
|
46
|
-
v-model="userTrainingsSelecteds"
|
|
47
|
-
id="trainings"
|
|
48
|
-
class="d-block col-12"
|
|
49
|
-
multiple
|
|
50
|
-
placeholder="Selecionar"
|
|
51
|
-
>
|
|
52
|
-
<el-option
|
|
53
|
-
v-for="item in itemsToSelect"
|
|
54
|
-
:key="`course-to-select-${item.id}`"
|
|
55
|
-
:value="item.id"
|
|
56
|
-
:label="item.name">
|
|
57
|
-
</el-option>
|
|
58
|
-
</el-select>
|
|
59
|
-
|
|
60
|
-
<div class="col-12">
|
|
61
|
-
<a @click.prevent="$emit('first-element-click')" class="btn btn-link text-danger cursor-pointer pl-0">Remover Aluno</a>
|
|
62
|
-
</div>
|
|
63
|
-
|
|
64
|
-
</modal>
|
|
65
|
-
</template>
|
|
66
|
-
<script>
|
|
67
|
-
import { Select, Option } from 'element-ui';
|
|
68
|
-
export default {
|
|
69
|
-
components: {
|
|
70
|
-
[Select.name]: Select,
|
|
71
|
-
[Option.name]: Option
|
|
72
|
-
},
|
|
73
|
-
data() {
|
|
74
|
-
return {
|
|
75
|
-
firstFieldValue: this.propFirstFieldValue,
|
|
76
|
-
userTrainingsSelecteds: [],
|
|
77
|
-
showModal: this.openModal
|
|
78
|
-
};
|
|
79
|
-
},
|
|
80
|
-
props: {
|
|
81
|
-
propFirstFieldValue: {
|
|
82
|
-
type: String,
|
|
83
|
-
default: ''
|
|
84
|
-
},
|
|
85
|
-
email: {
|
|
86
|
-
type: String,
|
|
87
|
-
default: ''
|
|
88
|
-
},
|
|
89
|
-
role: {
|
|
90
|
-
type: String,
|
|
91
|
-
default: ''
|
|
92
|
-
},
|
|
93
|
-
openModal: false,
|
|
94
|
-
userTrainings: {
|
|
95
|
-
type: Array,
|
|
96
|
-
default: () => []
|
|
97
|
-
},
|
|
98
|
-
itemsToSelect: {
|
|
99
|
-
type: Array,
|
|
100
|
-
default: () => []
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
methods:{
|
|
104
|
-
closeModal(){
|
|
105
|
-
this.$emit('close-modal');
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
watch: {
|
|
109
|
-
userTrainings(newValue) {
|
|
110
|
-
console.log(newValue);
|
|
111
|
-
this.userTrainingsSelecteds = newValue;
|
|
112
|
-
|
|
113
|
-
},
|
|
114
|
-
|
|
115
|
-
userTrainingsSelecteds(newValue, oldVal) {
|
|
116
|
-
if (oldVal != newValue) {
|
|
117
|
-
console.log('change on if');
|
|
118
|
-
this.$emit('change-selecteds', {
|
|
119
|
-
oldSelecteds: oldVal,
|
|
120
|
-
newSelecteds: newValue,
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
|
|
125
|
-
openModal(value) {
|
|
126
|
-
this.showModal = value;
|
|
127
|
-
},
|
|
128
|
-
|
|
129
|
-
propFirstFieldValue(value) {
|
|
130
|
-
this.firstFieldValue = value;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
};
|
|
134
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<modal :show.sync="showModal"
|
|
3
|
+
modalContentClasses="container-fluid" headerClasses="row px-4" bodyClasses="row px-4 pt-3"
|
|
4
|
+
v-on:close="closeModal()">
|
|
5
|
+
<template slot="header">
|
|
6
|
+
<h5 class="pl-3 modal-title">Acesso</h5>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<div class="col-12 d-flex">
|
|
10
|
+
<div
|
|
11
|
+
id="role"
|
|
12
|
+
tag="div"
|
|
13
|
+
class="d-flex flex-column mb-3"
|
|
14
|
+
name="role"
|
|
15
|
+
>
|
|
16
|
+
<label for="email" class="form-control-label">Email</label>
|
|
17
|
+
<el-input disabled v-model="email"></el-input>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<div class="col-12 d-flex">
|
|
22
|
+
<div
|
|
23
|
+
id="role"
|
|
24
|
+
tag="div"
|
|
25
|
+
class="d-flex flex-column mb-3"
|
|
26
|
+
name="role"
|
|
27
|
+
>
|
|
28
|
+
|
|
29
|
+
<label for="role" class="form-control-label">Cargo</label>
|
|
30
|
+
<el-input disabled v-model="role"></el-input>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<!-- Habilitar novamente caso volte a ser usado -->
|
|
34
|
+
|
|
35
|
+
<!-- <el-tooltip class="item" placement="top" :content="'Editar Cargo'">
|
|
36
|
+
<base-button size="md" type="link" disabled class="text-primary h-25 my-auto px-2 w-auto"
|
|
37
|
+
@click="$emit('first-icon-click', { firstFieldText: firstFieldValue })">
|
|
38
|
+
<font-awesome-icon :icon="['fas', 'save']" class="mr-2" />
|
|
39
|
+
</base-button>
|
|
40
|
+
</el-tooltip> -->
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<label for="trainings" class="col-12 form-control-label">Acesso aos Treinamentos</label>
|
|
44
|
+
<!--não estou conseguindo listar o userTrainingsSelecteds vindo com (id, name)-->
|
|
45
|
+
<el-select
|
|
46
|
+
v-model="userTrainingsSelecteds"
|
|
47
|
+
id="trainings"
|
|
48
|
+
class="d-block col-12"
|
|
49
|
+
multiple
|
|
50
|
+
placeholder="Selecionar"
|
|
51
|
+
>
|
|
52
|
+
<el-option
|
|
53
|
+
v-for="item in itemsToSelect"
|
|
54
|
+
:key="`course-to-select-${item.id}`"
|
|
55
|
+
:value="item.id"
|
|
56
|
+
:label="item.name">
|
|
57
|
+
</el-option>
|
|
58
|
+
</el-select>
|
|
59
|
+
|
|
60
|
+
<div class="col-12">
|
|
61
|
+
<a @click.prevent="$emit('first-element-click')" class="btn btn-link text-danger cursor-pointer pl-0">Remover Aluno</a>
|
|
62
|
+
</div>
|
|
63
|
+
|
|
64
|
+
</modal>
|
|
65
|
+
</template>
|
|
66
|
+
<script>
|
|
67
|
+
import { Select, Option } from 'element-ui';
|
|
68
|
+
export default {
|
|
69
|
+
components: {
|
|
70
|
+
[Select.name]: Select,
|
|
71
|
+
[Option.name]: Option
|
|
72
|
+
},
|
|
73
|
+
data() {
|
|
74
|
+
return {
|
|
75
|
+
firstFieldValue: this.propFirstFieldValue,
|
|
76
|
+
userTrainingsSelecteds: [],
|
|
77
|
+
showModal: this.openModal
|
|
78
|
+
};
|
|
79
|
+
},
|
|
80
|
+
props: {
|
|
81
|
+
propFirstFieldValue: {
|
|
82
|
+
type: String,
|
|
83
|
+
default: ''
|
|
84
|
+
},
|
|
85
|
+
email: {
|
|
86
|
+
type: String,
|
|
87
|
+
default: ''
|
|
88
|
+
},
|
|
89
|
+
role: {
|
|
90
|
+
type: String,
|
|
91
|
+
default: ''
|
|
92
|
+
},
|
|
93
|
+
openModal: false,
|
|
94
|
+
userTrainings: {
|
|
95
|
+
type: Array,
|
|
96
|
+
default: () => []
|
|
97
|
+
},
|
|
98
|
+
itemsToSelect: {
|
|
99
|
+
type: Array,
|
|
100
|
+
default: () => []
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
methods:{
|
|
104
|
+
closeModal(){
|
|
105
|
+
this.$emit('close-modal');
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
watch: {
|
|
109
|
+
userTrainings(newValue) {
|
|
110
|
+
console.log(newValue);
|
|
111
|
+
this.userTrainingsSelecteds = newValue;
|
|
112
|
+
|
|
113
|
+
},
|
|
114
|
+
|
|
115
|
+
userTrainingsSelecteds(newValue, oldVal) {
|
|
116
|
+
if (oldVal != newValue) {
|
|
117
|
+
console.log('change on if');
|
|
118
|
+
this.$emit('change-selecteds', {
|
|
119
|
+
oldSelecteds: oldVal,
|
|
120
|
+
newSelecteds: newValue,
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
|
|
125
|
+
openModal(value) {
|
|
126
|
+
this.showModal = value;
|
|
127
|
+
},
|
|
128
|
+
|
|
129
|
+
propFirstFieldValue(value) {
|
|
130
|
+
this.firstFieldValue = value;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
</script>
|
package/package.json
CHANGED
|
@@ -1,111 +1,112 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@burh/nuxt-core",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Design System and Components.",
|
|
5
|
-
"author": "Burh",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"dev": "nuxt",
|
|
8
|
-
"build": "nuxt build",
|
|
9
|
-
"start": "nuxt start",
|
|
10
|
-
"generate": "nuxt generate",
|
|
11
|
-
"build:server": "git pull origin release && yarn install && yarn build && pm2 restart all",
|
|
12
|
-
"start:maintenance": "MAINTENANCE_MODE=true pm2 restart all",
|
|
13
|
-
"dev:maintenance": "MAINTENANCE_MODE=true nuxt"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"@
|
|
18
|
-
"@
|
|
19
|
-
"@
|
|
20
|
-
"@
|
|
21
|
-
"@fortawesome/
|
|
22
|
-
"@fortawesome/free-
|
|
23
|
-
"@fortawesome/free-
|
|
24
|
-
"@fortawesome/
|
|
25
|
-
"@
|
|
26
|
-
"@fullcalendar/
|
|
27
|
-
"@fullcalendar/
|
|
28
|
-
"@fullcalendar/
|
|
29
|
-
"@fullcalendar/
|
|
30
|
-
"@
|
|
31
|
-
"@nuxtjs/
|
|
32
|
-
"@nuxtjs/google-
|
|
33
|
-
"@nuxtjs/
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"nuxt
|
|
54
|
-
"nuxt-
|
|
55
|
-
"nuxt-
|
|
56
|
-
"nuxt-
|
|
57
|
-
"nuxt-
|
|
58
|
-
"nuxt-
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"quill
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"v-
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"vue
|
|
72
|
-
"vue-
|
|
73
|
-
"vue-
|
|
74
|
-
"vue-
|
|
75
|
-
"vue-
|
|
76
|
-
"vue-
|
|
77
|
-
"vue-
|
|
78
|
-
"vue-
|
|
79
|
-
"vue-
|
|
80
|
-
"vue-
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
"
|
|
87
|
-
"babel-
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"eslint
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"node-
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
"
|
|
103
|
-
|
|
104
|
-
"
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
"
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@burh/nuxt-core",
|
|
3
|
+
"version": "1.0.325",
|
|
4
|
+
"description": "Design System and Components.",
|
|
5
|
+
"author": "Burh",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "nuxt",
|
|
8
|
+
"build": "nuxt build",
|
|
9
|
+
"start": "nuxt start",
|
|
10
|
+
"generate": "nuxt generate",
|
|
11
|
+
"build:server": "git pull origin release && yarn install && yarn build && pm2 restart all",
|
|
12
|
+
"start:maintenance": "MAINTENANCE_MODE=true pm2 restart all",
|
|
13
|
+
"dev:maintenance": "MAINTENANCE_MODE=true nuxt",
|
|
14
|
+
"core:publish": "npm version patch && npm publish && git push"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@babel/core": "^7.4.5",
|
|
18
|
+
"@blowstack/ckeditor-nuxt": "^0.6.0",
|
|
19
|
+
"@chenfengyuan/vue-qrcode": "^1.0.1",
|
|
20
|
+
"@ckeditor/ckeditor5-build-classic": "^27.0.0",
|
|
21
|
+
"@fortawesome/fontawesome-svg-core": "^1.2.22",
|
|
22
|
+
"@fortawesome/free-brands-svg-icons": "^5.10.2",
|
|
23
|
+
"@fortawesome/free-regular-svg-icons": "^5.10.2",
|
|
24
|
+
"@fortawesome/free-solid-svg-icons": "^5.10.2",
|
|
25
|
+
"@fortawesome/vue-fontawesome": "^0.1.7",
|
|
26
|
+
"@fullcalendar/core": "^4.2.0",
|
|
27
|
+
"@fullcalendar/daygrid": "^4.1.0",
|
|
28
|
+
"@fullcalendar/interaction": "^4.1.0",
|
|
29
|
+
"@fullcalendar/timegrid": "^4.1.0",
|
|
30
|
+
"@fullcalendar/vue": "^4.2.2",
|
|
31
|
+
"@nuxtjs/axios": "^5.3.6",
|
|
32
|
+
"@nuxtjs/google-adsense": "^1.1.3",
|
|
33
|
+
"@nuxtjs/google-tag-manager": "^2.3.1",
|
|
34
|
+
"@nuxtjs/pwa": "^3.0.0-beta.16",
|
|
35
|
+
"bootstrap": "4.3.1",
|
|
36
|
+
"chart.js": "^2.8.0",
|
|
37
|
+
"d3": "^5.9.2",
|
|
38
|
+
"datamaps": "^0.5.9",
|
|
39
|
+
"date-fns": "^1.30.1",
|
|
40
|
+
"dropzone": "^5.5.1",
|
|
41
|
+
"element-ui": "2.13.0",
|
|
42
|
+
"es6-promise": "^4.2.6",
|
|
43
|
+
"file-loader": "^6.0.0",
|
|
44
|
+
"flag-icon-css": "^3.4.5",
|
|
45
|
+
"flatpickr": "^4.5.7",
|
|
46
|
+
"fuse.js": "^3.4.5",
|
|
47
|
+
"google-maps": "^3.3.0",
|
|
48
|
+
"heic2any": "0.0.2",
|
|
49
|
+
"local-web-server": "^3.0.7",
|
|
50
|
+
"mobile-device-detect": "^0.3.3",
|
|
51
|
+
"moment": "^2.24.0",
|
|
52
|
+
"nouislider": "^13.1.5",
|
|
53
|
+
"nuxt": "^2.8.1",
|
|
54
|
+
"nuxt-fontawesome": "^0.4.0",
|
|
55
|
+
"nuxt-google-maps-module": "^1.6.0",
|
|
56
|
+
"nuxt-maintenance-mode": "^0.3.0",
|
|
57
|
+
"nuxt-sass-resources-loader": "^2.0.5",
|
|
58
|
+
"nuxt-validate": "^1.0.1",
|
|
59
|
+
"nuxt-vuex-localstorage": "^1.2.6",
|
|
60
|
+
"passport-linkedin": "^1.0.0",
|
|
61
|
+
"perfect-scrollbar": "^1.4.0",
|
|
62
|
+
"prismjs": "^1.17.1",
|
|
63
|
+
"quill": "^1.3.6",
|
|
64
|
+
"quill-image-resize-module": "^3.0.0",
|
|
65
|
+
"read-env": "^1.3.0",
|
|
66
|
+
"sticky-js": "^1.2.0",
|
|
67
|
+
"sweetalert2": "^8.11.6",
|
|
68
|
+
"v-owl-carousel": "^1.0.8",
|
|
69
|
+
"v-resize": "^0.1.1",
|
|
70
|
+
"vee-validate": "^2.2.8",
|
|
71
|
+
"vue": "^2.6.10",
|
|
72
|
+
"vue-chartjs": "^3.4.2",
|
|
73
|
+
"vue-clipboard2": "^0.3.0",
|
|
74
|
+
"vue-croppie": "^2.0.1",
|
|
75
|
+
"vue-flatpickr-component": "^8.1.2",
|
|
76
|
+
"vue-form-generator": "^2.3.4",
|
|
77
|
+
"vue-loading-overlay": "^3.3.2",
|
|
78
|
+
"vue-nav-tabs": "^0.5.7",
|
|
79
|
+
"vue-plain-pagination": "^0.3.0",
|
|
80
|
+
"vue-slick-carousel": "^1.0.6",
|
|
81
|
+
"vue-the-mask": "^0.11.1",
|
|
82
|
+
"vue2-transitions": "^0.3.0",
|
|
83
|
+
"webp-loader": "^0.6.0"
|
|
84
|
+
},
|
|
85
|
+
"devDependencies": {
|
|
86
|
+
"autoprefixer": "^9.6.1",
|
|
87
|
+
"babel-eslint": "^10.0.3",
|
|
88
|
+
"babel-plugin-component": "^1.1.0",
|
|
89
|
+
"browser-sync": "^2.26.7",
|
|
90
|
+
"cross-env": "^5.2.0",
|
|
91
|
+
"cssnano": "^4.1.10",
|
|
92
|
+
"del": "^5.0.0",
|
|
93
|
+
"eslint": "^6.8.0",
|
|
94
|
+
"eslint-plugin-vue": "^6.1.2",
|
|
95
|
+
"img-loader": "^3.0.1",
|
|
96
|
+
"lodash": "^4.17.15",
|
|
97
|
+
"node-dir": "^0.1.17",
|
|
98
|
+
"node-sass": "^5.0.0",
|
|
99
|
+
"nodemon": "^1.18.9",
|
|
100
|
+
"sass-loader": "^7.1.0"
|
|
101
|
+
},
|
|
102
|
+
"main": "dictionary.js",
|
|
103
|
+
"repository": {
|
|
104
|
+
"type": "git",
|
|
105
|
+
"url": "git+ssh://git@gitlab.com/gabrielesnack/burh-core.git"
|
|
106
|
+
},
|
|
107
|
+
"license": "UNLICENSED",
|
|
108
|
+
"bugs": {
|
|
109
|
+
"url": "https://gitlab.com/gabrielesnack/burh-core/issues"
|
|
110
|
+
},
|
|
111
|
+
"homepage": "https://gitlab.com/gabrielesnack/burh-core#readme"
|
|
112
|
+
}
|