@windward/games 0.0.10 → 0.1.1

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.
Files changed (80) hide show
  1. package/components/content/CrudTable.vue +2 -2
  2. package/components/content/blocks/crosswordPuzzle/CrosswordClues.vue +4 -2
  3. package/components/content/blocks/crosswordPuzzle/CrosswordPuzzle.vue +14 -12
  4. package/components/content/blocks/dragDrop/BucketGame.vue +14 -15
  5. package/components/content/blocks/dragDrop/SortingGame.vue +4 -4
  6. package/components/content/blocks/flashcards/CardFace.vue +38 -39
  7. package/components/content/blocks/flashcards/Flashcard.vue +109 -28
  8. package/components/content/blocks/flashcards/FlashcardSlides.vue +1 -2
  9. package/components/content/blocks/matchingGame/MatchingGame.vue +15 -14
  10. package/components/content/blocks/multipleChoice/MultipleChoice.vue +186 -225
  11. package/components/content/blocks/multipleChoice/QuestionDialog.vue +7 -7
  12. package/components/content/blocks/quizshowGame/AnswerPanel.vue +9 -9
  13. package/components/content/blocks/quizshowGame/Gridview.vue +20 -24
  14. package/components/content/blocks/quizshowGame/QuizShow.vue +6 -6
  15. package/components/content/blocks/quizshowGame/feedbackIcons.vue +4 -2
  16. package/components/content/blocks/sevenStrikes/SevenStikes.vue +165 -111
  17. package/components/content/blocks/sevenStrikes/keyboard.vue +9 -2
  18. package/components/content/blocks/slideshow/SlideShow.vue +9 -5
  19. package/components/content/blocks/wordJumble/Jumble.vue +0 -2
  20. package/components/content/blocks/wordJumble/WordJumble.vue +121 -60
  21. package/components/settings/BucketGameSettingsManager.vue +20 -20
  22. package/components/settings/CrosswordPuzzleSettingsManager.vue +114 -181
  23. package/components/settings/FlashCardSlidesManager.vue +46 -63
  24. package/components/settings/MatchingGameManager.vue +19 -19
  25. package/components/settings/MultipleChoiceSettingsManager.vue +130 -140
  26. package/components/settings/QuizShowSettingsManager.vue +17 -17
  27. package/components/settings/SevenStrikesSettingsManager.vue +139 -193
  28. package/components/settings/SlideShowManager.vue +17 -9
  29. package/components/settings/SortingGameSettingsManager.vue +11 -11
  30. package/components/settings/WordJumbleSettingsManager.vue +48 -12
  31. package/i18n/en-US/components/content/blocks/flashcard.ts +1 -0
  32. package/i18n/en-US/components/content/blocks/word_jumble.ts +2 -0
  33. package/i18n/en-US/components/settings/bucket_game.ts +3 -2
  34. package/i18n/en-US/components/settings/flashcard.ts +1 -0
  35. package/i18n/en-US/components/settings/seven_strikes.ts +1 -1
  36. package/i18n/en-US/index.ts +2 -1
  37. package/i18n/es-ES/components/content/blocks/flashcard.ts +1 -0
  38. package/i18n/es-ES/components/content/blocks/word_jumble.ts +2 -0
  39. package/i18n/es-ES/components/settings/bucket_game.ts +3 -2
  40. package/i18n/es-ES/components/settings/flashcard.ts +1 -0
  41. package/i18n/es-ES/components/settings/seven_strikes.ts +2 -2
  42. package/i18n/es-ES/index.ts +2 -1
  43. package/i18n/index.ts +11 -0
  44. package/i18n/sv-SE/components/content/blocks/flashcard.ts +1 -0
  45. package/i18n/sv-SE/components/content/blocks/word_jumble.ts +2 -0
  46. package/i18n/sv-SE/components/settings/bucket_game.ts +2 -2
  47. package/i18n/sv-SE/components/settings/flashcard.ts +1 -0
  48. package/i18n/sv-SE/components/settings/seven_strikes.ts +1 -1
  49. package/i18n/sv-SE/index.ts +2 -1
  50. package/package.json +1 -1
  51. package/plugin.js +33 -34
  52. package/test/Feature/LocaleKeys.spec.js +11 -0
  53. package/test/__mocks__/componentsMock.js +12 -0
  54. package/test/__mocks__/fileMock.js +1 -0
  55. package/test/__mocks__/modelMock.js +88 -0
  56. package/test/__mocks__/styleMock.js +1 -0
  57. package/test/blocks/crossword/CrosswordPuzzle.spec.js +1 -1
  58. package/test/blocks/dragDrop/BucketGame.spec.js +1 -1
  59. package/test/blocks/dragDrop/SortingGame.spec.js +1 -1
  60. package/test/blocks/flashcards/CardFace.spec.js +1 -1
  61. package/test/blocks/flashcards/FlashCardSlides.spec.js +1 -1
  62. package/test/blocks/flashcards/Flashcard.spec.js +1 -1
  63. package/test/blocks/matchingGame/MatchingGame.spec.js +1 -1
  64. package/test/blocks/multipleChoice/MultipleChoice.spec.js +1 -1
  65. package/test/blocks/multipleChoice/QuestionDialog.spec.js +1 -1
  66. package/test/blocks/quizShow/quizShow.spec.js +1 -1
  67. package/test/blocks/sevenStrikes/sevenStrikes.spec.js +1 -1
  68. package/test/blocks/slideshow/slideshow.spec.js +1 -1
  69. package/test/blocks/wordJumble/Jumble.spec.js +1 -1
  70. package/test/blocks/wordJumble/WordJumble.spec.js +1 -1
  71. package/test/mocks.js +8 -2
  72. package/test/settings/BucketGameManager.spec.js +4 -4
  73. package/test/settings/CrosswordPuzzleManager.spec.js +6 -11
  74. package/test/settings/FlashCardSlidesManager.spec.js +1 -1
  75. package/test/settings/MatchingGameManager.spec.js +1 -1
  76. package/test/settings/MultipleChoiceGameManager.spec.js +1 -1
  77. package/test/settings/SevenStrikesManager.spec.js +1 -1
  78. package/test/settings/SlideShowManager.spec.js +1 -1
  79. package/test/settings/SortingGameManager.spec.js +1 -1
  80. package/test/settings/WordJumbleManager.spec.js +1 -4
