@windward/games 0.0.10 → 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/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 +14 -15
- package/components/content/blocks/dragDrop/SortingGame.vue +4 -4
- 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 +1 -2
- package/components/content/blocks/matchingGame/MatchingGame.vue +15 -14
- 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 +9 -9
- package/components/content/blocks/quizshowGame/Gridview.vue +20 -24
- package/components/content/blocks/quizshowGame/QuizShow.vue +6 -6
- package/components/content/blocks/quizshowGame/feedbackIcons.vue +4 -2
- package/components/content/blocks/sevenStrikes/SevenStikes.vue +165 -111
- package/components/content/blocks/sevenStrikes/keyboard.vue +9 -2
- package/components/content/blocks/slideshow/SlideShow.vue +9 -5
- package/components/content/blocks/wordJumble/Jumble.vue +0 -2
- package/components/content/blocks/wordJumble/WordJumble.vue +121 -60
- package/components/settings/BucketGameSettingsManager.vue +20 -20
- package/components/settings/CrosswordPuzzleSettingsManager.vue +114 -181
- package/components/settings/FlashCardSlidesManager.vue +46 -63
- package/components/settings/MatchingGameManager.vue +19 -19
- package/components/settings/MultipleChoiceSettingsManager.vue +130 -140
- package/components/settings/QuizShowSettingsManager.vue +17 -17
- package/components/settings/SevenStrikesSettingsManager.vue +139 -193
- package/components/settings/SlideShowManager.vue +17 -9
- package/components/settings/SortingGameSettingsManager.vue +11 -11
- package/components/settings/WordJumbleSettingsManager.vue +48 -12
- package/i18n/en-US/components/content/blocks/flashcard.ts +1 -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/seven_strikes.ts +1 -1
- package/i18n/en-US/index.ts +2 -1
- package/i18n/es-ES/components/content/blocks/flashcard.ts +1 -0
- package/i18n/es-ES/components/content/blocks/word_jumble.ts +2 -0
- package/i18n/es-ES/components/settings/bucket_game.ts +3 -2
- package/i18n/es-ES/components/settings/flashcard.ts +1 -0
- package/i18n/es-ES/components/settings/seven_strikes.ts +2 -2
- package/i18n/es-ES/index.ts +2 -1
- package/i18n/index.ts +11 -0
- package/i18n/sv-SE/components/content/blocks/flashcard.ts +1 -0
- package/i18n/sv-SE/components/content/blocks/word_jumble.ts +2 -0
- package/i18n/sv-SE/components/settings/bucket_game.ts +2 -2
- package/i18n/sv-SE/components/settings/flashcard.ts +1 -0
- package/i18n/sv-SE/components/settings/seven_strikes.ts +1 -1
- package/i18n/sv-SE/index.ts +2 -1
- 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
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
v-model="question.body"
|
|
7
7
|
:label="
|
|
8
8
|
$t(
|
|
9
|
-
'
|
|
9
|
+
'windward.games.components.settings.multiple_choice.question'
|
|
10
10
|
)
|
|
11
11
|
"
|
|
12
12
|
:autofocus="true"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
v-model="question.hint"
|
|
19
19
|
:label="
|
|
20
20
|
$t(
|
|
21
|
-
'
|
|
21
|
+
'windward.games.components.settings.multiple_choice.question_hint'
|
|
22
22
|
)
|
|
23
23
|
"
|
|
24
24
|
rows="2"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
v-model="question.answer_description"
|
|
30
30
|
:label="
|
|
31
31
|
$t(
|
|
32
|
-
'
|
|
32
|
+
'windward.games.components.settings.multiple_choice.answer_feedback'
|
|
33
33
|
)
|
|
34
34
|
"
|
|
35
35
|
rows="2"
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
<h4 class="pb-2">
|
|
41
41
|
{{
|
|
42
42
|
$t(
|
|
43
|
-
'
|
|
43
|
+
'windward.games.components.settings.multiple_choice.answer_options'
|
|
44
44
|
)
|
|
45
45
|
}}
|
|
46
46
|
</h4>
|
|
47
47
|
<p>
|
|
48
48
|
{{
|
|
49
49
|
$t(
|
|
50
|
-
'
|
|
50
|
+
'windward.games.components.settings.multiple_choice.correct_answer'
|
|
51
51
|
)
|
|
52
52
|
}}
|
|
53
53
|
</p>
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
:class="getCorrectAnswer(answer)"
|
|
85
85
|
:label="
|
|
86
86
|
$t(
|
|
87
|
-
'
|
|
87
|
+
'windward.games.components.settings.multiple_choice.answer_option'
|
|
88
88
|
)
|
|
89
89
|
"
|
|
90
90
|
rows="2"
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
<v-icon class="primary addIcon">mdi-plus</v-icon>
|
|
117
117
|
{{
|
|
118
118
|
$t(
|
|
119
|
-
'
|
|
119
|
+
'windward.games.components.settings.multiple_choice.add_answer'
|
|
120
120
|
)
|
|
121
121
|
}}
|
|
122
122
|
</p>
|
|
@@ -9,14 +9,14 @@
|
|
|
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>
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<div>
|
|
28
28
|
{{
|
|
29
29
|
$t(
|
|
30
|
-
'
|
|
30
|
+
'windward.games.components.content.blocks.quizshow_game.form.question'
|
|
31
31
|
)
|
|
32
32
|
}}
|
|
33
33
|
</div></v-row
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
:counter="255"
|
|
61
61
|
:label="
|
|
62
62
|
$t(
|
|
63
|
-
'
|
|
63
|
+
'windward.games.components.content.blocks.quizshow_game.feedback.answer'
|
|
64
64
|
)
|
|
65
65
|
"
|
|
66
66
|
rows="2"
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
v-model="question.choices[choice_index].text"
|
|
136
136
|
:label="
|
|
137
137
|
$t(
|
|
138
|
-
'
|
|
138
|
+
'windward.games.components.content.blocks.quizshow_game.form.choice'
|
|
139
139
|
)
|
|
140
140
|
"
|
|
141
141
|
outlined
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
>
|
|
163
163
|
{{
|
|
164
164
|
$tc(
|
|
165
|
-
'
|
|
165
|
+
'windward.games.components.content.blocks.quizshow_game.add_choice'
|
|
166
166
|
)
|
|
167
167
|
}}
|
|
168
168
|
</v-btn>
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
>
|
|
175
175
|
{{
|
|
176
176
|
$tc(
|
|
177
|
-
'
|
|
177
|
+
'windward.games.components.content.blocks.quizshow_game.form.for_points',
|
|
178
178
|
Number(points),
|
|
179
179
|
{
|
|
180
180
|
points: Number(points),
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
<template #title>
|
|
193
193
|
{{
|
|
194
194
|
$t(
|
|
195
|
-
'
|
|
195
|
+
'windward.games.components.content.blocks.quizshow_game.feedback.answer_description'
|
|
196
196
|
)
|
|
197
197
|
}}
|
|
198
198
|
</template>
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
question.feedback
|
|
203
203
|
? question.feedback
|
|
204
204
|
: $t(
|
|
205
|
-
'
|
|
205
|
+
'windward.games.components.content.blocks.quizshow_game.feedback.placeholder'
|
|
206
206
|
)
|
|
207
207
|
}}
|
|
208
208
|
</div>
|
|
@@ -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,7 +15,7 @@
|
|
|
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"
|
|
@@ -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>
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
<v-icon>mdi-chevron-left</v-icon>
|
|
150
150
|
{{
|
|
151
151
|
$t(
|
|
152
|
-
'
|
|
152
|
+
'windward.games.components.content.blocks.quizshow_game.return_to_questions'
|
|
153
153
|
)
|
|
154
154
|
}}
|
|
155
155
|
</v-btn>
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
>
|
|
178
178
|
{{
|
|
179
179
|
$t(
|
|
180
|
-
'
|
|
180
|
+
'windward.games.components.content.blocks.quizshow_game.total_score'
|
|
181
181
|
) +
|
|
182
182
|
' ' +
|
|
183
183
|
totalScore()
|
|
@@ -243,7 +243,7 @@ export default {
|
|
|
243
243
|
return this.block.metadata.config.title
|
|
244
244
|
? this.block.metadata.config.title
|
|
245
245
|
: this.$t(
|
|
246
|
-
'
|
|
246
|
+
'windward.games.components.settings.quizshow_game.title'
|
|
247
247
|
)
|
|
248
248
|
},
|
|
249
249
|
editorFeedbackIcons() {
|
|
@@ -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">
|