@gudhub/core 1.1.114 → 1.1.116
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/FileManager/file_manager.test.js +5 -5
- package/GUDHUB/GHConstructor/ghconstructor.test.js +1 -1
- package/GUDHUB/Storage/ModulesList.js +36 -37
- package/GUDHUB/Utils/AppsTemplateService/AppsTemplateService.js +4 -4
- package/GUDHUB/Utils/json_constructor/json_constructor.test.js +2 -2
- package/GUDHUB/config.js +6 -6
- package/Readme.md +115 -114
- package/fake_server/fake_java_server.js +1 -1
- package/fake_server/fake_server_data/app_132.js +7 -7
- package/fake_server/fake_server_data/app_16259.js +5 -5
- package/fake_server/fake_server_data/fake_server_data.js +5 -5
- package/package.json +1 -1
- package/umd/library.min.js +3 -3
- package/umd/library.min.js.map +1 -1
|
@@ -6,14 +6,14 @@ describe("FILE MANAGER", function () {
|
|
|
6
6
|
it("GET FILE URL", async function () {
|
|
7
7
|
//-- checking if file exist
|
|
8
8
|
let file = await gudhub.getFile(16259,809199);
|
|
9
|
-
file.should.have.property("url","https://gudhub.com/userdata/16259/809199.jpg");
|
|
9
|
+
file.should.have.property("url","https://app.gudhub.com/userdata/16259/809199.jpg");
|
|
10
10
|
});
|
|
11
11
|
|
|
12
12
|
it("GET FILES URL's", async function () {
|
|
13
13
|
//-- checking if file exist
|
|
14
14
|
let files = await gudhub.getFiles(16259,[809199,811768]);
|
|
15
|
-
files[0].should.have.property("url","https://gudhub.com/userdata/16259/809199.jpg");
|
|
16
|
-
files[1].should.have.property("url", "https://gudhub.com/userdata/16259/811768.png");
|
|
15
|
+
files[0].should.have.property("url","https://app.gudhub.com/userdata/16259/809199.jpg");
|
|
16
|
+
files[1].should.have.property("url", "https://app.gudhub.com/userdata/16259/811768.png");
|
|
17
17
|
});
|
|
18
18
|
|
|
19
19
|
it("CHECK IF FILE EXISTS", async function() {
|
|
@@ -27,7 +27,7 @@ describe("FILE MANAGER", function () {
|
|
|
27
27
|
it("DOWNLOAD FILE", async function() {
|
|
28
28
|
let file = await gudhub.downloadFileFromString(16259,811769);
|
|
29
29
|
|
|
30
|
-
file.file.url.should.equals('https://gudhub.com/userdata/16259/811769.html');
|
|
30
|
+
file.file.url.should.equals('https://app.gudhub.com/userdata/16259/811769.html');
|
|
31
31
|
file.data.should.not.be.empty();
|
|
32
32
|
});
|
|
33
33
|
|
|
@@ -37,7 +37,7 @@ describe("FILE MANAGER", function () {
|
|
|
37
37
|
let file = await gudhub.uploadFileFromString(fileToUpload);
|
|
38
38
|
|
|
39
39
|
file.extension.should.equals('html');
|
|
40
|
-
file.url.should.equals('https://gudhub.com/userdata/28818/943217.html');
|
|
40
|
+
file.url.should.equals('https://app.gudhub.com/userdata/28818/943217.html');
|
|
41
41
|
});
|
|
42
42
|
|
|
43
43
|
});
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
// it('CREATE INSTANCES FOR ALL DATA TYPES', async () => {
|
|
16
16
|
// const gudhub = new GudHub('o5A10WgXdFpvzJYt0tp6gQaIqF52vPqlbONtjq6yvCSaqr7AtDHGzIS6/9uqJgNhw0Bh5ttE8ft2xQ5xaZ5fHA==', {
|
|
17
|
-
// server_url: 'https://gudhub.com/
|
|
17
|
+
// server_url: 'https://app.gudhub.com/GudHub',
|
|
18
18
|
// async_modules_path: 'build/async_modules_node/',
|
|
19
19
|
// file_server_url: 'http://localhost:8080'
|
|
20
20
|
// });
|
|
@@ -142,8 +142,8 @@ 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/
|
|
146
|
-
css: 'https://gudhub.com/
|
|
145
|
+
js: 'https://modules.gudhub.com/FullCalendar-Gh-Element/dist/main.js?t=6',
|
|
146
|
+
css: 'https://modules.gudhub.com/FullCalendar-Gh-Element/dist/style.css?t=1',
|
|
147
147
|
type: 'gh_element',
|
|
148
148
|
technology: "class"
|
|
149
149
|
},
|
|
@@ -612,7 +612,7 @@ export default function generateModulesList(async_modules_path, file_server_url,
|
|
|
612
612
|
data_type: "button",
|
|
613
613
|
name: 'Button',
|
|
614
614
|
icon: 'button',
|
|
615
|
-
js: "https://gudhub.com/
|
|
615
|
+
js: "https://modules.gudhub.com/button_action/button_action.js?t=1",
|
|
616
616
|
type: 'gh_element',
|
|
617
617
|
technology: 'class'
|
|
618
618
|
},
|
|
@@ -620,8 +620,8 @@ export default function generateModulesList(async_modules_path, file_server_url,
|
|
|
620
620
|
data_type: "editorjs",
|
|
621
621
|
name: 'EditorJS',
|
|
622
622
|
icon: 'code_editor',
|
|
623
|
-
js: "https://gudhub.com/
|
|
624
|
-
css: "https://gudhub.com/
|
|
623
|
+
js: "https://modules.gudhub.com/Editor-Js/dist/main.js?t=2",
|
|
624
|
+
css: "https://modules.gudhub.com/Editor-Js/dist/style.css?t=2",
|
|
625
625
|
type: 'gh_element',
|
|
626
626
|
technology: 'class'
|
|
627
627
|
},
|
|
@@ -859,8 +859,8 @@ export default function generateModulesList(async_modules_path, file_server_url,
|
|
|
859
859
|
data_type: "nested_list",
|
|
860
860
|
name: 'Nested List',
|
|
861
861
|
icon: 'scheduling',
|
|
862
|
-
js: "https://gudhub.com/
|
|
863
|
-
css: "https://gudhub.com/
|
|
862
|
+
js: "https://modules.gudhub.com/Nested-List/dist/main.js?t=2",
|
|
863
|
+
css: "https://modules.gudhub.com/Nested-List/dist/style.css?t=2",
|
|
864
864
|
type: 'gh_element',
|
|
865
865
|
technology: 'class'
|
|
866
866
|
},
|
|
@@ -876,8 +876,8 @@ export default function generateModulesList(async_modules_path, file_server_url,
|
|
|
876
876
|
data_type: "markdown_viewer",
|
|
877
877
|
name: 'Markdown viewer',
|
|
878
878
|
icon: 'code_editor',
|
|
879
|
-
js: "https://gudhub.com/
|
|
880
|
-
css: "https://gudhub.com/
|
|
879
|
+
js: "https://modules.gudhub.com/markdown-it-gh-element/dist/main.js?t=1",
|
|
880
|
+
css: "https://modules.gudhub.com/markdown-it-gh-element/dist/style.css?t=1",
|
|
881
881
|
type: 'gh_element',
|
|
882
882
|
technology: "class"
|
|
883
883
|
},
|
|
@@ -885,8 +885,8 @@ export default function generateModulesList(async_modules_path, file_server_url,
|
|
|
885
885
|
data_type: "html_viewer",
|
|
886
886
|
name: 'HTML Viewer',
|
|
887
887
|
icon: 'code_editor',
|
|
888
|
-
js: "https://gudhub.com/
|
|
889
|
-
css: "https://gudhub.com/
|
|
888
|
+
js: "https://modules.gudhub.com/HTML-Viewer/dist/main.js?t=1",
|
|
889
|
+
css: "https://modules.gudhub.com/HTML-Viewer/dist/style.css?t=1",
|
|
890
890
|
type: 'gh_element',
|
|
891
891
|
technology: "class"
|
|
892
892
|
},
|
|
@@ -910,8 +910,8 @@ export default function generateModulesList(async_modules_path, file_server_url,
|
|
|
910
910
|
data_type: 'cron_picker',
|
|
911
911
|
name: 'Cron Picker',
|
|
912
912
|
icon: 'table',
|
|
913
|
-
js: 'https://gudhub.com/
|
|
914
|
-
css: 'https://gudhub.com/
|
|
913
|
+
js: 'https://modules.gudhub.com/Cron-Picker/dist/main.js?t=2',
|
|
914
|
+
css: 'https://modules.gudhub.com/Cron-Picker/dist/style.css?t=2',
|
|
915
915
|
type: 'gh_element',
|
|
916
916
|
technology: 'class'
|
|
917
917
|
},
|
|
@@ -919,8 +919,8 @@ export default function generateModulesList(async_modules_path, file_server_url,
|
|
|
919
919
|
data_type: 'balance_sheet',
|
|
920
920
|
name: 'Balance Sheet',
|
|
921
921
|
icon: 'table',
|
|
922
|
-
js: 'https://gudhub.com/
|
|
923
|
-
css: 'https://gudhub.com/
|
|
922
|
+
js: 'https://modules.gudhub.com/balance-sheet/dist/main.js?t=2',
|
|
923
|
+
css: 'https://modules.gudhub.com/balance-sheet/dist/style.css?t=2',
|
|
924
924
|
type: 'gh_element',
|
|
925
925
|
technology: 'class'
|
|
926
926
|
},
|
|
@@ -928,8 +928,8 @@ export default function generateModulesList(async_modules_path, file_server_url,
|
|
|
928
928
|
data_type: 'quote_form',
|
|
929
929
|
name: 'Quote Form',
|
|
930
930
|
icon: 'table',
|
|
931
|
-
js: 'https://gudhub.com/
|
|
932
|
-
css: 'https://gudhub.com/
|
|
931
|
+
js: 'https://modules.gudhub.com/countertop-quote-form/dist/main.js',
|
|
932
|
+
css: 'https://modules.gudhub.com/countertop-quote-form/dist/style.css',
|
|
933
933
|
type: 'gh_element',
|
|
934
934
|
technology: 'class'
|
|
935
935
|
},
|
|
@@ -937,8 +937,8 @@ export default function generateModulesList(async_modules_path, file_server_url,
|
|
|
937
937
|
data_type: 'static_nested_list',
|
|
938
938
|
name: 'Nested Filter',
|
|
939
939
|
icon: 'scheduling',
|
|
940
|
-
js: 'https://gudhub.com/
|
|
941
|
-
css: 'https://gudhub.com/
|
|
940
|
+
js: 'https://modules.gudhub.com/nested-filter/dist/main.js?t=1',
|
|
941
|
+
css: 'https://modules.gudhub.com/nested-filter/dist/style.css?t=1',
|
|
942
942
|
type: 'gh_element',
|
|
943
943
|
technology: 'class'
|
|
944
944
|
},
|
|
@@ -946,8 +946,8 @@ export default function generateModulesList(async_modules_path, file_server_url,
|
|
|
946
946
|
data_type: 'conversations',
|
|
947
947
|
name: 'Conversations',
|
|
948
948
|
icon: 'timeline',
|
|
949
|
-
js: 'https://gudhub.com/
|
|
950
|
-
css: 'https://gudhub.com/
|
|
949
|
+
js: 'https://modules.gudhub.com/conversation/dist/main.js?t=1',
|
|
950
|
+
css: 'https://modules.gudhub.com/conversation/dist/style.css?t=1',
|
|
951
951
|
type: 'gh_element',
|
|
952
952
|
technology: 'class'
|
|
953
953
|
},
|
|
@@ -955,8 +955,8 @@ export default function generateModulesList(async_modules_path, file_server_url,
|
|
|
955
955
|
data_type: 'study_journal',
|
|
956
956
|
name: 'Study Journal',
|
|
957
957
|
icon: 'study_journal',
|
|
958
|
-
js: 'https://gudhub.com/
|
|
959
|
-
css: 'https://gudhub.com/
|
|
958
|
+
js: 'https://modules.gudhub.com/Study-Journal/dist/main.js?t=1',
|
|
959
|
+
css: 'https://modules.gudhub.com/Study-Journal/dist/style.css',
|
|
960
960
|
type: 'gh_element',
|
|
961
961
|
technology: 'class'
|
|
962
962
|
},
|
|
@@ -964,8 +964,8 @@ export default function generateModulesList(async_modules_path, file_server_url,
|
|
|
964
964
|
data_type: 'study_schedule',
|
|
965
965
|
name: 'Study Schedule',
|
|
966
966
|
icon: 'timeline',
|
|
967
|
-
js: 'https://gudhub.com/
|
|
968
|
-
css: 'https://gudhub.com/
|
|
967
|
+
js: 'https://modules.gudhub.com/Study-Schedule/dist/main.js?t=1',
|
|
968
|
+
css: 'https://modules.gudhub.com/Study-Schedule/dist/style.css?t=1',
|
|
969
969
|
type: 'gh_element',
|
|
970
970
|
technology: 'class'
|
|
971
971
|
},
|
|
@@ -973,8 +973,8 @@ export default function generateModulesList(async_modules_path, file_server_url,
|
|
|
973
973
|
data_type: 'avatar',
|
|
974
974
|
name: 'Avatar',
|
|
975
975
|
icon: 'user',
|
|
976
|
-
js: 'https://gudhub.com/
|
|
977
|
-
css: 'https://gudhub.com/
|
|
976
|
+
js: 'https://modules.gudhub.com/Gh-Avatar/dist/main.js?t=1',
|
|
977
|
+
css: 'https://modules.gudhub.com/Gh-Avatar/dist/style.css?t=1',
|
|
978
978
|
type: 'gh_element',
|
|
979
979
|
technology: 'class'
|
|
980
980
|
},
|
|
@@ -982,8 +982,8 @@ export default function generateModulesList(async_modules_path, file_server_url,
|
|
|
982
982
|
data_type: "text_area",
|
|
983
983
|
name: "Text Area",
|
|
984
984
|
icon: "text_icon",
|
|
985
|
-
js: "https://gudhub.com/
|
|
986
|
-
css: "https://gudhub.com/
|
|
985
|
+
js: "https://modules.gudhub.com/text-area-ghe/dist/main.js?t=3",
|
|
986
|
+
css: "https://modules.gudhub.com/text-area-ghe/dist/style.css",
|
|
987
987
|
type: "gh_element",
|
|
988
988
|
technology: "class",
|
|
989
989
|
},
|
|
@@ -1007,8 +1007,7 @@ export default function generateModulesList(async_modules_path, file_server_url,
|
|
|
1007
1007
|
data_type: "image_annotation",
|
|
1008
1008
|
name: "Image Annotation",
|
|
1009
1009
|
icon: "box",
|
|
1010
|
-
js: "https://gudhub.com/
|
|
1011
|
-
css: "https://gudhub.com/modules/gh-image-anotation/dist/style.css",
|
|
1010
|
+
js: "https://modules.gudhub.com/gh-image-anotation/dist/main.js",
|
|
1012
1011
|
type: "gh_element",
|
|
1013
1012
|
technology: "class",
|
|
1014
1013
|
},
|
|
@@ -1016,8 +1015,8 @@ export default function generateModulesList(async_modules_path, file_server_url,
|
|
|
1016
1015
|
data_type: "area_map",
|
|
1017
1016
|
name: "Area Map",
|
|
1018
1017
|
icon: "location",
|
|
1019
|
-
js: "https://gudhub.com/
|
|
1020
|
-
css: "https://gudhub.com/
|
|
1018
|
+
js: "https://modules.gudhub.com/gh-area-map/dist/main.js",
|
|
1019
|
+
css: "https://modules.gudhub.com/gh-area-map/dist/style.css",
|
|
1021
1020
|
type: "gh_element",
|
|
1022
1021
|
technology: "class",
|
|
1023
1022
|
},
|
|
@@ -1025,8 +1024,8 @@ export default function generateModulesList(async_modules_path, file_server_url,
|
|
|
1025
1024
|
data_type: "svg_to_pdf",
|
|
1026
1025
|
name: "SVG To PDF",
|
|
1027
1026
|
icon: "box",
|
|
1028
|
-
js: "https://gudhub.com/
|
|
1029
|
-
css: "https://gudhub.com/
|
|
1027
|
+
js: "https://modules.gudhub.com/SVG-to-PDF-Gh-Element/dist/main.js",
|
|
1028
|
+
css: "https://modules.gudhub.com/SVG-to-PDF-Gh-Element/dist/style.css",
|
|
1030
1029
|
type: "gh_element",
|
|
1031
1030
|
technology: "class",
|
|
1032
1031
|
},
|
|
@@ -1042,8 +1041,8 @@ export default function generateModulesList(async_modules_path, file_server_url,
|
|
|
1042
1041
|
data_type: "assessment_journual",
|
|
1043
1042
|
name: "Assessment Journual",
|
|
1044
1043
|
icon: "text_icon",
|
|
1045
|
-
js: "https://gudhub.com/
|
|
1046
|
-
css: "https://gudhub.com/
|
|
1044
|
+
js: "https://modules.gudhub.com/Assessment-Journal/dist/main.js",
|
|
1045
|
+
css: "https://modules.gudhub.com/Assessment-Journal/dist/style.css",
|
|
1047
1046
|
type: "gh_element",
|
|
1048
1047
|
technology: "class",
|
|
1049
1048
|
},
|
|
@@ -50,7 +50,7 @@ export default class AppsTemplateService {
|
|
|
50
50
|
|
|
51
51
|
const { accesstoken } = await self.gudhub.req.axiosRequest({
|
|
52
52
|
method: 'POST',
|
|
53
|
-
url: 'https://gudhub.com/
|
|
53
|
+
url: 'https://app.gudhub.com/GudHub/auth/login',
|
|
54
54
|
form: {
|
|
55
55
|
auth_key: '3HMOtCbC0M/1/1e4y4Uxo/Kh/aFN4V5LG2//5ixx7TZyiUfMb7IHAAHCj9PsLrOSDrZuuWkbX4BIX23f51H+eA=='
|
|
56
56
|
}
|
|
@@ -60,7 +60,7 @@ export default class AppsTemplateService {
|
|
|
60
60
|
promises.push(new Promise(async (app_resolve) => {
|
|
61
61
|
let result_app;
|
|
62
62
|
if(installFromMaster) {
|
|
63
|
-
result_app = await self.gudhub.req.axiosRequest({ url: `https://gudhub.com/
|
|
63
|
+
result_app = await self.gudhub.req.axiosRequest({ url: `https://app.gudhub.com/GudHub/api/app/get?token=${accesstoken}&app_id=${self._searchOldAppId(app.app_id, self.appsConnectingMap.apps)}`, method: 'GET' });
|
|
64
64
|
} else {
|
|
65
65
|
result_app = await self.gudhub.getApp(self._searchOldAppId(app.app_id, self.appsConnectingMap.apps));
|
|
66
66
|
}
|
|
@@ -312,7 +312,7 @@ export default class AppsTemplateService {
|
|
|
312
312
|
|
|
313
313
|
const { accesstoken } = await self.gudhub.req.axiosRequest({
|
|
314
314
|
method: 'POST',
|
|
315
|
-
url: 'https://gudhub.com/
|
|
315
|
+
url: 'https://app.gudhub.com/GudHub/auth/login',
|
|
316
316
|
form: {
|
|
317
317
|
auth_key: '3HMOtCbC0M/1/1e4y4Uxo/Kh/aFN4V5LG2//5ixx7TZyiUfMb7IHAAHCj9PsLrOSDrZuuWkbX4BIX23f51H+eA=='
|
|
318
318
|
}
|
|
@@ -322,7 +322,7 @@ export default class AppsTemplateService {
|
|
|
322
322
|
let result_app;
|
|
323
323
|
|
|
324
324
|
if(installFromMaster) {
|
|
325
|
-
result_app = await self.gudhub.req.axiosRequest({ url: `https://gudhub.com/
|
|
325
|
+
result_app = await self.gudhub.req.axiosRequest({ url: `https://app.gudhub.com/GudHub/api/app/get?token=${accesstoken}&app_id=${app_id}`, method: 'GET' });
|
|
326
326
|
} else {
|
|
327
327
|
result_app = await self.gudhub.getApp(app_id);
|
|
328
328
|
}
|
|
@@ -30,9 +30,9 @@ describe("JSON CONSTRUCTOR", function () {
|
|
|
30
30
|
this.timeout(5000);
|
|
31
31
|
//-- checking interpretation mode
|
|
32
32
|
let json = await gudhub.jsonConstructor(fishtank_scheme);
|
|
33
|
-
json.fishtank[0].should.have.property("image","https://gudhub.com/userdata/16259/809199.jpg,https://gudhub.com/userdata/16259/811768.png");
|
|
33
|
+
json.fishtank[0].should.have.property("image","https://app.gudhub.com/userdata/16259/809199.jpg,https://app.gudhub.com/userdata/16259/811768.png");
|
|
34
34
|
json.fishtank[0].should.have.property("url","https://google.com,https://test.com");
|
|
35
|
-
json.fishtank[0].should.have.property("notes","https://gudhub.com/userdata/16259/811770.html?timestamp=0");
|
|
35
|
+
json.fishtank[0].should.have.property("notes","https://app.gudhub.com/userdata/16259/811770.html?timestamp=0");
|
|
36
36
|
});
|
|
37
37
|
it("GET FILTERED ITEMS LENGTH WITH CURRENT ITEM FILTER", async function () {
|
|
38
38
|
this.timeout(5000);
|
package/GUDHUB/config.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export const server_url = "https://gudhub.com/
|
|
2
|
-
//export const server_url = "https://gudhub.com/GudHub_Temp";
|
|
3
|
-
//export const server_url = "https://integration.gudhub.com/
|
|
1
|
+
export const server_url = "https://app.gudhub.com/GudHub";
|
|
2
|
+
//export const server_url = "https://app.gudhub.com/GudHub_Temp";
|
|
3
|
+
//export const server_url = "https://integration.gudhub.com/GudHub";
|
|
4
4
|
//export const server_url = "http://localhost:9000";
|
|
5
|
-
export const wss_url = "wss://gudhub.com/GudHub/ws/app/";
|
|
6
|
-
export const node_server_url = "https://gudhub.com/api/services/prod"
|
|
5
|
+
export const wss_url = "wss://app.gudhub.com/GudHub/ws/app/";
|
|
6
|
+
export const node_server_url = "https://app.gudhub.com/api/services/prod"
|
|
7
7
|
export const async_modules_path = 'build/latest/async_modules_node/';
|
|
8
8
|
export const automation_modules_path = 'build/latest/automation_modules/'
|
|
9
|
-
export const file_server_url = 'https://gudhub.com'
|
|
9
|
+
export const file_server_url = 'https://app.gudhub.com'
|
|
10
10
|
|
|
11
11
|
// FOR TESTS
|
|
12
12
|
export const port = 9000;
|