@@ -9,7 +9,7 @@
9
9
  :autofocus="true"
10
10
  :label="
11
11
  $t(
12
- 'plugin.games.components.settings.word_jumble.title_input'
12
+ 'windward.games.components.settings.word_jumble.title_input'
13
13
  )
14
14
  "
15
15
  ref="title"
@@ -20,7 +20,7 @@
20
20
  v-model="block.metadata.config.instructions"
21
21
  :label="
22
22
  $t(
23
- 'plugin.games.components.settings.word_jumble.instructions'
23
+ 'windward.games.components.settings.word_jumble.instructions'
24
24
  )
25
25
  "
26
26
  ></v-textarea>
@@ -30,12 +30,13 @@
30
30
  <p>
31
31
  {{
32
32
  $t(
33
- 'plugin.games.components.settings.word_jumble.word_jumble'
33
+ 'windward.games.components.settings.word_jumble.word_jumble'
34
34
  )
35
35
  }}
36
36
  </p>
37
37
  <SortableExpansionPanel
38
38
  v-model="block.metadata.config.words"
39
+ v-bind:currentPanel.sync="block.metadata.config.currentWord"
39
40
  @click:close="onDelete($event)"
40
41
  >
41
42
  <template #header="{ item, index }">
@@ -43,7 +44,7 @@
43
44
  item.value
44
45
  ? item.value
45
46
  : $t(
46
- 'plugin.games.components.settings.word_jumble.click'
47
+ 'windward.games.components.settings.word_jumble.click'
47
48
  )
48
49
  }}
49
50
  </template>
@@ -53,7 +54,7 @@
53
54
  <p class="p-label">
54
55
  {{
55
56
  $t(
56
- 'plugin.games.components.settings.word_jumble.word_jumble'
57
+ 'windward.games.components.settings.word_jumble.word_jumble'
57
58
  )
58
59
  }}
