@windward/core 0.0.2 → 0.0.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 +2 -2
- package/components/Content/Blocks/Tab.vue +8 -1
- package/components/Settings/TabSettings.vue +5 -2
- package/components/utils/ContentViewer.vue +5 -2
- package/components/utils/TinyMCEWrapper.vue +118 -24
- package/components/utils/assets/tinymce/css/content.scss +188 -0
- 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/GlossaryHelper.ts +1 -1
- package/helpers/tinymce/plugin.ts +13 -4
- package/i18n/en-US/components/utils/tiny_mce_wrapper.ts +11 -0
- 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 +4 -2
- package/plugin.js +0 -11
- package/components/Content/Blocks/Table.vue +0 -68
- package/test/Components/Content/Blocks/Table.spec.js +0 -21
|
@@ -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
|
|
@@ -38,7 +38,7 @@ export default class GlossaryHelper {
|
|
|
38
38
|
|
|
39
39
|
}
|
|
40
40
|
public static containsGlossaryTerms(content :string): boolean {
|
|
41
|
-
const regex =
|
|
41
|
+
const regex = this.glossaryRegex
|
|
42
42
|
|
|
43
43
|
return regex.exec(content) !== null
|
|
44
44
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
const MathEditorPlugin = function (editor: any) {
|
|
2
2
|
let formula: any
|
|
3
3
|
// ----- Events ----- //
|
|
4
|
-
|
|
4
|
+
editor.ui.registry.addIcon('insertMath', '<svg x="0px" y="0px"width="20px" height="20px" viewBox="0 0 445.878 445.878" style="enable-background:new 0 0 445.878 445.878;">' +
|
|
5
|
+
'<path d="M426.024,86.447H209.705l-84.911,298.911c-2.568,7.967-9.854,13.482-18.22,13.771c-0.236,0-0.464,0.006-0.688,0.006 c-8.092,0-15.41-4.924-18.436-12.478l-34.714-86.782H19.851C8.884,299.876,0,290.986,0,280.022 c0-10.965,8.893-19.854,19.851-19.854H66.18c8.109,0,15.421,4.941,18.436,12.483l19.237,48.09l72.472-260.218 c2.639-8.213,10.279-13.781,18.903-13.781h230.798c10.97,0,19.854,8.89,19.854,19.851S436.988,86.447,426.024,86.447z M436.723,353.227l-78.259-87.904l74.576-82.783c1.318-1.454,1.638-3.547,0.857-5.341c-0.804-1.791-2.577-2.946-4.54-2.946h-47.18 c-1.442,0-2.802,0.629-3.759,1.72l-50.059,58.047l-49.674-58.029c-0.939-1.103-2.317-1.738-3.771-1.738h-49.334 c-1.956,0-3.729,1.149-4.521,2.929c-0.81,1.785 0.479,3.875,0.824,5.332l73.743,82.81l-77.641,87.923 c-1.297,1.465-1.605,3.552 0.813,5.325c0.813,1.785,2.586,2.92,4.528,2.92h48.9c1.472,0,2.867-0.65,3.807-1.785l51.819-62.181 l53.05,62.229c0.951,1.11,2.328,1.743,3.782,1.743h49.97c1.962,0,3.735-1.141,4.527-2.926 C438.354,356.779,438.035,354.692,436.723,353.227z"/>' +
|
|
6
|
+
'</svg>' );
|
|
5
7
|
editor.addCommand('equation-window', function (data: any) {
|
|
6
8
|
return editor.windowManager.openUrl({
|
|
7
9
|
url: '/plugins/tinymce/math',
|
|
@@ -46,9 +48,15 @@ const MathEditorPlugin = function (editor: any) {
|
|
|
46
48
|
})
|
|
47
49
|
})
|
|
48
50
|
|
|
49
|
-
editor.ui.registry.addButton('
|
|
50
|
-
|
|
51
|
-
|
|
51
|
+
editor.ui.registry.addButton('mathButton', {
|
|
52
|
+
icon: 'insertMath',
|
|
53
|
+
onAction: () => {
|
|
54
|
+
editor.execCommand('equation-window', true)
|
|
55
|
+
},
|
|
56
|
+
})
|
|
57
|
+
editor.ui.registry.addMenuItem('math', {
|
|
58
|
+
text: 'Math',
|
|
59
|
+
icon: 'insertMath',
|
|
52
60
|
onAction: () => {
|
|
53
61
|
editor.execCommand('equation-window', true)
|
|
54
62
|
},
|
|
@@ -80,4 +88,5 @@ const MathEditorPlugin = function (editor: any) {
|
|
|
80
88
|
}
|
|
81
89
|
}
|
|
82
90
|
|
|
91
|
+
|
|
83
92
|
export { MathEditorPlugin }
|
|
@@ -4,4 +4,15 @@ export default {
|
|
|
4
4
|
alternate_forms: 'Alternate Forms',
|
|
5
5
|
definition: 'definition',
|
|
6
6
|
related_terms: 'related terms',
|
|
7
|
+
table: {
|
|
8
|
+
default: 'Default Table',
|
|
9
|
+
default_white_line: 'Default Table white lines',
|
|
10
|
+
excel: 'Excel Table',
|
|
11
|
+
ledger: 'Ledger Table',
|
|
12
|
+
ledger_right: 'Right Aligned Ledger Table',
|
|
13
|
+
ledger_left: 'Left Aligned Ledger Table',
|
|
14
|
+
project_management: 'Project Management',
|
|
15
|
+
t_chart: 'T Chart',
|
|
16
|
+
subject_report: 'Subject Report',
|
|
17
|
+
},
|
|
7
18
|
}
|
|
@@ -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;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var GlossaryTerm = /** @class */ (function () {
|
|
4
|
+
function GlossaryTerm(params) {
|
|
5
|
+
this.alternate_forms = null;
|
|
6
|
+
this.related_term = null;
|
|
7
|
+
this.required = ['term', 'definition'];
|
|
8
|
+
this.required.forEach(function (field) {
|
|
9
|
+
if (!params[field]) {
|
|
10
|
+
throw new Error('Glossary term ' + field + ' is required');
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
this.term = params.term;
|
|
14
|
+
this.definition = params.definition;
|
|
15
|
+
this.alternate_forms = params.alternate_forms || null;
|
|
16
|
+
this.related_term = params.related_term || null;
|
|
17
|
+
}
|
|
18
|
+
GlossaryTerm.toString = function () {
|
|
19
|
+
};
|
|
20
|
+
return GlossaryTerm;
|
|
21
|
+
}());
|
|
22
|
+
exports.default = GlossaryTerm;
|