2026-07-20 15:49:49 +08:00
|
|
|
{
|
|
|
|
|
"name": "yd-web-new",
|
|
|
|
|
"version": "1.0.0",
|
|
|
|
|
"private": true,
|
|
|
|
|
"type": "module",
|
|
|
|
|
"scripts": {
|
|
|
|
|
"dev": "vite",
|
|
|
|
|
"build": "vite build",
|
2026-07-22 11:42:23 +08:00
|
|
|
"rewrite:oss": "node scripts/rewrite-oss-paths.mjs",
|
2026-07-27 16:44:06 +08:00
|
|
|
"deploy:oss": "powershell -NoProfile -ExecutionPolicy Bypass -File scripts/deploy-oss.ps1",
|
feat(website): add competition results and service deployment
- Add the event results page with schedule, rankings, Battle bracket, athletes, records, bilingual labels, and navigation entry.
- Add the read/write competition data service, a complete Excel example, empty public state, and validation smoke tests.
- Handle Furion statusCode/data responses from the production API and retain static fallback for the public page.
- Document Docker sidecar deployment beside test_eventapi, persistent storage, private admin access, Nginx routing, and OSS asset rewriting.
Verification:
- node server/competition-api.smoke.mjs
- node scripts/competition-response-test.mjs
- node scripts/battle-layout-test.mjs
- npm run build -- --base=https://assets.example.test/static/test/
- npm run rewrite:oss -- https://assets.example.test/static/test/
- Production /api/competition/state returned HTTP 200 after the sidecar started.
Deployment note: publish the updated YD-WEB static build before public results can consume the unwrapped API response. The event remains unpublished until an administrator saves and publishes data.
2026-10-20 13:38:23 +08:00
|
|
|
"preview": "vite preview",
|
|
|
|
|
"serve:competition-api": "node server/competition-api.mjs"
|
2026-07-20 15:49:49 +08:00
|
|
|
},
|
|
|
|
|
"dependencies": {
|
|
|
|
|
"vue": "^3.5.18",
|
|
|
|
|
"vue-router": "^4.5.1"
|
|
|
|
|
},
|
|
|
|
|
"devDependencies": {
|
|
|
|
|
"@vitejs/plugin-vue": "^5.2.4",
|
|
|
|
|
"vite": "^5.4.19"
|
|
|
|
|
}
|
|
|
|
|
}
|