Initiated the obsidian vault

This commit is contained in:
Mohammed Abad committed 2026-04-22 02:09:10 +01:00
1 parent 3c4958df50
commit 1058274a6a
13 files changed
+262

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
# Settings Page
## Overview
App configuration and maintenance tools at `/settings`.
## Sections
### General Settings
- **TMDB API Key** — Required for media metadata lookups
- **Backend Port** — Port the backend server runs on
### Cleanup
Added in Milestone 001. Uses [[Backend]] maintenance endpoints.
#### Orphan Files
- **Scan** (`GET /maintenance/orphan-files`) — Dry run, returns counts of orphan files by type
- **Delete** (`DELETE /maintenance/orphan-files`) — Removes orphan files from disk
#### Orphan Media Records
- **Scan** (`GET /maintenance/orphan-media-records`) — Dry run, returns counts of DB records with no file
- **Delete** (`DELETE /maintenance/orphan-media-records`) — Removes orphan records from database
### Response Format
Both endpoints return: `{ posters: number, logos: number, backdrops: number, stills: number }`
## Important Files
- `react_frontend/src/pages/SettingsPage.tsx`
- `react_frontend/src/api/maintenance.ts`
- `backend/controllers/maintenanceController.js`
- `backend/services/maintenanceService.js`