This project contains the web interface for Personal Media Vault. The interface is inspired by YouTube, but adapted for the personal media use case.
Built using the Vue.js framework and Vite asd the build tool.
First, install the dependencies using npm:
npm install
After installing the dependencies, compile the code for production with the following command:
npm run build
After compiling, the result will be saved in the dist
folder.
In order to run a development server to test the frontend, use:
npm run serve
In order to lint the code and test the typescript sources, type:
npm test
This project uses prettier to automatically stylize the code. For that, use the following script:
npm run prettier
Text translations can be found in the src/locales folder as json
files with a name structure like locale-{LOCALE}.json
.
When using the i18n
plugin, run the following script to detect its usages and update the translation files:
npm run update-translations
If there are missing translations, several .txt
files will be created. You can use them or directly update the .json
files.
After any update, remember to run the update-translations
script.
This project uses a script to create a font awesome subset.
When using new icons, make sure to run the script to update the font files:
npm run update-fa-subset