@windward/core 0.0.9 → 0.1.1

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 (61) hide show
  1. package/components/Content/Blocks/Accordion.vue +7 -2
  2. package/components/Content/Blocks/BlockQuote.vue +191 -0
  3. package/components/Content/Blocks/Email.vue +248 -0
  4. package/components/Content/Blocks/FeedbackTemplates/FeedbackQuestionLikert.vue +25 -14
  5. package/components/Content/Blocks/FeedbackTemplates/FeedbackQuestionTrueFalse.vue +3 -7
  6. package/components/Content/Blocks/Image.vue +1 -1
  7. package/components/Content/Blocks/OpenResponse.vue +22 -16
  8. package/components/Content/Blocks/Tab.vue +7 -3
  9. package/components/Content/Blocks/UserUpload.vue +2 -2
  10. package/components/Settings/AccordionSettings.vue +9 -1
  11. package/components/Settings/BlockQuoteSettings.vue +143 -0
  12. package/components/Settings/EmailSettings.vue +216 -0
  13. package/components/Settings/ImageSettings.vue +1 -1
  14. package/components/Settings/OpenResponseCollateSettings.vue +1 -1
  15. package/components/Settings/OpenResponseSettings.vue +7 -9
  16. package/components/Settings/TabSettings.vue +14 -5
  17. package/components/Settings/TextEditorSettings.vue +1 -1
  18. package/components/Settings/UserUploadSettings.vue +1 -1
  19. package/components/utils/MathExpressionEditor.vue +30 -15
  20. package/components/utils/TinyMCEWrapper.vue +3 -1
  21. package/i18n/en-US/components/content/blocks/block_quote.ts +3 -0
  22. package/i18n/en-US/components/content/blocks/email.ts +12 -0
  23. package/i18n/en-US/components/content/blocks/index.ts +4 -0
  24. package/i18n/en-US/components/settings/block_quote.ts +9 -0
  25. package/i18n/en-US/components/settings/email.ts +9 -0
  26. package/i18n/en-US/components/settings/index.ts +4 -0
  27. package/i18n/en-US/components/utils/index.ts +2 -0
  28. package/i18n/en-US/components/utils/math_expression_editor.ts +3 -0
  29. package/i18n/en-US/shared/content_blocks.ts +2 -1
  30. package/i18n/en-US/shared/settings.ts +5 -0
  31. package/i18n/es-ES/components/content/blocks/block_quote.ts +3 -0
  32. package/i18n/es-ES/components/content/blocks/email.ts +12 -0
  33. package/i18n/es-ES/components/content/blocks/index.ts +4 -0
  34. package/i18n/es-ES/components/settings/block_quote.ts +9 -0
  35. package/i18n/es-ES/components/settings/email.ts +9 -0
  36. package/i18n/es-ES/components/settings/index.ts +4 -0
  37. package/i18n/es-ES/components/utils/index.ts +2 -1
  38. package/i18n/es-ES/components/utils/math_expression_editor.ts +3 -0
  39. package/i18n/es-ES/shared/content_blocks.ts +2 -1
  40. package/i18n/es-ES/shared/settings.ts +5 -0
  41. package/i18n/sv-SE/components/content/blocks/block_quote.ts +3 -0
  42. package/i18n/sv-SE/components/content/blocks/email.ts +12 -0
  43. package/i18n/sv-SE/components/content/blocks/index.ts +4 -0
  44. package/i18n/sv-SE/components/settings/block_quote.ts +9 -0
  45. package/i18n/sv-SE/components/settings/email.ts +9 -0
  46. package/i18n/sv-SE/components/settings/index.ts +4 -0
  47. package/i18n/sv-SE/components/utils/index.ts +2 -1
  48. package/i18n/sv-SE/components/utils/math_expression_editor.ts +3 -0
  49. package/i18n/sv-SE/shared/content_blocks.ts +2 -1
  50. package/i18n/sv-SE/shared/settings.ts +5 -0
  51. package/package.json +4 -4
  52. package/plugin.js +42 -0
  53. package/test/Components/Content/Blocks/Accordion.spec.js +2 -0
  54. package/test/Components/Content/Blocks/BlockQuote.spec.js +23 -0
  55. package/test/Components/Content/Blocks/Email.spec.js +23 -0
  56. package/test/Components/Content/Blocks/Feedback.spec.js +1 -0
  57. package/test/Components/Content/Blocks/Math.spec.js +1 -0
  58. package/test/Components/Content/Blocks/Tab.spec.js +1 -0
  59. package/test/Components/Settings/BlockQuoteSettings.spec.js +20 -0
  60. package/test/Components/Settings/EmailSettings.spec.js +45 -0
  61. package/test/__mocks__/componentsMock.js +6 -0
