vccs
Vue 3용 차트 컴포넌트 모음, Recharts에서 포팅
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기Klimatkollen's frontend
저장소 README에서 가져옴
README 전체를 불러오는 중입니다. 아래는 저장된 발췌입니다.
Welcome to the frontend of klimatkollen.se, developed using TypeScript, React, Vite, and Tailwind CSS. Klimatkollen is an open-source, citizen-driven platform designed to visualize climate data. Currently, we are showcasing data from major Swedish companies and Swedish municipalities. • src/pages/: Contains .tsx files for each page, which are routed based on their filenames • src/components/: Houses reusable React components utilized throughout the application • public/: Stores static assets such as images 🗄️ Deciding on backend to run development client againstREADME 전문 보기 ↗
Welcome to the frontend of klimatkollen.se, developed using TypeScript, React, Vite, and Tailwind CSS.
Klimatkollen is an open-source, citizen-driven platform designed to visualize climate data. Currently, we are showcasing data from major Swedish companies and Swedish municipalities.
src/pages/: Contains .tsx files for each page, which are routed based on their filenamessrc/components/: Houses reusable React components utilized throughout the applicationpublic/: Stores static assets such as imagesTo run the local development client, you must run our API locally or connect to our production API. For information on setting up the API locally, see the README in our data pipeline repository.
If you instead want to run the local development client against production,
setup the local .env file for development by running the following command in
the root directory of the frontend code.
cp .env.example .env.development
To run the project locally, execute the following commands from the root of the project in your terminal:
| Command | Action |
|---|---|
npm install | Installs dependencies |
npm run dev | Starts local dev server at localhost:5173 or |
| VITE_API_PROXY | |
npm run dev-gen | Starts local dev server and regenerates API types from OpenAPI |
npm run generate-api | Regenerates src/lib/api-types.ts from production OpenAPI (/reference/openapi.json) |
npm run generate-api:local | Same, from local Garbo (http://localhost:3000/reference/openapi.json) |
npm run generate-api:staging | Same, from staging API |
npm run build | Builds your production site to ./dist/ |
npm run preview | Previews your build locally, before deploying |
npm run build:dataguide |
Note: When making changes to the data guide content (markdown files in src/locales/dataguide/), you need to run npm run build:dataguide to generate the updated JSON files. This step is automatically included when running npm run build for production builds.
Note: npm audit vulnerabilities will fail the build.
Companies are keyed by internal UUID (Company.id) in the database. The frontend uses two identifier shapes:
| Use case | Identifier |
|---|---|
Public URLs (/companies/...) | wikidataId if set, else first 8 hex chars of id |
Partner read (getCompanyDetails) | URL param as-is — API resolves Q-id, full UUID, or 8-char prefix |
Staff create (createCompany) | Always full internal company.id in response |
Helpers live in src/utils/companyRouting.ts (getCompanyUrlSegment, getCompanyDetailPath).
After the API with staff /:id routes is deployed, regenerate OpenAPI types before building against production:
npm run generate-api:staging # or generate-api:local against a running API
Do not hand-edit src/lib/api-types.ts except when temporarily ahead of a staged OpenAPI publish.
Do you have an idea for a feature? Jump into the code or head to our Discord server to discuss your thoughts. You can also submit an issue explaining your suggestion.
Join our Discord server or reach out via email at [email protected].
This work wouldn't have been possible without the support from Google.org.
We also extend our gratitude to our current and former partners:
Postkodstiftelsen, ClimateView, Klimatklubben.se, Researcher's Desk, Exponential Roadmap, WWF, We Don't Have Time, Våra Barns Klimat, Argand, StormGeo.
This project is licensed under the terms of the Apache 2.0 © Klimatbyrån Ideell Förening.