Mitra Web UI
| icons | ||
| public | ||
| scripts | ||
| src | ||
| tests/unit | ||
| .browserslistrc | ||
| .editorconfig | ||
| .env | ||
| .gitignore | ||
| .npmrc | ||
| .stylelintrc.json | ||
| CHANGELOG.md | ||
| CONTRIBUTING.md | ||
| eslint.config.js | ||
| index.html | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| screenshot.png | ||
| tsconfig.json | ||
| vite.config.js | ||
Mitra Web
Default frontend for Mitra.
- Supports all Mitra features.
- Translated into 7+ languages.
- Includes a dark mode feature for visual accessibility.
Custom themes
The appearance can be customized by replacing assets/custom.css as described in documentation.
Compatibility
The latest version of Mitra Web UI is compatible with the latest version of Mitra server and the version before it.
Compatibility with previous versions is not guaranteed.
Requirements
- node 20+
- npm 7+
Project setup
npm install --no-save
npx allow-scripts
Compile and minify for production
Set backend URL:
echo "VITE_BACKEND_URL=https://mydomain.tld" > .env.local
Or un-set it if both frontend and backend will run on the same URL:
echo "VITE_BACKEND_URL=" > .env.local
Compile:
npm run build
This will produce a static website in the /dist directory.
Development
See CONTRIBUTING.md
Compiles and hot-reloads for development
npm start
Run your unit tests
npm run test
Lint files
npm run lint
Localization
Messages are stored in src/locales and can be edited using Weblate.