@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.
- package/components/Content/Blocks/Accordion.vue +7 -2
- package/components/Content/Blocks/BlockQuote.vue +191 -0
- package/components/Content/Blocks/Email.vue +248 -0
- package/components/Content/Blocks/FeedbackTemplates/FeedbackQuestionLikert.vue +25 -14
- package/components/Content/Blocks/FeedbackTemplates/FeedbackQuestionTrueFalse.vue +3 -7
- package/components/Content/Blocks/Image.vue +1 -1
- package/components/Content/Blocks/OpenResponse.vue +22 -16
- package/components/Content/Blocks/Tab.vue +7 -3
- package/components/Content/Blocks/UserUpload.vue +2 -2
- package/components/Settings/AccordionSettings.vue +9 -1
- package/components/Settings/BlockQuoteSettings.vue +143 -0
- package/components/Settings/EmailSettings.vue +216 -0
- package/components/Settings/ImageSettings.vue +1 -1
- package/components/Settings/OpenResponseCollateSettings.vue +1 -1
- package/components/Settings/OpenResponseSettings.vue +7 -9
- package/components/Settings/TabSettings.vue +14 -5
- package/components/Settings/TextEditorSettings.vue +1 -1
- package/components/Settings/UserUploadSettings.vue +1 -1
- package/components/utils/MathExpressionEditor.vue +30 -15
- package/components/utils/TinyMCEWrapper.vue +3 -1
- package/i18n/en-US/components/content/blocks/block_quote.ts +3 -0
- package/i18n/en-US/components/content/blocks/email.ts +12 -0
- package/i18n/en-US/components/content/blocks/index.ts +4 -0
- package/i18n/en-US/components/settings/block_quote.ts +9 -0
- package/i18n/en-US/components/settings/email.ts +9 -0
- package/i18n/en-US/components/settings/index.ts +4 -0
- package/i18n/en-US/components/utils/index.ts +2 -0
- package/i18n/en-US/components/utils/math_expression_editor.ts +3 -0
- package/i18n/en-US/shared/content_blocks.ts +2 -1
- package/i18n/en-US/shared/settings.ts +5 -0
- package/i18n/es-ES/components/content/blocks/block_quote.ts +3 -0
- package/i18n/es-ES/components/content/blocks/email.ts +12 -0
- package/i18n/es-ES/components/content/blocks/index.ts +4 -0
- package/i18n/es-ES/components/settings/block_quote.ts +9 -0
- package/i18n/es-ES/components/settings/email.ts +9 -0
- package/i18n/es-ES/components/settings/index.ts +4 -0
- package/i18n/es-ES/components/utils/index.ts +2 -1
- package/i18n/es-ES/components/utils/math_expression_editor.ts +3 -0
- package/i18n/es-ES/shared/content_blocks.ts +2 -1
- package/i18n/es-ES/shared/settings.ts +5 -0
- package/i18n/sv-SE/components/content/blocks/block_quote.ts +3 -0
- package/i18n/sv-SE/components/content/blocks/email.ts +12 -0
- package/i18n/sv-SE/components/content/blocks/index.ts +4 -0
- package/i18n/sv-SE/components/settings/block_quote.ts +9 -0
- package/i18n/sv-SE/components/settings/email.ts +9 -0
- package/i18n/sv-SE/components/settings/index.ts +4 -0
- package/i18n/sv-SE/components/utils/index.ts +2 -1
- package/i18n/sv-SE/components/utils/math_expression_editor.ts +3 -0
- package/i18n/sv-SE/shared/content_blocks.ts +2 -1
- package/i18n/sv-SE/shared/settings.ts +5 -0
- package/package.json +4 -4
- package/plugin.js +42 -0
- package/test/Components/Content/Blocks/Accordion.spec.js +2 -0
- package/test/Components/Content/Blocks/BlockQuote.spec.js +23 -0
- package/test/Components/Content/Blocks/Email.spec.js +23 -0
- package/test/Components/Content/Blocks/Feedback.spec.js +1 -0
- package/test/Components/Content/Blocks/Math.spec.js +1 -0
- package/test/Components/Content/Blocks/Tab.spec.js +1 -0
- package/test/Components/Settings/BlockQuoteSettings.spec.js +20 -0
- package/test/Components/Settings/EmailSettings.spec.js +45 -0
- 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
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
|
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:
|
|
289
|
+
outline: 2px solid var(--v-secondary-base);
|
|
276
290
|
border-radius: 4px;
|
|
277
|
-
background:
|
|
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:
|
|
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:
|
|
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.
|
|
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
|
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -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,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
|
}
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
25
|
-
"mathml-to-latex": "^1.
|
|
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
|
}
|
|
@@ -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
|
+
})
|