@windward/games 0.0.8 → 0.0.10

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 (88) hide show
  1. package/components/content/blocks/dragDrop/BucketGame.vue +41 -87
  2. package/components/content/blocks/dragDrop/SortingGame.vue +43 -29
  3. package/components/content/blocks/flashcards/FlashcardSlides.vue +3 -1
  4. package/components/content/blocks/matchingGame/MatchingGame.vue +94 -51
  5. package/components/content/blocks/quizshowGame/AnswerPanel.vue +93 -96
  6. package/components/content/blocks/quizshowGame/QuizShow.vue +54 -31
  7. package/components/content/blocks/slideshow/SlideShow.vue +3 -1
  8. package/components/content/blocks/wordJumble/Jumble.vue +4 -2
  9. package/components/content/blocks/wordJumble/WordJumble.vue +11 -2
  10. package/components/settings/BucketGameSettingsManager.vue +175 -349
  11. package/components/settings/FlashCardSlidesManager.vue +335 -414
  12. package/components/settings/MatchingGameManager.vue +357 -618
  13. package/components/settings/QuizShowSettingsManager.vue +228 -201
  14. package/components/settings/SlideShowManager.vue +89 -127
  15. package/components/settings/SortingGameSettingsManager.vue +32 -144
  16. package/components/settings/WordJumbleSettingsManager.vue +48 -142
  17. package/i18n/en-US/components/content/blocks/bucket_game.ts +1 -0
  18. package/i18n/en-US/components/content/blocks/flashcard.ts +2 -0
  19. package/i18n/en-US/components/content/blocks/quizshow_game.ts +1 -1
  20. package/i18n/en-US/components/settings/matching_game.ts +1 -1
  21. package/i18n/en-US/components/settings/quizshow_game.ts +8 -2
  22. package/i18n/en-US/components/settings/slideshow.ts +2 -0
  23. package/i18n/es-ES/components/content/blocks/bucket_game.ts +40 -0
  24. package/i18n/es-ES/components/content/blocks/crossword.ts +25 -0
  25. package/i18n/es-ES/components/content/blocks/flashcard.ts +7 -0
  26. package/i18n/es-ES/components/content/blocks/index.ts +23 -0
  27. package/i18n/es-ES/components/content/blocks/matching_game.ts +26 -0
  28. package/i18n/es-ES/components/content/blocks/multiple_choice.ts +9 -0
  29. package/i18n/es-ES/components/content/blocks/quizshow_game.ts +35 -0
  30. package/i18n/es-ES/components/content/blocks/seven_strikes.ts +6 -0
  31. package/i18n/es-ES/components/content/blocks/slideshow.ts +13 -0
  32. package/i18n/es-ES/components/content/blocks/sorting_game.ts +5 -0
  33. package/i18n/es-ES/components/content/blocks/word_jumble.ts +9 -0
  34. package/i18n/es-ES/components/content/crud_table.ts +6 -0
  35. package/i18n/es-ES/components/content/index.ts +7 -0
  36. package/i18n/es-ES/components/index.ts +9 -0
  37. package/i18n/es-ES/components/navigation/index.ts +5 -0
  38. package/i18n/es-ES/components/settings/bucket_game.ts +38 -0
  39. package/i18n/es-ES/components/settings/crossword.ts +7 -0
  40. package/i18n/es-ES/components/settings/flashcard.ts +28 -0
  41. package/i18n/es-ES/components/settings/index.ts +23 -0
  42. package/i18n/es-ES/components/settings/matching_game.ts +15 -0
  43. package/i18n/es-ES/components/settings/multiple_choice.ts +17 -0
  44. package/i18n/es-ES/components/settings/quizshow_game.ts +20 -0
  45. package/i18n/es-ES/components/settings/seven_strikes.ts +8 -0
  46. package/i18n/es-ES/components/settings/slideshow.ts +13 -0
  47. package/i18n/es-ES/components/settings/sorting_game.ts +5 -0
  48. package/i18n/es-ES/components/settings/word_jumble.ts +11 -0
  49. package/i18n/es-ES/index.ts +15 -0
  50. package/i18n/es-ES/modules/index.ts +5 -0
  51. package/i18n/es-ES/pages/index.ts +5 -0
  52. package/i18n/es-ES/shared/content_blocks.ts +18 -0
  53. package/i18n/es-ES/shared/index.ts +7 -0
  54. package/i18n/es-ES/shared/settings.ts +14 -0
  55. package/i18n/sv-SE/components/content/blocks/bucket_game.ts +40 -0
  56. package/i18n/sv-SE/components/content/blocks/crossword.ts +20 -0
  57. package/i18n/sv-SE/components/content/blocks/flashcard.ts +7 -0
  58. package/i18n/sv-SE/components/content/blocks/index.ts +23 -0
  59. package/i18n/sv-SE/components/content/blocks/matching_game.ts +25 -0
  60. package/i18n/sv-SE/components/content/blocks/multiple_choice.ts +9 -0
  61. package/i18n/sv-SE/components/content/blocks/quizshow_game.ts +35 -0
  62. package/i18n/sv-SE/components/content/blocks/seven_strikes.ts +6 -0
  63. package/i18n/sv-SE/components/content/blocks/slideshow.ts +13 -0
  64. package/i18n/sv-SE/components/content/blocks/sorting_game.ts +5 -0
  65. package/i18n/sv-SE/components/content/blocks/word_jumble.ts +9 -0
  66. package/i18n/sv-SE/components/content/crud_table.ts +6 -0
  67. package/i18n/sv-SE/components/content/index.ts +7 -0
  68. package/i18n/sv-SE/components/index.ts +9 -0
  69. package/i18n/sv-SE/components/navigation/index.ts +5 -0
  70. package/i18n/sv-SE/components/settings/bucket_game.ts +38 -0
  71. package/i18n/sv-SE/components/settings/crossword.ts +7 -0
  72. package/i18n/sv-SE/components/settings/flashcard.ts +28 -0
  73. package/i18n/sv-SE/components/settings/index.ts +23 -0
  74. package/i18n/sv-SE/components/settings/matching_game.ts +15 -0
  75. package/i18n/sv-SE/components/settings/multiple_choice.ts +16 -0
  76. package/i18n/sv-SE/components/settings/quizshow_game.ts +20 -0
  77. package/i18n/sv-SE/components/settings/seven_strikes.ts +8 -0
  78. package/i18n/sv-SE/components/settings/slideshow.ts +13 -0
  79. package/i18n/sv-SE/components/settings/sorting_game.ts +5 -0
  80. package/i18n/sv-SE/components/settings/word_jumble.ts +11 -0
  81. package/i18n/sv-SE/index.ts +15 -0
  82. package/i18n/sv-SE/modules/index.ts +5 -0
  83. package/i18n/sv-SE/pages/index.ts +5 -0
  84. package/i18n/sv-SE/shared/content_blocks.ts +18 -0
  85. package/i18n/sv-SE/shared/index.ts +7 -0
  86. package/i18n/sv-SE/shared/settings.ts +14 -0
  87. package/package.json +1 -1
  88. package/i18n/en-US.ts +0 -5
