Rename dashboard panel from example to scoreko-dev

This commit is contained in:
Pandipipas
2026-02-14 15:29:54 +01:00
parent 38d2377a00
commit 61c97ffe5a
20 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -47,14 +47,14 @@ npm run start:dev
- `NODECG_ROOT`: ruta a la raíz de NodeCG (relativa al bundle o absoluta). - `NODECG_ROOT`: ruta a la raíz de NodeCG (relativa al bundle o absoluta).
- `NODECG_PORT`: puerto de NodeCG (por defecto `9090`). - `NODECG_PORT`: puerto de NodeCG (por defecto `9090`).
- `ELECTRON_START_URL`: URL que abre la ventana (por defecto `http://localhost:9090/bundles/scoreko-dev/dashboard/example/main.html?standalone=true`). - `ELECTRON_START_URL`: URL que abre la ventana (por defecto `http://localhost:9090/bundles/scoreko-dev/dashboard/scoreko-dev/main.html?standalone=true`).
- `NODE_BINARY`: ejecutable de Node.js para arrancar NodeCG (por defecto `node`). - `NODE_BINARY`: ejecutable de Node.js para arrancar NodeCG (por defecto `node`).
- `NODECG_USE_ELECTRON_NODE`: si vale `1`, NodeCG arranca con el runtime de Node embebido en Electron (`process.execPath`). - `NODECG_USE_ELECTRON_NODE`: si vale `1`, NodeCG arranca con el runtime de Node embebido en Electron (`process.execPath`).
Ejemplo: Ejemplo:
```bash ```bash
NODECG_ROOT=../.. NODECG_PORT=9090 ELECTRON_START_URL=http://localhost:9090/bundles/scoreko-dev/dashboard/example/main.html?standalone=true npm start NODECG_ROOT=../.. NODECG_PORT=9090 ELECTRON_START_URL=http://localhost:9090/bundles/scoreko-dev/dashboard/scoreko-dev/main.html?standalone=true npm start
``` ```
## Modo desarrollo recomendado ## Modo desarrollo recomendado
+1 -1
View File
@@ -12,7 +12,7 @@ const nodecgRoot = process.env.NODECG_ROOT
? resolve(bundleRoot, process.env.NODECG_ROOT) ? resolve(bundleRoot, process.env.NODECG_ROOT)
: resolve(bundleRoot, '..', '..'); : resolve(bundleRoot, '..', '..');
const startUrl = process.env.ELECTRON_START_URL ?? 'http://localhost:9090/bundles/scoreko-dev/dashboard/example/main.html?standalone=true'; const startUrl = process.env.ELECTRON_START_URL ?? 'http://localhost:9090/bundles/scoreko-dev/dashboard/scoreko-dev/main.html?standalone=true';
const nodecgPort = Number(process.env.NODECG_PORT ?? 9090); const nodecgPort = Number(process.env.NODECG_PORT ?? 9090);
const nodeBinary = process.env.NODE_BINARY ?? 'node'; const nodeBinary = process.env.NODE_BINARY ?? 'node';
const useElectronNodeForNodeCG = process.env.NODECG_USE_ELECTRON_NODE === '1'; const useElectronNodeForNodeCG = process.env.NODECG_USE_ELECTRON_NODE === '1';
+1 -1
View File
@@ -7,7 +7,7 @@
"main": "main.mjs", "main": "main.mjs",
"scripts": { "scripts": {
"start": "cross-env electron .", "start": "cross-env electron .",
"start:dev": "cross-env NODECG_ROOT=../.. ELECTRON_START_URL=http://localhost:9090/bundles/scoreko-dev/dashboard/example/main.html?standalone=true electron .", "start:dev": "cross-env NODECG_ROOT=../.. ELECTRON_START_URL=http://localhost:9090/bundles/scoreko-dev/dashboard/scoreko-dev/main.html?standalone=true electron .",
"start:electron-node": "cross-env NODECG_USE_ELECTRON_NODE=1 electron .", "start:electron-node": "cross-env NODECG_USE_ELECTRON_NODE=1 electron .",
"rebuild:better-sqlite3:electron": "npm --prefix ../.. rebuild better-sqlite3 --runtime=electron --target=39.5.1 --dist-url=https://electronjs.org/headers", "rebuild:better-sqlite3:electron": "npm --prefix ../.. rebuild better-sqlite3 --runtime=electron --target=39.5.1 --dist-url=https://electronjs.org/headers",
"start:electron-node:rebuild": "npm run rebuild:better-sqlite3:electron && npm run start:electron-node" "start:electron-node:rebuild": "npm run rebuild:better-sqlite3:electron && npm run start:electron-node"
+3 -3
View File
@@ -59,9 +59,9 @@
"compatibleRange": "^2.3.0", "compatibleRange": "^2.3.0",
"dashboardPanels": [ "dashboardPanels": [
{ {
"name": "example", "name": "scoreko-dev",
"title": "Example", "title": "scoreko-dev",
"file": "example/main.html", "file": "scoreko-dev/main.html",
"fullbleed": true "fullbleed": true
}, },
{ {

Before

Width:  |  Height:  |  Size: 288 KiB

After

Width:  |  Height:  |  Size: 288 KiB