@windward/core 0.1.4 → 0.2.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.
- package/components/Content/Blocks/Accordion.vue +12 -7
- package/components/Content/Blocks/BlockQuote.vue +3 -1
- package/components/Content/Blocks/ClickableIcons.vue +29 -27
- package/components/Content/Blocks/Email.vue +3 -1
- package/components/Content/Blocks/Feedback.vue +3 -12
- package/components/Content/Blocks/Image.vue +4 -4
- package/components/Content/Blocks/Math.vue +3 -1
- package/components/Content/Blocks/ScenarioChoice.vue +3 -1
- package/components/Content/Blocks/Tab.vue +5 -9
- package/components/Content/Blocks/UserUpload/ManageDataTableUserFiles.vue +4 -4
- package/components/Content/Blocks/UserUpload.vue +3 -1
- package/components/Navigation/Items/AskTheExpert.vue +2 -2
- package/components/Navigation/Items/CourseGlossaryToolNav.vue +2 -2
- package/components/Settings/AccordionSettings.vue +1 -3
- package/components/Settings/BlockQuoteSettings.vue +1 -1
- package/components/Settings/ClickableIconsSettings.vue +1 -1
- package/components/Settings/EmailSettings.vue +1 -1
- package/components/Settings/FeedbackSettings.vue +3 -1
- package/components/Settings/ImageSettings.vue +69 -9
- package/components/Settings/MathSettings.vue +1 -1
- package/components/Settings/ScenarioChoiceSettings.vue +7 -5
- package/components/Settings/TabSettings.vue +1 -4
- package/components/Settings/TextEditorSettings.vue +2 -2
- package/components/Settings/UserUploadSettings.vue +1 -1
- package/components/utils/ContentViewer.vue +2 -1
- package/components/utils/FillInBlank/FillInTheBlanksManager.vue +20 -24
- package/components/utils/MathExpressionEditor.vue +83 -86
- package/components/utils/MathLiveWrapper.vue +3 -1
- package/components/utils/TinyMCEWrapper.vue +65 -18
- package/components/utils/glossary/CourseGlossary.vue +16 -3
- package/components/utils/glossary/CourseGlossaryForm.vue +2 -0
- package/components/utils/glossary/GlossaryToolTip.vue +2 -2
- package/config/tinymce.config.ts +313 -0
- package/helpers/MathHelper.ts +1 -1
- package/helpers/tinymce/plugin.ts +32 -25
- package/i18n/en-US/components/settings/image.ts +8 -0
- package/i18n/en-US/components/utils/math_expression_editor.ts +11 -0
- package/i18n/en-US/components/utils/tiny_mce_wrapper.ts +1 -0
- package/i18n/en-US/pages/index.ts +2 -0
- package/i18n/en-US/pages/plugins/error.ts +9 -0
- package/i18n/en-US/pages/plugins/index.ts +5 -0
- package/i18n/en-US/shared/settings.ts +1 -1
- package/i18n/es-ES/components/settings/image.ts +8 -0
- package/i18n/es-ES/components/utils/math_expression_editor.ts +11 -0
- package/i18n/es-ES/components/utils/tiny_mce_wrapper.ts +1 -0
- package/i18n/es-ES/pages/index.ts +2 -0
- package/i18n/es-ES/pages/plugins/error.ts +9 -0
- package/i18n/es-ES/pages/plugins/index.ts +5 -0
- package/i18n/sv-SE/components/settings/image.ts +8 -0
- package/i18n/sv-SE/components/utils/math_expression_editor.ts +11 -0
- package/i18n/sv-SE/components/utils/tiny_mce_wrapper.ts +1 -0
- package/i18n/sv-SE/pages/index.ts +2 -0
- package/i18n/sv-SE/pages/plugins/error.ts +8 -0
- package/i18n/sv-SE/pages/plugins/index.ts +5 -0
- package/package.json +7 -2
- package/pages/plugins/tinymce/_plugin.vue +79 -0
- package/plugin.js +25 -28
- package/test/Pages/Plugins/TinyMce.spec.js +23 -0
- package/test/__mocks__/componentsMock.js +1 -13
- package/test/mocks.js +1 -0
- 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/.vscode/settings.json +0 -3
- package/config/tinymce.config.js +0 -136
- 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@windward/core",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Windward UI Core Plugins",
|
|
5
5
|
"main": "plugin.js",
|
|
6
6
|
"scripts": {
|
|
@@ -12,7 +12,12 @@
|
|
|
12
12
|
"type": "git",
|
|
13
13
|
"url": "git+ssh://git@bitbucket.org/mindedge/windward-ui-plugin-core.git"
|
|
14
14
|
},
|
|
15
|
-
"author": "Jacob Rogaishio",
|
|
15
|
+
"author": "Jacob Rogaishio <jrogaishio@mindedge.com>",
|
|
16
|
+
"contributors": [
|
|
17
|
+
"Jacob Rogaishio <jrogaishio@mindedge.com>",
|
|
18
|
+
"Ted Celestin <tcelestin@mindedge.com>",
|
|
19
|
+
"Christina Passafaro <cpassafaro@mindedge.com>"
|
|
20
|
+
],
|
|
16
21
|
"license": "MIT",
|
|
17
22
|
"homepage": "https://bitbucket.org/mindedge/windward-ui-plugin-core#readme",
|
|
18
23
|
"dependencies": {
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<component
|
|
4
|
+
:is="plugin.tag"
|
|
5
|
+
v-if="
|
|
6
|
+
isRegistered &&
|
|
7
|
+
$PermissionService.userHasAccessTo(
|
|
8
|
+
'windward.global.course,windward.organization.contentBlock,windward.organization.course.contentBlock',
|
|
9
|
+
'writable'
|
|
10
|
+
)
|
|
11
|
+
"
|
|
12
|
+
>
|
|
13
|
+
</component>
|
|
14
|
+
<!-- No permissions error condition -->
|
|
15
|
+
<div
|
|
16
|
+
v-if="
|
|
17
|
+
!$PermissionService.userHasAccessTo(
|
|
18
|
+
'windward.global.course,windward.organization.contentBlock,windward.organization.course.contentBlock',
|
|
19
|
+
'writable'
|
|
20
|
+
)
|
|
21
|
+
"
|
|
22
|
+
>
|
|
23
|
+
<h2>
|
|
24
|
+
{{ $t('windward.core.pages.plugins.error.title_401') }}
|
|
25
|
+
</h2>
|
|
26
|
+
<p>
|
|
27
|
+
{{ $t('windward.core.pages.plugins.error.description_401') }}
|
|
28
|
+
</p>
|
|
29
|
+
</div>
|
|
30
|
+
<!-- Plugin doesn't have a tag error condition -->
|
|
31
|
+
<v-alert v-if="!plugin.tag" type="error">
|
|
32
|
+
{{
|
|
33
|
+
$t('windward.core.pages.plugins.error.not_enabled', [
|
|
34
|
+
plugin.name,
|
|
35
|
+
])
|
|
36
|
+
}}
|
|
37
|
+
</v-alert>
|
|
38
|
+
<!-- Plugin tag wasn't autoloaded error condition -->
|
|
39
|
+
<v-alert v-if="plugin.tag && !isRegistered" type="error">
|
|
40
|
+
{{
|
|
41
|
+
$t('windward.core.pages.plugins.error.missing_tag', [
|
|
42
|
+
plugin.name,
|
|
43
|
+
])
|
|
44
|
+
}}
|
|
45
|
+
</v-alert>
|
|
46
|
+
</div>
|
|
47
|
+
</template>
|
|
48
|
+
|
|
49
|
+
<script>
|
|
50
|
+
import _ from 'lodash'
|
|
51
|
+
import tinymcePluginConfig from '../../../config/tinymce.config'
|
|
52
|
+
export default {
|
|
53
|
+
layout: 'plugin',
|
|
54
|
+
data() {
|
|
55
|
+
return {}
|
|
56
|
+
},
|
|
57
|
+
computed: {
|
|
58
|
+
isRegistered() {
|
|
59
|
+
const c = _.get(
|
|
60
|
+
this.$root,
|
|
61
|
+
"$options.components['" + this.plugin.tag + "']",
|
|
62
|
+
null
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
return c !== null
|
|
66
|
+
},
|
|
67
|
+
plugin() {
|
|
68
|
+
const plugin = tinymcePluginConfig.plugins.filter((item) => {
|
|
69
|
+
return (
|
|
70
|
+
item.name.toLowerCase() ===
|
|
71
|
+
this.$route.params.plugin.toLowerCase()
|
|
72
|
+
)
|
|
73
|
+
})
|
|
74
|
+
|
|
75
|
+
return plugin[0] || { tag: null, name: this.$route.params.plugin }
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
}
|
|
79
|
+
</script>
|
package/plugin.js
CHANGED
|
@@ -21,6 +21,8 @@ import Image from './components/Content/Blocks/Image'
|
|
|
21
21
|
import UserUpload from './components/Content/Blocks/UserUpload'
|
|
22
22
|
|
|
23
23
|
import GlossaryPage from './pages/glossary.vue'
|
|
24
|
+
import TinymcePlugin from './pages/plugins/tinymce/_plugin.vue'
|
|
25
|
+
|
|
24
26
|
import CourseGlossaryToolNav from './components/Navigation/Items/CourseGlossaryToolNav.vue'
|
|
25
27
|
import GlossaryNav from './components/Navigation/Items/GlossaryNav.vue'
|
|
26
28
|
import AskTheExpert from './components/Navigation/Items/AskTheExpert.vue'
|
|
@@ -78,6 +80,14 @@ export default {
|
|
|
78
80
|
name: 'CourseGlossaryPage',
|
|
79
81
|
template: GlossaryPage,
|
|
80
82
|
},
|
|
83
|
+
{
|
|
84
|
+
page: 'tinymce-plugin',
|
|
85
|
+
path: '/plugins/tinymce/:plugin',
|
|
86
|
+
i18n: 'windward.core.shared.menu.plugin',
|
|
87
|
+
icon: 'mdi-toy-brick',
|
|
88
|
+
name: 'TinymcePlugin',
|
|
89
|
+
template: TinymcePlugin,
|
|
90
|
+
},
|
|
81
91
|
],
|
|
82
92
|
components: {
|
|
83
93
|
utils: [
|
|
@@ -153,8 +163,7 @@ export default {
|
|
|
153
163
|
metadata: {
|
|
154
164
|
icon: 'mdi-video',
|
|
155
165
|
name: 'windward.core.shared.content_blocks.title.video',
|
|
156
|
-
grouping:
|
|
157
|
-
'windward.core.shared.content_blocks.grouping.multimedia',
|
|
166
|
+
grouping: 'components.content.blocks.group.multimedia',
|
|
158
167
|
},
|
|
159
168
|
},
|
|
160
169
|
{
|
|
@@ -163,8 +172,7 @@ export default {
|
|
|
163
172
|
metadata: {
|
|
164
173
|
icon: 'mdi-tab',
|
|
165
174
|
name: 'windward.core.shared.content_blocks.title.tab',
|
|
166
|
-
grouping:
|
|
167
|
-
'windward.core.shared.content_blocks.grouping.basic',
|
|
175
|
+
grouping: 'components.content.blocks.group.basic',
|
|
168
176
|
},
|
|
169
177
|
},
|
|
170
178
|
{
|
|
@@ -173,28 +181,25 @@ export default {
|
|
|
173
181
|
metadata: {
|
|
174
182
|
icon: 'mdi-view-list',
|
|
175
183
|
name: 'windward.core.shared.content_blocks.title.accordion',
|
|
176
|
-
grouping:
|
|
177
|
-
'windward.core.shared.content_blocks.grouping.basic',
|
|
184
|
+
grouping: 'components.content.blocks.group.basic',
|
|
178
185
|
},
|
|
179
186
|
},
|
|
180
187
|
{
|
|
181
188
|
tag: 'core-open-response',
|
|
182
189
|
template: OpenResponse,
|
|
183
190
|
metadata: {
|
|
184
|
-
icon: 'mdi-
|
|
191
|
+
icon: 'mdi-text-long',
|
|
185
192
|
name: 'windward.core.shared.content_blocks.title.open_response',
|
|
186
|
-
grouping:
|
|
187
|
-
'windward.core.shared.content_blocks.grouping.basic',
|
|
193
|
+
grouping: 'components.content.blocks.group.basic',
|
|
188
194
|
},
|
|
189
195
|
},
|
|
190
196
|
{
|
|
191
197
|
tag: 'core-open-response-collate',
|
|
192
198
|
template: OpenResponseCollate,
|
|
193
199
|
metadata: {
|
|
194
|
-
icon: 'mdi-
|
|
200
|
+
icon: 'mdi-text-long',
|
|
195
201
|
name: 'windward.core.shared.content_blocks.title.open_response_collate',
|
|
196
|
-
grouping:
|
|
197
|
-
'windward.core.shared.content_blocks.grouping.basic',
|
|
202
|
+
grouping: 'components.content.blocks.group.basic',
|
|
198
203
|
},
|
|
199
204
|
},
|
|
200
205
|
{
|
|
@@ -203,8 +208,7 @@ export default {
|
|
|
203
208
|
metadata: {
|
|
204
209
|
icon: 'mdi-image',
|
|
205
210
|
name: 'windward.core.shared.content_blocks.title.image',
|
|
206
|
-
grouping:
|
|
207
|
-
'windward.core.shared.content_blocks.grouping.multimedia',
|
|
211
|
+
grouping: 'components.content.blocks.group.multimedia',
|
|
208
212
|
},
|
|
209
213
|
},
|
|
210
214
|
{
|
|
@@ -213,8 +217,7 @@ export default {
|
|
|
213
217
|
metadata: {
|
|
214
218
|
icon: 'mdi-cloud-upload',
|
|
215
219
|
name: 'windward.core.shared.content_blocks.title.user_upload',
|
|
216
|
-
grouping:
|
|
217
|
-
'windward.core.shared.content_blocks.grouping.multimedia',
|
|
220
|
+
grouping: 'components.content.blocks.group.multimedia',
|
|
218
221
|
},
|
|
219
222
|
},
|
|
220
223
|
{
|
|
@@ -223,8 +226,7 @@ export default {
|
|
|
223
226
|
metadata: {
|
|
224
227
|
icon: 'mdi-format-list-checks',
|
|
225
228
|
name: 'windward.core.shared.content_blocks.title.clickable_icons',
|
|
226
|
-
grouping:
|
|
227
|
-
'windward.core.shared.content_blocks.grouping.basic',
|
|
229
|
+
grouping: 'components.content.blocks.group.basic',
|
|
228
230
|
},
|
|
229
231
|
},
|
|
230
232
|
{
|
|
@@ -233,8 +235,7 @@ export default {
|
|
|
233
235
|
metadata: {
|
|
234
236
|
icon: 'mdi-ab-testing',
|
|
235
237
|
name: 'windward.core.shared.content_blocks.title.scenario_choice',
|
|
236
|
-
grouping:
|
|
237
|
-
'windward.core.shared.content_blocks.grouping.basic',
|
|
238
|
+
grouping: 'components.content.blocks.group.basic',
|
|
238
239
|
},
|
|
239
240
|
},
|
|
240
241
|
{
|
|
@@ -243,8 +244,7 @@ export default {
|
|
|
243
244
|
metadata: {
|
|
244
245
|
icon: 'mdi-message',
|
|
245
246
|
name: 'windward.core.shared.content_blocks.title.feedback',
|
|
246
|
-
grouping:
|
|
247
|
-
'windward.core.shared.content_blocks.grouping.basic',
|
|
247
|
+
grouping: 'components.content.blocks.group.basic',
|
|
248
248
|
},
|
|
249
249
|
},
|
|
250
250
|
{
|
|
@@ -253,8 +253,7 @@ export default {
|
|
|
253
253
|
metadata: {
|
|
254
254
|
icon: 'mdi-email',
|
|
255
255
|
name: 'windward.core.shared.content_blocks.title.email',
|
|
256
|
-
grouping:
|
|
257
|
-
'windward.core.shared.content_blocks.grouping.basic',
|
|
256
|
+
grouping: 'components.content.blocks.group.basic',
|
|
258
257
|
},
|
|
259
258
|
},
|
|
260
259
|
{
|
|
@@ -263,8 +262,7 @@ export default {
|
|
|
263
262
|
metadata: {
|
|
264
263
|
icon: 'mdi-format-quote-close',
|
|
265
264
|
name: 'windward.core.shared.content_blocks.title.block_quote',
|
|
266
|
-
grouping:
|
|
267
|
-
'windward.core.shared.content_blocks.grouping.basic',
|
|
265
|
+
grouping: 'components.content.blocks.group.basic',
|
|
268
266
|
},
|
|
269
267
|
},
|
|
270
268
|
{
|
|
@@ -273,8 +271,7 @@ export default {
|
|
|
273
271
|
metadata: {
|
|
274
272
|
icon: 'mdi-minus',
|
|
275
273
|
name: 'windward.core.shared.content_blocks.title.horizontal_rule',
|
|
276
|
-
grouping:
|
|
277
|
-
'windward.core.shared.content_blocks.grouping.basic',
|
|
274
|
+
grouping: 'components.content.blocks.group.basic',
|
|
278
275
|
},
|
|
279
276
|
},
|
|
280
277
|
],
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { shallowMount } from '@vue/test-utils'
|
|
2
|
+
import Vue from 'vue'
|
|
3
|
+
import Vuetify from 'vuetify'
|
|
4
|
+
import { defaultMocks } from '@/test/mocks'
|
|
5
|
+
|
|
6
|
+
import TinyMcePlugin from '@/pages/plugins/tinymce/_plugin.vue'
|
|
7
|
+
|
|
8
|
+
Vue.use(Vuetify)
|
|
9
|
+
|
|
10
|
+
const mocks = {
|
|
11
|
+
...defaultMocks,
|
|
12
|
+
$route: { params: { plugin: '' } },
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
describe('TinyMcePlugin', () => {
|
|
16
|
+
test('is a Vue instance', () => {
|
|
17
|
+
const wrapper = shallowMount(TinyMcePlugin, {
|
|
18
|
+
vuetify: new Vuetify(),
|
|
19
|
+
mocks,
|
|
20
|
+
})
|
|
21
|
+
expect(wrapper.vm).toBeTruthy()
|
|
22
|
+
})
|
|
23
|
+
})
|
|
@@ -23,19 +23,7 @@ jest.mock(
|
|
|
23
23
|
)
|
|
24
24
|
|
|
25
25
|
jest.mock(
|
|
26
|
-
'~/components/
|
|
27
|
-
() => {
|
|
28
|
-
return {
|
|
29
|
-
props: {},
|
|
30
|
-
computed: {},
|
|
31
|
-
methods: {},
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
{ virtual: true }
|
|
35
|
-
)
|
|
36
|
-
|
|
37
|
-
jest.mock(
|
|
38
|
-
'~/components/Dialog',
|
|
26
|
+
'~/components/DialogBox.vue',
|
|
39
27
|
() => {
|
|
40
28
|
return {
|
|
41
29
|
props: {},
|
package/test/mocks.js
CHANGED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
<component name="ProjectCodeStyleConfiguration">
|
|
2
|
-
<code_scheme name="Project" version="173">
|
|
3
|
-
<HTMLCodeStyleSettings>
|
|
4
|
-
<option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" />
|
|
5
|
-
<option name="HTML_ENFORCE_QUOTES" value="true" />
|
|
6
|
-
</HTMLCodeStyleSettings>
|
|
7
|
-
<JSCodeStyleSettings version="0">
|
|
8
|
-
<option name="FORCE_SEMICOLON_STYLE" value="true" />
|
|
9
|
-
<option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
|
|
10
|
-
<option name="FORCE_QUOTE_STYlE" value="true" />
|
|
11
|
-
<option name="ENFORCE_TRAILING_COMMA" value="Remove" />
|
|
12
|
-
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
|
|
13
|
-
<option name="SPACES_WITHIN_IMPORTS" value="true" />
|
|
14
|
-
</JSCodeStyleSettings>
|
|
15
|
-
<TypeScriptCodeStyleSettings version="0">
|
|
16
|
-
<option name="FORCE_SEMICOLON_STYLE" value="true" />
|
|
17
|
-
<option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
|
|
18
|
-
<option name="FORCE_QUOTE_STYlE" value="true" />
|
|
19
|
-
<option name="ENFORCE_TRAILING_COMMA" value="Remove" />
|
|
20
|
-
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
|
|
21
|
-
<option name="SPACES_WITHIN_IMPORTS" value="true" />
|
|
22
|
-
</TypeScriptCodeStyleSettings>
|
|
23
|
-
<VueCodeStyleSettings>
|
|
24
|
-
<option name="INTERPOLATION_NEW_LINE_AFTER_START_DELIMITER" value="false" />
|
|
25
|
-
<option name="INTERPOLATION_NEW_LINE_BEFORE_END_DELIMITER" value="false" />
|
|
26
|
-
</VueCodeStyleSettings>
|
|
27
|
-
<codeStyleSettings language="HTML">
|
|
28
|
-
<option name="SOFT_MARGINS" value="80" />
|
|
29
|
-
<indentOptions>
|
|
30
|
-
<option name="INDENT_SIZE" value="2" />
|
|
31
|
-
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
|
32
|
-
<option name="TAB_SIZE" value="2" />
|
|
33
|
-
</indentOptions>
|
|
34
|
-
</codeStyleSettings>
|
|
35
|
-
<codeStyleSettings language="JavaScript">
|
|
36
|
-
<option name="SOFT_MARGINS" value="80" />
|
|
37
|
-
<indentOptions>
|
|
38
|
-
<option name="INDENT_SIZE" value="2" />
|
|
39
|
-
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
|
40
|
-
<option name="TAB_SIZE" value="2" />
|
|
41
|
-
</indentOptions>
|
|
42
|
-
</codeStyleSettings>
|
|
43
|
-
<codeStyleSettings language="TypeScript">
|
|
44
|
-
<option name="SOFT_MARGINS" value="80" />
|
|
45
|
-
<indentOptions>
|
|
46
|
-
<option name="INDENT_SIZE" value="2" />
|
|
47
|
-
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
|
48
|
-
<option name="TAB_SIZE" value="2" />
|
|
49
|
-
</indentOptions>
|
|
50
|
-
</codeStyleSettings>
|
|
51
|
-
<codeStyleSettings language="Vue">
|
|
52
|
-
<option name="SOFT_MARGINS" value="80" />
|
|
53
|
-
<indentOptions>
|
|
54
|
-
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
|
55
|
-
</indentOptions>
|
|
56
|
-
</codeStyleSettings>
|
|
57
|
-
</code_scheme>
|
|
58
|
-
</component>
|
package/.idea/modules.xml
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="ProjectModuleManager">
|
|
4
|
-
<modules>
|
|
5
|
-
<module fileurl="file://$PROJECT_DIR$/.idea/windward-ui-plugin-core.iml" filepath="$PROJECT_DIR$/.idea/windward-ui-plugin-core.iml" />
|
|
6
|
-
</modules>
|
|
7
|
-
</component>
|
|
8
|
-
</project>
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="PhpDockerContainerSettings">
|
|
4
|
-
<list>
|
|
5
|
-
<map>
|
|
6
|
-
<entry key="79d59a8f-c56c-4789-b96c-e55a326ab125">
|
|
7
|
-
<value>
|
|
8
|
-
<DockerContainerSettings>
|
|
9
|
-
<option name="version" value="1" />
|
|
10
|
-
<option name="volumeBindings">
|
|
11
|
-
<list>
|
|
12
|
-
<DockerVolumeBindingImpl>
|
|
13
|
-
<option name="containerPath" value="/opt/project" />
|
|
14
|
-
<option name="hostPath" value="$PROJECT_DIR$" />
|
|
15
|
-
</DockerVolumeBindingImpl>
|
|
16
|
-
</list>
|
|
17
|
-
</option>
|
|
18
|
-
</DockerContainerSettings>
|
|
19
|
-
</value>
|
|
20
|
-
</entry>
|
|
21
|
-
</map>
|
|
22
|
-
</list>
|
|
23
|
-
</component>
|
|
24
|
-
</project>
|
package/.idea/php.xml
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="MessDetectorOptionsConfiguration">
|
|
4
|
-
<option name="transferred" value="true" />
|
|
5
|
-
</component>
|
|
6
|
-
<component name="PHPCSFixerOptionsConfiguration">
|
|
7
|
-
<option name="transferred" value="true" />
|
|
8
|
-
</component>
|
|
9
|
-
<component name="PHPCodeSnifferOptionsConfiguration">
|
|
10
|
-
<option name="highlightLevel" value="WARNING" />
|
|
11
|
-
<option name="transferred" value="true" />
|
|
12
|
-
</component>
|
|
13
|
-
<component name="PhpStanOptionsConfiguration">
|
|
14
|
-
<option name="transferred" value="true" />
|
|
15
|
-
</component>
|
|
16
|
-
<component name="PsalmOptionsConfiguration">
|
|
17
|
-
<option name="transferred" value="true" />
|
|
18
|
-
</component>
|
|
19
|
-
</project>
|
package/.idea/vcs.xml
DELETED
package/.idea/watcherTasks.xml
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="WEB_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager">
|
|
4
|
-
<content url="file://$MODULE_DIR$" />
|
|
5
|
-
<orderEntry type="inheritedJdk" />
|
|
6
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
7
|
-
</component>
|
|
8
|
-
</module>
|
package/.vscode/settings.json
DELETED
package/config/tinymce.config.js
DELETED
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
plugins: [
|
|
3
|
-
{
|
|
4
|
-
name: 'math',
|
|
5
|
-
tag: 'plugin-core-math-expression-editor',
|
|
6
|
-
buttons: {
|
|
7
|
-
groups: [
|
|
8
|
-
{
|
|
9
|
-
name: 'shared.math.trigonometry',
|
|
10
|
-
buttons: [
|
|
11
|
-
{
|
|
12
|
-
cmd: false,
|
|
13
|
-
text: '\\sec',
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
cmd: false,
|
|
17
|
-
text: '\\sec^{-1}',
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
cmd: false,
|
|
21
|
-
text: '\\csc',
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
cmd: false,
|
|
25
|
-
text: '\\csc^{-1}',
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
cmd: false,
|
|
29
|
-
text: '\\cot',
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
cmd: false,
|
|
33
|
-
text: '\\cot^{-1}',
|
|
34
|
-
},
|
|
35
|
-
],
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
name: 'shared.math.statistic',
|
|
39
|
-
buttons: [
|
|
40
|
-
{
|
|
41
|
-
cmd: false,
|
|
42
|
-
text: '\\mu',
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
cmd: false,
|
|
46
|
-
text: '\\overline{x}',
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
cmd: false,
|
|
50
|
-
text: '\\overline{y}',
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
cmd: false,
|
|
54
|
-
text: 'x^i',
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
cmd: false,
|
|
58
|
-
text: 'x_i',
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
cmd: false,
|
|
62
|
-
text: 'x!',
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
cmd: false,
|
|
66
|
-
text: '\\Sigma',
|
|
67
|
-
},
|
|
68
|
-
],
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
name: 'shared.math.matrix',
|
|
72
|
-
buttons: [
|
|
73
|
-
{
|
|
74
|
-
cmd: false,
|
|
75
|
-
text: '\\begin{bmatrix} a & b \\\\ c & d \\end{bmatrix}',
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
cmd: false,
|
|
79
|
-
text: '\\begin{bmatrix} a & b & c \\\\ d & e & f \\\\ g & h & i \\end{bmatrix}',
|
|
80
|
-
},
|
|
81
|
-
],
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
name: 'shared.math.group',
|
|
85
|
-
buttons: [
|
|
86
|
-
{
|
|
87
|
-
cmd: true,
|
|
88
|
-
latex: '(\\placeholder{})',
|
|
89
|
-
text: '(\\cdot)',
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
cmd: true,
|
|
93
|
-
latex: '[\\placeholder{}]',
|
|
94
|
-
text: '[\\cdot]',
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
cmd: true,
|
|
98
|
-
latex: '|\\placeholder{}|',
|
|
99
|
-
text: '|\\cdot|',
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
cmd: false,
|
|
103
|
-
text: '(x,y)',
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
cmd: false,
|
|
107
|
-
text: '[x,y]',
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
cmd: false,
|
|
111
|
-
text: '(x,y]',
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
cmd: false,
|
|
115
|
-
text: '[x,y)',
|
|
116
|
-
},
|
|
117
|
-
],
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
name: 'shared.math.equation_system',
|
|
121
|
-
buttons: [
|
|
122
|
-
{
|
|
123
|
-
cmd: false,
|
|
124
|
-
text: '\\begin{cases} x + y \\\\ x + y \\end{cases}',
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
cmd: false,
|
|
128
|
-
text: '\\begin{cases} x + y \\\\ x – y \\end{cases}',
|
|
129
|
-
},
|
|
130
|
-
],
|
|
131
|
-
},
|
|
132
|
-
],
|
|
133
|
-
},
|
|
134
|
-
},
|
|
135
|
-
],
|
|
136
|
-
}
|