BikeControl (SwiftControl)
使用 Zwift Click、Zwift Play、Shimano Di2 或任何藍牙控制器,搭配 MyWhoosh、Rouvy、Zwift 等。iOS、Android、Windows、macOS 均可免費試用。
AI 翻译
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证alish1129/SquadSplitter
翻译准备中
取自仓库 README
正在加载完整 README。 以下为已保存的摘录。
A React + Supabase app for a pickup soccer group: members sign in with a
magic link and can mark themselves IN for the week; admins rate players,
manage positions, and generate two balanced teams. Public visitors can view
the roster and teams without signing in.
In your Supabase project dashboard: SQL Editor -> New query, paste the
entire contents of supabase/schema.sql, and run it. It's safe to re-run if
you ever need to.
This creates the tables, security policies, and a trigger so every new
sign-in automatically gets a profile and a roster entry.查看完整 README ↗A React + Supabase app for a pickup soccer group: members sign in with a magic link and can mark themselves IN for the week; admins rate players, manage positions, and generate two balanced teams. Public visitors can view the roster and teams without signing in.
In your Supabase project dashboard: SQL Editor -> New query, paste the
entire contents of supabase/schema.sql, and run it. It's safe to re-run if
you ever need to.
This creates the tables, security policies, and a trigger so every new sign-in automatically gets a profile and a roster entry.
Enable email sign-in: Authentication -> Providers -> make sure Email is
enabled, and under Authentication -> URL Configuration set your Site URL
(e.g. http://localhost:5173 for now, your real domain once deployed) and
add it to Redirect URLs too — that's where the magic-link email sends people
back to.
cp .env.example .env
Open .env and fill in your project's URL and anon key, found in
Project Settings -> API in the Supabase dashboard.
npm install
npm run dev
Open the printed local URL, sign in with your own email, and check your inbox for the magic link.
Nobody is an admin until you say so. After signing in once, go back to the Supabase SQL Editor and run (with your real email):
update public.profiles set is_admin = true where email = '[email protected]';
Refresh the app — you'll now see "Manage roster" and "Admins" panels, where you can promote other people to admin straight from the UI (no more SQL needed after this).
.env
(VITE_SUPABASE_URL, VITE_SUPABASE_ANON_KEY) under the project's
Environment Variables settings.*.vercel.app URL.Share the Vercel link with your group — anyone can open it and view the roster/teams, and anyone who signs in gets added to the roster automatically.
players table (name, up to two
positions, a 1–100 rating, and whether they're IN this week).src/lib/teamBalancer.js) groups the IN players by
position, then hands each one (highest rating first) to whichever team
currently has the lower total rating, keeping both skill and position mix
close.supabase/schema.sql one-time database setup (tables, policies, RPC, trigger)
src/App.jsx top-level state, data loading, realtime subscriptions
src/supabaseClient.js Supabase client, reads .env
src/lib/teamBalancer.js pure team-splitting logic
src/components/ UI: auth widget, turnout list, teams, roster manager, admin list