diff --git a/.github/README.md b/.github/README.md index 6079c8887..24e71afee 100644 --- a/.github/README.md +++ b/.github/README.md @@ -144,6 +144,7 @@ | 🟢 | | Redis | https://redis.io/ | 从世界上最快的内存数据库创建者那里获取该数据库 | | | 🟢 | | RssHub | https://rsshub.app/ | 从任何内容生成 RSS/Atom/JSON 订阅源 | | | 🟢 | | Sentinel | https://sentinelguard.io/ | 面向分布式、多语言异构化服务架构的流量治理组件 | | +| 🟢 | | Shiori | https://www.kimai.org/ | 简单书签管理器,旨在作为 Pocket 的简单克隆 | | | 🟢 | | 思源笔记 | https://b3log.org/siyuan/ | 【思源笔记】一款隐私优先、自托管、完全开源的个人知识管理软件 | | | 🟢 | | Slink | https://github.com/andrii-kryvoviaz/slink/ | 图片分享平台 | | | 🟢 | | sonarr | https://sonarr.tv/ | 智能 PVR 适用于新闻组和 BT 用户。 | | diff --git a/README.md b/README.md index 5d094e128..56aca7ad6 100644 --- a/README.md +++ b/README.md @@ -127,6 +127,7 @@ | 🟢 | | Redis | https://redis.io/ | 从世界上最快的内存数据库创建者那里获取该数据库 | | | 🟢 | | RssHub | https://rsshub.app/ | 从任何内容生成 RSS/Atom/JSON 订阅源 | | | 🟢 | | Sentinel | https://sentinelguard.io/ | 面向分布式、多语言异构化服务架构的流量治理组件 | | +| 🟢 | | Shiori | https://www.kimai.org/ | 简单书签管理器,旨在作为 Pocket 的简单克隆 | | | 🟢 | | 思源笔记 | https://b3log.org/siyuan/ | 【思源笔记】一款隐私优先、自托管、完全开源的个人知识管理软件 | | | 🟢 | | Slink | https://github.com/andrii-kryvoviaz/slink/ | 图片分享平台 | | | 🟢 | | sonarr | https://sonarr.tv/ | 智能 PVR 适用于新闻组和 BT 用户。 | | diff --git a/apps/shiori/1.7.1/data.yml b/apps/shiori/1.7.1/data.yml new file mode 100644 index 000000000..61789ce10 --- /dev/null +++ b/apps/shiori/1.7.1/data.yml @@ -0,0 +1,44 @@ +additionalProperties: + formFields: + - child: + default: "" + envKey: PANEL_DB_HOST + required: true + type: service + default: postgresql + envKey: PANEL_DB_TYPE + labelZh: 数据库服务 (前置检查) + labelEn: Database Service + required: true + type: apps + values: + - label: PostgreSQL + value: postgresql + - label: MySQL + value: mysql + - label: MariaDB + value: mariadb + - label: Percona + value: percona + - default: "/home/shiori" + edit: true + envKey: SHIORI_ROOT_PATH + labelZh: 数据持久化路径 + labelEn: Data persistence path + required: true + type: text + - default: 8080 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelZh: 访问端口 + labelEn: Port + required: true + rule: paramPort + type: number + - default: "" + edit: true + envKey: SHIORI_DATABASE_URL + labelZh: 数据库链接 URL + labelEn: Database URL + required: true + type: text diff --git a/apps/shiori/1.7.1/docker-compose.yml b/apps/shiori/1.7.1/docker-compose.yml new file mode 100644 index 000000000..686da5a5f --- /dev/null +++ b/apps/shiori/1.7.1/docker-compose.yml @@ -0,0 +1,23 @@ +networks: + 1panel-network: + external: true + +services: + shiori: + image: ghcr.io/go-shiori/shiori:v1.7.1 + container_name: ${CONTAINER_NAME} + labels: + createdBy: "Apps" + restart: always + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_HTTP}:8080 + env_file: + - /etc/1panel/envs/global.env + - ${ENV_FILE:-/etc/1panel/envs/default.env} + volumes: + - ${SHIORI_ROOT_PATH}/dev-data:/srv/shiori + - ${SHIORI_ROOT_PATH}/data:/src/shiori + environment: + - SHIORI_DIR=/srv/shiori diff --git a/apps/shiori/1.7.1/scripts/init.sh b/apps/shiori/1.7.1/scripts/init.sh new file mode 100644 index 000000000..77b849120 --- /dev/null +++ b/apps/shiori/1.7.1/scripts/init.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/shiori/1.7.1/scripts/uninstall.sh b/apps/shiori/1.7.1/scripts/uninstall.sh new file mode 100644 index 000000000..c86c4fbca --- /dev/null +++ b/apps/shiori/1.7.1/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/shiori/1.7.1/scripts/upgrade.sh b/apps/shiori/1.7.1/scripts/upgrade.sh new file mode 100644 index 000000000..77b849120 --- /dev/null +++ b/apps/shiori/1.7.1/scripts/upgrade.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/shiori/README.md b/apps/shiori/README.md new file mode 100644 index 000000000..16efbfb8b --- /dev/null +++ b/apps/shiori/README.md @@ -0,0 +1,49 @@ +# Shiori + +Shiori 是一款用 Go 语言编写的简单书签管理器,旨在作为 Pocket 的简单克隆。 + +![Shiori](https://file.lifebus.top/imgs/shiori_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) + +## 特性 + ++ 基础书签管理,即添加、编辑、删除和搜索。 ++ 从 Netscape 书签文件导入和导出书签。 ++ 从 Pocket 导入书签。 ++ 简洁明了的命令行界面。 ++ 简洁美观的网页界面,专为那些不想使用命令行应用程序的用户设计。 ++ 轻便便携,得益于其单一的二进制格式。 ++ 数据库支持 sqlite3、PostgreSQL 和 MySQL。 ++ 默认情况下,尽可能的, shiori 将解析可读内容并创建网页的离线存档。 ++ [测试版] 支持 Firefox 和 Chrome 浏览器的 Web 扩展程序。 + +## 安装说明 + +### `数据库链接 URL` 配置 + +> 名词解释 +> +> `username` 数据库用户名 +> +> `password` 数据库密码 +> +> `localhost` 数据库地址 +> +> `port` 数据库端口 +> +> `database` 数据库名称 + ++ `mysql` 数据库链接 URL 配置 + +模板:`mysql://username:password@tcp(localhost:port)/database?charset=utf8mb4` +示例:`mysql://shiori:shiori@(mariadb)/shiori?charset=utf8mb4` + ++ `postgresql` 数据库链接 URL 配置 + +模板:`postgres://username:password@localhost:port/database?sslmode=disable` +示例:`postgres://shiori:shiori@postgres/shiori?sslmode=disable` + +--- + +![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png) diff --git a/apps/shiori/data.yml b/apps/shiori/data.yml new file mode 100644 index 000000000..55c674062 --- /dev/null +++ b/apps/shiori/data.yml @@ -0,0 +1,14 @@ +additionalProperties: + key: shiori + name: Shiori + tags: + - WebSite + - Local + shortDescZh: 简单书签管理器,旨在作为 Pocket 的简单克隆 + shortDescEn: Simple bookmark manager, aiming to be a simple clone of Pocket + type: website + crossVersionUpdate: true + limit: 0 + website: https://www.kimai.org/ + github: https://github.com/kimai/kimai/ + document: https://www.kimai.org/documentation/ diff --git a/apps/shiori/logo.png b/apps/shiori/logo.png new file mode 100644 index 000000000..cc713a707 Binary files /dev/null and b/apps/shiori/logo.png differ