Commit Graph
31 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 ec71a252c9 动漫磁力搜索增加nyaa;动漫磁力搜索前可选站点 2026-06-20 12:43:16 +08:00
mtvpls cc98b21d66 增加动漫数据源配置 2026-05-28 16:00:07 +08:00
ShiGuangAlex aa5426c186 Fix danmaku auto-load default toggle 2026-04-14 22:21:42 +08:00
mtvpls 97d479786b 增加弹幕内置源 2026-04-03 10:34:52 +08:00
mtvpls bf17abacf3 增加注册邀请码功能 2026-03-31 12:53:19 +08:00
mtvpls cc1e70ad61 磁链增加代理配置 2026-03-25 10:30:22 +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 a167763324 pansou增加关键词过滤 2026-01-23 14:28:35 +08:00
mtvpls 42dfa43289 修复详情不应用豆瓣图片策略 2026-01-17 23:01:17 +08:00
mtvpls be8373de40 tmdb支持设置baseurl 2026-01-17 18:04:58 +08:00
mtvpls b61db02478 修复无法保存更多推荐数据源 2026-01-07 20:01:18 +08:00
mtvpls 56b4d47902 修复权限判断问题 2025-12-29 01:19:28 +08:00
mtvpls 6a9777a7ca 增加轮播图数据源 2025-12-27 22:18:59 +08:00
mtvpls df78abaf11 支持设置linuxdo信任等级 2025-12-26 16:57:08 +08:00
mtvpls bca4e773c4 增加盘搜 2025-12-23 00:47:24 +08:00
mtvpls db05ba7c31 tmdb增加代理支持 2025-12-20 22:11:34 +08:00
mtvpls ec5271dca0 添加即将上映 2025-12-14 22:15:38 +08:00
mtvpls d467c5067b oidc登录按钮支持自定义文字 2025-12-13 17:36:57 +08:00
mtvpls 822bb4a07e 增加oidc登录 2025-12-13 15:11:14 +08:00
mtvpls 8678d5fe49 添加用户注册 2025-12-13 13:03:46 +08:00
mtvpls 179fc73c8f 增加自定义去广告功能 2025-12-04 22:21:27 +08:00
mtvpls 4e05c7bcaa 增加评论开关,尝试修复循环依赖 2025-12-03 18:20:34 +08:00
mtvpls 9bccf564ee 新增弹幕功能 2025-12-02 01:00:42 +08:00
shinya 4df244d3a3 feat: unsupport edgeless 2025-08-18 23:04:27 +08:00
shinya 4ffd59c5d1 feat: user control fluid search 2025-08-17 17:32:42 +08:00
shinya 8b34f3e403 feat: set cached config when import, refactor db 2025-08-15 18:47:51 +08:00
JohnsonRan b4ed660eca first commit 2025-08-12 21:50:58 +08:00