From 6ce5e0be7dedfb80ab2a26fcce096ece8a3ca310 Mon Sep 17 00:00:00 2001 From: posimai Date: Tue, 21 Apr 2026 14:39:48 +0900 Subject: [PATCH] =?UTF-8?q?feat(pc-audit):=20=E8=87=AA=E5=8B=95=E8=AA=AD?= =?UTF-8?q?=E3=81=BF=E8=BE=BC=E3=81=BF=E3=83=BB=E3=83=95=E3=82=A3=E3=83=AB?= =?UTF-8?q?=E3=82=BF=E3=83=BB=E3=82=B9=E3=82=AF=E3=83=AD=E3=83=BC=E3=83=AB?= =?UTF-8?q?=E5=9B=BA=E5=AE=9A=E6=9E=A0=E3=83=BB=E5=B7=AE=E5=88=862?= =?UTF-8?q?=E3=82=AB=E3=83=A9=E3=83=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - BAT: JSON をレポートHTMLにインジェクトして一時ファイルで開く(file選択不要) - report-viewer: AUDIT_PRELOAD 対応・「別ファイルを読む」リンクでフォールバック - チェック項目:固定高さスクロール枠 + 全て/注意のみ/情報のみフィルタ - ポート一覧:固定高さスクロール枠 + 全て/全IF/localhost/個別アドレスフィルタ - thead sticky で列ヘッダが常時表示 - 差分カード:4メトリクスを2×2グリッドに変更 Co-Authored-By: Claude Sonnet 4.6 --- tools/pc-audit/Run-Portable-Share.bat | 25 ++ tools/pc-audit/Run-Portable.bat | 25 ++ tools/pc-audit/report-viewer.html | 441 ++++++++++++++++++-------- 3 files changed, 355 insertions(+), 136 deletions(-) create mode 100644 tools/pc-audit/Run-Portable-Share.bat create mode 100644 tools/pc-audit/Run-Portable.bat diff --git a/tools/pc-audit/Run-Portable-Share.bat b/tools/pc-audit/Run-Portable-Share.bat new file mode 100644 index 00000000..fa79ba05 --- /dev/null +++ b/tools/pc-audit/Run-Portable-Share.bat @@ -0,0 +1,25 @@ +@echo off +setlocal +cd /d "%~dp0" +echo. +echo === Posimai PC Audit (portable, share-safe) === +echo. +powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0Invoke-PcAudit.ps1" -ShareSafe +if errorlevel 1 ( + echo. + echo ERROR: Audit failed. PowerShell 5.1+ is required. + pause + exit /b 1 +) +echo. +echo Opening report viewer (share-safe)... +powershell -NoProfile -Command ^ + "$j=[System.IO.File]::ReadAllText('%~dp0out\latest.json',[System.Text.Encoding]::UTF8);" ^ + "$t=[System.IO.File]::ReadAllText('%~dp0report-viewer.html',[System.Text.Encoding]::UTF8);" ^ + "$s='';" ^ + "$o=$t.Replace('',$s);" ^ + "$p=[System.IO.Path]::Combine([System.IO.Path]::GetTempPath(),'pc-audit-report.html');" ^ + "[System.IO.File]::WriteAllText($p,$o,[System.Text.Encoding]::UTF8);" ^ + "Start-Process $p" +echo. +pause diff --git a/tools/pc-audit/Run-Portable.bat b/tools/pc-audit/Run-Portable.bat new file mode 100644 index 00000000..cc6a118a --- /dev/null +++ b/tools/pc-audit/Run-Portable.bat @@ -0,0 +1,25 @@ +@echo off +setlocal +cd /d "%~dp0" +echo. +echo === Posimai PC Audit (portable) === +echo. +powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0Invoke-PcAudit.ps1" +if errorlevel 1 ( + echo. + echo ERROR: Audit failed. PowerShell 5.1+ is required. + pause + exit /b 1 +) +echo. +echo Opening report viewer... +powershell -NoProfile -Command ^ + "$j=[System.IO.File]::ReadAllText('%~dp0out\latest.json',[System.Text.Encoding]::UTF8);" ^ + "$t=[System.IO.File]::ReadAllText('%~dp0report-viewer.html',[System.Text.Encoding]::UTF8);" ^ + "$s='';" ^ + "$o=$t.Replace('',$s);" ^ + "$p=[System.IO.Path]::Combine([System.IO.Path]::GetTempPath(),'pc-audit-report.html');" ^ + "[System.IO.File]::WriteAllText($p,$o,[System.Text.Encoding]::UTF8);" ^ + "Start-Process $p" +echo. +pause diff --git a/tools/pc-audit/report-viewer.html b/tools/pc-audit/report-viewer.html index bc766b92..ea81081e 100644 --- a/tools/pc-audit/report-viewer.html +++ b/tools/pc-audit/report-viewer.html @@ -4,6 +4,7 @@ PC Audit — Posimai +

PC Audit / Posimai

-

ブラウザ内のみで動作します。ファイルを選択しても外部にデータは一切送信されません。

+

ブラウザ内のみで動作。データは外部に送信されません。

- -
+
tools\pc-audit\out\latest.json

- + +