@windward/core 0.2.3 → 0.3.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/babel.config.js +1 -1
- package/components/Content/Blocks/Image.vue +1 -1
- package/components/Content/Blocks/UserUpload/ManageDataTableUserFiles.vue +1 -1
- package/components/Content/Blocks/UserUpload.vue +1 -1
- package/components/Navigation/Items/AskTheExpert.vue +2 -1
- package/components/Navigation/Items/CourseGlossaryToolNav.vue +2 -1
- package/components/Settings/AccordionSettings.vue +11 -4
- package/components/Settings/BlockQuoteSettings.vue +9 -1
- package/components/Settings/ClickableIconsSettings.vue +20 -6
- package/components/Settings/EmailSettings.vue +13 -4
- package/components/Settings/FeedbackSettings.vue +2 -1
- package/components/Settings/HorizontalRuleSettings.vue +2 -1
- package/components/Settings/ImageSettings.vue +7 -1
- package/components/Settings/MathSettings.vue +6 -5
- package/components/Settings/OpenResponseCollateSettings.vue +5 -1
- package/components/Settings/OpenResponseSettings.vue +8 -2
- package/components/Settings/ScenarioChoiceSettings.vue +15 -4
- package/components/Settings/TabSettings.vue +12 -4
- package/components/Settings/TextEditorSettings.vue +14 -7
- package/components/Settings/UserUploadSettings.vue +11 -4
- package/components/Settings/VideoSettings.vue +28 -10
- package/components/utils/TinyMCEWrapper.vue +6 -1
- package/components/utils/glossary/CourseGlossary.vue +3 -2
- package/components/utils/glossary/CourseGlossaryForm.vue +1 -1
- package/i18n/en-US/components/content/blocks/image.ts +1 -1
- package/i18n/es-ES/components/content/blocks/image.ts +1 -1
- package/i18n/sv-SE/components/content/blocks/image.ts +1 -1
- package/package.json +1 -1
- package/test/__mocks__/componentsMock.js +57 -97
- package/test/__mocks__/contentBlockMock.js +1 -1
- package/test/__mocks__/contentSettingsMock.js +2 -1
- package/test/__mocks__/helpersMock.js +9 -0
- package/test/__mocks__/modelMock.js +101 -31
- package/.idea/codeStyles/Project.xml +0 -58
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/inspectionProfiles/Project_Default.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/php-docker-settings.xml +0 -24
- package/.idea/php.xml +0 -19
- package/.idea/vcs.xml +0 -6
- package/.idea/watcherTasks.xml +0 -4
- package/.idea/windward-ui-plugin-core.iml +0 -8
- package/coverage/clover.xml +0 -223
- package/coverage/coverage-final.json +0 -16
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/components/Content/Blocks/Accordion.vue.html +0 -430
- package/coverage/lcov-report/components/Content/Blocks/Image.vue.html +0 -394
- package/coverage/lcov-report/components/Content/Blocks/Math.vue.html +0 -262
- package/coverage/lcov-report/components/Content/Blocks/RichText.vue.html +0 -295
- package/coverage/lcov-report/components/Content/Blocks/Tab.vue.html +0 -415
- package/coverage/lcov-report/components/Content/Blocks/Table.vue.html +0 -667
- package/coverage/lcov-report/components/Content/Blocks/Video.vue.html +0 -2275
- package/coverage/lcov-report/components/Content/Blocks/index.html +0 -206
- package/coverage/lcov-report/components/utils/ContentViewer.vue.html +0 -199
- package/coverage/lcov-report/components/utils/MathExpressionEditor.vue.html +0 -919
- package/coverage/lcov-report/components/utils/MathLiveWrapper.vue.html +0 -343
- package/coverage/lcov-report/components/utils/TinyMCEWrapper.vue.html +0 -271
- package/coverage/lcov-report/components/utils/index.html +0 -161
- package/coverage/lcov-report/config/index.html +0 -116
- package/coverage/lcov-report/config/tinymce.config.js.html +0 -493
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/helpers/MathHelper.ts.html +0 -793
- package/coverage/lcov-report/helpers/index.html +0 -116
- package/coverage/lcov-report/helpers/tinymce/index.html +0 -116
- package/coverage/lcov-report/helpers/tinymce/plugin.ts.html +0 -334
- package/coverage/lcov-report/index.html +0 -191
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov-report/test/index.html +0 -116
- package/coverage/lcov-report/test/mocks.js.html +0 -457
- package/coverage/lcov.info +0 -403
- package/lib/helpers/GlossaryHelper.d.ts +0 -9
- package/lib/helpers/GlossaryHelper.js +0 -118
- package/lib/helpers/GlossaryTerm.d.ts +0 -10
- package/lib/helpers/GlossaryTerm.js +0 -22
- package/lib/helpers/MathHelper.d.ts +0 -99
- package/lib/helpers/MathHelper.js +0 -194
- package/lib/helpers/tinymce/plugin.d.ts +0 -2
- package/lib/helpers/tinymce/plugin.js +0 -86
- package/lib/i18n/en-US/components/content/blocks/image.d.ts +0 -6
- package/lib/i18n/en-US/components/content/blocks/image.js +0 -7
- package/lib/i18n/en-US/components/content/blocks/index.d.ts +0 -75
- package/lib/i18n/en-US/components/content/blocks/index.js +0 -14
- package/lib/i18n/en-US/components/content/blocks/tab.d.ts +0 -5
- package/lib/i18n/en-US/components/content/blocks/tab.js +0 -6
- package/lib/i18n/en-US/components/content/blocks/table.d.ts +0 -5
- package/lib/i18n/en-US/components/content/blocks/table.js +0 -6
- package/lib/i18n/en-US/components/content/blocks/user_upload.d.ts +0 -13
- package/lib/i18n/en-US/components/content/blocks/user_upload.js +0 -14
- package/lib/i18n/en-US/components/content/blocks/video.d.ts +0 -48
- package/lib/i18n/en-US/components/content/blocks/video.js +0 -49
- package/lib/i18n/en-US/components/content/index.d.ts +0 -77
- package/lib/i18n/en-US/components/content/index.js +0 -6
- package/lib/i18n/en-US/components/index.d.ts +0 -140
- package/lib/i18n/en-US/components/index.js +0 -12
- package/lib/i18n/en-US/components/navigation/image.d.ts +0 -5
- package/lib/i18n/en-US/components/navigation/image.js +0 -6
- package/lib/i18n/en-US/components/navigation/index.d.ts +0 -10
- package/lib/i18n/en-US/components/navigation/index.js +0 -8
- package/lib/i18n/en-US/components/navigation/user_upload.d.ts +0 -4
- package/lib/i18n/en-US/components/navigation/user_upload.js +0 -5
- package/lib/i18n/en-US/components/settings/clickable_icon.d.ts +0 -6
- package/lib/i18n/en-US/components/settings/clickable_icon.js +0 -7
- package/lib/i18n/en-US/components/settings/image.d.ts +0 -2
- package/lib/i18n/en-US/components/settings/image.js +0 -3
- package/lib/i18n/en-US/components/settings/index.d.ts +0 -39
- package/lib/i18n/en-US/components/settings/index.js +0 -14
- package/lib/i18n/en-US/components/settings/text_editor.d.ts +0 -8
- package/lib/i18n/en-US/components/settings/text_editor.js +0 -9
- package/lib/i18n/en-US/components/settings/user_upload.d.ts +0 -12
- package/lib/i18n/en-US/components/settings/user_upload.js +0 -13
- package/lib/i18n/en-US/components/settings/video.d.ts +0 -13
- package/lib/i18n/en-US/components/settings/video.js +0 -14
- package/lib/i18n/en-US/components/utils/index.d.ts +0 -15
- package/lib/i18n/en-US/components/utils/index.js +0 -6
- package/lib/i18n/en-US/components/utils/tiny_mce_wrapper.d.ts +0 -13
- package/lib/i18n/en-US/components/utils/tiny_mce_wrapper.js +0 -14
- package/lib/i18n/en-US/index.d.ts +0 -197
- package/lib/i18n/en-US/index.js +0 -16
- package/lib/i18n/en-US/modules/index.d.ts +0 -2
- package/lib/i18n/en-US/modules/index.js +0 -6
- package/lib/i18n/en-US/pages/glossary.d.ts +0 -8
- package/lib/i18n/en-US/pages/glossary.js +0 -9
- package/lib/i18n/en-US/pages/index.d.ts +0 -13
- package/lib/i18n/en-US/pages/index.js +0 -8
- package/lib/i18n/en-US/pages/user_upload.d.ts +0 -4
- package/lib/i18n/en-US/pages/user_upload.js +0 -5
- package/lib/i18n/en-US/shared/content_blocks.d.ts +0 -20
- package/lib/i18n/en-US/shared/content_blocks.js +0 -21
- package/lib/i18n/en-US/shared/index.d.ts +0 -39
- package/lib/i18n/en-US/shared/index.js +0 -10
- package/lib/i18n/en-US/shared/menu.d.ts +0 -4
- package/lib/i18n/en-US/shared/menu.js +0 -5
- package/lib/i18n/en-US/shared/settings.d.ts +0 -15
- package/lib/i18n/en-US/shared/settings.js +0 -16
- package/lib/i18n/en-US.d.ts +0 -197
- package/lib/i18n/en-US.js +0 -15
- package/lib/models/UserFileAsset.d.ts +0 -5
- package/lib/models/UserFileAsset.js +0 -37
package/babel.config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = {presets: ['@babel/preset-env']}
|
|
1
|
+
module.exports = { presets: ['@babel/preset-env'] }
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
|
|
79
79
|
<script>
|
|
80
80
|
import _ from 'lodash'
|
|
81
|
-
import DialogBox from '~/components/DialogBox.vue'
|
|
81
|
+
import DialogBox from '~/components/Core/DialogBox.vue'
|
|
82
82
|
import TextViewer from '~/components/Text/TextViewer'
|
|
83
83
|
import Crypto from '~/helpers/Crypto'
|
|
84
84
|
import BaseContentBlock from '~/components/Content/Blocks/BaseContentBlock'
|
|
@@ -101,7 +101,7 @@ import UserFileAsset from '../../../models/UserFileAsset'
|
|
|
101
101
|
import Enrollment from '~/models/Enrollment'
|
|
102
102
|
import ContentBlock from '~/models/ContentBlock'
|
|
103
103
|
import BaseContentBlock from '~/components/Content/Blocks/BaseContentBlock'
|
|
104
|
-
import FileDropZone from '~/components/FileDropZone.vue'
|
|
104
|
+
import FileDropZone from '~/components/Core/FileDropZone.vue'
|
|
105
105
|
|
|
106
106
|
import DisplayUserFilesTable from './UserUpload/DisplayUserFilesTable.vue'
|
|
107
107
|
|
|
@@ -111,12 +111,13 @@
|
|
|
111
111
|
|
|
112
112
|
<script>
|
|
113
113
|
import { mapGetters } from 'vuex'
|
|
114
|
+
import DialogBox from '~/components/Core/DialogBox.vue'
|
|
114
115
|
import AuthUserRepository from '~/models/repositories/AuthUserRepository'
|
|
115
116
|
import AskTheExpert from '~/models/AskTheExpert'
|
|
116
117
|
|
|
117
118
|
export default {
|
|
118
119
|
name: 'NavigationItemAskTheExpert',
|
|
119
|
-
components: {},
|
|
120
|
+
components: { DialogBox },
|
|
120
121
|
props: {
|
|
121
122
|
config: { type: Object, required: true },
|
|
122
123
|
},
|
|
@@ -18,10 +18,11 @@
|
|
|
18
18
|
</template>
|
|
19
19
|
|
|
20
20
|
<script>
|
|
21
|
+
import DialogBox from '~/components/Core/DialogBox.vue'
|
|
21
22
|
import CourseGlossary from '../../utils/glossary/CourseGlossary.vue'
|
|
22
23
|
export default {
|
|
23
24
|
name: 'NavigationItemCourseGlossary',
|
|
24
|
-
components: { CourseGlossary },
|
|
25
|
+
components: { DialogBox, CourseGlossary },
|
|
25
26
|
props: {
|
|
26
27
|
config: { type: Object, required: true },
|
|
27
28
|
},
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
</p>
|
|
11
11
|
<SortableExpansionPanel
|
|
12
12
|
v-model="block.metadata.config.items"
|
|
13
|
+
:disabled="render"
|
|
13
14
|
@click:close="onRemoveElement($event)"
|
|
14
15
|
@change="onDragged"
|
|
15
16
|
@update:currentPanel="onUpdatePanel"
|
|
@@ -34,15 +35,17 @@
|
|
|
34
35
|
'windward.core.shared.settings.title.title'
|
|
35
36
|
)
|
|
36
37
|
"
|
|
38
|
+
:disabled="render"
|
|
37
39
|
@focus="onTextAreaFocus"
|
|
38
40
|
></v-text-field>
|
|
39
41
|
<v-btn
|
|
42
|
+
text
|
|
43
|
+
:disabled="render"
|
|
40
44
|
@click="
|
|
41
45
|
onToggleExpand(
|
|
42
46
|
block.metadata.config.items[index]
|
|
43
47
|
)
|
|
44
48
|
"
|
|
45
|
-
text
|
|
46
49
|
>
|
|
47
50
|
<v-icon
|
|
48
51
|
v-if="
|
|
@@ -74,6 +77,7 @@
|
|
|
74
77
|
'windward.core.components.settings.accordion.label'
|
|
75
78
|
)
|
|
76
79
|
"
|
|
80
|
+
:disabled="render"
|
|
77
81
|
></TextEditor>
|
|
78
82
|
</v-container>
|
|
79
83
|
</template>
|
|
@@ -81,7 +85,10 @@
|
|
|
81
85
|
</v-container>
|
|
82
86
|
<v-container class="pa-0">
|
|
83
87
|
<v-row justify="center" class="my-4">
|
|
84
|
-
<v-btn
|
|
88
|
+
<v-btn
|
|
89
|
+
color="primary"
|
|
90
|
+
:disabled="render"
|
|
91
|
+
@click="onAddElement"
|
|
85
92
|
><v-icon>mdi-plus</v-icon
|
|
86
93
|
>{{
|
|
87
94
|
$t(
|
|
@@ -105,9 +112,9 @@
|
|
|
105
112
|
<script>
|
|
106
113
|
import _ from 'lodash'
|
|
107
114
|
import Crypto from '~/helpers/Crypto'
|
|
108
|
-
import BaseContentSettings from '~/components/Content/
|
|
115
|
+
import BaseContentSettings from '~/components/Content/Settings/BaseContentSettings.js'
|
|
109
116
|
import TextEditor from '~/components/Text/TextEditor'
|
|
110
|
-
import SortableExpansionPanel from '~/components/SortableExpansionPanel.vue'
|
|
117
|
+
import SortableExpansionPanel from '~/components/Core/SortableExpansionPanel.vue'
|
|
111
118
|
|
|
112
119
|
export default {
|
|
113
120
|
name: 'AccordionSettings',
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
:autofocus="true"
|
|
10
10
|
:label="$t('windward.core.shared.settings.title.title')"
|
|
11
11
|
ref="title"
|
|
12
|
+
:disabled="render"
|
|
12
13
|
></v-text-field>
|
|
13
14
|
<v-textarea
|
|
14
15
|
v-model="block.metadata.config.instructions"
|
|
@@ -16,6 +17,7 @@
|
|
|
16
17
|
auto-grow
|
|
17
18
|
:counter="255"
|
|
18
19
|
:label="$t('windward.core.shared.settings.title.instructions')"
|
|
20
|
+
:disabled="render"
|
|
19
21
|
></v-textarea>
|
|
20
22
|
</v-container>
|
|
21
23
|
<v-divider class="my-4 primary"></v-divider>
|
|
@@ -28,6 +30,7 @@
|
|
|
28
30
|
:label="
|
|
29
31
|
$t('windward.core.components.settings.block_quote.body')
|
|
30
32
|
"
|
|
33
|
+
:disabled="render"
|
|
31
34
|
></v-textarea>
|
|
32
35
|
</v-container>
|
|
33
36
|
<v-divider class="my-4 primary"></v-divider>
|
|
@@ -39,6 +42,7 @@
|
|
|
39
42
|
:label="
|
|
40
43
|
$t('windward.core.components.settings.block_quote.name')
|
|
41
44
|
"
|
|
45
|
+
:disabled="render"
|
|
42
46
|
></v-text-field>
|
|
43
47
|
<v-text-field
|
|
44
48
|
v-model="block.metadata.config.block_quote.author_title"
|
|
@@ -47,12 +51,14 @@
|
|
|
47
51
|
:label="
|
|
48
52
|
$t('windward.core.components.settings.block_quote.title')
|
|
49
53
|
"
|
|
54
|
+
:disabled="render"
|
|
50
55
|
></v-text-field>
|
|
51
56
|
<v-text-field
|
|
52
57
|
v-model="block.metadata.config.block_quote.organization"
|
|
53
58
|
outlined
|
|
54
59
|
auto-grow
|
|
55
60
|
:label="$t('windward.core.components.settings.block_quote.org')"
|
|
61
|
+
:disabled="render"
|
|
56
62
|
></v-text-field>
|
|
57
63
|
<v-text-field
|
|
58
64
|
v-model="block.metadata.config.block_quote.source_title"
|
|
@@ -63,6 +69,7 @@
|
|
|
63
69
|
'windward.core.components.settings.block_quote.source_title'
|
|
64
70
|
)
|
|
65
71
|
"
|
|
72
|
+
:disabled="render"
|
|
66
73
|
></v-text-field>
|
|
67
74
|
<v-select
|
|
68
75
|
v-model="block.metadata.config.block_quote.source_type"
|
|
@@ -71,6 +78,7 @@
|
|
|
71
78
|
:label="
|
|
72
79
|
$t('windward.core.components.settings.block_quote.type')
|
|
73
80
|
"
|
|
81
|
+
:disabled="render"
|
|
74
82
|
></v-select>
|
|
75
83
|
</v-container>
|
|
76
84
|
<div v-if="loading" class="text-center">
|
|
@@ -85,7 +93,7 @@
|
|
|
85
93
|
</template>
|
|
86
94
|
<script>
|
|
87
95
|
import _ from 'lodash'
|
|
88
|
-
import BaseContentSettings from '~/components/Content/
|
|
96
|
+
import BaseContentSettings from '~/components/Content/Settings/BaseContentSettings.js'
|
|
89
97
|
|
|
90
98
|
export default {
|
|
91
99
|
name: 'BlockQuoteSettings',
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
'windward.core.components.settings.clickable_icon.title'
|
|
12
12
|
)
|
|
13
13
|
"
|
|
14
|
+
:disabled="render"
|
|
14
15
|
></v-text-field>
|
|
15
16
|
<v-text-field
|
|
16
17
|
v-model="block.metadata.config.description"
|
|
@@ -21,6 +22,7 @@
|
|
|
21
22
|
'windward.core.components.settings.clickable_icon.description'
|
|
22
23
|
)
|
|
23
24
|
"
|
|
25
|
+
:disabled="render"
|
|
24
26
|
></v-text-field>
|
|
25
27
|
<v-switch
|
|
26
28
|
v-model="block.metadata.config.display.show_title"
|
|
@@ -29,6 +31,7 @@
|
|
|
29
31
|
'windward.core.components.settings.clickable_icon.display.show_title'
|
|
30
32
|
)
|
|
31
33
|
"
|
|
34
|
+
:disabled="render"
|
|
32
35
|
></v-switch>
|
|
33
36
|
<v-switch
|
|
34
37
|
v-model="block.metadata.config.display.show_background"
|
|
@@ -37,6 +40,7 @@
|
|
|
37
40
|
'windward.core.components.settings.clickable_icon.display.show_background'
|
|
38
41
|
)
|
|
39
42
|
"
|
|
43
|
+
:disabled="render"
|
|
40
44
|
></v-switch>
|
|
41
45
|
<v-switch
|
|
42
46
|
v-model="block.metadata.config.display.round_icon"
|
|
@@ -45,6 +49,7 @@
|
|
|
45
49
|
'windward.core.components.settings.clickable_icon.display.round_icon'
|
|
46
50
|
)
|
|
47
51
|
"
|
|
52
|
+
:disabled="render"
|
|
48
53
|
></v-switch>
|
|
49
54
|
<v-switch
|
|
50
55
|
v-model="block.metadata.config.display.italic_icon"
|
|
@@ -53,6 +58,7 @@
|
|
|
53
58
|
'windward.core.components.settings.clickable_icon.display.italic_icon'
|
|
54
59
|
)
|
|
55
60
|
"
|
|
61
|
+
:disabled="render"
|
|
56
62
|
></v-switch>
|
|
57
63
|
<v-switch
|
|
58
64
|
v-model="block.metadata.config.display.autocolor"
|
|
@@ -61,11 +67,13 @@
|
|
|
61
67
|
'windward.core.components.settings.clickable_icon.autocolor'
|
|
62
68
|
)
|
|
63
69
|
"
|
|
70
|
+
:disabled="render"
|
|
64
71
|
></v-switch>
|
|
65
72
|
</v-col>
|
|
66
73
|
<v-col class="pa-0">
|
|
67
74
|
<SortableExpansionPanel
|
|
68
75
|
v-model="block.metadata.config.items"
|
|
76
|
+
:disabled="render"
|
|
69
77
|
@click:close="onRemoveElement"
|
|
70
78
|
>
|
|
71
79
|
<template #header="{ item }">
|
|
@@ -95,6 +103,7 @@
|
|
|
95
103
|
[index + 1]
|
|
96
104
|
)
|
|
97
105
|
"
|
|
106
|
+
:disabled="render"
|
|
98
107
|
></TextIconPicker>
|
|
99
108
|
<v-text-field
|
|
100
109
|
v-model="
|
|
@@ -107,6 +116,7 @@
|
|
|
107
116
|
'windward.core.components.settings.clickable_icon.item_title'
|
|
108
117
|
)
|
|
109
118
|
"
|
|
119
|
+
:disabled="render"
|
|
110
120
|
></v-text-field>
|
|
111
121
|
|
|
112
122
|
<ColorPicker
|
|
@@ -119,6 +129,7 @@
|
|
|
119
129
|
'windward.core.components.settings.clickable_icon.item_color'
|
|
120
130
|
)
|
|
121
131
|
"
|
|
132
|
+
:disabled="render"
|
|
122
133
|
></ColorPicker>
|
|
123
134
|
<v-divider class="mt-3 mb-3" />
|
|
124
135
|
<span>{{
|
|
@@ -131,13 +142,14 @@
|
|
|
131
142
|
block.metadata.config.items[index].body
|
|
132
143
|
"
|
|
133
144
|
:height="200"
|
|
145
|
+
:disabled="render"
|
|
134
146
|
></TextEditor>
|
|
135
147
|
</v-container>
|
|
136
148
|
</template>
|
|
137
149
|
</SortableExpansionPanel>
|
|
138
150
|
</v-col>
|
|
139
151
|
<v-row justify="center" class="my-4">
|
|
140
|
-
<v-btn color="primary" @click="onAddElement"
|
|
152
|
+
<v-btn color="primary" :disabled="render" @click="onAddElement"
|
|
141
153
|
><v-icon>mdi-plus</v-icon
|
|
142
154
|
>{{ $t('shared.forms.add') }}</v-btn
|
|
143
155
|
>
|
|
@@ -147,11 +159,11 @@
|
|
|
147
159
|
</template>
|
|
148
160
|
<script>
|
|
149
161
|
import _ from 'lodash'
|
|
150
|
-
import BaseContentSettings from '~/components/Content/
|
|
162
|
+
import BaseContentSettings from '~/components/Content/Settings/BaseContentSettings.js'
|
|
151
163
|
import TextEditor from '~/components/Text/TextEditor'
|
|
152
|
-
import TextIconPicker from '~/components/TextIconPicker.vue'
|
|
153
|
-
import ColorPicker from '~/components/ColorPicker.vue'
|
|
154
|
-
import SortableExpansionPanel from '~/components/SortableExpansionPanel.vue'
|
|
164
|
+
import TextIconPicker from '~/components/Core/TextIconPicker.vue'
|
|
165
|
+
import ColorPicker from '~/components/Core/ColorPicker.vue'
|
|
166
|
+
import SortableExpansionPanel from '~/components/Core/SortableExpansionPanel.vue'
|
|
155
167
|
|
|
156
168
|
export default {
|
|
157
169
|
name: 'ClickableIconsSettings',
|
|
@@ -171,7 +183,9 @@ export default {
|
|
|
171
183
|
this.block = {}
|
|
172
184
|
}
|
|
173
185
|
if (_.isEmpty(this.block.body)) {
|
|
174
|
-
this.block.body = this.$t(
|
|
186
|
+
this.block.body = this.$t(
|
|
187
|
+
'windward.core.shared.content_blocks.title.clickable_icons'
|
|
188
|
+
)
|
|
175
189
|
}
|
|
176
190
|
if (_.isEmpty(this.block.metadata)) {
|
|
177
191
|
this.block.metadata = {}
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
<v-form ref="form" v-model="valid" v-if="!loading"> </v-form>
|
|
4
4
|
<v-container class="pa-0">
|
|
5
5
|
<v-text-field
|
|
6
|
+
ref="title"
|
|
6
7
|
v-model="block.metadata.config.title"
|
|
7
8
|
outlined
|
|
8
9
|
:counter="50"
|
|
9
10
|
:autofocus="true"
|
|
10
11
|
:label="$t('windward.core.shared.settings.title.title')"
|
|
11
|
-
|
|
12
|
+
:disabled="render"
|
|
12
13
|
></v-text-field>
|
|
13
14
|
<v-textarea
|
|
14
15
|
v-model="block.metadata.config.instructions"
|
|
@@ -16,6 +17,7 @@
|
|
|
16
17
|
auto-grow
|
|
17
18
|
:counter="255"
|
|
18
19
|
:label="$t('windward.core.shared.settings.title.instructions')"
|
|
20
|
+
:disabled="render"
|
|
19
21
|
></v-textarea>
|
|
20
22
|
</v-container>
|
|
21
23
|
<v-divider class="my-4 primary"></v-divider>
|
|
@@ -23,6 +25,7 @@
|
|
|
23
25
|
<p>{{ $t('windward.core.components.settings.email.items') }}</p>
|
|
24
26
|
<SortableExpansionPanel
|
|
25
27
|
v-model="block.metadata.config.emails"
|
|
28
|
+
:disabled="render"
|
|
26
29
|
@click:close="onRemoveElement($event)"
|
|
27
30
|
@change="onDragged"
|
|
28
31
|
@update:currentPanel="onUpdatePanel"
|
|
@@ -45,6 +48,7 @@
|
|
|
45
48
|
'windward.core.components.settings.email.from'
|
|
46
49
|
)
|
|
47
50
|
"
|
|
51
|
+
:disabled="render"
|
|
48
52
|
></v-text-field>
|
|
49
53
|
<v-text-field
|
|
50
54
|
v-model="block.metadata.config.emails[index].to"
|
|
@@ -52,6 +56,7 @@
|
|
|
52
56
|
:label="
|
|
53
57
|
$t('windward.core.components.settings.email.to')
|
|
54
58
|
"
|
|
59
|
+
:disabled="render"
|
|
55
60
|
></v-text-field>
|
|
56
61
|
<v-text-field
|
|
57
62
|
v-model="block.metadata.config.emails[index].cc"
|
|
@@ -59,6 +64,7 @@
|
|
|
59
64
|
:label="
|
|
60
65
|
$t('windward.core.components.settings.email.cc')
|
|
61
66
|
"
|
|
67
|
+
:disabled="render"
|
|
62
68
|
></v-text-field>
|
|
63
69
|
<v-text-field
|
|
64
70
|
v-model="
|
|
@@ -70,6 +76,7 @@
|
|
|
70
76
|
'windward.core.components.settings.email.subject'
|
|
71
77
|
)
|
|
72
78
|
"
|
|
79
|
+
:disabled="render"
|
|
73
80
|
></v-text-field>
|
|
74
81
|
<v-btn
|
|
75
82
|
@click="
|
|
@@ -79,6 +86,7 @@
|
|
|
79
86
|
)
|
|
80
87
|
"
|
|
81
88
|
text
|
|
89
|
+
:disabled="render"
|
|
82
90
|
>
|
|
83
91
|
<v-icon
|
|
84
92
|
v-if="
|
|
@@ -109,6 +117,7 @@
|
|
|
109
117
|
'windward.core.components.settings.email.placeholder'
|
|
110
118
|
)
|
|
111
119
|
"
|
|
120
|
+
:disabled="render"
|
|
112
121
|
></TextEditor>
|
|
113
122
|
</v-container>
|
|
114
123
|
</template>
|
|
@@ -116,7 +125,7 @@
|
|
|
116
125
|
</v-container>
|
|
117
126
|
<v-container class="pa-0">
|
|
118
127
|
<v-row justify="center" class="my-4">
|
|
119
|
-
<v-btn color="primary" @click="onAddElement"
|
|
128
|
+
<v-btn color="primary" :disabled="render" @click="onAddElement"
|
|
120
129
|
><v-icon>mdi-plus</v-icon
|
|
121
130
|
>{{
|
|
122
131
|
$t('windward.core.components.settings.email.add')
|
|
@@ -137,9 +146,9 @@
|
|
|
137
146
|
<script>
|
|
138
147
|
import _ from 'lodash'
|
|
139
148
|
import Crypto from '~/helpers/Crypto'
|
|
140
|
-
import BaseContentSettings from '~/components/Content/
|
|
149
|
+
import BaseContentSettings from '~/components/Content/Settings/BaseContentSettings.js'
|
|
141
150
|
import TextEditor from '~/components/Text/TextEditor'
|
|
142
|
-
import SortableExpansionPanel from '~/components/SortableExpansionPanel.vue'
|
|
151
|
+
import SortableExpansionPanel from '~/components/Core/SortableExpansionPanel.vue'
|
|
143
152
|
|
|
144
153
|
export default {
|
|
145
154
|
name: 'EmailSettings',
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
outlined
|
|
14
14
|
v-bind="attrs"
|
|
15
15
|
v-on="on"
|
|
16
|
+
:disabled="render"
|
|
16
17
|
@click="onPresetChoose(preset)"
|
|
17
18
|
>
|
|
18
19
|
<span>
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
|
|
30
31
|
<script>
|
|
31
32
|
import _ from 'lodash'
|
|
32
|
-
import BaseContentSettings from '~/components/Content/
|
|
33
|
+
import BaseContentSettings from '~/components/Content/Settings/BaseContentSettings.js'
|
|
33
34
|
import { mapGetters } from 'vuex'
|
|
34
35
|
|
|
35
36
|
import SurveyTemplate from '../../models/SurveyTemplate'
|
|
@@ -5,13 +5,14 @@
|
|
|
5
5
|
:label="
|
|
6
6
|
$t('windward.core.components.settings.horizontal_rule.dashed')
|
|
7
7
|
"
|
|
8
|
+
:disabled="render"
|
|
8
9
|
></v-switch>
|
|
9
10
|
</div>
|
|
10
11
|
</template>
|
|
11
12
|
|
|
12
13
|
<script>
|
|
13
14
|
import _ from 'lodash'
|
|
14
|
-
import BaseContentSettings from '~/components/Content/
|
|
15
|
+
import BaseContentSettings from '~/components/Content/Settings/BaseContentSettings.js'
|
|
15
16
|
|
|
16
17
|
export default {
|
|
17
18
|
name: 'HorizontalRuleSettings',
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
mimes="image/jpeg,image/png,image/gif"
|
|
5
5
|
@click:file="onFileSelect"
|
|
6
6
|
class="mb-4"
|
|
7
|
+
:disabled="render"
|
|
7
8
|
>
|
|
8
9
|
<template #title>
|
|
9
10
|
{{ $t('windward.core.components.content.blocks.image.title') }}
|
|
@@ -22,10 +23,12 @@
|
|
|
22
23
|
:label="
|
|
23
24
|
$t('windward.core.components.settings.image.hide_background')
|
|
24
25
|
"
|
|
26
|
+
:disabled="render"
|
|
25
27
|
></v-switch>
|
|
26
28
|
<v-switch
|
|
27
29
|
v-model="block.metadata.config.modal"
|
|
28
30
|
:label="$t('windward.core.components.settings.image.modal')"
|
|
31
|
+
:disabled="render"
|
|
29
32
|
></v-switch>
|
|
30
33
|
<v-tooltip top color="primary">
|
|
31
34
|
<template v-slot:activator="{ on, attrs }">
|
|
@@ -38,6 +41,7 @@
|
|
|
38
41
|
'windward.core.components.settings.image.decorative'
|
|
39
42
|
)
|
|
40
43
|
"
|
|
44
|
+
:disabled="render"
|
|
41
45
|
></v-switch>
|
|
42
46
|
<div class="d-flex align-center pb-4">
|
|
43
47
|
<v-icon x-small>mdi-help</v-icon>
|
|
@@ -59,6 +63,7 @@
|
|
|
59
63
|
$t('windward.core.components.navigation.image.default_alt')
|
|
60
64
|
"
|
|
61
65
|
:rules="validation.textRules"
|
|
66
|
+
:disabled="render"
|
|
62
67
|
>
|
|
63
68
|
<template v-slot:append>
|
|
64
69
|
<v-tooltip top color="primary">
|
|
@@ -89,6 +94,7 @@
|
|
|
89
94
|
<TextEditor
|
|
90
95
|
v-model="block.metadata.config.aria_describedby"
|
|
91
96
|
menubar="bullist numlist"
|
|
97
|
+
:disabled="render"
|
|
92
98
|
></TextEditor>
|
|
93
99
|
</v-form>
|
|
94
100
|
</v-container>
|
|
@@ -97,7 +103,7 @@
|
|
|
97
103
|
<script>
|
|
98
104
|
import _ from 'lodash'
|
|
99
105
|
import TextEditor from '~/components/Text/TextEditor'
|
|
100
|
-
import BaseContentSettings from '~/components/Content/
|
|
106
|
+
import BaseContentSettings from '~/components/Content/Settings/BaseContentSettings.js'
|
|
101
107
|
import ContentBlockAsset from '~/components/Content/ContentBlockAsset.vue'
|
|
102
108
|
|
|
103
109
|
export default {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<br />
|
|
4
|
-
<v-btn @click="onToggleExpand" text class="mb-2">
|
|
4
|
+
<v-btn :disabled="render" @click="onToggleExpand" text class="mb-2">
|
|
5
5
|
<v-icon v-if="!block.metadata.config.expand" color="primary"
|
|
6
6
|
>mdi-arrow-expand-all</v-icon
|
|
7
7
|
>
|
|
@@ -11,18 +11,19 @@
|
|
|
11
11
|
</v-btn>
|
|
12
12
|
<math-expression-editor
|
|
13
13
|
v-if="!block.metadata.config.expand"
|
|
14
|
-
:key="key"
|
|
15
|
-
:shrinkFont="true"
|
|
16
14
|
v-model="block.metadata.config.formula"
|
|
17
|
-
mode="standalone"
|
|
18
15
|
:value="block.metadata.config.formula"
|
|
16
|
+
mode="standalone"
|
|
17
|
+
:key="key"
|
|
18
|
+
:shrinkFont="true"
|
|
19
|
+
:disabled="render"
|
|
19
20
|
></math-expression-editor>
|
|
20
21
|
<br />
|
|
21
22
|
</div>
|
|
22
23
|
</template>
|
|
23
24
|
|
|
24
25
|
<script>
|
|
25
|
-
import BaseContentSettings from '~/components/Content/
|
|
26
|
+
import BaseContentSettings from '~/components/Content/Settings/BaseContentSettings.js'
|
|
26
27
|
import MathExpressionEditor from '../utils/MathExpressionEditor.vue'
|
|
27
28
|
import _ from 'lodash'
|
|
28
29
|
import Crypto from '~/helpers/Crypto'
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
'windward.core.components.settings.open_response_collate.include_prompts'
|
|
16
16
|
)
|
|
17
17
|
"
|
|
18
|
+
:disabled="render"
|
|
18
19
|
></v-switch>
|
|
19
20
|
<v-text-field
|
|
20
21
|
v-model="block.metadata.config.filename"
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
'windward.core.components.settings.open_response_collate.filename'
|
|
24
25
|
)
|
|
25
26
|
"
|
|
27
|
+
:disabled="render"
|
|
26
28
|
></v-text-field>
|
|
27
29
|
<v-list>
|
|
28
30
|
<v-list-item-group
|
|
@@ -60,6 +62,7 @@
|
|
|
60
62
|
<v-checkbox
|
|
61
63
|
:input-value="active"
|
|
62
64
|
color="primary"
|
|
65
|
+
:disabled="render"
|
|
63
66
|
></v-checkbox>
|
|
64
67
|
</v-list-item-action>
|
|
65
68
|
</template>
|
|
@@ -76,7 +79,7 @@ import _ from 'lodash'
|
|
|
76
79
|
import { mapGetters } from 'vuex'
|
|
77
80
|
import draggable from 'vuedraggable'
|
|
78
81
|
import TextEditor from '~/components/Text/TextEditor'
|
|
79
|
-
import BaseContentSettings from '~/components/Content/
|
|
82
|
+
import BaseContentSettings from '~/components/Content/Settings/BaseContentSettings.js'
|
|
80
83
|
import ContentBlock from '~/models/ContentBlock'
|
|
81
84
|
import Course from '~/models/Course'
|
|
82
85
|
|
|
@@ -103,6 +106,7 @@ export default {
|
|
|
103
106
|
dragOptions() {
|
|
104
107
|
return {
|
|
105
108
|
animation: 200,
|
|
109
|
+
disabled: this.render,
|
|
106
110
|
}
|
|
107
111
|
},
|
|
108
112
|
},
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
)
|
|
9
9
|
}}
|
|
10
10
|
</p>
|
|
11
|
-
<TextEditor
|
|
11
|
+
<TextEditor
|
|
12
|
+
v-model="block.body"
|
|
13
|
+
:height="200"
|
|
14
|
+
:disabled="render"
|
|
15
|
+
></TextEditor>
|
|
12
16
|
<p class="pt-4">
|
|
13
17
|
{{
|
|
14
18
|
$t(
|
|
@@ -19,6 +23,7 @@
|
|
|
19
23
|
<TextEditor
|
|
20
24
|
v-model="block.metadata.config.sample_response"
|
|
21
25
|
:height="200"
|
|
26
|
+
:disabled="render"
|
|
22
27
|
></TextEditor>
|
|
23
28
|
<p class="pt-4">
|
|
24
29
|
{{
|
|
@@ -30,6 +35,7 @@
|
|
|
30
35
|
<TextEditor
|
|
31
36
|
v-model="block.metadata.config.starting_text"
|
|
32
37
|
:height="200"
|
|
38
|
+
:disabled="render"
|
|
33
39
|
></TextEditor>
|
|
34
40
|
</v-form>
|
|
35
41
|
</v-container>
|
|
@@ -38,7 +44,7 @@
|
|
|
38
44
|
<script>
|
|
39
45
|
import _ from 'lodash'
|
|
40
46
|
import TextEditor from '~/components/Text/TextEditor'
|
|
41
|
-
import BaseContentSettings from '~/components/Content/
|
|
47
|
+
import BaseContentSettings from '~/components/Content/Settings/BaseContentSettings.js'
|
|
42
48
|
import ContentBlockAsset from '~/components/Content/ContentBlockAsset.vue'
|
|
43
49
|
|
|
44
50
|
export default {
|