immich-app / immich

High performance self-hosted photo and video management solution.
https://immich.app
GNU Affero General Public License v3.0
52.38k stars 2.78k forks source link

feat: adding photo & video storage space to server stats #14125

Closed weathondev closed 6 days ago

weathondev commented 1 week ago

I wanted to know how much space my videos take up compared to my photos and the total storage, so i added it both to the server and to the admin server stats. The occupied storage is displayed in brackets after the number of files per user. I also added to code to display the total video storage and total photo storage but i haven't found a neat way to display that - Open for suggestions!

This is how it looks. grafik

This is my first PR to immich, so apologizes for anything i missed / thats wrong!

alextran1502 commented 1 week ago

From the root of the project you need to run make open-api and then make sql. Can you also run npm run format:fix in the web directory?