mirror of
https://github.com/prdlk/glance.git
synced 2026-08-03 01:41:46 +00:00
fix(config): remove old developer configs
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
# Schedule left rail — the day at a glance
|
||||
- size: small
|
||||
widgets:
|
||||
- type: calendar
|
||||
first-day-of-week: sunday
|
||||
- type: weather
|
||||
location: Ashburn, Virginia, United States
|
||||
units: imperial
|
||||
hour-format: 12h
|
||||
- type: clock
|
||||
hour-format: 12h
|
||||
timezones:
|
||||
- timezone: America/Los_Angeles
|
||||
label: Los Angeles
|
||||
- timezone: Asia/Singapore
|
||||
label: Singapore
|
||||
- timezone: Europe/London
|
||||
label: London
|
||||
@@ -0,0 +1,8 @@
|
||||
# Schedule main — agenda side by side, then active project activity
|
||||
- size: full
|
||||
widgets:
|
||||
- type: split-column
|
||||
widgets:
|
||||
- $include: ./widgets/ical-work.yml
|
||||
- $include: ./widgets/ical-personal.yml
|
||||
- $include: ./widgets/graph.yml
|
||||
@@ -0,0 +1,9 @@
|
||||
# Schedule right rail — running task lists
|
||||
- size: small
|
||||
widgets:
|
||||
- type: to-do
|
||||
title: Today
|
||||
id: today
|
||||
- type: to-do
|
||||
title: Projects
|
||||
id: projects
|
||||
@@ -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
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user