-
Notifications
You must be signed in to change notification settings - Fork 3
Remove FileUploadForm from TableDialog, add csv key options #54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
7c7662c
Add slot to FileUploadForm, add key field
jjnesbitt 7f70843
Add switch for overwriting _key field
jjnesbitt cfa7712
Add file utils
jjnesbitt 0b04e76
Remove added slot to FileUploadForm
jjnesbitt 7c06aa1
Remove use of FileUploadForm in TableDialog
jjnesbitt ab252e3
Remove unused import
jjnesbitt 649646e
Remove unused import
jjnesbitt 077c20c
Upload call to `uploadTable` to match multinetjs
jjnesbitt f6cc449
Upgrade multinet to 0.12.0
waxlamp 05a5583
switch -> checkbox, set default key value
jjnesbitt 07f663a
Add restore button in key field specifier
jjnesbitt 42ccfa6
Change label from "Key" to "Key Column"
jjnesbitt 0249e2c
Merge branch 'master' into specify_table_key
jjnesbitt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,16 @@ | ||
| import { validUploadType } from 'multinet'; | ||
| import { FileType } from '@/types'; | ||
|
|
||
|
|
||
| const fileExtension = (file: File) => file.name.split('.').slice(-1)[0]; | ||
| const fileName = (file: File) => file.name.split('.')[0]; | ||
|
|
||
| function validFileType(file: File, allowedTypes: FileType[]) { | ||
| const extension = fileExtension(file); | ||
| return allowedTypes.some((type) => type.extension.includes(extension) && validUploadType(type.queryCall)); | ||
| } | ||
|
|
||
| export { | ||
| fileName, | ||
| validFileType, | ||
| }; |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.