@steedos/service-pages 3.0.0-beta.104 → 3.0.0-beta.107
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* @Author: 孙浩林 6194896+sunhaolin@users.noreply.github.com
|
|
3
3
|
* @Date: 2023-12-10 11:09:40
|
|
4
|
-
* @LastEditors:
|
|
5
|
-
* @LastEditTime: 2025-
|
|
4
|
+
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
5
|
+
* @LastEditTime: 2025-09-30 16:39:29
|
|
6
6
|
* @FilePath: /steedos-platform-3.0/services/service-pages/main/default/routes/page_render.router.js
|
|
7
7
|
* @Description: 支持使用schemaApi动态渲染页面,支持匿名访问。
|
|
8
8
|
*/
|
|
@@ -32,6 +32,14 @@ router.get('/api/page/render', async function (req, res) {
|
|
|
32
32
|
locale = "zh-CN";
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
let parsedQueryData = {};
|
|
36
|
+
try {
|
|
37
|
+
parsedQueryData = typeof queryData === "string" ? JSON.parse(queryData) : queryData;
|
|
38
|
+
}
|
|
39
|
+
catch (error) {
|
|
40
|
+
parsedQueryData = {};
|
|
41
|
+
}
|
|
42
|
+
|
|
35
43
|
const filename = __dirname + '/page_view.ejs';
|
|
36
44
|
const data = {
|
|
37
45
|
Title: 'page.label',
|
|
@@ -54,7 +62,7 @@ router.get('/api/page/render', async function (req, res) {
|
|
|
54
62
|
},
|
|
55
63
|
pageSchema: pageSchema,
|
|
56
64
|
// __meteor_runtime_config__: __meteor_runtime_config__,
|
|
57
|
-
queryData,
|
|
65
|
+
queryData: parsedQueryData,
|
|
58
66
|
STEEDOS_PUBLIC_USE_OPEN_API: process.env.STEEDOS_PUBLIC_USE_OPEN_API
|
|
59
67
|
}
|
|
60
68
|
const options = {}
|
|
@@ -4,7 +4,7 @@ CustomApplications:
|
|
|
4
4
|
description: null
|
|
5
5
|
CustomLabels:
|
|
6
6
|
menu_user_interface: User Interface
|
|
7
|
-
menu_pages:
|
|
7
|
+
menu_pages: Custom Pages
|
|
8
8
|
page_assignments_error_not_allowed_to_application_pages: Prohibit assigning permissions to application pages
|
|
9
9
|
page_assignments_error_organization_default_already_exists: Authorization for 'Organization Default Settings' already exists
|
|
10
10
|
page_assignments_error_application_default_already_exists: Authorization for 'Application Default Settings' already exists
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-pages",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.107",
|
|
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": "
|
|
11
|
+
"gitHead": "1af567ed119c938f6214ea192e610f07aa8612af",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"clone": "^2.1.2",
|
|
14
14
|
"ejs": "^3.1.8"
|