This commit is contained in:
Archer
2023-10-30 13:26:42 +08:00
committed by GitHub
parent 008d0af010
commit 60ee160131
216 changed files with 4429 additions and 2229 deletions

View File

@@ -0,0 +1,28 @@
import { ModuleItemType } from '../module/type';
export const defaultModules: ModuleItemType[] = [
{
moduleId: 'fph4s3',
name: '自定义输出',
flowType: 'pluginOutput',
showStatus: false,
position: {
x: 994.1266684738011,
y: -45.87689365278443
},
inputs: [],
outputs: []
},
{
moduleId: 'w09v30',
name: '自定义输入',
flowType: 'pluginInput',
showStatus: false,
position: {
x: 457.57860319995154,
y: -44.25099042468186
},
inputs: [],
outputs: []
}
];

View File

@@ -0,0 +1,21 @@
import type { ModuleItemType } from '../module/type.d';
export type CreateOnePluginParams = {
name: string;
avatar: string;
intro: string;
modules?: ModuleItemType[];
};
export type UpdatePluginParams = {
id: string;
name?: string;
avatar?: string;
intro?: string;
modules?: ModuleItemType[];
};
export type PluginListItemType = {
_id: string;
name: string;
avatar: string;
intro: string;
};

11
packages/global/core/plugin/type.d.ts vendored Normal file
View File

@@ -0,0 +1,11 @@
import type { ModuleItemType } from '../module/type.d';
export type PluginItemSchema = {
_id: string;
userId: string;
name: string;
avatar: string;
intro: string;
updateTime: Date;
modules: ModuleItemType[];
};