parent
e74de20f1b
commit
321e184f11
@ -1,31 +0,0 @@
|
||||
import React from 'react';
|
||||
import { useApp } from '@tachybase/client';
|
||||
|
||||
import { Card, List, Typography } from 'antd';
|
||||
|
||||
import PluginCoreClient from '..';
|
||||
|
||||
const data = [
|
||||
'Racing car sprays burning fuel into crowd.',
|
||||
'Japanese princess to wed commoner.',
|
||||
'Australian walks 100km after outback crash.',
|
||||
'Man charged over missing wedding girl.',
|
||||
'Los Angeles battles huge wildfires.',
|
||||
];
|
||||
|
||||
export const Features = () => {
|
||||
const app = useApp();
|
||||
const plugin = app.pm.get(PluginCoreClient);
|
||||
return (
|
||||
<Card>
|
||||
<List
|
||||
dataSource={data}
|
||||
renderItem={(item) => (
|
||||
<List.Item>
|
||||
<Typography.Text mark>[ITEM]</Typography.Text> {item}
|
||||
</List.Item>
|
||||
)}
|
||||
/>
|
||||
</Card>
|
||||
);
|
||||
};
|
@ -1,7 +1,6 @@
|
||||
import { Application } from '@tachybase/client';
|
||||
|
||||
import { tval } from '../locale';
|
||||
import { Features } from './Features';
|
||||
import { LinkManager } from './LinkManager';
|
||||
import { Configuration } from './TokenConfiguration';
|
||||
import { WebhookManager } from './WebhookManager';
|
||||
@ -16,10 +15,10 @@ export class PluginSettingsHelper {
|
||||
title: tval('Hera integration'),
|
||||
icon: 'HomeOutlined',
|
||||
});
|
||||
this.app.pluginSettingsManager.add('hera.features', {
|
||||
title: tval('Hera features'),
|
||||
icon: 'ApiOutlined',
|
||||
Component: Features,
|
||||
this.app.pluginSettingsManager.add('hera.webhook', {
|
||||
title: tval('Webhook manager'),
|
||||
icon: 'ShareAltOutlined',
|
||||
Component: WebhookManager,
|
||||
});
|
||||
this.app.pluginSettingsManager.add('hera.token', {
|
||||
title: tval('Third-party integration configuration'),
|
||||
@ -31,10 +30,5 @@ export class PluginSettingsHelper {
|
||||
icon: 'ShareAltOutlined',
|
||||
Component: LinkManager,
|
||||
});
|
||||
this.app.pluginSettingsManager.add('hera.webhook', {
|
||||
title: tval('Webhook manager'),
|
||||
icon: 'ShareAltOutlined',
|
||||
Component: WebhookManager,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -72,6 +72,7 @@
|
||||
"Triggered before submitting a create, update, or delete request to a collection, so that data validation, logical judgment, etc., can be performed before executing the request, and then either approving the request or rejecting the request by using the \"End process\" node.": "Triggered before submitting a create, update, or delete request to a collection, so that data validation, logical judgment, etc., can be performed before executing the request, and then either approving the request or rejecting the request by using the \"End process\" node.",
|
||||
"Triggered only when a form bound to this workflow is submitted": "Triggered only when a form bound to this workflow is submitted",
|
||||
"Update a record": "Update a record",
|
||||
"Webhook manager": "Webhook manager",
|
||||
"User acted": "User acted",
|
||||
"Values submitted": "Values submitted",
|
||||
"classical": "classical",
|
||||
|
@ -72,6 +72,7 @@
|
||||
"Trigger mode": "触发模式",
|
||||
"Triggered before the execution of a request initiated through an action button or API, such as before adding, updating, or deleting data. Suitable for data validation and logic judgment before action, and the request could be rejected by using the \"End process\" node.": "通过操作按钮或 API 发起请求并在执行前触发,比如新增、更新、删除数据之前。适用于在操作前进行数据验证、逻辑判断,并可通过“结束节点”来拦截请求。",
|
||||
"Update record action": "更新记录操作",
|
||||
"Webhook manager": "Webhook 管理",
|
||||
"User acted": "操作者",
|
||||
"Values submitted": "提交的值对象",
|
||||
"classical": "经典版",
|
||||
|
Loading…
Reference in New Issue
Block a user