Add storage management features and UI components
ci / build-backend (push) Successful in 1m32s
ci / build-frontend (push) Successful in 53s
ci / tests (push) Successful in 3m50s
ci / sonar (push) Successful in 4m7s

Implemented new storage endpoints in the API and updated the dependency injection to include storage-related services. Enhanced the frontend by adding storage routes and links in the admin layout, along with new types and localization for storage management. Updated documentation to reflect the new storage features and their usage in the admin interface.
This commit is contained in:
Leonid Pershin
2026-07-27 22:23:48 +03:00
parent 779f322f62
commit 8ae8eebc12
19 changed files with 1013 additions and 0 deletions
+40
View File
@@ -798,6 +798,46 @@ export const en = {
slot: 'Slot title',
},
},
storage: {
title: 'Storage',
volume: 'Storage volume',
volumeUnknown:
'The file system did not report the volume size — only the storage usage is shown.',
totalVolume: 'Volume total',
ours: 'Used by TeleWave',
foreign: 'Other on the volume',
foreignHint: 'database, system, foreign files',
free: 'Free',
lowSpace: 'Free space is below the threshold ({{threshold}}) — new uploads are rejected.',
recount: 'Recount',
computedAt: 'computed at {{time}}',
breakdown: 'What takes the space',
filesTotal: 'files: {{count}}',
files: 'files: {{count}}',
empty: 'The storage is empty.',
areas: {
Assets: 'Programme segments',
BumperAssets: 'Bumper segments',
Originals: 'Originals',
Inbox: 'Inbox',
ManualInbox: 'Manual inbox',
Uploads: 'Unfinished uploads',
BumperSources: 'Bumper sound and backgrounds',
Images: 'Images',
Other: 'Other under the root',
},
areaHints: {
Assets: 'HLS segments of the library — usually almost everything',
BumperAssets: 'rendered bumpers; cleaned up along with the schedule',
Originals: 'kept only when Storage:KeepOriginals is on',
Inbox: 'not picked up by the scanner yet',
ManualInbox: 'taken into shows by hand',
Uploads: 'staging directory; leftovers mean an aborted upload',
BumperSources: 'raw block files, not the segments',
Images: 'posters, stills, logos',
Other: 'files outside the known directories — usually zero',
},
},
maintenance: {
title: 'Maintenance',
warning: 'These actions are irreversible — data and files are deleted permanently.',