尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证正在加载完整 README。 以下为已保存的摘录。
Next.js 16 (App Router) + React 19 + Tailwind, deployed on Vercel. Talks to the
FastAPI backend (fight_trainer_backend, Railway) and to Supabase for auth.
Every statement below is taken from the code and cites the file. If something
here disagrees with the code, the code is right and this file is a bug.
pnpm typecheck and pnpm build are the gates a change must pass.查看完整 README ↗Next.js 16 (App Router) + React 19 + Tailwind, deployed on Vercel. Talks to the
FastAPI backend (fight_trainer_backend, Railway) and to Supabase for auth.
Every statement below is taken from the code and cites the file. If something here disagrees with the code, the code is right and this file is a bug.
pnpm install # pnpm, not npm — pnpm-lock.yaml is the lockfile
cp .env.local.example .env.local # fill NEXT_PUBLIC_API_URL + Supabase keys
pnpm dev # http://localhost:3000
pnpm typecheck # tsc --noEmit — THE release gate
pnpm build # production build
pnpm lint # ESLint 9 flat config
pnpm typecheck and pnpm build are the gates a change must pass.
pnpm lint runs but is not yet clean: it reports 33 pre-existing errors —
mostly react/no-unescaped-entities and 17 react-hooks/set-state-in-effect.
Those predate the config being added and are tracked as post-ship work. Do not
add eslint-disable comments to make the number smaller.
/ marketing home /pricing, /about, /privacy, /terms
/auth/login coach password login /auth/signup, /auth/signup/coach
/auth/forgot password reset /auth/reset-password
/auth/student/accept invite claim (student Google OAuth binds here)
/invoice/[token] PUBLIC tokenized invoice + Stripe checkout — no auth
/trainer dashboard /trainer/sessions, /sessions/new, /sessions/[id]
/trainer/students, /students/[id], /students/[id]/billing
/trainer/schedule, /plans, /library, /inactivity, /graph
/trainer/billing
/trainer/analyze, /analyze/[id], /fighters, /fighters/[id]
/trainer/settings/payments, /settings/integrations
/student dashboard /student/feed, /sessions, /schedule, /plan
/student/profile, /intake, /graph, /analyzer
/dtsp-admin admin /dtsp-admin/library, /dtsp-admin/import
Supabase Auth, ES256/JWKS — the backend verifies the same JWT.
/auth/login)./auth/student/accept and signs in with Google, which binds that identity to
their existing student row.app_metadata.user_role claim, never from an
email allowlist.Three guard layers, in order:
middleware.ts — edge gate. /trainer/*, /student/*, /dtsp-admin/* each
require the matching role; a signed-in user with the wrong role is redirected
to their own root rather than shown a 403.<RoleGate role="…"> in app/trainer/layout.tsx and app/student/layout.tsx
— client-side, so a soft navigation cannot slip past the edge.All client-visible, all NEXT_PUBLIC_* (see .env.local.example):
| Var | Purpose |
|---|---|
NEXT_PUBLIC_API_URL | FastAPI base URL |
NEXT_PUBLIC_SUPABASE_URL | Supabase project URL |
NEXT_PUBLIC_SUPABASE_ANON_KEY | publishable key (sb_publishable_*) — never the legacy anon JWT |
NEXT_PUBLIC_BUYER_BRAND_NAME / _TAGLINE / _DOMAIN | M4 brand, read only via lib/brand.ts |
NEXT_PUBLIC_PAYMENTS_PROVIDER | venmo (default) or stripe, read at lib/payments.ts |
The Venmo/Zelle identity is deliberately not here: it comes from the tenant
settings row via GET /api/pricing/payment-methods, so the coach's settings
page is the single source of truth (lib/api/pricing.ts).
There is no unit-test harness in this repo — no Jest, no Vitest.
Playwright specs ARE authored (e2e/, playwright.config.ts) but the harness
is not installed: @playwright/test is not a dependency, which is why
playwright.config.ts carries a @ts-nocheck. To activate:
pnpm add -D @playwright/test && pnpm exec playwright install chromium
pnpm exec playwright test
Until then, verification is pnpm typecheck, pnpm build, and manual browser
smoke.