@steedos/standard-ui 2.5.10-beta.2 → 2.5.10
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.
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
module.exports = {
|
|
9
9
|
amis_nav_schema_design: function (object_name, record_id) {
|
|
10
|
-
document.location = Steedos.absoluteUrl(`/api/amisAppNavSchemaDesign?id=${record_id}&object=${this.record.object_name}&assetUrls=${Builder.settings.assetUrls}`);
|
|
10
|
+
document.location = Steedos.absoluteUrl(`/api/amisAppNavSchemaDesign?id=${record_id}&object=${this.record.object_name}&assetUrls=${Builder.settings.assetUrls}&locale=${Builder.settings.locale}`);
|
|
11
11
|
},
|
|
12
12
|
amis_nav_schema_designVisible: function (object_name, record_id, record_permissions) {
|
|
13
13
|
var perms= {};
|
|
@@ -25,9 +25,15 @@ router.get('/api/amisAppNavSchemaDesign', core.requireAuthentication, async func
|
|
|
25
25
|
// authToken: userSession.authToken
|
|
26
26
|
// }
|
|
27
27
|
|
|
28
|
+
let locale = "zh-CN";
|
|
29
|
+
if (req.query.locale == "en-us") {
|
|
30
|
+
locale = "en-US";
|
|
31
|
+
} else if (req.query.locale == "zh-cn") {
|
|
32
|
+
locale = "zh-CN";
|
|
33
|
+
}
|
|
28
34
|
const retUrl = __meteor_runtime_config__.ROOT_URL + `/app/admin/apps/view/${req.query.id}`
|
|
29
35
|
const steedosBuilderUrl = process.env.STEEDOS_BUILDER_URL || 'https://builder.steedos.cn';
|
|
30
|
-
const builderHost = `${steedosBuilderUrl}/amis?${assetUrl}retUrl=${retUrl}`;
|
|
36
|
+
const builderHost = `${steedosBuilderUrl}/amis?${assetUrl}locale=${locale}&retUrl=${retUrl}`;
|
|
31
37
|
|
|
32
38
|
const filename = __dirname+'/amis_app_nav_schema_design.ejs'
|
|
33
39
|
const data = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/standard-ui",
|
|
3
|
-
"version": "2.5.10
|
|
3
|
+
"version": "2.5.10",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
"description": "steedos package",
|
|
13
13
|
"repository": {},
|
|
14
14
|
"license": "MIT",
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "b918b6237fcf33152033429f055d5707d3cf0e02"
|
|
16
16
|
}
|