@windward/core 0.2.1 → 0.2.3
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/.idea/codeStyles/Project.xml +58 -0
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/php-docker-settings.xml +24 -0
- package/.idea/php.xml +19 -0
- package/.idea/vcs.xml +6 -0
- package/.idea/watcherTasks.xml +4 -0
- package/.idea/windward-ui-plugin-core.iml +8 -0
- package/components/Content/Blocks/Accordion.vue +13 -4
- package/components/Content/Blocks/Email.vue +61 -23
- package/components/Content/Blocks/Feedback.vue +2 -1
- package/components/Content/Blocks/Image.vue +7 -0
- package/components/Content/Blocks/OpenResponseCollate.vue +1 -1
- package/components/Content/Blocks/UserUpload.vue +2 -2
- package/components/Settings/AccordionSettings.vue +36 -11
- package/components/Settings/EmailSettings.vue +61 -19
- package/components/Settings/MathSettings.vue +6 -4
- package/components/Settings/ScenarioChoiceSettings.vue +54 -47
- package/components/Settings/TabSettings.vue +3 -1
- package/components/Settings/TextEditorSettings.vue +72 -30
- package/components/Settings/UserUploadSettings.vue +3 -3
- package/components/Settings/VideoSettings.vue +2 -2
- package/components/utils/MathExpressionEditor.vue +4 -5
- package/components/utils/TinyMCEWrapper.vue +64 -11
- package/components/utils/glossary/CourseGlossary.vue +45 -32
- package/config/tinymce.config.ts +2 -1
- package/coverage/clover.xml +223 -0
- package/coverage/coverage-final.json +16 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +87 -0
- package/coverage/lcov-report/components/Content/Blocks/Accordion.vue.html +430 -0
- package/coverage/lcov-report/components/Content/Blocks/Image.vue.html +394 -0
- package/coverage/lcov-report/components/Content/Blocks/Math.vue.html +262 -0
- package/coverage/lcov-report/components/Content/Blocks/RichText.vue.html +295 -0
- package/coverage/lcov-report/components/Content/Blocks/Tab.vue.html +415 -0
- package/coverage/lcov-report/components/Content/Blocks/Table.vue.html +667 -0
- package/coverage/lcov-report/components/Content/Blocks/Video.vue.html +2275 -0
- package/coverage/lcov-report/components/Content/Blocks/index.html +206 -0
- package/coverage/lcov-report/components/utils/ContentViewer.vue.html +199 -0
- package/coverage/lcov-report/components/utils/MathExpressionEditor.vue.html +919 -0
- package/coverage/lcov-report/components/utils/MathLiveWrapper.vue.html +343 -0
- package/coverage/lcov-report/components/utils/TinyMCEWrapper.vue.html +271 -0
- package/coverage/lcov-report/components/utils/index.html +161 -0
- package/coverage/lcov-report/config/index.html +116 -0
- package/coverage/lcov-report/config/tinymce.config.js.html +493 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/helpers/MathHelper.ts.html +793 -0
- package/coverage/lcov-report/helpers/index.html +116 -0
- package/coverage/lcov-report/helpers/tinymce/index.html +116 -0
- package/coverage/lcov-report/helpers/tinymce/plugin.ts.html +334 -0
- package/coverage/lcov-report/index.html +191 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +196 -0
- package/coverage/lcov-report/test/index.html +116 -0
- package/coverage/lcov-report/test/mocks.js.html +457 -0
- package/coverage/lcov.info +403 -0
- package/helpers/tinymce/plugin.ts +18 -4
- package/i18n/en-US/components/content/blocks/email.ts +2 -0
- package/i18n/en-US/components/settings/accordion.ts +2 -1
- package/i18n/en-US/components/settings/email.ts +1 -0
- package/i18n/en-US/components/settings/text_editor.ts +4 -1
- package/i18n/es-ES/components/content/blocks/email.ts +2 -0
- package/i18n/es-ES/components/settings/accordion.ts +2 -1
- package/i18n/es-ES/components/settings/email.ts +1 -0
- package/i18n/es-ES/components/settings/text_editor.ts +4 -1
- package/i18n/sv-SE/components/content/blocks/email.ts +2 -0
- package/i18n/sv-SE/components/settings/accordion.ts +1 -0
- package/i18n/sv-SE/components/settings/email.ts +1 -0
- package/i18n/sv-SE/components/settings/text_editor.ts +4 -1
- package/lib/helpers/GlossaryHelper.d.ts +9 -0
- package/lib/helpers/GlossaryHelper.js +118 -0
- package/lib/helpers/GlossaryTerm.d.ts +10 -0
- package/lib/helpers/GlossaryTerm.js +22 -0
- package/lib/helpers/MathHelper.d.ts +99 -0
- package/lib/helpers/MathHelper.js +194 -0
- package/lib/helpers/tinymce/plugin.d.ts +2 -0
- package/lib/helpers/tinymce/plugin.js +86 -0
- package/lib/i18n/en-US/components/content/blocks/image.d.ts +6 -0
- package/lib/i18n/en-US/components/content/blocks/image.js +7 -0
- package/lib/i18n/en-US/components/content/blocks/index.d.ts +75 -0
- package/lib/i18n/en-US/components/content/blocks/index.js +14 -0
- package/lib/i18n/en-US/components/content/blocks/tab.d.ts +5 -0
- package/lib/i18n/en-US/components/content/blocks/tab.js +6 -0
- package/lib/i18n/en-US/components/content/blocks/table.d.ts +5 -0
- package/lib/i18n/en-US/components/content/blocks/table.js +6 -0
- package/lib/i18n/en-US/components/content/blocks/user_upload.d.ts +13 -0
- package/lib/i18n/en-US/components/content/blocks/user_upload.js +14 -0
- package/lib/i18n/en-US/components/content/blocks/video.d.ts +48 -0
- package/lib/i18n/en-US/components/content/blocks/video.js +49 -0
- package/lib/i18n/en-US/components/content/index.d.ts +77 -0
- package/lib/i18n/en-US/components/content/index.js +6 -0
- package/lib/i18n/en-US/components/index.d.ts +140 -0
- package/lib/i18n/en-US/components/index.js +12 -0
- package/lib/i18n/en-US/components/navigation/image.d.ts +5 -0
- package/lib/i18n/en-US/components/navigation/image.js +6 -0
- package/lib/i18n/en-US/components/navigation/index.d.ts +10 -0
- package/lib/i18n/en-US/components/navigation/index.js +8 -0
- package/lib/i18n/en-US/components/navigation/user_upload.d.ts +4 -0
- package/lib/i18n/en-US/components/navigation/user_upload.js +5 -0
- package/lib/i18n/en-US/components/settings/clickable_icon.d.ts +6 -0
- package/lib/i18n/en-US/components/settings/clickable_icon.js +7 -0
- package/lib/i18n/en-US/components/settings/image.d.ts +2 -0
- package/lib/i18n/en-US/components/settings/image.js +3 -0
- package/lib/i18n/en-US/components/settings/index.d.ts +39 -0
- package/lib/i18n/en-US/components/settings/index.js +14 -0
- package/lib/i18n/en-US/components/settings/text_editor.d.ts +8 -0
- package/lib/i18n/en-US/components/settings/text_editor.js +9 -0
- package/lib/i18n/en-US/components/settings/user_upload.d.ts +12 -0
- package/lib/i18n/en-US/components/settings/user_upload.js +13 -0
- package/lib/i18n/en-US/components/settings/video.d.ts +13 -0
- package/lib/i18n/en-US/components/settings/video.js +14 -0
- package/lib/i18n/en-US/components/utils/index.d.ts +15 -0
- package/lib/i18n/en-US/components/utils/index.js +6 -0
- package/lib/i18n/en-US/components/utils/tiny_mce_wrapper.d.ts +13 -0
- package/lib/i18n/en-US/components/utils/tiny_mce_wrapper.js +14 -0
- package/lib/i18n/en-US/index.d.ts +197 -0
- package/lib/i18n/en-US/index.js +16 -0
- package/lib/i18n/en-US/modules/index.d.ts +2 -0
- package/lib/i18n/en-US/modules/index.js +6 -0
- package/lib/i18n/en-US/pages/glossary.d.ts +8 -0
- package/lib/i18n/en-US/pages/glossary.js +9 -0
- package/lib/i18n/en-US/pages/index.d.ts +13 -0
- package/lib/i18n/en-US/pages/index.js +8 -0
- package/lib/i18n/en-US/pages/user_upload.d.ts +4 -0
- package/lib/i18n/en-US/pages/user_upload.js +5 -0
- package/lib/i18n/en-US/shared/content_blocks.d.ts +20 -0
- package/lib/i18n/en-US/shared/content_blocks.js +21 -0
- package/lib/i18n/en-US/shared/index.d.ts +39 -0
- package/lib/i18n/en-US/shared/index.js +10 -0
- package/lib/i18n/en-US/shared/menu.d.ts +4 -0
- package/lib/i18n/en-US/shared/menu.js +5 -0
- package/lib/i18n/en-US/shared/settings.d.ts +15 -0
- package/lib/i18n/en-US/shared/settings.js +16 -0
- package/lib/i18n/en-US.d.ts +197 -0
- package/lib/i18n/en-US.js +15 -0
- package/lib/models/UserFileAsset.d.ts +5 -0
- package/lib/models/UserFileAsset.js +37 -0
- package/package.json +1 -1
- package/test/Components/Settings/EmailSettings.spec.js +18 -2
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
TN:
|
|
2
|
+
SF:components/Content/Blocks/Accordion.vue
|
|
3
|
+
FNF:0
|
|
4
|
+
FNH:0
|
|
5
|
+
DA:53,1
|
|
6
|
+
DA:54,1
|
|
7
|
+
DA:55,1
|
|
8
|
+
LF:3
|
|
9
|
+
LH:3
|
|
10
|
+
BRF:0
|
|
11
|
+
BRH:0
|
|
12
|
+
end_of_record
|
|
13
|
+
TN:
|
|
14
|
+
SF:components/Content/Blocks/Image.vue
|
|
15
|
+
FNF:0
|
|
16
|
+
FNH:0
|
|
17
|
+
DA:50,1
|
|
18
|
+
DA:51,1
|
|
19
|
+
DA:52,1
|
|
20
|
+
LF:3
|
|
21
|
+
LH:3
|
|
22
|
+
BRF:0
|
|
23
|
+
BRH:0
|
|
24
|
+
end_of_record
|
|
25
|
+
TN:
|
|
26
|
+
SF:components/Content/Blocks/Math.vue
|
|
27
|
+
FNF:0
|
|
28
|
+
FNH:0
|
|
29
|
+
DA:20,1
|
|
30
|
+
DA:21,1
|
|
31
|
+
DA:22,1
|
|
32
|
+
LF:3
|
|
33
|
+
LH:3
|
|
34
|
+
BRF:0
|
|
35
|
+
BRH:0
|
|
36
|
+
end_of_record
|
|
37
|
+
TN:
|
|
38
|
+
SF:components/Content/Blocks/RichText.vue
|
|
39
|
+
FNF:0
|
|
40
|
+
FNH:0
|
|
41
|
+
DA:20,1
|
|
42
|
+
DA:21,1
|
|
43
|
+
DA:22,1
|
|
44
|
+
DA:23,1
|
|
45
|
+
LF:4
|
|
46
|
+
LH:4
|
|
47
|
+
BRF:0
|
|
48
|
+
BRH:0
|
|
49
|
+
end_of_record
|
|
50
|
+
TN:
|
|
51
|
+
SF:components/Content/Blocks/Tab.vue
|
|
52
|
+
FNF:0
|
|
53
|
+
FNH:0
|
|
54
|
+
DA:57,1
|
|
55
|
+
DA:58,1
|
|
56
|
+
DA:59,1
|
|
57
|
+
LF:3
|
|
58
|
+
LH:3
|
|
59
|
+
BRF:0
|
|
60
|
+
BRH:0
|
|
61
|
+
end_of_record
|
|
62
|
+
TN:
|
|
63
|
+
SF:components/Content/Blocks/Table.vue
|
|
64
|
+
FNF:0
|
|
65
|
+
FNH:0
|
|
66
|
+
DA:95,1
|
|
67
|
+
LF:1
|
|
68
|
+
LH:1
|
|
69
|
+
BRF:0
|
|
70
|
+
BRH:0
|
|
71
|
+
end_of_record
|
|
72
|
+
TN:
|
|
73
|
+
SF:components/Content/Blocks/Video.vue
|
|
74
|
+
FNF:0
|
|
75
|
+
FNH:0
|
|
76
|
+
DA:296,1
|
|
77
|
+
DA:297,1
|
|
78
|
+
DA:298,1
|
|
79
|
+
DA:299,1
|
|
80
|
+
LF:4
|
|
81
|
+
LH:4
|
|
82
|
+
BRF:0
|
|
83
|
+
BRH:0
|
|
84
|
+
end_of_record
|
|
85
|
+
TN:
|
|
86
|
+
SF:components/utils/ContentViewer.vue
|
|
87
|
+
FNF:0
|
|
88
|
+
FNH:0
|
|
89
|
+
DA:6,3
|
|
90
|
+
LF:1
|
|
91
|
+
LH:1
|
|
92
|
+
BRF:0
|
|
93
|
+
BRH:0
|
|
94
|
+
end_of_record
|
|
95
|
+
TN:
|
|
96
|
+
SF:components/utils/MathExpressionEditor.vue
|
|
97
|
+
FNF:0
|
|
98
|
+
FNH:0
|
|
99
|
+
DA:107,1
|
|
100
|
+
DA:108,1
|
|
101
|
+
DA:109,1
|
|
102
|
+
LF:3
|
|
103
|
+
LH:3
|
|
104
|
+
BRF:0
|
|
105
|
+
BRH:0
|
|
106
|
+
end_of_record
|
|
107
|
+
TN:
|
|
108
|
+
SF:components/utils/MathLiveWrapper.vue
|
|
109
|
+
FNF:0
|
|
110
|
+
FNH:0
|
|
111
|
+
DA:6,1
|
|
112
|
+
DA:7,1
|
|
113
|
+
DA:8,1
|
|
114
|
+
LF:3
|
|
115
|
+
LH:3
|
|
116
|
+
BRF:0
|
|
117
|
+
BRH:0
|
|
118
|
+
end_of_record
|
|
119
|
+
TN:
|
|
120
|
+
SF:components/utils/TinyMCEWrapper.vue
|
|
121
|
+
FNF:0
|
|
122
|
+
FNH:0
|
|
123
|
+
DA:15,3
|
|
124
|
+
DA:16,3
|
|
125
|
+
LF:2
|
|
126
|
+
LH:2
|
|
127
|
+
BRF:0
|
|
128
|
+
BRH:0
|
|
129
|
+
end_of_record
|
|
130
|
+
TN:
|
|
131
|
+
SF:config/tinymce.config.js
|
|
132
|
+
FNF:0
|
|
133
|
+
FNH:0
|
|
134
|
+
LF:0
|
|
135
|
+
LH:0
|
|
136
|
+
BRF:0
|
|
137
|
+
BRH:0
|
|
138
|
+
end_of_record
|
|
139
|
+
TN:
|
|
140
|
+
SF:helpers/MathHelper.ts
|
|
141
|
+
FN:4,(anonymous_0)
|
|
142
|
+
FN:17,(anonymous_2)
|
|
143
|
+
FN:30,(anonymous_3)
|
|
144
|
+
FN:43,(anonymous_4)
|
|
145
|
+
FN:55,(anonymous_5)
|
|
146
|
+
FN:59,(anonymous_6)
|
|
147
|
+
FN:76,(anonymous_7)
|
|
148
|
+
FN:80,(anonymous_8)
|
|
149
|
+
FN:110,(anonymous_9)
|
|
150
|
+
FN:124,(anonymous_10)
|
|
151
|
+
FN:129,(anonymous_11)
|
|
152
|
+
FN:152,(anonymous_12)
|
|
153
|
+
FN:157,(anonymous_13)
|
|
154
|
+
FN:182,(anonymous_14)
|
|
155
|
+
FN:196,(anonymous_15)
|
|
156
|
+
FN:207,(anonymous_16)
|
|
157
|
+
FN:226,(anonymous_17)
|
|
158
|
+
FNF:17
|
|
159
|
+
FNH:17
|
|
160
|
+
FNDA:5,(anonymous_0)
|
|
161
|
+
FNDA:3,(anonymous_2)
|
|
162
|
+
FNDA:2,(anonymous_3)
|
|
163
|
+
FNDA:2,(anonymous_4)
|
|
164
|
+
FNDA:3,(anonymous_5)
|
|
165
|
+
FNDA:2,(anonymous_6)
|
|
166
|
+
FNDA:3,(anonymous_7)
|
|
167
|
+
FNDA:2,(anonymous_8)
|
|
168
|
+
FNDA:2,(anonymous_9)
|
|
169
|
+
FNDA:3,(anonymous_10)
|
|
170
|
+
FNDA:3,(anonymous_11)
|
|
171
|
+
FNDA:3,(anonymous_12)
|
|
172
|
+
FNDA:2,(anonymous_13)
|
|
173
|
+
FNDA:2,(anonymous_14)
|
|
174
|
+
FNDA:1,(anonymous_15)
|
|
175
|
+
FNDA:2,(anonymous_16)
|
|
176
|
+
FNDA:2,(anonymous_17)
|
|
177
|
+
DA:1,5
|
|
178
|
+
DA:2,5
|
|
179
|
+
DA:3,5
|
|
180
|
+
DA:4,5
|
|
181
|
+
DA:8,5
|
|
182
|
+
DA:17,5
|
|
183
|
+
DA:18,3
|
|
184
|
+
DA:20,3
|
|
185
|
+
DA:30,5
|
|
186
|
+
DA:31,2
|
|
187
|
+
DA:33,2
|
|
188
|
+
DA:43,5
|
|
189
|
+
DA:44,2
|
|
190
|
+
DA:46,2
|
|
191
|
+
DA:55,5
|
|
192
|
+
DA:56,3
|
|
193
|
+
DA:57,3
|
|
194
|
+
DA:58,3
|
|
195
|
+
DA:59,2
|
|
196
|
+
DA:60,2
|
|
197
|
+
DA:67,3
|
|
198
|
+
DA:76,5
|
|
199
|
+
DA:77,3
|
|
200
|
+
DA:78,3
|
|
201
|
+
DA:79,3
|
|
202
|
+
DA:80,2
|
|
203
|
+
DA:81,2
|
|
204
|
+
DA:82,2
|
|
205
|
+
DA:83,1
|
|
206
|
+
DA:90,2
|
|
207
|
+
DA:91,1
|
|
208
|
+
DA:101,3
|
|
209
|
+
DA:110,5
|
|
210
|
+
DA:112,2
|
|
211
|
+
DA:114,2
|
|
212
|
+
DA:124,5
|
|
213
|
+
DA:125,3
|
|
214
|
+
DA:127,3
|
|
215
|
+
DA:128,3
|
|
216
|
+
DA:129,2
|
|
217
|
+
DA:130,3
|
|
218
|
+
DA:142,3
|
|
219
|
+
DA:152,5
|
|
220
|
+
DA:153,3
|
|
221
|
+
DA:155,3
|
|
222
|
+
DA:156,3
|
|
223
|
+
DA:157,2
|
|
224
|
+
DA:158,2
|
|
225
|
+
DA:159,2
|
|
226
|
+
DA:172,3
|
|
227
|
+
DA:182,5
|
|
228
|
+
DA:183,2
|
|
229
|
+
DA:196,5
|
|
230
|
+
DA:197,1
|
|
231
|
+
DA:207,5
|
|
232
|
+
DA:208,2
|
|
233
|
+
DA:210,2
|
|
234
|
+
DA:211,2
|
|
235
|
+
DA:212,1
|
|
236
|
+
DA:213,1
|
|
237
|
+
DA:216,1
|
|
238
|
+
DA:226,5
|
|
239
|
+
DA:227,2
|
|
240
|
+
DA:229,2
|
|
241
|
+
DA:230,2
|
|
242
|
+
DA:231,1
|
|
243
|
+
DA:234,1
|
|
244
|
+
DA:236,5
|
|
245
|
+
LF:68
|
|
246
|
+
LH:68
|
|
247
|
+
BRDA:58,0,0,2
|
|
248
|
+
BRDA:79,1,0,2
|
|
249
|
+
BRDA:82,2,0,1
|
|
250
|
+
BRDA:90,3,0,1
|
|
251
|
+
BRDA:128,4,0,2
|
|
252
|
+
BRDA:156,5,0,2
|
|
253
|
+
BRDA:211,6,0,1
|
|
254
|
+
BRDA:230,7,0,1
|
|
255
|
+
BRF:8
|
|
256
|
+
BRH:8
|
|
257
|
+
end_of_record
|
|
258
|
+
TN:
|
|
259
|
+
SF:helpers/tinymce/plugin.ts
|
|
260
|
+
FN:1,(anonymous_0)
|
|
261
|
+
FN:5,(anonymous_1)
|
|
262
|
+
FN:22,(anonymous_2)
|
|
263
|
+
FN:36,(anonymous_3)
|
|
264
|
+
FN:52,(anonymous_4)
|
|
265
|
+
FN:56,(anonymous_5)
|
|
266
|
+
FN:59,setOnClickEquationContent
|
|
267
|
+
FN:72,(anonymous_7)
|
|
268
|
+
FNF:8
|
|
269
|
+
FNH:0
|
|
270
|
+
FNDA:0,(anonymous_0)
|
|
271
|
+
FNDA:0,(anonymous_1)
|
|
272
|
+
FNDA:0,(anonymous_2)
|
|
273
|
+
FNDA:0,(anonymous_3)
|
|
274
|
+
FNDA:0,(anonymous_4)
|
|
275
|
+
FNDA:0,(anonymous_5)
|
|
276
|
+
FNDA:0,setOnClickEquationContent
|
|
277
|
+
FNDA:0,(anonymous_7)
|
|
278
|
+
DA:1,3
|
|
279
|
+
DA:5,0
|
|
280
|
+
DA:6,0
|
|
281
|
+
DA:23,0
|
|
282
|
+
DA:24,0
|
|
283
|
+
DA:26,0
|
|
284
|
+
DA:32,0
|
|
285
|
+
DA:33,0
|
|
286
|
+
DA:37,0
|
|
287
|
+
DA:39,0
|
|
288
|
+
DA:40,0
|
|
289
|
+
DA:42,0
|
|
290
|
+
DA:43,0
|
|
291
|
+
DA:49,0
|
|
292
|
+
DA:53,0
|
|
293
|
+
DA:56,0
|
|
294
|
+
DA:57,0
|
|
295
|
+
DA:60,0
|
|
296
|
+
DA:61,0
|
|
297
|
+
DA:66,0
|
|
298
|
+
DA:67,0
|
|
299
|
+
DA:68,0
|
|
300
|
+
DA:69,0
|
|
301
|
+
DA:72,0
|
|
302
|
+
DA:73,0
|
|
303
|
+
DA:74,0
|
|
304
|
+
DA:83,3
|
|
305
|
+
LF:27
|
|
306
|
+
LH:2
|
|
307
|
+
BRDA:23,0,0,0
|
|
308
|
+
BRDA:37,1,0,0
|
|
309
|
+
BRDA:37,1,1,0
|
|
310
|
+
BRDA:68,2,0,0
|
|
311
|
+
BRF:4
|
|
312
|
+
BRH:0
|
|
313
|
+
end_of_record
|
|
314
|
+
TN:
|
|
315
|
+
SF:test/mocks.js
|
|
316
|
+
FN:7,(anonymous_0)
|
|
317
|
+
FN:8,(anonymous_1)
|
|
318
|
+
FN:9,(anonymous_2)
|
|
319
|
+
FN:10,(anonymous_3)
|
|
320
|
+
FN:11,(anonymous_4)
|
|
321
|
+
FN:12,(anonymous_5)
|
|
322
|
+
FN:13,(anonymous_6)
|
|
323
|
+
FN:14,(anonymous_7)
|
|
324
|
+
FN:15,(anonymous_8)
|
|
325
|
+
FN:19,(anonymous_9)
|
|
326
|
+
FN:22,(anonymous_10)
|
|
327
|
+
FN:26,(anonymous_11)
|
|
328
|
+
FN:42,(anonymous_12)
|
|
329
|
+
FN:44,(anonymous_13)
|
|
330
|
+
FN:62,(anonymous_14)
|
|
331
|
+
FN:73,(anonymous_15)
|
|
332
|
+
FN:74,(anonymous_16)
|
|
333
|
+
FN:77,(anonymous_17)
|
|
334
|
+
FN:78,(anonymous_18)
|
|
335
|
+
FN:101,(anonymous_19)
|
|
336
|
+
FN:102,(anonymous_20)
|
|
337
|
+
FN:106,(anonymous_21)
|
|
338
|
+
FN:110,(anonymous_22)
|
|
339
|
+
FN:111,(anonymous_23)
|
|
340
|
+
FN:112,(anonymous_24)
|
|
341
|
+
FN:113,(anonymous_25)
|
|
342
|
+
FNF:26
|
|
343
|
+
FNH:1
|
|
344
|
+
FNDA:0,(anonymous_0)
|
|
345
|
+
FNDA:0,(anonymous_1)
|
|
346
|
+
FNDA:0,(anonymous_2)
|
|
347
|
+
FNDA:0,(anonymous_3)
|
|
348
|
+
FNDA:0,(anonymous_4)
|
|
349
|
+
FNDA:0,(anonymous_5)
|
|
350
|
+
FNDA:0,(anonymous_6)
|
|
351
|
+
FNDA:0,(anonymous_7)
|
|
352
|
+
FNDA:0,(anonymous_8)
|
|
353
|
+
FNDA:0,(anonymous_9)
|
|
354
|
+
FNDA:0,(anonymous_10)
|
|
355
|
+
FNDA:0,(anonymous_11)
|
|
356
|
+
FNDA:0,(anonymous_12)
|
|
357
|
+
FNDA:0,(anonymous_13)
|
|
358
|
+
FNDA:0,(anonymous_14)
|
|
359
|
+
FNDA:0,(anonymous_15)
|
|
360
|
+
FNDA:0,(anonymous_16)
|
|
361
|
+
FNDA:2,(anonymous_17)
|
|
362
|
+
FNDA:0,(anonymous_18)
|
|
363
|
+
FNDA:0,(anonymous_19)
|
|
364
|
+
FNDA:0,(anonymous_20)
|
|
365
|
+
FNDA:0,(anonymous_21)
|
|
366
|
+
FNDA:0,(anonymous_22)
|
|
367
|
+
FNDA:0,(anonymous_23)
|
|
368
|
+
FNDA:0,(anonymous_24)
|
|
369
|
+
FNDA:0,(anonymous_25)
|
|
370
|
+
DA:2,7
|
|
371
|
+
DA:3,7
|
|
372
|
+
DA:4,7
|
|
373
|
+
DA:7,7
|
|
374
|
+
DA:8,7
|
|
375
|
+
DA:9,7
|
|
376
|
+
DA:10,7
|
|
377
|
+
DA:11,7
|
|
378
|
+
DA:12,7
|
|
379
|
+
DA:13,7
|
|
380
|
+
DA:14,7
|
|
381
|
+
DA:15,7
|
|
382
|
+
DA:17,7
|
|
383
|
+
DA:20,0
|
|
384
|
+
DA:23,0
|
|
385
|
+
DA:24,0
|
|
386
|
+
DA:26,0
|
|
387
|
+
DA:27,0
|
|
388
|
+
DA:31,0
|
|
389
|
+
DA:38,7
|
|
390
|
+
DA:45,0
|
|
391
|
+
DA:77,2
|
|
392
|
+
DA:78,0
|
|
393
|
+
DA:118,7
|
|
394
|
+
DA:119,7
|
|
395
|
+
DA:120,7
|
|
396
|
+
DA:121,7
|
|
397
|
+
DA:122,7
|
|
398
|
+
DA:124,7
|
|
399
|
+
LF:29
|
|
400
|
+
LH:21
|
|
401
|
+
BRF:0
|
|
402
|
+
BRH:0
|
|
403
|
+
end_of_record
|
|
@@ -12,8 +12,8 @@ const WindwardPlugins = function (editor: any) {
|
|
|
12
12
|
return editor.windowManager.openUrl({
|
|
13
13
|
url: '/plugins/tinymce/math',
|
|
14
14
|
title: 'Equation editor',
|
|
15
|
-
width:
|
|
16
|
-
height:
|
|
15
|
+
width: window.innerWidth*.50,
|
|
16
|
+
height: window.innerHeight*.75,
|
|
17
17
|
buttons: [
|
|
18
18
|
{
|
|
19
19
|
type: 'cancel',
|
|
@@ -100,8 +100,8 @@ const WindwardPlugins = function (editor: any) {
|
|
|
100
100
|
return editor.windowManager.openUrl({
|
|
101
101
|
url: '/plugins/tinymce/FIB',
|
|
102
102
|
title: 'Fill in the blank',
|
|
103
|
-
width:
|
|
104
|
-
height:
|
|
103
|
+
width: window.innerWidth*.50,
|
|
104
|
+
height: window.innerHeight*.75,
|
|
105
105
|
buttons: [
|
|
106
106
|
{
|
|
107
107
|
type: 'cancel',
|
|
@@ -152,6 +152,20 @@ const WindwardPlugins = function (editor: any) {
|
|
|
152
152
|
'insertFIB',
|
|
153
153
|
'<svg width="20px" height="20px" viewBox="0 0 24 24"><path d="M17,7H22V17H17V19A1,1 0 0,0 18,20H20V22H17.5C16.95,22 16,21.55 16,21C16,21.55 15.05,22 14.5,22H12V20H14A1,1 0 0,0 15,19V5A1,1 0 0,0 14,4H12V2H14.5C15.05,2 16,2.45 16,3C16,2.45 16.95,2 17.5,2H20V4H18A1,1 0 0,0 17,5V7M2,7H13V9H4V15H13V17H2V7M20,15V9H17V15H20Z" /></svg>'
|
|
154
154
|
)
|
|
155
|
+
|
|
156
|
+
editor.ui.registry.addIcon(
|
|
157
|
+
'glossaryIcon',
|
|
158
|
+
'<svg viewBox="0 0 24 24" width="20px" height="20px" ><path d="M3,15H1V3A2,2 0 0,1 3,1H19V3H3V15M12,23A1,1 0 0,1 11,22V19H7A2,2 0 0,1 5,17V7A2,2 0 0,1 7,5H21A2,2 0 0,1 23,7V17A2,2 0 0,1 21,19H16.9L13.2,22.71C13,22.89 12.76,23 12.5,23H12M9,9V11H19V9H9M9,13V15H17V13H9Z"></path></svg>'
|
|
159
|
+
)
|
|
160
|
+
|
|
161
|
+
/* Add a button that opens a window */
|
|
162
|
+
editor.ui.registry.addButton('glossaryButton', {
|
|
163
|
+
icon: 'glossaryIcon',
|
|
164
|
+
onAction: function () {
|
|
165
|
+
/* apply format */
|
|
166
|
+
editor.formatter.apply('glossary')
|
|
167
|
+
},
|
|
168
|
+
})
|
|
155
169
|
/* Add a button that opens a window */
|
|
156
170
|
editor.ui.registry.addButton('fibButton', {
|
|
157
171
|
icon: 'insertFIB',
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
glossary: 'Glossary',
|
|
3
|
-
|
|
3
|
+
text_editor: 'Editor',
|
|
4
4
|
verified_terms: 'verified terms',
|
|
5
5
|
unverified_terms: 'unverified terms',
|
|
6
6
|
no_glossary: 'No glossary Terms detected',
|
|
7
|
+
click_to_expand: 'Click to expand editor',
|
|
8
|
+
click_to_hide_editor: 'Click to hide editor',
|
|
9
|
+
click_to_hide_glossary: 'Click to hide glossary',
|
|
7
10
|
}
|
|
@@ -3,10 +3,12 @@ export default {
|
|
|
3
3
|
from: 'De',
|
|
4
4
|
to: 'Para',
|
|
5
5
|
cc: 'CC',
|
|
6
|
+
subject: 'Sujeto',
|
|
6
7
|
body: 'Cuerpo del correo electrónico',
|
|
7
8
|
simulation: 'Simulación de correo electrónico',
|
|
8
9
|
reply: 'Responder',
|
|
9
10
|
reply_all: 'Responder a todos',
|
|
10
11
|
forward: 'Adelante',
|
|
11
12
|
reset: 'reiniciar',
|
|
13
|
+
email: 'Correo Electrónico',
|
|
12
14
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
glossary: 'Glosario',
|
|
3
|
-
|
|
3
|
+
text_editor: 'Editor',
|
|
4
4
|
verified_terms: 'términos verificados',
|
|
5
5
|
unverified_terms: 'términos no verificados',
|
|
6
6
|
no_glossary: 'No se detectaron los términos del glosario',
|
|
7
|
+
click_to_expand: 'Haga Click ampliar el editor',
|
|
8
|
+
click_to_hide_editor: 'Haga click para esconder el editor',
|
|
9
|
+
click_to_hide_glossary: 'Haga click para esconder el glosario',
|
|
7
10
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
glossary: 'Ordlista',
|
|
3
|
-
|
|
3
|
+
text_editor: 'Editor',
|
|
4
4
|
verified_terms: 'verifierade villkor',
|
|
5
5
|
unverified_terms: 'overifierade termer',
|
|
6
6
|
no_glossary: 'Ingen ordlista Termer upptäckt',
|
|
7
|
+
click_to_expand: 'klicka för att förbruka',
|
|
8
|
+
click_to_hide_editor: 'klicka för att dölja editorn',
|
|
9
|
+
click_to_hide_glossary: 'klicka för att dölja ordlistan',
|
|
7
10
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import GlossaryTerm from "../helpers/GlossaryTerm";
|
|
2
|
+
export default class GlossaryHelper {
|
|
3
|
+
private static glossaryRegex;
|
|
4
|
+
static makeToolTip(term: GlossaryTerm, text: String): string;
|
|
5
|
+
static containsGlossaryTerms(content: string): boolean;
|
|
6
|
+
static getContentVerifiedGlossaryTerms(content: string, glossary: any): GlossaryTerm[];
|
|
7
|
+
static getContentUnVerifiedGlossaryTerms(content: string, glossary: any): GlossaryTerm[];
|
|
8
|
+
static renderGlossaryWordsHtml(content: string, glossary: any): string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var GlossaryTerm_1 = require("../helpers/GlossaryTerm");
|
|
4
|
+
var _ = require("lodash");
|
|
5
|
+
var GlossaryHelper = /** @class */ (function () {
|
|
6
|
+
function GlossaryHelper() {
|
|
7
|
+
}
|
|
8
|
+
GlossaryHelper.makeToolTip = function (term, text) {
|
|
9
|
+
var word = _.isString(term.term) ?
|
|
10
|
+
'<template v-slot:term>' +
|
|
11
|
+
text +
|
|
12
|
+
'</template>' : '';
|
|
13
|
+
var definition = _.isString(term.definition) ?
|
|
14
|
+
'<template v-slot:definition>' +
|
|
15
|
+
term.definition +
|
|
16
|
+
'</template>' : '';
|
|
17
|
+
var alternate_forms = _.isString(term.alternate_forms) ?
|
|
18
|
+
'<template v-slot:alternate_forms>' +
|
|
19
|
+
term.alternate_forms +
|
|
20
|
+
'</template>' : '';
|
|
21
|
+
var related_terms = _.isString(term.related_term) ?
|
|
22
|
+
'<template v-slot:related_terms>' +
|
|
23
|
+
term.related_term +
|
|
24
|
+
'</template>' : '';
|
|
25
|
+
return ('<plugin-core-glossary-tool-tip>' +
|
|
26
|
+
word
|
|
27
|
+
+
|
|
28
|
+
definition
|
|
29
|
+
+
|
|
30
|
+
alternate_forms
|
|
31
|
+
+
|
|
32
|
+
related_terms
|
|
33
|
+
+
|
|
34
|
+
'</plugin-core-glossary-tool-tip>');
|
|
35
|
+
};
|
|
36
|
+
GlossaryHelper.containsGlossaryTerms = function (content) {
|
|
37
|
+
var regex = this.glossaryRegex;
|
|
38
|
+
return regex.exec(content) !== null;
|
|
39
|
+
};
|
|
40
|
+
GlossaryHelper.getContentVerifiedGlossaryTerms = function (content, glossary) {
|
|
41
|
+
var regex = this.glossaryRegex;
|
|
42
|
+
var currentGlossary = glossary;
|
|
43
|
+
var match;
|
|
44
|
+
var verifiedTerms = [];
|
|
45
|
+
while ((match = regex.exec(content)) !== null) {
|
|
46
|
+
// This is necessary to avoid infinite loops with zero-width matches
|
|
47
|
+
if (match.index === regex.lastIndex) {
|
|
48
|
+
regex.lastIndex++;
|
|
49
|
+
}
|
|
50
|
+
// The result can be accessed through the `m`-variable.
|
|
51
|
+
currentGlossary.forEach(function (term) {
|
|
52
|
+
var addTerm = true;
|
|
53
|
+
verifiedTerms.forEach(function (verifiedTerm) {
|
|
54
|
+
if (_.trim(_.toLower(verifiedTerm.term)) === _.trim(_.toLower(term.term))) {
|
|
55
|
+
addTerm = false;
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
if (_.trim(_.toLower(match[1])) === _.trim(_.toLower(term.term)) && addTerm) {
|
|
59
|
+
verifiedTerms.push(new GlossaryTerm_1.default(term));
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
return verifiedTerms;
|
|
64
|
+
};
|
|
65
|
+
GlossaryHelper.getContentUnVerifiedGlossaryTerms = function (content, glossary) {
|
|
66
|
+
var regex = this.glossaryRegex;
|
|
67
|
+
var match;
|
|
68
|
+
var verifiedTerms = this.getContentVerifiedGlossaryTerms(content, glossary);
|
|
69
|
+
var unVerifiedTerms = [];
|
|
70
|
+
var _loop_1 = function () {
|
|
71
|
+
// This is necessary to avoid infinite loops with zero-width matches
|
|
72
|
+
if (match.index === regex.lastIndex) {
|
|
73
|
+
regex.lastIndex++;
|
|
74
|
+
}
|
|
75
|
+
var inGlossary = [];
|
|
76
|
+
inGlossary = glossary.filter(function (item) {
|
|
77
|
+
if (_.trim(_.toLower(item.term)) === _.trim(_.toLower(match[1]))) {
|
|
78
|
+
return item;
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
var inUnverifiedArray = false;
|
|
82
|
+
unVerifiedTerms.forEach(function (unVerifiedTerm) {
|
|
83
|
+
if (_.trim(_.toLower(unVerifiedTerm.term)) === _.trim(_.toLower(match[1]))) {
|
|
84
|
+
inUnverifiedArray = true;
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
if (inGlossary.length === 0 && !inUnverifiedArray) {
|
|
88
|
+
unVerifiedTerms.push(new GlossaryTerm_1.default({ term: _.trim(match[1]), definition: 'n/a' }));
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
while ((match = regex.exec(content)) !== null) {
|
|
92
|
+
_loop_1();
|
|
93
|
+
}
|
|
94
|
+
return unVerifiedTerms;
|
|
95
|
+
};
|
|
96
|
+
GlossaryHelper.renderGlossaryWordsHtml = function (content, glossary) {
|
|
97
|
+
var _this = this;
|
|
98
|
+
var regex = this.glossaryRegex;
|
|
99
|
+
var currentGlossary = glossary;
|
|
100
|
+
var match;
|
|
101
|
+
while ((match = regex.exec(content)) !== null) {
|
|
102
|
+
// This is necessary to avoid infinite loops with zero-width matches
|
|
103
|
+
if (match.index === regex.lastIndex) {
|
|
104
|
+
regex.lastIndex++;
|
|
105
|
+
}
|
|
106
|
+
// The result can be accessed through the `m`-variable.
|
|
107
|
+
currentGlossary.forEach(function (term) {
|
|
108
|
+
if (_.trim(_.toLower(match[1])) === _.trim(_.toLower(term.term))) {
|
|
109
|
+
content = content.replace(match[0], _this.makeToolTip(term, match[1]));
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
return content;
|
|
114
|
+
};
|
|
115
|
+
GlossaryHelper.glossaryRegex = /<span.*?.class="glossary-word".*?>(.*?)<\/span>/g;
|
|
116
|
+
return GlossaryHelper;
|
|
117
|
+
}());
|
|
118
|
+
exports.default = GlossaryHelper;
|