Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1691 commits
Select commit Hold shift + click to select a range
330d844
New translations en-US.json (Portuguese, Brazilian)
albertcui Aug 11, 2018
8071b97
New translations en-US.json (Turkish)
albertcui Aug 11, 2018
f0fd8ce
New translations en-US.json (Portuguese, Brazilian)
albertcui Aug 12, 2018
e107a43
Bump eslint-plugin-import from 2.13.0 to 2.14.0
dependabot-support Aug 14, 2018
663b65e
remove moremmr (#1750)
albertcui Aug 14, 2018
af6c614
New translations en-US.json (Russian)
albertcui Aug 14, 2018
243aef5
New translations en-US.json (Italian)
albertcui Aug 14, 2018
d4bd864
New translations en-US.json (Swedish)
albertcui Aug 14, 2018
a9670b5
New translations en-US.json (Spanish, United States)
albertcui Aug 14, 2018
ccb8dbf
New translations en-US.json (Spanish, Peru)
albertcui Aug 14, 2018
7452ebe
New translations en-US.json (Spanish)
albertcui Aug 14, 2018
1b1d520
New translations en-US.json (Slovak)
albertcui Aug 14, 2018
6d3d568
New translations en-US.json (Serbian (Cyrillic))
albertcui Aug 14, 2018
2be8eb0
New translations en-US.json (Romanian)
albertcui Aug 14, 2018
0b73a28
New translations en-US.json (Portuguese)
albertcui Aug 14, 2018
59c9ac2
New translations en-US.json (Polish)
albertcui Aug 14, 2018
032bb03
New translations en-US.json (Norwegian)
albertcui Aug 14, 2018
368c7e5
New translations en-US.json (Malay)
albertcui Aug 14, 2018
3ca9fc8
New translations en-US.json (Korean)
albertcui Aug 14, 2018
91e3a59
New translations en-US.json (Japanese)
albertcui Aug 14, 2018
02370e8
New translations en-US.json (Hungarian)
albertcui Aug 14, 2018
0ccf396
New translations en-US.json (Chinese Simplified)
albertcui Aug 14, 2018
45255e4
New translations en-US.json (Hebrew)
albertcui Aug 14, 2018
d50b025
New translations en-US.json (Greek)
albertcui Aug 14, 2018
cc61595
New translations en-US.json (German)
albertcui Aug 14, 2018
6edf41b
New translations en-US.json (French)
albertcui Aug 14, 2018
2f96ddb
New translations en-US.json (Finnish)
albertcui Aug 14, 2018
188f0f1
New translations en-US.json (Dutch)
albertcui Aug 14, 2018
c32411c
New translations en-US.json (Danish)
albertcui Aug 14, 2018
0fd9312
New translations en-US.json (Czech)
albertcui Aug 14, 2018
22e00a1
New translations en-US.json (Chinese Traditional)
albertcui Aug 14, 2018
de9a75b
New translations en-US.json (Bulgarian)
albertcui Aug 14, 2018
7fc46e4
New translations en-US.json (Vietnamese)
albertcui Aug 14, 2018
29e590b
New translations en-US.json (Ukrainian)
albertcui Aug 14, 2018
21cb984
New translations en-US.json (Portuguese, Brazilian)
albertcui Aug 14, 2018
abf229d
New translations en-US.json (Turkish)
albertcui Aug 14, 2018
59f4de0
renamed
Argn0 Aug 16, 2018
011e8db
fix column widths
Argn0 Aug 16, 2018
4d43ab8
import styled from 'styled-components';
Argn0 Aug 16, 2018
3f4a5e5
Updated Match Gold and XP Sources graphs
coreymaher Aug 12, 2018
a124061
Merge pull request #1755 from odota/targets-column
howardchung Aug 17, 2018
ccae4f5
Merge pull request #1675 from odota/select-fields
howardchung Aug 17, 2018
de75e96
New translations en-US.json (Russian)
albertcui Aug 17, 2018
f74d617
New translations en-US.json (Italian)
albertcui Aug 17, 2018
6a95c33
New translations en-US.json (Swedish)
albertcui Aug 17, 2018
32a1ba8
New translations en-US.json (Spanish, United States)
albertcui Aug 17, 2018
b442ddb
New translations en-US.json (Spanish, Peru)
albertcui Aug 17, 2018
ebd10a4
New translations en-US.json (Spanish)
albertcui Aug 17, 2018
31932a1
New translations en-US.json (Slovak)
albertcui Aug 17, 2018
a65c8ca
New translations en-US.json (Serbian (Cyrillic))
albertcui Aug 17, 2018
6d61412
New translations en-US.json (Romanian)
albertcui Aug 17, 2018
89a3bc2
New translations en-US.json (Portuguese)
albertcui Aug 17, 2018
8267b62
New translations en-US.json (Polish)
albertcui Aug 17, 2018
d80e1a1
New translations en-US.json (Norwegian)
albertcui Aug 17, 2018
e964fd9
New translations en-US.json (Malay)
albertcui Aug 17, 2018
00a7eef
New translations en-US.json (Korean)
albertcui Aug 17, 2018
bfe4cab
New translations en-US.json (Japanese)
albertcui Aug 17, 2018
0c79090
New translations en-US.json (Hungarian)
albertcui Aug 17, 2018
bc3d328
New translations en-US.json (Chinese Simplified)
albertcui Aug 17, 2018
109ee56
New translations en-US.json (Hebrew)
albertcui Aug 17, 2018
f0199d0
New translations en-US.json (Greek)
albertcui Aug 17, 2018
b7c4dca
New translations en-US.json (German)
albertcui Aug 17, 2018
1de340d
New translations en-US.json (French)
albertcui Aug 17, 2018
0a52d2d
New translations en-US.json (Finnish)
albertcui Aug 17, 2018
0f064c3
New translations en-US.json (Dutch)
albertcui Aug 17, 2018
6783d12
New translations en-US.json (Danish)
albertcui Aug 17, 2018
de8b7ac
New translations en-US.json (Czech)
albertcui Aug 17, 2018
1a8db4c
New translations en-US.json (Chinese Traditional)
albertcui Aug 17, 2018
b2e2fcd
New translations en-US.json (Bulgarian)
albertcui Aug 17, 2018
09b70ff
New translations en-US.json (Vietnamese)
albertcui Aug 17, 2018
e87a2bc
New translations en-US.json (Ukrainian)
albertcui Aug 17, 2018
f4350b8
New translations en-US.json (Portuguese, Brazilian)
albertcui Aug 17, 2018
7455df2
New translations en-US.json (Turkish)
albertcui Aug 17, 2018
6a03ddd
Merge pull request #1749 from coreymaher/issue/1748
dartharaknus Aug 17, 2018
4d24224
Item tooltip (#1754)
Argn0 Aug 17, 2018
aa6e963
Bump ace-builds from 1.3.3 to 1.4.1
dependabot-support Aug 17, 2018
c510256
Bump eslint from 5.2.0 to 5.4.0
dependabot-support Aug 20, 2018
c440b25
Merge pull request #1759 from odota/dependabot/npm_and_yarn/eslint-5.4.0
howardchung Aug 20, 2018
4699e7a
Merge pull request #1752 from odota/dependabot/npm_and_yarn/eslint-pl…
howardchung Aug 20, 2018
63c8621
Merge pull request #1740 from odota/dependabot/npm_and_yarn/styled-co…
howardchung Aug 20, 2018
5ef97ab
Merge pull request #1741 from odota/dependabot/npm_and_yarn/ace-build…
howardchung Aug 20, 2018
4e596a3
New translations en-US.json (Portuguese, Brazilian)
albertcui Aug 20, 2018
be80e9e
fix vision crash
howardchung Aug 21, 2018
18793a4
remove resetTableState
Argn0 Aug 22, 2018
08c4fe6
Merge pull request #1763 from odota/pages
howardchung Aug 22, 2018
afc9c9e
Bump styled-components from 3.4.2 to 3.4.4
dependabot-support Aug 22, 2018
20a117c
New translations en-US.json (Spanish)
albertcui Aug 22, 2018
b30ef00
New translations en-US.json (Spanish)
albertcui Aug 22, 2018
e225ca0
update hero tooltips
Argn0 Aug 22, 2018
1768c21
hero.localized_name
Argn0 Aug 22, 2018
abb4db6
Merge pull request #1765 from odota/dependabot/npm_and_yarn/styled-co…
howardchung Aug 23, 2018
0f1a5bf
Bump dotaconstants from 6.0.0 to 6.0.1
dependabot-support Aug 23, 2018
6821354
Merge pull request #1768 from odota/dependabot/npm_and_yarn/dotaconst…
howardchung Aug 23, 2018
b274cf8
ability tooltip
Argn0 Aug 23, 2018
67a90b3
Bump styled-components from 3.4.4 to 3.4.5
dependabot-support Aug 24, 2018
d6e4e7e
conditional render of tooltip
Argn0 Aug 24, 2018
befc029
if (!this.state.showTooltip)
Argn0 Aug 24, 2018
80f4490
behavior
Argn0 Aug 24, 2018
e5471e5
filter
Argn0 Aug 24, 2018
1a38e83
#bc7bfc pure
Argn0 Aug 24, 2018
a0b040b
text wrap
Argn0 Aug 24, 2018
fe42284
pos
Argn0 Aug 24, 2018
579a391
highlight numbers
Argn0 Aug 24, 2018
bb00b2e
fix crash
Argn0 Aug 24, 2018
ee0e3e9
fix crash
Argn0 Aug 24, 2018
95b5375
regex
Argn0 Aug 24, 2018
a127f26
{formatValues(ability.dmg)}
Argn0 Aug 24, 2018
8800205
talent tree
Argn0 Aug 25, 2018
9ae0b0c
gradient
Argn0 Aug 25, 2018
ec123f4
physical #7bb2fc
Argn0 Aug 25, 2018
a657511
letter-spacing
Argn0 Aug 25, 2018
839a047
regex
Argn0 Aug 26, 2018
676b0b1
Fixed strings prop not being passed to XPTooltip
flankstaek Aug 26, 2018
9215760
Merge pull request #1774 from flankstaek/master
howardchung Aug 27, 2018
32f2617
grimstroke
Argn0 Aug 27, 2018
0904279
Bump dotaconstants from 6.0.1 to 6.1.0
dependabot-support Aug 27, 2018
48c0aaf
fix wrapping hero name
Argn0 Aug 27, 2018
5357c1d
New translations en-US.json (Spanish)
albertcui Aug 27, 2018
7b2b4ca
New translations en-US.json (Spanish)
albertcui Aug 27, 2018
c3127e4
New translations en-US.json (Spanish)
albertcui Aug 27, 2018
2f991b3
Merge pull request #1767 from odota/herott
howardchung Aug 28, 2018
52f6fdb
Merge pull request #1777 from odota/dependabot/npm_and_yarn/dotaconst…
howardchung Aug 28, 2018
aa39fdd
Merge pull request #1775 from odota/grimstroke
howardchung Aug 28, 2018
283fb83
Merge pull request #1771 from odota/ability-tooltip
howardchung Aug 28, 2018
7269b03
New translations en-US.json (Russian)
albertcui Aug 28, 2018
0f5e23c
grimstroke attempt 2
Argn0 Aug 29, 2018
740659e
comm
Argn0 Aug 29, 2018
07c0fca
comm
Argn0 Aug 29, 2018
20f2ff9
fixes
Argn0 Aug 29, 2018
4614984
fix
Argn0 Aug 29, 2018
d21ee3b
Merge branch 'master' into grimstroke
Argn0 Aug 29, 2018
132570f
1
Argn0 Aug 29, 2018
de09289
3
Argn0 Aug 29, 2018
3ab2d77
Merge branch 'grimstroke' of https://github.com/odota/web into grimst…
Argn0 Aug 29, 2018
a86b73c
fixes
Argn0 Aug 29, 2018
e6b7768
more fixes
Argn0 Aug 29, 2018
b82e7dd
remove heroes
Argn0 Aug 29, 2018
227bf79
fix crosstable crash
Argn0 Aug 29, 2018
233ff70
Merge pull request #1779 from odota/grimstroke
howardchung Aug 30, 2018
ce63953
Bump dotaconstants from 6.1.0 to 6.1.1
dependabot-support Aug 30, 2018
18f4147
Merge pull request #1781 from odota/dependabot/npm_and_yarn/dotaconst…
howardchung Aug 30, 2018
552654d
grimstroke again
Argn0 Aug 30, 2018
e5a51d8
Merge pull request #1782 from odota/grimstroke
howardchung Aug 30, 2018
8bdb1a6
fix tooltips
Argn0 Aug 30, 2018
1e545d3
fix tooltip
Argn0 Aug 30, 2018
d513482
fix browser freeze
Argn0 Aug 30, 2018
e908a80
Merge pull request #1783 from odota/bugs
howardchung Aug 31, 2018
1e7e24b
Bump eslint from 5.4.0 to 5.5.0
dependabot-support Sep 1, 2018
619b992
graphs tooltip
Argn0 Sep 2, 2018
270cfed
remove index
Argn0 Sep 2, 2018
bc498e9
remove predictions
howardchung Sep 3, 2018
03e410b
Bump react-markdown from 3.4.1 to 3.5.0
dependabot-support Sep 3, 2018
eb763da
New translations en-US.json (Chinese Simplified)
albertcui Sep 4, 2018
06b076b
New translations en-US.json (Chinese Simplified)
albertcui Sep 4, 2018
5b1691e
Merge pull request #1787 from odota/graphs
howardchung Sep 5, 2018
8a32a08
New translations en-US.json (Romanian)
albertcui Sep 5, 2018
fd5477c
New translations en-US.json (Romanian)
albertcui Sep 5, 2018
bb94cdc
New translations en-US.json (Romanian)
albertcui Sep 5, 2018
a04e3a5
New translations en-US.json (Romanian)
albertcui Sep 5, 2018
0af7ef1
New translations en-US.json (Portuguese, Brazilian)
albertcui Sep 5, 2018
80908be
New translations en-US.json (Romanian)
albertcui Sep 5, 2018
85e9c32
New translations en-US.json (Portuguese, Brazilian)
albertcui Sep 5, 2018
bc71bf2
New translations en-US.json (Romanian)
albertcui Sep 5, 2018
4ad0a0a
New translations en-US.json (Romanian)
albertcui Sep 5, 2018
f4dfe11
New translations en-US.json (Romanian)
albertcui Sep 5, 2018
a1fce12
New translations en-US.json (Romanian)
albertcui Sep 5, 2018
a5f6e8a
New translations en-US.json (Romanian)
albertcui Sep 5, 2018
f929caf
New translations en-US.json (Romanian)
albertcui Sep 5, 2018
8204c48
New translations en-US.json (Romanian)
albertcui Sep 5, 2018
4c704cb
New translations en-US.json (Romanian)
albertcui Sep 5, 2018
4303e4a
New translations en-US.json (Romanian)
albertcui Sep 5, 2018
e821b20
New translations en-US.json (Romanian)
albertcui Sep 5, 2018
7f17d62
New translations en-US.json (Romanian)
albertcui Sep 5, 2018
dcd31c3
fix 404 state not clearing
Argn0 Sep 6, 2018
7a2f00b
New translations en-US.json (Portuguese, Brazilian)
albertcui Sep 6, 2018
d87ce8d
New translations en-US.json (Portuguese, Brazilian)
albertcui Sep 6, 2018
5fe06a7
New translations en-US.json (Portuguese, Brazilian)
albertcui Sep 6, 2018
1d0320b
Changes for fixing #1793.
anamritraj Sep 6, 2018
031986f
Add the comments back.
anamritraj Sep 6, 2018
9c26038
Merge pull request #1797 from anamritraj/master
howardchung Sep 7, 2018
807ecb0
Merge branch 'master' into l10n_master
howardchung Sep 7, 2018
e8b649f
Merge pull request #1670 from odota/l10n_master
howardchung Sep 7, 2018
0bc029c
Merge pull request #1795 from odota/404
howardchung Sep 7, 2018
6d74591
Merge pull request #1786 from odota/dependabot/npm_and_yarn/eslint-5.5.0
howardchung Sep 8, 2018
da0689c
fix turbo toggle tooltip
Argn0 Sep 11, 2018
e6cd3a0
Merge pull request #1803 from odota/fix-hover
howardchung Sep 11, 2018
89059f9
testcafe
Argn0 Sep 12, 2018
b64468c
waitforreact
Argn0 Sep 12, 2018
7f81f38
-c 2
Argn0 Sep 12, 2018
a2fc62c
waitForReact(180000)
Argn0 Sep 12, 2018
e1c3c93
http://localhost:5000
Argn0 Sep 12, 2018
dc2cd3c
npm install -g serve
Argn0 Sep 12, 2018
75b1603
npm install -g serve
Argn0 Sep 12, 2018
9fe7542
explorer
Argn0 Sep 12, 2018
3a4bf79
fix package lock
Argn0 Sep 12, 2018
f322a2c
Merge branch 'master' into tests
Argn0 Sep 12, 2018
03a78a5
Merge pull request #1804 from Argn0/tests
howardchung Sep 12, 2018
64af020
run on dev build
Argn0 Sep 12, 2018
88445b9
remove headless
Argn0 Sep 12, 2018
3ccc9cc
remove firefox
Argn0 Sep 12, 2018
a10e45e
30 sesconds
Argn0 Sep 12, 2018
7440d25
-c 2
Argn0 Sep 12, 2018
8feed3e
c 1
Argn0 Sep 12, 2018
bf6b663
remove install serve
Argn0 Sep 12, 2018
42c01c9
rename dummyFiles to cachedAjax
Argn0 Sep 13, 2018
ed34ee8
rename cachedAjax
Argn0 Sep 13, 2018
419880f
Merge pull request #1805 from Argn0/tests
howardchung Sep 13, 2018
c82ee85
Bump react-scripts from 1.1.4 to 1.1.5
dependabot-support Sep 13, 2018
1f31250
Bump react from 16.4.2 to 16.5.0
dependabot-support Sep 13, 2018
0f67b56
remove unused trailing arguments
morgvanny Sep 14, 2018
9593866
remove useless conditionals
morgvanny Sep 14, 2018
fa9a78b
clean up parentheses
morgvanny Sep 14, 2018
bb32c35
Update index.jsx
morgvanny Sep 14, 2018
0b3af46
Update format template to support a …rest of arguments instead of an …
gu3st Sep 15, 2018
598681a
Convert and consume existing translations to new format
gu3st Sep 16, 2018
be2fdb4
Exclude Title from templating.
gu3st Sep 16, 2018
f07bd68
Fix linting issues.
gu3st Sep 16, 2018
e788059
Remove Shrinkwrap and revert lock file changes
gu3st Sep 17, 2018
8fb224d
Update to use 0 indexed template keys
gu3st Sep 17, 2018
bfc9445
Update fromNow to use formatTemplateToString to maintain consistency.
gu3st Sep 17, 2018
2e59472
Update index.jsx
morgvanny Sep 17, 2018
f541ea9
Linting
gu3st Sep 17, 2018
4658570
Merge pull request #1810 from morgvanny/master
howardchung Sep 18, 2018
5f7d9ba
Update a few instances of formatTemplate to use formatTemplateToStrin…
gu3st Sep 19, 2018
78b172a
I really need to add a pre-commit hook that checks linting...
gu3st Sep 19, 2018
2e6b78e
Add tooltip functionality to tabs in TabBar
seanfagan Sep 20, 2018
371e832
Add tooltips to tabs in Records
seanfagan Sep 20, 2018
30dff92
Merge pull request #1811 from odota/arbitrary-position-template-strings
howardchung Sep 20, 2018
3c5e1e9
Simplify data-tip attribute
seanfagan Sep 20, 2018
73b4f47
Merge pull request #1814 from seanfagan/master
howardchung Sep 21, 2018
e2ab530
adjust tabbar size
howardchung Sep 22, 2018
d4c62fe
row hover
Argn0 Sep 22, 2018
f76cec5
formatting
Argn0 Sep 22, 2018
5eadf68
Merge pull request #1816 from odota/hover
howardchung Sep 22, 2018
69bb568
Merge pull request #1800 from odota/dependabot/npm_and_yarn/react-16.5.0
howardchung Sep 22, 2018
3769f42
Merge pull request #1772 from odota/dependabot/npm_and_yarn/styled-co…
howardchung Sep 22, 2018
68abf04
Merge pull request #1789 from odota/dependabot/npm_and_yarn/react-mar…
howardchung Sep 22, 2018
d60527a
Merge pull request #1769 from odota/dependabot/npm_and_yarn/react-scr…
howardchung Sep 22, 2018
371c41f
Bump eslint from 5.5.0 to 5.6.0
dependabot-support Sep 24, 2018
7679693
Merge pull request #1821 from odota/dependabot/npm_and_yarn/eslint-5.6.0
howardchung Sep 26, 2018
e614b1e
update dc
howardchung Sep 26, 2018
5170ec1
Revert "fix vision crash"
Argn0 Sep 26, 2018
f591862
added tooltips to explain building shorthand under objectives tab
mobyte0 Sep 26, 2018
ff536fb
Merge pull request #1827 from odota/revert-vision
howardchung Sep 27, 2018
becb0c5
update analyze
howardchung Sep 27, 2018
e17de9e
reverse changes to package-lock.json
mobyte0 Sep 27, 2018
6488100
Merge pull request #1829 from mobyte0/master
howardchung Sep 27, 2018
1ce4204
run testcafe on prod build
Argn0 Sep 28, 2018
9ab5c34
review
Argn0 Sep 29, 2018
3ff99d7
remove headless
Argn0 Sep 29, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
NODE_PATH=src
REACT_APP_API_HOST=https://api.opendota.com
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
build
testcafe
5 changes: 3 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ module.exports = {
'src/stories/**'
]
}
]
}
],
"react/sort-comp": [2]
},
};
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/Bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: 🐛 Bug Report
about: If something isn't working as expected 🤔.

