@gudhub/core 1.2.4-beta.57 → 1.2.4-beta.59
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/.parcel-cache/83e7562660f7cc15-BundleGraph +0 -0
- package/.parcel-cache/9a0d07555444f4da-AssetGraph +0 -0
- package/.parcel-cache/d3a1b9507cb44047-AssetGraph +0 -0
- package/.parcel-cache/data.mdb +0 -0
- package/.parcel-cache/dc1da35000e13623-RequestGraph +0 -0
- package/.parcel-cache/lock.mdb +0 -0
- package/.parcel-cache/snapshot-dc1da35000e13623.txt +29402 -39257
- package/.vscode/launch.json +31 -0
- package/GUDHUB/Storage/ModulesList.js +24 -1
- package/GUDHUB/Utils/filter/filter.js +32 -1
- package/diff.txt +1221 -0
- package/dist/gudhub.es.js +13459 -0
- package/dist/gudhub.umd.js +195 -0
- package/package.json +1 -2
- package/umd/library.min.js +285 -0
- package/umd/library.min.js.map +1 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.2.0",
|
|
3
|
+
"configurations": [
|
|
4
|
+
{
|
|
5
|
+
"name": "Launch Program",
|
|
6
|
+
"program": "${workspaceFolder}/app.js",
|
|
7
|
+
"request": "launch",
|
|
8
|
+
"skipFiles": [
|
|
9
|
+
"<node_internals>/**"
|
|
10
|
+
],
|
|
11
|
+
"type": "node"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"type": "node",
|
|
15
|
+
"request": "launch",
|
|
16
|
+
"runtimeVersion": "16",
|
|
17
|
+
"name": "Launch Program",
|
|
18
|
+
"skipFiles": [
|
|
19
|
+
"<node_internals>/**"
|
|
20
|
+
],
|
|
21
|
+
"program": "${workspaceFolder}/index.js"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "node-terminal",
|
|
25
|
+
"name": "Run Script: test",
|
|
26
|
+
"request": "launch",
|
|
27
|
+
"command": "npm run test",
|
|
28
|
+
"cwd": "${workspaceFolder}"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
@@ -142,7 +142,7 @@ export default function generateModulesList(async_modules_path, file_server_url,
|
|
|
142
142
|
data_type: "calendar",
|
|
143
143
|
name: 'Calendar',
|
|
144
144
|
icon: 'calendar',
|
|
145
|
-
js: 'https://gudhub.com/modules/FullCalendar-Gh-Element/dist/main.js?t=
|
|
145
|
+
js: 'https://gudhub.com/modules/FullCalendar-Gh-Element/dist/main.js?t=6',
|
|
146
146
|
css: 'https://gudhub.com/modules/FullCalendar-Gh-Element/dist/style.css?t=1',
|
|
147
147
|
type: 'gh_element',
|
|
148
148
|
technology: "class"
|
|
@@ -996,6 +996,15 @@ export default function generateModulesList(async_modules_path, file_server_url,
|
|
|
996
996
|
type: 'gh_element',
|
|
997
997
|
technology: "angular",
|
|
998
998
|
},
|
|
999
|
+
{
|
|
1000
|
+
data_type: "assessment_journual",
|
|
1001
|
+
name: "Assessment Journual",
|
|
1002
|
+
icon: "text_icon",
|
|
1003
|
+
js: "https://gudhub.com/modules/Assessment-Journal/dist/main.js",
|
|
1004
|
+
css: "https://gudhub.com/modules/Assessment-Journal/dist/style.css",
|
|
1005
|
+
type: "gh_element",
|
|
1006
|
+
technology: "class",
|
|
1007
|
+
},
|
|
999
1008
|
/* AUTOMATION MODULES */
|
|
1000
1009
|
/*
|
|
1001
1010
|
We have next types for automations:
|
|
@@ -1380,6 +1389,20 @@ export default function generateModulesList(async_modules_path, file_server_url,
|
|
|
1380
1389
|
url: file_server_url + '/' + automation_modules_path + 'js_code.js',
|
|
1381
1390
|
type: 'automation',
|
|
1382
1391
|
icon: 'code_editor'
|
|
1392
|
+
},
|
|
1393
|
+
{
|
|
1394
|
+
data_type: 'AskChatGPT',
|
|
1395
|
+
name: 'Ask ChatGPT',
|
|
1396
|
+
url: file_server_url + '/' + automation_modules_path + 'ask_chat_gpt.js',
|
|
1397
|
+
type: 'automation',
|
|
1398
|
+
icon: 'ask_chat_gpt'
|
|
1399
|
+
},
|
|
1400
|
+
{
|
|
1401
|
+
data_type: 'TeachChatGPT',
|
|
1402
|
+
name: 'Teach ChatGPT',
|
|
1403
|
+
url: file_server_url + '/' + automation_modules_path + 'teach_chat_gpt.js',
|
|
1404
|
+
type: 'automation',
|
|
1405
|
+
icon: 'teach_chat_gpt'
|
|
1383
1406
|
}
|
|
1384
1407
|
]
|
|
1385
1408
|
}
|
|
@@ -157,6 +157,24 @@ class Checker {
|
|
|
157
157
|
);
|
|
158
158
|
};
|
|
159
159
|
break;
|
|
160
|
+
|
|
161
|
+
case 'month_before_date':
|
|
162
|
+
this._checkFn = function (data, filtersValues) {
|
|
163
|
+
return filtersValues.some((_filter) =>
|
|
164
|
+
data.some((_dataItem) => {
|
|
165
|
+
const itemDate = new Date(_dataItem);
|
|
166
|
+
const endDate = new Date(_filter);
|
|
167
|
+
const startDate = new Date(endDate);
|
|
168
|
+
|
|
169
|
+
startDate.setMonth(startDate.getMonth() - 1);
|
|
170
|
+
|
|
171
|
+
if (isNaN(itemDate) || isNaN(startDate) || isNaN(endDate)) return false;
|
|
172
|
+
|
|
173
|
+
return itemDate >= startDate && itemDate <= endDate;
|
|
174
|
+
})
|
|
175
|
+
);
|
|
176
|
+
};
|
|
177
|
+
break;
|
|
160
178
|
}
|
|
161
179
|
return this;
|
|
162
180
|
}
|
|
@@ -232,6 +250,16 @@ class RecurringDateStrategy {
|
|
|
232
250
|
}
|
|
233
251
|
}
|
|
234
252
|
|
|
253
|
+
class MonthBeforeDateStrategy {
|
|
254
|
+
convert(val) {
|
|
255
|
+
return [Number(val)];
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
convertFilterValue(val) {
|
|
259
|
+
return Number(val);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
235
263
|
class Aggregate {
|
|
236
264
|
constructor() {
|
|
237
265
|
this._strategies = {
|
|
@@ -240,7 +268,8 @@ class Aggregate {
|
|
|
240
268
|
booleanStrategy: new BooleanFetchStrategy(),
|
|
241
269
|
rangeStrategy: new RangeFetchStrategy(),
|
|
242
270
|
dateStrategy: new dateFetchStrategy(),
|
|
243
|
-
recurringDateStrategy: new RecurringDateStrategy()
|
|
271
|
+
recurringDateStrategy: new RecurringDateStrategy(),
|
|
272
|
+
monthBeforeDate: new MonthBeforeDateStrategy()
|
|
244
273
|
};
|
|
245
274
|
}
|
|
246
275
|
|
|
@@ -276,6 +305,8 @@ class Aggregate {
|
|
|
276
305
|
break;
|
|
277
306
|
case "recurring_date":
|
|
278
307
|
this._currentStrategy = this._strategies.recurringDateStrategy
|
|
308
|
+
case "month_before_date":
|
|
309
|
+
this._currentStrategy = this._strategies.monthBeforeDate
|
|
279
310
|
}
|
|
280
311
|
return this;
|
|
281
312
|
}
|