Commit Graph
60 Commits
Author SHA1 Message Date
mtvpls-turso 392211264f feat: add Microsoft Clarity analytics provider
Add Microsoft Clarity as a fourth analytics provider option alongside
Umami, Google Analytics, and Custom. Clarity provides free heatmaps,
session recordings, and user analytics.

- admin.types.ts: Add 'clarity' to AnalyticsProvider union type
- api/admin/site/route.ts: Add 'clarity' to validation
- admin/page.tsx: Add Clarity option to dropdown + Project ID input UI
- layout.tsx: Inject Clarity tracking script with project ID
2026-07-11 19:01:16 +00:00
mtvpls-turso d98f5082a5 feat: add traffic analytics configuration (Umami/GA/Custom)
Add traffic analytics support to the admin panel with three provider
options:
- Umami (open-source, self-hosted) — script URL + website ID
- Google Analytics 4 — Measurement ID (G-XXXXXXXXXX)
- Custom — any third-party analytics script (百度统计, Plausible, 51la, etc.)

Changes:
- admin.types.ts: Add AnalyticsEnabled, AnalyticsProvider,
  AnalyticsScriptUrl, AnalyticsWebsiteId, AnalyticsCustomScript to
  SiteConfig interface
- config.ts: Add default values in getInitConfig() and configSelfCheck()
- api/admin/site/route.ts: Add analytics fields to destructuring, type
  validation, and SiteConfig update
- admin/page.tsx: Add SiteConfig interface fields, state initialization,
  config sync, and analytics configuration UI with provider-specific
  input fields
- layout.tsx: Inject analytics scripts into <head> based on provider
  type (Umami: async script with data-website-id; GA: gtag.js + config;
  Custom: dangerouslySetInnerHTML)
2026-07-11 18:47:11 +00:00
mtvpls c705b2fd16 公告增加每次显示模式 2026-07-03 11:41:43 +08:00
mtvpls 5d605710f3 接入tgbot 2026-06-29 16:40:03 +08:00
mtvpls 7c1fedaf2a 修复未配置opds源不显示电子书馆入口 2026-06-06 10:08:03 +08:00
mtvpls a682998930 增加tv mode开关 2026-06-01 02:05:05 +08:00
mtvpls cc98b21d66 增加动漫数据源配置 2026-05-28 16:00:07 +08:00
mtvpls 0d99953e99 新增电子书架 2026-04-29 02:24:29 +08:00
mtvpls a0f9a0398b 增加首页背景图设置 2026-04-23 12:05:51 +08:00
mtvpls 0916e4ff08 用户组增加权限控制 2026-04-22 16:22:17 +08:00
mtvpls 897d475ad5 移除日期未知和修正页面定位 2026-04-18 09:33:38 +08:00
mtvpls cb225c3291 增加漫画展馆功能 2026-04-16 16:01:47 +08:00
mtvpls 4fe9314c57 Merge branch 'pr-265' into dev 2026-04-15 21:18:32 +08:00
ShiGuangAlex 62e0c12d81 Fix Safari playback recovery and episode progress memory 2026-04-14 17:40:30 +08:00
mtvpls 0e41ba2661 音乐增加代理开关 2026-04-14 16:49:22 +08:00
mtvpls c82d7b3841 新增基于lxserver的音乐功能 2026-04-13 23:17:57 +08:00
mtvpls f4d7565d67 play页面缓存引入主动清理机制 2026-04-11 22:25:13 +08:00
mtvpls 6ec34a580b sqlite显示 2026-04-11 12:55:10 +08:00
mtvpls bf17abacf3 增加注册邀请码功能 2026-03-31 12:53:19 +08:00
mtvpls 7547f78472 高级推荐 2026-03-29 11:41:03 +08:00
mtvpls 11317abc98 ai评论生成 2026-03-14 11:30:17 +08:00
mtvpls f02dce869c 进度条图标自定义 2026-02-21 02:13:50 +08:00
mtvpls 525c6f77aa 音乐openlist缓存 2026-02-02 20:53:28 +08:00
mtvpls 19be34c6fe 接入tunehub 2026-02-01 15:36:33 +08:00
mtvpls f5c36330d9 token刷新改为前端 2026-01-27 09:08:44 +08:00
mtvpls 6eaed34b14 eslint fix 2026-01-23 16:41:49 +08:00
mtvpls ed23e1da6f 节日特效 2026-01-23 11:24:18 +08:00
mtvpls ea0ebcd8ce 去广告增强 2026-01-23 00:54:08 +08:00
mtvpls 5c08304b6d 网络直播增加开关 2026-01-21 00:16:42 +08:00
mtvpls 2c805e2522 求片增加开关和冷却 2026-01-12 21:06:45 +08:00
mtvpls 03a59b07a9 私人影库小雅初步实现 2026-01-10 21:21:08 +08:00
mtvpls fc28992123 新增自定义ai问片默认消息 2026-01-09 17:34:07 +08:00
mtvpls 2736c9e845 emby支持多源 2026-01-08 00:31:03 +08:00
mtvpls 0d4d7c9e31 增加页面切换进度条 2026-01-04 15:25:53 +08:00
mtvpls ba8528c12e tvbox兼容emby 2026-01-03 22:21:08 +08:00
mtvpls 8e9eb76d58 新增源站寻片 2025-12-31 17:38:06 +08:00
mtvpls 0a66626545 增加ai问片功能 2025-12-29 14:41:59 +08:00
mtvpls ab856a02cf 新增登录注册背景图设置 2025-12-28 12:12:11 +08:00
mtvpls cc6d1e95f3 更多推荐增加tmdb源 2025-12-27 23:45:34 +08:00
mtvpls ac3e68ec10 私人影库增加开关 2025-12-22 23:08:03 +08:00
mtvpls 84fa95fc57 移除openlist token的输入 2025-12-22 21:38:51 +08:00
mtvpls 3c55bc9d1a 新增私人影视库功能 2025-12-22 00:47:45 +08:00
mtvpls 6a12951753 修正NEXT_PUBLIC的读取 2025-12-17 21:24:44 +08:00
mtvpls f565975fb4 修改MoonTV为MoonTVPlus 2025-12-14 23:25:43 +08:00
mtvpls ec5271dca0 添加即将上映 2025-12-14 22:15:38 +08:00
mtvpls 15d86e3252 添加自定义主题支持 2025-12-12 18:06:34 +08:00
mtvpls a5b02ea8d5 增加主动清除弹幕缓存 2025-12-10 00:13:08 +08:00
mtvpls 777e110bf1 更改视频下载逻辑 2025-12-09 22:31:35 +08:00
mtvpls 24e333a705 修正订阅请求时机错误 2025-12-09 21:33:15 +08:00
mtvpls 003050d134 观影室起步 2025-12-06 21:39:37 +08:00