59
60
  </p>
@@ -69,7 +70,7 @@
69
70
  <p class="p-label">
70
71
  {{
71
72
  $t(
72
- 'plugin.games.components.settings.word_jumble.hint'
73
+ 'windward.games.components.settings.word_jumble.hint'
73
74
  )
74
75
  }}
75
76
  </p>
@@ -90,7 +91,7 @@
90
91
  <v-icon>mdi-plus</v-icon>
91
92
  {{
92
93
  $t(
93
- 'plugin.games.components.settings.word_jumble.add'
94
+ 'windward.games.components.settings.word_jumble.add'
94
95
  )
95
96
  }}
96
97
  </v-btn>
@@ -102,7 +103,7 @@
102
103
  :counter="50"
103
104
  :label="
104
105
  $t(
105
- 'plugin.games.components.settings.word_jumble.feedback_correct'
106
+ 'windward.games.components.settings.word_jumble.feedback_correct'
106
107
  )
107
108
  "
108
109
  ref="title"
@@ -113,7 +114,7 @@
113
114
  v-model="block.metadata.config.feedback_incorrect"
114
115
  :label="
115
116
  $t(
116
- 'plugin.games.components.settings.word_jumble.feedback_incorrect'
117
+ 'windward.games.components.settings.word_jumble.feedback_incorrect'
117
118
  )
118
119
  "
119
120
  ></v-textarea>
@@ -150,9 +151,12 @@ export default {
150
151
  if (_.isEmpty(this.block.metadata.config)) {
151
152
  this.block.metadata.config = {}
152
153
  }
154
+ if (_.isEmpty(this.block.metadata.config.currentWord)) {
155
+ this.block.metadata.config.currentWord = 0
156
+ }
153
157
  if (_.isEmpty(this.block.metadata.config.title)) {
154
158
  this.block.metadata.config.title = this.$t(
155
- 'plugin.games.components.content.blocks.word_jumble.title'
159
+ 'windward.games.components.content.blocks.word_jumble.title'
156
160
  )
157
161
  }
158
162
  if (_.isEmpty(this.block.metadata.config.instructions)) {
@@ -160,12 +164,12 @@ export default {
160
164
  }
161
165
  if (_.isEmpty(this.block.metadata.config.feedback_correct)) {
162
166
  this.block.metadata.config.feedback_correct = this.$t(
163
- 'plugin.games.components.settings.bucket_game.form.feedback.correct_default'
167
+ 'windward.games.components.settings.bucket_game.form.feedback.correct_default'
164
168
  )
165
169
  }
166
170
  if (_.isEmpty(this.block.metadata.config.feedback_incorrect)) {
167
171
  this.block.metadata.config.feedback_incorrect = this.$t(
168
- 'plugin.games.components.settings.bucket_game.form.feedback.incorrect_default'
172
+ 'windward.games.components.settings.bucket_game.form.feedback.incorrect_default'
169
173
  )
170
174
  }
171
175
  if (_.isEmpty(this.block.metadata.config.words)) {
@@ -180,13 +184,43 @@ export default {
180
184
  }
181
185
  },
182
186
  methods: {
187
+ onBeforeSave() {
188
+ this.block.metadata.config.words.forEach((element) => {
189
+ element.shuffledWord = this.shuffle(element.value)
190
+ })
191
+ },
192
+ shuffle(str) {
193
+ var a = str
194
+ var newArr = []
195
+ var neww = ''
196
+ var text = a.replace(/[\r\n]/g, '').split(' ')
197
+
198
+ text.map(function (v) {
199
+ v.split('').map(function () {
200
+ var hash = Math.floor(Math.random() * v.length)
201
+ neww += v[hash]
202
+ v = v.replace(v.charAt(hash), '')
203
+ })
204
+ newArr.push(neww)
205
+ neww = ''
206
+ })
207
+ var x = newArr.map((v) => v.split('').join(' ')).join('\n')
208
+ str = x
209
+ .split('')
210
+ .map((v) => v.toUpperCase())
211
+ .join('')
212
+ return str
213
+ },
183
214
  onAddWord() {
184
215
  let defaultWord = {
185
216
  id: this.block.metadata.config.words.length + 1,
186
217
  value: '',
187
218
  hint: '',
219
+ shuffledWord: '',
188
220
  }
189
221
  this.block.metadata.config.words.push(defaultWord)
222
+ this.block.metadata.config.currentWord =
223
+ this.block.metadata.config.words.length - 1
190
224
  },
191
225
  onDelete(index) {
192
226
  let startingIndex = 0
@@ -195,6 +229,8 @@ export default {
195
229
  startingIndex = startingIndex + 1
196
230
  return (element.id = startingIndex)
197
231
  })
232
+ this.block.metadata.config.currentWord =
233
+ this.block.metadata.config.words.length - 1
198
234
  },
199
235
  },
200
236
  }
