@windward/games 0.0.9 → 0.1.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/components/content/CrudTable.vue +2 -2
- package/components/content/blocks/crosswordPuzzle/CrosswordClues.vue +4 -2
- package/components/content/blocks/crosswordPuzzle/CrosswordPuzzle.vue +14 -12
- package/components/content/blocks/dragDrop/BucketGame.vue +54 -101
- package/components/content/blocks/dragDrop/SortingGame.vue +47 -33
- package/components/content/blocks/flashcards/CardFace.vue +38 -39
- package/components/content/blocks/flashcards/Flashcard.vue +109 -28
- package/components/content/blocks/flashcards/FlashcardSlides.vue +3 -2
- package/components/content/blocks/matchingGame/MatchingGame.vue +105 -61
- package/components/content/blocks/multipleChoice/MultipleChoice.vue +186 -225
- package/components/content/blocks/multipleChoice/QuestionDialog.vue +7 -7
- package/components/content/blocks/quizshowGame/AnswerPanel.vue +31 -24
- package/components/content/blocks/quizshowGame/Gridview.vue +20 -24
- package/components/content/blocks/quizshowGame/QuizShow.vue +22 -9
- package/components/content/blocks/quizshowGame/feedbackIcons.vue +4 -2
- package/components/content/blocks/sevenStrikes/SevenStikes.vue +153 -108
- package/components/content/blocks/sevenStrikes/keyboard.vue +9 -2
- package/components/content/blocks/slideshow/SlideShow.vue +5 -3
- package/components/content/blocks/wordJumble/Jumble.vue +4 -4
- package/components/content/blocks/wordJumble/WordJumble.vue +128 -62
- package/components/settings/BucketGameSettingsManager.vue +185 -359
- package/components/settings/CrosswordPuzzleSettingsManager.vue +114 -181
- package/components/settings/FlashCardSlidesManager.vue +323 -419
- package/components/settings/MatchingGameManager.vue +357 -618
- package/components/settings/MultipleChoiceSettingsManager.vue +130 -140
- package/components/settings/QuizShowSettingsManager.vue +17 -17
- package/components/settings/SevenStrikesSettingsManager.vue +131 -193
- package/components/settings/SlideShowManager.vue +91 -129
- package/components/settings/SortingGameSettingsManager.vue +41 -153
- package/components/settings/WordJumbleSettingsManager.vue +84 -150
- package/i18n/en-US/components/content/blocks/bucket_game.ts +1 -0
- package/i18n/en-US/components/content/blocks/flashcard.ts +3 -0
- package/i18n/en-US/components/content/blocks/word_jumble.ts +2 -0
- package/i18n/en-US/components/settings/bucket_game.ts +3 -2
- package/i18n/en-US/components/settings/flashcard.ts +1 -0
- package/i18n/en-US/components/settings/matching_game.ts +1 -1
- package/i18n/en-US/components/settings/quizshow_game.ts +1 -1
- package/i18n/en-US/components/settings/seven_strikes.ts +1 -1
- package/i18n/en-US/components/settings/slideshow.ts +2 -0
- package/i18n/en-US/index.ts +2 -1
- package/i18n/es-ES/components/content/blocks/bucket_game.ts +40 -0
- package/i18n/es-ES/components/content/blocks/crossword.ts +25 -0
- package/i18n/es-ES/components/content/blocks/flashcard.ts +8 -0
- package/i18n/es-ES/components/content/blocks/index.ts +23 -0
- package/i18n/es-ES/components/content/blocks/matching_game.ts +26 -0
- package/i18n/es-ES/components/content/blocks/multiple_choice.ts +9 -0
- package/i18n/es-ES/components/content/blocks/quizshow_game.ts +35 -0
- package/i18n/es-ES/components/content/blocks/seven_strikes.ts +6 -0
- package/i18n/es-ES/components/content/blocks/slideshow.ts +13 -0
- package/i18n/es-ES/components/content/blocks/sorting_game.ts +5 -0
- package/i18n/es-ES/components/content/blocks/word_jumble.ts +11 -0
- package/i18n/es-ES/components/content/crud_table.ts +6 -0
- package/i18n/es-ES/components/content/index.ts +7 -0
- package/i18n/es-ES/components/index.ts +9 -0
- package/i18n/es-ES/components/navigation/index.ts +5 -0
- package/i18n/es-ES/components/settings/bucket_game.ts +39 -0
- package/i18n/es-ES/components/settings/crossword.ts +7 -0
- package/i18n/es-ES/components/settings/flashcard.ts +29 -0
- package/i18n/es-ES/components/settings/index.ts +23 -0
- package/i18n/es-ES/components/settings/matching_game.ts +15 -0
- package/i18n/es-ES/components/settings/multiple_choice.ts +17 -0
- package/i18n/es-ES/components/settings/quizshow_game.ts +20 -0
- package/i18n/es-ES/components/settings/seven_strikes.ts +8 -0
- package/i18n/es-ES/components/settings/slideshow.ts +13 -0
- package/i18n/es-ES/components/settings/sorting_game.ts +5 -0
- package/i18n/es-ES/components/settings/word_jumble.ts +11 -0
- package/i18n/es-ES/index.ts +16 -0
- package/i18n/es-ES/modules/index.ts +5 -0
- package/i18n/es-ES/pages/index.ts +5 -0
- package/i18n/es-ES/shared/content_blocks.ts +18 -0
- package/i18n/es-ES/shared/index.ts +7 -0
- package/i18n/es-ES/shared/settings.ts +14 -0
- package/i18n/index.ts +11 -0
- package/i18n/sv-SE/components/content/blocks/bucket_game.ts +40 -0
- package/i18n/sv-SE/components/content/blocks/crossword.ts +20 -0
- package/i18n/sv-SE/components/content/blocks/flashcard.ts +8 -0
- package/i18n/sv-SE/components/content/blocks/index.ts +23 -0
- package/i18n/sv-SE/components/content/blocks/matching_game.ts +25 -0
- package/i18n/sv-SE/components/content/blocks/multiple_choice.ts +9 -0
- package/i18n/sv-SE/components/content/blocks/quizshow_game.ts +35 -0
- package/i18n/sv-SE/components/content/blocks/seven_strikes.ts +6 -0
- package/i18n/sv-SE/components/content/blocks/slideshow.ts +13 -0
- package/i18n/sv-SE/components/content/blocks/sorting_game.ts +5 -0
- package/i18n/sv-SE/components/content/blocks/word_jumble.ts +11 -0
- package/i18n/sv-SE/components/content/crud_table.ts +6 -0
- package/i18n/sv-SE/components/content/index.ts +7 -0
- package/i18n/sv-SE/components/index.ts +9 -0
- package/i18n/sv-SE/components/navigation/index.ts +5 -0
- package/i18n/sv-SE/components/settings/bucket_game.ts +38 -0
- package/i18n/sv-SE/components/settings/crossword.ts +7 -0
- package/i18n/sv-SE/components/settings/flashcard.ts +29 -0
- package/i18n/sv-SE/components/settings/index.ts +23 -0
- package/i18n/sv-SE/components/settings/matching_game.ts +15 -0
- package/i18n/sv-SE/components/settings/multiple_choice.ts +16 -0
- package/i18n/sv-SE/components/settings/quizshow_game.ts +20 -0
- package/i18n/sv-SE/components/settings/seven_strikes.ts +8 -0
- package/i18n/sv-SE/components/settings/slideshow.ts +13 -0
- package/i18n/sv-SE/components/settings/sorting_game.ts +5 -0
- package/i18n/sv-SE/components/settings/word_jumble.ts +11 -0
- package/i18n/sv-SE/index.ts +16 -0
- package/i18n/sv-SE/modules/index.ts +5 -0
- package/i18n/sv-SE/pages/index.ts +5 -0
- package/i18n/sv-SE/shared/content_blocks.ts +18 -0
- package/i18n/sv-SE/shared/index.ts +7 -0
- package/i18n/sv-SE/shared/settings.ts +14 -0
- package/package.json +1 -1
- package/plugin.js +33 -34
- package/test/Feature/LocaleKeys.spec.js +11 -0
- package/test/__mocks__/componentsMock.js +12 -0
- package/test/__mocks__/fileMock.js +1 -0
- package/test/__mocks__/modelMock.js +88 -0
- package/test/__mocks__/styleMock.js +1 -0
- package/test/blocks/crossword/CrosswordPuzzle.spec.js +1 -1
- package/test/blocks/dragDrop/BucketGame.spec.js +1 -1
- package/test/blocks/dragDrop/SortingGame.spec.js +1 -1
- package/test/blocks/flashcards/CardFace.spec.js +1 -1
- package/test/blocks/flashcards/FlashCardSlides.spec.js +1 -1
- package/test/blocks/flashcards/Flashcard.spec.js +1 -1
- package/test/blocks/matchingGame/MatchingGame.spec.js +1 -1
- package/test/blocks/multipleChoice/MultipleChoice.spec.js +1 -1
- package/test/blocks/multipleChoice/QuestionDialog.spec.js +1 -1
- package/test/blocks/quizShow/quizShow.spec.js +1 -1
- package/test/blocks/sevenStrikes/sevenStrikes.spec.js +1 -1
- package/test/blocks/slideshow/slideshow.spec.js +1 -1
- package/test/blocks/wordJumble/Jumble.spec.js +1 -1
- package/test/blocks/wordJumble/WordJumble.spec.js +1 -1
- package/test/mocks.js +8 -2
- package/test/settings/BucketGameManager.spec.js +4 -4
- package/test/settings/CrosswordPuzzleManager.spec.js +6 -11
- package/test/settings/FlashCardSlidesManager.spec.js +1 -1
- package/test/settings/MatchingGameManager.spec.js +1 -1
- package/test/settings/MultipleChoiceGameManager.spec.js +1 -1
- package/test/settings/SevenStrikesManager.spec.js +1 -1
- package/test/settings/SlideShowManager.spec.js +1 -1
- package/test/settings/SortingGameManager.spec.js +1 -1
- package/test/settings/WordJumbleManager.spec.js +1 -4
- package/i18n/en-US.ts +0 -5
|
@@ -9,39 +9,45 @@
|
|
|
9
9
|
<div v-if="result">
|
|
10
10
|
{{
|
|
11
11
|
$t(
|
|
12
|
-
'
|
|
12
|
+
'windward.games.components.content.blocks.quizshow_game.feedback.correct'
|
|
13
13
|
)
|
|
14
14
|
}}
|
|
15
15
|
</div>
|
|
16
16
|
<div v-if="!result">
|
|
17
17
|
{{
|
|
18
18
|
$t(
|
|
19
|
-
'
|
|
19
|
+
'windward.games.components.content.blocks.quizshow_game.feedback.incorrect'
|
|
20
20
|
)
|
|
21
21
|
}}
|
|
22
22
|
</div>
|
|
23
23
|
</v-row>
|
|
24
24
|
<br />
|
|
25
|
+
<v-row v-if="editMode">
|
|
26
|
+
<v-icon>mdi-help</v-icon>
|
|
27
|
+
<div>
|
|
28
|
+
{{
|
|
29
|
+
$t(
|
|
30
|
+
'windward.games.components.content.blocks.quizshow_game.form.question'
|
|
31
|
+
)
|
|
32
|
+
}}
|
|
33
|
+
</div></v-row
|
|
34
|
+
>
|
|
25
35
|
<v-row
|
|
26
36
|
align="center"
|
|
27
37
|
justify="center"
|
|
28
38
|
class="pa-4 mb-4 font-weight-bold text-capitalize"
|
|
29
39
|
>
|
|
30
|
-
<
|
|
40
|
+
<TextEditor
|
|
31
41
|
v-if="editMode"
|
|
32
42
|
v-model="question.text"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
:autofocus="true"
|
|
42
|
-
rows="2"
|
|
43
|
-
></v-textarea>
|
|
44
|
-
<v-card flat v-if="!editMode" v-html="question.text"></v-card>
|
|
43
|
+
class="col-md-12"
|
|
44
|
+
menubar="edit insert format"
|
|
45
|
+
toolbar="undo redo | italic underline strikethrough removeformat | mathButton "
|
|
46
|
+
:height="250"
|
|
47
|
+
lazy-load
|
|
48
|
+
auto-grow
|
|
49
|
+
></TextEditor>
|
|
50
|
+
<TextViewer v-if="!editMode" v-model="question.text"></TextViewer>
|
|
45
51
|
</v-row>
|
|
46
52
|
<v-row
|
|
47
53
|
align="center"
|
|
@@ -54,7 +60,7 @@
|
|
|
54
60
|
:counter="255"
|
|
55
61
|
:label="
|
|
56
62
|
$t(
|
|
57
|
-
'
|
|
63
|
+
'windward.games.components.content.blocks.quizshow_game.feedback.answer'
|
|
58
64
|
)
|
|
59
65
|
"
|
|
60
66
|
rows="2"
|
|
@@ -129,7 +135,7 @@
|
|
|
129
135
|
v-model="question.choices[choice_index].text"
|
|
130
136
|
:label="
|
|
131
137
|
$t(
|
|
132
|
-
'
|
|
138
|
+
'windward.games.components.content.blocks.quizshow_game.form.choice'
|
|
133
139
|
)
|
|
134
140
|
"
|
|
135
141
|
outlined
|
|
@@ -156,7 +162,7 @@
|
|
|
156
162
|
>
|
|
157
163
|
{{
|
|
158
164
|
$tc(
|
|
159
|
-
'
|
|
165
|
+
'windward.games.components.content.blocks.quizshow_game.add_choice'
|
|
160
166
|
)
|
|
161
167
|
}}
|
|
162
168
|
</v-btn>
|
|
@@ -168,7 +174,7 @@
|
|
|
168
174
|
>
|
|
169
175
|
{{
|
|
170
176
|
$tc(
|
|
171
|
-
'
|
|
177
|
+
'windward.games.components.content.blocks.quizshow_game.form.for_points',
|
|
172
178
|
Number(points),
|
|
173
179
|
{
|
|
174
180
|
points: Number(points),
|
|
@@ -186,7 +192,7 @@
|
|
|
186
192
|
<template #title>
|
|
187
193
|
{{
|
|
188
194
|
$t(
|
|
189
|
-
'
|
|
195
|
+
'windward.games.components.content.blocks.quizshow_game.feedback.answer_description'
|
|
190
196
|
)
|
|
191
197
|
}}
|
|
192
198
|
</template>
|
|
@@ -196,7 +202,7 @@
|
|
|
196
202
|
question.feedback
|
|
197
203
|
? question.feedback
|
|
198
204
|
: $t(
|
|
199
|
-
'
|
|
205
|
+
'windward.games.components.content.blocks.quizshow_game.feedback.placeholder'
|
|
200
206
|
)
|
|
201
207
|
}}
|
|
202
208
|
</div>
|
|
@@ -208,10 +214,11 @@
|
|
|
208
214
|
<script>
|
|
209
215
|
import Dialog from '~/components/Dialog.vue'
|
|
210
216
|
import { MathHelper } from '@windward/core/utils'
|
|
211
|
-
|
|
217
|
+
import TextEditor from '~/components/Text/TextEditor.vue'
|
|
218
|
+
import TextViewer from '~/components/Text/TextViewer.vue'
|
|
212
219
|
export default {
|
|
213
220
|
name: 'AnswerPanel',
|
|
214
|
-
components: { Dialog },
|
|
221
|
+
components: { Dialog, TextEditor, TextViewer },
|
|
215
222
|
props: {
|
|
216
223
|
editMode: { type: Boolean, required: false, default: false },
|
|
217
224
|
value: { type: Object, required: true, default: () => {} },
|
|
@@ -239,7 +246,7 @@ export default {
|
|
|
239
246
|
deep: true,
|
|
240
247
|
},
|
|
241
248
|
},
|
|
242
|
-
|
|
249
|
+
beforeMount() {
|
|
243
250
|
if (!_.isEmpty(this.value)) {
|
|
244
251
|
this.question = _.cloneDeep(this.value)
|
|
245
252
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<v-app-bar-nav-icon></v-app-bar-nav-icon>
|
|
5
5
|
<v-toolbar-title class="text-capitalize">{{
|
|
6
6
|
$t(
|
|
7
|
-
'
|
|
7
|
+
'windward.games.components.content.blocks.quizshow_game.spreadsheet_mode'
|
|
8
8
|
)
|
|
9
9
|
}}</v-toolbar-title>
|
|
10
10
|
<v-spacer></v-spacer>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
icon
|
|
13
13
|
:aria-label="
|
|
14
14
|
$t(
|
|
15
|
-
'
|
|
15
|
+
'windward.games.components.content.blocks.quizshow_game.expand_button'
|
|
16
16
|
)
|
|
17
17
|
"
|
|
18
18
|
@click="expand"
|
|
@@ -20,16 +20,12 @@
|
|
|
20
20
|
<v-icon>mdi-arrow-expand-all</v-icon>
|
|
21
21
|
</v-btn>
|
|
22
22
|
</v-toolbar>
|
|
23
|
-
<vue-excel-editor
|
|
24
|
-
v-model="jsondata"
|
|
25
|
-
@update="emitData"
|
|
26
|
-
filter-row
|
|
27
|
-
>
|
|
23
|
+
<vue-excel-editor v-model="jsondata" @update="emitData" filter-row>
|
|
28
24
|
<vue-excel-column
|
|
29
25
|
field="category"
|
|
30
26
|
:label="
|
|
31
27
|
$t(
|
|
32
|
-
'
|
|
28
|
+
'windward.games.components.content.blocks.quizshow_game.category'
|
|
33
29
|
)
|
|
34
30
|
"
|
|
35
31
|
type="string"
|
|
@@ -40,7 +36,7 @@
|
|
|
40
36
|
field="points"
|
|
41
37
|
:label="
|
|
42
38
|
$t(
|
|
43
|
-
'
|
|
39
|
+
'windward.games.components.content.blocks.quizshow_game.points'
|
|
44
40
|
)
|
|
45
41
|
"
|
|
46
42
|
width="60px"
|
|
@@ -50,7 +46,7 @@
|
|
|
50
46
|
field="question"
|
|
51
47
|
:label="
|
|
52
48
|
$t(
|
|
53
|
-
'
|
|
49
|
+
'windward.games.components.content.blocks.quizshow_game.question'
|
|
54
50
|
)
|
|
55
51
|
"
|
|
56
52
|
type="string"
|
|
@@ -60,7 +56,7 @@
|
|
|
60
56
|
field="answer"
|
|
61
57
|
:label="
|
|
62
58
|
$t(
|
|
63
|
-
'
|
|
59
|
+
'windward.games.components.content.blocks.quizshow_game.answer'
|
|
64
60
|
)
|
|
65
61
|
"
|
|
66
62
|
width="60px"
|
|
@@ -71,7 +67,7 @@
|
|
|
71
67
|
field="choice_1"
|
|
72
68
|
:label="
|
|
73
69
|
$t(
|
|
74
|
-
'
|
|
70
|
+
'windward.games.components.content.blocks.quizshow_game.choice_1'
|
|
75
71
|
)
|
|
76
72
|
"
|
|
77
73
|
type="string"
|
|
@@ -81,7 +77,7 @@
|
|
|
81
77
|
field="choice_2"
|
|
82
78
|
:label="
|
|
83
79
|
$t(
|
|
84
|
-
'
|
|
80
|
+
'windward.games.components.content.blocks.quizshow_game.choice_2'
|
|
85
81
|
)
|
|
86
82
|
"
|
|
87
83
|
type="string"
|
|
@@ -91,7 +87,7 @@
|
|
|
91
87
|
field="choice_3"
|
|
92
88
|
:label="
|
|
93
89
|
$t(
|
|
94
|
-
'
|
|
90
|
+
'windward.games.components.content.blocks.quizshow_game.choice_3'
|
|
95
91
|
)
|
|
96
92
|
"
|
|
97
93
|
type="string"
|
|
@@ -101,7 +97,7 @@
|
|
|
101
97
|
field="choice_4"
|
|
102
98
|
:label="
|
|
103
99
|
$t(
|
|
104
|
-
'
|
|
100
|
+
'windward.games.components.content.blocks.quizshow_game.choice_4'
|
|
105
101
|
)
|
|
106
102
|
"
|
|
107
103
|
type="string"
|
|
@@ -119,7 +115,7 @@
|
|
|
119
115
|
<template #title
|
|
120
116
|
><span class="text-capitalize">{{
|
|
121
117
|
$t(
|
|
122
|
-
'
|
|
118
|
+
'windward.games.components.content.blocks.quizshow_game.spreadsheet_mode'
|
|
123
119
|
)
|
|
124
120
|
}}</span></template
|
|
125
121
|
>
|
|
@@ -136,7 +132,7 @@
|
|
|
136
132
|
field="category"
|
|
137
133
|
:label="
|
|
138
134
|
$t(
|
|
139
|
-
'
|
|
135
|
+
'windward.games.components.content.blocks.quizshow_game.category'
|
|
140
136
|
)
|
|
141
137
|
"
|
|
142
138
|
type="string"
|
|
@@ -147,7 +143,7 @@
|
|
|
147
143
|
field="points"
|
|
148
144
|
:label="
|
|
149
145
|
$t(
|
|
150
|
-
'
|
|
146
|
+
'windward.games.components.content.blocks.quizshow_game.points'
|
|
151
147
|
)
|
|
152
148
|
"
|
|
153
149
|
width="60px"
|
|
@@ -157,7 +153,7 @@
|
|
|
157
153
|
field="question"
|
|
158
154
|
:label="
|
|
159
155
|
$t(
|
|
160
|
-
'
|
|
156
|
+
'windward.games.components.content.blocks.quizshow_game.question'
|
|
161
157
|
)
|
|
162
158
|
"
|
|
163
159
|
type="string"
|
|
@@ -167,7 +163,7 @@
|
|
|
167
163
|
field="answer"
|
|
168
164
|
:label="
|
|
169
165
|
$t(
|
|
170
|
-
'
|
|
166
|
+
'windward.games.components.content.blocks.quizshow_game.answer'
|
|
171
167
|
)
|
|
172
168
|
"
|
|
173
169
|
width="60px"
|
|
@@ -178,7 +174,7 @@
|
|
|
178
174
|
field="choice_1"
|
|
179
175
|
:label="
|
|
180
176
|
$t(
|
|
181
|
-
'
|
|
177
|
+
'windward.games.components.content.blocks.quizshow_game.choice_1'
|
|
182
178
|
)
|
|
183
179
|
"
|
|
184
180
|
type="string"
|
|
@@ -188,7 +184,7 @@
|
|
|
188
184
|
field="choice_2"
|
|
189
185
|
:label="
|
|
190
186
|
$t(
|
|
191
|
-
'
|
|
187
|
+
'windward.games.components.content.blocks.quizshow_game.choice_2'
|
|
192
188
|
)
|
|
193
189
|
"
|
|
194
190
|
type="string"
|
|
@@ -198,7 +194,7 @@
|
|
|
198
194
|
field="choice_3"
|
|
199
195
|
:label="
|
|
200
196
|
$t(
|
|
201
|
-
'
|
|
197
|
+
'windward.games.components.content.blocks.quizshow_game.choice_3'
|
|
202
198
|
)
|
|
203
199
|
"
|
|
204
200
|
type="string"
|
|
@@ -208,7 +204,7 @@
|
|
|
208
204
|
field="choice_4"
|
|
209
205
|
:label="
|
|
210
206
|
$t(
|
|
211
|
-
'
|
|
207
|
+
'windward.games.components.content.blocks.quizshow_game.choice_4'
|
|
212
208
|
)
|
|
213
209
|
"
|
|
214
210
|
type="string"
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
class="text-capitalize"
|
|
7
7
|
:label="
|
|
8
8
|
$t(
|
|
9
|
-
'
|
|
9
|
+
'windward.games.components.content.blocks.quizshow_game.spreadsheet_mode'
|
|
10
10
|
)
|
|
11
11
|
"
|
|
12
12
|
></v-switch>
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
<h3
|
|
16
16
|
:aria-label="
|
|
17
17
|
$t(
|
|
18
|
-
'
|
|
18
|
+
'windward.games.components.content.blocks.quizshow_game.title'
|
|
19
19
|
)
|
|
20
20
|
"
|
|
21
21
|
tabindex="0"
|
|
22
22
|
>
|
|
23
|
-
{{
|
|
23
|
+
{{ title }}
|
|
24
24
|
</h3>
|
|
25
25
|
|
|
26
26
|
<p tabindex="0">
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
<p tabindex="0">
|
|
30
30
|
{{
|
|
31
31
|
$t(
|
|
32
|
-
'
|
|
32
|
+
'windward.games.components.content.blocks.quizshow_game.basic_instructions'
|
|
33
33
|
)
|
|
34
34
|
}}
|
|
35
35
|
</p>
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
.categories"
|
|
44
44
|
:key="cat_index"
|
|
45
45
|
class="flex-fill"
|
|
46
|
-
|
|
46
|
+
elevation="0"
|
|
47
47
|
tile
|
|
48
48
|
:max-width="
|
|
49
49
|
block.metadata.config.responsive
|
|
@@ -74,10 +74,16 @@
|
|
|
74
74
|
@click="quizshow(cat_index, point_index)"
|
|
75
75
|
>
|
|
76
76
|
<v-row justify="space-between">
|
|
77
|
-
<v-col
|
|
77
|
+
<v-col
|
|
78
|
+
v-if="
|
|
79
|
+
!render ||
|
|
80
|
+
(render &&
|
|
78
81
|
options.answers[cat_index][
|
|
79
82
|
point_index
|
|
80
|
-
] !== null)
|
|
83
|
+
] !== null)
|
|
84
|
+
"
|
|
85
|
+
md="1"
|
|
86
|
+
>
|
|
81
87
|
<feedback-icons
|
|
82
88
|
v-if="!render"
|
|
83
89
|
:success="
|
|
@@ -143,7 +149,7 @@
|
|
|
143
149
|
<v-icon>mdi-chevron-left</v-icon>
|
|
144
150
|
{{
|
|
145
151
|
$t(
|
|
146
|
-
'
|
|
152
|
+
'windward.games.components.content.blocks.quizshow_game.return_to_questions'
|
|
147
153
|
)
|
|
148
154
|
}}
|
|
149
155
|
</v-btn>
|
|
@@ -171,7 +177,7 @@
|
|
|
171
177
|
>
|
|
172
178
|
{{
|
|
173
179
|
$t(
|
|
174
|
-
'
|
|
180
|
+
'windward.games.components.content.blocks.quizshow_game.total_score'
|
|
175
181
|
) +
|
|
176
182
|
' ' +
|
|
177
183
|
totalScore()
|
|
@@ -233,6 +239,13 @@ export default {
|
|
|
233
239
|
mounted() {},
|
|
234
240
|
updated() {},
|
|
235
241
|
computed: {
|
|
242
|
+
title() {
|
|
243
|
+
return this.block.metadata.config.title
|
|
244
|
+
? this.block.metadata.config.title
|
|
245
|
+
: this.$t(
|
|
246
|
+
'windward.games.components.settings.quizshow_game.title'
|
|
247
|
+
)
|
|
248
|
+
},
|
|
236
249
|
editorFeedbackIcons() {
|
|
237
250
|
if (this.render) {
|
|
238
251
|
return {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<span class="sr-only">
|
|
4
4
|
{{
|
|
5
5
|
$t(
|
|
6
|
-
'
|
|
6
|
+
'windward.games.components.content.blocks.quizshow_game.success'
|
|
7
7
|
)
|
|
8
8
|
}}</span
|
|
9
9
|
>
|
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
</v-icon>
|
|
13
13
|
<span class="sr-only">
|
|
14
14
|
{{
|
|
15
|
-
$t(
|
|
15
|
+
$t(
|
|
16
|
+
'windward.games.components.content.blocks.quizshow_game.error'
|
|
17
|
+
)
|
|
16
18
|
}}</span
|
|
17
19
|
>
|
|
18
20
|
<v-icon color="error" v-if="!success">
|