@windward/games 0.0.9 → 0.1.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.
Files changed (137) 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 +54 -101
  5. package/components/content/blocks/dragDrop/SortingGame.vue +47 -33
  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 +3 -2
  9. package/components/content/blocks/matchingGame/MatchingGame.vue +105 -61
  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 +31 -24
  13. package/components/content/blocks/quizshowGame/Gridview.vue +20 -24
  14. package/components/content/blocks/quizshowGame/QuizShow.vue +22 -9
  15. package/components/content/blocks/quizshowGame/feedbackIcons.vue +4 -2
  16. package/components/content/blocks/sevenStrikes/SevenStikes.vue +153 -108
  17. package/components/content/blocks/sevenStrikes/keyboard.vue +9 -2
  18. package/components/content/blocks/slideshow/SlideShow.vue +5 -3
  19. package/components/content/blocks/wordJumble/Jumble.vue +4 -4
  20. package/components/content/blocks/wordJumble/WordJumble.vue +128 -62
  21. package/components/settings/BucketGameSettingsManager.vue +185 -359
  22. package/components/settings/CrosswordPuzzleSettingsManager.vue +114 -181
  23. package/components/settings/FlashCardSlidesManager.vue +323 -419
  24. package/components/settings/MatchingGameManager.vue +357 -618
  25. package/components/settings/MultipleChoiceSettingsManager.vue +130 -140
  26. package/components/settings/QuizShowSettingsManager.vue +17 -17
  27. package/components/settings/SevenStrikesSettingsManager.vue +131 -193
  28. package/components/settings/SlideShowManager.vue +91 -129
  29. package/components/settings/SortingGameSettingsManager.vue +41 -153
  30. package/components/settings/WordJumbleSettingsManager.vue +84 -150
  31. package/i18n/en-US/components/content/blocks/bucket_game.ts +1 -0
  32. package/i18n/en-US/components/content/blocks/flashcard.ts +3 -0
  33. package/i18n/en-US/components/content/blocks/word_jumble.ts +2 -0
  34. package/i18n/en-US/components/settings/bucket_game.ts +3 -2
  35. package/i18n/en-US/components/settings/flashcard.ts +1 -0
  36. package/i18n/en-US/components/settings/matching_game.ts +1 -1
  37. package/i18n/en-US/components/settings/quizshow_game.ts +1 -1
  38. package/i18n/en-US/components/settings/seven_strikes.ts +1 -1
  39. package/i18n/en-US/components/settings/slideshow.ts +2 -0
  40. package/i18n/en-US/index.ts +2 -1
  41. package/i18n/es-ES/components/content/blocks/bucket_game.ts +40 -0
  42. package/i18n/es-ES/components/content/blocks/crossword.ts +25 -0
  43. package/i18n/es-ES/components/content/blocks/flashcard.ts +8 -0
  44. package/i18n/es-ES/components/content/blocks/index.ts +23 -0
  45. package/i18n/es-ES/components/content/blocks/matching_game.ts +26 -0
  46. package/i18n/es-ES/components/content/blocks/multiple_choice.ts +9 -0
  47. package/i18n/es-ES/components/content/blocks/quizshow_game.ts +35 -0
  48. package/i18n/es-ES/components/content/blocks/seven_strikes.ts +6 -0
  49. package/i18n/es-ES/components/content/blocks/slideshow.ts +13 -0
  50. package/i18n/es-ES/components/content/blocks/sorting_game.ts +5 -0
  51. package/i18n/es-ES/components/content/blocks/word_jumble.ts +11 -0
  52. package/i18n/es-ES/components/content/crud_table.ts +6 -0
  53. package/i18n/es-ES/components/content/index.ts +7 -0
  54. package/i18n/es-ES/components/index.ts +9 -0
  55. package/i18n/es-ES/components/navigation/index.ts +5 -0
  56. package/i18n/es-ES/components/settings/bucket_game.ts +39 -0
  57. package/i18n/es-ES/components/settings/crossword.ts +7 -0
  58. package/i18n/es-ES/components/settings/flashcard.ts +29 -0
  59. package/i18n/es-ES/components/settings/index.ts +23 -0
  60. package/i18n/es-ES/components/settings/matching_game.ts +15 -0
  61. package/i18n/es-ES/components/settings/multiple_choice.ts +17 -0
  62. package/i18n/es-ES/components/settings/quizshow_game.ts +20 -0
  63. package/i18n/es-ES/components/settings/seven_strikes.ts +8 -0
  64. package/i18n/es-ES/components/settings/slideshow.ts +13 -0
  65. package/i18n/es-ES/components/settings/sorting_game.ts +5 -0
  66. package/i18n/es-ES/components/settings/word_jumble.ts +11 -0
  67. package/i18n/es-ES/index.ts +16 -0
  68. package/i18n/es-ES/modules/index.ts +5 -0
  69. package/i18n/es-ES/pages/index.ts +5 -0
  70. package/i18n/es-ES/shared/content_blocks.ts +18 -0
  71. package/i18n/es-ES/shared/index.ts +7 -0
  72. package/i18n/es-ES/shared/settings.ts +14 -0
  73. package/i18n/index.ts +11 -0
  74. package/i18n/sv-SE/components/content/blocks/bucket_game.ts +40 -0
  75. package/i18n/sv-SE/components/content/blocks/crossword.ts +20 -0
  76. package/i18n/sv-SE/components/content/blocks/flashcard.ts +8 -0
  77. package/i18n/sv-SE/components/content/blocks/index.ts +23 -0
  78. package/i18n/sv-SE/components/content/blocks/matching_game.ts +25 -0
  79. package/i18n/sv-SE/components/content/blocks/multiple_choice.ts +9 -0
  80. package/i18n/sv-SE/components/content/blocks/quizshow_game.ts +35 -0
  81. package/i18n/sv-SE/components/content/blocks/seven_strikes.ts +6 -0
  82. package/i18n/sv-SE/components/content/blocks/slideshow.ts +13 -0
  83. package/i18n/sv-SE/components/content/blocks/sorting_game.ts +5 -0
  84. package/i18n/sv-SE/components/content/blocks/word_jumble.ts +11 -0
  85. package/i18n/sv-SE/components/content/crud_table.ts +6 -0
  86. package/i18n/sv-SE/components/content/index.ts +7 -0
  87. package/i18n/sv-SE/components/index.ts +9 -0
  88. package/i18n/sv-SE/components/navigation/index.ts +5 -0
  89. package/i18n/sv-SE/components/settings/bucket_game.ts +38 -0
  90. package/i18n/sv-SE/components/settings/crossword.ts +7 -0
  91. package/i18n/sv-SE/components/settings/flashcard.ts +29 -0
  92. package/i18n/sv-SE/components/settings/index.ts +23 -0
  93. package/i18n/sv-SE/components/settings/matching_game.ts +15 -0
  94. package/i18n/sv-SE/components/settings/multiple_choice.ts +16 -0
  95. package/i18n/sv-SE/components/settings/quizshow_game.ts +20 -0
  96. package/i18n/sv-SE/components/settings/seven_strikes.ts +8 -0
  97. package/i18n/sv-SE/components/settings/slideshow.ts +13 -0
  98. package/i18n/sv-SE/components/settings/sorting_game.ts +5 -0
  99. package/i18n/sv-SE/components/settings/word_jumble.ts +11 -0
  100. package/i18n/sv-SE/index.ts +16 -0
  101. package/i18n/sv-SE/modules/index.ts +5 -0
  102. package/i18n/sv-SE/pages/index.ts +5 -0
  103. package/i18n/sv-SE/shared/content_blocks.ts +18 -0
  104. package/i18n/sv-SE/shared/index.ts +7 -0
  105. package/i18n/sv-SE/shared/settings.ts +14 -0
  106. package/package.json +1 -1
  107. package/plugin.js +33 -34
  108. package/test/Feature/LocaleKeys.spec.js +11 -0
  109. package/test/__mocks__/componentsMock.js +12 -0
  110. package/test/__mocks__/fileMock.js +1 -0
  111. package/test/__mocks__/modelMock.js +88 -0
  112. package/test/__mocks__/styleMock.js +1 -0
  113. package/test/blocks/crossword/CrosswordPuzzle.spec.js +1 -1
  114. package/test/blocks/dragDrop/BucketGame.spec.js +1 -1
  115. package/test/blocks/dragDrop/SortingGame.spec.js +1 -1
  116. package/test/blocks/flashcards/CardFace.spec.js +1 -1
  117. package/test/blocks/flashcards/FlashCardSlides.spec.js +1 -1
  118. package/test/blocks/flashcards/Flashcard.spec.js +1 -1
  119. package/test/blocks/matchingGame/MatchingGame.spec.js +1 -1
  120. package/test/blocks/multipleChoice/MultipleChoice.spec.js +1 -1
  121. package/test/blocks/multipleChoice/QuestionDialog.spec.js +1 -1
  122. package/test/blocks/quizShow/quizShow.spec.js +1 -1
  123. package/test/blocks/sevenStrikes/sevenStrikes.spec.js +1 -1
  124. package/test/blocks/slideshow/slideshow.spec.js +1 -1
  125. package/test/blocks/wordJumble/Jumble.spec.js +1 -1
  126. package/test/blocks/wordJumble/WordJumble.spec.js +1 -1
  127. package/test/mocks.js +8 -2
  128. package/test/settings/BucketGameManager.spec.js +4 -4
  129. package/test/settings/CrosswordPuzzleManager.spec.js +6 -11
  130. package/test/settings/FlashCardSlidesManager.spec.js +1 -1
  131. package/test/settings/MatchingGameManager.spec.js +1 -1
  132. package/test/settings/MultipleChoiceGameManager.spec.js +1 -1
  133. package/test/settings/SevenStrikesManager.spec.js +1 -1
  134. package/test/settings/SlideShowManager.spec.js +1 -1
  135. package/test/settings/SortingGameManager.spec.js +1 -1
  136. package/test/settings/WordJumbleManager.spec.js +1 -4
  137. package/i18n/en-US.ts +0 -5
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'
@@ -0,0 +1,88 @@
1
+ import { Model as mockModel } from 'vue-api-query'
2
+
3
+ import axios from 'axios'
4
+ jest.mock('axios')
5
+ mockModel.$http = axios
6
+
7
+ jest.mock('axios')
8
+
9
+ // Define any new model mocks here. The imports / mocks will be auto-generated below
10
+ const mockVirtualModels = [
11
+ {
12
+ path: '~/models/UserContentBlockState',
13
+ resource: 'user-content-block-state',
14
+ },
15
+ ]
16
+
17
+ const mockModels = []
18
+
19
+ // DO NOT ALTER THE BELOW CODE
20
+ jest.mock('', () => {
21
+ return {
22
+ __esModule: true,
23
+ default: class Model {},
24
+ }
25
+ })
26
+ class mockBaseModel extends mockModel {
27
+ baseURL() {
28
+ return 'http://windwardapi.local'
29
+ }
30
+
31
+ request(_config) {
32
+ return new Promise((resolve) => {
33
+ resolve({ data: {} })
34
+ })
35
+ }
36
+ }
37
+
38
+ jest.mock(
39
+ '~/models/Model',
40
+ () => {
41
+ return {
42
+ __esModule: true,
43
+ default: class Model extends mockBaseModel {},
44
+ }
45
+ },
46
+ { virtual: true }
47
+ )
48
+
49
+ for (let mockI = 0; mockI < mockVirtualModels.length; mockI++) {
50
+ jest.mock(
51
+ mockVirtualModels[mockI].path,
52
+ () => {
53
+ return {
54
+ __esModule: true,
55
+ default: class Model extends mockBaseModel {
56
+ resource() {
57
+ return (
58
+ mockVirtualModels[mockI].resource ||
59
+ this.constructor.name
60
+ )
61
+ }
62
+ },
63
+ }
64
+ },
65
+ { virtual: true }
66
+ )
67
+ }
68
+
69
+ for (let mockJ = 0; mockJ < mockModels.length; mockJ++) {
70
+ jest.mock(mockModels[mockJ].path, () => {
71
+ return {
72
+ __esModule: true,
73
+ default: class Model extends mockBaseModel {
74
+ resource() {
75
+ return mockModels[mockJ].resource || this.constructor.name
76
+ }
77
+
78
+ integrations() {
79
+ return this
80
+ }
81
+
82
+ get() {
83
+ return []
84
+ }
85
+ },
86
+ }
87
+ })
88
+ }
@@ -0,0 +1 @@
1
+ module.exports = {}
@@ -1,5 +1,5 @@
1
1
  import { shallowMount } from '@vue/test-utils'
