proje-react-panel 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/jsLinters/eslint.xml +6 -0
- package/.idea/prettier.xml +7 -0
- package/.idea/vcs.xml +1 -0
- package/README.md +18 -10
- package/dist/api/crudApi.d.ts +4 -4
- package/dist/components/layout/Layout.d.ts +1 -2
- package/dist/index.cjs.js +2 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.esm.js +2 -2
- package/package.json +5 -11
- package/src/api/crudApi.ts +19 -5
- package/src/components/layout/Layout.tsx +1 -3
- package/src/index.ts +0 -2
- package/dist/bundle.css +0 -128
- package/scripts/generate-nestjs-entity.js +0 -147
package/.idea/vcs.xml
CHANGED
package/README.md
CHANGED
@@ -1,24 +1,32 @@
|
|
1
1
|
# React Panel
|
2
2
|
|
3
3
|
## Overview
|
4
|
-
React Panel is a web application built using
|
4
|
+
React Panel is a web application built using as the backend framework and React for the frontend. It features a customizable sidebar and supports CRUD operations on entities. This project is designed to be a foundational template for building admin panels or other web-based interfaces.
|
5
5
|
|
6
6
|
---
|
7
|
-
|
8
7
|
## Features
|
9
8
|
- **Entity CRUD Operations**: Easily create, read, update, and delete entities through the panel.
|
10
9
|
- **Sidebar Navigation**: The application includes a sidebar for easy navigation, which is fully customizable.
|
11
10
|
- **Single Design Template**: Comes with a default design that can be customized to fit your needs.
|
12
|
-
|
11
|
+
- **NestJS Integration**: It's designed especially for NestJS applications.
|
12
|
+
- **Class-validator Support**: If you work with class-validator, you can easily copy-paste entity definitions to create tables and forms based on your entities.
|
13
13
|
---
|
14
14
|
|
15
15
|
## Getting Started
|
16
|
-
### Prerequisites
|
17
|
-
- Node.js (LTS version recommended)
|
18
|
-
- npm or yarn package manager
|
19
|
-
- A supported database (e.g., PostgreSQL, MySQL, MongoDB)
|
20
|
-
|
21
16
|
### Installation
|
22
|
-
1.
|
17
|
+
1. Install dependencies:
|
23
18
|
```bash
|
24
|
-
|
19
|
+
yarn add
|
20
|
+
```
|
21
|
+
|
22
|
+
### TypeScript Configuration
|
23
|
+
Add these options to your `tsconfig.json` file:
|
24
|
+
```json
|
25
|
+
{
|
26
|
+
"compilerOptions": {
|
27
|
+
"experimentalDecorators": true,
|
28
|
+
"strictPropertyInitialization": false
|
29
|
+
// other compiler options...
|
30
|
+
}
|
31
|
+
}
|
32
|
+
```
|
package/dist/api/crudApi.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
export declare const CrudApi: {
|
2
|
-
getList: (api: string, page: number) => Promise<
|
3
|
-
create: (api: string, data: any) => Promise<
|
4
|
-
details(api: string, id: any): Promise<
|
5
|
-
edit(api: string, data: any): Promise<
|
2
|
+
getList: (api: string, page: number) => Promise<any>;
|
3
|
+
create: (api: string, data: any) => Promise<any>;
|
4
|
+
details(api: string, id: any): Promise<any>;
|
5
|
+
edit(api: string, data: any): Promise<any>;
|
6
6
|
};
|