Skip to content

Commit

Permalink
Merge pull request #560 from demokratie-live/chore/import-democracy-d…
Browse files Browse the repository at this point in the history
…esktop

Chore/import democracy desktop
  • Loading branch information
ManAnRuck authored May 25, 2024
2 parents 9c78de7 + 78200fa commit e536aee
Show file tree
Hide file tree
Showing 116 changed files with 6,958 additions and 302 deletions.
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: [demokratie-live]
custom: ["https://www.democracy-deutschland.de/#!donate"]
1 change: 1 addition & 0 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
paths:
- 'services/**'
- 'bundestag.io/**'
- 'democracy/**'
branches:
- 'master'

Expand Down
5 changes: 5 additions & 0 deletions democracy/desktop/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.env
node_modules
out
.next
.git
2 changes: 2 additions & 0 deletions democracy/desktop/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
APP_API_URL=https://internal.api.democracy-app.de
APP_HOST=https://internal.api.democracy-app.de
2 changes: 2 additions & 0 deletions democracy/desktop/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
out
80 changes: 80 additions & 0 deletions democracy/desktop/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
// Configuration for JavaScript files
"extends": [
"airbnb-base",
"next/core-web-vitals",
"plugin:prettier/recommended"
],
"rules": {
"prettier/prettier": [
"error",
{
"singleQuote": true,
"endOfLine": "auto"
}
]
},
"overrides": [
// Configuration for TypeScript files
{
"files": ["**/*.ts", "**/*.tsx"],
"plugins": ["@typescript-eslint", "unused-imports", "tailwindcss"],
"extends": [
"plugin:tailwindcss/recommended",
"airbnb-typescript",
"next/core-web-vitals",
"plugin:prettier/recommended"
],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"prettier/prettier": [
"error",
{
"singleQuote": true,
"endOfLine": "auto"
}
],
"react/destructuring-assignment": "off", // Vscode doesn't support automatically destructuring, it's a pain to add a new variable
"jsx-a11y/anchor-is-valid": "off", // Next.js use his own internal link system
"react/require-default-props": "off", // Allow non-defined react props as undefined
"react/jsx-props-no-spreading": "off", // _app.tsx uses spread operator and also, react-hook-form
"@next/next/no-img-element": "off", // We currently not using next/image because it isn't supported with SSG mode
"import/order": [
"error",
{
"groups": ["builtin", "external", "internal"],
"pathGroups": [
{
"pattern": "react",
"group": "external",
"position": "before"
}
],
"pathGroupsExcludedImportTypes": ["react"],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
],
"@typescript-eslint/comma-dangle": "off", // Avoid conflict rule between Eslint and Prettier
"import/prefer-default-export": "off", // Named export is easier to refactor automatically
"tailwindcss/classnames-order": [
"warn",
{
"officialSorting": true
}
], // Follow the same ordering as the official plugin `prettier-plugin-tailwindcss`
"@typescript-eslint/no-unused-vars": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_" }
]
}
}
]
}
35 changes: 35 additions & 0 deletions democracy/desktop/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next
/out

# production
/build

# misc
.DS_Store
*.pem
Thumbs.db

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# dotenv local files
.env*.local

# local folder
local

