@steedos/service-core-objects 3.0.0-beta.97 → 3.0.0-beta.98

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.
@@ -3,7 +3,6 @@
3
3
  "body": [
4
4
  {
5
5
  "type": "service",
6
- "messages": {},
7
6
  "className": "h-full",
8
7
  "body": [
9
8
  {
@@ -39,7 +38,8 @@
39
38
  "actions": [
40
39
  {
41
40
  "actionType": "custom",
42
- "script": "document.querySelector('.space-users-list-custom-page').classList.toggle('space-users-list-sidebar-open');"
41
+ "script": "document.querySelector('.space-users-list-custom-page').classList.toggle('space-users-list-sidebar-open');",
42
+ "expression": "${isMobile}"
43
43
  },
44
44
  {
45
45
  "actionType": "setValue",
@@ -48,7 +48,8 @@
48
48
  "value": {
49
49
  "isVisible": "${!isVisible}"
50
50
  }
51
- }
51
+ },
52
+ "expression": "${isMobile}"
52
53
  },
53
54
  {
54
55
  "actionType": "setValue",
@@ -213,101 +214,7 @@
213
214
  ],
214
215
  "data": {
215
216
  "objectName": "space_users",
216
- "context": {
217
- "rootUrl": "http://127.0.0.1:5600",
218
- "tenantId": "68400b7542187738fb1bab2c",
219
- "userId": "68400b7042187738fb1bab2a",
220
- "authToken": "cc31877680017ca5bc8b6de2a9f1cb38debce7c39bd2f79e21c43400783f8c4d852662a1e443e9c44584be",
221
- "user": {
222
- "authToken": "cc31877680017ca5bc8b6de2a9f1cb38debce7c39bd2f79e21c43400783f8c4d852662a1e443e9c44584be",
223
- "spaceId": "68400b7542187738fb1bab2c",
224
- "userId": "68400b7042187738fb1bab2a",
225
- "name": "YLH1",
226
- "username": "yinlianghui",
227
- "email": "yinlianghui@hotoa.com",
228
- "utcOffset": null,
229
- "steedos_id": "68400b7042187738fb1bab2a",
230
- "locale": "en-us",
231
- "language": "en",
232
- "roles": [
233
- "admin"
234
- ],
235
- "profile": "admin",
236
- "user": "68400b7042187738fb1bab2a",
237
- "user_accepted": true,
238
- "organization": {
239
- "_id": "68400b7542187738fb1bab2c",
240
- "name": "TEW",
241
- "fullname": "TEW",
242
- "company_id": "68400b7542187738fb1bab2c"
243
- },
244
- "organizations": [
245
- {
246
- "_id": "68400b7542187738fb1bab2c",
247
- "name": "TEW",
248
- "fullname": "TEW",
249
- "company_id": "68400b7542187738fb1bab2c"
250
- },
251
- {
252
- "_id": "684784a17f4aeba0af86e0bb",
253
- "name": "生产部",
254
- "fullname": "生产部",
255
- "company_id": "68400b7542187738fb1bab2c"
256
- }
257
- ],
258
- "space": {
259
- "_id": "68400b7542187738fb1bab2c",
260
- "name": "TEW",
261
- "admins": [
262
- "68400b7042187738fb1bab2a",
263
- "686ccd4a33466ba7d2a1fce6",
264
- "686cc9f8b6409ed05d63c80d"
265
- ]
266
- },
267
- "owner": "68400b7042187738fb1bab2a",
268
- "created_by": "68400b7042187738fb1bab2a",
269
- "created": "2025-06-04T09:01:41.340Z",
270
- "modified_by": "68400b7042187738fb1bab2a",
271
- "modified": "2025-08-31T09:38:56.388Z",
272
- "email_verified": null,
273
- "company_id": "68400b7542187738fb1bab2c",
274
- "organizations_parents": [
275
- "68400b7542187738fb1bab2c",
276
- "684784a17f4aeba0af86e0bb"
277
- ],
278
- "company_ids": [
279
- "68400b7542187738fb1bab2c"
280
- ],
281
- "spaces": [
282
- {
283
- "_id": "68400b7542187738fb1bab2c",
284
- "name": "TEW",
285
- "admins": [
286
- "68400b7042187738fb1bab2a",
287
- "686ccd4a33466ba7d2a1fce6",
288
- "686cc9f8b6409ed05d63c80d"
289
- ]
290
- }
291
- ],
292
- "companies": [
293
- {
294
- "_id": "68400b7542187738fb1bab2c",
295
- "name": "TEW",
296
- "organization": "68400b7542187738fb1bab2c"
297
- }
298
- ],
299
- "company": {
300
- "_id": "68400b7542187738fb1bab2c",
301
- "name": "TEW",
302
- "organization": "68400b7542187738fb1bab2c"
303
- },
304
- "permission_shares": [],
305
- "spaceUserId": "68400b7542187738fb1bab2d",
306
- "is_space_admin": true,
307
- "is_phone": false,
308
- "is_tablet": false
309
- }
310
- }
217
+ "context": {}
311
218
  },
312
219
  "id": "u:b7167e2fcaf0",
313
220
  "name": "page_space_users_list",
@@ -34,7 +34,7 @@ router.get('/api/amisButtonDesign', auth.requireAuthentication, async function (
34
34
  // authToken: userSession.authToken
35
35
  // }
36
36
 
37
- let locale = "zh-CN";
37
+ let locale = userSession.language || process.env.STEEDOS_DEFAULT_LANGUAGE || "zh-CN";
38
38
  if (req.query.locale?.startsWith('en')) {
39
39
  locale = "en-US";
40
40
  } else if (req.query.locale == "zh-cn") {
@@ -36,7 +36,7 @@ router.get('/api/amisObjectFieldsDesign', auth.requireAuthentication, async func
36
36
  // userId: userSession.userId,
37
37
  // authToken: userSession.authToken
38
38
  // }
39
- let locale = "zh-CN";
39
+ let locale = userSession.language || process.env.STEEDOS_DEFAULT_LANGUAGE || "zh-CN";
40
40
  if (req.query.locale?.startsWith('en')) {
41
41
  locale = "en-US";
42
42
  } else if (req.query?.locale == "zh-cn") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/service-core-objects",
3
- "version": "3.0.0-beta.97",
3
+ "version": "3.0.0-beta.98",
4
4
  "main": "package.service.js",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -10,12 +10,12 @@
10
10
  "steedos"
11
11
  ],
12
12
  "dependencies": {
13
- "@steedos/service-package-loader": "3.0.0-beta.97",
13
+ "@steedos/service-package-loader": "3.0.0-beta.98",
14
14
  "json2xls": "^0.1.2",
15
15
  "lodash": "^4.17.21"
16
16
  },
17
17
  "description": "steedos package",
18
18
  "repository": {},
19
19
  "license": "MIT",
20
- "gitHead": "ebcf37d746bcbaf2a4bd29b651e25b0d63983dc5"
20
+ "gitHead": "4b7a81157f9279ab1750ef877d94c9d64ae7968e"
21
21
  }