@windward/core 0.26.0 → 0.27.0
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/CHANGELOG.md +29 -0
- package/components/Content/Blocks/Accordion.vue +8 -14
- package/components/Content/Blocks/BlockQuote.vue +29 -4
- package/components/Content/Blocks/ClickableIcons.vue +18 -6
- package/components/Content/Blocks/Email.vue +10 -3
- package/components/Content/Blocks/Feedback/FeedbackAnalytics.vue +179 -0
- package/components/Content/Blocks/Feedback.vue +115 -111
- package/components/Content/Blocks/Image.vue +4 -0
- package/components/Content/Blocks/ScenarioChoice.vue +10 -1
- package/components/Content/Blocks/Tab.vue +15 -28
- package/components/Content/Blocks/UserUpload.vue +65 -37
- package/components/Content/Blocks/Video.vue +17 -7
- package/components/Settings/AccordionSettings.vue +3 -15
- package/components/Settings/BlockQuoteSettings.vue +6 -4
- package/components/Settings/ClickableIconsSettings.vue +21 -7
- package/components/Settings/EmailSettings.vue +3 -11
- package/components/Settings/FileDownloadSettings.vue +8 -2
- package/components/Settings/OpenResponseCollateSettings.vue +10 -0
- package/components/Settings/OpenResponseSettings.vue +8 -7
- package/components/Settings/ScenarioChoiceSettings.vue +11 -5
- package/components/Settings/TabSettings.vue +3 -18
- package/components/Settings/UserUploadSettings.vue +16 -8
- package/components/Settings/VideoSettings/SourcePicker.vue +34 -8
- package/components/Settings/VideoSettings.vue +18 -2
- package/components/utils/glossary/GlossaryToolTip.vue +4 -23
- package/helpers/GlossaryHelper.ts +4 -7
- package/i18n/en-US/components/content/blocks/accordion.ts +3 -0
- package/i18n/en-US/components/content/blocks/block_quote.ts +3 -1
- package/i18n/en-US/components/content/blocks/feedback.ts +2 -0
- package/i18n/en-US/components/content/blocks/file_download.ts +2 -1
- package/i18n/en-US/components/content/blocks/index.ts +2 -0
- package/i18n/en-US/components/content/blocks/open_response.ts +1 -1
- package/i18n/en-US/components/content/blocks/open_response_collate.ts +1 -1
- package/i18n/en-US/components/content/blocks/scenario_choice.ts +2 -0
- package/i18n/en-US/components/content/blocks/user_upload.ts +2 -1
- package/i18n/en-US/components/settings/accordion.ts +2 -1
- package/i18n/en-US/components/settings/block_quote.ts +1 -1
- package/i18n/en-US/components/settings/clickable_icon.ts +5 -0
- package/i18n/en-US/components/settings/email.ts +2 -1
- package/i18n/en-US/components/settings/file_download.ts +2 -2
- package/i18n/en-US/components/settings/image.ts +1 -0
- package/i18n/en-US/components/settings/open_response.ts +3 -0
- package/i18n/en-US/components/settings/open_response_collate.ts +3 -0
- package/i18n/en-US/components/settings/scenario_choice.ts +3 -1
- package/i18n/en-US/components/settings/tab.ts +4 -3
- package/i18n/en-US/components/settings/user_upload.ts +1 -0
- package/i18n/en-US/components/settings/video.ts +3 -1
- package/i18n/en-US/shared/content_blocks.ts +1 -1
- package/i18n/es-ES/components/content/blocks/accordion.ts +3 -0
- package/i18n/es-ES/components/content/blocks/block_quote.ts +3 -1
- package/i18n/es-ES/components/content/blocks/feedback.ts +2 -0
- package/i18n/es-ES/components/content/blocks/file_download.ts +2 -1
- package/i18n/es-ES/components/content/blocks/index.ts +2 -0
- package/i18n/es-ES/components/content/blocks/open_response.ts +1 -2
- package/i18n/es-ES/components/content/blocks/open_response_collate.ts +1 -1
- package/i18n/es-ES/components/content/blocks/scenario_choice.ts +2 -0
- package/i18n/es-ES/components/content/blocks/user_upload.ts +2 -1
- package/i18n/es-ES/components/settings/accordion.ts +4 -2
- package/i18n/es-ES/components/settings/block_quote.ts +1 -1
- package/i18n/es-ES/components/settings/clickable_icon.ts +7 -0
- package/i18n/es-ES/components/settings/email.ts +2 -1
- package/i18n/es-ES/components/settings/image.ts +1 -0
- package/i18n/es-ES/components/settings/open_response.ts +3 -0
- package/i18n/es-ES/components/settings/open_response_collate.ts +3 -0
- package/i18n/es-ES/components/settings/scenario_choice.ts +3 -1
- package/i18n/es-ES/components/settings/tab.ts +3 -2
- package/i18n/es-ES/components/settings/user_upload.ts +1 -0
- package/i18n/es-ES/components/settings/video.ts +3 -1
- package/i18n/es-ES/shared/content_blocks.ts +1 -1
- package/i18n/sv-SE/components/content/blocks/accordion.ts +3 -0
- package/i18n/sv-SE/components/content/blocks/block_quote.ts +3 -1
- package/i18n/sv-SE/components/content/blocks/feedback.ts +2 -0
- package/i18n/sv-SE/components/content/blocks/file_download.ts +2 -1
- package/i18n/sv-SE/components/content/blocks/index.ts +2 -0
- package/i18n/sv-SE/components/content/blocks/open_response.ts +1 -2
- package/i18n/sv-SE/components/content/blocks/open_response_collate.ts +1 -1
- package/i18n/sv-SE/components/content/blocks/scenario_choice.ts +2 -0
- package/i18n/sv-SE/components/content/blocks/user_upload.ts +2 -1
- package/i18n/sv-SE/components/settings/accordion.ts +2 -1
- package/i18n/sv-SE/components/settings/block_quote.ts +1 -1
- package/i18n/sv-SE/components/settings/clickable_icon.ts +6 -0
- package/i18n/sv-SE/components/settings/email.ts +2 -1
- package/i18n/sv-SE/components/settings/image.ts +1 -0
- package/i18n/sv-SE/components/settings/open_response.ts +3 -0
- package/i18n/sv-SE/components/settings/open_response_collate.ts +3 -0
- package/i18n/sv-SE/components/settings/scenario_choice.ts +3 -1
- package/i18n/sv-SE/components/settings/tab.ts +5 -3
- package/i18n/sv-SE/components/settings/user_upload.ts +1 -0
- package/i18n/sv-SE/components/settings/video.ts +3 -1
- package/i18n/sv-SE/shared/content_blocks.ts +1 -1
- package/models/SurveyResultMetric.ts +8 -0
- package/package.json +1 -1
- package/plugin.js +8 -0
- package/test/Components/Content/Blocks/Feedback/FeedbackTemplates/FeedbackAnalytics.spec.js +23 -0
- package/test/Components/Content/Blocks/{FeedbackTemplates → Feedback/FeedbackTemplates}/FeedbackQuestionLikert.spec.js +1 -1
- package/test/Components/Content/Blocks/{FeedbackTemplates → Feedback/FeedbackTemplates}/FeedbackQuestionOpenResponse.spec.js +1 -1
- package/test/Components/Content/Blocks/{FeedbackTemplates → Feedback/FeedbackTemplates}/FeedbackQuestionTrueFalse.spec.js +1 -1
- package/test/Components/Settings/AccordionSettings.spec.js +0 -13
- package/test/Components/Settings/ClickableIconsSettings.spec.js +0 -11
- package/test/Components/Settings/EmailSettings.spec.js +0 -9
- package/test/Components/Settings/TabSettings.spec.js +0 -13
- package/test/helpers/GlossaryHelper.spec.js +8 -8
- package/components/Content/Blocks/{FeedbackTemplates → Feedback/FeedbackTemplates}/FeedbackQuestionLikert.vue +1 -1
- package/components/Content/Blocks/{FeedbackTemplates → Feedback/FeedbackTemplates}/FeedbackQuestionOpenResponse.vue +1 -1
- /package/components/Content/Blocks/{FeedbackTemplates → Feedback/FeedbackTemplates}/FeedbackQuestionTrueFalse.vue +0 -0
|
@@ -2,6 +2,6 @@ export default {
|
|
|
2
2
|
download_document: 'Ladda ner Word-dokument',
|
|
3
3
|
no_response: '[inget svar]',
|
|
4
4
|
initial_setup:
|
|
5
|
-
'
|
|
5
|
+
'Välj öppna svarsfrågor under kursens gång att inkludera i den här nedladdningen för att komma igång.',
|
|
6
6
|
generate_error: 'Det gick inte att generera dokumentet',
|
|
7
7
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export default {
|
|
2
|
+
title: 'Filinlämning',
|
|
2
3
|
user_uploads: 'Användaruppladdningar',
|
|
3
4
|
dialog_view: 'Visa uppladdningar',
|
|
4
5
|
instructions_none: 'Ingen',
|
|
5
6
|
must_save:
|
|
6
|
-
'Du måste spara detta block innan användare kan göra uppladdningar',
|
|
7
|
+
'Du måste spara detta block innan användare kan göra uppladdningar.',
|
|
7
8
|
uploaded: 'Uppladdat',
|
|
8
9
|
name: 'Namn',
|
|
9
10
|
size: 'Storlek',
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
items: 'Dragspelsföremål',
|
|
3
|
-
add: 'Lägg till
|
|
3
|
+
add: 'Lägg till objekt',
|
|
4
4
|
accordion: 'Dragspel',
|
|
5
5
|
label: 'Dragspel brödtext',
|
|
6
6
|
instructions:
|
|
7
7
|
'Klicka på var och en av rubrikerna nedan för mer information.',
|
|
8
|
+
no_accordion_items: 'Lägg till ett dragspelsföremål för att komma igång.',
|
|
8
9
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
title: 'Titel',
|
|
3
|
+
clickable_icon_title: 'Klickbar ikon',
|
|
4
|
+
item_header: 'Klickbara ikonobjekt',
|
|
3
5
|
description: 'Description',
|
|
4
6
|
information:
|
|
5
7
|
'Klicka på vart och ett av listobjekten nedan för mer information.',
|
|
@@ -17,4 +19,8 @@ export default {
|
|
|
17
19
|
italic_icon: 'Kursiva ikoner',
|
|
18
20
|
large_icon: 'Stora ikoner',
|
|
19
21
|
},
|
|
22
|
+
add_item: 'Lägg till objekt',
|
|
23
|
+
no_clickable_items: 'lägg till en klickbar ikon för att komma igång.',
|
|
24
|
+
instructions:
|
|
25
|
+
'Klicka på vart och ett av listobjekten nedan för mer information.',
|
|
20
26
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
items: 'E-postobjekt',
|
|
3
|
-
add: 'Lägg till
|
|
3
|
+
add: 'Lägg till objekt',
|
|
4
4
|
subject: 'Ämne',
|
|
5
5
|
from: 'Från',
|
|
6
6
|
to: 'Till',
|
|
@@ -10,4 +10,5 @@ export default {
|
|
|
10
10
|
from_required: 'Från-fältet är obligatoriskt',
|
|
11
11
|
to_required: 'Till-fältet är obligatoriskt',
|
|
12
12
|
subject_required: 'Ämne-fältet är obligatoriskt',
|
|
13
|
+
no_emails: 'Lägg till e-postobjekt för att komma igång.',
|
|
13
14
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export default {
|
|
2
|
+
title: 'Öppna svarsnedladdning',
|
|
3
|
+
block_instructions:
|
|
4
|
+
'Klicka på knappen nedan för att ladda ner en kopia av ditt svar.',
|
|
2
5
|
instructions:
|
|
3
6
|
'Bocka av öppna svarsobjekt för att sortera till ett dokument.',
|
|
4
7
|
include_prompts: 'Inkludera uppmaningar',
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
title: 'Titel',
|
|
3
|
+
scenario_title: 'Scenarioval',
|
|
3
4
|
description: 'Beskrivning',
|
|
4
5
|
over_item_limit: 'Kan inte lägga till fler objekt',
|
|
5
6
|
no_title: 'Ingen titel',
|
|
@@ -16,7 +17,8 @@ export default {
|
|
|
16
17
|
letter: 'Brev',
|
|
17
18
|
number: 'Nummer',
|
|
18
19
|
},
|
|
19
|
-
add_choice: 'Lägg till
|
|
20
|
+
add_choice: 'Lägg till objekt',
|
|
20
21
|
generated_successfully: 'Scenarier genererades framgångsrikt',
|
|
21
22
|
invalid_response: 'Ogiltigt svar från scenariogenereringen',
|
|
23
|
+
choices: 'Val',
|
|
22
24
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
tab: 'Flik',
|
|
3
|
-
tabs: '
|
|
3
|
+
tabs: 'Flikobjekt',
|
|
4
4
|
header: 'Flikhuvud',
|
|
5
|
-
add_tab: 'Lägg till
|
|
5
|
+
add_tab: 'Lägg till objekt',
|
|
6
6
|
delete_tab: 'Delete Tab',
|
|
7
|
-
instructions:
|
|
7
|
+
instructions:
|
|
8
|
+
'Klicka på var och en av rubrikerna nedan för mer information.',
|
|
9
|
+
no_tabs: 'Lägg till ett flikobjekt för att komma igång.',
|
|
8
10
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
title: '
|
|
2
|
+
title: 'Titel',
|
|
3
|
+
prebuilt_title: 'Video/ljud',
|
|
3
4
|
sources: 'Källor',
|
|
4
5
|
place_source: 'Placera video eller ljud',
|
|
5
6
|
playback: 'Uppspelning',
|
|
@@ -65,4 +66,5 @@ export default {
|
|
|
65
66
|
configure_blurb:
|
|
66
67
|
'Ladda upp en postroll-videofil (.mp4 eller .webm), välj en från filhanteraren eller lägg till via den offentliga webbadressen',
|
|
67
68
|
},
|
|
69
|
+
no_video_alert: 'Placera en video- eller ljudfil för att komma igång.',
|
|
68
70
|
}
|
|
@@ -10,7 +10,7 @@ export default {
|
|
|
10
10
|
open_response: 'Öppet svar',
|
|
11
11
|
open_response_collate: 'Öppna svar Ladda ner',
|
|
12
12
|
image: 'Bild',
|
|
13
|
-
user_upload: '
|
|
13
|
+
user_upload: 'Filinlämning',
|
|
14
14
|
clickable_icons: 'Klickbara ikoner',
|
|
15
15
|
scenario_choice: 'Scenarioval',
|
|
16
16
|
feedback: 'Feedback',
|
package/package.json
CHANGED
package/plugin.js
CHANGED
|
@@ -45,6 +45,7 @@ import FillInTheBlanks from './components/utils/FillInBlank/FillInTheBlanksManag
|
|
|
45
45
|
import FillInBlankInput from './components/utils/FillInBlank/FillInBlankInput.vue'
|
|
46
46
|
|
|
47
47
|
import GlossaryStore from './store/glossary.js'
|
|
48
|
+
import FeedbackAnalytics from './components/Content/Blocks/Feedback/FeedbackAnalytics.vue'
|
|
48
49
|
|
|
49
50
|
export default {
|
|
50
51
|
name: 'windward.core.name',
|
|
@@ -397,6 +398,13 @@ export default {
|
|
|
397
398
|
},
|
|
398
399
|
},
|
|
399
400
|
],
|
|
401
|
+
contentBlockAnalytics: [
|
|
402
|
+
{
|
|
403
|
+
tag: 'core-feedback-analytics',
|
|
404
|
+
template: FeedbackAnalytics,
|
|
405
|
+
context: ['block.plugin-core-feedback'],
|
|
406
|
+
},
|
|
407
|
+
],
|
|
400
408
|
},
|
|
401
409
|
store: {
|
|
402
410
|
glossary: GlossaryStore,
|
|
@@ -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 FeedbackAnalytics from '@/components/Content/Blocks/Feedback/FeedbackAnalytics.vue'
|
|
6
|
+
|
|
7
|
+
Vue.use(Vuetify)
|
|
8
|
+
|
|
9
|
+
describe('Accordion', () => {
|
|
10
|
+
test('is a Vue instance', () => {
|
|
11
|
+
const wrapper = shallowMount(FeedbackAnalytics, {
|
|
12
|
+
vuetify: new Vuetify(),
|
|
13
|
+
mocks: defaultMocks,
|
|
14
|
+
propsData: {
|
|
15
|
+
value: {
|
|
16
|
+
body: 'accordion',
|
|
17
|
+
metadata: { config: {} },
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
})
|
|
21
|
+
expect(wrapper.vm).toBeTruthy()
|
|
22
|
+
})
|
|
23
|
+
})
|
|
@@ -2,7 +2,7 @@ import { shallowMount } from '@vue/test-utils'
|
|
|
2
2
|
import Vuetify from 'vuetify'
|
|
3
3
|
import Vue from 'vue'
|
|
4
4
|
import { defaultMocks } from '@/test/mocks'
|
|
5
|
-
import FeedbackQuestionLikert from '@/components/Content/Blocks/FeedbackTemplates/FeedbackQuestionLikert'
|
|
5
|
+
import FeedbackQuestionLikert from '@/components/Content/Blocks/Feedback/FeedbackTemplates/FeedbackQuestionLikert'
|
|
6
6
|
|
|
7
7
|
Vue.use(Vuetify)
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@ import { shallowMount } from '@vue/test-utils'
|
|
|
2
2
|
import Vuetify from 'vuetify'
|
|
3
3
|
import Vue from 'vue'
|
|
4
4
|
import { defaultMocks } from '@/test/mocks'
|
|
5
|
-
import FeedbackQuestionOpenResponse from '@/components/Content/Blocks/FeedbackTemplates/FeedbackQuestionOpenResponse'
|
|
5
|
+
import FeedbackQuestionOpenResponse from '@/components/Content/Blocks/Feedback/FeedbackTemplates/FeedbackQuestionOpenResponse'
|
|
6
6
|
|
|
7
7
|
Vue.use(Vuetify)
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@ import { shallowMount } from '@vue/test-utils'
|
|
|
2
2
|
import Vuetify from 'vuetify'
|
|
3
3
|
import Vue from 'vue'
|
|
4
4
|
import { defaultMocks } from '@/test/mocks'
|
|
5
|
-
import FeedbackQuestionTrueFalse from '@/components/Content/Blocks/FeedbackTemplates/FeedbackQuestionTrueFalse'
|
|
5
|
+
import FeedbackQuestionTrueFalse from '@/components/Content/Blocks/Feedback/FeedbackTemplates/FeedbackQuestionTrueFalse'
|
|
6
6
|
|
|
7
7
|
Vue.use(Vuetify)
|
|
8
8
|
|
|
@@ -40,19 +40,6 @@ describe('AccordionSettings', () => {
|
|
|
40
40
|
hideBackground: true,
|
|
41
41
|
},
|
|
42
42
|
},
|
|
43
|
-
{
|
|
44
|
-
header: '',
|
|
45
|
-
expand: false,
|
|
46
|
-
content: '',
|
|
47
|
-
fileConfig: {
|
|
48
|
-
display: {
|
|
49
|
-
width: 100,
|
|
50
|
-
margin: '',
|
|
51
|
-
padding: '',
|
|
52
|
-
},
|
|
53
|
-
hideBackground: true,
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
43
|
])
|
|
57
44
|
})
|
|
58
45
|
|
|
@@ -40,19 +40,6 @@ describe('TabSettings', () => {
|
|
|
40
40
|
hideBackground: true,
|
|
41
41
|
},
|
|
42
42
|
},
|
|
43
|
-
{
|
|
44
|
-
tabHeader: '',
|
|
45
|
-
expand: false,
|
|
46
|
-
content: '',
|
|
47
|
-
imageAsset: {
|
|
48
|
-
display: {
|
|
49
|
-
width: 100,
|
|
50
|
-
margin: '',
|
|
51
|
-
padding: '',
|
|
52
|
-
},
|
|
53
|
-
hideBackground: true,
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
43
|
])
|
|
57
44
|
})
|
|
58
45
|
|
|
@@ -75,15 +75,15 @@ const glossaryRender =
|
|
|
75
75
|
' Et inventore hic aut.</p>' +
|
|
76
76
|
'<plugin-core-glossary-tool-tip>' +
|
|
77
77
|
'<template v-slot:term>Architecto</template>' +
|
|
78
|
+
'<template v-slot:main_term>Architecto</template>' +
|
|
78
79
|
'<template v-slot:definition>Architecto is a word that means architect of the universe</template>' +
|
|
79
|
-
'<template v-slot:alternate_forms>Architect,universe</template>' +
|
|
80
80
|
'<template v-slot:related_terms>a,b,c,d</template>' +
|
|
81
81
|
'</plugin-core-glossary-tool-tip>'
|
|
82
82
|
const glossaryRenderMultiple =
|
|
83
83
|
'<plugin-core-glossary-tool-tip>' +
|
|
84
84
|
'<template v-slot:term>Architecto</template>' +
|
|
85
|
+
'<template v-slot:main_term>Architecto</template>' +
|
|
85
86
|
'<template v-slot:definition>Architecto is a word that means architect of the universe</template>' +
|
|
86
|
-
'<template v-slot:alternate_forms>Architect,universe</template>' +
|
|
87
87
|
'<template v-slot:related_terms>a,b,c,d</template>' +
|
|
88
88
|
'</plugin-core-glossary-tool-tip>' +
|
|
89
89
|
'<p>Voluptas est quis ut <strong>consequatur.</strong> ' +
|
|
@@ -92,8 +92,8 @@ const glossaryRenderMultiple =
|
|
|
92
92
|
' Et inventore hic aut.</p>' +
|
|
93
93
|
'<plugin-core-glossary-tool-tip>' +
|
|
94
94
|
'<template v-slot:term>Architecto</template>' +
|
|
95
|
+
'<template v-slot:main_term>Architecto</template>' +
|
|
95
96
|
'<template v-slot:definition>Architecto is a word that means architect of the universe</template>' +
|
|
96
|
-
'<template v-slot:alternate_forms>Architect,universe</template>' +
|
|
97
97
|
'<template v-slot:related_terms>a,b,c,d</template>' +
|
|
98
98
|
'</plugin-core-glossary-tool-tip>'
|
|
99
99
|
|
|
@@ -101,8 +101,8 @@ const term = new CourseGlossaryTerm(glossary[1])
|
|
|
101
101
|
const expectedToolTip =
|
|
102
102
|
'<plugin-core-glossary-tool-tip>' +
|
|
103
103
|
'<template v-slot:term>Architecto</template>' +
|
|
104
|
+
'<template v-slot:main_term>Architecto</template>' +
|
|
104
105
|
'<template v-slot:definition>Architecto is a word that means architect of the universe</template>' +
|
|
105
|
-
'<template v-slot:alternate_forms>Architect,universe</template>' +
|
|
106
106
|
'<template v-slot:related_terms>a,b,c,d</template>' +
|
|
107
107
|
'</plugin-core-glossary-tool-tip>'
|
|
108
108
|
const glossaryRenderCapitalized =
|
|
@@ -112,8 +112,8 @@ const glossaryRenderCapitalized =
|
|
|
112
112
|
' Et inventore hic aut.</p>' +
|
|
113
113
|
'<plugin-core-glossary-tool-tip>' +
|
|
114
114
|
'<template v-slot:term>Crisis change</template>' +
|
|
115
|
+
'<template v-slot:main_term>crisis change</template>' +
|
|
115
116
|
'<template v-slot:definition>n/a</template>' +
|
|
116
|
-
'<template v-slot:alternate_forms>crisis,change</template>' +
|
|
117
117
|
'</plugin-core-glossary-tool-tip>'
|
|
118
118
|
const glossaryRenderCapitalizedSpaceBefore =
|
|
119
119
|
'<p>Voluptas est quis ut <strong>consequatur.</strong> ' +
|
|
@@ -122,8 +122,8 @@ const glossaryRenderCapitalizedSpaceBefore =
|
|
|
122
122
|
' Et inventore hic aut.</p>' +
|
|
123
123
|
'<plugin-core-glossary-tool-tip>' +
|
|
124
124
|
'<template v-slot:term> Crisis change</template>' +
|
|
125
|
+
'<template v-slot:main_term>crisis change</template>' +
|
|
125
126
|
'<template v-slot:definition>n/a</template>' +
|
|
126
|
-
'<template v-slot:alternate_forms>crisis,change</template>' +
|
|
127
127
|
'</plugin-core-glossary-tool-tip>'
|
|
128
128
|
const glossaryRenderCapitalizedSpaceAfter =
|
|
129
129
|
'<p>Voluptas est quis ut <strong>consequatur.</strong> ' +
|
|
@@ -132,8 +132,8 @@ const glossaryRenderCapitalizedSpaceAfter =
|
|
|
132
132
|
' Et inventore hic aut.</p>' +
|
|
133
133
|
'<plugin-core-glossary-tool-tip>' +
|
|
134
134
|
'<template v-slot:term>Crisis change </template>' +
|
|
135
|
+
'<template v-slot:main_term>crisis change</template>' +
|
|
135
136
|
'<template v-slot:definition>n/a</template>' +
|
|
136
|
-
'<template v-slot:alternate_forms>crisis,change</template>' +
|
|
137
137
|
'</plugin-core-glossary-tool-tip>'
|
|
138
138
|
const glossaryRenderCapitalizedSpaceBeforeAfter =
|
|
139
139
|
'<p>Voluptas est quis ut <strong>consequatur.</strong> ' +
|
|
@@ -142,8 +142,8 @@ const glossaryRenderCapitalizedSpaceBeforeAfter =
|
|
|
142
142
|
' Et inventore hic aut.</p>' +
|
|
143
143
|
'<plugin-core-glossary-tool-tip>' +
|
|
144
144
|
'<template v-slot:term> Crisis change </template>' +
|
|
145
|
+
'<template v-slot:main_term>crisis change</template>' +
|
|
145
146
|
'<template v-slot:definition>n/a</template>' +
|
|
146
|
-
'<template v-slot:alternate_forms>crisis,change</template>' +
|
|
147
147
|
'</plugin-core-glossary-tool-tip>'
|
|
148
148
|
describe('GlossaryHelper ', () => {
|
|
149
149
|
test('detects text has glossary words', () => {
|
|
File without changes
|