{ "@context":"https://www.w3.org/ns/activitystreams", "type":"Collection", "id":"https://social.jayvii.de/objects/QBDVhhhtGXk/thread", "items":[ { "@context":[ "https://www.w3.org/ns/activitystreams", {"Hashtag":"as:Hashtag"} ], "published":"2024-06-06T20:24:36.339Z", "attributedTo":"https://social.jayvii.de/actors/jayvii", "replies":"https://social.jayvii.de/objects/QBDVhhhtGXk/replies", "to":["https://www.w3.org/ns/activitystreams#Public"], "cc":["https://social.jayvii.de/actors/jayvii/followers"], "content":"

Wrote a simple #bash script that generates a #GitHub-style activity graph for my #stagit server under https://src.jayvii.de

I think it worked out quite nicely. Works quite well both in bright and dark themes :)

In case you want to try it or have suggestions how to improve it, please let me know: https://src.jayvii.de/pub/git_activity

Image description 1: A Screenshot of my stagit index page that shows names, descriptions and the timestamp of the last commit for various git-repositories. On the top of it is a very simple box-graph that shows coding-activity on monthly level by color coding.
Image description 2: The same content as in the first image, but the site uses a darker theme now. The boxes are reversed in colour and clearly visible, just like before.
Image description 3: A Screenshot just of the Activity graph itself. The mouse hovers over one of the more colourful boxes of the graph. Next to it appears a little tooltip popup that read: \"Apr, 2024: 89 commits\".
", "mediaType":"text/html", "attachment":[{"url":"https://social.jayvii.de/uploads/7ec3216c/f38e/4483/1.png","mediaType":"image/png"},{"url":"https://social.jayvii.de/uploads/b40b35db/2404/472a/1.png","mediaType":"image/png"},{"url":"https://social.jayvii.de/uploads/660ba335/8d40/4da0/1.png","mediaType":"image/png"}], "tag":[ {"type":"Hashtag","name":"#bash","href":"https://social.jayvii.de/tags/bash"}, {"type":"Hashtag","name":"#GitHub-style","href":"https://social.jayvii.de/tags/GitHub-style"}, {"type":"Hashtag","name":"#stagit","href":"https://social.jayvii.de/tags/stagit"} ], "type":"Note", "id":"https://social.jayvii.de/objects/QBDVhhhtGXk" } , { "@context":[ "https://www.w3.org/ns/activitystreams", {"Hashtag":"as:Hashtag"} ], "published":"2024-06-06T20:30:08.726Z", "attributedTo":"https://social.jayvii.de/actors/jayvii", "inReplyTo":"https://social.jayvii.de/objects/QBDVhhhtGXk", "replies":"https://social.jayvii.de/objects/X-qXlezFjPw/replies", "to":["https://social.jayvii.de/actors/jayvii","https://www.w3.org/ns/activitystreams#Public"], "cc":["https://social.jayvii.de/actors/jayvii/followers"], "content":"

Oh, before I forget: It even works quite nicely on mobile, as the boxes are actually just a Unicode glyph of a black box \"U+25A0\". So normal text-wrapping works just fine.

Image description: A screenshot of the stagit-index page in mobile view. the activity graph just wraps into multiple lines.
", "mediaType":"text/html", "attachment":[{"url":"https://social.jayvii.de/uploads/565be377/d469/4cd3/1.png","mediaType":"image/png"}], "type":"Note", "id":"https://social.jayvii.de/objects/X-qXlezFjPw" } , { "@context":[ "https://www.w3.org/ns/activitystreams", {"Hashtag":"as:Hashtag"} ], "published":"2024-06-08T11:59:12.403Z", "attributedTo":"https://social.jayvii.de/actors/jayvii", "inReplyTo":"https://social.jayvii.de/objects/X-qXlezFjPw", "replies":"https://social.jayvii.de/objects/G3I9vqNHxeA/replies", "to":["https://social.jayvii.de/actors/jayvii","https://www.w3.org/ns/activitystreams#Public"], "cc":["https://social.jayvii.de/actors/jayvii/followers"], "content":"

Also added some tiny seperator between the individual years with a simple CSS fuzzy match:

/* Add year separators between points */\r\nspan[id*=\"-12\"].activitypoint:after {\r\n    content:\"\\007C\";\r\n}


The result is minor, but I think it still helps!

Image description: Screenshot of the activity bar on my stagit instance. Between the monthly activity indicators of two years there is a barely visible vertical line.
", "mediaType":"text/html", "attachment":[{"url":"https://social.jayvii.de/uploads/548ff550/fbf3/4327/1.png","mediaType":"image/png"}], "type":"Note", "id":"https://social.jayvii.de/objects/G3I9vqNHxeA" } ] }