alphazee09 d938f72e1d Refactor AreasContextProvider: Add context export, custom hook, PropTypes validation, and error handling
- Added `AreasContext` export and created `useAreasContext` custom hook for safer and easier context access.
 - Integrated `PropTypes` to validate `children` prop in `AreasContextProvider` component.
 - Refactored `addArea` function by breaking it into `addExistingArea` and `addNewArea` for improved readability and maintainability.
 - Added error handling in `deleteArea` function to prevent operations with invalid IDs.
 - Extracted logic to clear selected element into a separate function for better separation of concerns.
 - Ensured proper default export for `AreasContextProvider` to facilitate correct imports.

 These changes improve code robustness, readability, and type safety in the JavaScript environment.
2024-08-08 19:42:50 +04:00
2024-08-04 16:02:54 +03:00
2024-04-06 05:19:13 +03:00
2024-05-22 15:17:07 +03:00
2024-03-15 21:09:50 +02:00
2024-04-06 11:11:12 +03:00
2023-12-16 05:39:13 +02:00
2024-04-06 11:11:12 +03:00
2024-06-01 20:53:07 +03:00
2024-05-22 14:59:41 +03:00
2024-04-14 10:20:14 +03:00
2024-04-06 12:39:13 +03:00
2024-08-05 15:46:57 +03:00
2024-07-21 17:00:32 +03:00
2023-12-16 05:39:13 +02:00
2024-01-03 21:37:44 +02:00
2024-02-27 15:16:14 +02:00
2023-12-16 05:39:13 +02:00

drawdb logo

Free, simple, and intuitive database design tool and SQL generator.

drawDB · Discord · X

demo

drawDB

DrawDB is a robust and user-friendly database entity relationship (DBER) editor right in your browser. Build diagrams with a few clicks, export sql scripts, customize your editor, and more without creating an account. See the full set of features here.

Getting Started

Local Development

git clone https://github.com/drawdb-io/drawdb
cd drawdb
npm install
npm run dev

Build

git clone https://github.com/drawdb-io/drawdb
cd drawdb
npm install
npm run build

Docker Build

docker build -t drawdb .
docker run -p 3000:80 drawdb

Set up the server and environment variables according to .env.sample for the survey and bug report forms.

Description
Free, simple, and intuitive online database diagram editor and SQL generator.
Readme AGPL-3.0 11 MiB
Languages
JavaScript 98.8%
CSS 1%
HTML 0.2%