owpengram-server/cmd/telesrv-admin/web
Astra 8850554500 admin: fix server settings env editor crashing on empty template
ReadEnvGroups returned a nil slice (out := groups[:0]) whenever no group
ended up with fields, which marshals to JSON null instead of []. The
admin UI's EnvSection calls groups.reduce()/iterates unconditionally, so
that null crashed the Server Settings page.

Also switch the source of the panel structure from .env.example to .env
once .env exists, falling back to .env.example only pre-setup: .env
already carries the same group headers and comments after any save
(WriteEnvValues always rewrites it from .env.example's exact text), so
it's the more current source of what's actually configured.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-14 19:01:18 +01:00
..
dist admin ui: rebuild stale dist bundle from current source 2026-09-14 16:47:46 +01:00
public updated admin panel style 2026-07-22 01:16:29 +03:00
src admin: fix server settings env editor crashing on empty template 2026-09-14 19:01:18 +01:00
index.html Merge remote-tracking branch 'upstream/main' into merge-gramsrv-0e2fcdf9 2026-07-24 17:15:53 +03:00
package-lock.json merged from gramsrv upstream 2026-09-01 12:06:31 +03:00
package.json feat: sync collectible star gifts 2026-07-16 12:38:53 +08:00
tsconfig.json chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00
vite.config.ts config: sync admin and RTMP port defaults 2026-07-06 16:29:29 +08:00