Fix inconsistent Mapbox capitalization
Standardized "MapBox" to "Mapbox" throughout the codebase to match official branding. Updated: - Documentation (CLAUDE.md, README.md) - Source code comments and console logs - API documentation and Swagger definitions This ensures consistent branding and professional presentation. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
75cbd921b4
commit
536660e818
4 changed files with 19 additions and 19 deletions
10
CLAUDE.md
10
CLAUDE.md
|
@ -86,11 +86,11 @@ npm run test:coverage
|
|||
Before running the application, you must configure environment variables:
|
||||
```bash
|
||||
cp .env.example .env
|
||||
# Edit .env to add your MapBox token and admin password
|
||||
# Edit .env to add your Mapbox token and admin password
|
||||
```
|
||||
|
||||
Required environment variables:
|
||||
- `MAPBOX_ACCESS_TOKEN`: MapBox API token for geocoding and static map generation (get free token at https://account.mapbox.com/access-tokens/)
|
||||
- `MAPBOX_ACCESS_TOKEN`: Mapbox API token for geocoding and static map generation (get free token at https://account.mapbox.com/access-tokens/)
|
||||
- **Important**: For server-side static map generation, use an unrestricted token (no URL restrictions)
|
||||
- `ADMIN_PASSWORD`: Password for admin panel access at /admin
|
||||
- `PORT`: Server port (default: 3000)
|
||||
|
@ -143,11 +143,11 @@ The application uses progressive enhancement to work with and without JavaScript
|
|||
|
||||
**JavaScript-Enhanced Experience:**
|
||||
- **public/app.js**: Main implementation using Leaflet.js
|
||||
- Auto-detects available geocoding services (MapBox preferred, Nominatim fallback)
|
||||
- Auto-detects available geocoding services (Mapbox preferred, Nominatim fallback)
|
||||
- Interactive map with real-time updates
|
||||
- Autocomplete and form validation
|
||||
|
||||
- **public/app-mapbox.js**: MapBox GL JS implementation for enhanced features
|
||||
- **public/app-mapbox.js**: Mapbox GL JS implementation for enhanced features
|
||||
- **public/app-google.js**: Google Maps implementation (alternative)
|
||||
- **public/admin.js**: Admin panel functionality
|
||||
- **public/utils.js**: Shared utilities across implementations
|
||||
|
@ -161,7 +161,7 @@ The application uses progressive enhancement to work with and without JavaScript
|
|||
### API Endpoints
|
||||
|
||||
**Public endpoints:**
|
||||
- `GET /api/config`: Returns MapBox token for frontend geocoding
|
||||
- `GET /api/config`: Returns Mapbox token for frontend geocoding
|
||||
- `GET /api/locations`: Active locations (< 48 hours old or persistent)
|
||||
- `POST /api/locations`: Submit new location report (rate limited: 10/15min per IP)
|
||||
- **Input Validation:** Address ≤500 chars, Description ≤1000 chars, coordinate validation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue