fix(config): remove old developer configs

This commit is contained in:
Prad Nukala
2026-06-28 14:17:42 -04:00
parent c5920fec63
commit 78ed65fd76
34 changed files with 1655 additions and 545 deletions
+19
View File
@@ -0,0 +1,19 @@
# GitHub contribution graph (served by the glance-github-graph compose service).
# ponytail: must use the service name, not localhost, from inside the container.
- type: extension
title: Active Projects
url: http://glance-github-graph:8080/graph/prdlk
allow-potentially-dangerous-html: true
parameters:
background-color: "#1d2025" # cell background
primary-color: "#f3afaf" # cell foreground
svg-height: 150 # height for graph svg
show-months: true # show months on the graph
show-weekdays: true # show weekdays on the graph
font-size: 9 # size of weekdays & months text on graph
# if true, it will transition the hue from background
# to primary color per the number of commits.
# otherwise it will just use the background hue for
# 0 commits and the foreground hue for all others
transition-hue: false
+76
View File
@@ -0,0 +1,76 @@
- type: custom-api
title: Personal Events
cache: 15m
url: http://glances-ical-api:8076/events
parameters:
url: https://calendar.google.com/calendar/ical/prnk28%40gmail.com/public/basic.ics
limit: 5
template: |
{{ $events := .JSON.Array "events" }}
{{ $count := len $events }}
{{ $limit := 3 }} <!-- how many upcoming to show before collapse -->
{{ if eq $count 0 }}
<div style="padding:8px 10px; border-radius:10px; background:var(--surface-2);">
No entries found.
</div>
{{ end }}
<!-- 1) Ongoing first (never collapsible) -->
<ul class="list list-gap-10">
{{ range $i, $e := $events }}
{{ $ongoing := $e.Bool "ongoing" }}
{{ if $ongoing }}
{{ $start := $e.String "start" | parseTime "rfc3339" }}
{{ $end := $e.String "end" | parseTime "rfc3339" }}
{{ $name := $e.String "name" }}
{{ $url := $e.String "url" }}
<li>
<div class="flex items-center justify-between gap-10">
<!-- Left: name (highlight) + absolute date -->
<div class="min-width-0">
{{ if $url }}
<a class="size-h3 color-highlight block text-truncate" href="{{ $url }}" target="_blank" rel="noreferrer" title="{{ $name }}">{{ $name }}</a>
{{ else }}
<span class="size-h3 color-highlight block text-truncate" title="{{ $name }}">{{ $name }}</span>
{{ end }}
<div style="font-size:.85em;">{{ $start | formatTime "Mon, 02 Jan 2006" }}</div>
</div>
<!-- Right: relative time until END -->
<div class="size-h3 color-primary shrink-0" style="white-space:nowrap;">
ends <span {{ $end | toRelativeTime }}></span>
</div>
</div>
</li>
{{ end }}
{{ end }}
</ul>
<!-- 2) Upcoming, collapsible after $limit -->
{{ $shown := 0 }}
<ul class="list list-gap-10 collapsible-container" data-collapse-after="{{ $limit }}">
{{ range $i, $e := $events }}
{{ $ongoing := $e.Bool "ongoing" }}
{{ if not $ongoing }}
{{ $start := $e.String "start" | parseTime "rfc3339" }}
{{ $name := $e.String "name" }}
{{ $url := $e.String "url" }}
<li {{ if ge $shown $limit }}class="collapsible-item"{{ end }}>
<div class="flex items-center justify-between gap-10">
<!-- Left: name (highlight) + absolute date -->
<div class="min-width-0">
{{ if $url }}
<a class="size-h3 color-highlight block text-truncate" href="{{ $url }}" target="_blank" rel="noreferrer" title="{{ $name }}">{{ $name }}</a>
{{ else }}
<span class="size-h3 color-highlight block text-truncate" title="{{ $name }}">{{ $name }}</span>
{{ end }}
<div style="font-size:.85em;">{{ $start | formatTime "Mon, 02 Jan 2006" }}</div>
</div>
<!-- Right: relative time until START -->
<div class="size-h3 color-primary shrink-0" style="white-space:nowrap;" {{ $start | toRelativeTime }}></div>
</div>
</li>
{{ $shown = add $shown 1 }}
{{ end }}
{{ end }}
</ul>
+76
View File
@@ -0,0 +1,76 @@
- type: custom-api
title: Work Schedule
cache: 15m
url: http://glances-ical-api:8076/events
parameters:
url: https://calendar.google.com/calendar/ical/prad%40sonr.io/public/basic.ics
limit: 5
template: |
{{ $events := .JSON.Array "events" }}
{{ $count := len $events }}
{{ $limit := 3 }} <!-- how many upcoming to show before collapse -->
{{ if eq $count 0 }}
<div style="padding:8px 10px; border-radius:10px; background:var(--surface-2);">
No entries found.
</div>
{{ end }}
<!-- 1) Ongoing first (never collapsible) -->
<ul class="list list-gap-10">
{{ range $i, $e := $events }}
{{ $ongoing := $e.Bool "ongoing" }}
{{ if $ongoing }}
{{ $start := $e.String "start" | parseTime "rfc3339" }}
{{ $end := $e.String "end" | parseTime "rfc3339" }}
{{ $name := $e.String "name" }}
{{ $url := $e.String "url" }}
<li>
<div class="flex items-center justify-between gap-10">
<!-- Left: name (highlight) + absolute date -->
<div class="min-width-0">
{{ if $url }}
<a class="size-h3 color-highlight block text-truncate" href="{{ $url }}" target="_blank" rel="noreferrer" title="{{ $name }}">{{ $name }}</a>
{{ else }}
<span class="size-h3 color-highlight block text-truncate" title="{{ $name }}">{{ $name }}</span>
{{ end }}
<div style="font-size:.85em;">{{ $start | formatTime "Mon, 02 Jan 2006" }}</div>
</div>
<!-- Right: relative time until END -->
<div class="size-h3 color-primary shrink-0" style="white-space:nowrap;">
ends <span {{ $end | toRelativeTime }}></span>
</div>
</div>
</li>
{{ end }}
{{ end }}
</ul>
<!-- 2) Upcoming, collapsible after $limit -->
{{ $shown := 0 }}
<ul class="list list-gap-10 collapsible-container" data-collapse-after="{{ $limit }}">
{{ range $i, $e := $events }}
{{ $ongoing := $e.Bool "ongoing" }}
{{ if not $ongoing }}
{{ $start := $e.String "start" | parseTime "rfc3339" }}
{{ $name := $e.String "name" }}
{{ $url := $e.String "url" }}
<li {{ if ge $shown $limit }}class="collapsible-item"{{ end }}>
<div class="flex items-center justify-between gap-10">
<!-- Left: name (highlight) + absolute date -->
<div class="min-width-0">
{{ if $url }}
<a class="size-h3 color-highlight block text-truncate" href="{{ $url }}" target="_blank" rel="noreferrer" title="{{ $name }}">{{ $name }}</a>
{{ else }}
<span class="size-h3 color-highlight block text-truncate" title="{{ $name }}">{{ $name }}</span>
{{ end }}
<div style="font-size:.85em;">{{ $start | formatTime "Mon, 02 Jan 2006" }}</div>
</div>
<!-- Right: relative time until START -->
<div class="size-h3 color-primary shrink-0" style="white-space:nowrap;" {{ $start | toRelativeTime }}></div>
</div>
</li>
{{ $shown = add $shown 1 }}
{{ end }}
{{ end }}
</ul>