2
- import { defaultMocks } from '@windward/core/test/mocks'
2
+ import { defaultMocks } from '@/test/mocks'
3
3
  import CrosswordPuzzle from '@/components/content/blocks/crosswordPuzzle/CrosswordPuzzle'
4
4
 
5
5
  import Vuetify from 'vuetify'
@@ -1,5 +1,5 @@
1
1
  import { mount, shallowMount } from '@vue/test-utils'
2
- import { defaultMocks } from '@windward/core/test/mocks'
2
+ import { defaultMocks } from '@/test/mocks'
3
3
  import BucketGame from '@/components/content/blocks/dragDrop/BucketGame'
4
4
 
5
5
  import Vue from 'vue'
@@ -1,5 +1,5 @@
1
1
  import { mount, shallowMount } from '@vue/test-utils'
2
- import { defaultMocks } from '@windward/core/test/mocks'
2
+ import { defaultMocks } from '@/test/mocks'
3
3
  import SortingGame from '@/components/content/blocks/dragDrop/SortingGame'
4
4
 
5
5
  import Vuetify from 'vuetify'
@@ -1,5 +1,5 @@
1
1
  import { mount, shallowMount } from '@vue/test-utils'
2
- import { defaultMocks } from '@windward/core/test/mocks'
2
+ import { defaultMocks } from '@/test/mocks'
3
3
  import CardFace from '@/components/content/blocks/flashcards/CardFace'
