@burh/nuxt-core 1.0.59 → 1.0.61

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.
@@ -57,8 +57,10 @@ export default {
57
57
  },
58
58
  });
59
59
 
60
- if (this.value.length > 0) {
61
- this.editor.pasteHTML(this.value);
60
+ if (this.value) {
61
+ if (this.value.length > 0) {
62
+ this.editor.pasteHTML(this.value);
63
+ }
62
64
  }
63
65
 
64
66
  let editorRef = this.$refs.editor;
@@ -28,9 +28,10 @@
28
28
  ></textarea>
29
29
  </div>
30
30
 
31
- <div class="col-12 mb-4 d-flex flex-column" v-if="!isCourse">
31
+ <div class="col-12 mb-4 d-flex flex-column" v-if="!isCourse && categories && categories.length">
32
32
  <label for="category" class="form-control-label">Categoria</label>
33
33
  <el-select
34
+ filterable
34
35
  class="select-danger"
35
36
  id="category"
36
37
  :disabled="testId != null ? true : false"
@@ -39,10 +40,11 @@
39
40
  :placeholder="''"
40
41
  >
41
42
  <el-option
42
- v-for="category in categories"
43
+ v-for="(category, index) in categories"
43
44
  :key="category.id"
44
45
  :label="category.name"
45
46
  :value="category.id"
47
+ :selected="index == 0 && configInfo.category == null"
46
48
  >
47
49
  </el-option>
48
50
  </el-select>
@@ -213,6 +215,12 @@ export default {
213
215
  testCategories(newValue){
214
216
  this.configInfo.category = newValue;
215
217
  },
218
+ show(value) {
219
+ const isCategoryInitialized = this.configInfo.category ? true : false
220
+ if(value && !isCategoryInitialized) {
221
+ this.configInfo.category = this.categories[0].id;
222
+ }
223
+ }
216
224
  },
217
225
  mounted() {
218
226
  this.loadTime();
@@ -1,18 +1,16 @@
1
1
  <template>
2
2
  <div class="card position-relative">
3
3
  <div class="row px-4 justify-content-start">
4
- <validation-provider tag="div" class="col-8" :vid="`question-${step}-${position}`"
5
- name="Pergunta" rules="required" v-slot="{ errors }">
6
- <base-input
7
- :label="`Pergunta #${position + 1}`"
4
+ <div class="col-8">
5
+ <label class="form-control-label d-block pt-1">
6
+ {{`Pergunta #${position + 1}`}}
7
+ </label>
8
+ <html-editor
8
9
  placeholder="Escreva uma pergunta"
9
- type="text"
10
- :error="errors[0]"
11
- :valid="errors.length ? true : false"
12
10
  :value="question.question"
13
11
  v-on:input="setQuestion('question', $event)"
14
12
  />
15
- </validation-provider>
13
+ </div>
16
14
 
17
15
  <div class="col-4">
18
16
  <label class="form-control-label d-block pt-1">
@@ -67,6 +65,7 @@ import {Select, Option} from 'element-ui'
67
65
  import QuestionText from '@burh/nuxt-core/components/burh-ds/Questions/QuestionText.vue';
68
66
  import QuestionRadio from '@burh/nuxt-core/components/burh-ds/Questions/QuestionRadio.vue';
69
67
  import QuestionAttach from '@burh/nuxt-core/components/burh-ds/Questions/QuestionAttach.vue';
68
+ import HtmlEditor from '@burh/nuxt-core/components/burh-ds/Inputs/HtmlEditor.vue'
70
69
 
71
70
  export default {
72
71
  components: {
@@ -74,7 +73,8 @@ export default {
74
73
  [Option.name]: Option,
75
74
  Paragraph: QuestionText,
76
75
  QuestionRadio,
77
- QuestionAttach
76
+ QuestionAttach,
77
+ HtmlEditor
78
78
  },
79
79
  props: {
80
80
  step: {
@@ -120,6 +120,7 @@ export default {
120
120
  setQuestion(type, data) {
121
121
  this.question[type] = data
122
122
  this.emitQuestion();
123
+ console.log(this.question)
123
124
  },
124
125
  mergeDataQuestion(data) {
125
126
  this.question = { ...this.question , ...data }
package/package.json CHANGED
@@ -1,107 +1,107 @@
1
1
  {
2
- "name": "@burh/nuxt-core",
3
- "version": "1.0.59",
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
- "dependencies": {
16
- "@babel/core": "^7.4.5",
17
- "@chenfengyuan/vue-qrcode": "^1.0.1",
18
- "@fortawesome/fontawesome-svg-core": "^1.2.22",
19
- "@fortawesome/free-brands-svg-icons": "^5.10.2",
20
- "@fortawesome/free-regular-svg-icons": "^5.10.2",
21
- "@fortawesome/free-solid-svg-icons": "^5.10.2",
22
- "@fortawesome/vue-fontawesome": "^0.1.7",
23
- "@fullcalendar/core": "^4.2.0",
24
- "@fullcalendar/daygrid": "^4.1.0",
25
- "@fullcalendar/interaction": "^4.1.0",
26
- "@fullcalendar/timegrid": "^4.1.0",
27
- "@fullcalendar/vue": "^4.2.2",
28
- "@nuxtjs/axios": "^5.3.6",
29
- "@nuxtjs/google-adsense": "^1.1.3",
30
- "@nuxtjs/google-tag-manager": "^2.3.1",
31
- "@nuxtjs/pwa": "^3.0.0-beta.16",
32
- "bootstrap": "4.3.1",
33
- "chart.js": "^2.8.0",
34
- "d3": "^5.9.2",
35
- "datamaps": "^0.5.9",
36
- "date-fns": "^1.30.1",
37
- "dropzone": "^5.5.1",
38
- "element-ui": "2.13.0",
39
- "es6-promise": "^4.2.6",
40
- "file-loader": "^6.0.0",
41
- "flag-icon-css": "^3.4.5",
42
- "flatpickr": "^4.5.7",
43
- "fuse.js": "^3.4.5",
44
- "google-maps": "^3.3.0",
45
- "heic2any": "0.0.2",
46
- "local-web-server": "^3.0.7",
47
- "mobile-device-detect": "^0.3.3",
48
- "moment": "^2.24.0",
49
- "nouislider": "^13.1.5",
50
- "nuxt": "^2.8.1",
51
- "nuxt-fontawesome": "^0.4.0",
52
- "nuxt-google-maps-module": "^1.6.0",
53
- "nuxt-maintenance-mode": "^0.3.0",
54
- "nuxt-sass-resources-loader": "^2.0.5",
55
- "nuxt-validate": "^1.0.1",
56
- "nuxt-vuex-localstorage": "^1.2.6",
57
- "passport-linkedin": "^1.0.0",
58
- "perfect-scrollbar": "^1.4.0",
59
- "prismjs": "^1.17.1",
60
- "quill": "^1.3.6",
61
- "quill-image-resize-module": "^3.0.0",
62
- "read-env": "^1.3.0",
63
- "sticky-js": "^1.2.0",
64
- "sweetalert2": "^8.11.6",
65
- "v-owl-carousel": "^1.0.8",
66
- "v-resize": "^0.1.1",
67
- "vee-validate": "^2.2.8",
68
- "vue": "^2.6.10",
69
- "vue-chartjs": "^3.4.2",
70
- "vue-clipboard2": "^0.3.0",
71
- "vue-croppie": "^2.0.1",
72
- "vue-flatpickr-component": "^8.1.2",
73
- "vue-form-generator": "^2.3.4",
74
- "vue-loading-overlay": "^3.3.2",
75
- "vue-plain-pagination": "^0.3.0",
76
- "vue-the-mask": "^0.11.1",
77
- "vue2-transitions": "^0.3.0",
78
- "webp-loader": "^0.6.0"
79
- },
80
- "devDependencies": {
81
- "autoprefixer": "^9.6.1",
82
- "babel-eslint": "^10.0.3",
83
- "babel-plugin-component": "^1.1.0",
84
- "browser-sync": "^2.26.7",
85
- "cross-env": "^5.2.0",
86
- "cssnano": "^4.1.10",
87
- "del": "^5.0.0",
88
- "eslint": "^6.8.0",
89
- "eslint-plugin-vue": "^6.1.2",
90
- "img-loader": "^3.0.1",
91
- "lodash": "^4.17.15",
92
- "node-dir": "^0.1.17",
93
- "node-sass": "^4.12.0",
94
- "nodemon": "^1.18.9",
95
- "sass-loader": "^7.1.0"
96
- },
97
- "main": "dictionary.js",
98
- "repository": {
99
- "type": "git",
100
- "url": "git+ssh://git@gitlab.com/gabrielesnack/burh-core.git"
101
- },
102
- "license": "UNLICENSED",
103
- "bugs": {
104
- "url": "https://gitlab.com/gabrielesnack/burh-core/issues"
105
- },
106
- "homepage": "https://gitlab.com/gabrielesnack/burh-core#readme"
2
+ "name": "@burh/nuxt-core",
3
+ "version": "1.0.61",
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
+ "dependencies": {
16
+ "@babel/core": "^7.4.5",
17
+ "@chenfengyuan/vue-qrcode": "^1.0.1",
18
+ "@fortawesome/fontawesome-svg-core": "^1.2.22",
19
+ "@fortawesome/free-brands-svg-icons": "^5.10.2",
20
+ "@fortawesome/free-regular-svg-icons": "^5.10.2",
21
+ "@fortawesome/free-solid-svg-icons": "^5.10.2",
22
+ "@fortawesome/vue-fontawesome": "^0.1.7",
23
+ "@fullcalendar/core": "^4.2.0",
24
+ "@fullcalendar/daygrid": "^4.1.0",
25
+ "@fullcalendar/interaction": "^4.1.0",
26
+ "@fullcalendar/timegrid": "^4.1.0",
27
+ "@fullcalendar/vue": "^4.2.2",
28
+ "@nuxtjs/axios": "^5.3.6",
29
+ "@nuxtjs/google-adsense": "^1.1.3",
30
+ "@nuxtjs/google-tag-manager": "^2.3.1",
31
+ "@nuxtjs/pwa": "^3.0.0-beta.16",
32
+ "bootstrap": "4.3.1",
33
+ "chart.js": "^2.8.0",
34
+ "d3": "^5.9.2",
35
+ "datamaps": "^0.5.9",
36
+ "date-fns": "^1.30.1",
37
+ "dropzone": "^5.5.1",
38
+ "element-ui": "2.13.0",
39
+ "es6-promise": "^4.2.6",
40
+ "file-loader": "^6.0.0",
41
+ "flag-icon-css": "^3.4.5",
42
+ "flatpickr": "^4.5.7",
43
+ "fuse.js": "^3.4.5",
44
+ "google-maps": "^3.3.0",
45
+ "heic2any": "0.0.2",
46
+ "local-web-server": "^3.0.7",
47
+ "mobile-device-detect": "^0.3.3",
48
+ "moment": "^2.24.0",
49
+ "nouislider": "^13.1.5",
50
+ "nuxt": "^2.8.1",
51
+ "nuxt-fontawesome": "^0.4.0",
52
+ "nuxt-google-maps-module": "^1.6.0",
53
+ "nuxt-maintenance-mode": "^0.3.0",
54
+ "nuxt-sass-resources-loader": "^2.0.5",
55
+ "nuxt-validate": "^1.0.1",
56
+ "nuxt-vuex-localstorage": "^1.2.6",
57
+ "passport-linkedin": "^1.0.0",
58
+ "perfect-scrollbar": "^1.4.0",
59
+ "prismjs": "^1.17.1",
60
+ "quill": "^1.3.6",
61
+ "quill-image-resize-module": "^3.0.0",
62
+ "read-env": "^1.3.0",
63
+ "sticky-js": "^1.2.0",
64
+ "sweetalert2": "^8.11.6",
65
+ "v-owl-carousel": "^1.0.8",
66
+ "v-resize": "^0.1.1",
67
+ "vee-validate": "^2.2.8",
68
+ "vue": "^2.6.10",
69
+ "vue-chartjs": "^3.4.2",
70
+ "vue-clipboard2": "^0.3.0",
71
+ "vue-croppie": "^2.0.1",
72
+ "vue-flatpickr-component": "^8.1.2",
73
+ "vue-form-generator": "^2.3.4",
74
+ "vue-loading-overlay": "^3.3.2",
75
+ "vue-plain-pagination": "^0.3.0",
76
+ "vue-the-mask": "^0.11.1",
77
+ "vue2-transitions": "^0.3.0",
78
+ "webp-loader": "^0.6.0"
79
+ },
80
+ "devDependencies": {
81
+ "autoprefixer": "^9.6.1",
82
+ "babel-eslint": "^10.0.3",
83
+ "babel-plugin-component": "^1.1.0",
84
+ "browser-sync": "^2.26.7",
85
+ "cross-env": "^5.2.0",
86
+ "cssnano": "^4.1.10",
87
+ "del": "^5.0.0",
88
+ "eslint": "^6.8.0",
89
+ "eslint-plugin-vue": "^6.1.2",
90
+ "img-loader": "^3.0.1",
91
+ "lodash": "^4.17.15",
92
+ "node-dir": "^0.1.17",
93
+ "node-sass": "^4.12.0",
94
+ "nodemon": "^1.18.9",
95
+ "sass-loader": "^7.1.0"
96
+ },
97
+ "main": "dictionary.js",
98
+ "repository": {
99
+ "type": "git",
100
+ "url": "git+ssh://git@gitlab.com/gabrielesnack/burh-core.git"
101
+ },
102
+ "license": "UNLICENSED",
103
+ "bugs": {
104
+ "url": "https://gitlab.com/gabrielesnack/burh-core/issues"
105
+ },
106
+ "homepage": "https://gitlab.com/gabrielesnack/burh-core#readme"
107
107
  }