diff --git a/.github/README.md b/.github/README.md index f7fabdd1..e3717970 100644 --- a/.github/README.md +++ b/.github/README.md @@ -76,6 +76,7 @@ | 🟢 | | Ghost | https://ghost.org/ | 用于现代出版、会员制、订阅和通讯的人博客系统 | | | 🟢 | | Gitea | https://gitea.io/ | 私有、快速、可靠的 DevOps 平台 | Gitea | | 🟢 | | Gitea Runner | https://gitea.io/ | 【Runner】私有、快速、可靠的 DevOps 平台 | Gitea | +| 🟢 | | Glance | https://github.com/glanceapp/glance/ | 一个自托管的仪表板,将所有您的订阅源放在一个地方 | | | 🟢 | | Halo | https://halo.run/ | 强大易用的开源建站工具 | | | 🟢 | | Homarr | https://homarr.dev/ | 一个时尚、现代化的仪表板 | | | 🟢 | | ikaros | https://github.com/Suwmlee/ikaros/ | 打通下载软件与媒体服务,安心享受影片 | | diff --git a/README.md b/README.md index db9888c4..2bc3c562 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,7 @@ | 🟢 | | Ghost | https://ghost.org/ | 用于现代出版、会员制、订阅和通讯的人博客系统 | | | 🟢 | | Gitea | https://gitea.io/ | 私有、快速、可靠的 DevOps 平台 | Gitea | | 🟢 | | Gitea Runner | https://gitea.io/ | 【Runner】私有、快速、可靠的 DevOps 平台 | Gitea | +| 🟢 | | Glance | https://github.com/glanceapp/glance/ | 一个自托管的仪表板,将所有您的订阅源放在一个地方 | | | 🟢 | | Halo | https://halo.run/ | 强大易用的开源建站工具 | | | 🟢 | | Homarr | https://homarr.dev/ | 一个时尚、现代化的仪表板 | | | 🟢 | | ikaros | https://github.com/Suwmlee/ikaros/ | 打通下载软件与媒体服务,安心享受影片 | | diff --git a/apps/glance/0.6.4/conf/glance.yml b/apps/glance/0.6.4/conf/glance.yml new file mode 100644 index 00000000..6417cdda --- /dev/null +++ b/apps/glance/0.6.4/conf/glance.yml @@ -0,0 +1,68 @@ +server: + port: 8080 + assets-path: /app/assets +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 diff --git a/apps/glance/0.6.4/data.yml b/apps/glance/0.6.4/data.yml new file mode 100644 index 00000000..eacce78b --- /dev/null +++ b/apps/glance/0.6.4/data.yml @@ -0,0 +1,17 @@ +additionalProperties: + formFields: + - default: "/home/app_name" + edit: true + envKey: APP_NAME_ROOT_PATH + labelZh: 数据持久化路径 + labelEn: Data persistence path + required: true + type: text + - default: 8080 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelZh: WebUI 端口 + labelEn: WebUI port + required: true + rule: paramPort + type: number diff --git a/apps/glance/0.6.4/docker-compose.yml b/apps/glance/0.6.4/docker-compose.yml new file mode 100644 index 00000000..8380ba8c --- /dev/null +++ b/apps/glance/0.6.4/docker-compose.yml @@ -0,0 +1,25 @@ +networks: + 1panel-network: + external: true + +services: + glance: + image: glanceapp/glance:v0.6.4 + container_name: ${CONTAINER_NAME} + labels: + createdBy: "Apps" + restart: always + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_HTTP}:8080 + env_file: + - ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env} + - ${ENV_FILE:-/etc/1panel/envs/default.env} + volumes: + - ${APP_NAME_ROOT_PATH}/app/glance.yml:/app/glance.yml + - ${APP_NAME_ROOT_PATH}/app/assets:/app/assets + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + environment: + - TZ=Asia/Shanghai diff --git a/apps/glance/0.6.4/envs/default.env b/apps/glance/0.6.4/envs/default.env new file mode 100644 index 00000000..cd05f46e --- /dev/null +++ b/apps/glance/0.6.4/envs/default.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +ENV_FILE=.env diff --git a/apps/glance/0.6.4/envs/global.env b/apps/glance/0.6.4/envs/global.env new file mode 100644 index 00000000..e10989fe --- /dev/null +++ b/apps/glance/0.6.4/envs/global.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +TZ=Asia/Shanghai diff --git a/apps/glance/0.6.4/scripts/init.sh b/apps/glance/0.6.4/scripts/init.sh new file mode 100644 index 00000000..2195dc92 --- /dev/null +++ b/apps/glance/0.6.4/scripts/init.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + sed -i '/^GLOBAL_ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env + + mkdir -p "$APP_NAME_ROOT_PATH" + mkdir -p "$APP_NAME_ROOT_PATH/app" + + cp ./conf/glance.yml "$APP_NAME_ROOT_PATH/app/glance.yml" + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/glance/0.6.4/scripts/uninstall.sh b/apps/glance/0.6.4/scripts/uninstall.sh new file mode 100644 index 00000000..c86c4fbc --- /dev/null +++ b/apps/glance/0.6.4/scripts/uninstall.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/glance/0.6.4/scripts/upgrade.sh b/apps/glance/0.6.4/scripts/upgrade.sh new file mode 100644 index 00000000..0be9bfe0 --- /dev/null +++ b/apps/glance/0.6.4/scripts/upgrade.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + sed -i '/^GLOBAL_ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env + + mkdir -p "$APP_NAME_ROOT_PATH" + mkdir -p "$APP_NAME_ROOT_PATH/app" + + if [ ! -f "$APP_NAME_ROOT_PATH/app/glance.yml" ]; then + cp ./conf/glance.yml "$APP_NAME_ROOT_PATH/app/glance.yml" + fi + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/glance/README.md b/apps/glance/README.md new file mode 100644 index 00000000..15ea6ffd --- /dev/null +++ b/apps/glance/README.md @@ -0,0 +1,30 @@ +# Glance + +一个自托管的仪表板,将所有您的订阅源放在一个地方 + +![Glance](https://file.lifebus.top/imgs/glance_cover.png) + +![](https://img.shields.io/badge/%E6%96%B0%E7%96%86%E8%90%8C%E6%A3%AE%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91%E5%B7%A5%E4%BD%9C%E5%AE%A4-%E6%8F%90%E4%BE%9B%E6%8A%80%E6%9C%AF%E6%94%AF%E6%8C%81-blue) + +## 小部件 + ++ RSS 订阅源 ++ 子版块帖子 ++ 天气 ++ 书签 ++ 黑客新闻 ++ Lobsters ++ 最新特定频道的 YouTube 视频 ++ 闹钟 ++ 日历 ++ 股票 ++ iframe ++ Twitch 频道和热门游戏 ++ GitHub 发布 ++ 代码库概览 ++ 站点监控 ++ 搜索框 + +--- + +![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png) diff --git a/apps/glance/data.yml b/apps/glance/data.yml new file mode 100644 index 00000000..0f6781f7 --- /dev/null +++ b/apps/glance/data.yml @@ -0,0 +1,14 @@ +additionalProperties: + key: glance + name: Glance + tags: + - WebSite + - Local + shortDescZh: 一个自托管的仪表板,将所有您的订阅源放在一个地方 + shortDescEn: A self-hosted dashboard that puts all your feeds in one place + type: website + crossVersionUpdate: true + limit: 0 + website: https://github.com/glanceapp/glance/ + github: https://github.com/glanceapp/glance/ + document: https://github.com/glanceapp/glance/ diff --git a/apps/glance/logo.png b/apps/glance/logo.png new file mode 100644 index 00000000..54fc4131 Binary files /dev/null and b/apps/glance/logo.png differ