mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
* feat(plugin-verification): add client config * feat(plugin-verification): add config ui * fix(plugin-verification): fix schema * refactor(plugin-verification): add default for verification providers * fix(plugin-users): fix initVerification in lifecycle * fix(plugin-users): fix initVerification in lifecycle * fix(plugin-verification): fix locale and default provider * fix(plugin-verification): fix test case * fix(plugin-verification): fix locale
44 lines
1.1 KiB
TypeScript
44 lines
1.1 KiB
TypeScript
import React from 'react';
|
|
import { Card } from 'antd';
|
|
import { PartitionOutlined } from '@ant-design/icons';
|
|
import { useTranslation } from 'react-i18next';
|
|
import { useHistory } from 'react-router-dom';
|
|
|
|
import { PluginManager, SchemaComponent } from '@nocobase/client';
|
|
|
|
import { workflowSchema } from './schemas/workflows';
|
|
import { WorkflowLink } from './WorkflowLink';
|
|
import { ExecutionResourceProvider } from './ExecutionResourceProvider';
|
|
import { ExecutionLink } from './ExecutionLink';
|
|
import { lang } from './locale';
|
|
|
|
|
|
export const WorkflowPane = () => {
|
|
return (
|
|
<Card bordered={false}>
|
|
<SchemaComponent
|
|
schema={workflowSchema}
|
|
components={{
|
|
WorkflowLink,
|
|
ExecutionResourceProvider,
|
|
ExecutionLink
|
|
}}
|
|
/>
|
|
</Card>
|
|
);
|
|
};
|
|
|
|
export const WorkflowShortcut = () => {
|
|
const history = useHistory();
|
|
return (
|
|
<PluginManager.Toolbar.Item
|
|
key="workflow"
|
|
icon={<PartitionOutlined />}
|
|
title={lang('Workflow')}
|
|
onClick={() => {
|
|
history.push('/admin/settings/workflow/workflows');
|
|
}}
|
|
/>
|
|
);
|
|
};
|