hub-docs
cd15b19a - [Widgets] Refactor examples running (#1023)

Commit
2 years ago
[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 <33657802+SBrandeis@users.noreply.github.com> * 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 <33657802+SBrandeis@users.noreply.github.com> * 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 <33657802+SBrandeis@users.noreply.github.com>
Author
Parents
Loading