Skip to content

Commit 1411192

Browse files
authored
Merge pull request #66 from klimadashboard/fix/consumptionBasedEmissions
Fix/consumption based emissions
2 parents d04f45f + ec033ea commit 1411192

293 files changed

Lines changed: 32899 additions & 13872 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.example

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
# set at for Austria, de for Germany
22
PUBLIC_VERSION=at
33

4-
# database for quiz
5-
MONGODB_USERNAME = '{USERNAME}'
6-
MONGODB_PASSWORD = '{PASSWORD}'
7-
MONGODB_URI = '{URI}'
8-
MONGODB_DATABASE = 'quiz'
9-
MONGODB_COLLECTION_ANSWER_API = 'answers'
10-
114
# mapbox
125
PUBLIC_MAPBOX_TOKEN="{TOKEN}"

.github/workflows/deploy-federal-states.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: 'Deploy emissions-federal-states branch'
33
on:
44
push:
55
branches:
6-
- feat/emissions-federal-states-de
6+
- feat/de-federal-states-emissions
77

88
jobs:
99
ploi-deploy:
@@ -20,4 +20,4 @@ jobs:
2020
with:
2121
api_token: ${{ secrets.PLOI_API_KEY }}
2222
server_id: 47649
23-
site_id: 230604
23+
site_id: 253022

docs/README.md renamed to README.md

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
# SvelteKit Repository for klimadashboard.at
2-
3-
## Welcome! 🌍
4-
5-
This is the code that powers the frontend of Klimadashboard.at, a website visualising the climate crisis in Austria and beyond. Our website is built with [SvelteKit](https://kit.svelte.dev), a JS framework which performs calculations on our datasets and builds interactive visualisations. Our backend, including all of our datasets and data processing code, can be found [here](https://github.com/klimadashboard). This repository also does not include text and layout data, which is handled by our Klimadashboard CMS.
1+
# SvelteKit Repository | Klimadashboard
62

73
> To make the climate crisis tangible by making climate science accessible.
84
> _Our mission_
95
6+
## Welcome! 🌍
7+
8+
This is the frontend code that powers Klimadashboard.at and Klimadashboard.de, powered by [SvelteKit](https://kit.svelte.dev). Our backend hosted at base.klimadashboard.org takes care of content and data. It is built on [Directus](https://directus.io).
9+
1010
## How to contribute 🗺
1111

1212
We value contributions from the community in the form of
1313

1414
- bug reports, ideas and feature requests: please [file an issue](https://github.com/klimadashboard/klimadashboardAT-core/issues) with the appropiate tags
15-
- translations: more info coming soon
15+
- help with translations
1616
- contributing bug fixes and code: pick an issue and open a pull request
1717
- creating your own local Klimadashboard: please see below
1818

@@ -47,15 +47,4 @@ Build the Application:
4747
npm run build
4848
```
4949

50-
Find details to [get started with Svelte](https://svelte.dev/blog/the-easiest-way-to-get-started).
51-
We’re using Tailwind CSS for our CSS classes. To use the full set of utility classes in local development, start the Tailwind watcher while developing in a new Terminal:
52-
53-
```
54-
npx tailwindcss -i ./public/tailwind.css -o ./public/styles.css --watch
55-
```
56-
57-
## Further resources
58-
59-
- [Klimadashboard Design System](https://figma.com/@klimadashboard) on Figma
60-
- [Twitter](https://twitter.com/klimadashboard)
61-
- [Instagram](https://instagram.com/klimadashboard)
50+
Find details to [get started with Svelte](https://svelte.dev/). We’re using [Tailwind CSS](https://tailwindcss.com/) for our CSS classes.

codegen.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import type { CodegenConfig } from '@graphql-codegen/cli';
2+
3+
const config: CodegenConfig = {
4+
schema: 'https://base.klimadashboard.org/graphql',
5+
documents: './src/**/*.gql',
6+
7+
// Single file config
8+
// generates: {
9+
// './src/graphql/generated.ts': {
10+
// plugins: ['typescript', 'typescript-operations', 'graphql-codegen-svelte-apollo']
11+
// }
12+
// },
13+
14+
// Colocation config
15+
generates: {
16+
'src/types.ts': {
17+
plugins: ['typescript']
18+
},
19+
'src/': {
20+
preset: 'near-operation-file',
21+
presetConfig: {
22+
extension: '.generated.ts',
23+
baseTypesPath: 'types.ts',
24+
folder: '__generated__'
25+
},
26+
plugins: ['typescript-operations', 'graphql-codegen-svelte-apollo']
27+
}
28+
},
29+
config: {
30+
clientPath: '@/apolloClient',
31+
asyncQuery: true
32+
}
33+
};
34+
export default config;

docs/CODE_OF_CONDUCT.md

Lines changed: 0 additions & 120 deletions
This file was deleted.

0 commit comments

Comments
 (0)