-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Widgets] Refactor examples running (#1023)
* Rm `previewInputSample` by reusing `applyInputSample` * Rm unneeded `getDemoInputs` function * better naming * format * correct typing * add missing await * Update js/src/lib/components/InferenceWidget/shared/helpers.ts Co-authored-by: Simon Brandeis <[email protected]> * format * use `opts` syntax * run onMount widget example inside WidgetWrapper * all widgets run onMount example inside WidgetWrapper * Rm `previewInputSample` by reusing `applyInputSample` * Rm unneeded `getDemoInputs` function * better naming * format * correct typing * add missing await * Update js/src/lib/components/InferenceWidget/shared/helpers.ts Co-authored-by: Simon Brandeis <[email protected]> * format * use `opts` syntax * run onMount widget example inside WidgetWrapper * all widgets run onMount example inside WidgetWrapper * fix logic * stronger typing * format * more refactor --------- Co-authored-by: Simon Brandeis <[email protected]>
- Loading branch information
Showing
29 changed files
with
362 additions
and
724 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
Oops, something went wrong.