Skip to content

Commit

Permalink
feat: refine project added for demo
Browse files Browse the repository at this point in the history
  • Loading branch information
AshishBarvaliya committed Apr 1, 2024
1 parent 93ec325 commit a925646
Show file tree
Hide file tree
Showing 29 changed files with 31,351 additions and 15,944 deletions.
3 changes: 3 additions & 0 deletions Parse-Dashboard/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@ module.exports = function (config, options) {
<title>Express serve</title>
<script type="module" crossorigin src="${mountPath}v2/index.bundle.js"></script>
<link rel="stylesheet" crossorigin href="${mountPath}v2/index.bundle.css">
<script>
PARSE_DASHBOARD_PATH = "${mountPath}";
</script>
</head>
<body>
<div id="root"></div>
Expand Down
31,884 changes: 18,095 additions & 13,789 deletions package-lock.json

Large diffs are not rendered by default.

60 changes: 39 additions & 21 deletions v2/README.md
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
40 changes: 34 additions & 6 deletions v2/index.html
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>
Loading

0 comments on commit a925646

Please sign in to comment.