Skip to content

Commit

Permalink
Add glance (#2890)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anyexyz authored Jan 6, 2025
1 parent 64b27dd commit cde2f89
Show file tree
Hide file tree
Showing 6 changed files with 121 additions and 0 deletions.
10 changes: 10 additions & 0 deletions apps/glance/0.6.4/data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
additionalProperties:
formFields:
- default: 8080
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: WebUI Port
labelZh: 网页端口
required: true
rule: paramPort
type: number
65 changes: 65 additions & 0 deletions apps/glance/0.6.4/data/glance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
pages:
- name: Home
columns:
- size: small
widgets:
- type: calendar

- type: rss
limit: 10
collapse-after: 3
cache: 3h
feeds:
- url: https://ciechanow.ski/atom.xml
- url: https://www.joshwcomeau.com/rss.xml
title: Josh Comeau
- url: https://samwho.dev/rss.xml
- url: https://awesomekling.github.io/feed.xml
- url: https://ishadeed.com/feed.xml
title: Ahmad Shadeed

- type: twitch-channels
channels:
- theprimeagen
- cohhcarnage
- christitustech
- blurbs
- asmongold
- jembawls

- size: full
widgets:
- type: hacker-news

- type: videos
channels:
- UCR-DXc1voovS8nhAvccRZhg # Jeff Geerling
- UCv6J_jJa8GJqFwQNgNrMuww # ServeTheHome
- UCOk-gHyjcWZNj3Br4oxwh0A # Techno Tim

- type: reddit
subreddit: selfhosted

- size: small
widgets:
- type: weather
location: London, United Kingdom

- type: markets
markets:
- symbol: SPY
name: S&P 500
- symbol: BTC-USD
name: Bitcoin
- symbol: NVDA
name: NVIDIA
- symbol: AAPL
name: Apple
- symbol: MSFT
name: Microsoft
- symbol: GOOGL
name: Google
- symbol: AMD
name: AMD
- symbol: RDDT
name: Reddit
18 changes: 18 additions & 0 deletions apps/glance/0.6.4/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
services:
glance:
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:8080"
volumes:
- ./data/glance.yml:/app/glance.yml
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
image: glanceapp/glance:v0.6.4
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true
15 changes: 15 additions & 0 deletions apps/glance/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Glance

Glance 是一个自托管的仪表板,它可以将所有的订阅源整合到一个界面中,让你一目了然地查看所有信息。


## 说明

安装后默认包含一个示例配置文件,其中包含了一些小部件的示例。你可以根据自己的需求修改配置文件,添加或删除小部件。具体的配置方法请参考[配置文件说明](https://github.com/glanceapp/glance/blob/main/docs/configuration.md)[预配置页面](https://github.com/glanceapp/glance/blob/main/docs/preconfigured-pages.md)

## 主要功能:

- **多样化的小部件**:Glance 提供了多种小部件,包括 RSS 订阅、Subreddit 帖子、天气、书签、Hacker News、Lobsters、特定频道的最新 YouTube 视频、时钟、日历、股票、iframe、Twitch 频道和顶级游戏、GitHub 发布、代码库概览、网站监控、搜索框等。
- **主题化**:Glance 支持主题化,用户可以根据个人喜好自定义仪表板的外观。
- **移动设备优化**:Glance 针对移动设备进行了优化,无论是手机还是平板,都能提供良好的用户体验。
- **快速且轻量级**:Glance 使用最少的 JavaScript,不依赖臃肿的框架,依赖极少,单一的、易于分发的小于15MB的二进制文件,以及同样大小的 Docker 容器。所有请求都是并行化的,未缓存的页面通常在大约1秒内加载完成(取决于互联网速度和部件数量)。
13 changes: 13 additions & 0 deletions apps/glance/data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
additionalProperties:
crossVersionUpdate: true
document: https://github.com/glanceapp/glance
github: https://github.com/glanceapp/glance
key: glance
limit: 0
name: Glance
shortDescEn: A self-hosted dashboard that puts all your feeds in one place
shortDescZh: 一个将所有您的源订阅集中在一个地方的托管仪表板
tags:
- Tool
type: tool
website: https://github.com/glanceapp/glance
Binary file added apps/glance/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cde2f89

Please sign in to comment.