@gudhub/core 1.2.4-beta.23 → 1.2.4-beta.25
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.
|
@@ -317,12 +317,10 @@ export class IndexedDBAppServiceForWorker extends AppDataService {
|
|
|
317
317
|
|
|
318
318
|
// let dataServiceRequest = this.dataService.getAppWithoutProcessing(id);
|
|
319
319
|
let data = await this.dataService.getAppWithoutProcessing(id);
|
|
320
|
-
|
|
321
|
-
let processedData = await self.processRequestedApp(id, data);//here нужно пересмотреть
|
|
322
|
-
|
|
323
|
-
|
|
320
|
+
|
|
324
321
|
await self.putApp(id, data);
|
|
325
322
|
|
|
323
|
+
let processedData = await self.processRequestedApp(id, data);//here нужно пересмотреть
|
|
326
324
|
|
|
327
325
|
return processedData;
|
|
328
326
|
|
|
@@ -39,7 +39,7 @@ export class FileManager {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
async updateFileFromStringApi(data, file_id, file_name, extension, format) {
|
|
42
|
+
async updateFileFromStringApi(data, file_id, file_name, extension, format, alt, title) {
|
|
43
43
|
try {
|
|
44
44
|
const fileObj = {
|
|
45
45
|
file_name,
|
|
@@ -47,6 +47,8 @@ export class FileManager {
|
|
|
47
47
|
file_id,
|
|
48
48
|
format,
|
|
49
49
|
source: data,
|
|
50
|
+
alt,
|
|
51
|
+
title
|
|
50
52
|
};
|
|
51
53
|
|
|
52
54
|
const file = await this.req.post({
|
|
@@ -198,13 +200,15 @@ async getFiles(app_id, filesId = []) {
|
|
|
198
200
|
return file;
|
|
199
201
|
}
|
|
200
202
|
|
|
201
|
-
async updateFileFromString(data, file_id, file_name, extension, format) {
|
|
203
|
+
async updateFileFromString(data, file_id, file_name, extension, format, alt, title) {
|
|
202
204
|
const file = await this.updateFileFromStringApi(
|
|
203
205
|
data,
|
|
204
206
|
file_id,
|
|
205
207
|
file_name,
|
|
206
208
|
extension,
|
|
207
|
-
format
|
|
209
|
+
format,
|
|
210
|
+
alt,
|
|
211
|
+
title
|
|
208
212
|
);
|
|
209
213
|
this.updateFileInStorage(file_id, file.app_id, file);
|
|
210
214
|
return file;
|
|
@@ -931,7 +931,7 @@ export default function generateModulesList(async_modules_path, file_server_url,
|
|
|
931
931
|
data_type: 'study_journal',
|
|
932
932
|
name: 'Study Journal',
|
|
933
933
|
icon: 'timeline',
|
|
934
|
-
js: 'https://gudhub.com/modules/Study-Journal/dist/main.js',
|
|
934
|
+
js: 'https://gudhub.com/modules/Study-Journal/dist/main.js?t=1',
|
|
935
935
|
css: 'https://gudhub.com/modules/Study-Journal/dist/style.css',
|
|
936
936
|
type: 'gh_element',
|
|
937
937
|
technology: 'class'
|
|
@@ -958,11 +958,19 @@ export default function generateModulesList(async_modules_path, file_server_url,
|
|
|
958
958
|
data_type: "text_area",
|
|
959
959
|
name: "Text Area",
|
|
960
960
|
icon: "text_icon",
|
|
961
|
-
js: "https://gudhub.com/modules/text-area-ghe/dist/main.js?t=
|
|
961
|
+
js: "https://gudhub.com/modules/text-area-ghe/dist/main.js?t=3",
|
|
962
962
|
css: "https://gudhub.com/modules/text-area-ghe/dist/style.css",
|
|
963
963
|
type: "gh_element",
|
|
964
964
|
technology: "class",
|
|
965
965
|
},
|
|
966
|
+
{
|
|
967
|
+
data_type: "resource_calendar",
|
|
968
|
+
name: "Resource Сalendar",
|
|
969
|
+
icon: "calendar",
|
|
970
|
+
url: file_server_url + '/' + async_modules_path + "resource_calendar_data.js",
|
|
971
|
+
type: 'gh_element',
|
|
972
|
+
technology: 'angular'
|
|
973
|
+
},
|
|
966
974
|
/* AUTOMATION MODULES */
|
|
967
975
|
/*
|
|
968
976
|
We have next types for automations:
|
package/GUDHUB/gudhub.js
CHANGED
|
@@ -436,13 +436,15 @@ export class GudHub {
|
|
|
436
436
|
);
|
|
437
437
|
}
|
|
438
438
|
|
|
439
|
-
updateFileFromString(data, file_id, file_name, extension, format) {
|
|
439
|
+
updateFileFromString(data, file_id, file_name, extension, format, alt, title) {
|
|
440
440
|
return this.fileManager.updateFileFromString(
|
|
441
441
|
data,
|
|
442
442
|
file_id,
|
|
443
443
|
file_name,
|
|
444
444
|
extension,
|
|
445
|
-
format
|
|
445
|
+
format,
|
|
446
|
+
alt,
|
|
447
|
+
title
|
|
446
448
|
);
|
|
447
449
|
}
|
|
448
450
|
|