Skip to content

Commit 73f2bbe

Browse files
committed
update
1 parent ccf4921 commit 73f2bbe

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
- type: custom-api
2+
title: GitHub Repositories
3+
url: https://api.github.com/user/repos
4+
cache: 30m
5+
parameters:
6+
affiliation: owner
7+
sort: updated
8+
visibility: all
9+
headers:
10+
Authorization: Bearer ${Github_Personal_Access_Token}
11+
Accept: application/vnd.github.v3+json
12+
User-Agent: Glance-Dashboard
13+
template: |
14+
<div class="github-repos">
15+
<ul class="list list-gap-14 collapsible-container" data-collapse-after="5">
16+
{{ range .JSON.Array "" }}
17+
<li>
18+
<a class="size-h3 color-primary" href="{{ .String "html_url" }}">{{ .String "full_name" }}</a>
19+
<h3><a href="" target="_blank"></a></h3>
20+
<p>{{ .String "description" }}</p>
21+
<ul class="list-horizontal-text device-info">
22+
<li data-popover-type="html"><div data-popover-html="">Last Update</div>{{ formatTime "DateOnly" ( parseTime "RFC3339" (.String "updated_at") ) }}</li>
23+
<li data-popover-type="html"><div data-popover-html="">Visibility</div>{{ .String "visibility" }}</li>
24+
<li data-popover-type="html"><div data-popover-html="">Stars</div>{{ .Int "stargazers_count" }}✩</li>
25+
{{ if .String "language" }}
26+
<li data-popover-type="html"><div data-popover-html="">Language</div>{{ .String "language" }}</li>
27+
{{ end }}
28+
</ul>
29+
</li>
30+
{{ end }}
31+
</ul>
32+
</div>

0 commit comments

Comments
 (0)