@windward/games 0.0.7 → 0.0.9
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 +18 -6
- package/components/content/blocks/dragDrop/SortingGame.vue +127 -55
- package/components/content/blocks/quizshowGame/AnswerPanel.vue +73 -83
- package/components/content/blocks/quizshowGame/QuizShow.vue +40 -30
- package/components/content/blocks/wordJumble/WordJumble.vue +11 -5
- package/components/settings/BucketGameSettingsManager.vue +306 -369
- package/components/settings/QuizShowSettingsManager.vue +228 -201
- package/components/settings/SortingGameSettingsManager.vue +181 -152
- package/components/settings/WordJumbleSettingsManager.vue +145 -137
- package/i18n/en-US/components/content/blocks/quizshow_game.ts +1 -1
- package/i18n/en-US/components/content/blocks/word_jumble.ts +1 -1
- package/i18n/en-US/components/settings/bucket_game.ts +5 -2
- package/i18n/en-US/components/settings/quizshow_game.ts +8 -2
- package/i18n/en-US/components/settings/sorting_game.ts +2 -0
- package/i18n/en-US/components/settings/word_jumble.ts +1 -1
- package/package.json +1 -1
|
@@ -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,41 @@
|
|
|
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 md="1" v-if="!render || ( render &&
|
|
78
|
+
options.answers[cat_index][
|
|
79
|
+
point_index
|
|
80
|
+
] !== null)">
|
|
81
|
+
<feedback-icons
|
|
82
|
+
v-if="!render"
|
|
83
|
+
:success="
|
|
84
|
+
editorFeedback(
|
|
85
|
+
cat_index,
|
|
86
|
+
point_index
|
|
87
|
+
)
|
|
88
|
+
"
|
|
89
|
+
:icons="editorFeedbackIcons"
|
|
90
|
+
/>
|
|
91
|
+
<feedback-icons
|
|
92
|
+
v-if="
|
|
93
|
+
render &&
|
|
94
|
+
options.answers[cat_index][
|
|
95
|
+
point_index
|
|
96
|
+
] !== null
|
|
97
|
+
"
|
|
98
|
+
:success="
|
|
99
|
+
options.answers[cat_index][
|
|
100
|
+
point_index
|
|
101
|
+
]
|
|
102
|
+
"
|
|
103
|
+
/>
|
|
104
|
+
</v-col>
|
|
105
|
+
<v-col align-self="center"
|
|
106
|
+
><span class="text--primary">{{
|
|
107
|
+
point
|
|
108
|
+
}}</span></v-col
|
|
109
|
+
></v-row
|
|
110
|
+
>
|
|
102
111
|
</v-btn>
|
|
103
112
|
</v-row>
|
|
104
113
|
</v-col>
|
|
@@ -127,8 +136,9 @@
|
|
|
127
136
|
>
|
|
128
137
|
<v-btn
|
|
129
138
|
class="text-capitalize"
|
|
130
|
-
color="
|
|
139
|
+
color="primary"
|
|
131
140
|
@click="show = !show"
|
|
141
|
+
outlined
|
|
132
142
|
>
|
|
133
143
|
<v-icon>mdi-chevron-left</v-icon>
|
|
134
144
|
{{
|
|
@@ -147,7 +157,7 @@
|
|
|
147
157
|
<v-btn
|
|
148
158
|
outlined
|
|
149
159
|
class="text-capitalize"
|
|
150
|
-
color="
|
|
160
|
+
color="primary"
|
|
151
161
|
@click="resetGame"
|
|
152
162
|
>
|
|
153
163
|
{{ $t('shared.forms.reset') }}
|
|
@@ -506,7 +516,7 @@ export default {
|
|
|
506
516
|
return 'error'
|
|
507
517
|
}
|
|
508
518
|
} else {
|
|
509
|
-
return '
|
|
519
|
+
return 'primary'
|
|
510
520
|
}
|
|
511
521
|
},
|
|
512
522
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<v-container>
|
|
3
3
|
<v-col class="pa-0">
|
|
4
|
-
<
|
|
4
|
+
<h1>
|
|
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
|
+
</h1>
|
|
13
13
|
<p>{{ block.metadata.config.instructions }}</p>
|
|
14
14
|
</v-col>
|
|
15
15
|
<v-col class="pa-0">
|
|
@@ -109,16 +109,22 @@ export default {
|
|
|
109
109
|
this.block.metadata.config = {}
|
|
110
110
|
}
|
|
111
111
|
if (_.isEmpty(this.block.metadata.config.title)) {
|
|
112
|
-
this.block.metadata.config.title =
|
|
112
|
+
this.block.metadata.config.title = this.$t(
|
|
113
|
+
'plugin.games.components.content.blocks.word_jumble.title'
|
|
114
|
+
)
|
|
113
115
|
}
|
|
114
116
|
if (_.isEmpty(this.block.metadata.config.instructions)) {
|
|
115
117
|
this.block.metadata.config.instructions = ''
|
|
116
118
|
}
|
|
117
119
|
if (_.isEmpty(this.block.metadata.config.feedback_correct)) {
|
|
118
|
-
this.block.metadata.config.feedback_correct =
|
|
120
|
+
this.block.metadata.config.feedback_correct = this.$t(
|
|
121
|
+
'plugin.games.components.settings.bucket_game.form.feedback.correct_default'
|
|
122
|
+
)
|
|
119
123
|
}
|
|
120
124
|
if (_.isEmpty(this.block.metadata.config.feedback_incorrect)) {
|
|
121
|
-
this.block.metadata.config.feedback_incorrect =
|
|
125
|
+
this.block.metadata.config.feedback_incorrect = this.$t(
|
|
126
|
+
'plugin.games.components.settings.bucket_game.form.feedback.incorrect_default'
|
|
127
|
+
)
|
|
122
128
|
}
|
|
123
129
|
if (_.isEmpty(this.block.metadata.config.words)) {
|
|
124
130
|
this.block.metadata.config.words = []
|