Underground 2 Revived
Play Need for Speed: Underground 2 (2004) in Chrome and Firefox with WebGPU graphics, Web Audio, up to 120 fps widescreen, controller support, free roam and Online races with friends. Fan project, not
翻譯準備中
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證正在載入完整 README。 以下為已儲存的摘錄。
LOOOOOOT — WoW TBC Raid Loot Tracker
A Next.js web app for tracking Burning Crusade raid loot. Browse phase → raid → boss → item,
build multiple rosters (splits), track attendance per raid night, fast-assign loot to raiders,
and get a live Overview of each character's gearing progress with Tanks / Healers / DPS
tabs showing item count and a BiS-weighted score per spec.
• Next.js 14 (App Router) + TypeScript
• Tailwind CSS
• Prisma + Postgres (Neon in prod; any Postgres works locally)
• bcryptjs + HMAC-signed cookie auth (single admin password, reads public)檢視完整 README ↗A Next.js web app for tracking Burning Crusade raid loot. Browse phase → raid → boss → item, build multiple rosters (splits), track attendance per raid night, fast-assign loot to raiders, and get a live Overview of each character's gearing progress with Tanks / Healers / DPS tabs showing item count and a BiS-weighted score per spec.
npm install
cp .env.example .env # fill in DATABASE_URL, DIRECT_URL, hash, secret
npx prisma migrate dev # creates tables in your Postgres
npx tsx prisma/seed.ts # seeds 5 phases, 9 raids, 50 bosses, ~420 items
npm run dev # http://localhost:3000
# Generate a bcrypt hash
node -e "console.log(require('bcryptjs').hashSync('your-pw-here', 10))"
# Generate an auth secret
node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
Put them in .env. Escape every $ in the bcrypt hash as \$ (Next.js expands env vars dotenv-style):
ADMIN_PASSWORD_HASH="\$2a\$10\$...rest...of...hash"
AUTH_SECRET="<long hex string>"
Log in at /login to unlock admin actions.
postgresql://<user>:<pw>@ep-xxxx-pooler.<region>.aws.neon.tech/<db>?sslmode=requireDATABASE_URL = pooled (keep -pooler in hostname), append &pgbouncer=true&connect_timeout=15DIRECT_URL = same URL but remove -pooler from the hostnameFrom your local machine (once):
DATABASE_URL="<pooled>" DIRECT_URL="<direct>" npx prisma migrate deploy
DATABASE_URL="<pooled>" DIRECT_URL="<direct>" npx tsx prisma/seed.ts
(The vercel-build script also runs prisma migrate deploy on every deploy, so future schema
changes pushed to the repo apply automatically.)
npm i -g vercel
vercel login
vercel # first run: answer prompts, link project
vercel --prod
Or push to GitHub and import the repo at https://vercel.com/new.
Project → Settings → Environment Variables (Production + Preview):
| Var | Value |
|---|---|
DATABASE_URL | pooled Neon URI (hostname contains -pooler, with &pgbouncer=true&connect_timeout=15) |
DIRECT_URL | direct Neon URI (same URL without -pooler in hostname) |
ADMIN_PASSWORD_HASH | bcrypt hash — in Vercel's UI you do not need to escape $ |
AUTH_SECRET | long random hex string |
Redeploy. Log in at /login and you're live.
See prisma/schema.prisma. The key entities:
Loot lives in lib/tbc-data.ts. Each item has an archetype tag (e.g. tank-plate,
weapon-bow, token-vanquisher) which expands into per-spec weights via
lib/archetypes.ts. Override individual weights per item with the weights map.
Re-run npx tsx prisma/seed.ts to upsert changes — the seeder is idempotent and
rewrites weights so edits propagate.
| Path | Purpose |
|---|---|
/overview | Tanks / Healers / DPS tabs, weighted scoring, drilldown per character |
/loot | Browse phase → raid → boss → items with award history |
/loot/assign | Admin fast-assign UI (3-pane) |
/characters | Character CRUD |
/rosters | Roster list |
/rosters/[id] | Roster detail — add/remove members, set role (main/bench/trial) |
/attendance | Raid-night index |
/attendance/[id] | Mark present/late/absent for a night's roster |
/login | Admin login |