@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.
Files changed (80) hide show
  1. package/components/content/CrudTable.vue +2 -2
  2. package/components/content/blocks/crosswordPuzzle/CrosswordClues.vue +4 -2
  3. package/components/content/blocks/crosswordPuzzle/CrosswordPuzzle.vue +14 -12
  4. package/components/content/blocks/dragDrop/BucketGame.vue +14 -15
  5. package/components/content/blocks/dragDrop/SortingGame.vue +4 -4
  6. package/components/content/blocks/flashcards/CardFace.vue +38 -39
  7. package/components/content/blocks/flashcards/Flashcard.vue +109 -28
  8. package/components/content/blocks/flashcards/FlashcardSlides.vue +1 -2
  9. package/components/content/blocks/matchingGame/MatchingGame.vue +15 -14
  10. package/components/content/blocks/multipleChoice/MultipleChoice.vue +186 -225
  11. package/components/content/blocks/multipleChoice/QuestionDialog.vue +7 -7
  12. package/components/content/blocks/quizshowGame/AnswerPanel.vue +9 -9
  13. package/components/content/blocks/quizshowGame/Gridview.vue +20 -24
  14. package/components/content/blocks/quizshowGame/QuizShow.vue +6 -6
  15. package/components/content/blocks/quizshowGame/feedbackIcons.vue +4 -2
  16. package/components/content/blocks/sevenStrikes/SevenStikes.vue +165 -111
  17. package/components/content/blocks/sevenStrikes/keyboard.vue +9 -2
  18. package/components/content/blocks/slideshow/SlideShow.vue +9 -5
  19. package/components/content/blocks/wordJumble/Jumble.vue +0 -2
  20. package/components/content/blocks/wordJumble/WordJumble.vue +121 -60
  21. package/components/settings/BucketGameSettingsManager.vue +20 -20
  22. package/components/settings/CrosswordPuzzleSettingsManager.vue +114 -181
  23. package/components/settings/FlashCardSlidesManager.vue +46 -63
  24. package/components/settings/MatchingGameManager.vue +19 -19
  25. package/components/settings/MultipleChoiceSettingsManager.vue +130 -140
  26. package/components/settings/QuizShowSettingsManager.vue +17 -17
  27. package/components/settings/SevenStrikesSettingsManager.vue +139 -193
  28. package/components/settings/SlideShowManager.vue +17 -9
  29. package/components/settings/SortingGameSettingsManager.vue +11 -11
  30. package/components/settings/WordJumbleSettingsManager.vue +48 -12
  31. package/i18n/en-US/components/content/blocks/flashcard.ts +1 -0
  32. package/i18n/en-US/components/content/blocks/word_jumble.ts +2 -0
  33. package/i18n/en-US/components/settings/bucket_game.ts +3 -2
  34. package/i18n/en-US/components/settings/flashcard.ts +1 -0
  35. package/i18n/en-US/components/settings/seven_strikes.ts +1 -1
  36. package/i18n/en-US/index.ts +2 -1
  37. package/i18n/es-ES/components/content/blocks/flashcard.ts +1 -0
  38. package/i18n/es-ES/components/content/blocks/word_jumble.ts +2 -0
  39. package/i18n/es-ES/components/settings/bucket_game.ts +3 -2
  40. package/i18n/es-ES/components/settings/flashcard.ts +1 -0
  41. package/i18n/es-ES/components/settings/seven_strikes.ts +2 -2
  42. package/i18n/es-ES/index.ts +2 -1
  43. package/i18n/index.ts +11 -0
  44. package/i18n/sv-SE/components/content/blocks/flashcard.ts +1 -0
  45. package/i18n/sv-SE/components/content/blocks/word_jumble.ts +2 -0
  46. package/i18n/sv-SE/components/settings/bucket_game.ts +2 -2
  47. package/i18n/sv-SE/components/settings/flashcard.ts +1 -0
  48. package/i18n/sv-SE/components/settings/seven_strikes.ts +1 -1
  49. package/i18n/sv-SE/index.ts +2 -1
  50. package/package.json +1 -1
  51. package/plugin.js +33 -34
  52. package/test/Feature/LocaleKeys.spec.js +11 -0
  53. package/test/__mocks__/componentsMock.js +12 -0
  54. package/test/__mocks__/fileMock.js +1 -0
  55. package/test/__mocks__/modelMock.js +88 -0
  56. package/test/__mocks__/styleMock.js +1 -0
  57. package/test/blocks/crossword/CrosswordPuzzle.spec.js +1 -1
  58. package/test/blocks/dragDrop/BucketGame.spec.js +1 -1
  59. package/test/blocks/dragDrop/SortingGame.spec.js +1 -1
  60. package/test/blocks/flashcards/CardFace.spec.js +1 -1
  61. package/test/blocks/flashcards/FlashCardSlides.spec.js +1 -1
  62. package/test/blocks/flashcards/Flashcard.spec.js +1 -1
  63. package/test/blocks/matchingGame/MatchingGame.spec.js +1 -1
  64. package/test/blocks/multipleChoice/MultipleChoice.spec.js +1 -1
  65. package/test/blocks/multipleChoice/QuestionDialog.spec.js +1 -1
  66. package/test/blocks/quizShow/quizShow.spec.js +1 -1
  67. package/test/blocks/sevenStrikes/sevenStrikes.spec.js +1 -1
  68. package/test/blocks/slideshow/slideshow.spec.js +1 -1
  69. package/test/blocks/wordJumble/Jumble.spec.js +1 -1
  70. package/test/blocks/wordJumble/WordJumble.spec.js +1 -1
  71. package/test/mocks.js +8 -2
  72. package/test/settings/BucketGameManager.spec.js +4 -4
  73. package/test/settings/CrosswordPuzzleManager.spec.js +6 -11
  74. package/test/settings/FlashCardSlidesManager.spec.js +1 -1
  75. package/test/settings/MatchingGameManager.spec.js +1 -1
  76. package/test/settings/MultipleChoiceGameManager.spec.js +1 -1
  77. package/test/settings/SevenStrikesManager.spec.js +1 -1
  78. package/test/settings/SlideShowManager.spec.js +1 -1
  79. package/test/settings/SortingGameManager.spec.js +1 -1
  80. 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
