@steedos/service-pages 2.5.7 → 2.5.8-beta.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.
|
@@ -8,4 +8,10 @@ CustomLabels:
|
|
|
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
|
|
11
|
-
page_assignments_error_application_and_profile_already_exists: Application and Profile authorization already exists
|
|
11
|
+
page_assignments_error_application_and_profile_already_exists: Application and Profile authorization already exists
|
|
12
|
+
page_check_error_prohibit_modifying_page_types: Prohibit modifying page types
|
|
13
|
+
page_check_error_prohibit_modifying_page_renderer: Prohibit modifying the page renderer
|
|
14
|
+
page_check_error_prohibit_disabling_application_pages: Prohibit disabling application pages
|
|
15
|
+
page_pai_name_error_not_repeat: Api Name cannot be duplicate
|
|
16
|
+
page_versions_error_prohibit_modifying_non_latest_version: Prohibit modifying non latest version
|
|
17
|
+
|
|
@@ -9,4 +9,8 @@ CustomLabels:
|
|
|
9
9
|
page_assignments_error_organization_default_settings_already_exists: 已存在「组织默认设置」授权
|
|
10
10
|
page_assignments_error_application_default_already_exists: 已存在「应用程序默认设置」授权
|
|
11
11
|
page_assignments_error_application_and_profile_already_exists: 已存在「应用程序和简档」授权
|
|
12
|
-
|
|
12
|
+
page_check_error_prohibit_modifying_page_types: 禁止修改页面类型
|
|
13
|
+
page_check_error_prohibit_modifying_page_renderer: 禁止修改页面渲染器
|
|
14
|
+
page_check_error_prohibit_disabling_application_pages: 禁止停用应用程序页面
|
|
15
|
+
page_pai_name_error_not_repeat: Api Name 不能重复
|
|
16
|
+
page_versions_error_prohibit_modifying_non_latest_version: 禁止修改非最新版
|
|
@@ -7,7 +7,7 @@ module.exports = {
|
|
|
7
7
|
const {object_name, doc, spaceId} = this;
|
|
8
8
|
const isUnique = await apiName.isSpaceUnique(spaceId, object_name, doc, doc.name)
|
|
9
9
|
if(!isUnique){
|
|
10
|
-
throw new Error('
|
|
10
|
+
throw new Error('page_pai_name_error_not_repeat');
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
|
|
@@ -16,7 +16,7 @@ module.exports = {
|
|
|
16
16
|
if(_.has(doc, 'name')){
|
|
17
17
|
const isUnique = await apiName.isSpaceUnique(spaceId, object_name, doc, doc.name, id)
|
|
18
18
|
if(!isUnique){
|
|
19
|
-
throw new Error('
|
|
19
|
+
throw new Error('page_pai_name_error_not_repeat');
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -7,10 +7,10 @@ module.exports = {
|
|
|
7
7
|
if(_.has(doc, 'type') || _.has(doc, 'render_engine')){
|
|
8
8
|
const record = await objectql.getObject('pages').findOne(id);
|
|
9
9
|
if(_.has(doc, 'type') && doc.type != record.type){
|
|
10
|
-
throw new Error('
|
|
10
|
+
throw new Error('page_check_error_prohibit_modifying_page_types');
|
|
11
11
|
}
|
|
12
12
|
if(_.has(doc, 'render_engine') && doc.render_engine != record.render_engine){
|
|
13
|
-
throw new Error('
|
|
13
|
+
throw new Error('page_check_error_prohibit_modifying_page_renderer');
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -23,7 +23,7 @@ module.exports = {
|
|
|
23
23
|
type = record.type;
|
|
24
24
|
}
|
|
25
25
|
if(type === 'app'){
|
|
26
|
-
throw new Error('
|
|
26
|
+
throw new Error('page_check_error_prohibit_disabling_application_pages');
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-pages",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.8-beta.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": "
|
|
11
|
+
"gitHead": "d64d32507a636e9d0e403090c1b76934cca4ebb6",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"ejs": "^3.1.8"
|
|
14
14
|
}
|