uploads - moved logic to FE because of plugins

This commit is contained in:
Jan Prochazka
2020-11-22 09:14:19 +01:00
parent 7d1c0c5c18
commit 3cdba4339f
7 changed files with 68 additions and 45 deletions

30
packages/types/extensions.d.ts vendored Normal file
View File

@@ -0,0 +1,30 @@
export interface FileFormatDefinition {
storageType: string;
extension: string;
name: string;
readerFunc?: string;
writerFunc?: string;
args?: any[];
addFilesToSourceList?: (
file: {
full: string;
},
newSources: string[],
newValues: {
[key: string]: any;
}
) => void;
getDefaultOutputName?: (sourceName, values) => string;
getOutputParams?: (sourceName, values) => any;
}
export interface PluginDefinition {
packageName: string;
manifest: any;
content: any;
}
export interface ExtensionsDirectory {
plugins: PluginDefinition[];
fileFormats: FileFormatDefinition[];
}