## Problem / 问题 The README already lists dae as a backend, but doona treated every backend as honk. Against dae's native API every probe failed with 422 (dae accepts only cold probes, `component/nativeapi/handlers_probes.go:85-89`), mode switching, rule templates and new groups were always off because dae keeps the entry file read-only and the sections in `config.d` modules, group edits wrote honk's policies and filters that dae rejects, and messages said honk. ## How I fixed it / 解决方法 A dae engine profile (`src/api/engines/dae.ts`) holds what differs, and the pages ask the engine instead of assuming honk. Probes send cold and offer the kinds dae declares. Writes go to the module that owns the section, falling back to `config.d/group.dae` as dae does (`cmd/config_groups.go:103-115`). The group dialog follows dae's grammar: its policies, no nested groups or `subtag(keyword: …)`, names dae can parse and does not rewrite (`must_`), `&&` continuation lines and latency annotations kept, `fixed`/`select` index within the members. Node delete is offered only for `config.d/node.dae`, the one file dae's DELETE edits. Messages name the running backend. honk keeps its behaviour and wording. Not fixed here, dae side: rules report `source: null` (so the rules page stays read-only), groups advertise empty `probe_transports` (so group-wide tests stay off), and `read_only_reason` values `entry_source`/`layout_unmanaged` are not in the contract enum. dae publishes `operation.updated` for every probe job, which fills the notices; honk publishes the same event, so it is left as it is. ## Verified / 验证 `pnpm check` passes (254 files, 4,470 tests). The full e2e suite ran once at the last code state but two: 10 failures, all from expected text (fixed in this commit) and from a notice change that is reverted here; the rerun was stopped by host memory pressure, so CI's e2e is the final check. Group text written for dae was parsed with dae's own Go parser (`config_parser.Parse` + `config.New`). Live against dae `0d85246` on a test VM: nodes, single and all-node probes (cold, healthy nodes 8–14 ms, a dead node unavailable), new group written to `group.dae` and reloaded, global and rule mode written to `routing.dae` and reloaded, configuration page, DNS, logs and connections. That live run predates the last two fixes (policy labels, `must_` and index checks), which are covered by unit tests only. No honk screen changes. | Nodes after test all | Global mode written | Entry file read-only | |---|---|---| |  |  |  | --- - [x] I understand this change and answer for every line - [x] This branch is based on the current main - [x] I ran the repository's gates and recorded the results in Verified - [x] Each commit is one coherent change - [x] If behaviour changed, I updated the documentation - [x] If interface text changed, I updated `en.json` and every complete language's catalogue - [ ] If interface appearance changed, I attached light and dark screenshots - [ ] If the API contract changed, I ran `pnpm gen:api` and `pnpm check:gen` - [ ] I checked the boxes above without reading them - [ ] I am an AI agent, and this content was submitted without human review
7.4 KiB
doona 是用於監控代理流量、管理節點、群組、規則與組態的靜態 Web 介面。使用時需要正在運作且已啟用原生 API 的 honk 或 dae(v2.1.2 起)後端,dae 的設定方式見原生 API 文件。
功能
監控
- 編輯活動頁的卡片及其尺寸。
- 檢視連線、分流記錄與 DNS 查詢。
- 檢視後端日誌與事件。
在活動頁調整卡片尺寸。
分流頁地圖;選取規則或節點可檢視經過它的流量路徑。
節點與訂閱
- 一次貼上多個節點連結。
- 測試篩選後的節點,並依延遲排序。
- 更新訂閱並檢視探測結果。
檢視節點的探測結果,並將節點加入群組。
群組與路由
- 編輯群組、成員篩選條件與選擇策略。
- 編輯規則清單並套用路由範本。
- 填寫行程名稱與防火牆標記,追蹤路由決策。
編輯群組的篩選條件與策略。
在進階檢視中檢視規則清單。
組態
- 編輯設定檔,並透過診斷結果定位驗證錯誤。
- 透過表單修改全域設定。
- 檢視修訂並匯出組態。
在設定檔編輯器中定位驗證錯誤。
外觀與手機
- 選擇配色及淺色或深色主題。
- 使用英語、簡體中文或繁體中文。
- 在手機上使用頁面分頁、清單與選單。
比較可用的配色。
在手機上瀏覽連線並調整外觀。
可用功能取決於後端的能力與組態,詳見功能要求。
兩個版本
在 0.1.0-rc.8 中,doona lite 是仍在測試的預覽版,頁面與行為可能繼續變動。兩者連線同一個 honk,使用相同的管理員憑證。
| 項目 | 標準版 | doona lite(預覽版) |
|---|---|---|
| 流量監控 | 活動、連線、分流、DNS、日誌與事件 | 不含監控頁面 |
| 組態 | 設定檔編輯器、診斷、全域設定與修訂 | 節點、訂閱與全域設定表單 |
| 群組與規則 | 編輯器、範本與路由追蹤 | 群組、路由與 DNS 編輯器 |
| 用途 | 用於日常管理的完整介面 | 體積更小的設定檔編輯器 |
| 狀態 | 候選版本 | 仍在測試的預覽版 |
功能、後端要求及版本切換方式見版本比較。
體驗示範版
使用範例資料體驗介面,無需後端。
以 ?scenario=faults 開啟可檢視錯誤狀態,以 ?scenario= 開啟則恢復正常的示範版。
安裝
honk 的完整發布版本已內嵌 doona。依照快速入門即可使用;文件也說明如何單獨安裝 doona。Debian、Ubuntu、Fedora 與 openSUSE 可從 daeuniverse 套件來源安裝:Debian 與 Ubuntu 用 doona-web,Fedora 與 openSUSE 用 doona,套件來源的設定見 Debian、Fedora 與 openSUSE。發布封存檔與套件仍可從 GitHub Releases 取得。
後端協定
honk 負責代理流量;支援的協定、傳輸方式與限制見 honk 節點參考。
最新版本
0.1.0-rc.8 共 12 項更新:新增 7 項、變更 1 項、修正 4 項。
本版在「新增節點」對話框加入「手動」分頁,新增節點時可同時加入群組。手動選擇的策略群組也能折疊,群組成員會標示所屬訂閱,說明連結改為開啟 daeuniverse.org 上的手冊。Dark Reader 不再重新著色 doona,指向設定或卡片的連結會捲動到目標,頁面骨架也與載入後的版面一致。
文件
開發
建置、測試與打包指令、原始碼配置與契約的固定提交,見開發一頁;送出 pull request 前先讀 CONTRIBUTING.md。
lite 的獨立相依套件安裝與建置指令見開發一頁。
支援
介面問題與提問請到 doona issues。代理、分流、DNS 等引擎問題請提交至所用引擎的 honk issues 或 dae issues。通報安全漏洞的方式見 SECURITY.md。
授權與致謝
doona 採用 AGPL-3.0-only 授權。 若向使用者提供修改版(包括透過網路提供),就必須向這些使用者提供取得對應原始碼的途徑。
Noto Sans TC 與 SC 由 Fontsource npm 套件提供,版權歸 Adobe 所有,採用 Open Font License。NOTICE 註明 Adobe Spectrum 圖示(Apache-2.0)。









