|
|
9 月之前 | |
|---|---|---|
| .. | ||
| .vscode | 9 月之前 | |
| docker | 9 月之前 | |
| public | 9 月之前 | |
| src | 9 月之前 | |
| tests | 9 月之前 | |
| .browserslistrc | 9 月之前 | |
| .editorconfig | 9 月之前 | |
| .gitignore | 9 月之前 | |
| .lintstagedrc.js | 9 月之前 | |
| .npmrc | 9 月之前 | |
| .prettierignore | 9 月之前 | |
| .prettierrc.json | 9 月之前 | |
| CHANGELOG.md | 9 月之前 | |
| README.md | 9 月之前 | |
| env.d.ts | 9 月之前 | |
| index.html | 9 月之前 | |
| package.json | 9 月之前 | |
| sonar-project.properties | 9 月之前 | |
| start.js | 9 月之前 | |
| tsconfig.json | 9 月之前 | |
| vite.config.ts | 9 月之前 | |
| vitest.config.ts | 9 月之前 | |
The Web UI code and configuration is in the repository directory ui/web. Commands execution is relative to that directory.
The simulator UI server must be enabled, use WebSocket transport type and have authentication disabled. The simulator main configuration file should have a uiServer section like this:
"uiServer": {
"enabled": true,
"type": "ws",
"authentication": {
"enabled": true,
"type": "protocol-basic-auth",
"username": "admin",
"password": "admin"
}
},
See here for more details.
Copy the configuration template src/assets/config-template.json to public/config.json.
{
"uiServer": {
"host": "localhost",
"port": 8080,
"protocol": "ui",
"version": "0.0.1",
"authentication": {
"enabled": true,
"type": "protocol-basic-auth",
"username": "admin",
"password": "admin"
}
}
}
{
"uiServer": [
{
"host": "server1.domain.tld",
"port": 8080,
"protocol": "ui",
"version": "0.0.1",
"authentication": {
"enabled": true,
"type": "protocol-basic-auth",
"username": "admin",
"password": "admin"
}
},
...
{
"host": "serverN.domain.tld",
"port": 8080,
"protocol": "ui",
"version": "0.0.1",
"authentication": {
"enabled": true,
"type": "protocol-basic-auth",
"username": "admin",
"password": "admin"
}
}
]
}
pnpm preview
You can now follow the link displayed in the terminal. The Web UI looks like the following:
In the docker folder:
make
pnpm dev
pnpm format
pnpm lint:fix