@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.
- package/components/content/blocks/dragDrop/BucketGame.vue +41 -87
- package/components/content/blocks/dragDrop/SortingGame.vue +43 -29
- package/components/content/blocks/flashcards/FlashcardSlides.vue +3 -1
- package/components/content/blocks/matchingGame/MatchingGame.vue +94 -51
- package/components/content/blocks/quizshowGame/AnswerPanel.vue +93 -96
- package/components/content/blocks/quizshowGame/QuizShow.vue +54 -31
- package/components/content/blocks/slideshow/SlideShow.vue +3 -1
- package/components/content/blocks/wordJumble/Jumble.vue +4 -2
- package/components/content/blocks/wordJumble/WordJumble.vue +11 -2
- package/components/settings/BucketGameSettingsManager.vue +175 -349
- package/components/settings/FlashCardSlidesManager.vue +335 -414
- package/components/settings/MatchingGameManager.vue +357 -618
- package/components/settings/QuizShowSettingsManager.vue +228 -201
- package/components/settings/SlideShowManager.vue +89 -127
- package/components/settings/SortingGameSettingsManager.vue +32 -144
- package/components/settings/WordJumbleSettingsManager.vue +48 -142
- package/i18n/en-US/components/content/blocks/bucket_game.ts +1 -0
- package/i18n/en-US/components/content/blocks/flashcard.ts +2 -0
- package/i18n/en-US/components/content/blocks/quizshow_game.ts +1 -1
- package/i18n/en-US/components/settings/matching_game.ts +1 -1
- package/i18n/en-US/components/settings/quizshow_game.ts +8 -2
- package/i18n/en-US/components/settings/slideshow.ts +2 -0
- 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 +7 -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 +9 -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 +38 -0
- package/i18n/es-ES/components/settings/crossword.ts +7 -0
- package/i18n/es-ES/components/settings/flashcard.ts +28 -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 +15 -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/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 +7 -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 +9 -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 +28 -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 +15 -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/i18n/en-US.ts +0 -5
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"
|
|
21
21
|
tabindex="0"
|
|
22
22
|
>
|
|
23
|
-
{{
|
|
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
|
-
|
|
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
|
-
<
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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="
|
|
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="
|
|
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 '
|
|
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
|
-
|
|
33
|
-
|
|
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
|
-
<
|
|
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
|
-
</
|
|
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
|
)
|