generated from layer5io/layer5-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #539 from Jougan-0/modelImportUpdate
Model import update
- Loading branch information
Showing
11 changed files
with
235 additions
and
27 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"uploadType": { | ||
"title": "Upload method", | ||
"enum": [ | ||
"File Upload", | ||
"URL Import" | ||
], | ||
"default": "Select the Upload Method", | ||
"x-rjsf-grid-area": "12", | ||
"description": "Choose the method you prefer to upload your model file. Select 'File Upload' if you have the file on your local system or 'URL Import' if you have the file hosted online." | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"if": { | ||
"properties": { | ||
"uploadType": { | ||
"const": "File Upload" | ||
} | ||
} | ||
}, | ||
"then": { | ||
"properties": { | ||
"file": { | ||
"type": "string", | ||
"format": "file", | ||
"description": "Browse the filter file from your file system", | ||
"x-rjsf-grid-area": "12" | ||
} | ||
}, | ||
"required": [ | ||
"file" | ||
] | ||
} | ||
}, | ||
{ | ||
"if": { | ||
"properties": { | ||
"uploadType": { | ||
"const": "URL Import" | ||
} | ||
} | ||
}, | ||
"then": { | ||
"properties": { | ||
"url": { | ||
"type": "string", | ||
"format": "uri", | ||
"title": "URL", | ||
"description": "Provide the URL of the design file you want to import. This should be a direct URL to the file, for example: https://raw.github.com/your-design-file.yaml", | ||
"x-rjsf-grid-area": "12" | ||
} | ||
}, | ||
"required": [ | ||
"url" | ||
] | ||
} | ||
} | ||
], | ||
"required": [ | ||
"uploadType" | ||
] | ||
} |
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,6 @@ | ||
{ | ||
"uploadType": { | ||
"ui:widget": "radio" | ||
}, | ||
"ui:order" : [ "uploadType", "file", "url"] | ||
} |
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