---

**Current Behavior**
A clear and concise description of the behavior.

**Expected behavior/code**
A clear and concise description of what you expected to happen (or code).

**Console Output**
Please provide your browsers console log if possible. Most browsers will open the console via F12.

```
please paste console output in here
```

**Environment**
- Browser Version: [e.g. Chrome 64.0, Firefox 57, Edge 17]
- OS: [e.g. OSX 10.13.4, Windows 10 or Linux Distribution]

**Possible Solution**
<!--- Only if you have suggestions on a fix/reason for the bug -->

**Additional context/Screenshots**
Add any other context about the problem here. If applicable, add screenshots to help explain.
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/Feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: 🚀 Feature Request
about: I have a suggestion (and might want to implement 🙂)!

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I have an issue when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen. Add any considered drawbacks.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Teachability, Documentation, Adoption, Migration Strategy**
If you can, explain how users will be able to use this and possibly write out a version the docs.
Maybe a screenshot or design?
13 changes: 13 additions & 0 deletions .github/ISSUE_TEMPLATE/Support.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: 🤗 Support Question
about: If you have a question 💬, please check out our Discord!

---

**Explain your question as detailed as possible**

I need help with...

---

If you have a support request or question please also check our Discord Server: https://discord.gg/opendota
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ npm-debug.log
build
.DS_STORE
*.swp
analyze.html
.env
yarn.lock
20 changes: 19 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,31 @@
dist: trusty
sudo: required
language: node_js
node_js:
- 'node'
- '10'
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable fluxbox
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3
- fluxbox >/dev/null 2>&1 &
before_install:
- stty cols 80
notifications:
email:
- howardc93@gmail.com
- aqc2109@columbia.edu
- mjr127@case.edu
script:
- npm run lintnofix
- npm run build
- npm install -g serve
- npm run testcafe-travis
# blocklist
branches:
except:
Expand Down
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# web

