@windward/games 0.10.0 → 0.11.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/CHANGELOG.md +3 -0
- package/components/content/blocks/crosswordPuzzle/CrosswordPuzzle.vue +2 -6
- package/components/content/blocks/dragDrop/BucketGame.vue +121 -52
- package/components/content/blocks/dragDrop/SortingGame.vue +42 -66
- package/components/content/blocks/matchingGame/MatchingGame.vue +73 -117
- package/components/content/blocks/slideshow/SlideShow.vue +10 -24
- package/components/settings/BucketGameSettingsManager.vue +0 -31
- package/components/settings/MatchingGameManager.vue +14 -94
- package/components/settings/SlideShowManager.vue +11 -46
- package/components/settings/SortingGameSettingsManager.vue +2 -19
- package/i18n/en-US/components/content/blocks/sorting_game.ts +2 -0
- package/i18n/en-US/components/settings/sorting_game.ts +2 -0
- package/i18n/es-ES/components/content/blocks/sorting_game.ts +2 -0
- package/i18n/es-ES/components/settings/sorting_game.ts +2 -0
- package/i18n/sv-SE/components/content/blocks/sorting_game.ts +2 -0
- package/i18n/sv-SE/components/settings/sorting_game.ts +2 -0
- package/package.json +1 -1
|
@@ -84,48 +84,16 @@
|
|
|
84
84
|
:disabled="render"
|
|
85
85
|
></v-textarea>
|
|
86
86
|
|
|
87
|
-
<
|
|
88
|
-
id="content-block-asset"
|
|
87
|
+
<ImageAssetSettings
|
|
89
88
|
v-model="
|
|
90
|
-
block.metadata.config.slides[index].
|
|
89
|
+
block.metadata.config.slides[index].fileConfig
|
|
91
90
|
"
|
|
92
91
|
:assets.sync="block.assets"
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
>
|
|
97
|
-
<template #title>
|
|
98
|
-
{{
|
|
99
|
-
$t(
|
|
100
|
-
'windward.games.shared.settings.file_picker.image'
|
|
101
|
-
)
|
|
102
|
-
}}
|
|
103
|
-
</template>
|
|
104
|
-
</ContentBlockAsset>
|
|
92
|
+
hide-background
|
|
93
|
+
hide-decorative
|
|
94
|
+
hide-modal
|
|
95
|
+
></ImageAssetSettings>
|
|
105
96
|
|
|
106
|
-
<v-text-field
|
|
107
|
-
v-if="
|
|
108
|
-
block.metadata.config.slides[index].imageAsset
|
|
109
|
-
"
|
|
110
|
-
v-model="
|
|
111
|
-
block.metadata.config.slides[index].imageAlt
|
|
112
|
-
"
|
|
113
|
-
class="mt-4"
|
|
114
|
-
outlined
|
|
115
|
-
:placeholder="
|
|
116
|
-
getImageAlt(
|
|
117
|
-
block.metadata.config.slides[index]
|
|
118
|
-
.imageAsset
|
|
119
|
-
)
|
|
120
|
-
"
|
|
121
|
-
persistent-placeholder
|
|
122
|
-
:label="
|
|
123
|
-
$t(
|
|
124
|
-
'windward.games.components.content.blocks.slideshow.slides.image_alt'
|
|
125
|
-
)
|
|
126
|
-
"
|
|
127
|
-
:disabled="render"
|
|
128
|
-
></v-text-field>
|
|
129
97
|
</v-container>
|
|
130
98
|
</template>
|
|
131
99
|
</SortableExpansionPanel>
|
|
@@ -160,7 +128,7 @@
|
|
|
160
128
|
<script>
|
|
161
129
|
import BaseContentSettings from '~/components/Content/Settings/BaseContentSettings.js'
|
|
162
130
|
import _ from 'lodash'
|
|
163
|
-
import
|
|
131
|
+
import ImageAssetSettings from '~/components/Content/Settings/ImageAssetSettings.vue'
|
|
164
132
|
import SortableExpansionPanel from '~/components/Core/SortableExpansionPanel.vue'
|
|
165
133
|
import Uuid from '~/helpers/Uuid'
|
|
166
134
|
|
|
@@ -168,7 +136,7 @@ export default {
|
|
|
168
136
|
name: 'SlideShowManager',
|
|
169
137
|
extends: BaseContentSettings,
|
|
170
138
|
components: {
|
|
171
|
-
|
|
139
|
+
ImageAssetSettings,
|
|
172
140
|
SortableExpansionPanel,
|
|
173
141
|
},
|
|
174
142
|
beforeMount() {
|
|
@@ -224,8 +192,9 @@ export default {
|
|
|
224
192
|
id: this.block.metadata.config.slides.length + 1,
|
|
225
193
|
header: '',
|
|
226
194
|
description: '',
|
|
227
|
-
|
|
228
|
-
|
|
195
|
+
fileConfig: {
|
|
196
|
+
hideBackground: true,
|
|
197
|
+
},
|
|
229
198
|
}
|
|
230
199
|
this.block.metadata.config.slides.push(defaultSlide)
|
|
231
200
|
this.block.metadata.config.currentSlide =
|
|
@@ -255,10 +224,6 @@ export default {
|
|
|
255
224
|
this.block.metadata.config.currentSlide =
|
|
256
225
|
this.block.metadata.config.slides.length - 1
|
|
257
226
|
},
|
|
258
|
-
getImageAlt(file) {
|
|
259
|
-
file = this.resolveAsset(file)
|
|
260
|
-
return _.get(file, 'asset.metadata.props.alt', '')
|
|
261
|
-
},
|
|
262
227
|
},
|
|
263
228
|
}
|
|
264
229
|
</script>
|
|
@@ -98,19 +98,7 @@
|
|
|
98
98
|
:counter="255"
|
|
99
99
|
:label="
|
|
100
100
|
$t(
|
|
101
|
-
'windward.games.components.settings.
|
|
102
|
-
)
|
|
103
|
-
"
|
|
104
|
-
:disabled="render"
|
|
105
|
-
></v-textarea>
|
|
106
|
-
<v-textarea
|
|
107
|
-
v-model="block.metadata.config.feedback_incorrect"
|
|
108
|
-
outlined
|
|
109
|
-
auto-grow
|
|
110
|
-
:counter="255"
|
|
111
|
-
:label="
|
|
112
|
-
$t(
|
|
113
|
-
'windward.games.components.settings.bucket_game.form.feedback.incorrect'
|
|
101
|
+
'windward.games.components.settings.sorting_game.feedback_correct_label'
|
|
114
102
|
)
|
|
115
103
|
"
|
|
116
104
|
:disabled="render"
|
|
@@ -163,12 +151,7 @@ export default {
|
|
|
163
151
|
}
|
|
164
152
|
if (_.isEmpty(this.block.metadata.config.feedback_correct)) {
|
|
165
153
|
this.block.metadata.config.feedback_correct = this.$t(
|
|
166
|
-
'windward.games.components.settings.
|
|
167
|
-
)
|
|
168
|
-
}
|
|
169
|
-
if (_.isEmpty(this.block.metadata.config.feedback_incorrect)) {
|
|
170
|
-
this.block.metadata.config.feedback_incorrect = this.$t(
|
|
171
|
-
'windward.games.components.settings.bucket_game.form.feedback.incorrect_default'
|
|
154
|
+
'windward.games.components.settings.sorting_game.default_feedback_correct'
|
|
172
155
|
)
|
|
173
156
|
}
|
|
174
157
|
if (_.isEmpty(this.block.metadata.config.answer)) {
|
|
@@ -3,4 +3,6 @@ export default {
|
|
|
3
3
|
sortable_items: 'Sortable Items',
|
|
4
4
|
word: 'Sortable Word',
|
|
5
5
|
instructions: 'Drag each statement into the correct order. When you are finished, click the Check Your Answers button. Statements in the correct order will appear green, while statements not in the correct order will appear red.',
|
|
6
|
+
feedback_correct_label: 'Explanation of the correct order',
|
|
7
|
+
default_feedback_correct: 'That is the correct order.',
|
|
6
8
|
}
|
|
@@ -2,4 +2,6 @@ export default {
|
|
|
2
2
|
check_answers: 'Compruebe sus respuestas',
|
|
3
3
|
add_element: 'Agregar elemento',
|
|
4
4
|
placeholder: 'Marcador de posición',
|
|
5
|
+
incorrect_feedback:
|
|
6
|
+
'Este orden no es correcto. Los elementos con marcas de verificación verdes están en la posición correcta.',
|
|
5
7
|
}
|
|
@@ -3,4 +3,6 @@ export default {
|
|
|
3
3
|
sortable_items: 'Elementos clasificables',
|
|
4
4
|
word: 'Palabra ordenable',
|
|
5
5
|
instructions: 'Arrastre cada declaración al orden correcto. Cuando haya terminado, haga clic en el botón Verifique sus respuestas. Las declaraciones en el orden correcto aparecerán en verde, mientras que las declaraciones que no estén en el orden correcto aparecerán en rojo.',
|
|
6
|
+
feedback_correct_label: 'Explicación del orden correcto.',
|
|
7
|
+
default_feedback_correct: 'Ese es el orden correcto.',
|
|
6
8
|
}
|
|
@@ -3,4 +3,6 @@ export default {
|
|
|
3
3
|
sortable_items: 'Sorterbara artiklar',
|
|
4
4
|
word: 'Sorterbart ord',
|
|
5
5
|
instructions: 'Dra varje påstående i rätt ordning. När du är klar klickar du på knappen Kontrollera dina svar. Påståenden i rätt ordning visas i grönt, medan påståenden som inte är i rätt ordning visas röda.',
|
|
6
|
+
feedback_correct_label: 'Förklaring av rätt ordning',
|
|
7
|
+
default_feedback_correct: 'Det är rätt ordning.',
|
|
6
8
|
}
|