Commit Graph

13 Commits

Author SHA1 Message Date
Андрей Бобырев
9d751922fb feat(panel): auto tg link host + theme switcher
mtproto status now derives advertised host from request when MTPRO_PUBLIC_HOST/CLIENT_CONFIG_ENDPOINT are unset, so tg:// always works with the host:port the admin uses. Adds copy button. Adds theme selector (auto/light/dark) persisted in localStorage with prefers-color-scheme fallback.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-15 04:03:00 +03:00
Андрей Бобырев
bb007ad644 feat(panel): donor strip + Telegram sponsor in footer
Public GET /api/panel/footer with env-backed URLs (defaults: Boosty + t.me sponsor). install.sh forwards PANEL_FOOTER_*. Promo only in admin SPA, not nginx landing.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-15 03:57:36 +03:00
Андрей Бобырев
8d6bf1a45c feat(ui): light theme + mtproto host-port explainer
Default palette is light for readability; fix orphaned .edition-banner CSS. Explain Docker 443→host map in mtproto panel. Cache-bust css/js v1.2.19.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-15 03:55:10 +03:00
Андрей Бобырев
eaee4d78f7 fix(mtproto): harden panel + deploy visibility
- Rename snapshot to snap; bust app.js cache (?v).\n- /health returns version from package.json; startup log prints v.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-15 03:41:49 +03:00
Андрей Бобырев
6c2698c106 fix(mtproto-ui): restore status fetch, trim promo footer
ReferenceError fixed by awaiting /api/mtproto/status before using snap. Footer: GitHub-only; dropped Boosty/Ozon/Telegram. Removed advertiseHint from install JSON (hint remains on status).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-15 03:32:45 +03:00
Андрей Бобырев
ecf754c7da feat(community): manage Telegram MTProto proxy from FREE UI
Docker pull/run/remove/restart via host socket (no SSH), optional
secrets and tg:// links when MTPRO_PUBLIC_HOST or CLIENT_CONFIG_ENDPOINT set.
Expose MTPRO_* and UI_HIDE_MTPROTO through install.sh.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-15 03:27:50 +03:00
Андрей Бобырев
485fea7ef7 fix(ui): hide cascade in FREE even when state fetch fails
/api/protocols now returns uiHidden alongside edition; client
applies both so cascade/warp stay hidden if /api/clients errors
out (e.g. missing clientsTable in tunnel container).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-15 03:11:18 +03:00
Андрей Бобырев
6c213ef49e feat(community): live install log panel in FREE UI + install-log API
Poll community-install-last.log after «Установить PRO» with GET
/api/community/install-log; preserve log DOM across banner redraws.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-15 01:17:47 +03:00
Андрей Бобырев
d29117176c feat(community): allow deleting clients in FREE tier
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-15 00:59:12 +03:00
Андрей Бобырев
9d54c7c8b8 feat(community): optional PRO install via GitHub token in UI
- POST /api/community/run-private-install fetches private install.sh and runs bash detached (202 Accepted)
- Gated by ALLOW_COMMUNITY_GITHUB_ACTIVATION + AMNEZIA_EDITION=community + admin session
- Log appended to /data/community-install-last.log; install bash bundled in Dockerfile

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-15 00:50:21 +03:00
Андрей Бобырев
9c28c022ac chore: default Boosty PRO subscription URL for FREE tier
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-14 22:38:30 +03:00
Андрей Бобырев
45d58004fb fix(ui): show AmneziaWG FREE in panel heading
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-14 21:59:47 +03:00
Андрей Бобырев
7f5fb921e6 feat: open community panel (read-only clients only)
Ship full install stack with .amnezia-panel-edition=community; docs and
footer point to Boosty/PRO. Managing peers, export, cascade and WARP
require private PRO build.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-14 21:53:15 +03:00