mirror of
https://github.com/Pandipipas/scoreko-dev.git
synced 2026-06-06 03:32:06 +00:00
Merge pull request #62 from Pandipipas/rename-dashboard/example-to-scoreko-dev
Rename dashboard panel path from example to scoreko-dev
This commit is contained in:
+2
-2
@@ -47,14 +47,14 @@ npm run start:dev
|
||||
|
||||
- `NODECG_ROOT`: ruta a la raíz de NodeCG (relativa al bundle o absoluta).
|
||||
- `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`).
|
||||
- `NODECG_USE_ELECTRON_NODE`: si vale `1`, NodeCG arranca con el runtime de Node embebido en Electron (`process.execPath`).
|
||||
|
||||
Ejemplo:
|
||||
|
||||
```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
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ const nodecgRoot = process.env.NODECG_ROOT
|
||||
? resolve(bundleRoot, process.env.NODECG_ROOT)
|
||||
: 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 nodeBinary = process.env.NODE_BINARY ?? 'node';
|
||||
const useElectronNodeForNodeCG = process.env.NODECG_USE_ELECTRON_NODE === '1';
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
"main": "main.mjs",
|
||||
"scripts": {
|
||||
"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 .",
|
||||
"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"
|
||||
|
||||
+3
-3
@@ -59,9 +59,9 @@
|
||||
"compatibleRange": "^2.3.0",
|
||||
"dashboardPanels": [
|
||||
{
|
||||
"name": "example",
|
||||
"title": "Example",
|
||||
"file": "example/main.html",
|
||||
"name": "scoreko-dev",
|
||||
"title": "scoreko-dev",
|
||||
"file": "scoreko-dev/main.html",
|
||||
"fullbleed": true
|
||||
},
|
||||
{
|
||||
|
||||
|
Before Width: | Height: | Size: 288 KiB After Width: | Height: | Size: 288 KiB |
Reference in New Issue
Block a user