Skip to content

Commit

Permalink
Merge pull request #58 from Flux-Coordinator/develop
Browse files Browse the repository at this point in the history
Merge develop into master
  • Loading branch information
eluchsinger authored Jun 14, 2018
2 parents 263b465 + 67ede9c commit bddd19e
Show file tree
Hide file tree
Showing 127 changed files with 4,328 additions and 1,162 deletions.
58 changes: 36 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,43 @@
# Flux-Frontend

<div align="center">
[![Tested with Jest](https://img.shields.io/badge/tested_with-jest-99424f.svg)](https://github.com/facebook/jest)
[![GitHub license](https://img.shields.io/github/license/Flux-Coordinator/flux-frontend.svg)](https://github.com/Flux-Coordinator/flux-frontend)
[![Sonar Cloud Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=flux-frontend&metric=reliability_rating)](https://sonarcloud.io/api/project_badges/measure?project=flux-frontend&metric=reliability_rating)
[![Sonar Cloud Coverage](https://sonarcloud.io/api/project_badges/measure?project=flux-frontend&metric=coverage)](https://sonarcloud.io/api/project_badges/measure?project=flux-frontend&metric=coverage)
[![Sonar Cloud Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=flux-frontend&metric=alert_status)](https://sonarcloud.io/api/project_badges/measure?project=flux-frontend&metric=alert_status)
[![Build Status](https://travis-ci.org/Flux-Coordinator/flux-frontend.svg?branch=master)](https://travis-ci.org/Flux-Coordinator/flux-frontend)
[![Code Style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![Dependencies](https://david-dm.org/Flux-Coordinator/flux-frontend.svg)](https://david-dm.org/Flux-Coordinator/flux-frontend)
[![DevDependencies](https://david-dm.org/Flux-Coordinator/flux-frontend/dev-status.svg)](https://david-dm.org/Flux-Coordinator/flux-frontend?type=dev)
[![peerDependency Status](https://david-dm.org/Flux-Coordinator/repo/peer-status.svg)](https://david-dm.org/Flux-Coordinator/flux-frontend?type=peer)

[![Tested with Jest](https://img.shields.io/badge/tested_with-jest-99424f.svg)](https://github.com/facebook/jest)
[![GitHub license](https://img.shields.io/github/license/Flux-Coordinator/flux-frontend.svg)](https://github.com/Flux-Coordinator/flux-frontend)
[![Sonar Cloud Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=flux-frontend&metric=reliability_rating)](https://sonarcloud.io/api/project_badges/measure?project=flux-frontend&metric=reliability_rating)
[![Sonar Cloud Coverage](https://sonarcloud.io/api/project_badges/measure?project=flux-frontend&metric=coverage)](https://sonarcloud.io/api/project_badges/measure?project=flux-frontend&metric=coverage)
[![Sonar Cloud Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=flux-frontend&metric=alert_status)](https://sonarcloud.io/api/project_badges/measure?project=flux-frontend&metric=alert_status)
[![Build Status](https://travis-ci.org/Flux-Coordinator/flux-frontend.svg?branch=master)](https://travis-ci.org/Flux-Coordinator/flux-frontend)
[![Code Style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![Dependencies](https://david-dm.org/Flux-Coordinator/flux-frontend.svg)](https://david-dm.org/Flux-Coordinator/flux-frontend)
[![DevDependencies](https://david-dm.org/Flux-Coordinator/flux-frontend/dev-status.svg)](https://david-dm.org/Flux-Coordinator/flux-frontend?type=dev)
[![peerDependency Status](https://david-dm.org/Flux-Coordinator/repo/peer-status.svg)](https://david-dm.org/Flux-Coordinator/flux-frontend?type=peer)

</div>

## Ordnerstruktur
## How to run this application in development mode

Follow the guide below to run this application in development mode.
**Prerequisites:** [NodeJS 8](https://nodejs.org/en/download/) and [Yarn](https://yarnpkg.com/en/docs/install) (recommended) or NPM.

1. Download the repository
2. Install the dependencies using `yarn` or `npm install`
3. Run the application using the `yarn start` or the `npm run start` command.

The URI for the connection to the [flux-server](https://github.com/Flux-Coordinator/flux-server) instance needs to be set either as an environment variable named `REACT_APP_SERVICE_URI` or using a [_.env_](https://github.com/motdotla/dotenv) file, in which you have the following content:

```
REACT_APP_SERVICE_URI = <sever_uri>
```

## Run in Production Mode

To run this application in production mode, you need to build it first, using the `yarn build` or `npm run build` command. After the command has run through, you will find the built application in the _/build_ folder. You can deploy that folder on your preferred static webserver or using [serve](https://github.com/zeit/serve).

To install serve globally, you can use the `yarn global add serve` or `npm install -g serve`. After the installation is complete, you can use the command `serve -s build`, where build the _/build_ folder.

If you use a webserver other than serve, you will need to make some changes. Follow the guide [here](https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#serving-apps-with-client-side-routing).

Die Ordnerstruktur im **./src** Ordner sieht wie folgt aus:
## More informations

| Ordner | Beschreibung |
| -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| src/api | Die JS Dateien in diesem Ordner stellen die Anfragen an das backend API. |
| src/components | In diesem Ordner befinden sich die Presentational Components. Merke, dass die CSS und Tests ebenfalls in diesem Ordner zusammen mit ihren Components befinden. |
| src/containers | In diesem Ordner befinden sich die Container Components. Diese machen die API Calls und besitzen einen State. Merke, dass die CSS und Tests ebenfalls in diesem Ordner zusammen mit ihren Components befinden. |
| src/images | Hier befinden sich die Bilder, die in der Anwendung verwendet werden. |
| src/index.jsx | In dieser Datei wird die App initialisiert. |
| src/utils | Alles, was sonst nicht eingeordnet werden kann und keinen eigenen Ordner verdient. |
For more information about running and deploying the application, you can consult the CRA documentation [here](https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md).
104 changes: 104 additions & 0 deletions flow-typed/npm/@flux-coordinator/heatmapjs_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
// flow-typed signature: 1becce44f344e7ddc91c138bd08004b8
// flow-typed version: <<STUB>>/@flux-coordinator/heatmapjs_v^2.1.4/flow_v0.73.0

/**
* This is an autogenerated libdef stub for:
*
* '@flux-coordinator/heatmapjs'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/

declare module "@flux-coordinator/heatmapjs" {
declare module.exports: any;
}

/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module "@flux-coordinator/heatmapjs/build/heatmap" {
declare module.exports: any;
}

declare module "@flux-coordinator/heatmapjs/build/heatmap.min" {
declare module.exports: any;
}

declare module "@flux-coordinator/heatmapjs/docs/assets/js/prism" {
declare module.exports: any;
}

declare module "@flux-coordinator/heatmapjs/plugins/angular-heatmap/angular-heatmap" {
declare module.exports: any;
}

declare module "@flux-coordinator/heatmapjs/plugins/boilerplate" {
declare module.exports: any;
}

declare module "@flux-coordinator/heatmapjs/plugins/gmaps-heatmap/gmaps-heatmap" {
declare module.exports: any;
}

declare module "@flux-coordinator/heatmapjs/plugins/leaflet-heatmap/leaflet-heatmap" {
declare module.exports: any;
}

declare module "@flux-coordinator/heatmapjs/plugins/segment-heatmap" {
declare module.exports: any;
}

declare module "@flux-coordinator/heatmapjs/plugins/svg-area-heatmap" {
declare module.exports: any;
}

// Filename aliases
declare module "@flux-coordinator/heatmapjs/build/heatmap.js" {
declare module.exports: $Exports<"@flux-coordinator/heatmapjs/build/heatmap">;
}
declare module "@flux-coordinator/heatmapjs/build/heatmap.min.js" {
declare module.exports: $Exports<
"@flux-coordinator/heatmapjs/build/heatmap.min"
>;
}
declare module "@flux-coordinator/heatmapjs/docs/assets/js/prism.js" {
declare module.exports: $Exports<
"@flux-coordinator/heatmapjs/docs/assets/js/prism"
>;
}
declare module "@flux-coordinator/heatmapjs/plugins/angular-heatmap/angular-heatmap.js" {
declare module.exports: $Exports<
"@flux-coordinator/heatmapjs/plugins/angular-heatmap/angular-heatmap"
>;
}
declare module "@flux-coordinator/heatmapjs/plugins/boilerplate.js" {
declare module.exports: $Exports<
"@flux-coordinator/heatmapjs/plugins/boilerplate"
>;
}
declare module "@flux-coordinator/heatmapjs/plugins/gmaps-heatmap/gmaps-heatmap.js" {
declare module.exports: $Exports<
"@flux-coordinator/heatmapjs/plugins/gmaps-heatmap/gmaps-heatmap"
>;
}
declare module "@flux-coordinator/heatmapjs/plugins/leaflet-heatmap/leaflet-heatmap.js" {
declare module.exports: $Exports<
"@flux-coordinator/heatmapjs/plugins/leaflet-heatmap/leaflet-heatmap"
>;
}
declare module "@flux-coordinator/heatmapjs/plugins/segment-heatmap.js" {
declare module.exports: $Exports<
"@flux-coordinator/heatmapjs/plugins/segment-heatmap"
>;
}
declare module "@flux-coordinator/heatmapjs/plugins/svg-area-heatmap.js" {
declare module.exports: $Exports<
"@flux-coordinator/heatmapjs/plugins/svg-area-heatmap"
>;
}
6 changes: 3 additions & 3 deletions flow-typed/npm/@storybook/addon-actions_v3.x.x.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// flow-typed signature: 9f7284fc113607b916f1c64b0640c2a2
// flow-typed version: 1709d3212d/@storybook/addon-actions_v3.x.x/flow_>=v0.25.x
// flow-typed signature: 64850c161373321ab9eabcceb1268d56
// flow-typed version: 5edd39ab2e/@storybook/addon-actions_v3.x.x/flow_>=v0.25.x

declare module "@storybook/addon-actions" {
declare type Action = (name: string) => Function;
declare type Action = (name: string) => (...args: Array<any>) => void;
declare type DecorateFn = (args: Array<any>) => Array<any>;

declare module.exports: {
Expand Down
13 changes: 11 additions & 2 deletions flow-typed/npm/babel-core_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 640dcf7cdffdff8dddcaaf78dadb5f3c
// flow-typed version: <<STUB>>/babel-core_v^6.26.0/flow_v0.69.0
// flow-typed signature: 39d0eadd11a69e2aeda7316112446dcf
// flow-typed version: <<STUB>>/babel-core_v^6.26.0/flow_v0.73.0

/**
* This is an autogenerated libdef stub for:
Expand Down Expand Up @@ -78,6 +78,10 @@ declare module "babel-core/lib/transformation/file/logger" {
declare module.exports: any;
}

declare module "babel-core/lib/transformation/file/merge-map" {
declare module.exports: any;
}

declare module "babel-core/lib/transformation/file/metadata" {
declare module.exports: any;
}
Expand Down Expand Up @@ -191,6 +195,11 @@ declare module "babel-core/lib/transformation/file/index.js" {
declare module "babel-core/lib/transformation/file/logger.js" {
declare module.exports: $Exports<"babel-core/lib/transformation/file/logger">;
}
declare module "babel-core/lib/transformation/file/merge-map.js" {
declare module.exports: $Exports<
"babel-core/lib/transformation/file/merge-map"
>;
}
declare module "babel-core/lib/transformation/file/metadata.js" {
declare module.exports: $Exports<
"babel-core/lib/transformation/file/metadata"
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/babel-eslint_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 7d8a567071271aca71f1d7c450898abf
// flow-typed version: <<STUB>>/babel-eslint_v^8.2.2/flow_v0.69.0
// flow-typed signature: 314ce81bedc5d07c55803f538814840d
// flow-typed version: <<STUB>>/babel-eslint_v^8.2.2/flow_v0.73.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/babel-jest_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 75b3bccd57b6eba723a724ffb80ca92a
// flow-typed version: <<STUB>>/babel-jest_v^23.0.0-alpha.6r/flow_v0.69.0
// flow-typed signature: ccf9085e5314b6f182a280470d108a9e
// flow-typed version: <<STUB>>/babel-jest_v^23.0.0-alpha.6r/flow_v0.73.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/babel-preset-env_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: bda3a77185ea3a353196e1409d969036
// flow-typed version: <<STUB>>/babel-preset-env_v^1.6.1/flow_v0.69.0
// flow-typed signature: 018fca8d3628a5c28a0a374ac04f9e47
// flow-typed version: <<STUB>>/babel-preset-env_v^1.6.1/flow_v0.73.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/babel-preset-react_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 46ec1259939954a65717a38374f317fb
// flow-typed version: <<STUB>>/babel-preset-react_v^6.24.1/flow_v0.69.0
// flow-typed signature: c4e07d3388f058d6c12cb0237ef117a8
// flow-typed version: <<STUB>>/babel-preset-react_v^6.24.1/flow_v0.73.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/concurrently_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: abc8bd6e18ea696dacd822c5811ecf8c
// flow-typed version: <<STUB>>/concurrently_v^3.5.1/flow_v0.69.0
// flow-typed signature: 013874c5df49939f15bf4b73d996e0c1
// flow-typed version: <<STUB>>/concurrently_v^3.5.1/flow_v0.73.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/cross-env_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: d3eaccdd0d0a86addedd10d3aec2d14c
// flow-typed version: <<STUB>>/cross-env_v^5.1.4/flow_v0.69.0
// flow-typed signature: b12f88213252516ab4f4dc8caace85e4
// flow-typed version: <<STUB>>/cross-env_v^5.1.4/flow_v0.73.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/enzyme-adapter-react-16_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: b55edbf3961daef0addd5d5576d8a0d3
// flow-typed version: <<STUB>>/enzyme-adapter-react-16_v^1.1.1/flow_v0.69.0
// flow-typed signature: 9f211a330abbd236459a50a3437f2855
// flow-typed version: <<STUB>>/enzyme-adapter-react-16_v^1.1.1/flow_v0.73.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/eslint-config-airbnb_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 2233f4da2d8d37989c5fae04ca0d9a87
// flow-typed version: <<STUB>>/eslint-config-airbnb_v16.1.0/flow_v0.69.0
// flow-typed signature: ed12bd8ebd377ea0e57ab7cc9828c26b
// flow-typed version: <<STUB>>/eslint-config-airbnb_v16.1.0/flow_v0.73.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/eslint-config-prettier_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 3711665c8cab1c09358ae8b972d2e47d
// flow-typed version: <<STUB>>/eslint-config-prettier_v^2.9.0/flow_v0.69.0
// flow-typed signature: 294eff19ab5f824d8a5b58021cd90094
// flow-typed version: <<STUB>>/eslint-config-prettier_v^2.9.0/flow_v0.73.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/eslint-config-react-app_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 9eb7773e0fb010dff004f3117373fa09
// flow-typed version: <<STUB>>/eslint-config-react-app_v^2.1.0/flow_v0.69.0
// flow-typed signature: 3a06cbbc69970b3c84d0c0f09ead050d
// flow-typed version: <<STUB>>/eslint-config-react-app_v^2.1.0/flow_v0.73.0

/**
* This is an autogenerated libdef stub for:
Expand Down
49 changes: 47 additions & 2 deletions flow-typed/npm/eslint-plugin-flowtype_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: b6cee62d06ad86db0962aa2f6179c48f
// flow-typed version: <<STUB>>/eslint-plugin-flowtype_v^2.46.1/flow_v0.69.0
// flow-typed signature: 3dc9847e70a6346d1624b1016f4fffb9
// flow-typed version: <<STUB>>/eslint-plugin-flowtype_v^2.46.1/flow_v0.73.0

/**
* This is an autogenerated libdef stub for:
Expand Down Expand Up @@ -30,6 +30,26 @@ declare module "eslint-plugin-flowtype/dist/index" {
declare module.exports: any;
}

declare module "eslint-plugin-flowtype/dist/rules/arrayStyle/index" {
declare module.exports: any;
}

declare module "eslint-plugin-flowtype/dist/rules/arrayStyle/isSimpleType" {
declare module.exports: any;
}

declare module "eslint-plugin-flowtype/dist/rules/arrayStyle/needWrap" {
declare module.exports: any;
}

declare module "eslint-plugin-flowtype/dist/rules/arrayStyleComplexType" {
declare module.exports: any;
}

declare module "eslint-plugin-flowtype/dist/rules/arrayStyleSimpleType" {
declare module.exports: any;
}

declare module "eslint-plugin-flowtype/dist/rules/booleanStyle" {
declare module.exports: any;
}
Expand Down Expand Up @@ -235,6 +255,31 @@ declare module "eslint-plugin-flowtype/bin/readmeAssertions.js" {
declare module "eslint-plugin-flowtype/dist/index.js" {
declare module.exports: $Exports<"eslint-plugin-flowtype/dist/index">;
}
declare module "eslint-plugin-flowtype/dist/rules/arrayStyle/index.js" {
declare module.exports: $Exports<
"eslint-plugin-flowtype/dist/rules/arrayStyle/index"
>;
}
declare module "eslint-plugin-flowtype/dist/rules/arrayStyle/isSimpleType.js" {
declare module.exports: $Exports<
"eslint-plugin-flowtype/dist/rules/arrayStyle/isSimpleType"
>;
}
declare module "eslint-plugin-flowtype/dist/rules/arrayStyle/needWrap.js" {
declare module.exports: $Exports<
"eslint-plugin-flowtype/dist/rules/arrayStyle/needWrap"
>;
}
declare module "eslint-plugin-flowtype/dist/rules/arrayStyleComplexType.js" {
declare module.exports: $Exports<
"eslint-plugin-flowtype/dist/rules/arrayStyleComplexType"
>;
}
declare module "eslint-plugin-flowtype/dist/rules/arrayStyleSimpleType.js" {
declare module.exports: $Exports<
"eslint-plugin-flowtype/dist/rules/arrayStyleSimpleType"
>;
}
declare module "eslint-plugin-flowtype/dist/rules/booleanStyle.js" {
declare module.exports: $Exports<
"eslint-plugin-flowtype/dist/rules/booleanStyle"
Expand Down
13 changes: 11 additions & 2 deletions flow-typed/npm/eslint-plugin-import_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 48692da9159353db3136fe2fa07f4be0
// flow-typed version: <<STUB>>/eslint-plugin-import_v^2.11.0/flow_v0.69.0
// flow-typed signature: 1e5a45c847bb6991ca3e5a7862efeb0a
// flow-typed version: <<STUB>>/eslint-plugin-import_v^2.11.0/flow_v0.73.0

/**
* This is an autogenerated libdef stub for:
Expand Down Expand Up @@ -78,6 +78,10 @@ declare module "eslint-plugin-import/lib/rules/default" {
declare module.exports: any;
}

declare module "eslint-plugin-import/lib/rules/dynamic-import-chunkname" {
declare module.exports: any;
}

declare module "eslint-plugin-import/lib/rules/export" {
declare module.exports: any;
}
Expand Down Expand Up @@ -273,6 +277,11 @@ declare module "eslint-plugin-import/lib/index.js" {
declare module "eslint-plugin-import/lib/rules/default.js" {
declare module.exports: $Exports<"eslint-plugin-import/lib/rules/default">;
}
declare module "eslint-plugin-import/lib/rules/dynamic-import-chunkname.js" {
declare module.exports: $Exports<
"eslint-plugin-import/lib/rules/dynamic-import-chunkname"
>;
}
declare module "eslint-plugin-import/lib/rules/export.js" {
declare module.exports: $Exports<"eslint-plugin-import/lib/rules/export">;
}
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/eslint-plugin-jsx-a11y_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: d5452123075dd7edaed9dd600b1132a2
// flow-typed version: <<STUB>>/eslint-plugin-jsx-a11y_v6.0.3/flow_v0.69.0
// flow-typed signature: a1235f29a108b45d1956fad4747f2233
// flow-typed version: <<STUB>>/eslint-plugin-jsx-a11y_v6.0.3/flow_v0.73.0

/**
* This is an autogenerated libdef stub for:
Expand Down
Loading

0 comments on commit bddd19e

Please sign in to comment.