@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.
@@ -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,41 @@
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 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="secondary"
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="secondary"
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 'secondary'
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
- <h3>
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
- </h3>
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 = []