4
4
 
5
5
  import Vuetify from 'vuetify'
@@ -1,5 +1,5 @@
1
1
  import { mount, shallowMount } from '@vue/test-utils'
2
- import { defaultMocks } from '@windward/core/test/mocks'
2
+ import { defaultMocks } from '@/test/mocks'
3
3
  import FlashcardSlides from '@/components/content/blocks/flashcards/FlashcardSlides'
4
4
 
5
5
  import Vuetify from 'vuetify'
@@ -1,5 +1,5 @@
1
1
  import { mount, shallowMount } from '@vue/test-utils'
2
- import { defaultMocks } from '@windward/core/test/mocks'
2
+ import { defaultMocks } from '@/test/mocks'
3
3
  import Flashcard from '@/components/content/blocks/flashcards/Flashcard'
4
4
 
5
5
  import Vuetify from 'vuetify'
@@ -1,4 +1,4 @@
1
- import { defaultMocks } from '@windward/core/test/mocks'
1
+ import { defaultMocks } from '@/test/mocks'
2
2
  import MatchingGame from '@/components/content/blocks/matchingGame/MatchingGame.vue'
3
3
  import { shallowMount } from '@vue/test-utils'
4
4
 
@@ -1,4 +1,4 @@
1
- import { defaultMocks } from '@windward/core/test/mocks'
1
+ import { defaultMocks } from '@/test/mocks'
2
2
  import MultipleChoice from '@/components/content/blocks/multipleChoice/MultipleChoice.vue'
