14d412544e0bd16974bd2175842250357a12565e
- Added login route with JWT token generation and device validation for non-manager roles. - Implemented clocking functionality with geofence validation and distance calculation. - Created routes for managing workers, including password change and device registration. - Added security status and app blacklist retrieval endpoints. feat: Develop Geofence Management component - Created a Vue component for managing geofences with map integration using Leaflet. - Implemented functionality to draw, save, activate/deactivate, and delete geofences. - Added UI for displaying existing geofences in a table format. feat: Introduce Kill Switch Management component - Developed a calendar-based UI for managing enabled/disabled dates. - Implemented functionality to apply or discard changes to the work schedule. - Added visual indicators for pending changes in the calendar. feat: Create Warning Reporting component - Implemented a reporting interface for failed clock records with search and filter options. - Added detail modal for viewing specific failed record details. - Implemented sorting functionality for the records table.
NiLai-Clock
Prerequisites
- Node.js 22.14.0
Customize configuration
Project Setup
npm install
Database Configuration
Create a .env file in the project root with your database configuration:
DB_HOST=your_database_host
DB_USER=your_database_user
DB_PASSWORD=your_database_password
DB_NAME=your_database_name
DB_PORT=your_database_port
VITE_API_BASE_URL=your_api_base_url
Development
Run Frontend Only
npm run dev
Run Backend Only
npm run backend
Run Full Application (Frontend + Backend)
npm run dev:all
Compile and Minify for Production
npm run build
Lint with ESLint
npm run lint
Description
Languages
Vue
66.8%
JavaScript
32.8%
Dockerfile
0.2%
HTML
0.2%