Modern static website for netniV/stfc-mod, built with React + TypeScript + Vite for GitHub Pages / Cloudflare Pages style deployments.
- Home page with project overview and quick actions
- Getting-started section
- Download/install section with release/install links
- Dedicated Mod Config Builder with:
- grouped settings across all major config sections
- searchable controls
- import existing
.toml - live preview
- copy to clipboard
- download
community_patch_settings.toml
- Responsive layout for mobile/desktop
- Basic accessibility and SEO foundations
- React 19
- TypeScript
- Vite 8
- ESLint
npm install
npm run devThen open the local URL printed by Vite (typically http://localhost:5173).
npm run lint
npm run buildProduction assets are generated into dist/.
- Build command:
npm run build - Output directory:
dist
Any workflow that installs dependencies and publishes dist/ works.
Example build steps:
npm ci
npm run buildPublish dist/ as your Pages artifact.
The mod config editor is data-driven and maintained in:
- Schema/defaults:
/src/data/configSchema.ts - TOML parser/serializer:
/src/lib/toml.ts - UI/editor flow:
/src/App.tsx
To maintain parity with future mod settings:
- Add or update fields in
configSchema.ts(section/group/key/type/default). - Confirm import/export behavior in
toml.tsfor new value types. - Verify in the UI and run:
npm run lintnpm run build
- This website intentionally keeps dependencies minimal.
- Generated TOML output targets
community_patch_settings.tomlusage for STFC Community Mod.