@pocketprep/ui-kit 3.1.6 → 3.2.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/.eslintrc.cjs +1 -0
- package/README.md +29 -8
- package/dist/@pocketprep/ui-kit.js +3 -3
- package/dist/@pocketprep/ui-kit.js.map +1 -1
- package/dist/@pocketprep/ui-kit.umd.cjs +1 -1
- package/dist/@pocketprep/ui-kit.umd.cjs.map +1 -1
- package/lib/components/BundleIcons/BundleIcon.vue +2 -2
- package/lib/components/Filters/FilterDropdown.vue +2 -2
- package/lib/pocketprep.scss +12 -12
- package/package.json +14 -13
- package/lib/components/Banners/Banner.md +0 -41
- package/lib/components/Blobs/Blob.md +0 -10
- package/lib/components/Blobs/BlobEmptyState.md +0 -9
- package/lib/components/BundleIcons/BundleIcon.md +0 -60
- package/lib/components/Bundles/BundleList.md +0 -63
- package/lib/components/Bundles/BundleSearch.md +0 -195
- package/lib/components/Bundles/PremiumPill.md +0 -23
- package/lib/components/Buttons/Button.md +0 -99
- package/lib/components/Buttons/Link.md +0 -58
- package/lib/components/Buttons/Tab.md +0 -35
- package/lib/components/Calendar/Calendar.md +0 -18
- package/lib/components/Charts/Bar.md +0 -123
- package/lib/components/Charts/Pie.md +0 -23
- package/lib/components/Controls/SegmentControl.md +0 -47
- package/lib/components/Controls/Slider.md +0 -67
- package/lib/components/Controls/ToggleSwitch.md +0 -56
- package/lib/components/EmptyStates/EmptyState.md +0 -44
- package/lib/components/Exams/ExamCard.md +0 -45
- package/lib/components/Exams/ExamMenuCard.md +0 -90
- package/lib/components/Filters/FilterDropdown.md +0 -68
- package/lib/components/Filters/FilterOptions.md +0 -67
- package/lib/components/Forms/Checkbox.md +0 -52
- package/lib/components/Forms/CheckboxOption.md +0 -37
- package/lib/components/Forms/Errors.md +0 -23
- package/lib/components/Forms/Input.md +0 -63
- package/lib/components/Forms/Radio.md +0 -66
- package/lib/components/Forms/Select.md +0 -133
- package/lib/components/Forms/Textarea.md +0 -57
- package/lib/components/Icons/Icon.md +0 -151
- package/lib/components/Icons/IconAccordionArrow.md +0 -7
- package/lib/components/Icons/IconActivity.md +0 -7
- package/lib/components/Icons/IconAdd.md +0 -7
- package/lib/components/Icons/IconAddCircle.md +0 -7
- package/lib/components/Icons/IconArrow.md +0 -7
- package/lib/components/Icons/IconBarChart.md +0 -7
- package/lib/components/Icons/IconCalendar.md +0 -7
- package/lib/components/Icons/IconChat.md +0 -7
- package/lib/components/Icons/IconCheck.md +0 -7
- package/lib/components/Icons/IconClose.md +0 -7
- package/lib/components/Icons/IconCorrect.md +0 -7
- package/lib/components/Icons/IconEdit.md +0 -7
- package/lib/components/Icons/IconExam.md +0 -7
- package/lib/components/Icons/IconExternalLink.md +0 -7
- package/lib/components/Icons/IconEyeHide.md +0 -7
- package/lib/components/Icons/IconEyeShow.md +0 -7
- package/lib/components/Icons/IconFilter.md +0 -7
- package/lib/components/Icons/IconFilterActive.md +0 -7
- package/lib/components/Icons/IconFlag.md +0 -7
- package/lib/components/Icons/IconFlagContent.md +0 -7
- package/lib/components/Icons/IconFlagFeedback.md +0 -11
- package/lib/components/Icons/IconFlagFilled.md +0 -7
- package/lib/components/Icons/IconFullView.md +0 -7
- package/lib/components/Icons/IconFullViewActive.md +0 -7
- package/lib/components/Icons/IconHandle.md +0 -7
- package/lib/components/Icons/IconHeart.md +0 -7
- package/lib/components/Icons/IconHelp.md +0 -7
- package/lib/components/Icons/IconHourglass.md +0 -7
- package/lib/components/Icons/IconImage.md +0 -7
- package/lib/components/Icons/IconIncorrect.md +0 -7
- package/lib/components/Icons/IconInfo.md +0 -7
- package/lib/components/Icons/IconKeyboard.md +0 -7
- package/lib/components/Icons/IconLaunch.md +0 -7
- package/lib/components/Icons/IconLevelUp.md +0 -7
- package/lib/components/Icons/IconLightbulb.md +0 -5
- package/lib/components/Icons/IconLightning.md +0 -7
- package/lib/components/Icons/IconList.md +0 -7
- package/lib/components/Icons/IconLoading.md +0 -7
- package/lib/components/Icons/IconLoading2.md +0 -7
- package/lib/components/Icons/IconLock.md +0 -7
- package/lib/components/Icons/IconMissedQuestions.md +0 -7
- package/lib/components/Icons/IconMoon.md +0 -7
- package/lib/components/Icons/IconPaginationArrow.md +0 -7
- package/lib/components/Icons/IconPassage.md +0 -7
- package/lib/components/Icons/IconPencil.md +0 -7
- package/lib/components/Icons/IconPeople.md +0 -7
- package/lib/components/Icons/IconPercent.md +0 -7
- package/lib/components/Icons/IconPerson.md +0 -7
- package/lib/components/Icons/IconPreview.md +0 -7
- package/lib/components/Icons/IconQuestions.md +0 -7
- package/lib/components/Icons/IconQuick10.md +0 -7
- package/lib/components/Icons/IconRemoveCircle.md +0 -7
- package/lib/components/Icons/IconReviewFlag.md +0 -7
- package/lib/components/Icons/IconSearch.md +0 -7
- package/lib/components/Icons/IconShare.md +0 -7
- package/lib/components/Icons/IconSideBar.md +0 -7
- package/lib/components/Icons/IconSideBarActive.md +0 -7
- package/lib/components/Icons/IconStopwatch.md +0 -7
- package/lib/components/Icons/IconStrike.md +0 -60
- package/lib/components/Icons/IconSubject.md +0 -7
- package/lib/components/Icons/IconText.md +0 -7
- package/lib/components/Icons/IconTimer.md +0 -7
- package/lib/components/Icons/IconWarning.md +0 -7
- package/lib/components/Loaders/SkeletonLoader.md +0 -43
- package/lib/components/Modal/Modal.md +0 -31
- package/lib/components/Modal/ModalContainer.md +0 -96
- package/lib/components/Onboarding/EmailAuth.md +0 -40
- package/lib/components/Onboarding/MagicCodeEntry.md +0 -20
- package/lib/components/Pagination/QuestionReviewPagination.md +0 -19
- package/lib/components/Pagination/TablePagination.md +0 -19
- package/lib/components/PhonePerson/PhonePerson.md +0 -36
- package/lib/components/Quiz/FlagToggle.md +0 -37
- package/lib/components/Quiz/GlobalMetricsToggle.md +0 -46
- package/lib/components/Quiz/KeyboardShortcutsButton.md +0 -18
- package/lib/components/Quiz/KeyboardShortcutsModal.md +0 -71
- package/lib/components/Quiz/Question.md +0 -579
- package/lib/components/Quiz/QuizContainer.md +0 -91
- package/lib/components/Quiz/QuizProgress.md +0 -122
- package/lib/components/Quiz/QuizProgressBar.md +0 -131
- package/lib/components/Search/Pill.md +0 -37
- package/lib/components/Search/Search.md +0 -44
- package/lib/components/SidePanels/SidePanel.md +0 -126
- package/lib/components/Tables/StudyTable.md +0 -136
- package/lib/components/Tables/TeachTable.md +0 -696
- package/lib/components/Toasts/Toast.md +0 -35
- package/lib/components/Tooltips/OverflowTooltip.md +0 -14
- package/lib/components/Tooltips/Tooltip.md +0 -72
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
```vue
|
|
2
|
-
<template>
|
|
3
|
-
<div>
|
|
4
|
-
<Button @click="showModal1 = true">Show Modal 1</Button>
|
|
5
|
-
<ModalContainer v-if="showModal1" :showCloseButton="true" @close="showModal1 = false">
|
|
6
|
-
<template #head>
|
|
7
|
-
Head section
|
|
8
|
-
</template>
|
|
9
|
-
<div class="modal1">
|
|
10
|
-
Modal 1 with head section and close button
|
|
11
|
-
</div>
|
|
12
|
-
</ModalContainer>
|
|
13
|
-
<Button @click="showModal2 = true">Show Dark Mode Modal 2</Button>
|
|
14
|
-
<ModalContainer v-if="showModal2" :showCloseButton="true" @close="showModal2 = false" :isDarkMode="true">
|
|
15
|
-
<template #head>
|
|
16
|
-
Head section
|
|
17
|
-
</template>
|
|
18
|
-
<div class="modal2">
|
|
19
|
-
Modal 2 with head section and close button
|
|
20
|
-
</div>
|
|
21
|
-
</ModalContainer>
|
|
22
|
-
<Button @click="showModal3 = true">Show Modal 3</Button>
|
|
23
|
-
<ModalContainer v-if="showModal3" :showCloseButton="true" @close="showModal3 = false">
|
|
24
|
-
<template #modal>
|
|
25
|
-
<Modal class="modal3">
|
|
26
|
-
Modal 3 using Modal component for style overrides
|
|
27
|
-
<ul class="modal3__list">
|
|
28
|
-
<li class="modal3__list-item">ABC</li>
|
|
29
|
-
<li class="modal3__list-item">DEF</li>
|
|
30
|
-
<li class="modal3__list-item">GHI</li>
|
|
31
|
-
<li class="modal3__list-item">JKL</li>
|
|
32
|
-
<li class="modal3__list-item">MNO</li>
|
|
33
|
-
<li class="modal3__list-item">PQR</li>
|
|
34
|
-
<li class="modal3__list-item">STU</li>
|
|
35
|
-
<li class="modal3__list-item">VWX</li>
|
|
36
|
-
</ul>
|
|
37
|
-
</Modal>
|
|
38
|
-
</template>
|
|
39
|
-
</ModalContainer>
|
|
40
|
-
</div>
|
|
41
|
-
</template>
|
|
42
|
-
|
|
43
|
-
<script>
|
|
44
|
-
export default {
|
|
45
|
-
data() {
|
|
46
|
-
return {
|
|
47
|
-
showModal1: false,
|
|
48
|
-
showModal2: false,
|
|
49
|
-
showModal3: false,
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
</script>
|
|
54
|
-
|
|
55
|
-
<style>
|
|
56
|
-
.modal1,
|
|
57
|
-
.modal2 {
|
|
58
|
-
padding: 20px;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.modal3 {
|
|
62
|
-
position: absolute;
|
|
63
|
-
top: 10px;
|
|
64
|
-
right: 10px;
|
|
65
|
-
height: 50px;
|
|
66
|
-
padding: 20px;
|
|
67
|
-
background-color: #0064ff;
|
|
68
|
-
color: white;
|
|
69
|
-
border-radius: 30px;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.modal3__list {
|
|
73
|
-
padding: 0;
|
|
74
|
-
list-style: none;
|
|
75
|
-
background-color: white;
|
|
76
|
-
border: 1px solid black;
|
|
77
|
-
color: black;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.modal3__list-item {
|
|
81
|
-
padding: 5px;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.modal3__list-item:nth-child(-n+7) {
|
|
85
|
-
border-bottom: 1px solid gray;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
@media (max-width: 767px) {
|
|
89
|
-
.modal3 {
|
|
90
|
-
left: 10px;
|
|
91
|
-
right: 10px;
|
|
92
|
-
height: 90%;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
</style>
|
|
96
|
-
```
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
```vue
|
|
2
|
-
<template>
|
|
3
|
-
<div>
|
|
4
|
-
<pre>
|
|
5
|
-
Code: {{ code }}
|
|
6
|
-
</pre>
|
|
7
|
-
<EmailAuth
|
|
8
|
-
class="email-auth"
|
|
9
|
-
email="test@pocketprep.com"
|
|
10
|
-
@resend="resendEmail"
|
|
11
|
-
@submit="submitEmailAuth"
|
|
12
|
-
v-model="code"
|
|
13
|
-
/>
|
|
14
|
-
</div>
|
|
15
|
-
</template>
|
|
16
|
-
|
|
17
|
-
<script>
|
|
18
|
-
export default {
|
|
19
|
-
data () {
|
|
20
|
-
return {
|
|
21
|
-
code: ''
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
methods: {
|
|
25
|
-
resendEmail: function () {
|
|
26
|
-
alert('Resend email')
|
|
27
|
-
},
|
|
28
|
-
submitEmailAuth: function ({ email, code }) {
|
|
29
|
-
alert(`Form submit with data- { email: ${email}, code: ${ code } }`)
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
</script>
|
|
34
|
-
|
|
35
|
-
<style>
|
|
36
|
-
.email-auth {
|
|
37
|
-
background-color: #fff9ef;
|
|
38
|
-
}
|
|
39
|
-
</style>
|
|
40
|
-
```
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
```vue
|
|
2
|
-
<template>
|
|
3
|
-
<QuestionReviewPagination :currentPage="currentPage" :total="10" @changePage="val => currentPage = val" />
|
|
4
|
-
</template>
|
|
5
|
-
<script>
|
|
6
|
-
import QuestionReviewPagination from '@/components/Pagination/QuestionReviewPagination.vue'
|
|
7
|
-
|
|
8
|
-
export default {
|
|
9
|
-
data () {
|
|
10
|
-
return {
|
|
11
|
-
currentPage: 0
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
components: {
|
|
15
|
-
QuestionReviewPagination,
|
|
16
|
-
},
|
|
17
|
-
}
|
|
18
|
-
</script>
|
|
19
|
-
```
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
```vue
|
|
2
|
-
<template>
|
|
3
|
-
<TablePagination :perPage="10" unit="things" :currentPage="currentPage" :total="45" @changePage="val => currentPage = val" />
|
|
4
|
-
</template>
|
|
5
|
-
<script>
|
|
6
|
-
import TablePagination from '@/components/Pagination/TablePagination.vue'
|
|
7
|
-
|
|
8
|
-
export default {
|
|
9
|
-
data () {
|
|
10
|
-
return {
|
|
11
|
-
currentPage: 0
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
components: {
|
|
15
|
-
TablePagination,
|
|
16
|
-
},
|
|
17
|
-
}
|
|
18
|
-
</script>
|
|
19
|
-
```
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
```vue
|
|
2
|
-
<template>
|
|
3
|
-
<div class="phone-people">
|
|
4
|
-
<PhonePerson bundleId="mO5EIsoZ9H" />
|
|
5
|
-
<PhonePerson bundleId="uKLwvbsbPV" />
|
|
6
|
-
<PhonePerson bundleId="gAlCkoUVLl" />
|
|
7
|
-
<PhonePerson bundleId="GVCNrq4ixh" />
|
|
8
|
-
<PhonePerson bundleId="PusoOu7qGQ" />
|
|
9
|
-
<PhonePerson bundleId="1kS20KPPkH" />
|
|
10
|
-
<PhonePerson bundleId="tVMt7KCrkQ" />
|
|
11
|
-
<PhonePerson bundleId="4dTgUX97Dk" />
|
|
12
|
-
<PhonePerson bundleId="9970muCFGV" />
|
|
13
|
-
<PhonePerson bundleId="k9T5L3kC0U" />
|
|
14
|
-
<PhonePerson bundleId="DO5jBm0OJo" />
|
|
15
|
-
</div>
|
|
16
|
-
</template>
|
|
17
|
-
|
|
18
|
-
<script>
|
|
19
|
-
export default {
|
|
20
|
-
data () {
|
|
21
|
-
return {}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
</script>
|
|
25
|
-
|
|
26
|
-
<style>
|
|
27
|
-
.phone-people {
|
|
28
|
-
display: flex;
|
|
29
|
-
flex-wrap: wrap;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.phone-people img {
|
|
33
|
-
width: 150px;
|
|
34
|
-
}
|
|
35
|
-
</style>
|
|
36
|
-
```
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
```vue
|
|
2
|
-
<template>
|
|
3
|
-
<div class="docs-flag-toggle">
|
|
4
|
-
<FlagToggle
|
|
5
|
-
:is-flagged="isFlagged"
|
|
6
|
-
@toggleFlag="toggleFlag"
|
|
7
|
-
/>
|
|
8
|
-
</div>
|
|
9
|
-
</template>
|
|
10
|
-
|
|
11
|
-
<script>
|
|
12
|
-
export default {
|
|
13
|
-
data () {
|
|
14
|
-
return {
|
|
15
|
-
isFlagged: false,
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
methods: {
|
|
19
|
-
toggleFlag (newVal) {
|
|
20
|
-
this.isFlagged = newVal
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
}
|
|
24
|
-
</script>
|
|
25
|
-
|
|
26
|
-
<style>
|
|
27
|
-
.docs-flag-toggle {
|
|
28
|
-
display: flex;
|
|
29
|
-
align-items: center;
|
|
30
|
-
justify-content: center;
|
|
31
|
-
width: 200px;
|
|
32
|
-
height: 200px;
|
|
33
|
-
background-color: #1f3545;
|
|
34
|
-
color: white;
|
|
35
|
-
}
|
|
36
|
-
</style>
|
|
37
|
-
```
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
```vue
|
|
2
|
-
<template>
|
|
3
|
-
<div>
|
|
4
|
-
<div class="docs-global-metrics-toggle">
|
|
5
|
-
<GlobalMetricsToggle
|
|
6
|
-
:showGlobalMetrics="showGlobalMetrics"
|
|
7
|
-
@toggleGlobalMetrics="toggleGlobalMetrics"
|
|
8
|
-
/>
|
|
9
|
-
</div>
|
|
10
|
-
<div class="docs-global-metrics-toggle">
|
|
11
|
-
<GlobalMetricsToggle
|
|
12
|
-
:disabled="true"
|
|
13
|
-
:showGlobalMetrics="showGlobalMetrics"
|
|
14
|
-
@toggleGlobalMetrics="toggleGlobalMetrics"
|
|
15
|
-
/>
|
|
16
|
-
</div>
|
|
17
|
-
</div>
|
|
18
|
-
</template>
|
|
19
|
-
|
|
20
|
-
<script>
|
|
21
|
-
export default {
|
|
22
|
-
data () {
|
|
23
|
-
return {
|
|
24
|
-
showGlobalMetrics: false,
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
methods: {
|
|
28
|
-
toggleGlobalMetrics (newVal) {
|
|
29
|
-
this.showGlobalMetrics = newVal
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
}
|
|
33
|
-
</script>
|
|
34
|
-
|
|
35
|
-
<style>
|
|
36
|
-
.docs-global-metrics-toggle {
|
|
37
|
-
display: flex;
|
|
38
|
-
align-items: center;
|
|
39
|
-
justify-content: center;
|
|
40
|
-
width: 200px;
|
|
41
|
-
height: 200px;
|
|
42
|
-
background-color: #1f3545;
|
|
43
|
-
color: white;
|
|
44
|
-
}
|
|
45
|
-
</style>
|
|
46
|
-
```
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
```vue
|
|
2
|
-
<template>
|
|
3
|
-
<div class="docs-keyboard-shortcuts-btn">
|
|
4
|
-
<KeyboardShortcutsButton />
|
|
5
|
-
</div>
|
|
6
|
-
</template>
|
|
7
|
-
<style>
|
|
8
|
-
.docs-keyboard-shortcuts-btn {
|
|
9
|
-
display: flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
justify-content: center;
|
|
12
|
-
width: 200px;
|
|
13
|
-
height: 200px;
|
|
14
|
-
background-color: #1f3545;
|
|
15
|
-
color: white;
|
|
16
|
-
}
|
|
17
|
-
</style>
|
|
18
|
-
```
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
```vue
|
|
2
|
-
<template>
|
|
3
|
-
<div class="docs-keyboard-shortcuts-modal">
|
|
4
|
-
<Button
|
|
5
|
-
@click="showQuizKeyboardShortcutsModal = true;
|
|
6
|
-
showReviewKeyboardShortcutsModal = false;
|
|
7
|
-
showTeachKeyboardShortcutsModal = false"
|
|
8
|
-
>
|
|
9
|
-
Show Quiz Mode Keyboard Shortcuts
|
|
10
|
-
</Button>
|
|
11
|
-
<Button
|
|
12
|
-
@click="showQuizKeyboardShortcutsModal = false;
|
|
13
|
-
showTeachKeyboardShortcutsModal = false;
|
|
14
|
-
showReviewKeyboardShortcutsModal = true"
|
|
15
|
-
>
|
|
16
|
-
Show Review Mode Keyboard Shortcuts
|
|
17
|
-
</Button>
|
|
18
|
-
<Button
|
|
19
|
-
@click="showQuizKeyboardShortcutsModal = false;
|
|
20
|
-
showReviewKeyboardShortcutsModal = false;
|
|
21
|
-
showTeachKeyboardShortcutsModal = true"
|
|
22
|
-
>
|
|
23
|
-
Show Teach Mode Keyboard Shortcuts
|
|
24
|
-
</Button>
|
|
25
|
-
<Button @click="isDarkMode = !isDarkMode">
|
|
26
|
-
{{ isDarkMode ? 'Disable' : 'Enable' }} Dark Mode
|
|
27
|
-
</Button>
|
|
28
|
-
<KeyboardShortcutsModal
|
|
29
|
-
v-if="showQuizKeyboardShortcutsModal"
|
|
30
|
-
@toggleKeyboardShortcuts="toggleKeyboardShortcuts"
|
|
31
|
-
:allowKeyboardShortcuts="allowKeyboardShortcuts"
|
|
32
|
-
@close="showQuizKeyboardShortcutsModal = false"
|
|
33
|
-
:isDarkMode="isDarkMode"
|
|
34
|
-
/>
|
|
35
|
-
<KeyboardShortcutsModal
|
|
36
|
-
v-if="showReviewKeyboardShortcutsModal"
|
|
37
|
-
keyboardMode="review"
|
|
38
|
-
@toggleKeyboardShortcuts="toggleKeyboardShortcuts"
|
|
39
|
-
:allowKeyboardShortcuts="allowKeyboardShortcuts"
|
|
40
|
-
@close="showReviewKeyboardShortcutsModal = false"
|
|
41
|
-
:isDarkMode="isDarkMode"
|
|
42
|
-
/>
|
|
43
|
-
<KeyboardShortcutsModal
|
|
44
|
-
v-if="showTeachKeyboardShortcutsModal"
|
|
45
|
-
keyboardMode="teach"
|
|
46
|
-
@toggleKeyboardShortcuts="toggleKeyboardShortcuts"
|
|
47
|
-
:allowKeyboardShortcuts="allowKeyboardShortcuts"
|
|
48
|
-
@close="showTeachKeyboardShortcutsModal = false"
|
|
49
|
-
/>
|
|
50
|
-
</div>
|
|
51
|
-
</template>
|
|
52
|
-
|
|
53
|
-
<script>
|
|
54
|
-
export default {
|
|
55
|
-
data () {
|
|
56
|
-
return {
|
|
57
|
-
showQuizKeyboardShortcutsModal: false,
|
|
58
|
-
showReviewKeyboardShortcutsModal: false,
|
|
59
|
-
showTeachKeyboardShortcutsModal: false,
|
|
60
|
-
allowKeyboardShortcuts: false,
|
|
61
|
-
isDarkMode: false
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
methods: {
|
|
65
|
-
toggleKeyboardShortcuts (newVal) {
|
|
66
|
-
this.allowKeyboardShortcuts = newVal
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
</script>
|
|
71
|
-
```
|