qcobjects-sdk 2.4.28 → 2.4.32
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/.dockerignore +2 -0
- package/.eslintignore +4 -0
- package/.eslintrc.cjs +6 -0
- package/.gitlab-ci.yml +16 -0
- package/VERSION +1 -1
- package/package.json +55 -10
- package/src/QCObjects-SDK.js +155 -0
- package/src/index.cjs +2 -0
- package/src/index.d.ts +2 -0
- package/src/index.mjs +2 -0
- package/src/index.ts +2 -0
- package/tsconfig.d.json +5 -0
- package/tsconfig.json +10 -0
- package/.eslintrc.json +0 -28
- package/QCObjects-SDK.js +0 -138
- /package/{js → src/js}/org.qcobjects.cloud.auth.session.data.js +0 -0
- /package/{js → src/js}/org.qcobjects.cloud.auth.session.usertoken.js +0 -0
- /package/{js → src/js}/org.qcobjects.components.grid.js +0 -0
- /package/{js → src/js}/org.qcobjects.components.js +0 -0
- /package/{js → src/js}/org.qcobjects.components.list.js +0 -0
- /package/{js → src/js}/org.qcobjects.components.notifications.js +0 -0
- /package/{js → src/js}/org.qcobjects.components.slider.js +0 -0
- /package/{js → src/js}/org.qcobjects.components.splashscreen.js +0 -0
- /package/{js → src/js}/org.qcobjects.controllers.form.js +0 -0
- /package/{js → src/js}/org.qcobjects.controllers.grid.js +0 -0
- /package/{js → src/js}/org.qcobjects.controllers.js +0 -0
- /package/{js → src/js}/org.qcobjects.controllers.list.js +0 -0
- /package/{js → src/js}/org.qcobjects.controllers.slider.js +0 -0
- /package/{js → src/js}/org.qcobjects.controllers.swagger.js +0 -0
- /package/{js → src/js}/org.qcobjects.effects.js +0 -0
- /package/{js → src/js}/org.qcobjects.i18n_messages.js +0 -0
- /package/{js → src/js}/org.qcobjects.modal.controllers.js +0 -0
- /package/{js → src/js}/org.qcobjects.modal.effects.js +0 -0
- /package/{js → src/js}/org.qcobjects.models.js +0 -0
- /package/{js → src/js}/org.qcobjects.tools.canvas.js +0 -0
- /package/{js → src/js}/org.qcobjects.tools.js +0 -0
- /package/{js → src/js}/org.qcobjects.tools.layouts.js +0 -0
- /package/{js → src/js}/org.qcobjects.views.js +0 -0
- /package/{templates → src/templates}/components/modalyoulose.tpl.html +0 -0
- /package/{templates → src/templates}/components/modalyouwin.tpl.html +0 -0
- /package/{templates → src/templates}/components/splashscreen.tpl.html +0 -0
- /package/{templates → src/templates}/components/swagger-ui.tpl.html +0 -0
package/.dockerignore
ADDED
package/.eslintignore
ADDED
package/.eslintrc.cjs
ADDED
package/.gitlab-ci.yml
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
image: node:latest
|
|
2
|
+
|
|
3
|
+
stages:
|
|
4
|
+
- deploy
|
|
5
|
+
|
|
6
|
+
deploy:
|
|
7
|
+
stage: deploy
|
|
8
|
+
rules:
|
|
9
|
+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_REF_NAME =~ /^v\d+\.\d+\.\d+.*$/
|
|
10
|
+
changes:
|
|
11
|
+
- package.json
|
|
12
|
+
script:
|
|
13
|
+
- npm config set @scope:registry https://registry.npmjs.org/
|
|
14
|
+
- npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
|
|
15
|
+
- npm ci
|
|
16
|
+
# - npm publish --verbose
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.4.
|
|
1
|
+
2.4.32
|
package/package.json
CHANGED
|
@@ -1,11 +1,47 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qcobjects-sdk",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.32",
|
|
4
4
|
"description": "QCObjects SDK is a set of Controllers, Views and Components that are elementary and useful to assist developers to build applications under MVC patterns using QCObjects, Cross Browser Javascript Framework for MVC Patterns",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "src/index.cjs",
|
|
6
|
+
"module": "src/index.mjs",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"require": "./src/index.cjs",
|
|
10
|
+
"import": "./src/index.mjs"
|
|
11
|
+
},
|
|
12
|
+
"./package.json": "./package.json",
|
|
13
|
+
"./js/org.qcobjects.cloud.auth.session.data.js": "./src/js/org.qcobjects.cloud.auth.session.data.js",
|
|
14
|
+
"./js/org.qcobjects.cloud.auth.session.usertoken.js": "./src/js/org.qcobjects.cloud.auth.session.usertoken.js",
|
|
15
|
+
"./js/org.qcobjects.components.grid.js": "./src/js/org.qcobjects.components.grid.js",
|
|
16
|
+
"./js/org.qcobjects.components.js": "./src/js/org.qcobjects.components.js",
|
|
17
|
+
"./js/org.qcobjects.components.list.js": "./src/js/org.qcobjects.components.list.js",
|
|
18
|
+
"./js/org.qcobjects.components.notifications.js": "./src/js/org.qcobjects.components.notifications.js",
|
|
19
|
+
"./js/org.qcobjects.components.slider.js": "./src/js/org.qcobjects.components.slider.js",
|
|
20
|
+
"./js/org.qcobjects.components.splashscreen.js": "./src/js/org.qcobjects.components.splashscreen.js",
|
|
21
|
+
"./js/org.qcobjects.controllers.form.js": "./src/js/org.qcobjects.controllers.form.js",
|
|
22
|
+
"./js/org.qcobjects.controllers.grid.js": "./src/js/org.qcobjects.controllers.grid.js",
|
|
23
|
+
"./js/org.qcobjects.controllers.js": "./src/js/org.qcobjects.controllers.js",
|
|
24
|
+
"./js/org.qcobjects.controllers.list.js": "./src/js/org.qcobjects.controllers.list.js",
|
|
25
|
+
"./js/org.qcobjects.controllers.slider.js": "./src/js/org.qcobjects.controllers.slider.js",
|
|
26
|
+
"./js/org.qcobjects.controllers.swagger.js": "./src/js/org.qcobjects.controllers.swagger.js",
|
|
27
|
+
"./js/org.qcobjects.effects.js": "./src/js/org.qcobjects.effects.js",
|
|
28
|
+
"./js/org.qcobjects.i18n_messages.js": "./src/js/org.qcobjects.i18n_messages.js",
|
|
29
|
+
"./js/org.qcobjects.modal.controllers.js": "./src/js/org.qcobjects.modal.controllers.js",
|
|
30
|
+
"./js/org.qcobjects.modal.effects.js": "./src/js/org.qcobjects.modal.effects.js",
|
|
31
|
+
"./js/org.qcobjects.models.js": "./src/js/org.qcobjects.models.js",
|
|
32
|
+
"./js/org.qcobjects.tools.canvas.js": "./src/js/org.qcobjects.tools.canvas.js",
|
|
33
|
+
"./js/org.qcobjects.tools.js": "./src/js/org.qcobjects.tools.js",
|
|
34
|
+
"./js/org.qcobjects.tools.layouts.js": "./src/js/org.qcobjects.tools.layouts.js",
|
|
35
|
+
"./js/org.qcobjects.views.js": "./src/js/org.qcobjects.views.js",
|
|
36
|
+
"./QCObjects-SDK.js": "./js/QCObjects-SDK.js"
|
|
37
|
+
},
|
|
38
|
+
"type": "commonjs",
|
|
39
|
+
"types": "./src/index.d.ts",
|
|
40
|
+
"license": "LGPL-3.0",
|
|
6
41
|
"scripts": {
|
|
7
|
-
"test": "npm cache verify && (npx eslint *.js js/*.js --fix) && jasmine",
|
|
8
42
|
"sync": "git add . && git commit -am ",
|
|
43
|
+
"test": "(npm run lint && (npx jasmine))",
|
|
44
|
+
"lint": "(npx eslint ./**/*.ts --fix --ext ts)",
|
|
9
45
|
"preversion": "npm cache verify && npm test",
|
|
10
46
|
"postversion": "git push && git push --tags"
|
|
11
47
|
},
|
|
@@ -29,19 +65,28 @@
|
|
|
29
65
|
"webcomponents"
|
|
30
66
|
],
|
|
31
67
|
"devDependencies": {
|
|
32
|
-
"eslint": "^
|
|
33
|
-
"
|
|
68
|
+
"@typescript-eslint/eslint-plugin": "^5.58.0",
|
|
69
|
+
"@typescript-eslint/parser": "^5.58.0",
|
|
70
|
+
"eslint": "^8.38.0",
|
|
71
|
+
"eslint-config-prettier": "^8.8.0",
|
|
72
|
+
"eslint-config-qcobjects": "^0.0.23",
|
|
73
|
+
"eslint-config-qcobjects-typescript": "^2.4.5",
|
|
74
|
+
"eslint-config-semistandard": "^17.0.0",
|
|
75
|
+
"eslint-config-standard": "^17.0.0",
|
|
76
|
+
"eslint-plugin-import": "^2.27.5",
|
|
77
|
+
"eslint-plugin-n": "^15.7.0",
|
|
78
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
79
|
+
"hint": "^2.0.0",
|
|
80
|
+
"jasmine": "^3.7.0",
|
|
81
|
+
"qcobjects-tsconfig": "^2.4.10",
|
|
82
|
+
"typescript": "^5.0.4"
|
|
34
83
|
},
|
|
35
84
|
"author": "Jean Machuca <correojean@gmail.com>",
|
|
36
|
-
"license": "LGPL-3.0",
|
|
37
85
|
"bugs": {
|
|
38
86
|
"url": "https://github.com/QuickCorp/QCObjects-SDK/issues"
|
|
39
87
|
},
|
|
40
88
|
"homepage": "https://sdk.qcobjects.dev",
|
|
41
|
-
"dependencies": {
|
|
42
|
-
"jasmine": "^3.6.3"
|
|
43
|
-
},
|
|
44
89
|
"peerDependencies": {
|
|
45
|
-
"qcobjects": "^2.4.
|
|
90
|
+
"qcobjects": "^2.4.67"
|
|
46
91
|
}
|
|
47
92
|
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QCObjects SDK 2.4
|
|
3
|
+
* ________________
|
|
4
|
+
*
|
|
5
|
+
* Author: Jean Machuca <correojean@gmail.com>
|
|
6
|
+
*
|
|
7
|
+
* Cross Browser Javascript Framework for MVC Patterns
|
|
8
|
+
* QuickCorp/QCObjects is licensed under the
|
|
9
|
+
* GNU Lesser General Public License v3.0
|
|
10
|
+
* [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
|
|
11
|
+
*
|
|
12
|
+
* Permissions of this copyleft license are conditioned on making available
|
|
13
|
+
* complete source code of licensed works and modifications under the same
|
|
14
|
+
* license or the GNU GPLv3. Copyright and license notices must be preserved.
|
|
15
|
+
* Contributors provide an express grant of patent rights. However, a larger
|
|
16
|
+
* work using the licensed work through interfaces provided by the licensed
|
|
17
|
+
* work may be distributed under different terms and without source code for
|
|
18
|
+
* the larger work.
|
|
19
|
+
*
|
|
20
|
+
* Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
|
|
21
|
+
*
|
|
22
|
+
* Everyone is permitted to copy and distribute verbatim copies of this
|
|
23
|
+
* license document, but changing it is not allowed.
|
|
24
|
+
*/
|
|
25
|
+
(function __qcobjects_sdk__ (_top) {
|
|
26
|
+
"use strict";
|
|
27
|
+
if (typeof __qcobjects_sdk__.__loaded__ === "undefined"){
|
|
28
|
+
if (typeof _top === "undefined"){
|
|
29
|
+
throw Error("Top context empty: It should either global, module or window");
|
|
30
|
+
}
|
|
31
|
+
var global = _top;
|
|
32
|
+
_top.global = global;
|
|
33
|
+
var isBrowser = typeof window !== "undefined" && typeof window.self !== "undefined" && window === window.self;
|
|
34
|
+
var remoteImportsPath = CONFIG.get("remoteImportsPath");
|
|
35
|
+
var relativeImportPath = CONFIG.get("relativeImportPath");
|
|
36
|
+
var external = (!CONFIG.get("useLocalSDK")) ? (true) : (false);
|
|
37
|
+
if (external) {
|
|
38
|
+
CONFIG.set("remoteImportsPath", "https://sdk.qcobjects.dev/v2.4/js/");
|
|
39
|
+
} else {
|
|
40
|
+
CONFIG.set("relativeImportPath", "qcobjects-sdk/js/");
|
|
41
|
+
}
|
|
42
|
+
if (typeof _top._DOMCreateElement === "undefined") {
|
|
43
|
+
_top._DOMCreateElement = function (elementName) {
|
|
44
|
+
var _ret_;
|
|
45
|
+
if (isBrowser) {
|
|
46
|
+
_ret_ = document.createElement(elementName);
|
|
47
|
+
} else {
|
|
48
|
+
_ret_ = {};
|
|
49
|
+
}
|
|
50
|
+
return _ret_;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
var _imports_;
|
|
54
|
+
if (isBrowser) {
|
|
55
|
+
_imports_ = [
|
|
56
|
+
Import("org.qcobjects.i18n_messages", function () {}, external),
|
|
57
|
+
Import("org.qcobjects.models", function () {}, external),
|
|
58
|
+
Import("org.qcobjects.components", function () {}, external),
|
|
59
|
+
Import("org.qcobjects.components.grid", function () {}, external),
|
|
60
|
+
Import("org.qcobjects.components.list", function () {}, external),
|
|
61
|
+
Import("org.qcobjects.components.slider", function () {}, external),
|
|
62
|
+
Import("org.qcobjects.components.notifications", function () {}, external),
|
|
63
|
+
Import("org.qcobjects.components.splashscreen", function () {}, external),
|
|
64
|
+
Import("org.qcobjects.controllers", function () {}, external),
|
|
65
|
+
Import("org.qcobjects.controllers.grid", function () {}, external),
|
|
66
|
+
Import("org.qcobjects.controllers.list", function () {}, external),
|
|
67
|
+
Import("org.qcobjects.controllers.slider", function () {}, external),
|
|
68
|
+
Import("org.qcobjects.controllers.form", function () {}, external),
|
|
69
|
+
Import("org.qcobjects.controllers.swagger", function () {}, external),
|
|
70
|
+
Import("org.qcobjects.effects", function () {}, external),
|
|
71
|
+
Import("org.qcobjects.modal.controllers", function () {}, external),
|
|
72
|
+
Import("org.qcobjects.views", function () {}, external),
|
|
73
|
+
Import("org.qcobjects.tools.canvas", function () {}, external),
|
|
74
|
+
Import("org.qcobjects.tools.layouts", function () {}, external),
|
|
75
|
+
Import("org.qcobjects.cloud.auth.session.usertoken", function () {}, external),
|
|
76
|
+
Import("org.qcobjects.cloud.auth.session.data", function () {}, external)
|
|
77
|
+
];
|
|
78
|
+
} else {
|
|
79
|
+
// non-browsers environment
|
|
80
|
+
(function loadBackendSDKRoutes(){
|
|
81
|
+
if (!loadBackendSDKRoutes.loaded){
|
|
82
|
+
let backend = CONFIG.get("backend");
|
|
83
|
+
if (typeof backend === "undefined"){
|
|
84
|
+
backend = {};
|
|
85
|
+
}
|
|
86
|
+
if (typeof backend.routes === "undefined"){
|
|
87
|
+
backend.routes = [];
|
|
88
|
+
}
|
|
89
|
+
backend.routes = backend.routes.concat([
|
|
90
|
+
{
|
|
91
|
+
"name":"QCObjects-SDK",
|
|
92
|
+
"description":"Redirection of QCObjects SDK",
|
|
93
|
+
"path":"^/qcobjects-sdk/(.*)$",
|
|
94
|
+
"microservice":"com.qcobjects.backend.microservice.static",
|
|
95
|
+
"redirect_to": "./node_modules/qcobjects-sdk/$1",
|
|
96
|
+
"responseHeaders":{},
|
|
97
|
+
"cors":{
|
|
98
|
+
"allow_origins":"*"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name":"QCObjects-SDK.js",
|
|
103
|
+
"description":"Redirection of QCObjects SDK",
|
|
104
|
+
"path":"^/js/packages/QCObjects-SDK.js$",
|
|
105
|
+
"microservice":"com.qcobjects.backend.microservice.static",
|
|
106
|
+
"redirect_to": "./node_modules/qcobjects-sdk/QCObjects-SDK.js",
|
|
107
|
+
"responseHeaders":{},
|
|
108
|
+
"cors":{
|
|
109
|
+
"allow_origins":"*"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
]);
|
|
113
|
+
CONFIG.set("backend", backend);
|
|
114
|
+
loadBackendSDKRoutes.loaded = true;
|
|
115
|
+
}
|
|
116
|
+
})();
|
|
117
|
+
|
|
118
|
+
var _relative_path_ = "qcobjects-sdk/js/";
|
|
119
|
+
_imports_ = [
|
|
120
|
+
Import(_relative_path_ + "org.qcobjects.models", function () {}, external),
|
|
121
|
+
Import(_relative_path_ + "org.qcobjects.components", function () {}, external),
|
|
122
|
+
Import(_relative_path_ + "org.qcobjects.controllers", function () {}, external),
|
|
123
|
+
Import(_relative_path_ + "org.qcobjects.views", function () {}, external),
|
|
124
|
+
Import(_relative_path_ + "org.qcobjects.effects", function () {}, external),
|
|
125
|
+
Import(_relative_path_ + "org.qcobjects.tools.canvas", function () {}, external),
|
|
126
|
+
Import(_relative_path_ + "org.qcobjects.tools.layouts", function () {}, external),
|
|
127
|
+
Import(_relative_path_ + "org.qcobjects.cloud.auth.session.usertoken", function () {}, external),
|
|
128
|
+
Import(_relative_path_ + "org.qcobjects.cloud.auth.session.data", function () {}, external)
|
|
129
|
+
];
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
}
|
|
133
|
+
const __start__ = GlobalSettings.__start__.bind(_top);
|
|
134
|
+
_top._sdk_ = Promise.all(_imports_).then(()=>{
|
|
135
|
+
CONFIG.set("useSDK", true);
|
|
136
|
+
CONFIG.set("remoteImportsPath", remoteImportsPath);
|
|
137
|
+
CONFIG.set("relativeImportPath", relativeImportPath);
|
|
138
|
+
__start__();
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
}).call(null, (typeof module === "object" && typeof module.exports === "object") ? (
|
|
144
|
+
module.exports = (typeof globalThis !== "undefined"
|
|
145
|
+
? globalThis
|
|
146
|
+
: typeof self !== "undefined"
|
|
147
|
+
? self
|
|
148
|
+
: typeof window !== "undefined"
|
|
149
|
+
? window
|
|
150
|
+
: typeof global !== "undefined"
|
|
151
|
+
? global
|
|
152
|
+
: {})
|
|
153
|
+
) : ((typeof global === "object") ? (global) : (
|
|
154
|
+
(typeof window === "object") ? (window) : ({})
|
|
155
|
+
)));
|
package/src/index.cjs
ADDED
package/src/index.d.ts
ADDED
package/src/index.mjs
ADDED
package/src/index.ts
ADDED
package/tsconfig.d.json
ADDED
package/tsconfig.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "qcobjects-tsconfig/tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"rootDir": "src", /* Specify the root folder within your source files. */
|
|
5
|
+
"allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
|
|
6
|
+
"outDir": "build", /* Specify an output folder for all emitted files. */
|
|
7
|
+
},
|
|
8
|
+
"include": ["src/**/*.ts"],
|
|
9
|
+
"exclude": ["src/**/*.spec.js", "src/*.js"]
|
|
10
|
+
}
|
package/.eslintrc.json
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"root": true,
|
|
3
|
-
"env": {
|
|
4
|
-
"browser": true,
|
|
5
|
-
"node": true,
|
|
6
|
-
"es2021": true,
|
|
7
|
-
"es2020": true,
|
|
8
|
-
"es2017": true,
|
|
9
|
-
"es6": true
|
|
10
|
-
},
|
|
11
|
-
"extends": [
|
|
12
|
-
"eslint:recommended"
|
|
13
|
-
],
|
|
14
|
-
"globals": {
|
|
15
|
-
"Atomics": "readonly",
|
|
16
|
-
"SharedArrayBuffer": "readonly"
|
|
17
|
-
},
|
|
18
|
-
"parserOptions": {
|
|
19
|
-
"ecmaVersion": "latest",
|
|
20
|
-
"ecmaFeatures": {}
|
|
21
|
-
},
|
|
22
|
-
"rules": {
|
|
23
|
-
"semi": ["error", "always"],
|
|
24
|
-
"quotes": ["error", "double"],
|
|
25
|
-
"no-unused-vars": 1,
|
|
26
|
-
"no-undef": 0
|
|
27
|
-
}
|
|
28
|
-
}
|
package/QCObjects-SDK.js
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* QCObjects SDK 2.4
|
|
3
|
-
* ________________
|
|
4
|
-
*
|
|
5
|
-
* Author: Jean Machuca <correojean@gmail.com>
|
|
6
|
-
*
|
|
7
|
-
* Cross Browser Javascript Framework for MVC Patterns
|
|
8
|
-
* QuickCorp/QCObjects is licensed under the
|
|
9
|
-
* GNU Lesser General Public License v3.0
|
|
10
|
-
* [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
|
|
11
|
-
*
|
|
12
|
-
* Permissions of this copyleft license are conditioned on making available
|
|
13
|
-
* complete source code of licensed works and modifications under the same
|
|
14
|
-
* license or the GNU GPLv3. Copyright and license notices must be preserved.
|
|
15
|
-
* Contributors provide an express grant of patent rights. However, a larger
|
|
16
|
-
* work using the licensed work through interfaces provided by the licensed
|
|
17
|
-
* work may be distributed under different terms and without source code for
|
|
18
|
-
* the larger work.
|
|
19
|
-
*
|
|
20
|
-
* Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
|
|
21
|
-
*
|
|
22
|
-
* Everyone is permitted to copy and distribute verbatim copies of this
|
|
23
|
-
* license document, but changing it is not allowed.
|
|
24
|
-
*/
|
|
25
|
-
(function (_top) {
|
|
26
|
-
"use strict";
|
|
27
|
-
var isBrowser = typeof window !== "undefined" && typeof window.self !== "undefined" && window === window.self;
|
|
28
|
-
var remoteImportsPath = CONFIG.get("remoteImportsPath");
|
|
29
|
-
var relativeImportPath = CONFIG.get("relativeImportPath");
|
|
30
|
-
var external = (!CONFIG.get("useLocalSDK")) ? (true) : (false);
|
|
31
|
-
if (external) {
|
|
32
|
-
CONFIG.set("remoteImportsPath", "https://sdk.qcobjects.dev/v2.4/js/");
|
|
33
|
-
} else {
|
|
34
|
-
CONFIG.set("relativeImportPath", "qcobjects-sdk/js/");
|
|
35
|
-
}
|
|
36
|
-
if (typeof _top._DOMCreateElement === "undefined") {
|
|
37
|
-
_top._DOMCreateElement = function (elementName) {
|
|
38
|
-
var _ret_;
|
|
39
|
-
if (isBrowser) {
|
|
40
|
-
_ret_ = document.createElement(elementName);
|
|
41
|
-
} else {
|
|
42
|
-
_ret_ = {};
|
|
43
|
-
}
|
|
44
|
-
return _ret_;
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
var _imports_;
|
|
48
|
-
if (isBrowser) {
|
|
49
|
-
_imports_ = [
|
|
50
|
-
Import("org.qcobjects.i18n_messages", function () {}, external),
|
|
51
|
-
Import("org.qcobjects.models", function () {}, external),
|
|
52
|
-
Import("org.qcobjects.components", function () {}, external),
|
|
53
|
-
Import("org.qcobjects.components.grid", function () {}, external),
|
|
54
|
-
Import("org.qcobjects.components.list", function () {}, external),
|
|
55
|
-
Import("org.qcobjects.components.slider", function () {}, external),
|
|
56
|
-
Import("org.qcobjects.components.notifications", function () {}, external),
|
|
57
|
-
Import("org.qcobjects.components.splashscreen", function () {}, external),
|
|
58
|
-
Import("org.qcobjects.controllers", function () {}, external),
|
|
59
|
-
Import("org.qcobjects.controllers.grid", function () {}, external),
|
|
60
|
-
Import("org.qcobjects.controllers.list", function () {}, external),
|
|
61
|
-
Import("org.qcobjects.controllers.slider", function () {}, external),
|
|
62
|
-
Import("org.qcobjects.controllers.form", function () {}, external),
|
|
63
|
-
Import("org.qcobjects.controllers.swagger", function () {}, external),
|
|
64
|
-
Import("org.qcobjects.effects", function () {}, external),
|
|
65
|
-
Import("org.qcobjects.modal.controllers", function () {}, external),
|
|
66
|
-
Import("org.qcobjects.views", function () {}, external),
|
|
67
|
-
Import("org.qcobjects.tools.canvas", function () {}, external),
|
|
68
|
-
Import("org.qcobjects.tools.layouts", function () {}, external),
|
|
69
|
-
Import("org.qcobjects.cloud.auth.session.usertoken", function () {}, external),
|
|
70
|
-
Import("org.qcobjects.cloud.auth.session.data", function () {}, external)
|
|
71
|
-
];
|
|
72
|
-
} else {
|
|
73
|
-
// non-browsers environment
|
|
74
|
-
(function loadBackendSDKRoutes(){
|
|
75
|
-
if (!loadBackendSDKRoutes.loaded){
|
|
76
|
-
let backend = CONFIG.get("backend");
|
|
77
|
-
if (typeof backend === "undefined"){
|
|
78
|
-
backend = {};
|
|
79
|
-
}
|
|
80
|
-
if (typeof backend.routes === "undefined"){
|
|
81
|
-
backend.routes = [];
|
|
82
|
-
}
|
|
83
|
-
backend.routes = backend.routes.concat([
|
|
84
|
-
{
|
|
85
|
-
"name":"QCObjects-SDK",
|
|
86
|
-
"description":"Redirection of QCObjects SDK",
|
|
87
|
-
"path":"^/qcobjects-sdk/(.*)$",
|
|
88
|
-
"microservice":"com.qcobjects.backend.microservice.static",
|
|
89
|
-
"redirect_to": "./node_modules/qcobjects-sdk/$1",
|
|
90
|
-
"responseHeaders":{},
|
|
91
|
-
"cors":{
|
|
92
|
-
"allow_origins":"*"
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"name":"QCObjects-SDK.js",
|
|
97
|
-
"description":"Redirection of QCObjects SDK",
|
|
98
|
-
"path":"^/js/packages/QCObjects-SDK.js$",
|
|
99
|
-
"microservice":"com.qcobjects.backend.microservice.static",
|
|
100
|
-
"redirect_to": "./node_modules/qcobjects-sdk/QCObjects-SDK.js",
|
|
101
|
-
"responseHeaders":{},
|
|
102
|
-
"cors":{
|
|
103
|
-
"allow_origins":"*"
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
]);
|
|
107
|
-
CONFIG.set("backend", backend);
|
|
108
|
-
loadBackendSDKRoutes.loaded = true;
|
|
109
|
-
}
|
|
110
|
-
})();
|
|
111
|
-
|
|
112
|
-
var _relative_path_ = "qcobjects-sdk/js/";
|
|
113
|
-
_imports_ = [
|
|
114
|
-
Import(_relative_path_ + "org.qcobjects.models", function () {}, external),
|
|
115
|
-
Import(_relative_path_ + "org.qcobjects.components", function () {}, external),
|
|
116
|
-
Import(_relative_path_ + "org.qcobjects.controllers", function () {}, external),
|
|
117
|
-
Import(_relative_path_ + "org.qcobjects.views", function () {}, external),
|
|
118
|
-
Import(_relative_path_ + "org.qcobjects.effects", function () {}, external),
|
|
119
|
-
Import(_relative_path_ + "org.qcobjects.tools.canvas", function () {}, external),
|
|
120
|
-
Import(_relative_path_ + "org.qcobjects.tools.layouts", function () {}, external),
|
|
121
|
-
Import(_relative_path_ + "org.qcobjects.cloud.auth.session.usertoken", function () {}, external),
|
|
122
|
-
Import(_relative_path_ + "org.qcobjects.cloud.auth.session.data", function () {}, external)
|
|
123
|
-
];
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
127
|
-
_top._sdk_ = Promise.all(_imports_).then(function () {
|
|
128
|
-
CONFIG.set("useSDK", true);
|
|
129
|
-
CONFIG.set("remoteImportsPath", remoteImportsPath);
|
|
130
|
-
CONFIG.set("relativeImportPath", relativeImportPath);
|
|
131
|
-
_top.__start__();
|
|
132
|
-
|
|
133
|
-
});
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
}).call(null, (typeof module === "object" && typeof module.exports === "object") ? (module.exports = global) : ((typeof global === "object") ? (global) : (
|
|
137
|
-
(typeof window === "object") ? (window) : ({})
|
|
138
|
-
)));
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|