@@ -1,14 +1,23 @@
1
1
  <template>
2
2
  <div>
3
3
  <v-card flat class="py-12">
4
- <label>Add Math Below</label>
5
- <math-live-wrapper
6
- ref="mathfield"
7
- v-model="formula"
8
- :options="options"
9
- :value="value"
10
- @change="submit"
11
- ></math-live-wrapper>
4
+ <v-card-title>
5
+ {{
6
+ $t(
7
+ 'windward.core.components.utils.math_expression_editor.title'
8
+ )
9
+ }}
10
+ </v-card-title>
11
+ <v-card-text>
12
+ <math-live-wrapper
13
+ ref="mathfield"
14
+ v-model="formula"
15
+ :id="mathElementId"
16
+ :options="options"
17
+ :value="value"
18
+ @change="submit"
19
+ ></math-live-wrapper>
20
+ </v-card-text>
12
21
  </v-card>
13
22
  <v-card>
14
23
  <v-card-text>
@@ -115,6 +124,7 @@
115
124
  import MathHelper from '../../helpers/MathHelper'
116
125
  import MathLiveWrapper from './MathLiveWrapper'
117
126
  import tinymceConfig from '../../config/tinymce.config'
127
+ import Crypto from '~/helpers/Crypto'
118
128
  export default {
119
129
  components: { MathLiveWrapper },
120
130
  layout: 'plugin',
@@ -140,6 +150,7 @@ export default {
140
150
  tab: null,
141
151
  toggle_exclusive: true,
142
152
  panel: [],
153
+ mathElementId: '',
143
154
  }
144
155
  },
145
156
  computed: {
@@ -158,6 +169,7 @@ export default {
158
169
  },
159
170
  },
160
171
  beforeMount() {
172
+ this.mathElementId = Crypto.id()
161
173
  if (this.mode === 'standalone') {
162
174
  this.initStandaloneMode()
163
175
  }
@@ -172,7 +184,6 @@ export default {
172
184
  '*'
173
185
  )
174
186
  }
175
- this.$refs.mathfield.focus()
176
187
  },
