isdata-customer-sdk 0.1.94 → 0.1.95
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/dist/index.common.js +33 -0
- package/dist/index.common.js.map +1 -1
- package/dist/index.umd.js +33 -0
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +3 -3
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -29588,6 +29588,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29588
29588
|
getIMHanlder: function() { return /* reexport */ getIMHanlder; },
|
|
29589
29589
|
getIntegrateAppInfoByID: function() { return /* reexport */ getIntegrateAppInfoByID; },
|
|
29590
29590
|
getKey: function() { return /* reexport */ getKey; },
|
|
29591
|
+
getLanguages: function() { return /* reexport */ getLanguages; },
|
|
29591
29592
|
getLoginPageNotices: function() { return /* reexport */ getLoginPageNotices; },
|
|
29592
29593
|
getLoginPortalAccountKey: function() { return /* reexport */ getLoginPortalAccountKey; },
|
|
29593
29594
|
getMappingAppInfoByID: function() { return /* reexport */ getMappingAppInfoByID; },
|
|
@@ -29613,8 +29614,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29613
29614
|
getUserAllMappngPortal: function() { return /* reexport */ getUserAllMappngPortal; },
|
|
29614
29615
|
getUserID: function() { return /* reexport */ getUserID; },
|
|
29615
29616
|
hasListener: function() { return /* reexport */ hasListener; },
|
|
29617
|
+
i18n: function() { return /* reexport */ i18n; },
|
|
29616
29618
|
initEventCenter: function() { return /* reexport */ initEventCenter; },
|
|
29617
29619
|
initFrameWindowListener: function() { return /* reexport */ initFrameWindowListener; },
|
|
29620
|
+
loadi18nTexts: function() { return /* reexport */ loadi18nTexts; },
|
|
29618
29621
|
loginAccount: function() { return /* reexport */ loginAccount; },
|
|
29619
29622
|
logoutAccount: function() { return /* reexport */ logoutAccount; },
|
|
29620
29623
|
queryAndStoreAppVariable: function() { return /* reexport */ queryAndStoreAppVariable; },
|
|
@@ -33092,6 +33095,35 @@ const dify_extractFilenameFromUrl = url => {
|
|
|
33092
33095
|
return "downloaded_file"; // URL 解析失败时的默认文件名
|
|
33093
33096
|
}
|
|
33094
33097
|
};
|
|
33098
|
+
;// ./src/api/i18n.js
|
|
33099
|
+
|
|
33100
|
+
const getLanguages = async appID => {
|
|
33101
|
+
let queryData = {
|
|
33102
|
+
param: {
|
|
33103
|
+
appID: appID
|
|
33104
|
+
}
|
|
33105
|
+
};
|
|
33106
|
+
let response = await request.post(`/dataservice/rest/orchestration/getAppLanguages`, queryData);
|
|
33107
|
+
let resultDatas = response.data.resultDatas || [];
|
|
33108
|
+
return resultDatas;
|
|
33109
|
+
};
|
|
33110
|
+
const i18n = (key, appID, localID) => {
|
|
33111
|
+
let result = window.customI18nObject?.get(`${appID}-${key}-${localID}`) || key;
|
|
33112
|
+
return result;
|
|
33113
|
+
};
|
|
33114
|
+
const loadi18nTexts = async appID => {
|
|
33115
|
+
let queryData = {
|
|
33116
|
+
param: {
|
|
33117
|
+
appID: appID
|
|
33118
|
+
}
|
|
33119
|
+
};
|
|
33120
|
+
let response = await request.post(`/dataservice/rest/orchestration/getAllTexts`, queryData);
|
|
33121
|
+
let resultDatas = response.data.resultDatas || [];
|
|
33122
|
+
window.customI18nObject = new Map();
|
|
33123
|
+
for (let item of resultDatas) {
|
|
33124
|
+
window.customI18nObject.set(`${appID}-${item.key}-${item.lang}`, item.value);
|
|
33125
|
+
}
|
|
33126
|
+
};
|
|
33095
33127
|
;// ./src/main.js
|
|
33096
33128
|
|
|
33097
33129
|
|
|
@@ -33100,6 +33132,7 @@ const dify_extractFilenameFromUrl = url => {
|
|
|
33100
33132
|
|
|
33101
33133
|
|
|
33102
33134
|
|
|
33135
|
+
|
|
33103
33136
|
;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js
|
|
33104
33137
|
|
|
33105
33138
|
|