@steedos/standard-ui 2.5.9 → 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 = {
@@ -1,8 +1,8 @@
1
1
  /*
2
2
  * @Author: baozhoutao@steedos.com
3
3
  * @Date: 2022-08-05 14:17:44
4
- * @LastEditors: baozhoutao@steedos.com
5
- * @LastEditTime: 2023-05-06 11:52:46
4
+ * @LastEditors: 孙浩林 sunhaolin@steedos.com
5
+ * @LastEditTime: 2023-07-22 11:09:28
6
6
  * @Description:
7
7
  */
8
8
  const _ = require('underscore');
@@ -30,6 +30,11 @@ const getLng = async function(userId){
30
30
  }
31
31
 
32
32
  module.exports = {
33
+
34
+ beforeFind: async function () {
35
+ delete this.query.fields;
36
+ },
37
+
33
38
  afterFind: async function () {
34
39
  const { spaceId } = this;
35
40
  let query = InternalData.parserFilters(this.query.filters);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/standard-ui",
3
- "version": "2.5.9",
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": "2a638a2fc89b12a6b7118cb6a9aea9c77570d16d"
15
+ "gitHead": "b918b6237fcf33152033429f055d5707d3cf0e02"
16
16
  }