3
3
  import { shallowMount } from '@vue/test-utils'
4
4
 
@@ -1,4 +1,4 @@
1
- import { defaultMocks } from '@windward/core/test/mocks'
1
+ import { defaultMocks } from '@/test/mocks'
2
2
  import QuestionDialog from '@/components/content/blocks/multipleChoice/QuestionDialog.vue'
3
3
  import { shallowMount } from '@vue/test-utils'
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { mount, shallowMount } from '@vue/test-utils'
2
- import { defaultMocks } from '@windward/core/test/mocks'
2
+ import { defaultMocks } from '@/test/mocks'
3
3
  import QuizShow from '@/components/content/blocks/quizshowGame/QuizShow'
4
4
 
5
5
  import Vuetify from 'vuetify'
@@ -1,5 +1,5 @@
1
1
  import { shallowMount } from '@vue/test-utils'
2
- import { defaultMocks } from '@windward/core/test/mocks'
2
+ import { defaultMocks } from '@/test/mocks'
3
3
  import SevenStrikes from '@/components/content/blocks/sevenStrikes/SevenStikes'
4
4
 
5
5
  import Vuetify from 'vuetify'
@@ -1,5 +1,5 @@
1
1
  import { shallowMount } from '@vue/test-utils'
2
- import { defaultMocks } from '@windward/core/test/mocks'
2
+ import { defaultMocks } from '@/test/mocks'
3
3
  import SlideShow from '@/components/content/blocks/slideshow/SlideShow'
