Skip to content

VATPRChina/vatprc-docs

Repository files navigation

vatprc-docs

This is the code for VATPRC's Homepage.

Contributing

Docs / SOP

The docs are placed under docs/. All markdown documents there are immediately available on our website under https://www.vatprc.net/docs, despite there is no listing for all docs.

For SOP docs, it requires review first by VATPRC3, and after VATPRC3 approves, it requires assigning to VATPRC5 for approval. If both approved, the merge request can be merged at discretion.

Image

This repository recommends against placing static assets inside the repository. Please use an online image service, and include the absolute link to it.

Code

For coding-related contributions, please reach out to VATPRC8 as there is no clear document currently.

To run the server locally,

pnpm install
pnpm dev

API

The backend API is well-defined with OpenAPI. Please run the following command to grab the latest API definition.

pnpm build:api

And when using the API, import $api and make calls, which is a typesafe wrapper over TanStack Query.

import { $api } from "@/lib/client";
const { data: warnings } = $api.useQuery("get", "/api/flights/by-callsign/{callsign}/warnings", {
  params: { path: { callsign } },
});

Pages

This project is based on TanStack Router's file-based routing. Create new page by creating relevant file in src/routes, and pnpm dev will automatically update the routing on the fly.

Localization

Please write English version of UI strings in the codebase, and wrap them with Lingui's Trans component.

After finishing the code, please run the following command to build localization files:

pnpm i18n:extract

And update src/locales/zh-cn.po to provide Chinese localization for the new strings.

License

© 2010 - 2025, VATSIM P.R. China Division, All rights reserved.

About

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors 6

Languages