[FEAT] We now have a functional APP
This commit is contained in:
26
AGENTS.md
26
AGENTS.md
@@ -132,8 +132,34 @@ MySQL database connection configured in `api/config/database.php`:
|
||||
- Site targets French-speaking users
|
||||
- Production URL: `ohmj2.free.fr`
|
||||
|
||||
## Design Guidelines
|
||||
|
||||
- **Style**: Clean, sober, and modern
|
||||
- **Icons**: Use SVG icons instead of emojis for better consistency
|
||||
- **Buttons**: Integrate related actions (view + download) in a single row with consistent styling
|
||||
- **Hide unnecessary labels**: Don't show "Piece 1" or "Version 1" when there's only one
|
||||
- **Visual hierarchy**: Use spacing, subtle borders, and hover effects for interactivity
|
||||
|
||||
## Temporary Work Files
|
||||
|
||||
- Use `_builds/` directory for temporary scripts and working files
|
||||
- Only `scripts/convert_final_v2.js` should be kept in the scripts folder (committed to git)
|
||||
- CSV output files belong in `_builds/`
|
||||
|
||||
## Authentication
|
||||
|
||||
- **Login**: Use `apiService.login('admin', 'password')` from frontend
|
||||
- **API calls**: Include token in Authorization header:
|
||||
```
|
||||
Authorization: Bearer <token>
|
||||
```
|
||||
- **Token format**: JWT (HS256) - see `api/lib/Auth.php`
|
||||
- **Frontend**: Token stored in localStorage, auto-attached to API requests via axios interceptor
|
||||
- **Test**: http://localhost:5173 - login with admin/password
|
||||
- **API base URL**: http://localhost:8000/api/
|
||||
|
||||
## Current Tech Stack (2024)
|
||||
|
||||
- **Frontend**: SvelteKit (NOT Vue.js 2) in `/partitions/`
|
||||
- **Backend**: PHP API in `/api/`
|
||||
- **Scores storage**: `/legacy/Scores/` (directory-based, not MySQL)
|
||||
|
||||
Reference in New Issue
Block a user