-
Notifications
You must be signed in to change notification settings - Fork 392
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2b2190f
commit e2f10a3
Showing
276 changed files
with
6,016 additions
and
729 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
/* | ||
* @Author: [email protected] | ||
* @Date: 2024-03-22 14:37:50 | ||
* @LastEditors: 孙浩林 sunhaolin@steedos.com | ||
* @LastEditTime: 2024-05-18 13:31:28 | ||
* @LastEditors: baozhoutao@steedos.com | ||
* @LastEditTime: 2025-01-17 14:21:33 | ||
* @Description: 由于 collection observe 在 steedos-server.started 事件中被触发报错需要 Fiber ,添加Fiber 后, 不报错,但是无法订阅到数据. 所以单写服务处理此问题. | ||
* | ||
*/ | ||
|
@@ -23,26 +23,26 @@ module.exports = { | |
/** | ||
* Dependencies | ||
*/ | ||
dependencies: ['steedos-server'], | ||
dependencies: [], | ||
|
||
events: { | ||
'$packages.changed': function(){ | ||
this.loadMetadataWorkflows(); | ||
this.loadMetadataValidationRule(); | ||
this.loadMetadataObjectFunctions(); | ||
// this.loadMetadataWorkflows(); | ||
// this.loadMetadataValidationRule(); | ||
// this.loadMetadataObjectFunctions(); | ||
|
||
} | ||
}, | ||
|
||
actions:{ | ||
find: function(ctx){ | ||
const { metadataName, filters, spaceId } = ctx.params; | ||
const res = this[`${_.camelCase(metadataName)}Cacher`].find(filters, spaceId); | ||
return res; | ||
const res = this[`${_.camelCase(metadataName)}Cacher`]?.find(filters, spaceId); | ||
return res || []; | ||
}, | ||
get: function(ctx){ | ||
const { _id } = ctx.params; | ||
return this[`${_.camelCase(metadataName)}Cacher`].get(_id) | ||
return this[`${_.camelCase(metadataName)}Cacher`]?.get(_id) | ||
} | ||
}, | ||
|
||
|
@@ -88,23 +88,23 @@ module.exports = { | |
}, | ||
|
||
async started() { | ||
this.actionFieldUpdatesCacher = new ActionFieldUpdateCacher() | ||
// this.actionFieldUpdatesCacher = new ActionFieldUpdateCacher() | ||
|
||
this.workflowOutboundMessagesCacher = new WorkflowOutboundMessageCacher(); | ||
// this.workflowOutboundMessagesCacher = new WorkflowOutboundMessageCacher(); | ||
|
||
this.workflowNotificationsCacher = new WorkflowNotificationCacher(); | ||
// this.workflowNotificationsCacher = new WorkflowNotificationCacher(); | ||
|
||
this.workflowRuleCacher = new WorkflowRuleCacher(); | ||
// this.workflowRuleCacher = new WorkflowRuleCacher(); | ||
|
||
this.objectValidationRulesCacher = new ObjectValidationRulesCacher() | ||
// this.objectValidationRulesCacher = new ObjectValidationRulesCacher() | ||
|
||
this.settingsCacher = new SettingsCacher(); | ||
// this.settingsCacher = new SettingsCacher(); | ||
|
||
this.objectWebhooksCacher = new ObjectWebhookCacher(); | ||
// this.objectWebhooksCacher = new ObjectWebhookCacher(); | ||
|
||
this.objectFunctionsCacher = new ObjectFunctionsCacher(); | ||
// this.objectFunctionsCacher = new ObjectFunctionsCacher(); | ||
|
||
await this.loadMetadataWorkflows() | ||
// await this.loadMetadataWorkflows() | ||
}, | ||
|
||
async stopped(){ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* @Author: [email protected] | ||
* @Date: 2022-03-28 09:35:35 | ||
* @LastEditors: [email protected] | ||
* @LastEditTime: 2024-03-22 14:40:23 | ||
* @LastEditTime: 2025-01-17 14:20:54 | ||
* @Description: 维护内存缓存 | ||
*/ | ||
"use strict"; | ||
|
@@ -13,6 +13,7 @@ const cachers = require('@steedos/cachers'); | |
const auth = require('@steedos/auth'); | ||
const { getObject } = require('@steedos/objectql'); | ||
const register = require('@steedos/metadata-registrar'); | ||
const _ = require('underscore'); | ||
/** | ||
* @typedef {import('moleculer').Context} Context Moleculer's Context | ||
* 软件包服务启动后也需要抛出事件。 | ||
|
@@ -31,7 +32,7 @@ module.exports = { | |
/** | ||
* Dependencies | ||
*/ | ||
dependencies: [], | ||
dependencies: ['metadata'], | ||
methods: { | ||
// 加载mo action规则的triggers | ||
loadActionTriggers: async function (broker) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
/* | ||
* @Author: [email protected] | ||
* @Date: 2022-07-20 21:31:37 | ||
* @LastEditors: sunhaolin@hotoa.com | ||
* @LastEditTime: 2023-06-12 17:31:40 | ||
* @LastEditors: baozhoutao@steedos.com | ||
* @LastEditTime: 2025-01-15 17:43:55 | ||
* @Description: | ||
*/ | ||
"use strict"; | ||
|
64 changes: 64 additions & 0 deletions
64
...s/main/default/objectTranslations/organizations.en/organizations.en.objectTranslation.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: organizations | ||
label: Organizational Structures | ||
description: | ||
fields: | ||
name: | ||
label: Name | ||
help: | ||
description: | ||
fullname: | ||
label: Full Name | ||
help: | ||
description: | ||
parent: | ||
label: Superior Organization | ||
help: | ||
description: | ||
parents: | ||
label: All Superior Organization | ||
help: | ||
description: | ||
children: | ||
label: Subordinate Organization | ||
help: | ||
description: | ||
sort_no: | ||
label: Sort Number | ||
help: | ||
description: | ||
users: | ||
label: Organization Users | ||
help: | ||
description: | ||
company_id: | ||
label: Main Division | ||
help: | ||
description: | ||
company_ids: | ||
label: All Divisions | ||
help: | ||
description: | ||
is_company: | ||
label: is Division | ||
help: | ||
description: | ||
hidden: | ||
label: Hidden | ||
help: | ||
description: | ||
groups: | ||
systemfields: systemfields | ||
listviews: | ||
all: | ||
label: All Organizations | ||
lookup: | ||
label: Lookup Organization | ||
effective: | ||
label: Effective Organizations | ||
actions: | ||
standard_query: | ||
label: Search | ||
addSubOrganization: | ||
label: Add a Branch | ||
CustomLabels: | ||
organizations_group_系统: System |
64 changes: 64 additions & 0 deletions
64
.../default/objectTranslations/organizations.zh-CN/organizations.zh-CN.objectTranslation.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: organizations | ||
label: 组织机构 | ||
description: | ||
fields: | ||
name: | ||
label: 名称 | ||
help: | ||
description: | ||
fullname: | ||
label: 组织全称 | ||
help: | ||
description: | ||
parent: | ||
label: 上级组织 | ||
help: | ||
description: | ||
parents: | ||
label: 上级组织 | ||
help: | ||
description: | ||
children: | ||
label: 下级组织 | ||
help: | ||
description: | ||
sort_no: | ||
label: 排序号 | ||
help: | ||
description: | ||
users: | ||
label: 成员 | ||
help: | ||
description: | ||
company_id: | ||
label: 所属分部 | ||
help: | ||
description: | ||
company_ids: | ||
label: 所属分部 | ||
help: | ||
description: | ||
is_company: | ||
label: 分部级 | ||
help: | ||
description: | ||
hidden: | ||
label: 隐藏 | ||
help: | ||
description: | ||
groups: | ||
systemfields: systemfields | ||
listviews: | ||
all: | ||
label: 所有 | ||
lookup: | ||
label: 相关 | ||
effective: | ||
label: 有效组织 | ||
actions: | ||
standard_query: | ||
label: 查找 | ||
addSubOrganization: | ||
label: 添加子组织 | ||
CustomLabels: | ||
organizations_group_系统: 系统 |
Oops, something went wrong.