[![Greenkeeper badge](https://badges.greenkeeper.io/odota/web.svg)](https://greenkeeper.io/)
[![Help Contribute to Open Source](https://www.codetriage.com/odota/web/badges/users.svg)](https://www.codetriage.com/odota/web)

OpenDota Web UI: A web interface for viewing Dota 2 data. This utilizes the [OpenDota API](https://docs.opendota.com), which is also an [open source project](https://github.com/odota/core).
Expand All @@ -13,6 +12,7 @@ Quickstart
* Visit port 3000 on your development machine.
* Make some changes
* `npm run lint` to check your code for linting errors
* `npm test` to check all app routes for uncaught JavaScript errors
* Submit a pull request. Wait for review and merge.
* Congratulations! You're a contributor.

Expand Down
1,808 changes: 1,808 additions & 0 deletions analyze.html

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions dev/migrateLangFormat.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

const fs = require('fs');
const path = require('path');

const langsPath = path.resolve(__dirname, '../src/lang');
const oldLangsPath = path.resolve(__dirname, '../src/lang/old');
const excludedLangKeys = ['title_template'];
const langs = fs.readdirSync(langsPath).filter(dir => ['.', '..', 'old', 'index.js'].includes(dir) === false);

if (!fs.existsSync(oldLangsPath)) {
fs.mkdirSync(oldLangsPath);
}

langs.forEach((langFile) => {
// Make a backup of the old file.
if (!fs.existsSync(path.resolve(oldLangsPath, langFile))) {
fs.copyFileSync(path.resolve(langsPath, langFile), path.resolve(oldLangsPath, langFile));
}


const lang = JSON.parse(fs.readFileSync(path.resolve(langsPath, langFile)));
const pattern = /(%[^\s^%]+)/g;
const updatedLang = {};
Object.entries(lang).map(([langKey, string]) => {
let count = 0;
const replaced = string.split(pattern).map((split) => {
if (excludedLangKeys.includes(langKey) === false && split.match(pattern)) {
// eslint-disable-next-line no-plusplus
return `{${count++}}`;
}

return split;
});
updatedLang[langKey] = replaced.join('');
return updatedLang[langKey];
});

fs.writeFileSync(path.resolve(langsPath, langFile), JSON.stringify(updatedLang, undefined, ' '));
});

2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
build:
context: .
image: odota/web
entrypoint: "./scripts/docker.sh"
entrypoint: "npm start:install"
ports:
- "8080:8080"
volumes:
Expand Down
Loading