Skip to content

Commit

Permalink
Merge pull request #38 from adzialocha/chore/rework
Browse files Browse the repository at this point in the history
Chore: Rework
  • Loading branch information
adzialocha authored Mar 26, 2019
2 parents edc7a4c + 5d191eb commit 79398a0
Show file tree
Hide file tree
Showing 231 changed files with 16,421 additions and 12,896 deletions.
13 changes: 9 additions & 4 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
{
"presets": [
"es2015",
"stage-0",
"react"
[
"@babel/preset-env",
{
"useBuiltIns": "usage"
}
],
"@babel/preset-react"
],
"plugins": [
"add-module-exports",
"transform-inline-environment-variables"
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-object-rest-spread"
]
}
2 changes: 2 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
> 1%
last 4 versions
57 changes: 11 additions & 46 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,62 +1,27 @@
# configuration
CONFIG_URL=http://localhost:3000
CONFIG_TIMEZONE=Europe/Berlin

CONFIG_TITLE=HOFFNUNG 3000
CONFIG_DESCRIPTION=HOFFNUNG 3000 is a festival for music, art and theory. It is an experiment in social, artistic and theoretical collaboration.

CONFIG_MAXMIMUM_PARTICIPATION_COUNT=30
CONFIG_FESTIVAL_TICKET_PRICE=10
CONFIG_PARTICIPATION_PRICE=25

CONFIG_MAIL_ADMIN=HOFFNUNG 3000 <kontakt@yourmail.com>
CONFIG_MAIL_ROBOT=ROBOTER 3000 <roboter@yourmail.com>

CONFIG_CURRENCY=EUR

CONFIG_TRANSFER_NAME=
CONFIG_TRANSFER_BANK=
CONFIG_TRANSFER_IBAN=
CONFIG_TRANSFER_BIC=

CONFIG_FESTIVAL_DATE_START=2017-08-24T00:00:00.000+02:00
CONFIG_FESTIVAL_DATE_START=2017-08-27T00:00:00.000+02:00

CONFIG_DEFAULT_CITY=
CONFIG_DEFAULT_COUNTRY=
CONFIG_DEFAULT_LATITUDE=
CONFIG_DEFAULT_LONGITUDE=

# development server
# Development server
PORT=3000

# database
# Database
DATABASE_URL=postgres://username:password@localhost:5432/dbname
DATABASE_DIALECT=postgres

# authentification
JWT_SECRET=secret

# paypal
PAYPAL_ID=
PAYPAL_SECRET=
PAYPAL_RETURN_URL=http://localhost:3000/api/auth/signup/paypal/success
PAYPAL_CANCEL_URL=http://localhost:3000/api/auth/signup/paypal/cancel
# Authentification
JWT_SECRET=

# smtp mail
# SMTP mailing
SMTP_HOST=
SMTP_PORT=
SMTP_USER=
SMTP_PASS=

# aws s3
# AWS S3 storage (optional)
AWS_REGION=
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_BUCKET_NAME=

# google map api
GOOGLE_MAP_API_KEY=

# gif stream server
GIF_STREAM_SERVER=
# Paypal payment (optional)
PAYPAL_ID=
PAYPAL_SECRET=
PAYPAL_RETURN_URL=http://localhost:3000/api/auth/signup/paypal/success
PAYPAL_CANCEL_URL=http://localhost:3000/api/auth/signup/paypal/cancel
34 changes: 16 additions & 18 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,33 +1,28 @@
{
"env": {
"browser": true,
"node": true
"node": true,
"es6": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": false,
"jsx": true,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": false,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"spread": true,
"superInFunctions": true,
"templateStrings": true
"jsx": true
}
},
"plugins": [
"react"
],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"arrow-parens": [
"error",
"as-needed"
],
"block-scoped-var": 2,
"brace-style": [
2,
Expand Down Expand Up @@ -219,7 +214,6 @@
],
"react/jsx-no-duplicate-props": 2,
"react/jsx-no-undef": 2,
"react/jsx-sort-prop-types": 0,
"react/jsx-sort-props": [
2,
{
Expand All @@ -238,8 +232,12 @@
"react/jsx-uses-vars": 2,
"react/jsx-wrap-multilines": 2,
"react/no-did-mount-set-state": 2,
"react/sort-prop-types": 2,
"react/no-did-update-set-state": 2,
"react/boolean-prop-naming": 2,
"react/no-multi-comp": 2,
"react/no-string-refs": 2,
"react/no-deprecated": 2,
"react/no-unknown-property": 2,
"react/no-unused-prop-types": 1,
"react/prop-types": 2,
Expand Down
9 changes: 4 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ node_modules

# local
.env
public

# development
.tmp
npm-debug.log
dist
static
uploads
webpack-assets.json
5 changes: 5 additions & 0 deletions .postcssrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"plugins": {
"autoprefixer": {}
}
}
Loading

0 comments on commit 79398a0

Please sign in to comment.