Repository navigation
fix(settings): shorten descriptions in compact mode #109
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
base: main
Are you sure you want to change the base?
Changes from all commits
90193c4
ae15ac9
1c12fcc
ea81541
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 24.22.1 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| engine-strict=true | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -136,6 +136,7 @@ https://github.com/YetAnotherBusDeveloper/yetanotherbusapp/releases/latest | |
| - Flutter 3.x+ | ||
| - Dart SDK | ||
| - Android Studio / VS Code | ||
| - Node.js 24.22.1(Web 工具;版本記錄於 `.node-version`) | ||
|
|
||
| ### Clone | ||
|
|
||
|
|
@@ -150,6 +151,15 @@ cd yetanotherbusapp | |
| flutter pub get | ||
| ``` | ||
|
|
||
| Web 開發/部署工具先切換至 `.node-version` 指定的 Node.js,再執行 `npm ci`。 | ||
| 支援的安全版本為 Node.js `22.23.4+`、`24.22.1+`、`26.12.1+`(各自的主版本), | ||
| 修補 [CVE-2026-111497 / HTTP2Shell](https://nodejs.org/en/blog/vulnerability/october-2026-security-releases)。 | ||
| 安裝、Web 開發與部署命令會拒絕舊版 Node.js;只更新 npm 套件無法修補 Node 內建的解碼器。 | ||
| App 的 `brotli` 套件為純 Dart 實作,未連結此次受影響的原生 C 解碼器。 | ||
| `npm run serve:web` 改用 Flutter Web 開發伺服器(`http://127.0.0.1:8080`)。 | ||
| Wrangler 依賴的本機 `workerd` 仍內嵌舊版 Brotli,因此暫停以 `wrangler dev` | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 停用 這支 Worker 不是單純靜態檔案伺服器,它處理: 建議至少補一個 |
||
| 執行本機 Worker;Wrangler 僅用於部署,由指定的安全版 Node.js 執行。 | ||
|
|
||
| ### Run | ||
|
|
||
| ```bash | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
engine-strict=true會讓scripts/check-node-version.mjs裡那句解釋 CVE 的錯誤訊息變成永遠看不到的死碼。實測(Node 22.23.1):
> preinstall根本沒被執行 — npm 在解析階段就 abort 了。也就是說最需要看到「這是 CVE-2026-111497,請用 22.23.4+/24.22.1+/26.12.1+」的使用者,只會看到 npm 的原文訊息。兩個選項:
.npmrc的engine-strict,讓engines只當 warning、由preinstall給出可讀訊息(安裝仍會被擋,只是擋在 preinstall)。engine-strict,但接受preinstall的訊息只對「已通過 engines 但語意不符」的邊角情況生效 — 那就別在 README 宣稱使用者會看到友善提示。