@@ -20,7 +20,7 @@
20
20
  "
21
21
  tabindex="0"
22
22
  >
23
- {{ block.metadata.config.title }}
23
+ {{ title }}
24
24
  </h3>
25
25
 
26
26
  <p tabindex="0">
@@ -43,7 +43,7 @@
43
43
  .categories"
44
44
  :key="cat_index"
45
45
  class="flex-fill"
46
- outlined
46
+ elevation="0"
47
47
  tile
48
48
  :max-width="
49
49
  block.metadata.config.responsive
@@ -73,32 +73,47 @@
73
73
  class="flex-fill ma-2 pa-5"
74
74
  @click="quizshow(cat_index, point_index)"
75
75
  >
76
- <span class="text--primary">{{
77
- point
78
- }}</span>
79
- <feedback-icons
80
- v-if="!render"
81
- :success="
82
- editorFeedback(
83
- cat_index,
84
- point_index
85
- )
86
- "
87
- :icons="editorFeedbackIcons"
88
- />
89
- <feedback-icons
90
- v-if="
91
- render &&
92
- options.answers[cat_index][
93
- point_index
94
- ] !== null
95
- "
96
- :success="
97
- options.answers[cat_index][
98
- point_index
99
- ]
100
- "
101
- />
76
+ <v-row justify="space-between">
77
+ <v-col
78
+ v-if="
79
+ !render ||
80
+ (render &&
81
+ options.answers[cat_index][
82
+ point_index
83
+ ] !== null)
84
+ "
85
+ md="1"
86
+ >
87
+ <feedback-icons
88
+ v-if="!render"
89
+ :success="
90
+ editorFeedback(
91
+ cat_index,
92
+ point_index
93
+ )
94
+ "
95
+ :icons="editorFeedbackIcons"
96
+ />
97
+ <feedback-icons
98
+ v-if="
99
+ render &&
100
+ options.answers[cat_index][
101
+ point_index
102
+ ] !== null
103
+ "
104
+ :success="
105
+ options.answers[cat_index][
106
+ point_index
107
+ ]
108
+ "
109
+ />
110
+ </v-col>
111
+ <v-col align-self="center"
112
+ ><span class="text--primary">{{
113
+ point
114
+ }}</span></v-col
115
+ ></v-row
116
+ >
102
117
  </v-btn>