- 'plugin.games.components.settings.multiple_choice.question'
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
- 'plugin.games.components.settings.multiple_choice.question_hint'
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
- 'plugin.games.components.settings.multiple_choice.answer_feedback'
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
- 'plugin.games.components.settings.multiple_choice.answer_options'
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
- 'plugin.games.components.settings.multiple_choice.correct_answer'
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
- 'plugin.games.components.settings.multiple_choice.answer_option'
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
- 'plugin.games.components.settings.multiple_choice.add_answer'
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
- 'plugin.games.components.content.blocks.quizshow_game.feedback.correct'
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
- 'plugin.games.components.content.blocks.quizshow_game.feedback.incorrect'
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
- 'plugin.games.components.content.blocks.quizshow_game.form.question'
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
- 'plugin.games.components.content.blocks.quizshow_game.feedback.answer'
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
- 'plugin.games.components.content.blocks.quizshow_game.form.choice'
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
- 'plugin.games.components.content.blocks.quizshow_game.add_choice'
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
- 'plugin.games.components.content.blocks.quizshow_game.form.for_points',
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
- 'plugin.games.components.content.blocks.quizshow_game.feedback.answer_description'
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
- 'plugin.games.components.content.blocks.quizshow_game.feedback.placeholder'
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
- 'plugin.games.components.content.blocks.quizshow_game.spreadsheet_mode'
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
- 'plugin.games.components.content.blocks.quizshow_game.expand_button'
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
- 'plugin.games.components.content.blocks.quizshow_game.category'
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
- 'plugin.games.components.content.blocks.quizshow_game.points'
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
- 'plugin.games.components.content.blocks.quizshow_game.question'
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
- 'plugin.games.components.content.blocks.quizshow_game.answer'
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
- 'plugin.games.components.content.blocks.quizshow_game.choice_1'
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
- 'plugin.games.components.content.blocks.quizshow_game.choice_2'
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
- 'plugin.games.components.content.blocks.quizshow_game.choice_3'
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
- 'plugin.games.components.content.blocks.quizshow_game.choice_4'
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
- 'plugin.games.components.content.blocks.quizshow_game.spreadsheet_mode'
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
- 'plugin.games.components.content.blocks.quizshow_game.category'
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
- 'plugin.games.components.content.blocks.quizshow_game.points'
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
- 'plugin.games.components.content.blocks.quizshow_game.question'
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
- 'plugin.games.components.content.blocks.quizshow_game.answer'
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
- 'plugin.games.components.content.blocks.quizshow_game.choice_1'
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
- 'plugin.games.components.content.blocks.quizshow_game.choice_2'
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
- 'plugin.games.components.content.blocks.quizshow_game.choice_3'
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
- 'plugin.games.components.content.blocks.quizshow_game.choice_4'
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
- 'plugin.games.components.content.blocks.quizshow_game.spreadsheet_mode'
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
- 'plugin.games.components.content.blocks.quizshow_game.title'
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
- 'plugin.games.components.content.blocks.quizshow_game.basic_instructions'
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
- 'plugin.games.components.content.blocks.quizshow_game.return_to_questions'
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
- 'plugin.games.components.content.blocks.quizshow_game.total_score'
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
- 'plugin.games.components.settings.quizshow_game.title'
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
- 'plugin.games.components.content.blocks.quizshow_game.success'
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('plugin.games.components.content.blocks.quizshow_game.error')
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">