Installing npm dependencies
npm iData from the mocks folder is used to create a fake Zigbee2MQTT server connection.
npm start
open http://localhost:5173/Use the Z2M_API_URI environment variable with the appropriate IP & port. Example:
Z2M_API_URI="ws://192.168.1.200:8080" npm start
open http://localhost:5173/All contributions are expected to match the repository's formatting and linting rules (using biomejs).
npm run checkAll contributions are expected to pass the current tests, and implement coverage for new features as appropriate.
npm run test:covAll contributions are expected to build successfully.
npm run buildYou can edit the JSON files directly from Github, using the EN file as reference. The EN file contains all the keys to support for full coverage in a given language. If starting from a blank JSON, copy the content of the EN file in it and then translate the values.
For example:
en.json
{
"common": {
"action": "Action",
[...]es.json
{
"common": {
"action": "Acción",
[...]