4
4
 
5
5
  import Vuetify from 'vuetify'
@@ -1,5 +1,5 @@
1
1
  import { shallowMount } from '@vue/test-utils'
2
- import { defaultMocks } from '@windward/core/test/mocks'
2
+ import { defaultMocks } from '@/test/mocks'
3
3
  import Jumble from '@/components/content/blocks/wordJumble/Jumble'
4
4
 
5
5
  import Vuetify from 'vuetify'
@@ -1,5 +1,5 @@
1
1
  import { shallowMount } from '@vue/test-utils'
2
- import { defaultMocks } from '@windward/core/test/mocks'
2
+ import { defaultMocks } from '@/test/mocks'
3
3
  import WordJumble from '@/components/content/blocks/wordJumble/WordJumble'
4
4
 
5
5
  import Vuetify from 'vuetify'
package/test/mocks.js CHANGED
@@ -1,2 +1,8 @@
1
- import mocks from '@windward/core/test/mocks'
2
- export const defaultMocks = mocks
1
+ import { defaultMocks as coreMocks } from '@windward/core/test/mocks'
2
+
3
+ require('./__mocks__/fileMock')
4
+ require('./__mocks__/styleMock')
5
+ require('./__mocks__/modelMock')
6
+ require('./__mocks__/componentsMock')
7
+
8
+ export const defaultMocks = coreMocks
@@ -1,5 +1,5 @@
1
1
  import { shallowMount } from '@vue/test-utils'
2
- import { defaultMocks } from '@windward/core/test/mocks'
2
+ import { defaultMocks } from '@/test/mocks'
3
3
  import BucketGameSettingsManager from '@/components/settings/BucketGameSettingsManager'
4
4
 
5
5
  import Vuetify from 'vuetify'
@@ -47,8 +47,8 @@ describe('Bucket game manager', () => {
47
47
  })
48
48
  wrapper.vm.onAddBucket()
49
49
  expect(wrapper.vm.block.metadata.config.bucket_titles).toEqual([
50
- { title: '', color: '', expand: false },
51
- { title: '', color: '', expand: true },
50
+ { title: '', color: '#eceff1', expand: false },
51
+ { title: '', color: '#eceff1', expand: true },
52
52
  ])
53
53
  })
54
54
 
@@ -99,7 +99,7 @@ describe('Bucket game manager', () => {
99
99
  })
100
100
  wrapper.vm.onConfirmDeleteBucket(0)
101
101
  expect(wrapper.vm.block.metadata.config.bucket_titles).toEqual([
102
- { title: '', color: '', expand: true },
102
+ { title: '', color: '#eceff1', expand: true },
103
103
  ])
104
104
  })
105
105
 
@@ -1,5 +1,5 @@
1
1
  import { shallowMount } from '@vue/test-utils'
2
- import { defaultMocks } from '@windward/core/test/mocks'
2
+ import { defaultMocks } from '@/test/mocks'
3
3
  import CrosswordPuzzleSettingsManager from '@/components/settings/CrosswordPuzzleSettingsManager'
4
4
 
5
5
  import Vuetify from 'vuetify'
@@ -50,20 +50,17 @@ describe('Crossword game manager', () => {
50
50
  {
51
51
  id: 0,
52
52
  word: '',
53
- description: '',
54
- expand: false,
53
+ clue: '',
55
54
  },
56
55
  {
57
56
  id: 1,
58
57
  word: '',
59
- description: '',
60
- expand: false,
58
+ clue: '',
61
59
  },
62
60
  {
63
61
  id: 2,
64
62
  word: '',
65
- description: '',
66
- expand: true,
63
+ clue: '',
67
64
  },
68
65
  ])
