Skip to content

Commit accb123

Browse files
authored
Merge pull request #76 from medyo/develop
v 1.11.1
2 parents cb69a50 + 60abe18 commit accb123

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

src/App.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,12 @@ Github languages colors
530530
.gh-language-android::before {
531531
background-color: #30D880;
532532
}
533+
.gh-language-flutter::before {
534+
background-color: #67B1F1;
535+
}
536+
.gh-language-dart::before {
537+
background-color: #045797;
538+
}
533539

534540
.headerSelect {
535541
align-self: center;

src/cards/ReposCard.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ function ReposCard({ analyticsTag, icon, withAds }) {
150150
t => !t.githubValues ? false : githubApi.getTrending(t.githubValues[0], since)
151151
)
152152
let values = await Promise.all(promises)
153+
values = values.filter(Boolean)
153154
const nbrTags = values.length
154155
let minLength = Math.min(...values.map(v => v.length))
155156
const data = []

src/utils/Analytics.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ const trackReposDateRangeChange = (dateRange) => {
6969
trackEvent('Repos', 'ChangeDateRange', dateRange)
7070
}
7171

72+
const getResolution = () => {
73+
const realWidth = window.screen.width
74+
const realHeight = window.screen.height
75+
return `${realWidth}x${realHeight}`
76+
}
77+
7278
const trackEvent = (category, action, label) => {
7379
if (!process.env.REACT_APP_ANALYTICS_ID) {
7480
console.log('Missing analytics ID')
@@ -93,6 +99,8 @@ const trackEvent = (category, action, label) => {
9399
['ua', navigator.userAgent],
94100
])
95101

102+
payload.append('sr', getResolution())
103+
96104
if (label) {
97105
payload.append('el', label.capitalize())
98106
}

0 commit comments

Comments
 (0)