Synaplan
開源 AI 平台,供企業使用:自行託管的 AI 代理、符合 GDPR 的聊天機器人小工具、RAG 知識庫、WhatsApp 與 Outlook AI、MCP、多模型路由。Docker、Kubernetes 或託管於 Germ
AI 翻譯
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗The MilcodeUni reference SaaS (weeks 6–8). A barber, salon or coach shares one link; customers pick a service and a free time; the owner manages everything in a dashboard.
Stack: Next.js (App Router, Server Actions) · Supabase (Postgres, Auth, Row Level Security) · Vercel
Built to the MilcodeUni capstone spec:
| Required | Where |
|---|---|
| Landing page with a clear value proposition | / |
| Service listing and detail | /b/<link> and /b/<link>/services/<id> |
| Sign-up, sign-in, sign-out | /login |
| Booking form with validation | /b/<link>: service → day → free time → name + WhatsApp |
| Loading, empty, success and error feedback | loading.tsx, empty states, form errors, /done |
| Protected dashboard | /dashboard (signed-out visitors go to /login) |
| Create and view bookings | New requests, today's schedule, next 7 days, "Add a booking" |
| Update a status | Confirm, Decline, Done, Cancel |
| Delete with confirmation | Services and cancelled/done bookings ("Sure? Yes, delete") |
| Owner-only data with RLS | supabase/migrations/0001_mawid.sql |
| Responsive navigation | Dashboard menu stacks on phones |
How double-booking is prevented, in two simple layers:
src/lib/bookings.ts).How privacy works: customers can send a booking (always pending) but can't read any.
The booking page only reads public_busy_times, a view with the taken times and no names or phones.
supabase/migrations/0001_mawid.sql, then supabase/seed.sql
(creates the demo business Atlas Barbershop)..env.example to .env.local and fill in the URL and anon key
(Project Settings → API).npm install
npm run dev
Open http://localhost:3000 → "Try the demo booking page".update public.businesses
set owner_id = (select id from auth.users where email = '[email protected]')
where slug = 'atlas-barbershop';
Your dashboard now shows Atlas Barbershop. (Or create your own business from the setup screen.)Tip: for quick testing, turn off "Confirm email" in Supabase → Authentication → Providers → Email.
supabase/migrations/0001_mawid.sql tables, view, RLS policies
supabase/seed.sql demo business: Atlas Barbershop
src/app/page.tsx landing page
src/app/b/[slug]/ booking page, service detail, form, server action, confirmation
src/app/login/ sign in / sign up / sign out (server actions)
src/app/dashboard/ today, add booking, services & hours, first-time setup
src/lib/bookings.ts server-side checks: hours, past times, overlaps
src/lib/slots.ts which start times to show (every 30 minutes)
src/lib/time.ts "today" and "now" in Morocco, date formatting
src/proxy.ts keeps the login fresh, protects /dashboard (from Supabase's Next.js guide)
Dates and times are stored as the shop's local time (day + start_time), so the
only timezone code is "what's today in Morocco" in src/lib/time.ts.