@etsoo/appscript 1.4.79 → 1.4.80
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/lib/cjs/app/CoreApp.js +1 -24
- package/lib/cjs/i18n/en.js +1 -24
- package/lib/cjs/i18n/zhHans.js +1 -24
- package/lib/cjs/i18n/zhHant.js +1 -24
- package/package.json +4 -5
- package/tsconfig.cjs.json +2 -2
package/lib/cjs/app/CoreApp.js
CHANGED
|
@@ -1,27 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
3
|
exports.CoreApp = void 0;
|
|
27
4
|
const notificationbase_1 = require("@etsoo/notificationbase");
|
|
@@ -35,7 +12,7 @@ const ActionResultError_1 = require("../result/ActionResultError");
|
|
|
35
12
|
const IApp_1 = require("./IApp");
|
|
36
13
|
const UserRole_1 = require("./UserRole");
|
|
37
14
|
let CJ;
|
|
38
|
-
const loadCrypto = () =>
|
|
15
|
+
const loadCrypto = () => import('crypto-js');
|
|
39
16
|
/**
|
|
40
17
|
* Core application
|
|
41
18
|
*/
|
package/lib/cjs/i18n/en.js
CHANGED
|
@@ -1,27 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
3
|
exports.en = void 0;
|
|
27
4
|
const shared_1 = require("@etsoo/shared");
|
|
@@ -32,7 +9,7 @@ const shared_1 = require("@etsoo/shared");
|
|
|
32
9
|
*/
|
|
33
10
|
const en = (resources) => shared_1.DomUtils.en(async () => {
|
|
34
11
|
const [r1, r2] = await Promise.all([
|
|
35
|
-
|
|
12
|
+
import('./en.json'),
|
|
36
13
|
new Promise((resolve) => {
|
|
37
14
|
if (typeof resources === 'object') {
|
|
38
15
|
resolve(resources);
|
package/lib/cjs/i18n/zhHans.js
CHANGED
|
@@ -1,27 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
3
|
exports.zhHans = void 0;
|
|
27
4
|
const shared_1 = require("@etsoo/shared");
|
|
@@ -32,7 +9,7 @@ const shared_1 = require("@etsoo/shared");
|
|
|
32
9
|
*/
|
|
33
10
|
const zhHans = (resources) => shared_1.DomUtils.zhHans(async () => {
|
|
34
11
|
const [r1, r2] = await Promise.all([
|
|
35
|
-
|
|
12
|
+
import('./zh-Hans.json'),
|
|
36
13
|
new Promise((resolve) => {
|
|
37
14
|
if (typeof resources === 'object') {
|
|
38
15
|
resolve(resources);
|
package/lib/cjs/i18n/zhHant.js
CHANGED
|
@@ -1,27 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
3
|
exports.zhHant = void 0;
|
|
27
4
|
const shared_1 = require("@etsoo/shared");
|
|
@@ -32,7 +9,7 @@ const shared_1 = require("@etsoo/shared");
|
|
|
32
9
|
*/
|
|
33
10
|
const zhHant = (resources) => shared_1.DomUtils.zhHant(async () => {
|
|
34
11
|
const [r1, r2] = await Promise.all([
|
|
35
|
-
|
|
12
|
+
import('./zh-Hant.json'),
|
|
36
13
|
new Promise((resolve) => {
|
|
37
14
|
if (typeof resources === 'object') {
|
|
38
15
|
resolve(resources);
|
package/package.json
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/appscript",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.80",
|
|
4
4
|
"description": "Applications shared TypeScript framework",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/mjs/index.js",
|
|
7
|
-
"type": "module",
|
|
8
7
|
"types": "lib/mjs/index.d.ts",
|
|
9
8
|
"exports": {
|
|
10
9
|
".": {
|
|
@@ -53,9 +52,9 @@
|
|
|
53
52
|
},
|
|
54
53
|
"homepage": "https://github.com/ETSOO/AppScript#readme",
|
|
55
54
|
"dependencies": {
|
|
56
|
-
"@etsoo/notificationbase": "^1.1.
|
|
57
|
-
"@etsoo/restclient": "^1.1.
|
|
58
|
-
"@etsoo/shared": "^1.2.
|
|
55
|
+
"@etsoo/notificationbase": "^1.1.41",
|
|
56
|
+
"@etsoo/restclient": "^1.1.1",
|
|
57
|
+
"@etsoo/shared": "^1.2.33",
|
|
59
58
|
"crypto-js": "^4.2.0"
|
|
60
59
|
},
|
|
61
60
|
"devDependencies": {
|
package/tsconfig.cjs.json
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
/* Visit https://aka.ms/tsconfig.json to read more about this file */
|
|
4
4
|
"target": "ES2020",
|
|
5
5
|
"allowJs": false,
|
|
6
|
-
"module": "
|
|
7
|
-
"moduleResolution": "
|
|
6
|
+
"module": "NodeNext",
|
|
7
|
+
"moduleResolution": "NodeNext",
|
|
8
8
|
"resolveJsonModule": true,
|
|
9
9
|
"isolatedModules": true,
|
|
10
10
|
"outDir": "./lib/cjs",
|