@windward/games 0.12.0 → 0.13.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
CHANGED
|
@@ -66,10 +66,11 @@
|
|
|
66
66
|
<v-container>
|
|
67
67
|
<draggable
|
|
68
68
|
v-if="mainAnswer.length !== 0"
|
|
69
|
-
class="d-flex flex-wrap flex-row justify-center flex-fill"
|
|
69
|
+
class="d-flex flex-wrap flex-row justify-center flex-fill no-select"
|
|
70
70
|
:list="mainAnswer"
|
|
71
71
|
:disabled="!allow_drag"
|
|
72
72
|
group="people"
|
|
73
|
+
:forceFallback="true"
|
|
73
74
|
:move="onMoveCallback"
|
|
74
75
|
>
|
|
75
76
|
<v-row class="ma-2">
|
|
@@ -607,6 +608,9 @@ export default {
|
|
|
607
608
|
font-size: large;
|
|
608
609
|
color: black;
|
|
609
610
|
}
|
|
611
|
+
.no-select {
|
|
612
|
+
user-select: none;
|
|
613
|
+
}
|
|
610
614
|
.container-nested-answers {
|
|
611
615
|
min-width: 10vw;
|
|
612
616
|
padding-left: 4px;
|
|
@@ -23,10 +23,11 @@
|
|
|
23
23
|
<v-container v-if="render" class="mt-2">
|
|
24
24
|
<draggable
|
|
25
25
|
v-model="input"
|
|
26
|
-
:disabled="
|
|
26
|
+
:disabled="isDisabled"
|
|
27
27
|
class="d-flex flex-column"
|
|
28
28
|
group="cards"
|
|
29
29
|
v-bind="dragOptions"
|
|
30
|
+
:forceFallback="true"
|
|
30
31
|
@change="onDragChange"
|
|
31
32
|
>
|
|
32
33
|
<v-row v-for="index in input.length" :key="'sortable_' + index">
|
|
@@ -86,7 +87,7 @@
|
|
|
86
87
|
<v-container v-if="!render" class="mt-2">
|
|
87
88
|
<draggable
|
|
88
89
|
v-model="block.metadata.config.answer"
|
|
89
|
-
:disabled="
|
|
90
|
+
:disabled="isDisabled"
|
|
90
91
|
class="d-flex flex-column"
|
|
91
92
|
group="cards"
|
|
92
93
|
v-bind="dragOptions"
|
|
@@ -163,7 +164,7 @@ export default {
|
|
|
163
164
|
data() {
|
|
164
165
|
return {
|
|
165
166
|
ticker: '123',
|
|
166
|
-
|
|
167
|
+
isDisabled: false,
|
|
167
168
|
reload: false,
|
|
168
169
|
input: [],
|
|
169
170
|
feedback: 'feedback here',
|
|
@@ -232,7 +233,7 @@ export default {
|
|
|
232
233
|
})
|
|
233
234
|
},
|
|
234
235
|
onReset() {
|
|
235
|
-
this.
|
|
236
|
+
this.isDisabled = false
|
|
236
237
|
this.success = []
|
|
237
238
|
this.fail = []
|
|
238
239
|
this.input = this.shuffle(
|
|
@@ -242,7 +243,7 @@ export default {
|
|
|
242
243
|
this.seed = Math.floor(Math.random() * 100)
|
|
243
244
|
},
|
|
244
245
|
onContinueGame() {
|
|
245
|
-
this.
|
|
246
|
+
this.isDisabled = false
|
|
246
247
|
this.success = []
|
|
247
248
|
this.fail = []
|
|
248
249
|
this.feedback = this.block.metadata.config.feedback_default
|
|
@@ -282,7 +283,7 @@ export default {
|
|
|
282
283
|
},
|
|
283
284
|
onCheckAnswers() {
|
|
284
285
|
const self = this
|
|
285
|
-
this.
|
|
286
|
+
this.isDisabled = true
|
|
286
287
|
|
|
287
288
|
this.input.forEach(function (item, index) {
|
|
288
289
|
if (self.block.metadata.config.answer[index].id === item.id) {
|
|
@@ -313,9 +314,9 @@ export default {
|
|
|
313
314
|
if (this.fail[index - 1]) {
|
|
314
315
|
classValue += 'sortable--error '
|
|
315
316
|
}
|
|
316
|
-
if (this.
|
|
317
|
+
if (this.isDisabled) {
|
|
317
318
|
classValue += 'sortable-default '
|
|
318
|
-
} else if (!this.
|
|
319
|
+
} else if (!this.isDisabled) {
|
|
319
320
|
classValue += 'sortable-grab '
|
|
320
321
|
}
|
|
321
322
|
return classValue
|
package/package.json
CHANGED
package/plugin.js
CHANGED
|
@@ -22,7 +22,8 @@ import CrosswordPuzzle from './components/content/blocks/crosswordPuzzle/Crosswo
|
|
|
22
22
|
import CrosswordPuzzleSettingsManager from './components/settings/CrosswordPuzzleSettingsManager.vue'
|
|
23
23
|
|
|
24
24
|
export default {
|
|
25
|
-
name: '
|
|
25
|
+
name: 'windward.games.name',
|
|
26
|
+
version: null,
|
|
26
27
|
hooks: {
|
|
27
28
|
beforeContent: (body) => {
|
|
28
29
|
return body
|