-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 4327847
Showing
205 changed files
with
58,972 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"presets": [ | ||
"@babel/preset-react", | ||
"@babel/preset-env" | ||
], | ||
"plugins": [ | ||
"@babel/plugin-syntax-dynamic-import", | ||
"@babel/plugin-proposal-class-properties", | ||
"macros", | ||
"@babel/plugin-proposal-optional-chaining" | ||
], | ||
"env": { | ||
"test": { | ||
"plugins": [ | ||
"dynamic-import-node" | ||
] | ||
} | ||
} | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"parserOptions": { | ||
"ecmaVersion": 2020, | ||
"ecmaFeatures": { | ||
"js": true, | ||
"jsx": true | ||
} | ||
}, | ||
"extends": "airbnb", | ||
"rules": { | ||
"func-names": 0, | ||
"semi": 0, | ||
"max-len": 0, | ||
"default-param-last": "off", | ||
"import/prefer-default-export": "off", | ||
"indent": [ | ||
"error", | ||
2 | ||
] | ||
}, | ||
"globals": { | ||
"document": true, | ||
"window": true, | ||
"localStorage": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/node_modules | ||
/.idea | ||
.DS_Store | ||
bundle.js | ||
npm-debug.log | ||
.env | ||
.env.development | ||
.env.production | ||
static/config.js | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"locales": ["en", "nl", "fr"], | ||
"catalogs": [{ | ||
"path": "src/app/locales/{locale}/messages", | ||
"include": ["src"] | ||
}], | ||
"format": "po" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
}, | ||
"eslint.validate": [ | ||
"javascript" | ||
], | ||
"editor.tabSize": 2, | ||
"eslint.alwaysShowStatus": true, | ||
//"editor.detectIndentation": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
## Install | ||
|
||
### config | ||
copy static/dev-config.js.example -> static/dev-config.js | ||
copy static/prod-config.js.example -> static/prod-config.js | ||
|
||
edit both files with with correct info | ||
|
||
### Nginx config | ||
|
||
development: | ||
``` | ||
server { | ||
listen 443 ssl http2; | ||
listen [::]:443 ssl http2; | ||
server_name localhost; | ||
ssl_certificate /etc/ssl/certs/localhost.crt; | ||
ssl_certificate_key /etc/ssl/private/localhost.key; | ||
ssl_protocols TLSv1.2 TLSv1.1 TLSv1; | ||
location / { | ||
proxy_pass http://127.0.0.1:8012; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
} | ||
location /api/ { | ||
proxy_http_version 1.1; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_pass "http://127.0.0.1:8080/api/"; | ||
} | ||
location /socket.io/ { | ||
proxy_http_version 1.1; | ||
proxy_set_header Host $host; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "upgrade"; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_pass "http://127.0.0.1:8080/socket.io/"; | ||
} | ||
location /static { | ||
autoindex on; | ||
alias /home/bago/RUNES-tip-dashboard/static; | ||
} | ||
} | ||
``` | ||
|
||
production: | ||
``` | ||
server { | ||
server_name tip.runebase.io; | ||
root /home/bago/RUNES-Tip-dashboard/dist; | ||
index index.html index.htm; | ||
client_max_body_size 5M; | ||
location / { | ||
try_files $uri /index.html; | ||
} | ||
location /static { | ||
autoindex on; | ||
alias /home/bago/RUNES-tip-dashboard/static; | ||
} | ||
location /api/ { | ||
#add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; | ||
proxy_http_version 1.1; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_pass "http://127.0.0.1:8080/api/"; | ||
} | ||
location /socket.io/ { | ||
#add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; | ||
proxy_http_version 1.1; | ||
proxy_set_header Host $host; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "upgrade"; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_pass "http://127.0.0.1:8080/socket.io/"; | ||
} | ||
listen 443 ssl; # managed by Certbot | ||
ssl_certificate /etc/letsencrypt/live/tip.runebase.io/fullchain.pem; # managed by Certbot | ||
ssl_certificate_key /etc/letsencrypt/live/tip.runebase.io/privkey.pem; # managed by Certbot | ||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot | ||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot | ||
} | ||
server { | ||
if ($host = tip.runebase.io) { | ||
return 301 https://$host$request_uri; | ||
} # managed by Certbot | ||
server_name tip.runebase.io; | ||
listen 80; | ||
return 404; # managed by Certbot | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export default "../Fonts/fa-regular-400.ttf"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export default "../Fonts/fa-v4compatibility.woff2"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export default "../Fonts/fa-v4compatibility.ttf"; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export default "../Fonts/fa-brands-400.ttf"; |
Oops, something went wrong.