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.
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="EslintConfiguration">
4
+ <option name="fix-on-save" value="true" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="PrettierConfiguration">
4
+ <option name="myConfigurationMode" value="AUTOMATIC" />
5
+ <option name="myRunOnSave" value="true" />
6
+ </component>
7
+ </project>
package/.idea/vcs.xml CHANGED
@@ -2,5 +2,6 @@
2
2
  <project version="4">
3
3
  <component name="VcsDirectoryMappings">
4
4
  <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ <mapping directory="$PROJECT_DIR$/examples/src/types/generated" vcs="Git" />
5
6
  </component>
6
7
  </project>
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 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.
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. Clone the repository:
17
+ 1. Install dependencies:
23
18
  ```bash
24
- git clone <repository-url>
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
+ ```
@@ -1,6 +1,6 @@
1
1
  export declare const CrudApi: {
2
- getList: (api: string, page: number) => Promise<import("axios").AxiosResponse<any, any>>;
3
- create: (api: string, data: any) => Promise<import("axios").AxiosResponse<any, any>>;
4
- details(api: string, id: any): Promise<import("axios").AxiosResponse<any, any>>;
5
- edit(api: string, data: any): Promise<import("axios").AxiosResponse<any, any>>;
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
  };
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- export declare function Layout({ children, noSidebar, }: {
2
+ export declare function Layout({ children, }: {
3
3
  children?: React.ReactNode;
4
- noSidebar?: boolean;
5
4
  }): React.JSX.Element;