update 2. GTP-6, второй этап поправки ошибок

This commit is contained in:
2026-09-26 22:30:49 +03:00
parent 22e10b53b7
commit c707c60a35
47 changed files with 4579 additions and 1876 deletions

View File

@@ -2,16 +2,37 @@
Safe files that may be committed to Git:
- `ui_builder_draft.json` — editable UI Builder configuration.
- `ui_builder_published.json` — published runtime configuration used by operators.
- `ui_builder_draft.json` — bootstrap default for the UI Builder draft.
- `ui_builder_published.json` — bootstrap default for the published runtime.
- `hockey_api.json` — public Stat2TV endpoint/settings configuration; no password is stored here.
Files that must stay local and are ignored by Git:
- `local/` — live user UI configuration, buttons, shortcuts and their backups.
- `stat2tv_credentials.local.json` — fallback local login/password.
- `editor_security.json` — local editor/PIN security data.
- `backups/`, `settings.json`, `vmix_json.json`, `vmix_functions.json` — machine/runtime-specific files.
## Persistent buttons and shortcuts (2026.09.26.2)
The application reads and writes `local/ui_builder_draft.json` and
`local/ui_builder_published.json`. On the first start it copies the existing root
configs (or legacy `ui_builder.json`) and UI backups into `local/`. An existing
destination is never replaced by a release default. Saves use a temporary file
and atomic replacement; the last 40 backups per config are retained.
To store the data outside the project, set `HOCKEY_UI_DATA_DIR` to an absolute
directory, for example `D:/HockeyData/ui`. Set it before the first updated start;
when changing it later, stop the app and copy the current contents of `local/`
to the new directory first. The server account needs write access.
Do not include `local/` or the external data directory in update archives and do
not delete them when deploying code. Back up these files along with the database.
Existing root configs are migration inputs only; after migration, editing those
root files does not change the active UI. Settings lost before this update need
to be restored from a prior backup. See `UPDATE_STAGE2_RU.md` for installation and
rollback instructions.
## Recommended production credentials
Put secrets in the server environment file instead of JSON: