awing-library 2.1.2-stable.8 → 2.1.2-stable.9
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/ACM-AXN/Statistics/ControlPanel.js +1 -1
- package/lib/ACM-AXN/ViewTemplate/common.d.ts +2 -1
- package/lib/ACM-AXN/ViewTemplate/common.js +23 -2
- package/lib/translate/en/translation.json +9 -2
- package/lib/translate/id/translation.json +11 -4
- package/lib/translate/ja/translation.json +11 -4
- package/lib/translate/phl/translation.json +9 -2
- package/lib/translate/th/translation.json +9 -2
- package/lib/translate/vi/translation.json +9 -2
- package/package.json +1 -1
|
@@ -208,7 +208,7 @@ function ControlPanel(_a) {
|
|
|
208
208
|
}, []);
|
|
209
209
|
(0, react_1.useEffect)(function () {
|
|
210
210
|
handleElementInput(initialFilters);
|
|
211
|
-
}, [initialFilters, queryInput]);
|
|
211
|
+
}, [initialFilters, queryInput, t]);
|
|
212
212
|
(0, react_1.useEffect)(function () {
|
|
213
213
|
var tmpQueryInput = queryInput;
|
|
214
214
|
if (!tmpQueryInput) {
|
|
@@ -2,6 +2,7 @@ import { Configs } from './interface';
|
|
|
2
2
|
export declare const fillConfigs: (input: any) => any;
|
|
3
3
|
export declare const isJSON: (value: any) => boolean;
|
|
4
4
|
export declare const getValueByPath: (object: any, path: string) => any;
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const runScriptSandBox: (params: any[], script: string) => Promise<any>;
|
|
6
|
+
export declare const runScript: (params: any[], script: string) => Promise<unknown>;
|
|
6
7
|
export declare const convertRelativeLink: (link: string, pagePath: string, templateId: string, configs: Configs) => string;
|
|
7
8
|
export declare const generateRandomInteger: (max: number) => number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.generateRandomInteger = exports.convertRelativeLink = exports.runScript = exports.getValueByPath = exports.isJSON = exports.fillConfigs = void 0;
|
|
3
|
+
exports.generateRandomInteger = exports.convertRelativeLink = exports.runScript = exports.runScriptSandBox = exports.getValueByPath = exports.isJSON = exports.fillConfigs = void 0;
|
|
4
4
|
var Enum_1 = require("./Enum");
|
|
5
5
|
var constant_1 = require("./constant");
|
|
6
6
|
var fillConfigs = function (input) {
|
|
@@ -36,7 +36,7 @@ var getValueByPath = function (object, path) {
|
|
|
36
36
|
return result;
|
|
37
37
|
};
|
|
38
38
|
exports.getValueByPath = getValueByPath;
|
|
39
|
-
var
|
|
39
|
+
var runScriptSandBox = function (params, script) {
|
|
40
40
|
try {
|
|
41
41
|
var sandboxUrl = window.REACT_APP_API_ENDPOINT + '/api/Sandbox';
|
|
42
42
|
return fetch(sandboxUrl, {
|
|
@@ -73,6 +73,27 @@ var runScript = function (params, script) {
|
|
|
73
73
|
// })
|
|
74
74
|
// })
|
|
75
75
|
};
|
|
76
|
+
exports.runScriptSandBox = runScriptSandBox;
|
|
77
|
+
var runScript = function (params, script) {
|
|
78
|
+
return new Promise(function (resolve, reject) {
|
|
79
|
+
try {
|
|
80
|
+
// eslint-disable-next-line
|
|
81
|
+
var scriptFunction = new Function(script)();
|
|
82
|
+
}
|
|
83
|
+
catch (error) {
|
|
84
|
+
scriptFunction = function () {
|
|
85
|
+
var params = [];
|
|
86
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
87
|
+
params[_i] = arguments[_i];
|
|
88
|
+
}
|
|
89
|
+
return new Promise(function (resolve, reject) { return resolve([]); });
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
scriptFunction.apply(void 0, params).then(function (result) {
|
|
93
|
+
resolve(result);
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
};
|
|
76
97
|
exports.runScript = runScript;
|
|
77
98
|
var convertRelativeLink = function (link, pagePath, templateId, configs) {
|
|
78
99
|
var isTemplatePath = link === null || link === void 0 ? void 0 : link.includes(constant_1.ACM_TEMPLATE_PATH);
|
|
@@ -678,10 +678,17 @@
|
|
|
678
678
|
},
|
|
679
679
|
"Statistics": {
|
|
680
680
|
"View": "View",
|
|
681
|
+
"ER": "ER(%)",
|
|
681
682
|
"CTR": "CTR(%)",
|
|
682
|
-
"
|
|
683
|
+
"CTR&ER": "CTR, ER(%)",
|
|
684
|
+
"Click": "Click",
|
|
685
|
+
"ER&CTR": "ER, CTR(%)",
|
|
686
|
+
"ER&AR": "ER, AR(%)",
|
|
687
|
+
"NumberOfConnections": "Number of connections",
|
|
683
688
|
"Impressions": "Impressions",
|
|
684
|
-
"Title": "Overall"
|
|
689
|
+
"Title": "Overall Statistics",
|
|
690
|
+
"Authentication": "Authentication",
|
|
691
|
+
"AuthenticationRate": "AR(%)"
|
|
685
692
|
},
|
|
686
693
|
"CampaignByUser": {
|
|
687
694
|
"Title": "Demographics & Devices",
|
|
@@ -677,11 +677,18 @@
|
|
|
677
677
|
"Title": "Ikhtisar"
|
|
678
678
|
},
|
|
679
679
|
"Statistics": {
|
|
680
|
-
"View": "
|
|
680
|
+
"View": "Lihat",
|
|
681
|
+
"ER": "ER(%)",
|
|
681
682
|
"CTR": "CTR(%)",
|
|
682
|
-
"
|
|
683
|
-
"
|
|
684
|
-
"
|
|
683
|
+
"CTR&ER": "CTR, ER(%)",
|
|
684
|
+
"Click": "Klik",
|
|
685
|
+
"ER&CTR": "ER, CTR(%)",
|
|
686
|
+
"ER&AR": "ER, AR(%)",
|
|
687
|
+
"NumberOfConnections": "Jumlah koneksi",
|
|
688
|
+
"Impressions": "Impresi",
|
|
689
|
+
"Title": "Statistik Keseluruhan",
|
|
690
|
+
"Authentication": "Otentikasi",
|
|
691
|
+
"AuthenticationRate": "AR(%)"
|
|
685
692
|
},
|
|
686
693
|
"CampaignByUser": {
|
|
687
694
|
"Title": "Demografi & Perangkat",
|
|
@@ -677,11 +677,18 @@
|
|
|
677
677
|
"Title": "概要"
|
|
678
678
|
},
|
|
679
679
|
"Statistics": {
|
|
680
|
-
"View": "
|
|
681
|
-
"
|
|
682
|
-
"
|
|
680
|
+
"View": "表示",
|
|
681
|
+
"ER": "ER(%)",
|
|
682
|
+
"CTR": "CTR(%)",
|
|
683
|
+
"CTR&ER": "CTR, ER(%)",
|
|
684
|
+
"Click": "クリック",
|
|
685
|
+
"ER&CTR": "ER, CTR(%)",
|
|
686
|
+
"ER&AR": "ER, AR(%)",
|
|
687
|
+
"NumberOfConnections": "接続数",
|
|
683
688
|
"Impressions": "インプレッション",
|
|
684
|
-
"Title": "
|
|
689
|
+
"Title": "全体統計",
|
|
690
|
+
"Authentication": "認証",
|
|
691
|
+
"AuthenticationRate": "AR(%)"
|
|
685
692
|
},
|
|
686
693
|
"CampaignByUser": {
|
|
687
694
|
"Title": "人口統計とデバイス",
|
|
@@ -678,10 +678,17 @@
|
|
|
678
678
|
},
|
|
679
679
|
"Statistics": {
|
|
680
680
|
"View": "Tingnan",
|
|
681
|
+
"ER": "ER(%)",
|
|
681
682
|
"CTR": "CTR(%)",
|
|
682
|
-
"
|
|
683
|
+
"CTR&ER": "CTR, ER(%)",
|
|
684
|
+
"Click": "I-click",
|
|
685
|
+
"ER&CTR": "ER, CTR(%)",
|
|
686
|
+
"ER&AR": "ER, AR(%)",
|
|
687
|
+
"NumberOfConnections": "Bilang ng mga koneksyon",
|
|
683
688
|
"Impressions": "Impresyon",
|
|
684
|
-
"Title": "
|
|
689
|
+
"Title": "Pangkalahatang Estadistika",
|
|
690
|
+
"Authentication": "Pagpapatotoo",
|
|
691
|
+
"AuthenticationRate": "AR(%)"
|
|
685
692
|
},
|
|
686
693
|
"CampaignByUser": {
|
|
687
694
|
"Title": "Demograpiko at Mga Device",
|
|
@@ -678,10 +678,17 @@
|
|
|
678
678
|
},
|
|
679
679
|
"Statistics": {
|
|
680
680
|
"View": "ดู",
|
|
681
|
+
"ER": "ER(%)",
|
|
681
682
|
"CTR": "CTR(%)",
|
|
682
|
-
"
|
|
683
|
+
"CTR&ER": "CTR, ER(%)",
|
|
684
|
+
"Click": "คลิก",
|
|
685
|
+
"ER&CTR": "ER, CTR(%)",
|
|
686
|
+
"ER&AR": "ER, AR(%)",
|
|
687
|
+
"NumberOfConnections": "จำนวนการเชื่อมต่อ",
|
|
683
688
|
"Impressions": "การแสดงผล",
|
|
684
|
-
"Title": "
|
|
689
|
+
"Title": "สถิติโดยรวม",
|
|
690
|
+
"Authentication": "การตรวจสอบสิทธิ์",
|
|
691
|
+
"AuthenticationRate": "AR(%)"
|
|
685
692
|
},
|
|
686
693
|
"CampaignByUser": {
|
|
687
694
|
"Title": "ประชากรศาสตร์และอุปกรณ์",
|
|
@@ -684,10 +684,17 @@
|
|
|
684
684
|
},
|
|
685
685
|
"Statistics": {
|
|
686
686
|
"View": "Số lượt",
|
|
687
|
+
"ER": "ER(%)",
|
|
687
688
|
"CTR": "CTR(%)",
|
|
689
|
+
"CTR&ER": "CTR, ER(%)",
|
|
690
|
+
"Click": "Click",
|
|
691
|
+
"Impressions": "Impressions",
|
|
692
|
+
"ER&CTR": " ER, CTR(%)",
|
|
693
|
+
"ER&AR": "ER, AR(%)",
|
|
688
694
|
"NumberOfConnections": "Lượt kết nối",
|
|
689
|
-
"
|
|
690
|
-
"
|
|
695
|
+
"Title": "Thống kê tổng",
|
|
696
|
+
"Authentication": "Xác thực",
|
|
697
|
+
"AuthenticationRate": "AR(%)"
|
|
691
698
|
},
|
|
692
699
|
"CampaignByUser": {
|
|
693
700
|
"Title": "Dữ liệu người dùng",
|