Bloggify / github-calendar

:bar_chart: Embed your GitHub calendar everywhere.
https://bloggify.github.io/github-calendar/example/
MIT License
1.22k stars 213 forks source link

Github calendar not working #120

Closed Ariel-MN closed 3 years ago

Ariel-MN commented 3 years ago

Github calendar has unexpectedly stopped working since yesterday, look at montesariel.com. How much to fix it? Can you add the option to download it as a plugin? I've been using the URLs provided in your readme file and they still active.

IonicaBizau commented 3 years ago

I think GitHub changed the way they render the colors:

image

I don't have time to work on this right now, but contributions are more than welcome! ❇️

Ariel-MN commented 3 years ago

Not only that, number of contributions and streaks doesn't show either, I believe the hole think is broken.

arjunskumar commented 3 years ago

any solutions?

perpetualCreations commented 3 years ago

Weird, the API returns the total number of contributions, however nothing on streaks. Did it always work like that? Also, how did colors get parsed previously?

Full disclosure, I have no qualifications in JS.

Doohwancho commented 3 years ago

maybe it has something to do with halloween updates. github used other module to change color from green to pumkin for halloween day. if my guess is correct, they would return it to original state when halloween is over.

Ariel-MN commented 3 years ago

@Doohwancho if it's that, it would be nice to implement a solution for prevent this scenario each year, it's ugly to have things broken on your website and I like this tool. It's a shame that I don't have the time for this right now. I would expect the GitHub team to be more consistent with their code to avoid these kinds of issues.

imSrbh commented 3 years ago

maybe it has something to do with halloween updates. github used other module to change color from green to pumkin for halloween day. if my guess is correct, they would return it to original state when halloween is over.

weird..Yeah It's just because of Halloween update

perpetualCreations commented 3 years ago

Glad to see it isn't anything serious though. Best of luck to any JS dev willing to implement a fix to prevent this from happening next year.

IonicaBizau commented 3 years ago

Just a quick update: there are two things we have to fix here:

Cipher-Coder commented 3 years ago

Adding the CSS Vars to the stylesheet will get the days to render. Something like:

:root {
  --color-calendar-graph-day-bg: #dddbdb;
  --color-calendar-graph-day-L1-bg: #39dd34;
  --color-calendar-graph-day-L2-bg: #45a045;
  --color-calendar-graph-day-L3-bg: #047526;
  --color-calendar-graph-day-L4-bg: #0a4208;
}

However I am still looking at the streak and total counts.

IonicaBizau commented 3 years ago

I fixed the parser in https://github.com/IonicaBizau/github-calendar-parser/pull/17.

I am working on this.

lopezdp commented 3 years ago

@IonicaBizau thank you!

Ahabibullah commented 1 year ago

there is a workaround @yeuk0 mention it issue #620