Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Rework #38

Merged
merged 80 commits into from Mar 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
426d3ff
Replace gulp with webpack, new build pipeline for js and scss assets
adzialocha Jan 22, 2019
1f8cc87
Render index server-side for easier customization of the app
adzialocha Jan 22, 2019
f9bb966
Correct name for browserslist config
adzialocha Jan 23, 2019
c866b59
Minor changes in database setup
adzialocha Jan 23, 2019
76bd44b
Update eslint, use stylelint for scss
adzialocha Jan 23, 2019
45ba8c2
Adjust eslint settings
adzialocha Jan 23, 2019
2ea76cb
Update all server depedencies, module API changes
adzialocha Jan 23, 2019
4818f28
Replace react-router-redux with connected-react-router for react-rout…
adzialocha Jan 23, 2019
84702f4
Change route changes to new module
adzialocha Jan 23, 2019
7534030
Improve database migrations
adzialocha Jan 23, 2019
f82f689
Improve logging
adzialocha Jan 25, 2019
722457d
Change deprecated sequelize methods
adzialocha Jan 25, 2019
325b6d1
Update README.md
adzialocha Jan 25, 2019
58c42d4
Merge pull request #36 from adzialocha/chore/housekeeping
adzialocha Jan 25, 2019
5e4ec4d
Fix undefined db
adzialocha Jan 25, 2019
2b45bbc
Add config table
adzialocha Jan 25, 2019
a179154
Improve config table, store custom data in database, use it to render…
adzialocha Jan 25, 2019
cbbe80b
Remove unneded images, copy favicon to assets folder
adzialocha Jan 25, 2019
c6679af
Use configs from database in server methods
adzialocha Jan 25, 2019
0aa907b
Expose config in API meta endpoint
adzialocha Feb 12, 2019
e6243fb
Update meta reducer, add config field
adzialocha Feb 12, 2019
76e285b
Add withConfig container to fetch configurations in app, use it in Ho…
adzialocha Feb 12, 2019
9ebbbc4
Remove annoying comment linting
adzialocha Feb 12, 2019
8f66754
Do not show components with config when it wasnt loaded yet
adzialocha Feb 12, 2019
28e8253
Make sidebar configurable
adzialocha Feb 12, 2019
4cbf564
Show configured title in header
adzialocha Feb 12, 2019
798a0e4
Do not request config again when its already loading
adzialocha Feb 12, 2019
d4c68c9
Pass on props when using withConfig container, add comments and requi…
adzialocha Feb 12, 2019
62d5470
Make GoogleMap components configurable
adzialocha Feb 12, 2019
196def4
Make payment buttons in app configurable, remote sensitive configs fr…
adzialocha Feb 12, 2019
a88c408
Remove old config.js
adzialocha Feb 13, 2019
301b99b
Remove sponsored field in footer
adzialocha Feb 13, 2019
47cce7c
Hide navigation links depending on config
adzialocha Feb 13, 2019
d141db9
Hide routes depending on config
adzialocha Feb 13, 2019
00aaaf6
Clean up .env.example file
adzialocha Feb 13, 2019
b21bc40
Clean ups
adzialocha Feb 13, 2019
871216a
Protect server routes when feature got disabled
adzialocha Feb 13, 2019
ae57434
Add more fields to config model
adzialocha Feb 15, 2019
b730fc0
Introduce a config endpoint for admins to read sensitive fields and u…
adzialocha Feb 15, 2019
0e566af
Consider config as unset when its empty
adzialocha Feb 15, 2019
679700f
Fix missing config in FormSlotSizeEditor
adzialocha Feb 15, 2019
df39637
Fix wrong reference
adzialocha Feb 15, 2019
c0c7559
Add a config editor for admins
adzialocha Feb 15, 2019
656db44
Fix image paths
adzialocha Feb 15, 2019
23fbc0f
Fix typos in activity and meeting controllers
adzialocha Feb 15, 2019
5e3e8ad
Update dependencies
adzialocha Feb 15, 2019
1d44697
Fix broken Place forms
adzialocha Mar 11, 2019
7103924
Update dependencies, use beta version of Sequelize
adzialocha Mar 11, 2019
24bc7c9
Fix missing template variable in mail notification
adzialocha Mar 11, 2019
ca1b5aa
Remove unneded database options after upgrading to Sequelize 5
adzialocha Mar 11, 2019
5c61b05
Add missing getConfig import
adzialocha Mar 11, 2019
dc3e26c
Fix infinite list issue by namespacing the resource path
adzialocha Mar 11, 2019
987dc29
Fix incorrect reducer name for router
adzialocha Mar 11, 2019
78a1a15
Correct config name for template mail
adzialocha Mar 11, 2019
47d3e23
Pass over config object for mail template rendering
adzialocha Mar 11, 2019
89d71ba
Update dependencies, stable version of sequelize 5
adzialocha Mar 17, 2019
f9d1db2
Nicer looking comments in .env.example
adzialocha Mar 17, 2019
755b971
Add feature flag to disable animal anonymization, improve React lifec…
adzialocha Mar 17, 2019
7a79a31
Fix config validation
adzialocha Mar 17, 2019
a2c0b9e
Add option to have free registration and tickets
adzialocha Mar 17, 2019
18504e6
Use leaflet instead of GoogleMaps
adzialocha Mar 17, 2019
b047c22
Remove GoogleMap API key from configuration
adzialocha Mar 17, 2019
95838e4
Make AWS S3 optional, fix image uploads
adzialocha Mar 17, 2019
bd785ac
Merge pull request #39 from adzialocha/chore/customization
adzialocha Mar 17, 2019
cb9c15d
Transpile server code for production
adzialocha Mar 17, 2019
dc97f03
Add dist folder to gitignore
adzialocha Mar 17, 2019
b7f217b
Replace moment with luxon on server-side
adzialocha Mar 17, 2019
55fa584
Add babel-register to use correctly handle common folder after transp…
adzialocha Mar 18, 2019
395d4fe
Set timezone explicitly to UTC on server-side
adzialocha Mar 18, 2019
201020e
Correct luxon date format strings and API use
adzialocha Mar 24, 2019
1765ea0
Use only utc timezone on client for event-related methods, remove tim…
adzialocha Mar 24, 2019
5319e93
Fix server-side date validation and formatting
adzialocha Mar 24, 2019
42da013
Correct success messages when registrating for free
adzialocha Mar 24, 2019
950d6c4
Wrap basePath in own function to make sure env-variables are set
adzialocha Mar 25, 2019
5012fe4
Update gif-stream
adzialocha Mar 25, 2019
c6a31fb
Consider dates in festival range when they are right at the end or st…
adzialocha Mar 26, 2019
0becc61
Fix broken paginated list navigation
adzialocha Mar 26, 2019
00cd684
Update dependencies, fix build process
adzialocha Mar 26, 2019
723583a
Merge pull request #40 from adzialocha/chore/improvements
adzialocha Mar 26, 2019
5d191eb
2.0.0
adzialocha Mar 26, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 9 additions & 4 deletions .babelrc
@@ -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
@@ -0,0 +1,2 @@
> 1%
last 4 versions
57 changes: 11 additions & 46 deletions .env.example
@@ -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
@@ -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
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
@@ -0,0 +1,5 @@
{
"plugins": {
"autoprefixer": {}
}
}