chore: release v1.0.16
This commit is contained in:
1 parent
286469b738
commit
471f8c3e73
5 files changed
+73
-1
No files matched your search
@@ -1,5 +1,23 @@
|
|||||||
# OpenTerminal Changelog
|
# OpenTerminal Changelog
|
||||||
|
|
||||||
|
## v1.0.16 - 2026-09-23
|
||||||
|
|
||||||
|
- **Built-in rules 11 → 22**: new dangerous/destructive commands (`rm -rf`, `mkfs`, `dd if=`, `chmod 777`, `drop database`, piping into `sh`, …), suspected secret/token reminders, delete/move/overwrite operations, create operations, log levels, exit codes, HTTP status codes, durations (ms), percentage progress, network & IP addresses, timestamps, `root@` prompts, shell keywords, quoted strings, environment variables and more
|
||||||
|
- **Status words in three colours, case-insensitive**: success (`Success` / `Succeeded` / `good` / `done` / `OK` / `✓`), warning (`Warning` / `Caution` / `Deprecated` / `⚠`), error & fatal (`Error` / `NG` / `err` / `bug` / `fail` / `FATAL` / `CRITICAL` / `PANIC` / `✗`)
|
||||||
|
- `not ok` / `not found` correctly show as errors instead of success green
|
||||||
|
- **Value-banded colours**: percentages below 20% red, 20–50% yellow, 50–80% light green, 80%+ green; exit codes, HTTP status codes and durations are banded the same way
|
||||||
|
- **Three highlight modes**: all / basic (only the key error, success, warning, dangerous-command and secret rules — about a quarter of the cost) / off (zero cost)
|
||||||
|
- Rules support "ignore case" and "value bands" switches, with a live preview against your own test text in the editor
|
||||||
|
- Import / export rules as JSON to share one palette across a team
|
||||||
|
- **Per-host rule sets**: save a subset of rules as a named set and bind it to a host in the SSH connection editor (off by default; unbound hosts run every rule)
|
||||||
|
- **Hit/duration stats**: per-rule hit count and scan time for the session (off by default, zero cost when off)
|
||||||
|
- **Theme-following colours**: rule colours map onto the active terminal theme's palette (off by default)
|
||||||
|
|
||||||
|
- The highlight settings page gained a category column (safety / status / file / network / text / metric) with grouping
|
||||||
|
- Fixed the highlight settings toolbar squeezing labels into vertical text and mis-aligning buttons in narrow windows
|
||||||
|
|
||||||
|
- New regression tests for the highlight presets (word boundaries, case flag, negative words, value bands, import/export, chunked streaming); the full `npm test` suite passes
|
||||||
|
|
||||||
## v1.0.15 - 2026-09-20
|
## v1.0.15 - 2026-09-20
|
||||||
|
|
||||||
- **Custom terminal background image**: Settings → Theme → Background image lets you use any local image as the terminal background, with 10%–100% image opacity control; removing the image restores the solid background
|
- **Custom terminal background image**: Settings → Theme → Background image lets you use any local image as the terminal background, with 10%–100% image opacity control; removing the image restores the solid background
|
||||||
|
|||||||
@@ -1,5 +1,23 @@
|
|||||||
# OpenTerminal 更新履歴
|
# OpenTerminal 更新履歴
|
||||||
|
|
||||||
|
## v1.0.16 - 2026-09-23
|
||||||
|
|
||||||
|
- **内蔵ルール 11 件 → 22 件**:危険/破壊的なコマンド(`rm -rf`、`mkfs`、`dd if=`、`chmod 777`、`drop database`、`sh` へのパイプなど)、疑わしいシークレット/トークンの警告、削除/移動/上書き操作、作成操作、ログレベル、終了コード、HTTP ステータスコード、処理時間(ミリ秒)、パーセント進捗、ネットワークと IP アドレス、日時、`root@` プロンプト、Shell キーワード、引用文字列、環境変数などを追加
|
||||||
|
- **ステータス語を 3 色に色分け、大文字小文字を区別しない**:成功(`Success` / `Succeeded` / `Successfully` / `good` / `done` / `OK` / `✓`)、警告(`Warning` / `Caution` / `Deprecated` / `⚠`)、エラーと致命的(`Error` / `NG` / `err` / `bug` / `fail` / `FATAL` / `CRITICAL` / `PANIC` / `✗`)
|
||||||
|
- `not ok` / `not found` は正しくエラーとして表示され、成功の緑に誤って染まらない
|
||||||
|
- **数値帯による色分け**:パーセントは 20% 未満が赤、20–50% が黄、50–80% が薄い緑、80% 以上が緑。終了コード・HTTP ステータスコード・処理時間も同様に数値帯で色分け
|
||||||
|
- **ハイライトモードの 3 段階**:すべて / 基本(エラー・成功・警告・危険コマンド・シークレットなど主要ルールのみ、コストは全体の約 1/4)/ オフ(コストゼロ)
|
||||||
|
- ルールごとに「大文字小文字を無視」「数値帯」のスイッチを用意。エディタ内でテストテキストによるリアルタイムプレビューが可能
|
||||||
|
- ルールを JSON としてインポート/エクスポートでき、チームで同じ配色を共有できる
|
||||||
|
- **ホスト別ルールセット**:ルールのサブセットに名前を付けて保存し、SSH 接続の編集画面で特定ホストにバインド可能(デフォルトはオフ、未バインドのホストは全ルールを実行)
|
||||||
|
- **ヒット数/処理時間の統計**:セッションごとのルール別ヒット数とスキャン時間(デフォルトはオフ、オフ時はコストゼロ)
|
||||||
|
- **テーマに追従するハイライト色**:ルールの色を現在のテーマのパレットにマッピング(デフォルトはオフ)
|
||||||
|
|
||||||
|
- ハイライト設定ページにカテゴリ列(安全 / 状態 / ファイル / ネットワーク / テキスト / 数値)を追加し、カテゴリ別のグループ表示に対応
|
||||||
|
- 狭いウィンドウでハイライト設定ツールバーのラベルが縦書きになり、ボタンが右寄せされない問題を修正
|
||||||
|
|
||||||
|
- ハイライトプリセットの回帰テストを追加(語境界、大文字小文字フラグ、否定語、数値帯、インポート/エクスポート、チャンクストリーム)。`npm test` 全件パス
|
||||||
|
|
||||||
## v1.0.15 - 2026-09-20
|
## v1.0.15 - 2026-09-20
|
||||||
|
|
||||||
- **ターミナルの背景画像をカスタマイズ**:設定 → テーマ → 背景画像で、任意のローカル画像をターミナルの背景に指定でき、画像の不透明度(10%~100%)も調整可能。画像を削除すると単色背景に戻ります
|
- **ターミナルの背景画像をカスタマイズ**:設定 → テーマ → 背景画像で、任意のローカル画像をターミナルの背景に指定でき、画像の不透明度(10%~100%)も調整可能。画像を削除すると単色背景に戻ります
|
||||||
|
|||||||
@@ -1,5 +1,23 @@
|
|||||||
# OpenTerminal 更新日志
|
# OpenTerminal 更新日志
|
||||||
|
|
||||||
|
## v1.0.16 - 2026-09-23
|
||||||
|
|
||||||
|
- **内置规则 11 条 → 22 条**:新增危险/破坏性命令(`rm -rf`、`mkfs`、`dd if=`、`chmod 777`、`drop database`、管道给 `sh` 等)、疑似密钥/令牌提醒、删除/移动/覆盖操作、新建/创建操作、日志级别、退出码、HTTP 状态码、耗时(毫秒)、百分比进度、网络与 IP 地址、时间日期、`root@` 提示符、Shell 关键字、字符串、环境变量等
|
||||||
|
- **状态词三分配色且不分大小写**:成功(`Success` / `Succeeded` / `Successfully` / `good` / `done` / `OK` / `✓`)、警告(`Warning` / `Caution` / `Deprecated` / `⚠`)、错误与致命(`Error` / `NG` / `err` / `bug` / `fail` / `FATAL` / `CRITICAL` / `PANIC` / `✗`)各自一种颜色
|
||||||
|
- `not ok` / `not found` 正确显示为错误,不会被误染成成功绿
|
||||||
|
- **数值分级取色**:百分比低于 20% 红、20–50% 黄、50–80% 浅绿、80% 以上绿;退出码、HTTP 状态码、耗时同样按数值分级取色
|
||||||
|
- **高亮模式三档**:全部 / 仅基础(只保留错误、成功、警告、危险命令、密钥等关键规则,开销约为全部的 1/4)/ 关闭(零开销)
|
||||||
|
- 规则支持「忽略大小写」与「数值分级」开关,编辑器内可用测试文本实时预览着色效果
|
||||||
|
- 规则可导入 / 导出 JSON,方便团队分享同一套配色
|
||||||
|
- **按主机规则集**:可把规则子集存成命名规则集,并在 SSH 连接编辑里绑定给某台主机(默认关,未绑定的主机跑全部规则)
|
||||||
|
- **命中/耗时统计**:每条规则在本会话的命中次数与扫描耗时(默认关,关闭时零开销)
|
||||||
|
- **高亮颜色跟随终端主题**:规则颜色映射到当前主题的调色板,换主题不再突兀(默认关)
|
||||||
|
|
||||||
|
- 高亮设置页新增分类列(安全 / 状态 / 文件 / 网络 / 文本 / 数值),可按分类分组查看规则
|
||||||
|
- 修复高亮设置页工具栏在窄窗口下标签被挤成竖排、按钮不靠右的问题
|
||||||
|
|
||||||
|
- 新增关键词高亮规则回归测试(词边界、大小写、反向词、数值分级、导入导出、分块流),`npm test` 全量通过
|
||||||
|
|
||||||
## v1.0.15 - 2026-09-20
|
## v1.0.15 - 2026-09-20
|
||||||
|
|
||||||
- **自定义终端背景图片**:设置 → 主题 → 背景图片,可为终端指定任意本地图片作为背景,并支持 10%–100% 的图片不透明度调节;移除图片后恢复纯色背景
|
- **自定义终端背景图片**:设置 → 主题 → 背景图片,可为终端指定任意本地图片作为背景,并支持 10%–100% 的图片不透明度调节;移除图片后恢复纯色背景
|
||||||
|
|||||||
@@ -1,5 +1,23 @@
|
|||||||
# OpenTerminal 更新日誌
|
# OpenTerminal 更新日誌
|
||||||
|
|
||||||
|
## v1.0.16 - 2026-09-23
|
||||||
|
|
||||||
|
- **內建規則 11 條 → 22 條**:新增危險/破壞性命令(`rm -rf`、`mkfs`、`dd if=`、`chmod 777`、`drop database`、管線給 `sh` 等)、疑似金鑰/權杖提醒、刪除/移動/覆蓋操作、新建/建立操作、日誌級別、結束代碼、HTTP 狀態碼、耗時(毫秒)、百分比進度、網路與 IP 位址、時間日期、`root@` 提示字元、Shell 關鍵字、字串、環境變數等
|
||||||
|
- **狀態詞三分配色且不分大小寫**:成功(`Success` / `Succeeded` / `Successfully` / `good` / `done` / `OK` / `✓`)、警告(`Warning` / `Caution` / `Deprecated` / `⚠`)、錯誤與致命(`Error` / `NG` / `err` / `bug` / `fail` / `FATAL` / `CRITICAL` / `PANIC` / `✗`)各自一種顏色
|
||||||
|
- `not ok` / `not found` 正確顯示為錯誤,不會被誤染成成功綠
|
||||||
|
- **數值分級取色**:百分比低於 20% 紅、20–50% 黃、50–80% 淺綠、80% 以上綠;結束代碼、HTTP 狀態碼、耗時同樣按數值分級取色
|
||||||
|
- **高亮模式三檔**:全部 / 僅基礎(只保留錯誤、成功、警告、危險命令、金鑰等關鍵規則,開銷約為全部的 1/4)/ 關閉(零開銷)
|
||||||
|
- 規則支援「忽略大小寫」與「數值分級」開關,編輯器內可用測試文字即時預覽著色效果
|
||||||
|
- 規則可匯入 / 匯出 JSON,方便團隊分享同一套配色
|
||||||
|
- **按主機規則集**:可把規則子集存成命名規則集,並在 SSH 連線編輯裡綁定給某台主機(預設關,未綁定的主機跑全部規則)
|
||||||
|
- **命中/耗時統計**:每條規則在本工作階段的命中次數與掃描耗時(預設關,關閉時零開銷)
|
||||||
|
- **高亮顏色跟隨終端機主題**:規則顏色映射到目前主題的調色盤,換主題不再突兀(預設關)
|
||||||
|
|
||||||
|
- 高亮設定頁新增分類欄(安全 / 狀態 / 檔案 / 網路 / 文字 / 數值),可按分類分組檢視規則
|
||||||
|
- 修復高亮設定頁工具列在窄視窗下標籤被擠成直排、按鈕不靠右的問題
|
||||||
|
|
||||||
|
- 新增關鍵詞高亮規則迴歸測試(詞邊界、大小寫、反向詞、數值分級、匯入匯出、分塊流),`npm test` 全量通過
|
||||||
|
|
||||||
## v1.0.15 - 2026-09-20
|
## v1.0.15 - 2026-09-20
|
||||||
|
|
||||||
- **自訂終端機背景圖片**:設定 → 主題 → 背景圖片,可為終端機指定任意本機圖片作為背景,並支援 10%–100% 的圖片不透明度調整;移除圖片後恢復純色背景
|
- **自訂終端機背景圖片**:設定 → 主題 → 背景圖片,可為終端機指定任意本機圖片作為背景,並支援 10%–100% 的圖片不透明度調整;移除圖片後恢復純色背景
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "open-terminal",
|
"name": "open-terminal",
|
||||||
"productName": "OpenTerminal",
|
"productName": "OpenTerminal",
|
||||||
"version": "1.0.15",
|
"version": "1.0.16",
|
||||||
"description": "Open-source terminal with SSH, split panes, themes and fonts",
|
"description": "Open-source terminal with SSH, split panes, themes and fonts",
|
||||||
"main": "out/main/index.js",
|
"main": "out/main/index.js",
|
||||||
"author": "CodingPlan.Site",
|
"author": "CodingPlan.Site",
|
||||||
|
|||||||
Reference in new issue
Block a user