# vercel
.vercel
10 changes: 10 additions & 0 deletions democracy/desktop/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"mikestead.dotenv",
"csstools.postcss",
"blanu.vscode-styled-jsx",
"bradlc.vscode-tailwindcss"
]
}
31 changes: 31 additions & 0 deletions democracy/desktop/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Next: Chrome",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}"
},
{
"type": "node",
"request": "launch",
"name": "Next: Node",
"program": "${workspaceFolder}/node_modules/.bin/next",
"args": ["dev"],
"autoAttachChildProcesses": true,
"skipFiles": ["<node_internals>/**"],
"console": "integratedTerminal"
}
],
"compounds": [
{
"name": "Next: Full",
"configurations": ["Next: Node", "Next: Chrome"]
}
]
}
35 changes: 35 additions & 0 deletions democracy/desktop/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"editor.tabSize": 2,
"editor.detectIndentation": false,
"jest.autoRun": {
"watch": false,
"onSave": "test-file"
},
"search.exclude": {
"package-lock.json": true
},
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.formatOnSave": false,
"editor.codeActionsOnSave": [
"source.addMissingImports",
"source.fixAll.eslint"
],
// Multiple language settings for json and jsonc files
"[json][jsonc]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
"**/node_modules": true
},
"[typescriptreact]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"cSpell.words": ["abstination"]
}
21 changes: 21 additions & 0 deletions democracy/desktop/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Project wide type checking with TypeScript",
"type": "npm",
"script": "build-types",
"problemMatcher": ["$tsc"],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"clear": true,
"reveal": "never"
}
}
]
}
75 changes: 75 additions & 0 deletions democracy/desktop/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Changelog

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [1.0.12](https://github.com/demokratie-live/desktop/compare/v1.0.11...v1.0.12) (2023-12-16)

### [1.0.12-4-keine-sitzungswochen-daten.0](https://github.com/demokratie-live/desktop/compare/v1.0.11...v1.0.12-4-keine-sitzungswochen-daten.0) (2023-12-16)

### [1.0.11](https://github.com/demokratie-live/desktop/compare/v1.0.10...v1.0.11) (2023-11-01)


### Bug Fixes

* 🐛 add graphql proxy api endpoint ([2e3e06a](https://github.com/demokratie-live/desktop/commit/2e3e06a96dabeee4bd47d86f9435eaec8b6d208b))
* 🐛 fix ssr for graphql endpoint ([986dd6b](https://github.com/demokratie-live/desktop/commit/986dd6b773bf08eca1ef9b8805ee8d6d0cd2d7c9))
* 🐛 only use NEXT_PUBLIC_APP_URL in development mode ([d896fec](https://github.com/demokratie-live/desktop/commit/d896feceb1efb91e882f778829760958a951a58b))
* handle ssr for graphql endpoint ([fe8bb27](https://github.com/demokratie-live/desktop/commit/fe8bb27ceff654f2a8eafbad4dd5870faa1e1a43))

### [1.0.11-feature-api-via-env-var.6](https://github.com/demokratie-live/desktop/compare/v1.0.11-feature-api-via-env-var.5...v1.0.11-feature-api-via-env-var.6) (2023-11-01)


### Bug Fixes

* handle ssr for graphql endpoint ([0e6ded2](https://github.com/demokratie-live/desktop/commit/0e6ded2b030abfeb01a2c000805e3cc689de2b30))

### [1.0.11-feature-api-via-env-var.5](https://github.com/demokratie-live/desktop/compare/v1.0.11-feature-api-via-env-var.4...v1.0.11-feature-api-via-env-var.5) (2023-11-01)


### Bug Fixes

* 🐛 fix ssr for graphql endpoint ([c3586fa](https://github.com/demokratie-live/desktop/commit/c3586fae0d40f851d39206cbcc51f13d01be76d4))

### [1.0.11-feature-api-via-env-var.4](https://github.com/demokratie-live/desktop/compare/v1.0.11-feature-api-via-env-var.3...v1.0.11-feature-api-via-env-var.4) (2023-11-01)


### Bug Fixes

* 🐛 only use NEXT_PUBLIC_APP_URL in development mode ([9638f7f](https://github.com/demokratie-live/desktop/commit/9638f7f27ec02354182564647ee60234d04d67bc))

### [1.0.11-feature-api-via-env-var.3](https://github.com/demokratie-live/desktop/compare/v1.0.11-feature-api-via-env-var.2...v1.0.11-feature-api-via-env-var.3) (2023-11-01)


### Bug Fixes

* 🐛 add graphql proxy api endpoint ([2dbbdc1](https://github.com/demokratie-live/desktop/commit/2dbbdc1924c0169055d6fe297420c811b602e24f))

### [1.0.11-feature-api-via-env-var.2](https://github.com/demokratie-live/desktop/compare/v1.0.11-feature-api-via-env-var.1...v1.0.11-feature-api-via-env-var.2) (2023-11-01)

### [1.0.11-feature-api-via-env-var.1](https://github.com/demokratie-live/desktop/compare/v1.0.11-feature-api-via-env-var.0...v1.0.11-feature-api-via-env-var.1) (2023-10-03)

### [1.0.11-feature-api-via-env-var.0](https://github.com/demokratie-live/desktop/compare/v1.0.10...v1.0.11-feature-api-via-env-var.0) (2023-10-03)

### [1.0.10](https://github.com/demokratie-live/desktop/compare/v1.0.9...v1.0.10) (2023-08-26)

### [1.0.10-feature-native-donation.0](https://github.com/demokratie-live/desktop/compare/v1.0.9...v1.0.10-feature-native-donation.0) (2023-08-26)

### [1.0.9](https://github.com/demokratie-live/desktop/compare/v1.0.8...v1.0.9) (2023-08-26)

### [1.0.9-feature-deeplingking.0](https://github.com/demokratie-live/desktop/compare/v1.0.8...v1.0.9-feature-deeplingking.0) (2023-08-26)

### [1.0.8](https://github.com/demokratie-live/desktop/compare/v1.0.7...v1.0.8) (2023-08-24)

### [1.0.8-feature-deeplingking.0](https://github.com/demokratie-live/desktop/compare/v1.0.7...v1.0.8-feature-deeplingking.0) (2023-08-19)

### [1.0.7](https://github.com/demokratie-live/desktop/compare/v1.0.6...v1.0.7) (2023-08-19)

### [1.0.7-2](https://github.com/demokratie-live/desktop/compare/v1.0.7-1...v1.0.7-2) (2023-08-19)

### [1.0.7-1](https://github.com/demokratie-live/desktop/compare/v1.0.7-0...v1.0.7-1) (2023-08-19)

### [1.0.7-0](https://github.com/demokratie-live/desktop/compare/v1.0.6...v1.0.7-0) (2023-08-19)

### [1.0.6](https://github.com/demokratie-live/desktop/compare/v1.0.5...v1.0.6) (2023-01-11)

### [1.0.5](https://github.com/demokratie-live/desktop/compare/v1.0.0...v1.0.5) (2023-01-11)
Loading

0 comments on commit e536aee

Please sign in to comment.