@steedos/service-pages 2.3.2-beta.9 → 2.3.2

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.
@@ -57,7 +57,7 @@
57
57
  }
58
58
  }
59
59
 
60
- Steedos.Page.render = function (root, page, data, options) {
60
+ Steedos.Page.render = function (root, page, data, options = {}) {
61
61
  const loadingContentData = {
62
62
  "inputs": [],
63
63
  // "title": "loading",
@@ -117,7 +117,15 @@
117
117
  rootUrl: __meteor_runtime_config__.ROOT_URL,
118
118
  tenantId: Creator.USER_CONTEXT.spaceId,
119
119
  userId: Creator.USER_CONTEXT.userId,
120
- authToken: Creator.USER_CONTEXT.user.authToken
120
+ authToken: Creator.USER_CONTEXT.user.authToken,
121
+ user: Creator.USER_CONTEXT.user
122
+ },
123
+ global: {
124
+ userId: Creator.USER_CONTEXT.userId,
125
+ spaceId: Creator.USER_CONTEXT.spaceId,
126
+ user: Creator.USER_CONTEXT.user,
127
+ now: new Date(),
128
+ // mode: mode //由表单提供
121
129
  }
122
130
  }
123
131
  });
@@ -184,7 +192,7 @@
184
192
  "data": pageContentData
185
193
  }
186
194
  })
187
- }, options?.props)).show();
195
+ }, options.props)).show();
188
196
  }else{
189
197
  data.modalName = data.modalName || lodash.uniqueId(`modal-${page.object_name}`);
190
198
  SteedosUI.Modal(Object.assign({
@@ -200,7 +208,7 @@
200
208
  "data": pageContentData
201
209
  }
202
210
  })
203
- }, options?.props)).show();
211
+ }, options.props)).show();
204
212
  }
205
213
 
206
214
 
@@ -1,5 +1,5 @@
1
1
  name: pages
2
- label: 微页面
2
+ label: Mini Page
3
3
  description:
4
4
  fields:
5
5
  dashboard_filters_enabled:
@@ -7,15 +7,15 @@ fields:
7
7
  help:
8
8
  description:
9
9
  description:
10
- label: 描述
10
+ label: Description
11
11
  help:
12
12
  description:
13
13
  is_active:
14
- label: 状态
14
+ label: Actived
15
15
  help:
16
16
  description:
17
17
  is_archived:
18
- label: 已归档
18
+ label: Archived
19
19
  help:
20
20
  description:
21
21
  is_draft:
@@ -27,11 +27,11 @@ fields:
27
27
  help:
28
28
  description:
29
29
  is_system:
30
- label: 系统
30
+ label: System
31
31
  help:
32
32
  description:
33
33
  label:
34
- label: 名称
34
+ label: Label
35
35
  help:
36
36
  description:
37
37
  name:
@@ -39,15 +39,15 @@ fields:
39
39
  help:
40
40
  description:
41
41
  object_name:
42
- label: 对象
42
+ label: Object
43
43
  help:
44
44
  description:
45
45
  owner:
46
- label: 所有者
46
+ label: Owner
47
47
  help:
48
48
  description:
49
49
  render_engine:
50
- label: 渲染器
50
+ label: Render engine
51
51
  help:
52
52
  options:
53
53
  - label: Amis
@@ -64,37 +64,37 @@ fields:
64
64
  help:
65
65
  description:
66
66
  type:
67
- label: 类型
67
+ label: Type
68
68
  help:
69
69
  options:
70
- - label: 应用程序页面
70
+ - label: App page
71
71
  value: app
72
- - label: 记录页面
72
+ - label: Record page
73
73
  value: record
74
- - label: 列表页面
74
+ - label: List page
75
75
  value: list
76
- - label: 表单
76
+ - label: Form
77
77
  value: form
78
78
  description:
79
79
  version:
80
- label: 版本号
80
+ label: Version Number
81
81
  help:
82
82
  description:
83
83
  listviews:
84
84
  all:
85
- label: 所有
85
+ label: All
86
86
  recent:
87
- label: 最近查看
87
+ label: Recent
88
88
  actions:
89
89
  customPage:
90
- label: 自定义
90
+ label: Custom Page
91
91
  deploy:
92
- label: 发布
92
+ label: Deploy
93
93
  disable:
94
- label: 禁用
94
+ label: Disable
95
95
  enable:
96
- label: 启用
96
+ label: Enable
97
97
  resetSchema:
98
- label: 重置
98
+ label: Reset Schema
99
99
  showDesign:
100
- label: 设计器
100
+ label: Show Design
@@ -3,7 +3,8 @@
3
3
  * @Date: 2022-04-04 16:34:28
4
4
  * @Description:
5
5
  */
6
- const router = require('@steedos/router').staticRouter();
6
+ const express = require('express');
7
+ const router = express.Router();
7
8
  const core = require('@steedos/core');
8
9
  const ejs = require('ejs');
9
10
  const fs = require('fs');
@@ -1,4 +1,12 @@
1
- const router = require('@steedos/router').staticRouter();
1
+ /*
2
+ * @Author: baozhoutao@steedos.com
3
+ * @Date: 2022-11-17 16:29:17
4
+ * @LastEditors: baozhoutao@steedos.com
5
+ * @LastEditTime: 2022-11-28 18:01:27
6
+ * @Description:
7
+ */
8
+ const express = require('express');
9
+ const router = express.Router();
2
10
  const objectql = require('@steedos/objectql');
3
11
  const core = require('@steedos/core');
4
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/service-pages",
3
- "version": "2.3.2-beta.9",
3
+ "version": "2.3.2",
4
4
  "main": "package.service.js",
5
5
  "scripts": {},
6
6
  "license": "MIT",
@@ -8,7 +8,7 @@
8
8
  "publishConfig": {
9
9
  "access": "public"
10
10
  },
11
- "gitHead": "e20a307e760a2a28f2f447ff16fca94f42852309",
11
+ "gitHead": "3aefe890a87dcdf231a132d180744ee37653dd7c",
12
12
  "dependencies": {
13
13
  "ejs": "^3.1.8"
14
14
  }