accounts/dashboard
Haitao Pan cdcaccc6d9 feat: integrate offline-package data source
### Changes:

1. **scripts/gen_mirror_manifest.py**
   - Added generation of offline-package.json file
   - Filters listings to only include offline-package directory
   - Writes to the same output directory (dl-index/)

2. **src/lib/download/dl-index-data-offline-package.ts**
   - New module to fetch offline-package data from CDN
   - Fetches from: https://dl.svc.plus/dl-index/offline-package.json
   - Provides helper functions:
     - fetchOfflinePackageListings()
     - getOfflinePackageListings()
     - getOfflinePackageSections()
     - getOfflinePackageFileCount()
   - Includes simple in-memory caching

3. **src/app/download/page.tsx**
   - Updated to use offline-package data
   - Merges offline-package sections with existing data
   - Added offline-package file count to totals
   - Made component async to support data fetching

### Result:
Download page now fetches and displays offline-package data from the CDN endpoint, providing real-time updates without rebuilding the application.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-11 17:50:41 +08:00
..
docs refactor(config): modernize to ES Module format 2025-11-11 12:26:04 +08:00
public feat: integrate offline-package data source 2025-11-11 17:50:41 +08:00
scripts refactor(dashboard): adopt src app router layout (#667) 2025-11-11 10:45:37 +08:00
src feat: integrate offline-package data source 2025-11-11 17:50:41 +08:00
tests refactor(dashboard): adopt src app router layout (#667) 2025-11-11 10:45:37 +08:00
types fix: resolve TypeScript import errors for download types module 2025-11-11 17:08:46 +08:00
.config_summary.txt refactor(config): modernize to ES Module format 2025-11-11 12:26:04 +08:00
.eslintrc.json Move dashboard frontend out of ui namespace (#538) 2025-10-17 12:36:27 +08:00
.gitignore Add dashboard UI tests and CI coverage (#556) 2025-10-17 16:52:28 +08:00
.nvmrc Move dashboard frontend out of ui namespace (#538) 2025-10-17 12:36:27 +08:00
.yarnrc.yml fix(dashboard): resolve all module import errors and fix CSS loading 2025-11-11 12:04:29 +08:00
Dockerfile Move dashboard frontend out of ui namespace (#538) 2025-10-17 12:36:27 +08:00
Makefile Ensure dashboard dev target installs dependencies (#558) 2025-10-17 16:57:34 +08:00
next-env.d.ts fix: resolve TypeScript import errors for download types module 2025-11-11 17:08:46 +08:00
next.config.mjs refactor(dashboard): adopt src app router layout (#667) 2025-11-11 10:45:37 +08:00
package-lock.json fix(dashboard): resolve @types/react version conflict 2025-11-06 11:49:09 +08:00
package.json refactor(dashboard): adopt src app router layout (#667) 2025-11-11 10:45:37 +08:00
postcss.config.mjs perf: convert postcss.config to mjs to eliminate module parsing warning 2025-11-11 14:25:49 +08:00
start.sh Move dashboard frontend out of ui namespace (#538) 2025-10-17 12:36:27 +08:00
tailwind.config.js refactor(config): modernize to ES Module format 2025-11-11 12:26:04 +08:00
test-esm.js refactor(config): modernize to ES Module format 2025-11-11 12:26:04 +08:00
tsconfig.json refactor(dashboard): adopt src app router layout (#667) 2025-11-11 10:45:37 +08:00
tsconfig.tsbuildinfo fix: unwrap async params in download route segment 2025-11-11 17:10:00 +08:00
yarn.lock feat(dashboard): add marketing product pages (#649) 2025-11-09 15:44:38 +08:00