@gudhub/core 1.0.49 → 1.0.52
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/GUDHUB/{Processors/AppProcessor → AppProcessor}/AppProcessor.js +1 -1
- package/GUDHUB/{Processors/AppProcessor → AppProcessor}/AppProcessor.test.js +1 -1
- package/GUDHUB/{Processors/AppProcessor → AppProcessor}/AppProcessorMocks.js +0 -0
- package/GUDHUB/{Managers/ChunksManager → ChunksManager}/ChunksManager.js +0 -0
- package/GUDHUB/{Managers/ChunksManager → ChunksManager}/ChunksManager.test.js +1 -1
- package/GUDHUB/{Managers/DocumentManager → DocumentManager}/DocumentManager.js +0 -0
- package/GUDHUB/{Processors/FieldProcessor → FieldProcessor}/FieldProcessor.js +44 -1
- package/GUDHUB/{Processors/FieldProcessor → FieldProcessor}/FieldProcessor.test.js +1 -1
- package/GUDHUB/{Processors/FieldProcessor → FieldProcessor}/Untitled-1.json +0 -0
- package/GUDHUB/{Processors/FieldProcessor → FieldProcessor}/field_processor.md +0 -0
- package/GUDHUB/{Managers/FileManager → FileManager}/FileManager.js +0 -0
- package/GUDHUB/{Managers/FileManager → FileManager}/file_manager.test.js +1 -1
- package/GUDHUB/GHConstructor/ghconstructor.js +238 -0
- package/GUDHUB/{Processors/ItemProcessor → ItemProcessor}/ItemProcessor.js +1 -1
- package/GUDHUB/{Processors/ItemProcessor → ItemProcessor}/item_processor.md +0 -0
- package/GUDHUB/Storage/ModulesList.js +413 -0
- package/GUDHUB/Storage/Storage.js +12 -1
- package/GUDHUB/Utils/get_date/get_date.js +1 -1
- package/GUDHUB/gudhub.js +19 -12
- package/package.json +1 -1
- package/umd/library.min.js +22 -22
- package/umd/library.min.js.map +1 -1
- package/GUDHUB/Managers/managers.js +0 -5
- package/GUDHUB/Processors/processors.js +0 -5
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
export default function generateModulesList(async_modules_path, file_server_url) {
|
|
2
|
+
return [
|
|
3
|
+
{
|
|
4
|
+
name: "text",
|
|
5
|
+
url: file_server_url + '/' + async_modules_path + "text_data.js"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
name: "text_opt",
|
|
9
|
+
url: file_server_url + '/' + async_modules_path + "text_options_data.js"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
name: "number",
|
|
13
|
+
url: file_server_url + '/' + async_modules_path + "number_data.js"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: "task_board",
|
|
17
|
+
url: file_server_url + '/' + async_modules_path + "task_board_data.js"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: "visualizer",
|
|
21
|
+
url: file_server_url + '/' + async_modules_path + "visualizer_data.js"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: "enterprice_visualizer",
|
|
25
|
+
url: file_server_url + '/' + async_modules_path + "enterprice_visualizer_data.js"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: "email",
|
|
29
|
+
url: file_server_url + '/' + async_modules_path + "email_data.js"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: "date",
|
|
33
|
+
url: file_server_url + '/' + async_modules_path + "date_data.js"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: "radio_button",
|
|
37
|
+
url: file_server_url + '/' + async_modules_path + "radio_button_data.js"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: "radio_icon",
|
|
41
|
+
url: file_server_url + '/' + async_modules_path + "radio_icon_data.js"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: "twilio_phone",
|
|
45
|
+
url: file_server_url + '/' + async_modules_path + "twilio_phone_data.js"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: "twilio_autodialer",
|
|
49
|
+
url: file_server_url + '/' + async_modules_path + "twillio_autodialer_data.js"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: "color",
|
|
53
|
+
url: file_server_url + '/' + async_modules_path + "color_data.js"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: "charts",
|
|
57
|
+
url: file_server_url + '/' + async_modules_path + "charts_data.js"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'funnel_chart',
|
|
61
|
+
url: file_server_url + '/' + async_modules_path + "funnel_chart_data.js"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: "add_items_from_template",
|
|
65
|
+
url: file_server_url + '/' + async_modules_path + "add_items_from_template_data.js"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: "item_ref",
|
|
69
|
+
url: file_server_url + '/' + async_modules_path + "itemRef_data.js"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: "data_ref",
|
|
73
|
+
url: file_server_url + '/' + async_modules_path + "data_ref_data.js"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: "table",
|
|
77
|
+
url: file_server_url + '/' + async_modules_path + "table_data.js"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: "tile",
|
|
81
|
+
url: file_server_url + '/' + async_modules_path + "tile_data.js"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: "file",
|
|
85
|
+
url: file_server_url + '/' + async_modules_path + "file_data.js"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: "image",
|
|
89
|
+
url: file_server_url + '/' + async_modules_path + "image_data.js"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: "text_editor",
|
|
93
|
+
url: file_server_url + '/' + async_modules_path + "text_editor_data.js"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: "tinymse",
|
|
97
|
+
url: file_server_url + '/' + async_modules_path + "tinymse_data.js"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: "duration",
|
|
101
|
+
url: file_server_url + '/' + async_modules_path + "duration_data.js"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: "user",
|
|
105
|
+
url: file_server_url + '/' + async_modules_path + "user_data.js"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: "app",
|
|
109
|
+
url: file_server_url + '/' + async_modules_path + "application_data.js"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: "field",
|
|
113
|
+
url: file_server_url + '/' + async_modules_path + "field_data.js"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: "available",
|
|
117
|
+
url: file_server_url + '/' + async_modules_path + "available_data.js"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: "view_list",
|
|
121
|
+
url: file_server_url + '/' + async_modules_path + "view_list_data.js"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
name: "calculator",
|
|
125
|
+
url: file_server_url + '/' + async_modules_path + "calculator_data.js"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: "calendar",
|
|
129
|
+
url: file_server_url + '/' + async_modules_path + "calendar_data.js"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
name: "string_join",
|
|
133
|
+
url: file_server_url + '/' + async_modules_path + "string_joiner_data.js"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
name: "signature",
|
|
137
|
+
url: file_server_url + '/' + async_modules_path + "signature_data.js"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
name: "schedule",
|
|
141
|
+
url: file_server_url + '/' + async_modules_path + "schedule_data.js"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: "auto_schedule",
|
|
145
|
+
url: file_server_url + '/' + async_modules_path + "auto_schedule_data.js"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
name: "sendEmail",
|
|
149
|
+
url: file_server_url + '/' + async_modules_path + "send_email_data.js"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
name: "boolean",
|
|
153
|
+
url: file_server_url + '/' + async_modules_path + "boolean_data.js"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: "product_gallery",
|
|
157
|
+
url: file_server_url + '/' + async_modules_path + "product_gallery_data.js"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
name: "online_inventory",
|
|
161
|
+
url: file_server_url + '/' + async_modules_path + "online_inventory_data.js"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
name: "3d_edges",
|
|
165
|
+
url: file_server_url + '/' + async_modules_path + "3d_edges_data.js"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
name: "color_list",
|
|
169
|
+
url: file_server_url + '/' + async_modules_path + "color_list_data.js"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
name: "go_to_link",
|
|
173
|
+
url: file_server_url + '/' + async_modules_path + "go_to_link_data.js"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
name: "go_to_view",
|
|
177
|
+
url: file_server_url + '/' + async_modules_path + "go_to_view_data.js"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
name: "range",
|
|
181
|
+
url: file_server_url + '/' + async_modules_path + "range_data.js"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
name: "barcode",
|
|
185
|
+
url: file_server_url + '/' + async_modules_path + "barcode_data.js"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
name: "item_remote_add",
|
|
189
|
+
url: file_server_url + '/' + async_modules_path + "item_remote_add_data.js"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
name: "item_remote_update",
|
|
193
|
+
url: file_server_url + '/' + async_modules_path + "item_remote_update_data.js"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
name: "timeline",
|
|
197
|
+
url: file_server_url + '/' + async_modules_path + "timeline_data.js"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
name: "delete_item",
|
|
201
|
+
url: file_server_url + '/' + async_modules_path + "delete_action.js"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
name: "print_doc",
|
|
205
|
+
url: file_server_url + '/' + async_modules_path + "print_doc_action.js"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
name: "open_item",
|
|
209
|
+
url: file_server_url + '/' + async_modules_path + "open_item_action.js"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
name: "edit_template",
|
|
213
|
+
url: file_server_url + '/' + async_modules_path + "edit_template_action.js"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
name: "open_app",
|
|
217
|
+
url: file_server_url + '/' + async_modules_path + "open_app_action.js"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
name: "user_settings",
|
|
221
|
+
url: file_server_url + '/' + async_modules_path + "user_settings_action.js"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
name: "app_sharing",
|
|
225
|
+
url: file_server_url + '/' + async_modules_path + "sharing_action.js"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
name: "app_constructor",
|
|
229
|
+
url: file_server_url + '/' + async_modules_path + "app_constructor_action.js"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
name: "export_csv",
|
|
233
|
+
url: file_server_url + '/' + async_modules_path + "export_csv.js"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
name: "import_csv",
|
|
237
|
+
url: file_server_url + '/' + async_modules_path + "import_csv.js"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
name: "add_items",
|
|
241
|
+
url: file_server_url + '/' + async_modules_path + "add_items_action.js"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
name: "update_items",
|
|
245
|
+
url: file_server_url + '/' + async_modules_path + "update_items_action.js"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
name: "install_app",
|
|
249
|
+
url: file_server_url + '/' + async_modules_path + "install_app_action.js"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
name: "search_action",
|
|
253
|
+
url: file_server_url + '/' + async_modules_path + "search_action.js"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
name: "filter_table",
|
|
257
|
+
url: file_server_url + '/' + async_modules_path + "filter_table_action.js"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
name: "slider",
|
|
261
|
+
url: file_server_url + '/' + async_modules_path + "slider_data.js"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
name: "clone_item",
|
|
265
|
+
url: file_server_url + '/' + async_modules_path + "clone_item_action.js"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
name: "close",
|
|
269
|
+
url: file_server_url + '/' + async_modules_path + "close_action.js"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
name: "phone",
|
|
273
|
+
url: file_server_url + '/' + async_modules_path + "phone_data.js"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
name: "link",
|
|
277
|
+
url: file_server_url + '/' + async_modules_path + "link_data.js"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
name: "sheduling",
|
|
281
|
+
url: file_server_url + '/' + async_modules_path + "sheduling_data.js"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
name: "qrcode",
|
|
285
|
+
url: file_server_url + '/' + async_modules_path + "qrcode_data.js"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
name: "graph2d",
|
|
289
|
+
url: file_server_url + '/' + async_modules_path + "graph2d_data.js"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
name: "quote_tool",
|
|
293
|
+
url: file_server_url + '/' + async_modules_path + "quote_tool_data.js"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
name: "cards",
|
|
297
|
+
url: file_server_url + '/' + async_modules_path + "cards_data.js"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
name: "jsonConstructor",
|
|
301
|
+
url: file_server_url + '/' + async_modules_path + "json_constructor_data.js"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
name: "button",
|
|
305
|
+
url: file_server_url + '/' + async_modules_path + "button_action.js"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
name: "filter_advanced",
|
|
309
|
+
url: file_server_url + '/' + async_modules_path + "filter_advanced_data.js"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
name: "code_editor",
|
|
313
|
+
url: file_server_url + '/' + async_modules_path + "code_editor_data.js"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
name: "icon",
|
|
317
|
+
url: file_server_url + '/' + async_modules_path + "icon_data.js"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
name: "quoteRequest",
|
|
321
|
+
url: file_server_url + '/' + async_modules_path + "quote_request_data.js"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
name: "view_container",
|
|
325
|
+
url: file_server_url + '/' + async_modules_path + "view_container_data.js"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
name: "element_ref",
|
|
329
|
+
url: file_server_url + '/' + async_modules_path + "element_ref_data.js"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
name: "quote_tool_objects_renderer",
|
|
333
|
+
url: file_server_url + '/' + async_modules_path + "quote_tool_objects_renderer_data.js"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
name: "quote_tool_objects_renderer_generator",
|
|
337
|
+
url: file_server_url + '/' + async_modules_path + "quote_tool_objects_renderer_generator_data.js"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
name: "trigger",
|
|
341
|
+
url: file_server_url + '/' + async_modules_path + "trigger_data.js"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
name: "voting",
|
|
345
|
+
url: file_server_url + '/' + async_modules_path + "voting_data.js"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
name: "view_tabs",
|
|
349
|
+
url: file_server_url + '/' + async_modules_path + "view_tabs.js"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
name: "filter_tabs",
|
|
353
|
+
url: file_server_url + '/' + async_modules_path + "filter_tabs.js"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
name: "gps_coords",
|
|
357
|
+
url: file_server_url + '/' + async_modules_path + "gps_coords.js"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
name: "google_map",
|
|
361
|
+
url: file_server_url + '/' + async_modules_path + "google_map_data.js"
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
name: "data_migrations",
|
|
365
|
+
url: file_server_url + '/' + async_modules_path + "data_migrations.js"
|
|
366
|
+
}, {
|
|
367
|
+
name: "additional_settings",
|
|
368
|
+
url: file_server_url + '/' + async_modules_path + "gh_additional_settings_data.js"
|
|
369
|
+
}, {
|
|
370
|
+
name: "send_request",
|
|
371
|
+
url: file_server_url + '/' + async_modules_path + "send_request_data.js"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
name: "webcam",
|
|
375
|
+
url: file_server_url + '/' + async_modules_path + "webcam_data.js"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
name: "json_viewer",
|
|
379
|
+
url: file_server_url + '/' + async_modules_path + "json_viewer_data.js"
|
|
380
|
+
}, {
|
|
381
|
+
name: "notifications",
|
|
382
|
+
url: file_server_url + '/' + async_modules_path + "notifications_data.js"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
name: "api",
|
|
386
|
+
url: file_server_url + '/' + async_modules_path + "api_data.js"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
name: "smart_input",
|
|
390
|
+
url: file_server_url + '/' + async_modules_path + "smart_input_data.js"
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
name: "json_editor",
|
|
394
|
+
url: file_server_url + '/' + async_modules_path + "json_editor_data.js"
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
name: "grapes_html_editor",
|
|
398
|
+
url: file_server_url + '/' + async_modules_path + "grapes_html_editor_data.js"
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
name: "quiz",
|
|
402
|
+
url: file_server_url + '/' + async_modules_path + "quiz_data.js"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
name: "markdown_viewer",
|
|
406
|
+
url: file_server_url + '/' + async_modules_path + "markdown_viewer_data.js"
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
name: "password_input",
|
|
410
|
+
url: file_server_url + '/' + async_modules_path + "password_input_data.js"
|
|
411
|
+
},
|
|
412
|
+
]
|
|
413
|
+
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import generateModulesList from "./ModulesList.js";
|
|
2
|
+
|
|
1
3
|
export class Storage {
|
|
2
|
-
constructor() {
|
|
4
|
+
constructor(async_modules_path, file_server_url) {
|
|
3
5
|
this.apps_list = [];
|
|
4
6
|
this.users_list = [];
|
|
5
7
|
this.user = {};
|
|
8
|
+
this.modulesList = generateModulesList(async_modules_path, file_server_url);
|
|
6
9
|
}
|
|
7
10
|
|
|
8
11
|
getMainStorage() {
|
|
@@ -21,6 +24,14 @@ export class Storage {
|
|
|
21
24
|
return this.users_list;
|
|
22
25
|
}
|
|
23
26
|
|
|
27
|
+
getModulesList() {
|
|
28
|
+
return this.modulesList
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
getModuleUrl(module_id) {
|
|
32
|
+
return this.modulesList.find((module) => module.name == module_id).url;
|
|
33
|
+
}
|
|
34
|
+
|
|
24
35
|
//!!!!!!!!!!!!!!******** All Methods below should be moved to AppProcesor and Auth **********!!!!!!!!!!!!!!!!//
|
|
25
36
|
setUser(user) {
|
|
26
37
|
this.user = user;
|
|
@@ -99,7 +99,7 @@ export function checkRecurringDate(date, option) {
|
|
|
99
99
|
|
|
100
100
|
switch (option) {
|
|
101
101
|
case 'day':
|
|
102
|
-
if(date.getDate() + '.' + date.getMonth() === currentDate.getDate() + '.' +
|
|
102
|
+
if(date.getDate() + '.' + date.getMonth() === currentDate.getDate() + '.' + currentDate.getMonth()) {
|
|
103
103
|
return true;
|
|
104
104
|
} else {
|
|
105
105
|
return false;
|
package/GUDHUB/gudhub.js
CHANGED
|
@@ -5,16 +5,13 @@ import { WebSocketApi } from "./WebSocket/WebSocket.js";
|
|
|
5
5
|
import { wss_url, server_url } from "./config.js";
|
|
6
6
|
import { Utils } from "./Utils/Utils.js";
|
|
7
7
|
import { Auth } from "./Auth/Auth.js";
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
FileManager,
|
|
16
|
-
ChunksManager,
|
|
17
|
-
} from "./Managers/managers.js";
|
|
8
|
+
import { GHConstructor } from "./GHConstructor/ghconstructor.js";
|
|
9
|
+
import { AppProcessor } from "./AppProcessor/AppProcessor.js";
|
|
10
|
+
import { ItemProcessor } from "./ItemProcessor/ItemProcessor.js";
|
|
11
|
+
import { FieldProcessor } from "./FieldProcessor/FieldProcessor.js";
|
|
12
|
+
import { FileManager } from "./FileManager/FileManager.js";
|
|
13
|
+
import { ChunksManager } from "./ChunksManager/ChunksManager.js";
|
|
14
|
+
import { DocumentManager } from "./DocumentManager/DocumentManager.js";
|
|
18
15
|
import { IS_WEB } from "./consts.js";
|
|
19
16
|
|
|
20
17
|
export class GudHub {
|
|
@@ -26,10 +23,13 @@ export class GudHub {
|
|
|
26
23
|
initWebsocket: false,
|
|
27
24
|
activateSW: false,
|
|
28
25
|
swLink: "",
|
|
26
|
+
async_modules_path,
|
|
27
|
+
file_server_url
|
|
29
28
|
}
|
|
30
29
|
) {
|
|
30
|
+
this.ghconstructor = new GHConstructor();
|
|
31
31
|
this.pipeService = new PipeService();
|
|
32
|
-
this.storage = new Storage(
|
|
32
|
+
this.storage = new Storage(options.async_modules_path, options.file_server_url);
|
|
33
33
|
this.util = new Utils(this);
|
|
34
34
|
this.req = new GudHubHttpsService(options.server_url);
|
|
35
35
|
this.auth = new Auth(this.req, this.storage);
|
|
@@ -63,7 +63,8 @@ export class GudHub {
|
|
|
63
63
|
this.storage,
|
|
64
64
|
this.req,
|
|
65
65
|
this.appProcessor,
|
|
66
|
-
this.itemProcessor
|
|
66
|
+
this.itemProcessor,
|
|
67
|
+
this.pipeService
|
|
67
68
|
);
|
|
68
69
|
this.fileManager = new FileManager(this.storage, this.pipeService, this.req, this.appProcessor);
|
|
69
70
|
this.documentManager = new DocumentManager(this.req);
|
|
@@ -141,6 +142,12 @@ export class GudHub {
|
|
|
141
142
|
);
|
|
142
143
|
}
|
|
143
144
|
|
|
145
|
+
/******************* INIT ANGULAR INJECTOR *******************/
|
|
146
|
+
|
|
147
|
+
initAngularInjector(injector) {
|
|
148
|
+
return this.ghconstructor.initAngularInjector(injector);
|
|
149
|
+
}
|
|
150
|
+
|
|
144
151
|
//============ FILTER ==========//
|
|
145
152
|
filter(items, filter_list) {
|
|
146
153
|
return this.util.filter(items, filter_list);
|