From cad9cecb11704585714e31e2bed24cc9ca560817 Mon Sep 17 00:00:00 2001 From: shixuewen Date: Wed, 21 Jun 2023 16:56:25 +0800 Subject: [PATCH 01/23] feat: model instance form --- packages/client/dashboard/package.json | 3 + packages/client/dashboard/public/index.html | 10 ++ .../src/components/ModelInstance.tsx | 107 ++++++++++++++++- .../src/components/ModelInstanceForm.tsx | 87 ++++++++++++++ .../src/container/DappDataStatistic.tsx | 1 + packages/client/dashboard/yarn.lock | 110 +++++++++++++++++- 6 files changed, 313 insertions(+), 5 deletions(-) create mode 100644 packages/client/dashboard/src/components/ModelInstanceForm.tsx diff --git a/packages/client/dashboard/package.json b/packages/client/dashboard/package.json index 09ad1d23..3ace7cfa 100644 --- a/packages/client/dashboard/package.json +++ b/packages/client/dashboard/package.json @@ -8,6 +8,9 @@ "@composedb/devtools": "0.4", "@graphiql/plugin-explorer": "^0.1.20", "@monaco-editor/react": "^4.5.1", + "@rjsf/core": "^5.8.2", + "@rjsf/utils": "^5.8.2", + "@rjsf/validator-ajv8": "^5.8.2", "@testing-library/jest-dom": "^5.14.1", "@testing-library/react": "^13.0.0", "@testing-library/user-event": "^13.2.1", diff --git a/packages/client/dashboard/public/index.html b/packages/client/dashboard/public/index.html index e417c4d8..1d925954 100644 --- a/packages/client/dashboard/public/index.html +++ b/packages/client/dashboard/public/index.html @@ -25,6 +25,16 @@ Learn how to configure a non-root public URL by running `npm run build`. --> %REACT_APP_NAME% + + +