103
118
  </v-row>
104
119
  </v-col>
@@ -127,8 +142,9 @@
127
142
  >
128
143
  <v-btn
129
144
  class="text-capitalize"
130
- color="secondary"
145
+ color="primary"
131
146
  @click="show = !show"
147
+ outlined
132
148
  >
133
149
  <v-icon>mdi-chevron-left</v-icon>
134
150
  {{
@@ -147,7 +163,7 @@
147
163
  <v-btn
148
164
  outlined
149
165
  class="text-capitalize"
150
- color="secondary"
166
+ color="primary"
151
167
  @click="resetGame"
152
168
  >
153
169
  {{ $t('shared.forms.reset') }}
@@ -223,6 +239,13 @@ export default {
223
239
  mounted() {},
224
240
  updated() {},
225
241
  computed: {
242
+ title() {
243
+ return this.block.metadata.config.title
244
+ ? this.block.metadata.config.title
245
+ : this.$t(
246
+ 'plugin.games.components.settings.quizshow_game.title'
247
+ )
248
+ },
226
249
  editorFeedbackIcons() {
227
250
  if (this.render) {
228
251
  return {
@@ -506,7 +529,7 @@ export default {
506
529
  return 'error'
507
530
  }
508
531
  } else {
509
- return 'secondary'
532
+ return 'primary'
510
533
  }
511
534
  },
512
535
  },
@@ -103,7 +103,9 @@ export default {
103
103
  this.block.metadata.config = {}
104
104
  }
105
105
  if (_.isEmpty(this.block.metadata.config.title)) {
106
- this.block.metadata.config.title = ''
106
+ this.block.metadata.config.title = this.$t(
107
+ 'plugin.games.components.settings.slideshow.form.slideshow_title'
108
+ )
107
109
  }
108
110
 
109
111
  if (_.isEmpty(this.block.metadata.config.instructions)) {
@@ -29,8 +29,10 @@ export default {
29
29
  // reveals correct answer in input areas
30
30
  if (newValue === true) {
31
31
  for (let i = 0; i < this.value.value.length; i++) {
32
- const letter = this.answer.charAt(i)
33
- this.letterArray[i].value = letter
32
+ if (this.answer.length > 0) {
33
+ const letter = this.answer.charAt(i)
34
+ this.letterArray[i].value = letter
35
+ }
34
36
  }
35
37
  } else {
36
38
  this.splitUpWord()
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <v-container>
3
3
  <v-col class="pa-0">
4
- <h1>
4
+ <h3>
5
5
  {{
6
6
  block.metadata.config.title
7
7
  ? block.metadata.config.title
@@ -9,7 +9,7 @@
9
9
  'plugin.games.components.content.blocks.word_jumble.title'
10
10
  )
11
11
  }}
12
- </h1>
12
+ </h3>
13
13
  <p>{{ block.metadata.config.instructions }}</p>
14
14
  </v-col>
15
15
  <v-col class="pa-0">
@@ -55,6 +55,7 @@
55
55
  </v-container>
56
56
  <v-row class="justify-center mt-4">
57
57
  <Jumble
58
+ :key="updateJumble"
58
59
  :value="word"
59
60
  :reveal="showAnswer"
60
61
  :reset="resetValue"
@@ -91,6 +92,7 @@
91
92
  import _ from 'lodash'
92
93
  import Jumble from './Jumble.vue'
93
94
  import BaseContentBlock from '~/components/Content/Blocks/BaseContentBlock'
95
+ import Crypto from '~/helpers/Crypto'
94
96
 
95
97
  export default {
96
98
  name: 'WordJumble',
@@ -141,8 +143,14 @@ export default {
141
143
  resetValue: false,
142
144
  studentResponse: '',
143
145
  feedbackStatus: '',
146
+ updateJumble: 0,
144
147
  }
145
148
  },
149
+ watch: {
150
+ render(newValue) {
151
+ this.updateJumble = Crypto.id()
152
+ },
153
+ },
146
154
  mounted() {
147
155
  this.showAnswer = false
148
156
  },
@@ -224,6 +232,7 @@ export default {
224
232
  // that components do not remount on slides each time the slide is revisited
225
233
  // updates class
226
234
  this.feedbackStatus = ''
235
+ this.showFeedback = false
227
236
  this.feedback = this.$t(
228
237
  'plugin.games.components.content.blocks.word_jumble.feedback'
229
238
  )