Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
6ab69c5
Fork, Cleanup, WeaponCalc
kronthto Dec 7, 2019
66fb774
Update deps
kronthto Dec 7, 2019
14891d5
Fix favicon SSR
kronthto Dec 7, 2019
7685b8d
WeaponCalc: Progress on Des param / stat gathering
kronthto Dec 8, 2019
1f7bbe3
WeaponCalc: Display fix values
kronthto Dec 8, 2019
8d00fe9
:tada: WeaponCalc enchants
kronthto Dec 9, 2019
d1e89a3
:sparkles: Add WeaponCalc Enchant dropdown card filtering ReqItemKind
kronthto Dec 9, 2019
606cb07
:zap: Slightly shorten state keys to reduce fragment size
kronthto Dec 16, 2019
500de64
:sparkles: Enchant/Stat additions/improvements
kronthto Dec 16, 2019
04ace5e
:sparkles: Stat display
kronthto Dec 16, 2019
5d087e8
Improve weapon stat display; Show Item level in dropdown
kronthto Dec 23, 2019
3f76552
:sparkles: Add Stat-Values to total Item-results
kronthto Dec 23, 2019
f76a08c
:tada: WeaponCalc skills
kronthto Dec 24, 2019
b49eb89
:recycle: Refactor DesParam to DesKey loops
kronthto Dec 25, 2019
5c77849
Reset skills on gear change
kronthto Dec 25, 2019
b6ee32d
:bug: `&&` condition showed numeric zero if it eval'd to that
kronthto Dec 25, 2019
a47272c
:sparkles: Calc/Display stats not included on the item (Eva-Up with D…
kronthto Dec 25, 2019
e9037b1
:sparkles: Show Raging buffs for every gear
kronthto Dec 25, 2019
6674b73
:bug: Prevent colorName regex from matching over a string with multip…
kronthto Dec 25, 2019
60127bc
:sparkles: Add Charms
kronthto Dec 26, 2019
a431cde
:sparkles: Add Armorfix selection when building weaps
kronthto Dec 28, 2019
54132d1
:recycle: Charm list as select
kronthto Dec 29, 2019
ef6b5bf
:tada: Armor Base Bonus
kronthto Dec 29, 2019
8d2275b
:sparkles: Add Buffitems
kronthto Dec 29, 2019
4040f11
Merge remote-tracking branch 'origin/master' into cr
kronthto Jan 3, 2020
916353b
Merge remote-tracking branch 'origin/cr' into cr
kronthto Jan 3, 2020
a930a36
CR Styling
kronthto Jan 3, 2020
295ea5b
:wheelchair: Higher contract colors
kronthto Jan 3, 2020
abdb8bd
:sparkles: Add KillsBetween to CR Version
kronthto Jan 3, 2020
ab8c1b3
:zap: Fragment hash building improvements
kronthto Jan 4, 2020
a8ce9f7
:zap: add preconnect to API
kronthto Jan 4, 2020
ca3ea86
Migrate CR Tools
kronthto Jan 4, 2020
fa1511e
WeaponCalc improvements: Readability, rounding
kronthto Jan 4, 2020
e4c92ad
:sparkles: Weapon Dmg per s/volley
kronthto Jan 5, 2020
0b783e8
:sparkles: Add Target Def/Eva calculations
kronthto Jan 5, 2020
9db2a51
:poop: :sparkles: Reset WeaponCalc on menu click
kronthto Jan 11, 2020
c3e9c63
:sparkles: PushSub management UI, API
kronthto Jan 18, 2020
8d162a2
:sparkles: Update PushSub on app start
kronthto Jan 18, 2020
cd7fd30
:bug: Hotfix SSR
kronthto Jan 18, 2020
ab502e1
Bugfix/Prevent SSR index include
kronthto Jan 18, 2020
02f4093
Add Push service worker
kronthto Jan 19, 2020
fe5644b
Dont use App icon for now
kronthto Jan 19, 2020
c6ea69d
Fix SSR / new version bust
kronthto Jan 19, 2020
1e2a038
:sparkles: Expected DPS vs Def/Eva
kronthto Jan 29, 2020
58dfb86
:sparkles: 4K highlight midname
kronthto Feb 9, 2020
d388851
:sparkles: Preselect last hour on load
kronthto Feb 9, 2020
99ed320
Make app installable
kronthto Feb 24, 2020
d01374f
:tada: Big rebuild & updates to utilize new cr-api
kronthto Mar 1, 2020
6458126
:sparkles: call all new endpoints/data for killsBetween
kronthto Mar 1, 2020
2cdd5eb
:sparkles: Re-add Date defaults & error handling
kronthto Mar 1, 2020
1c6bb15
:sparkles: Default/Limit to latest available fetched date
kronthto Mar 1, 2020
0a1e113
Bump serialize-javascript from 1.9.1 to 2.1.1
dependabot[bot] Mar 1, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ npm run build
npm run start:server
```

For the Push Notifications we sadly need a manual edit of the webpack config and add `importScripts: ['pushSw.js'],` to `GenerateSW`

## Technologies

* React
Expand Down
1,333 changes: 979 additions & 354 deletions package-lock.json

Large diffs are not rendered by default.

28 changes: 15 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,28 @@
"version": "0.1.0",
"private": true,
"devDependencies": {
"@babel/core": "^7.6.2",
"@babel/register": "^7.6.2",
"@babel/core": "^7.7.5",
"@babel/register": "^7.7.4",
"husky": "^0.14.3",
"lint-staged": "^6.1.1",
"prettier": "1.7.4",
"react-scripts": "3.0.1"
"react-scripts": "3.0.1",
"webpack-bundle-analyzer": "^3.6.0"
},
"dependencies": {
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/preset-env": "^7.6.2",
"@babel/plugin-proposal-class-properties": "^7.7.4",
"@babel/plugin-syntax-dynamic-import": "^7.7.4",
"@babel/preset-env": "^7.7.5",
"aceonline-framebreak": "^1.1.0",
"aceonline-stats": "^1.2.0",
"body-parser": "^1.19.0",
"bulma": "0.6.0",
"chart.js": "^2.8.0",
"bulma": "^0.8.0",
"chart.js": "^2.9.3",
"classnames": "^2.2.6",
"compression": "^1.7.4",
"cross-env": "^5.2.1",
"date-fns": "^1.30.1",
"date-fns": "^2.10.0",
"date-fns-tz": "^1.0.10",
"es6-promise": "^4.2.8",
"express": "^4.17.1",
"fetch-everywhere": "^1.0.5",
Expand All @@ -36,20 +38,20 @@
"marked": "^0.7.0",
"morgan": "^1.9.1",
"prop-types": "^15.7.2",
"react": "^16.8.6",
"react": "^16.12.0",
"react-async-bootstrapper": "^2.1.1",
"react-async-component": "^2.0.0",
"react-chartjs-2": "^2.8.0",
"react-dom": "^16.8.6",
"react-dom": "^16.12.0",
"react-flatpickr": "^3.9.1",
"react-helmet": "^5.2.1",
"react-redux": "^5.1.1",
"react-redux": "^5.1.2",
"react-router-config": "^1.0.0-beta.4",
"react-router-dom": "^4.3.1",
"redux": "^3.7.2",
"redux-persist": "^4.10.2",
"redux-thunk": "^2.3.0",
"serialize-javascript": "^1.9.1",
"serialize-javascript": "^2.1.1",
"serve-favicon": "^2.5.0"
},
"lint-staged": {
Expand Down
Binary file removed public/favicon.ico
Binary file not shown.
17 changes: 0 additions & 17 deletions public/humans.txt

This file was deleted.

Binary file added public/img/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,22 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1,shrink-to-fit=no">
<meta name="theme-color" content="#4a4cff">
<meta name="theme-color" content="#006488">
<!--
manifest.json provides metadata used when your web app is added to the
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
<link rel="icon" href="%PUBLIC_URL%/favicon.ico">
<meta name="mobile-web-app-capable" content="yes">
<meta name="language" content="en">
<link rel="dns-prefetch" href="https://api.vi0lation.de" />
<link rel="preconnect" href="https://api.vi0lation.de" />
<link rel="dns-prefetch" href="https://cr-api.vi0.de" />
<link rel="preconnect" href="https://cr-api.vi0.de" />
{{HELMET_HEAD}}
<!--[if IE]>
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet" crossorigin="anonymous">
<![endif]-->
<!-- TODO <link type="text/plain" rel="author" href="https://www.vi0lation.de/humans.txt"> -->
</head>
<body>
<div id="root">{{SSR}}</div>
Expand Down
20 changes: 6 additions & 14 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,16 @@
{
"short_name": "Vi0",
"name": "Vi0lation",
"short_name": "CRT",
"name": "CR Tools",
"icons": [
{
"src": "https://cdn.vi0lation.de/img/app_icon.png",
"sizes": "144x144",
"type": "image/png"
},
{
"src": "favicon.ico"
},
{
"src": "https://cdn.vi0lation.de/img/viologo.png",
"sizes": "72x36",
"src": "img/logo.png",
"sizes": "512x512",
"type": "image/png"
}
],
"start_url": "./",
"display": "standalone",
"theme_color": "#4a4cff",
"theme_color": "#006488",
"background_color": "#ffffff",
"description": "Vi0lation brigade website and AirRivals ranking"
"description": "ChromeRivals tools, statistics, tracking"
}
47 changes: 47 additions & 0 deletions public/pushSw.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
var notificationPushAllowOverride = [
'badge',
'body',
'icon',
'tag',
'image',
'lang'
];

self.addEventListener('push', function(event) {
if (!(self.Notification && self.Notification.permission === 'granted')) {
return;
}

const sendNotification = data => {
let title = 'CR Event'; // TODO: Dynamic

let pushoptions = {
body: data.text,
icon: 'img/logo.png',
badge: 'img/icon.png',
data
};
notificationPushAllowOverride.forEach(function(prop) {
if (typeof data[prop] !== 'undefined') {
pushoptions[prop] = data[prop];
}
});
if (typeof data.title !== 'undefined') {
title = data.title;
}

return self.registration.showNotification(title, pushoptions);
};

if (event.data) {
let data;
try {
data = event.data.json();
} catch (e) {
data = { text: event.data.text() };
}
event.waitUntil(sendNotification(data));
} else {
event.waitUntil(sendNotification({ text: 'no details (weird error)' })); // We always need to show a notif on push, so display something to be safe
}
});
3 changes: 0 additions & 3 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
User-agent: *
Disallow:

# TODO
# SITEMAP: https://www.vi0lation.de/sitemap.xml
1 change: 0 additions & 1 deletion public/sitemap.xml

This file was deleted.

2 changes: 1 addition & 1 deletion server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const { indexhtmlDirect } = require('./indexhtml')
const app = express()

// Server favicon before to not show up in logs
app.use(favicon(path.join(__dirname, '../build', 'favicon.ico')))
//app.use(favicon(path.join(__dirname, '../build', 'icon.png')))

// Setup logger
app.use(morgan('combined'))
Expand Down
38 changes: 0 additions & 38 deletions src/actions/cms.js

This file was deleted.

48 changes: 0 additions & 48 deletions src/actions/highscores.js

This file was deleted.

38 changes: 0 additions & 38 deletions src/components/AR/EPList.js

This file was deleted.

Loading