@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
|
@@ -1,101 +1,61 @@
|
|
|
1
|
-
|
|
2
|
-
'~/components/
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
|
|
1
|
+
const shallowMocks = [
|
|
2
|
+
{ path: '~/components/Core/AuditLogList' },
|
|
3
|
+
{ path: '~/components/Core/AvatarUpload' },
|
|
4
|
+
{ path: '~/components/Core/Breadcrumbs' },
|
|
5
|
+
{ path: '~/components/Core/ColorPicker' },
|
|
6
|
+
{ path: '~/components/Core/ContextMenu' },
|
|
7
|
+
{ path: '~/components/Core/DialogBox' },
|
|
8
|
+
{ path: '~/components/Core/DragDirection' },
|
|
9
|
+
{ path: '~/components/Core/FileDropZone' },
|
|
10
|
+
{ path: '~/components/Core/FormButtons' },
|
|
11
|
+
{ path: '~/components/Core/Form', data: { validation: {} } },
|
|
12
|
+
{ path: '~/components/Core/PageTopActionArea' },
|
|
13
|
+
{ path: '~/components/Core/PluginRef' },
|
|
14
|
+
{ path: '~/components/Core/SearchField' },
|
|
15
|
+
{ path: '~/components/Core/SortableExpansionPanel' },
|
|
16
|
+
{ path: '~/components/Core/SpeedDial' },
|
|
17
|
+
{ path: '~/components/Core/TextIconPicker' },
|
|
18
|
+
{ path: '~/components/Core/UserAvatar' },
|
|
19
|
+
{ path: '~/components/Text/TextViewer' },
|
|
20
|
+
{ path: '~/components/Text/TextEditor' },
|
|
21
|
+
]
|
|
12
22
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
computed: {},
|
|
19
|
-
methods: {},
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
{ virtual: true }
|
|
23
|
-
)
|
|
23
|
+
for (const index in shallowMocks) {
|
|
24
|
+
const mockData = shallowMocks[index].data || {}
|
|
25
|
+
const mockProps = shallowMocks[index].props || {}
|
|
26
|
+
const mockComputed = shallowMocks[index].computed || {}
|
|
27
|
+
const mockMethods = shallowMocks[index].methods || {}
|
|
24
28
|
|
|
25
|
-
jest.mock(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
jest.mock(
|
|
30
|
+
shallowMocks[index].path,
|
|
31
|
+
() => {
|
|
32
|
+
return {
|
|
33
|
+
data() {
|
|
34
|
+
return { ...mockData }
|
|
35
|
+
},
|
|
36
|
+
props: mockProps,
|
|
37
|
+
computed: mockComputed,
|
|
38
|
+
methods: mockMethods,
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
{ virtual: true }
|
|
42
|
+
)
|
|
36
43
|
|
|
37
|
-
|
|
38
|
-
'
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
'~/components/Text/TextEditor',
|
|
51
|
-
() => {
|
|
52
|
-
return {
|
|
53
|
-
props: {},
|
|
54
|
-
computed: {},
|
|
55
|
-
methods: {},
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
{ virtual: true }
|
|
59
|
-
)
|
|
60
|
-
|
|
61
|
-
jest.mock(
|
|
62
|
-
'~/components/Form',
|
|
63
|
-
() => {
|
|
64
|
-
return {
|
|
65
|
-
props: {},
|
|
66
|
-
computed: {},
|
|
67
|
-
methods: {},
|
|
68
|
-
data() {
|
|
69
|
-
return { validation: {} }
|
|
44
|
+
// If the path does not include .vue then stub that out too
|
|
45
|
+
if (!shallowMocks[index].path.includes('.vue')) {
|
|
46
|
+
jest.mock(
|
|
47
|
+
shallowMocks[index].path + '.vue',
|
|
48
|
+
() => {
|
|
49
|
+
return {
|
|
50
|
+
data() {
|
|
51
|
+
return { ...mockData }
|
|
52
|
+
},
|
|
53
|
+
props: mockProps,
|
|
54
|
+
computed: mockComputed,
|
|
55
|
+
methods: mockMethods,
|
|
56
|
+
}
|
|
70
57
|
},
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
jest.mock(
|
|
77
|
-
'~/components/Form.vue',
|
|
78
|
-
() => {
|
|
79
|
-
return {
|
|
80
|
-
props: {},
|
|
81
|
-
computed: {},
|
|
82
|
-
methods: {},
|
|
83
|
-
data() {
|
|
84
|
-
return { validation: {} }
|
|
85
|
-
},
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
{ virtual: true }
|
|
89
|
-
)
|
|
90
|
-
|
|
91
|
-
jest.mock(
|
|
92
|
-
'~/components/ColorPicker.vue',
|
|
93
|
-
() => {
|
|
94
|
-
return {
|
|
95
|
-
props: {},
|
|
96
|
-
computed: {},
|
|
97
|
-
methods: {},
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
{ virtual: true }
|
|
101
|
-
)
|
|
58
|
+
{ virtual: true }
|
|
59
|
+
)
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
jest.mock(
|
|
2
|
+
'!raw-loader!sass-loader!./assets/tinymce/css/content.scss',
|
|
3
|
+
() => {
|
|
4
|
+
return ''
|
|
5
|
+
},
|
|
6
|
+
{ virtual: true }
|
|
7
|
+
)
|
|
8
|
+
|
|
1
9
|
jest.mock(
|
|
2
10
|
'~/helpers/Uuid',
|
|
3
11
|
() => {
|
|
@@ -9,6 +17,7 @@ jest.mock(
|
|
|
9
17
|
},
|
|
10
18
|
{ virtual: true }
|
|
11
19
|
)
|
|
20
|
+
|
|
12
21
|
jest.mock(
|
|
13
22
|
'~/helpers/Download',
|
|
14
23
|
() => {
|
|
@@ -8,15 +8,50 @@ jest.mock('axios')
|
|
|
8
8
|
|
|
9
9
|
// Define any new model mocks here. The imports / mocks will be auto-generated below
|
|
10
10
|
const mockVirtualModels = [
|
|
11
|
+
{ path: '~/models/AskTheExpert', resource: 'user-tools/ask-the-expert' },
|
|
12
|
+
{ path: '~/models/AssessmentQuestion', resource: 'questions' },
|
|
11
13
|
{
|
|
12
|
-
path: '~/models/
|
|
13
|
-
resource: '
|
|
14
|
+
path: '~/models/AssessmentQuestionType',
|
|
15
|
+
resource: 'assessments/questions/types',
|
|
14
16
|
},
|
|
15
|
-
{ path: '~/models/
|
|
17
|
+
{ path: '~/models/AssessmentResult', resource: 'assessment-results' },
|
|
18
|
+
{ path: '~/models/Assessment', resource: 'assessments' },
|
|
19
|
+
{ path: '~/models/ContactSupport', resource: 'user-tools/contact-support' },
|
|
16
20
|
{ path: '~/models/ContentBlock', resource: 'blocks' },
|
|
17
|
-
{ path: '~/models/
|
|
18
|
-
{ path: '~/models/
|
|
21
|
+
{ path: '~/models/Content', resource: 'content' },
|
|
22
|
+
{ path: '~/models/CourseSection', resource: 'sections' },
|
|
19
23
|
{ path: '~/models/Course', resource: 'courses' },
|
|
24
|
+
{ path: '~/models/CourseUserTrack', resource: 'track' },
|
|
25
|
+
{ path: '~/models/Enrollment', resource: 'enrollments' },
|
|
26
|
+
{ path: '~/models/FileAssetNamespace', resource: 'file-namespaces' },
|
|
27
|
+
{ path: '~/models/FileAsset', resource: 'files' },
|
|
28
|
+
{ path: '~/models/GradeMap', resource: 'maps' },
|
|
29
|
+
{ path: '~/models/Grade', resource: 'grades' },
|
|
30
|
+
{ path: '~/models/GradeType', resource: 'grades/types' },
|
|
31
|
+
{ path: '~/models/Locale', resource: 'locales' },
|
|
32
|
+
{ path: '~/models/Note', resource: 'notes' },
|
|
33
|
+
{ path: '~/models/NotificationEvent', resource: 'notifications/events' },
|
|
34
|
+
{ path: '~/models/NotificationTemplate', resource: 'notifications' },
|
|
35
|
+
{ path: '~/models/NotificationType', resource: 'notifications/types' },
|
|
36
|
+
{
|
|
37
|
+
path: '~/models/OrganizationNotification',
|
|
38
|
+
resource: 'organization-notifications',
|
|
39
|
+
},
|
|
40
|
+
{ path: '~/models/Organization', resource: 'organizations' },
|
|
41
|
+
{ path: '~/models/Permission', resource: 'permissions' },
|
|
42
|
+
{ path: '~/models/PermissionType', resource: 'permissions/types' },
|
|
43
|
+
{ path: '~/models/Plugin', resource: 'plugins' },
|
|
44
|
+
{ path: '~/models/repositories/AuthUserRepository', resource: 'users' },
|
|
45
|
+
{ path: '~/models/Role', resource: 'roles' },
|
|
46
|
+
{ path: '~/models/Rubric', resource: 'rubrics' },
|
|
47
|
+
{ path: '~/models/ServiceStatus', resource: 'status' },
|
|
48
|
+
{ path: '~/models/Tenant', resource: 'tenant' },
|
|
49
|
+
{
|
|
50
|
+
path: '~/models/UserContentBlockState',
|
|
51
|
+
resource: 'user-content-block-state',
|
|
52
|
+
},
|
|
53
|
+
{ path: '~/models/UserGrade', resource: 'user-grades' },
|
|
54
|
+
{ path: '~/models/UserNotification', resource: 'notifications' },
|
|
20
55
|
]
|
|
21
56
|
|
|
22
57
|
const mockModels = [
|
|
@@ -24,12 +59,7 @@ const mockModels = [
|
|
|
24
59
|
]
|
|
25
60
|
|
|
26
61
|
// DO NOT ALTER THE BELOW CODE
|
|
27
|
-
|
|
28
|
-
return {
|
|
29
|
-
__esModule: true,
|
|
30
|
-
default: class Model {},
|
|
31
|
-
}
|
|
32
|
-
})
|
|
62
|
+
|
|
33
63
|
class mockBaseModel extends mockModel {
|
|
34
64
|
baseURL() {
|
|
35
65
|
return 'http://windwardapi.local'
|
|
@@ -39,6 +69,34 @@ class mockBaseModel extends mockModel {
|
|
|
39
69
|
resolve({ data: {} })
|
|
40
70
|
})
|
|
41
71
|
}
|
|
72
|
+
|
|
73
|
+
integrations() {
|
|
74
|
+
return this
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
where() {
|
|
78
|
+
return this
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
include() {
|
|
82
|
+
return this
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
with() {
|
|
86
|
+
return this
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
for() {
|
|
90
|
+
return this
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
get() {
|
|
94
|
+
return []
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
first() {
|
|
98
|
+
return {}
|
|
99
|
+
}
|
|
42
100
|
}
|
|
43
101
|
|
|
44
102
|
jest.mock(
|
|
@@ -52,35 +110,47 @@ jest.mock(
|
|
|
52
110
|
{ virtual: true }
|
|
53
111
|
)
|
|
54
112
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
113
|
+
const registerVirtualModels = function (mockVirtualModelsParam) {
|
|
114
|
+
for (let mockI = 0; mockI < mockVirtualModelsParam.length; mockI++) {
|
|
115
|
+
jest.mock(
|
|
116
|
+
mockVirtualModelsParam[mockI].path,
|
|
117
|
+
() => {
|
|
118
|
+
return {
|
|
119
|
+
__esModule: true,
|
|
120
|
+
default: class Model extends mockBaseModel {
|
|
121
|
+
resource() {
|
|
122
|
+
return (
|
|
123
|
+
mockVirtualModelsParam[mockI].resource ||
|
|
124
|
+
this.constructor.name
|
|
125
|
+
)
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
{ virtual: true }
|
|
131
|
+
)
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
const registerModels = function (mockModelsParam) {
|
|
136
|
+
for (let mockJ = 0; mockJ < mockModelsParam.length; mockJ++) {
|
|
137
|
+
jest.mock(mockModelsParam[mockJ].path, () => {
|
|
59
138
|
return {
|
|
60
139
|
__esModule: true,
|
|
61
140
|
default: class Model extends mockBaseModel {
|
|
62
141
|
resource() {
|
|
63
142
|
return (
|
|
64
|
-
|
|
143
|
+
mockModelsParam[mockJ].resource ||
|
|
65
144
|
this.constructor.name
|
|
66
145
|
)
|
|
67
146
|
}
|
|
68
147
|
},
|
|
69
148
|
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
)
|
|
149
|
+
})
|
|
150
|
+
}
|
|
73
151
|
}
|
|
74
152
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
default: class Model extends mockBaseModel {
|
|
80
|
-
resource() {
|
|
81
|
-
return mockModels[mockJ].resource || this.constructor.name
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
}
|
|
85
|
-
})
|
|
86
|
-
}
|
|
153
|
+
registerVirtualModels(mockVirtualModels)
|
|
154
|
+
registerModels(mockModels)
|
|
155
|
+
|
|
156
|
+
export { registerVirtualModels, registerModels }
|
|
@@ -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>
|