[PR #160] [CLOSED] feat: 支持简单 markdown 推送,适用于私有服务器搭建 #201

Closed
opened 2026-03-03 11:56:41 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Finb/bark-server/pull/160
Author: @adams549659584
Created: 8/7/2022
Status: Closed

Base: masterHead: markdown-web


📝 Commits (1)

  • c58a0a0 feat: 支持简单 markdown 推送,适用于私有服务器搭建

📊 Changes

15 files changed (+205 additions, -4 deletions)

View changed files

📝 Taskfile.yaml (+1 -0)
📝 database/bbolt.go (+35 -1)
📝 database/database.go (+2 -0)
📝 database/envbase.go (+38 -0)
📝 database/mysql.go (+21 -0)
📝 deploy/Dockerfile (+1 -0)
📝 main.go (+1 -1)
📝 route_push.go (+18 -2)
route_web.go (+28 -0)
web/index.html (+15 -0)
web/static/css/index.css (+1 -0)
web/static/ico/favicon.ico (+0 -0)
web/static/js/index.js (+42 -0)
web/sw.js (+1 -0)
web/workbox-82e18805.js (+1 -0)

📄 Description

感觉不大适合主版,适合单独放分支,给需要 markdown 的自行搭建私有服务器

前端源码 https://github.com/adams549659584/bark-md-reader

附个人修改版 https://github.com/adams549659584/bark-server

使用如下:

curl -X "POST" "http://127.0.0.1:8080/push" \
     -H 'Content-Type: application/json; charset=utf-8' \
     -d $'{
  "device_key": "your key",
  "title": "bleem",
  "body": "Test Bark Server",
  "badge": 1,
  "category": "category",
  "sound": "minuet.caf",
  "icon": "https://day.app/assets/images/avatar.jpg",
  "group": "test",
  "markdown": "# markdown title \\n > markdown text"
}'

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Finb/bark-server/pull/160 **Author:** [@adams549659584](https://github.com/adams549659584) **Created:** 8/7/2022 **Status:** ❌ Closed **Base:** `master` ← **Head:** `markdown-web` --- ### 📝 Commits (1) - [`c58a0a0`](https://github.com/Finb/bark-server/commit/c58a0a0e144ab7e59d5ef2fd14bef719c85e8b06) feat: 支持简单 markdown 推送,适用于私有服务器搭建 ### 📊 Changes **15 files changed** (+205 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `Taskfile.yaml` (+1 -0) 📝 `database/bbolt.go` (+35 -1) 📝 `database/database.go` (+2 -0) 📝 `database/envbase.go` (+38 -0) 📝 `database/mysql.go` (+21 -0) 📝 `deploy/Dockerfile` (+1 -0) 📝 `main.go` (+1 -1) 📝 `route_push.go` (+18 -2) ➕ `route_web.go` (+28 -0) ➕ `web/index.html` (+15 -0) ➕ `web/static/css/index.css` (+1 -0) ➕ `web/static/ico/favicon.ico` (+0 -0) ➕ `web/static/js/index.js` (+42 -0) ➕ `web/sw.js` (+1 -0) ➕ `web/workbox-82e18805.js` (+1 -0) </details> ### 📄 Description 感觉不大适合主版,适合单独放分支,给需要 markdown 的自行搭建私有服务器 前端源码 [https://github.com/adams549659584/bark-md-reader](https://github.com/adams549659584/bark-md-reader) 附个人修改版 [https://github.com/adams549659584/bark-server](https://github.com/adams549659584/bark-server) 使用如下: ```sh curl -X "POST" "http://127.0.0.1:8080/push" \ -H 'Content-Type: application/json; charset=utf-8' \ -d $'{ "device_key": "your key", "title": "bleem", "body": "Test Bark Server", "badge": 1, "category": "category", "sound": "minuet.caf", "icon": "https://day.app/assets/images/avatar.jpg", "group": "test", "markdown": "# markdown title \\n > markdown text" }' ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 11:56:41 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/bark-server#201
No description provided.