Skip to content

Commit

Permalink
init filth
Browse files Browse the repository at this point in the history
  • Loading branch information
bobpepers committed Jun 11, 2022
0 parents commit 4327847
Show file tree
Hide file tree
Showing 205 changed files with 58,972 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .babelrc
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 added .eslintignore
Empty file.
26 changes: 26 additions & 0 deletions .eslintrc
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
}
}
10 changes: 10 additions & 0 deletions .gitignore
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

8 changes: 8 additions & 0 deletions .linguirc
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"
}
11 changes: 11 additions & 0 deletions .vscode/settings.json
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
}
113 changes: 113 additions & 0 deletions README.MD
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
}
```
1 change: 1 addition & 0 deletions dist/0fcb586a22c718b4a9bf.ttf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default "../Fonts/fa-regular-400.ttf";
1 change: 1 addition & 0 deletions dist/1697c1794b78d62a168e.woff2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default "../Fonts/fa-v4compatibility.woff2";
1 change: 1 addition & 0 deletions dist/1815aa15511a9a4b3086.ttf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default "../Fonts/fa-v4compatibility.ttf";
1 change: 1 addition & 0 deletions dist/3.30910a972e614a7992be.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added dist/3eb7b0ddc9c01753628b.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions dist/4.fe5160fd38b6b1658349.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/449750cfefacbbd1e428.ttf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default "../Fonts/fa-brands-400.ttf";
Loading

0 comments on commit 4327847

Please sign in to comment.