Commit Graph

23 Commits

Author SHA1 Message Date
40d5f35afb feat: optimize table component with deferred search and dynamic container height 2025-08-14 12:01:38 +02:00
9d64e7c274 Implement virtual scrolling in Table component for improved performance
- Added useRef to track container and first row for height measurement.
- Introduced rowHeight state to dynamically calculate row height.
- Implemented range state to manage visible rows based on scroll position.
- Added scroll event listener to compute visible range efficiently.
- Adjusted rendering logic to display only a subset of rows based on the computed range.
- Included top and bottom spacers to maintain table height during scrolling.
- Refactored input change handling to remain functional with new rendering logic.
2025-08-14 11:37:28 +02:00
214a3cb3c8 feat: enhance CSV upload handling with chunked requests and token support; improve form input limits 2025-08-14 10:38:35 +02:00
bb63388986 feat: update losnummer label to include input format instructions 2025-08-13 22:09:57 +02:00
c4c805083a feat: add maxLength validation to form inputs and improve saveRow feedback 2025-08-13 22:08:54 +02:00
d77302c532 added scheme 2025-08-13 22:03:20 +02:00
a9f26b1148 fix: update Beispiel.csv with correct test data 2025-08-13 21:52:56 +02:00
3096e4ab83 feat: add entry removal and row saving functionality, enhance admin components with localization 2025-08-13 21:48:19 +02:00
5792ce154f removed unnessearry stuff 2025-08-13 16:43:53 +02:00
dd4fcea1b0 feat: enhance CSV import functionality, integrate react-query for data fetching, and refactor admin components 2025-08-13 16:43:26 +02:00
42d68181f9 created backend to create lottery entries manually 2025-08-13 12:21:12 +02:00
42f46db2c9 feat: implement admin login form localization, add import functionality, and enhance file handling 2025-08-13 11:57:50 +02:00
9dd7b6641a added import lottery number gui, but currently only frontend. The backend is currently NaN. 2025-08-13 11:57:33 +02:00
8c2049fa24 feat: add authentication and admin features
- Added `jose` library for JWT token generation and verification.
- Implemented login functionality with token storage using cookies.
- Created `HeaderAdmin` component for admin panel with login/logout capabilities.
- Developed `LoginForm` component for user authentication.
- Added `Table` component to display data with caching from localStorage.
- Introduced `SubHeaderAdmin` for additional admin actions.
- Enhanced `database.js` with functions for admin login and fetching table data.
- Updated `server.js` to handle new routes for login and table data retrieval.
- Modified `package.json` and `package-lock.json` to include new dependencies.
2025-08-12 22:56:58 +02:00
97eaf1e484 Refactor layout components to include title prop and update header rendering; modify index and home pages for improved structure and icon usage 2025-08-11 20:10:36 +02:00
11384103c9 Refactor toast notifications and update MainForm submission messages 2025-08-11 20:01:02 +02:00
0a2f1e650d Enhance backend and frontend setup with MySQL integration, Docker configurations, and toast notifications
- Updated .gitignore to include additional environment and build files
- Configured Dockerfiles for backend and frontend with npm install and port exposure
- Added MySQL connection pool and query function in backend services
- Implemented form submission with toast notifications in MainForm component
- Updated package.json and package-lock.json for new dependencies
- Enhanced routing and layout in frontend with toast notifications
2025-08-11 19:56:43 +02:00
08c820ac35 added Readme 2025-08-11 18:44:18 +02:00
d92759a7c3 Add EJS as a dependency and implement form submission in MainForm component 2025-08-11 18:42:15 +02:00
ba62beb90d Add backend and frontend structure with routing, components, and styling
- Implemented Express server with CORS and dotenv support
- Created basic routing with React Router in frontend
- Added Admin and Home components with navigation
- Integrated MainForm component for user input
- Updated package.json and package-lock.json with new dependencies
- Styled components using Tailwind CSS and Lucide icons
- Added error handling in server
- Created initial EJS view for backend
2025-08-11 18:29:06 +02:00
38b02c186f created react structure 2025-08-11 12:33:59 +02:00
cb5df58a37 installed tailwind css 2025-08-11 12:23:31 +02:00
1356775e07 inital init 2025-08-11 11:59:52 +02:00