-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
93ec325
commit a925646
Showing
29 changed files
with
31,351 additions
and
15,944 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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,30 +1,48 @@ | ||
# React + TypeScript + Vite | ||
# v2 | ||
|
||
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. | ||
<div align="center" style="margin: 30px;"> | ||
<a href="https://refine.dev"> | ||
<img alt="refine logo" src="https://refine.ams3.cdn.digitaloceanspaces.com/readme/refine-readme-banner.png"> | ||
</a> | ||
</div> | ||
<br/> | ||
|
||
Currently, two official plugins are available: | ||
This [Refine](https://github.com/refinedev/refine) project was generated with [create refine-app](https://github.com/refinedev/refine/tree/master/packages/create-refine-app). | ||
|
||
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh | ||
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh | ||
## Getting Started | ||
|
||
## Expanding the ESLint configuration | ||
A React Framework for building internal tools, admin panels, dashboards & B2B apps with unmatched flexibility ✨ | ||
|
||
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules: | ||
Refine's hooks and components simplifies the development process and eliminates the repetitive tasks by providing industry-standard solutions for crucial aspects of a project, including authentication, access control, routing, networking, state management, and i18n. | ||
|
||
- Configure the top-level `parserOptions` property like this: | ||
## Available Scripts | ||
|
||
```js | ||
export default { | ||
// other rules... | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
project: ['./tsconfig.json', './tsconfig.node.json'], | ||
tsconfigRootDir: __dirname, | ||
}, | ||
} | ||
### Running the development server. | ||
|
||
```bash | ||
npm run dev | ||
``` | ||
|
||
### Building for production. | ||
|
||
```bash | ||
npm run build | ||
``` | ||
|
||
- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked` | ||
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked` | ||
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list | ||
### Running the production server. | ||
|
||
```bash | ||
npm run start | ||
``` | ||
|
||
## Learn More | ||
|
||
To learn more about **Refine**, please check out the [Documentation](https://refine.dev/docs) | ||
|
||
- **REST Data Provider** [Docs](https://refine.dev/docs/core/providers/data-provider/#overview) | ||
- **Ant Design** [Docs](https://refine.dev/docs/ui-frameworks/antd/tutorial/) | ||
- **React Router** [Docs](https://refine.dev/docs/core/providers/router-provider/) | ||
|
||
## License | ||
|
||
MIT |
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 |
---|---|---|
@@ -1,13 +1,41 @@ | ||
<!doctype html> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Vite + React + TS</title> | ||
<meta charset="utf-8" /> | ||
<link rel="icon" href="/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="theme-color" content="#000000" /> | ||
<meta | ||
name="description" | ||
content="refine | Build your React-based CRUD applications, without constraints." | ||
/> | ||
<meta | ||
data-rh="true" | ||
property="og:image" | ||
content="https://refine.dev/img/refine_social.png" | ||
/> | ||
<meta | ||
data-rh="true" | ||
name="twitter:image" | ||
content="https://refine.dev/img/refine_social.png" | ||
/> | ||
<title> | ||
refine - Build your React-based CRUD applications, without constraints. | ||
</title> | ||
</head> | ||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.tsx"></script> | ||
<script type="module" src="/src/index.tsx"></script> | ||
<!-- | ||
This HTML file is a template. | ||
If you open it directly in the browser, you will see an empty page. | ||
You can add webfonts, meta tags, or analytics to this file. | ||
The build step will place the bundled scripts into the <body> tag. | ||
To begin the development, run `npm dev` or `yarn start`. | ||
To create a production bundle, use `npm run build` or `yarn build`. | ||
--> | ||
</body> | ||
</html> |
Oops, something went wrong.