Skip to content

Commit 784600c

Browse files
committed
add FallingLettersQuesion import... working
1 parent c035507 commit 784600c

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

packages/courseware/src/typing/questions/falling-letters/TestComponent.vue

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,25 @@
88
<strong>Imported types evidence:</strong><br />
99
testLetter: {{ testLetter }}<br />
1010
testPos: {{ testPos }}<br />
11-
testViewData: {{ testViewData }}
11+
testViewData: {{ testViewData }}<br />
12+
viewable exists: {{ !!viewable }}<br />
13+
questionView exists: {{ !!questionView }}<br />
14+
FallingLettersQuestion class: {{ questionClass?.name }}<br />
15+
FallingLettersQuestion dataShapes: {{ questionClass?.dataShapes?.length }} items
1216
</div>
1317
</div>
1418
</template>
1519

1620
<script setup lang="ts">
1721
// FallingLetters.vue imports to test incrementally:
1822
// import { defineComponent, ref, onMounted, onUnmounted, PropType } from 'vue';
19-
// import { useViewable, useQuestionView } from '@vue-skuilder/common-ui';
20-
// import { FallingLettersQuestion } from './index';
21-
// import { ViewData } from '@vue-skuilder/common';
2223
2324
// Current working imports:
2425
import { ref } from 'vue';
2526
import { Letter, TreePosition } from './types';
2627
import { ViewData } from '@vue-skuilder/common';
2728
import { useViewable, useQuestionView } from '@vue-skuilder/common-ui';
29+
import { FallingLettersQuestion } from './index';
2830
2931
const count = ref(0);
3032
const testLetter = { id: 1, char: 'A', x: 10, y: 20 } as Letter;
@@ -34,4 +36,7 @@ const testViewData = { testField: 'hello' } as ViewData;
3436
// Test common-ui composables
3537
const viewable = useViewable();
3638
const questionView = useQuestionView();
39+
40+
// Test FallingLettersQuestion class
41+
const questionClass = FallingLettersQuestion;
3742
</script>

0 commit comments

Comments
 (0)