File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 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>
You can’t perform that action at this time.
0 commit comments