From 0cf46f87795b955805d501a687ec7b3b2304465b Mon Sep 17 00:00:00 2001 From: Lucas Koehler Date: Wed, 12 Jun 2024 09:22:09 +0200 Subject: [PATCH] Adapt README and cleanup index.html files for ViteJS refactoring --- README.md | 3 ++- index.html | 8 ++++++-- public/index.html | 41 ----------------------------------------- 3 files changed, 8 insertions(+), 44 deletions(-) delete mode 100644 public/index.html diff --git a/README.md b/README.md index 493e9e6..42eb6ae 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ This seed demonstrates how to use [JSON Forms](https://jsonforms.io) with React It is based on `create-react-app` and only contains minor modifications. - Execute `npm ci` to install the prerequisites. If you want to have the latest released versions use `npm install`. +- Execute `npm run build` to build the application. - Execute `npm start` to start the application. Browse to http://localhost:3000 to see the application in action. @@ -15,7 +16,7 @@ Let's briefly have a look at the most important files: - `src/schema.json` contains the JSON schema (also referred to as 'data schema') - `src/uischema.json` contains the UI schema -- `src/index.tsx` is the entry point of the application. We also customize the Material UI theme to give each control more space. +- `src/main.tsx` is the entry point of the application. We also customize the Material UI theme to give each control more space. - `src/App.tsx` is the main app component and makes use of the `JsonForms` component in order to render a form. The [data schema](src/schema.json) defines the structure of a Task: it contains attributes such as title, description, due date and so on. diff --git a/index.html b/index.html index 5928fc1..e8f79f1 100644 --- a/index.html +++ b/index.html @@ -1,9 +1,13 @@ - + - + + + JSONForms React Starter diff --git a/public/index.html b/public/index.html deleted file mode 100644 index 188cb20..0000000 --- a/public/index.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - React App - - - -
- - -