Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update build docs and bump to v0.5.7 #113

Merged
merged 3 commits into from
Sep 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,20 @@ Enjoy!

要进行开发环境调试,请运行 `yarn dev`。

您需要在 `cloudflare-workers/.dev.vars` 文件中配置相关环境变量:

```
ADMINISTRATOR_SECRET="xxx"
TELEGRAM_BOT_TOKEN="111:222-333"
TELEGRAM_CHAT_ID="401081860"
GITHUB_APP_CLIENT_ID="Iv1.05d621294f305efc"
GITHUB_APP_CLIENT_SECRET="111111111111111111111111111111111"
OAUTH_JWT_SECRET="111111111111111111111111111"
GITHUB_ORG_ADMINISTRATOR_TEAM="OI-wiki/feedback-sys-mod"
```

关于 GitHub App 的配置,需要创建一个 GitHub App,并在 `GITHUB_APP_CLIENT_ID`, `GITHUB_APP_CLIENT_SECRET` 中填入对应的值。并且在 GitHub App 的设置中,把 `callback URL` 设置为 `http://localhost:8787/oauth/callback`。

要进行单元测试,请运行 `yarn test`。

### frontend
Expand Down
2 changes: 1 addition & 1 deletion cloudflare-workers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cloudflare-workers",
"version": "0.5.6",
"version": "0.5.7",
"private": true,
"scripts": {
"deploy": "wrangler deploy",
Expand Down
2 changes: 1 addition & 1 deletion cloudflare-workers/wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ mode = "smart"
[[d1_databases]]
binding = "DB"
database_name = "comments"
database_id = "eba686c4-352d-4a8d-8f4e-fb3801166973"
database_id = "146d0342-8df8-426d-b2e1-25f366251b40"

# Automatically place your workloads in an optimal location to minimize latency.
# If you are running back-end logic in a Worker, running it closer to your back-end infrastructure
Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "oiwiki-feedback-sys-frontend",
"private": false,
"version": "0.5.6",
"version": "0.5.7",
"license": "Apache-2.0",
"type": "module",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion python-markdown-extension/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "python_markdown_document_offsets_injection_extension"
version = "0.5.6"
version = "0.5.7"
description = "A Python-Markdown compiler plugin that put markdown words offset to the output HTML."
authors = [{ name = "HikariLan", email = "[email protected]" }]
license = { text = "Apache-2.0" }
Expand Down