forked from HSF/phoenix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(app): option for custom import handlers
- Loading branch information
Showing
5 changed files
with
63 additions
and
43 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
17 changes: 17 additions & 0 deletions
17
packages/phoenix-ng/projects/phoenix-ui-components/src/services/extras/event-data-import.ts
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,17 @@ | ||
export enum EventDataFormat { | ||
JSON = 'JSON', | ||
JIVEXML = 'JIVEXML', | ||
IG = 'IG', | ||
ZIP = 'ZIP', | ||
} | ||
|
||
export type EventDataImportOption = EventDataFormat | ImportOption; | ||
|
||
export class ImportOption { | ||
constructor( | ||
public format: string, | ||
public fileType: string, | ||
public handler: (files: FileList) => void, | ||
public accept?: string | ||
) {} | ||
} |
6 changes: 0 additions & 6 deletions
6
packages/phoenix-ng/projects/phoenix-ui-components/src/types/index.ts
This file was deleted.
Oops, something went wrong.