mirror of
https://github.com/prdlk/glance.git
synced 2026-08-02 17:31:40 +00:00
chore(config): add initial config files and docker compose setup
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
- type: split-column
|
||||
max-columns: 5
|
||||
widgets:
|
||||
- type: custom-api
|
||||
title: Secured Financing Rate
|
||||
cache: 12h
|
||||
url: https://api.stlouisfed.org/fred/series/observations?series_id=SOFR&api_key=46fd446049e6ad0cbd6e019584fe36bf&file_type=json&sort_order=desc&limit=2
|
||||
template: |
|
||||
{{ $latest := .JSON.Float "observations.0.value" }}
|
||||
{{ $previous := .JSON.Float "observations.1.value" }}
|
||||
{{ $lastObserve := .JSON.String "observations.0.date" }}
|
||||
{{ $change := sub $latest $previous }}
|
||||
<div class="flex justify-between items-center gap-15">
|
||||
<div class="min-width-0">
|
||||
<a class="size-h3 block color-highlight" href="https://fred.stlouisfed.org/series/MORTGAGE30US" target="_blank" rel="noreferrer">
|
||||
{{ .JSON.String "observations.0.value" }}%
|
||||
</a>
|
||||
<div class="text-truncate">St. Louis Federal Reserve</div>
|
||||
</div>
|
||||
<div class="shrink-0">
|
||||
<div class="size-h3 text-right {{ if lt $change 0.0 }}color-positive{{ else if gt $change 0.0 }}color-negative{{ end }}">
|
||||
{{ printf "%+.2f" $change }}%
|
||||
</div>
|
||||
<div class="text-right" title="Last change: {{ $lastObserve }}" {{ $lastObserve | parseRelativeTime "DateOnly" }}>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
- type: custom-api
|
||||
title: Federal Funds Rate
|
||||
cache: 12h
|
||||
url: https://api.stlouisfed.org/fred/series/observations?series_id=FEDFUNDS&api_key=46fd446049e6ad0cbd6e019584fe36bf&file_type=json&sort_order=desc&limit=2
|
||||
template: |
|
||||
{{ $latest := .JSON.Float "observations.0.value" }}
|
||||
{{ $previous := .JSON.Float "observations.1.value" }}
|
||||
{{ $lastObserve := .JSON.String "observations.0.date" }}
|
||||
{{ $change := sub $latest $previous }}
|
||||
<div class="flex justify-between items-center gap-15">
|
||||
<div class="min-width-0">
|
||||
<a class="size-h3 block color-highlight" href="https://fred.stlouisfed.org/series/MORTGAGE30US" target="_blank" rel="noreferrer">
|
||||
{{ .JSON.String "observations.0.value" }}%
|
||||
</a>
|
||||
<div class="text-truncate">St. Louis Federal Reserve</div>
|
||||
</div>
|
||||
<div class="shrink-0">
|
||||
<div class="size-h3 text-right {{ if lt $change 0.0 }}color-positive{{ else if gt $change 0.0 }}color-negative{{ end }}">
|
||||
{{ printf "%+.2f" $change }}%
|
||||
</div>
|
||||
<div class="text-right" title="Last change: {{ $lastObserve }}" {{ $lastObserve | parseRelativeTime "DateOnly" }}>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
- type: custom-api
|
||||
title: Real GDP
|
||||
cache: 12h
|
||||
url: https://api.stlouisfed.org/fred/series/observations?series_id=A191RL1Q225SBEA&api_key=46fd446049e6ad0cbd6e019584fe36bf&file_type=json&sort_order=desc&limit=2
|
||||
template: |
|
||||
{{ $latest := .JSON.Float "observations.0.value" }}
|
||||
{{ $previous := .JSON.Float "observations.1.value" }}
|
||||
{{ $lastObserve := .JSON.String "observations.0.date" }}
|
||||
{{ $change := sub $latest $previous }}
|
||||
<div class="flex justify-between items-center gap-15">
|
||||
<div class="min-width-0">
|
||||
<a class="size-h3 block color-highlight" href="https://fred.stlouisfed.org/series/MORTGAGE30US" target="_blank" rel="noreferrer">
|
||||
{{ .JSON.String "observations.0.value" }}%
|
||||
</a>
|
||||
<div class="text-truncate">St. Louis Federal Reserve</div>
|
||||
</div>
|
||||
<div class="shrink-0">
|
||||
<div class="size-h3 text-right {{ if lt $change 0.0 }}color-positive{{ else if gt $change 0.0 }}color-negative{{ end }}">
|
||||
{{ printf "%+.2f" $change }}%
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,94 @@
|
||||
- type: group
|
||||
widgets:
|
||||
# Podcasts & Commentary
|
||||
- type: videos
|
||||
style: grid-cards
|
||||
collapse-after-rows: 2
|
||||
title: Pop-Culture
|
||||
channels:
|
||||
- UCzQUP1qoWDoEbmsQxvdjxgQ # PowerfulJRE
|
||||
- UCJIfeSCssxSC_Dhc5s7woww # Lex Clips
|
||||
- UC5PstSsGrRwj2o6asQpC4Rg # Flagrant 2
|
||||
- UCKrpnfpTwncQ050VFXcVkuQ # Network State Podcast
|
||||
- UC7oPkqeHTwuOZ5CZ-R9f-6w # Triggernometry
|
||||
- UCIHdDJ0tjn_3j-FS7s_X1kQ # Valuetainment
|
||||
|
||||
# Programming & Tech
|
||||
- type: videos
|
||||
style: grid-cards
|
||||
collapse-after-rows: 2
|
||||
title: Programming
|
||||
channels:
|
||||
- UCUyeluBRhGPCW4rPe_UvBZQ # ThePrimeTime
|
||||
- UCjSEJkpGbcZhvo0lr-44X_w # TechHut
|
||||
- UCXuqSBlHAE6Xw-yeJA0Tunw # Linus Tech Tips
|
||||
- UCs6KfncB4OV6Vug4o_bzijg # Techlore
|
||||
- UCTwxaBjziKfy6y_uWu30orAby # BugBytes
|
||||
- UCYeiozh-4QwuC1sjgCmB92w # DevOps Toolbox
|
||||
- UCsBjURrPoezykLs9EqgamOA # Angular Firebase
|
||||
- UC-mTIBh__DzAqW495JHXy5A # The Coding Gopher
|
||||
- UC2WHjPDvbE6O328n17ZGcfg # ForrestKnight
|
||||
- UCsUalyRg43M8D60mtHe6YcAD # Honeypot
|
||||
- UCgfe2ooZD3VJPB6aJAnuQng # cloud
|
||||
- UCdjsUXJ3QawK4O5L1kqqsew # IPFS
|
||||
- UC3Wn3dABlgESm8Bzn8Vamgg # Sideprojects
|
||||
- UCtMVHI3AJD4Qk4hcbZnI9ZQ # SomeOrdinaryGamers
|
||||
- UCNJ1Ymd5yFuUPtn21xtRbbw # AI Explained
|
||||
- UCutCcajxhR33k9UR-DdLsAQ # Systems Innovation
|
||||
|
||||
# Startups & Business
|
||||
- type: videos
|
||||
style: grid-cards
|
||||
collapse-after-rows: 2
|
||||
title: Startups
|
||||
channels:
|
||||
- UCcefcZRL2oaA_uBNeo5UOWg # Y Combinator
|
||||
- UCllx7jOjBL794FK67jtb5Og # Dalton + Michael
|
||||
- UCxIJaCMEptJjxmmQgGFsnCg # How to Start a Startup
|
||||
- UCQrZfl1FeCN9c71yjOzWVRw # Startup Archive
|
||||
- UCtieZ1nS_tpjGEama6Kjxcg # Steve Jobs Archive
|
||||
- UCm_WkN0wg49-eG4SymAQ_4g # Harvard Innovation Labs
|
||||
- UCSGc7c1yKxo-Uhz5_oivrfg # The Startup Club by Slidebean
|
||||
- UCGq-a57w-aPwyi3pW7XLiHw # The Diary Of A CEO
|
||||
|
||||
# AI & Futurism
|
||||
- type: videos
|
||||
style: grid-cards
|
||||
collapse-after-rows: 2
|
||||
title: Futurism
|
||||
channels:
|
||||
- UCawZsQWqfGSbCI5yjkdVkTA # Matthew Berman
|
||||
- UCZFipeZtQM5CKUjx6grh54g # Isaac Arthur
|
||||
- UCR9sFzaG9Ia_kXJhfxtFMB # melodysheep
|
||||
- UCSeuZvDGosq1zC6NqgqGo-Q # merlin
|
||||
# Finance
|
||||
- type: videos
|
||||
style: grid-cards
|
||||
collapse-after-rows: 2
|
||||
title: Finance
|
||||
channels:
|
||||
- UCAeAB8ABXGoGMbXuYPmiu2A # The Swedish Investor
|
||||
- UCvSXMi2LebwJEM1s4bz5IBA # New Money
|
||||
- UCV6KDgJskWaEckne5aPA0aQ # Graham Stephan
|
||||
- UCAzhpt9DmG6PnHXjmJTvRGQ # Federal Reserve
|
||||
|
||||
|
||||
# Science, History & Education
|
||||
- type: videos
|
||||
style: grid-cards
|
||||
collapse-after-rows: 2
|
||||
title: Education
|
||||
channels:
|
||||
- UCHnyfMqiRRG1u-2MsSQLbXA # Veritasium
|
||||
- UCsXVk37bltHxD1rDPwtNM8QL # Kurzgesagt – In a Nutshell
|
||||
- UCxqAWLTk1CmBvZFPzeZMd9A # Domain of Science
|
||||
- UCR2uRTQ53V_egXKFflMMaaw # Artem Kirsanov
|
||||
- UCeUJFQ0D9qs6aVNyUt9fkeQ # The Armchair Historian
|
||||
- UC5Dw9TFdbPJoTDMSiJdIQT # Whatifalthist
|
||||
- UC0NCSdGglnmdWg-qHALhu1w # History102
|
||||
- UCpCSAcbqs-sjEVfk_hMfY9w # MajorPrep
|
||||
- UCmdugCMpC7BawYGwkRs5drQ # PhiloNautica
|
||||
- UC4gHARRmw40kcLZgINlTK_g # Religion Camp
|
||||
- UCPPrhcXtGR2aMoxrPJRKPLg # Para Bellum
|
||||
- UCQUnqaW8Q33siyLYhisN7HQ # Antidote
|
||||
- UCXzw-OdotBUcNA9yhuYQBw # Awesome
|
||||
Reference in New Issue
Block a user