From 2d82282c36826a8d1ab3b424d1ad41a6fafb9372 Mon Sep 17 00:00:00 2001 From: Anton Afanasyeu Date: Sat, 20 Jun 2026 21:23:57 +0300 Subject: [PATCH] GA rework from AI --- examples/app_hub/analytics.config.js | 7 +++++++ examples/app_hub/assets/analytics.config.js | 2 +- examples/app_hub/assets/i18n/hub-en.json | 8 ++++++-- examples/app_hub/assets/i18n/hub-ru.json | 8 ++++++-- examples/app_hub/index.php | 6 +++++- 5 files changed, 25 insertions(+), 6 deletions(-) create mode 100644 examples/app_hub/analytics.config.js diff --git a/examples/app_hub/analytics.config.js b/examples/app_hub/analytics.config.js new file mode 100644 index 0000000..236e461 --- /dev/null +++ b/examples/app_hub/analytics.config.js @@ -0,0 +1,7 @@ +/** Hub GA4 config — set measurementId to enable (see analytics.config.example.js). */ +window.ANDROIDCAST_ANALYTICS = { + measurementId: 'G-8RKGWGQ52P', + platform: 'hub', + basePath: '/app/androidcast_project', + debug: false +}; diff --git a/examples/app_hub/assets/analytics.config.js b/examples/app_hub/assets/analytics.config.js index ac7f58f..236e461 100644 --- a/examples/app_hub/assets/analytics.config.js +++ b/examples/app_hub/assets/analytics.config.js @@ -1,6 +1,6 @@ /** Hub GA4 config — set measurementId to enable (see analytics.config.example.js). */ window.ANDROIDCAST_ANALYTICS = { - measurementId: '', + measurementId: 'G-8RKGWGQ52P', platform: 'hub', basePath: '/app/androidcast_project', debug: false diff --git a/examples/app_hub/assets/i18n/hub-en.json b/examples/app_hub/assets/i18n/hub-en.json index 90271b9..37bd09e 100644 --- a/examples/app_hub/assets/i18n/hub-en.json +++ b/examples/app_hub/assets/i18n/hub-en.json @@ -13,7 +13,9 @@ "nav.issues": "Issues", "nav.tickets": "Tickets", "nav.crashes": "Crashes", - "nav.graphs": "Graphs", + "nav.graphs": "Analytics", + "nav.live_sessions": "Live sessions", + "nav.education": "Education (demo)", "nav.remote": "Remote access", "nav.short_links": "Short links", "nav.short_links_desc": "Mint bearer tokens and shorten URLs for s.f0xx.org.", @@ -21,7 +23,9 @@ "nav.git_desc": "Browse repos, branches, and tags.", "nav.issues_desc": "Browse and triage issues.", "nav.tickets_desc": "Roadmap tasks, QA items, and tags.", - "nav.graphs_desc": "Sessions, issues, and device activity.", + "nav.graphs_desc": "Sessions, live cast stats, and device activity.", + "nav.live_sessions_desc": "Cast intents, join stats, session history.", + "nav.education_desc": "Browser screen-share trial (5 min).", "nav.remote_desc": "WireGuard sessions and device reachability.", "nav.builder_desc": "Docker CI for APK baking and OTA artifacts.", "nav.builder": "Builder", diff --git a/examples/app_hub/assets/i18n/hub-ru.json b/examples/app_hub/assets/i18n/hub-ru.json index 965a125..b9cd1c4 100644 --- a/examples/app_hub/assets/i18n/hub-ru.json +++ b/examples/app_hub/assets/i18n/hub-ru.json @@ -13,7 +13,9 @@ "nav.issues": "Проблемы", "nav.tickets": "Тикеты", "nav.crashes": "Крэши", - "nav.graphs": "Графики", + "nav.graphs": "Аналитика", + "nav.live_sessions": "Live-сессии", + "nav.education": "Education (demo)", "nav.remote": "Удалённый доступ", "nav.short_links": "Короткие ссылки", "nav.short_links_desc": "Токены и сокращение URL для s.f0xx.org.", @@ -21,7 +23,9 @@ "nav.git_desc": "Репозитории, ветки и теги.", "nav.issues_desc": "Просмотр и разбор issues.", "nav.tickets_desc": "Задачи roadmap, QA и теги.", - "nav.graphs_desc": "Сессии, issues и активность устройств.", + "nav.graphs_desc": "Сессии, live cast и активность устройств.", + "nav.live_sessions_desc": "Intent, join-статистика, история сессий.", + "nav.education_desc": "Пробный screen-share в браузере (5 мин).", "nav.remote_desc": "Сессии WireGuard и доступ к устройствам.", "nav.builder_desc": "Docker CI для сборки APK и OTA.", "nav.builder": "Сборщик", diff --git a/examples/app_hub/index.php b/examples/app_hub/index.php index b1b8f76..31e06c2 100644 --- a/examples/app_hub/index.php +++ b/examples/app_hub/index.php @@ -49,6 +49,7 @@ function hub_h(string $s): string { + @@ -142,7 +143,9 @@ function hub_h(string $s): string {
  • GitBrowse repos, branches, and tags.
  • IssuesBrowse and triage crash reports.
  • TicketsRoadmap tasks, QA items, and tags.
  • -
  • GraphsSessions, crashes, and device activity.
  • +
  • AnalyticsSessions, live cast stats, and device activity.
  • +
  • Live sessionsCast intents, join stats, session history.
  • +
  • Education (demo)Browser screen-share trial (5 min).
  • Remote accessWireGuard sessions and device reachability.
  • Short linksMint bearer tokens and shorten URLs for s.f0xx.org.
  • BuilderDocker CI for APK baking and OTA artifacts.
  • @@ -193,6 +196,7 @@ function hub_h(string $s): string { + false, 'extra_class' => 'bottom-bar',