69
66
  })
@@ -89,14 +86,12 @@ describe('Crossword game manager', () => {
89
86
  {
90
87
  id: 0,
91
88
  word: '',
92
- description: '',
93
- expand: false,
89
+ clue: '',
94
90
  },
95
91
  {
96
92
  id: 1,
97
93
  word: '',
98
- description: '',
99
- expand: true,
94
+ clue: '',
100
95
  },
101
96
  ])
102
97
  })
@@ -1,5 +1,5 @@
1
1
  import { shallowMount } from '@vue/test-utils'
2
- import { defaultMocks } from '@windward/core/test/mocks'
2
+ import { defaultMocks } from '@/test/mocks'
3
3
  import FlashCardSlidesManager from '@/components/settings/FlashCardSlidesManager'
4
4
 
5
5
  import Vuetify from 'vuetify'
@@ -1,5 +1,5 @@
1
1
  import { mount, shallowMount } from '@vue/test-utils'
2
- import { defaultMocks } from '@windward/core/test/mocks'
2
+ import { defaultMocks } from '@/test/mocks'
3
3
  import MatchingGameManager from '@/components/settings/MatchingGameManager'
4
4
  import Vuetify from 'vuetify'
5
5
  import Vue from 'vue'
@@ -1,5 +1,5 @@
1
1
  import { mount, shallowMount } from '@vue/test-utils'
2
- import { defaultMocks } from '@windward/core/test/mocks'
2
+ import { defaultMocks } from '@/test/mocks'
3
3
  import MultipleChoiceSettingsManager from '@/components/settings/MultipleChoiceSettingsManager'
4
4
  import Vuetify from 'vuetify'
5
5
  import Vue from 'vue'
@@ -1,5 +1,5 @@
1
1
  import { shallowMount } from '@vue/test-utils'
2
- import { defaultMocks } from '@windward/core/test/mocks'
2
+ import { defaultMocks } from '@/test/mocks'
3
3
  import SevenStrikesSettingsManager from '@/components/settings/SevenStrikesSettingsManager'
4
4
 
5
5
  import Vuetify from 'vuetify'
@@ -1,5 +1,5 @@
1
1
  import { mount, shallowMount } from '@vue/test-utils'
2
- import { defaultMocks } from '@windward/core/test/mocks'
2
+ import { defaultMocks } from '@/test/mocks'
3
3
  import SlideShowManager from '@/components/settings/SlideShowManager'
4
4
 
5
5
  import Vuetify from 'vuetify'
@@ -1,5 +1,5 @@
1
1
  import { shallowMount } from '@vue/test-utils'
2
- import { defaultMocks } from '@windward/core/test/mocks'
2
+ import { defaultMocks } from '@/test/mocks'
3
3
  import SortingGameSettingsManager from '@/components/settings/SortingGameSettingsManager'
4
4
 
5
5
  import Vuetify from 'vuetify'
@@ -1,5 +1,5 @@
1
1
  import { mount, shallowMount } from '@vue/test-utils'
2
- import { defaultMocks } from '@windward/core/test/mocks'
2
+ import { defaultMocks } from '@/test/mocks'
3
3
  import WordJumbleSettingsManager from '@/components/settings/WordJumbleSettingsManager'
4
4
 
5
5
  import Vuetify from 'vuetify'
@@ -49,13 +49,11 @@ describe('WordJumble manager', () => {
49
49
  id: 1,
50
50
  value: '',
51
51
  hint: '',
52
- expand: false,
53
52
  },
54
53
  {
55
54
  id: 2,
56
55
  value: '',
57
56
  hint: '',
58
- expand: true,
59
57
  },
60
58
  ])
61
59
  })
@@ -80,7 +78,6 @@ describe('WordJumble manager', () => {
80
78
  id: 1,
81
79
  value: '',
82
80
  hint: '',
83
- expand: true,
84
81
  },
85
82
  ])
86
83
  })
package/i18n/en-US.ts DELETED
@@ -1,5 +0,0 @@
1
- import enUS from './en-US/index'
2
-
3
- export default {
4
- ...enUS,
5
- }