@@ -2,6 +2,7 @@ export default {
2
2
  title: 'FlashCards',
3
3
  items: 'FlashCard Items',
4
4
  img_alt: 'card image',
5
+ flip_card: 'Click to flip card',
5
6
  click_to_show_front: 'Click to show Front',
6
7
  click_to_show_back: 'Click to show Back',
7
8
  }
@@ -1,5 +1,7 @@
1
1
  export default {
2
2
  title: 'Word Jumble Game',
3
+ instructions:
4
+ 'Unscramble the clue and type your answer into the empty spaces and select Check Answer.',
3
5
  clue: 'Clue: ',
4
6
  check: 'Check Answer',
5
7
  reveal: 'Reveal Answer',
@@ -10,8 +10,9 @@ export default {
10
10
  default: 'Default feedback',
11
11
  correct: 'feedback when correct',
12
12
  incorrect: 'feedback when incorrect',
13
- correct_default: 'Correct!',
14
- incorrect_default: 'That is incorrect.',
13
+ correct_default: 'That is correct.',
14
+ incorrect_default:
15
+ 'That is incorrect. Try again or select reveal answer.',
15
16
  },
16
17
  image: {
17
18
  title: 'Flash Card Image File',
@@ -1,6 +1,7 @@
1
1
  export default {
2
2
  form: {
3
3
  card: 'Card',
4
+ flip_card: 'Click to flip card',
4
5
  label: 'Card Label',
5
6
  card_content: 'Card Content',
6
7
  front: 'Front',
@@ -4,5 +4,5 @@ export default {
4
4
  'Read the clue below, and click on the letters to spell out the word the clue refers to. If you choose a letter that isnt in the word, an X will be illuminated. When you choose an incorrect letter 7 times, the game is over.Open a text-only version of this vocabulary game in a new windowSkip this vocabulary game',
5
5
  word: 'Word or Phrase',
6
6
  hint: 'Clue',
7
- items: 'Items',
7
+ items: 'Seven Strikes Items',
8
8
  }
@@ -4,8 +4,9 @@ import shared from './shared/index'
4
4
  import modules from './modules/index'
5
5
 
6
6
  export default {
7
- plugin: {
7
+ windward: {
8
8
  games: {
9
+ name: 'Windward Games',
9
10
  pages,
10
11
  components,
11
12
  shared,
@@ -2,6 +2,7 @@ export default {
2
2
  title: 'Tarjetas didácticas',
3
3
  items: 'Elementos de la tarjeta didáctica',
4
4
  img_alt: 'imagen de tarjeta',
5
+ flip_card: 'Haga clic para ver atras',
5
6
  click_to_show_front: 'Haga clic para mostrar el frente',
6
7
  click_to_show_back: 'Haga clic para mostrar Atrás',
7
8
  }
@@ -1,5 +1,7 @@
1
1
  export default {
2
2
  title: 'Juego de palabras revueltas',
3
+ instructions:
4
+ 'Ordena la pista, escribe tu respuesta en los espacios vacíos y selecciona Verificar respuesta.',
3
5
  clue: 'Pista: ',
4
6
  check: 'Comprobar respuesta',
5
7
  reveal: 'Revelar respuesta',
@@ -10,8 +10,9 @@ export default {
10
10
  default: 'Comentarios predeterminados',
11
11
  correct: 'comentarios cuando sea correcto',
12
12
  incorrect: 'comentarios cuando son incorrectos',
13
- correct_default: '¡Correcto!',
14
- incorrect_default: 'Eso es incorrecto.',
13
+ correct_default: 'Eso es correcto.',
14
+ incorrect_default:
15
+ 'Eso no es correcto. Por favor intente de nuevo o seleccione la opcion de revelar la respuesta',
15
16
  },
16
17
  image: {
17
18
  title: 'Archivo de imagen de tarjeta flash',
@@ -1,6 +1,7 @@
1
1
  export default {
2
2
  form: {
3
3
  card: 'Tarjeta',
4
+ flip_card: 'Haga clic para ver atras',
4
5
  label: 'Etiqueta de tarjeta',
5
6
  card_content: 'Contenido de la tarjeta',
6
7
  front: 'Frente',
@@ -1,8 +1,8 @@
1
1
  export default {
2
2
  title: 'Siete golpes',
3
3
  instructions:
4
- 'Lea la pista a continuación y haga clic en las letras para deletrear la palabra a la que se refiere la pista. Si elige una letra que no está en la palabra, se iluminará una X. Cuando eliges una letra incorrecta 7 veces, el juego termina.Abre una versión de solo texto de este juego de vocabulario en una nueva ventanaSalta este juego de vocabulario',
4
+ 'Lea las pistas y haga clic en las letras para deletrear la palabra a la que se refiere. Si elige una letra que no está en la palabra, se iluminará una X. El juego se acaba si elijes una letra incorrecta 7 veces. Puedes tambien elejir la versión del juego en formato accesible.',
5
5
  word: 'Palabra o frase',
6
6
  hint: 'Pista',
7
- items: 'Artículos',
7
+ items: 'Elementos del juego',
8
8
  }
@@ -4,8 +4,9 @@ import shared from './shared/index'
4
4
  import modules from './modules/index'
5
5
 
6
6
  export default {
7
- plugin: {
7
+ windward: {
8
8
  games: {
9
+ name: 'Windward Games',
9
10
  pages,
10
11
  components,
11
12
  shared,
package/i18n/index.ts ADDED
@@ -0,0 +1,11 @@
1
+ import enUS from './en-US'
2
+ import esES from './es-ES'
3
+ import svSE from './sv-SE'
4
+
5
+ export default {
6
+ messages: {
7
+ 'en-US': enUS,
8
+ 'es-ES': esES,
9
+ 'sv-SE': svSE,
10
+ },
11
+ }
@@ -2,6 +2,7 @@ export default {
2
2
  title: 'Flashcards',
3
3
  items: 'Flashcard objekt',
4
4
  img_alt: 'kortbild',
5
+ flip_card: 'Klicka för att vända kortet',
5
6
  click_to_show_front: 'Klicka för att visa fronten',
6
7
  click_to_show_back: 'Klicka för att visa tillbaka',
7
8
  }
@@ -1,5 +1,7 @@
1
1
  export default {
2
2
  title: 'Word Jumble Game',
3
+ instructions:
4
+ 'Avkoda ledtråden och skriv ditt svar i de tomma utrymmena och välj Kontrollera svar.',
3
5
  clue: ' Ledtråd: ',
4
6
  check: 'Kontrollera svar',
5
7
  reveal: 'Avslöja svar',
@@ -9,8 +9,8 @@ export default {
9
9
  feedback: 'Feedback',
10
10
  default: 'Default feedback',
11
11
  correct: 'feedback när korrekt',
12
- incorrect: 'feedback when incorrect',
13
- correct_default: 'Korrekt!',
12
+ incorrect: 'Det är felaktigt. Försök igen eller välj avslöja svar.',
13
+ correct_default: 'Det är korrekt.',
14
14
  incorrect_default: 'Det är felaktigt.',
15
15
  },
16
16
  image: {
@@ -1,6 +1,7 @@
1
1
  export default {
2
2
  form: {
3
3
  card: 'Kort',
4
+ flip_card: 'Klicka för att vända kortet',
4
5
  label: 'Kortetikett',
5
6
  card_content: 'Kortinnehåll',
6
7
  front: 'Front',
@@ -4,5 +4,5 @@ export default {
4
4
  'Läs ledtråden nedan och klicka på bokstäverna för att stava ordet ledtråden refererar till. Om du väljer en bokstav som inte finns i ordet kommer ett X att lysa. När du väljer en felaktig bokstav 7 gånger är spelet över.Öppna en textversion av detta ordförrådsspel i ett nytt fönsterHoppa över detta ordförrådsspel',
5
5
  word: 'Ord eller fras',
6
6
  hint: 'Clue',
7
- items: 'Artiklar',
7
+ items: 'Sju Strejker Artiklar',
8
8
  }
@@ -4,8 +4,9 @@ import shared from './shared/index'
4
4
  import modules from './modules/index'
5
5
 
6
6
  export default {
7
- plugin: {
7
+ windward: {
8
8
  games: {
9
+ name: 'Windward Games',
9
10
  pages,
10
11
  components,
11
12
  shared,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windward/games",
3
- "version": "0.0.10",
3
+ "version": "0.1.1",
4
4
  "description": "Windward UI Plugin Games",
5
5
  "main": "plugin.js",
6
6
  "scripts": {
package/plugin.js CHANGED
@@ -1,4 +1,5 @@
1
- import enUS from './i18n/en-US'
1
+ import locales from './i18n'
2
+
2
3
  import flashcards from './components/content/blocks/flashcards/FlashcardSlides'
3
4
  import slideShow from './components/content/blocks/slideshow/SlideShow.vue'
4
5
  import WordJumble from './components/content/blocks/wordJumble/WordJumble'
@@ -32,9 +33,7 @@ export default {
32
33
  onLoad: (page) => {},
33
34
  onContent: () => {},
34
35
  },
35
- i18n: {
36
- 'en-US': enUS,
37
- },
36
+ i18n: locales.messages,
38
37
  components: {
39
38
  contentBlock: [
40
39
  {
@@ -42,9 +41,9 @@ export default {
42
41
  template: flashcards,
43
42
  metadata: {
44
43
  icon: 'mdi-cards-variant',
45
- name: 'plugin.games.shared.content_blocks.title.flashcards',
44
+ name: 'windward.games.shared.content_blocks.title.flashcards',
46
45
  grouping:
47
- 'plugin.games.shared.content_blocks.grouping.game',
46
+ 'windward.games.shared.content_blocks.grouping.game',
48
47
  },
49
48
  },
50
49
  {
@@ -52,9 +51,9 @@ export default {
52
51
  template: SortingGame,
53
52
  metadata: {
54
53
  icon: 'mdi-sort',
55
- name: 'plugin.games.shared.content_blocks.title.sort',
54
+ name: 'windward.games.shared.content_blocks.title.sort',
56
55
  grouping:
57
- 'plugin.games.shared.content_blocks.grouping.game',
56
+ 'windward.games.shared.content_blocks.grouping.game',
58
57
  },
59
58
  },
60
59
  {
@@ -62,9 +61,9 @@ export default {
62
61
  template: BucketGame,
63
62
  metadata: {
64
63
  icon: 'mdi-bucket-outline',
65
- name: 'plugin.games.shared.content_blocks.title.bucket',
64
+ name: 'windward.games.shared.content_blocks.title.bucket',
66
65
  grouping:
67
- 'plugin.games.shared.content_blocks.grouping.game',
66
+ 'windward.games.shared.content_blocks.grouping.game',
68
67
  },
69
68
  },
70
69
  {
@@ -72,9 +71,9 @@ export default {
72
71
  template: slideShow,
73
72
  metadata: {
74
73
  icon: 'mdi-view-gallery',
75
- name: 'plugin.games.shared.content_blocks.title.slideshow',
74
+ name: 'windward.games.shared.content_blocks.title.slideshow',
76
75
  grouping:
77
- 'plugin.games.shared.content_blocks.grouping.multimedia',
76
+ 'windward.games.shared.content_blocks.grouping.multimedia',
78
77
  },
79
78
  },
80
79
  {
@@ -82,9 +81,9 @@ export default {
82
81
  template: MatchingGame,
83
82
  metadata: {
84
83
  icon: 'mdi-image-filter-none',
85
- name: 'plugin.games.shared.content_blocks.title.matching_game',
84
+ name: 'windward.games.shared.content_blocks.title.matching_game',
86
85
  grouping:
87
- 'plugin.games.shared.content_blocks.grouping.game',
86
+ 'windward.games.shared.content_blocks.grouping.game',
88
87
  },
89
88
  },
90
89
  {
@@ -92,9 +91,9 @@ export default {
92
91
  template: quizShow,
93
92
  metadata: {
94
93
  icon: 'mdi-head-question-outline',
95
- name: 'plugin.games.shared.content_blocks.title.quizshow',
94
+ name: 'windward.games.shared.content_blocks.title.quizshow',
96
95
  grouping:
97
- 'plugin.games.shared.content_blocks.grouping.game',
96
+ 'windward.games.shared.content_blocks.grouping.game',
98
97
  },
99
98
  },
100
99
  {
@@ -102,9 +101,9 @@ export default {
102
101
  template: MultipleChoice,
103
102
  metadata: {
104
103
  icon: 'mdi-head-question-outline',
105
- name: 'plugin.games.shared.content_blocks.title.multiple_choice',
104
+ name: 'windward.games.shared.content_blocks.title.multiple_choice',
106
105
  grouping:
107
- 'plugin.games.shared.content_blocks.grouping.game',
106
+ 'windward.games.shared.content_blocks.grouping.game',
108
107
  },
109
108
  },
110
109
  {
@@ -112,9 +111,9 @@ export default {
112
111
  template: WordJumble,
113
112
  metadata: {
114
113
  icon: 'mdi-ab-testing',
115
- name: 'plugin.games.shared.content_blocks.title.word_jumble',
114
+ name: 'windward.games.shared.content_blocks.title.word_jumble',
116
115
  grouping:
117
- 'plugin.games.shared.content_blocks.grouping.game',
116
+ 'windward.games.shared.content_blocks.grouping.game',
118
117
  },
119
118
  },
120
119
  {
@@ -122,9 +121,9 @@ export default {
122
121
  template: SevenStrikes,
123
122
  metadata: {
124
123
  icon: 'mdi-ab-testing',
125
- name: 'plugin.games.shared.content_blocks.title.seven_strikes',
124
+ name: 'windward.games.shared.content_blocks.title.seven_strikes',
126
125
  grouping:
127
- 'plugin.games.shared.content_blocks.grouping.game',
126
+ 'windward.games.shared.content_blocks.grouping.game',
128
127
  },
129
128
  },
130
129
  {
@@ -132,9 +131,9 @@ export default {
132
131
  template: CrosswordPuzzle,
133
132
  metadata: {
134
133
  icon: 'mdi-alpha-c-box-outline',
135
- name: 'plugin.games.shared.content_blocks.title.crossword_puzzle',
134
+ name: 'windward.games.shared.content_blocks.title.crossword_puzzle',
136
135
  grouping:
137
- 'plugin.games.shared.content_blocks.grouping.game',
136
+ 'windward.games.shared.content_blocks.grouping.game',
138
137
  },
139
138
  },
140
139
  ],
@@ -145,7 +144,7 @@ export default {
145
144
  context: ['block.games-flash-card'],
146
145
  metadata: {
147
146
  icon: 'mdi-cog',
148
- name: 'plugin.games.shared.settings.title.card_manager',
147
+ name: 'windward.games.shared.settings.title.card_manager',
149
148
  },
150
149
  },
151
150
  {
@@ -154,7 +153,7 @@ export default {
154
153
  context: ['block.games-bucket'],
155
154
  metadata: {
156
155
  icon: 'mdi-cog',
157
- name: 'plugin.games.shared.settings.title.bucket_manager',
156
+ name: 'windward.games.shared.settings.title.bucket_manager',
158
157
  },
159
158
  },
160
159
  {
@@ -163,7 +162,7 @@ export default {
163
162
  context: ['block.games-sorting'],
164
163
  metadata: {
165
164
  icon: 'mdi-cog',
166
- name: 'plugin.games.shared.settings.title.sorting_manager',
165
+ name: 'windward.games.shared.settings.title.sorting_manager',
167
166
  },
168
167
  },
169
168
  {
@@ -172,7 +171,7 @@ export default {
172
171
  context: ['block.games-slideshow'],
173
172
  metadata: {
174
173
  icon: 'mdi-cog',
175
- name: 'plugin.games.shared.settings.title.slideshow_manager',
174
+ name: 'windward.games.shared.settings.title.slideshow_manager',
176
175
  },
177
176
  },
178
177
  {
@@ -181,7 +180,7 @@ export default {
181
180
  context: ['block.games-matching-game'],
182
181
  metadata: {
183
182
  icon: 'mdi-cog',
184
- name: 'plugin.games.shared.settings.title.matching_game_manager',
183
+ name: 'windward.games.shared.settings.title.matching_game_manager',
185
184
  },
186
185
  },
187
186
  {
@@ -190,7 +189,7 @@ export default {
190
189
  context: ['block.games-quizshow-game'],
191
190
  metadata: {
192
191
  icon: 'mdi-cog',
193
- name: 'plugin.games.shared.settings.title.quizshow_manager',
192
+ name: 'windward.games.shared.settings.title.quizshow_manager',
194
193
  },
195
194
  },
196
195
  {
@@ -199,7 +198,7 @@ export default {
199
198
  context: ['block.games-multiple-choice'],
200
199
  metadata: {
201
200
  icon: 'mdi-cog',
202
- name: 'plugin.games.shared.settings.title.multiple_choice_manager',
201
+ name: 'windward.games.shared.settings.title.multiple_choice_manager',
203
202
  },
204
203
  },
205
204
  {
@@ -208,7 +207,7 @@ export default {
208
207
  context: ['block.games-wordjumble-game'],
209
208
  metadata: {
210
209
  icon: 'mdi-cog',
211
- name: 'plugin.games.shared.settings.title.wordjumble_manager',
210
+ name: 'windward.games.shared.settings.title.wordjumble_manager',
212
211
  },
213
212
  },
214
213
  {
@@ -217,7 +216,7 @@ export default {
217
216
  context: ['block.games-seven-strikes-game'],
218
217
  metadata: {
219
218
  icon: 'mdi-cog',
220
- name: 'plugin.games.shared.settings.title.seven_strikes_manager',
219
+ name: 'windward.games.shared.settings.title.seven_strikes_manager',
221
220
  },
222
221
  },
223
222
  {
@@ -226,7 +225,7 @@ export default {
226
225
  context: ['block.games-crossword-puzzle-game'],
227
226
  metadata: {
228
227
  icon: 'mdi-cog',
229
- name: 'plugin.games.shared.settings.title.crossword_puzzle_manager',
228
+ name: 'windward.games.shared.settings.title.crossword_puzzle_manager',
230
229
  },
231
230
  },
232
231
  ],
@@ -0,0 +1,11 @@
1
+ import _ from 'lodash'
2
+ import locales from '../../i18n'
3
+ import localeTest from '@windward/core/test/locales'
4
+
5
+ describe('LocaleKeys', () => {
6
+ test('Confirm that all localizations are equal aka not missing keys between them', () => {
7
+ const messages = locales.messages
8
+ //console.log('here it is', messages)
9
+ localeTest.test(messages)
10
+ })
11
+ })
@@ -0,0 +1,12 @@
1
+ // TODO find better way for jest to recognize utils imports
2
+ jest.mock(
3
+ '~/components/SortableExpansionPanel.vue',
4
+ () => {
5
+ return {
6
+ data() {
7
+ return {}
8
+ },
9
+ }
10
+ },
11
+ { virtual: true }
12
+ )
@@ -0,0 +1 @@
1
+ module.exports = 'test-file-stub'