177
188
  created() {
178
189
  if (this.mode === 'plugin') {
@@ -263,24 +274,28 @@ export default {
263
274
  }
264
275
  </script>
265
276
 
266
- <style scoped>
277
+ <style lang="scss" scoped>
267
278
  /* stylelint-disable-next-line selector-type-no-unknown */
268
279
  math-field {
269
280
  min-height: 150px;
270
- outline: 2px solid #64b5f6;
281
+ outline: 2px solid var(--v-primary-base);
271
282
  border-radius: 4px;
283
+ width: 100%;
284
+ background: var(--v-background-base);
285
+ color: var(--v-primary-base);
272
286
  }
273
287
  /* stylelint-disable-next-line selector-type-no-unknown */
274
288
  math-field:focus-within {
275
- outline: 4px solid #52d70b;
289
+ outline: 2px solid var(--v-secondary-base);
276
290
  border-radius: 4px;
277
- background: rgba(251, 187, 182, 0.1);
291
+ background: var(--v-background-base);
292
+ color: var(--v-primary-base);
278
293
  }
279
294
  .btn {
280
295
  cursor: pointer;
281
296
  margin: 0 5px 5px 0;
282
297
  border: 1px solid #595959;
283
- background: white;
298
+ background: var(--v-background-base);
284
299
  border-radius: 5px;
285
300
  padding: 5px 10px;
286
301
  min-height: 40px;
@@ -288,7 +303,7 @@ math-field:focus-within {
288
303
 
289
304
  .btn:hover {
290
305
  background: #595959;
291
- color: white;
306
+ color: var(--v-background-base);
292
307
  }
293
308
  .adjustFont {
294
309
  font-size: 12px !important;
@@ -37,6 +37,7 @@ export default {
37
37
  default:
38
38
  'undo redo | formatselect | fontsizeselect | bold italic underline strikethrough removeformat | alignleft aligncenter alignright | table bullist numlist outdent indent | mathButton ',
39
39
  },
40
+ root_block: { type: String, required: false, default: 'div' },
40
41
  },
41
42
  beforeMount() {
42
43
  this.text = this.value
@@ -61,6 +62,7 @@ export default {
61
62
  return {
62
63
  height: 500,
63
64
  visual: false,
65
+ forced_root_block: this.root_block,
64
66
  menubar: this.menubar,
65
67
  menu: {
66
68
  insert: {
@@ -229,7 +231,7 @@ export default {
229
231
  ],
230
232
  style_formats_merge: true,
231
233
  placeholder: this.$t(
232
- 'windward.core.shared.content_blocks.grouping.placeholder'
234
+ 'windward.core.shared.settings.title.placeholder'
233
235
  ),
234
236
  //required as it will be displayed as inline style in tinymce renderer
235
237
 
@@ -0,0 +1,3 @@
1
+ export default {
2
+ body: 'Blockquote Body',
3
+ }
@@ -0,0 +1,12 @@
1
+ export default {
2
+ title: 'Email Block',
3
+ from: 'From',
4
+ to: 'To',
5
+ cc: 'CC',
6
+ body: 'Email Body',
7
+ simulation: 'Email Simulation',
8
+ reply: 'Reply',
9
+ reply_all: 'Reply All',
10
+ forward: 'Forward',
11
+ reset: 'Reset',
12
+ }
@@ -6,6 +6,8 @@ import feedback from './feedback'
6
6
  import open_response from './open_response'
7
7
  import open_response_collate from './open_response_collate'
8
8
  import scenarioChoice from './scenario_choice'
9
+ import email from './email'
10
+ import block_quote from './block_quote'
9
11
 
10
12
  export default {
11
13
  user_upload,
@@ -16,4 +18,6 @@ export default {
16
18
  open_response,
17
19
  open_response_collate,
18
20
  scenario_choice: scenarioChoice,
21
+ email,
22
+ block_quote,
19
23
  }
@@ -0,0 +1,9 @@
1
+ export default {
2
+ block_quote: 'Block Quote',
3
+ body: 'Blockquote Body',
4
+ name: 'Name',
5
+ title: 'Title',
6
+ org: 'Organization',
7
+ source_title: 'Source Title',
8
+ type: 'Source Type',
9
+ }
@@ -0,0 +1,9 @@
1
+ export default {
2
+ items: 'Email Items',
3
+ add: 'Add Email',
4
+ subject: 'Subject',
5
+ from: 'From',
6
+ to: 'To',
7
+ cc: 'CC',
8
+ body: 'Email Body',
9
+ }
@@ -8,6 +8,8 @@ import open_response_collate from './open_response_collate'
8
8
  import scenarioChoice from './scenario_choice'
9
9
  import accordion from './accordion'
10
10
  import tab from './tab'
11
+ import email from './email'
12
+ import block_quote from './block_quote'
11
13
 
12
14
  export default {
13
15
  accordion,
@@ -20,4 +22,6 @@ export default {
20
22
  open_response,
21
23
  open_response_collate,
22
24
  scenario_choice: scenarioChoice,
25
+ email,
26
+ block_quote,
23
27
  }
@@ -1,6 +1,8 @@
1
1
  import tiny_mce_wrapper from './tiny_mce_wrapper'
2
2
  import fill_in_the_blank from './FillInBlank/index'
3
+ import math_expression_editor from './math_expression_editor'
3
4
  export default {
4
5
  tiny_mce_wrapper,
5
6
  fill_in_the_blank,
7
+ math_expression_editor,
6
8
  }
@@ -0,0 +1,3 @@
1
+ export default {
2
+ title: 'Mathematical Expression editor',
3
+ }
@@ -14,10 +14,11 @@ export default {
14
14
  clickable_icons: 'Clickable Icons',
15
15
  scenario_choice: 'Scenario Choice',
16
16
  feedback: 'Feedback',
17
+ email: 'Email',
18
+ block_quote: 'Block Quote',
17
19
  },
18
20
  grouping: {
19
21
  basic: 'Basic Components',
20
22
  multimedia: 'Multimedia Files',
21
- placeholder: 'Enter text here',
22
23
  },
23
24
  }
@@ -14,6 +14,11 @@ export default {
14
14
  table: 'Table Settings',
15
15
  math: 'Math Settings',
16
16
  feedback: 'Feedback Settings',
17
+ email: 'Ajustes del correo electrónico',
18
+ click_to_enter: 'Click here to enter text',
19
+ block_quote: 'Block Quote Settings',
17
20
  title: 'Title',
21
+ instructions: 'Instructions',
22
+ placeholder: 'Enter text here',
18
23
  },
19
24
  }
@@ -0,0 +1,3 @@
1
+ export default {
2
+ body: 'Cuerpo de la cotización en bloque',
3
+ }
@@ -0,0 +1,12 @@
1
+ export default {
2
+ title: 'Bloqueo de correo electrónico',
3
+ from: 'De',
4
+ to: 'Para',
5
+ cc: 'CC',
6
+ body: 'Cuerpo del correo electrónico',
7
+ simulation: 'Simulación de correo electrónico',
8
+ reply: 'Responder',
9
+ reply_all: 'Responder a todos',
10
+ forward: 'Adelante',
11
+ reset: 'reiniciar',
12
+ }
@@ -6,6 +6,8 @@ import feedback from './feedback'
6
6
  import open_response from './open_response'
7
7
  import open_response_collate from './open_response_collate'
8
8
  import scenarioChoice from './scenario_choice'
9
+ import block_quote from './block_quote'
10
+ import email from './email'
9
11
 
10
12
  export default {
11
13
  user_upload,
@@ -16,4 +18,6 @@ export default {
16
18
  open_response,
17
19
  open_response_collate,
18
20
  scenario_choice: scenarioChoice,
21
+ block_quote,
22
+ email,
19
23
  }
@@ -0,0 +1,9 @@
1
+ export default {
2
+ block_quote: 'Cita en bloque',
3
+ body: 'Cuerpo de la cita en bloque',
4
+ name: 'Nombre',
5
+ title: 'Título',
6
+ org: 'Organización',
7
+ source_title: 'Título de la fuente' ,
8
+ type: 'Tipo de fuente',
9
+ }
@@ -0,0 +1,9 @@
1
+ export default {
2
+ items: 'Elementos de correo electrónico',
3
+ add: 'Agregar correo electrónico',
4
+ subject: 'Asunto',
5
+ from: 'De',
6
+ to: 'Para',
7
+ cc: 'CC',
8
+ body: 'Cuerpo del correo electrónico',
9
+ }
@@ -8,6 +8,8 @@ import open_response_collate from './open_response_collate'
8
8
  import scenarioChoice from './scenario_choice'
9
9
  import accordion from './accordion'
10
10
  import tab from './tab'
11
+ import block_quote from './block_quote'
12
+ import email from './email'
11
13
 
12
14
  export default {
13
15
  accordion,
@@ -20,4 +22,6 @@ export default {
20
22
  open_response,
21
23
  open_response_collate,
22
24
  scenario_choice: scenarioChoice,
25
+ block_quote,
26
+ email,
23
27
  }
@@ -1,7 +1,8 @@
1
1
  import tiny_mce_wrapper from './tiny_mce_wrapper'
2
2
  import fill_in_the_blank from './FillInBlank/index'
3
-
3
+ import math_expression_editor from './math_expression_editor'
4
4
  export default {
5
5
  tiny_mce_wrapper,
6
6
  fill_in_the_blank,
7
+ math_expression_editor,
7
8
  }
@@ -0,0 +1,3 @@
1
+ export default {
2
+ title: 'Manipulador de expresión matemática',
3
+ }
@@ -14,10 +14,11 @@ export default {
14
14
  clickable_icons: 'Iconos en los que se puede hacer clic',
15
15
  scenario_choice: 'Elección de escenario',
16
16
  feedback: 'Comentarios',
17
+ email: 'Correo Electrónico',
18
+ block_quote: 'Cotización en bloque',
17
19
  },
18
20
  grouping: {
19
21
  basic: 'Componentes básicos',
20
22
  multimedia: 'Archivos multimedia',
21
- placeholder: 'Ingrese texto aquí',
22
23
  },
23
24
  }
@@ -16,6 +16,11 @@ export default {
16
16
  table: 'Configuración de la tabla',
17
17
  math: 'Configuración matemática',
18
18
  feedback: 'Configuración de comentarios',
19
+ email: 'Ajustes del correo electrónico',
20
+ click_to_enter: 'Haga clic para ingresar texto',
21
+ block_quote: 'Configuración de cotización en bloque',
19
22
  title: 'Título',
23
+ instructions: 'Instrucciones',
24
+ placeholder: 'Ingrese texto aquí',
20
25
  },
21
26
  }
@@ -0,0 +1,3 @@
1
+ export default {
2
+ body: 'Block Citat Body',
3
+ }
@@ -0,0 +1,12 @@
1
+ export default {
2
+ title: 'E-postblockering',
3
+ from: 'Från',
4
+ to: 'Till',
5
+ cc: 'CC',
6
+ body: 'E-posttext',
7
+ simulation: 'E-postsimulering',
8
+ reply: 'Svar',
9
+ reply_all: 'Svara alla',
10
+ forward: 'Fram',
11
+ reset: 'Återställa',
12
+ }
@@ -6,6 +6,8 @@ import feedback from './feedback'
6
6
  import open_response from './open_response'
7
7
  import open_response_collate from './open_response_collate'
8
8
  import scenarioChoice from './scenario_choice'
9
+ import block_quote from './block_quote'
10
+ import email from './email'
9
11
 
10
12
  export default {
11
13
  user_upload,
@@ -16,4 +18,6 @@ export default {
16
18
  open_response,
17
19
  open_response_collate,
18
20
  scenario_choice: scenarioChoice,
21
+ block_quote,
22
+ email,
19
23
  }
@@ -0,0 +1,9 @@
1
+ export default {
2
+ block_quote: 'Blockera citat',
3
+ body: 'Blockquote Body',
4
+ name: 'Namn',
5
+ title: 'Titel',
6
+ org: 'Organisation',
7
+ source_title: 'Källtitel' ,
8
+ type: 'Källtyp',
9
+ }
@@ -0,0 +1,9 @@
1
+ export default {
2
+ items: 'E-postobjekt',
3
+ add: 'Lägg till e-post',
4
+ subject: 'Ämne',
5
+ from: 'Från',
6
+ to: 'Till',
7
+ cc: 'CC',
8
+ body: 'E-posttext',
9
+ }
@@ -8,6 +8,8 @@ import open_response_collate from './open_response_collate'
8
8
  import scenarioChoice from './scenario_choice'
9
9
  import accordion from './accordion'
10
10
  import tab from './tab'
11
+ import block_quote from './block_quote'
12
+ import email from './email'
11
13
 
12
14
  export default {
13
15
  accordion,
@@ -20,4 +22,6 @@ export default {
20
22
  open_response,
21
23
  open_response_collate,
22
24
  scenario_choice: scenarioChoice,
25
+ block_quote,
26
+ email,
23
27
  }
@@ -1,7 +1,8 @@
1
1
  import tiny_mce_wrapper from './tiny_mce_wrapper'
2
2
  import fill_in_the_blank from './FillInBlank/index'
3
-
3
+ import math_expression_editor from './math_expression_editor'
4
4
  export default {
5
5
  tiny_mce_wrapper,
6
6
  fill_in_the_blank,
7
+ math_expression_editor,
7
8
  }
@@ -0,0 +1,3 @@
1
+ export default {
2
+ title: 'Redaktör för matematiska uttryck',
3
+ }
@@ -14,10 +14,11 @@ export default {
14
14
  clickable_icons: 'Klickbara ikoner',
15
15
  scenario_choice: 'Scenarioval',
16
16
  feedback: 'Feedback',
17
+ email: 'E-Post',
18
+ block_quote: 'Block citat',
17
19
  },
18
20
  grouping: {
19
21
  basic: 'Basic Components',
20
22
  multimedia: 'Multimedia Files',
21
- placeholder: 'Skriv in text här',
22
23
  },
23
24
  }
@@ -14,6 +14,11 @@ export default {
14
14
  table: 'Tabellinställningar',
15
15
  math: 'Matematiska inställningar',
16
16
  feedback: 'Feedback-inställningar',
17
+ email: 'E-postinställningar',
18
+ click_to_enter: 'Klicka för att skriva in text',
19
+ block_quote: 'Blockera offertinställningar',
17
20
  title: 'Titel',
21
+ instructions: 'Instruktioner',
22
+ placeholder: 'Skriv in text här',
18
23
  },
19
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windward/core",
3
- "version": "0.0.9",
3
+ "version": "0.1.1",
4
4
  "description": "Windward UI Core Plugins",
5
5
  "main": "plugin.js",
6
6
  "scripts": {
@@ -16,13 +16,13 @@
16
16
  "license": "MIT",
17
17
  "homepage": "https://bitbucket.org/mindedge/windward-ui-plugin-core#readme",
18
18
  "dependencies": {
19
- "@mindedge/vuetify-player": "^0.2.0",
19
+ "@mindedge/vuetify-player": "^0.3.0",
20
20
  "@tinymce/tinymce-vue": "^3.2.8",
21
21
  "eslint": "^8.11.0",
22
22
  "he": "^1.2.0",
23
23
  "lodash": "^4.17.21",
24
- "mathlive": "^0.73.7",
25
- "mathml-to-latex": "^1.2.0",
24
+ "mathlive": "^0.75.0",
25
+ "mathml-to-latex": "^1.3.0",
26
26
  "prettier": "^2.6.0",
27
27
  "raw-loader": "^4.0.2"
28
28
  },
package/plugin.js CHANGED
@@ -9,6 +9,8 @@ import Accordion from './components/Content/Blocks/Accordion'
9
9
  import Feedback from './components/Content/Blocks/Feedback.vue'
10
10
  import ClickableIcons from './components/Content/Blocks/ClickableIcons'
11
11
  import ScenarioChoice from './components/Content/Blocks/ScenarioChoice'
12
+ import Email from './components/Content/Blocks/Email'
13
+ import BlockQuote from './components/Content/Blocks/BlockQuote.vue'
12
14
 
13
15
  import UserUploadNav from './components/Navigation/Items/UserUploadNav.vue'
14
16
 
@@ -33,6 +35,8 @@ import VideoSettings from './components/Settings/VideoSettings.vue'
33
35
  import AccordionSettings from './components/Settings/AccordionSettings.vue'
34
36
  import TabSettings from './components/Settings/TabSettings.vue'
35
37
  import FeedbackSettings from './components/Settings/FeedbackSettings.vue'
38
+ import EmailSettings from './components/Settings/EmailSettings.vue'
39
+ import BlockQuoteSettigns from './components/Settings/BlockQuoteSettings.vue'
36
40
 
37
41
  import UserUploadPage from './pages/userUpload.vue'
38
42
  import GlossaryToolTip from './components/utils/glossary/GlossaryToolTip.vue'
@@ -251,6 +255,26 @@ export default {
251
255
  'windward.core.shared.content_blocks.grouping.basic',
252
256
  },
253
257
  },
258
+ {
259
+ tag: 'core-email',
260
+ template: Email,
261
+ metadata: {
262
+ icon: 'mdi-email',
263
+ name: 'windward.core.shared.content_blocks.title.email',
264
+ grouping:
265
+ 'windward.core.shared.content_blocks.grouping.basic',
266
+ },
267
+ },
268
+ {
269
+ tag: 'core-block-quote',
270
+ template: BlockQuote,
271
+ metadata: {
272
+ icon: 'mdi-format-quote-close',
273
+ name: 'windward.core.shared.content_blocks.title.block_quote',
274
+ grouping:
275
+ 'windward.core.shared.content_blocks.grouping.basic',
276
+ },
277
+ },
254
278
  ],
255
279
  settings: [
256
280
  {
@@ -370,6 +394,24 @@ export default {
370
394
  name: 'windward.core.shared.settings.title.feedback',
371
395
  },
372
396
  },
397
+ {
398
+ tag: 'core-email-settings',
399
+ template: EmailSettings,
400
+ context: ['block.core-email'],
401
+ metadata: {
402
+ icon: 'mdi-notebook-outline',
403
+ name: 'windward.core.shared.settings.title.email',
404
+ },
405
+ },
406
+ {
407
+ tag: 'core-block-quote-settings',
408
+ template: BlockQuoteSettigns,
409
+ context: ['block.core-block-quote'],
410
+ metadata: {
411
+ icon: 'mdi-notebook-outline',
412
+ name: 'windward.core.shared.settings.title.block_quote',
413
+ },
414
+ },
373
415
  ],
374
416
  },
375
417
  }
@@ -9,6 +9,8 @@ Vue.use(Vuetify)
9
9
  describe('Accordion', () => {
10
10
  test('is a Vue instance', () => {
11
11
  const wrapper = shallowMount(Accordion, {
12
+ vuetify: new Vuetify(),
13
+ mocks: defaultMocks,
12
14
  propsData: {
13
15
  value: {
14
16
  body: 'accordion',
@@ -0,0 +1,23 @@
1
+ import { shallowMount } from '@vue/test-utils'
2
+ import Vuetify from 'vuetify'
3
+ import Vue from 'vue'
4
+ import { defaultMocks } from '@/test/mocks'
5
+ import BlockQuote from '@/components/Content/Blocks/BlockQuote'
6
+
7
+ Vue.use(Vuetify)
8
+
9
+ describe('BlockQuote', () => {
10
+ test('is a Vue instance', () => {
11
+ const wrapper = shallowMount(BlockQuote, {
12
+ vuetify: new Vuetify(),
13
+ mocks: defaultMocks,
14
+ propsData: {
15
+ value: {
16
+ body: 'block quote',
17
+ metadata: { config: {} },
18
+ },
19
+ },
20
+ })
21
+ expect(wrapper.vm).toBeTruthy()
22
+ })
23
+ })
@@ -0,0 +1,23 @@
1
+ import { shallowMount } from '@vue/test-utils'
2
+ import Vuetify from 'vuetify'
3
+ import Vue from 'vue'
4
+ import { defaultMocks } from '@/test/mocks'
5
+ import Email from '@/components/Content/Blocks/Email'
6
+
7
+ Vue.use(Vuetify)
8
+
9
+ describe('Email', () => {
10
+ test('is a Vue instance', () => {
11
+ const wrapper = shallowMount(Email, {
12
+ vuetify: new Vuetify(),
13
+ mocks: defaultMocks,
14
+ propsData: {
15
+ value: {
16
+ body: 'email',
17
+ metadata: { config: {} },
18
+ },
19
+ },
20
+ })
21
+ expect(wrapper.vm).toBeTruthy()
22
+ })
23
+ })
@@ -10,6 +10,7 @@ describe('Feedback', () => {
10
10
  test('is a Vue instance', () => {
11
11
  const wrapper = shallowMount(Feedback, {
12
12
  vuetify: new Vuetify(),
13
+ mocks: defaultMocks,
13
14
  propsData: {
14
15
  value: {
15
16
  body: 'feedback',
@@ -19,6 +19,7 @@ describe('ContentMathEditor component', () => {
19
19
  test('is a Vue instance', () => {
20
20
  const wrapper = shallowMount(CoreMath, {
21
21
  vuetify: new Vuetify(),
22
+ mocks: defaultMocks,
22
23
  propsData: {
23
24
  value: {
24
25
  id: '00000000-0000-0000-0000-000000000000',
@@ -10,6 +10,7 @@ Vue.use(Vuetify)
10
10
  describe('Tab', () => {
11
11
  test('is a Vue instance', () => {
12
12
  const wrapper = shallowMount(Tab, {
13
+ vuetify: new Vuetify(),
13
14
  propsData: {
14
15
  value: { body: 'tab', metadata: { config: {} } },
15
16
  },