12 Commits
Author SHA1 Message Date
poli0981 6df370ec68 Merge pull request #44 from poli0981/claude/v1.3.0-changelog
docs(changelog): add 1.3.0 release notes
2026-06-26 23:17:51 +07:00
poli0981andClaude Opus 4.8 a587db3774 docs(changelog): add 1.3.0 release notes
Promote Unreleased to [1.3.0] (2026-06-26): 25 new commands + Storage
category, Simplified Chinese and Spanish UI languages, and the fixed
non-resizable main window. Update compare links.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-26 23:17:30 +07:00
poli0981 906170f4eb Merge pull request #43 from poli0981/claude/v1.3.0-commands
feat(catalog): add 25 new commands and a Storage category
2026-06-26 23:15:50 +07:00
poli0981andClaude Opus 4.8 dfac11c964 feat(catalog): add 25 new commands and a Storage category
Grows the catalog from 116 to 141 commands and adds an 11th category,
"Storage". All new commands are vetted, fixed catalog entries (no user
interpolation); admin ones run via the Elevator. No new Dangerous commands.

New category: storage (Optimize/defrag C:, Disk Management, list volumes
and free space, open Storage settings).

Other additions across existing groups:
- system-info: TPM status, Secure Boot state, computer & OS summary.
- network: network adapters, DNS servers, internet connectivity test.
- diagnostics: startup programs, Driver Verifier, Performance Monitor,
  system health report.
- cleanup: clear crash dumps, Windows Error Reporting, DNS+ARP caches.
- power: lid-close action and monitor-timeout toggles (revert pairs).
- tweaks-shortcuts: NumLock-at-startup and verbose sign-in toggles
  (revert pairs, with affectedRegistryValues).

Localization: 51 new keys (50 command + Cat_storage) added to all five
languages (EN authored; VI/JA/zh-Hans/ES machine-translated, flagged for
native review). ResxKeyTests enforces full parity.

Tests: CatalogTests category count 10 -> 11; added guards for the Storage
category and for "Dangerous commands must confirm". 195/195 passing.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-26 23:14:56 +07:00
poli0981 a592a64058 Merge pull request #42 from poli0981/claude/v1.3.0-languages
feat(i18n): add Simplified Chinese (zh-Hans) and Spanish (es) UI languages
2026-06-26 22:59:04 +07:00
poli0981andClaude Opus 4.8 a941710b29 feat(i18n): add Simplified Chinese (zh-Hans) and Spanish (es) UI languages
Adds two new UI languages, bringing the total to five (EN/VI/JA/zh-Hans/es).
Both new translations are machine-translated and flagged for native review,
matching how Japanese was introduced.

- Strings.zh-Hans.resx + Strings.es.resx: full parity with EN (501 keys),
  built by transforming the English resx so every key is present (no fallback).
- SettingsViewModel: add 简体中文 and Español language options.
- MainWindow.xaml: add the two View > Language menu items.
- ISettingsService: document the new culture codes.
- ResxKeyTests: assert key parity across all satellite cultures
  (vi/ja/zh-Hans/es), driven by a single SatelliteCultures list.
- LocalizationManagerTests: theory asserting each satellite actually loads
  (a translated string, not an English fallback) via the live-switch path.

Translations: machine-generated; recommend native-speaker review before GA.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-26 22:58:08 +07:00
poli0981 bf10498fc0 Merge pull request #41 from poli0981/claude/v1.3.0-window-lock
feat(ui): lock main window to a fixed 1100x720 size (no resize/maximize)
2026-06-26 22:46:51 +07:00
poli0981andClaude Opus 4.8 612f191ce7 feat(ui): lock main window to a fixed 1100x720 size
The main window is now fixed and non-resizable (ResizeMode=NoResize),
removing the maximize button and resize grips. The F11 full-screen
toggle (which maximized to borderless) is removed as it conflicts with
a locked window.

- MainWindow.xaml: ResizeMode=NoResize; drop MinWidth/MinHeight; remove
  the View > Full screen menu item.
- MainWindow.xaml.cs: restore/save window position only (size and
  maximized state are fixed); remove ToggleFullScreen + F11 handler.
- KeyboardShortcutsDialog: drop the F11 row.
- ISettingsService: WindowWidth/Height/Maximized retained for config
  back-compat but no longer read or written.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-26 22:45:01 +07:00
poli0981 e084a6d636 Merge pull request #40 from poli0981/dependabot/nuget/tests/CommandForge.Tests/Microsoft.NET.Test.Sdk-18.7.0
deps: Bump Microsoft.NET.Test.Sdk from 18.6.0 to 18.7.0
2026-06-25 21:14:21 +07:00
poli0981 25e6064d38 Merge pull request #39 from poli0981/dependabot/github_actions/actions/checkout-7
ci: Bump actions/checkout from 6 to 7
2026-06-25 21:11:30 +07:00
dependabot[bot] 0ac6e067ee deps: Bump Microsoft.NET.Test.Sdk from 18.6.0 to 18.7.0
---
updated-dependencies:
- dependency-name: Microsoft.NET.Test.Sdk
  dependency-version: 18.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-24 10:25:56 +00:00
dependabot[bot] 873f1e8fea ci: Bump actions/checkout from 6 to 7
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-24 10:23:50 +00:00
20 changed files with 4541 additions and 110 deletions

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ jobs:
# WPF (net10.0-windows) only builds on Windows.
runs-on: windows-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- uses: actions/setup-dotnet@v5
with:
+1 -1
View File
@@ -24,7 +24,7 @@ jobs:
runs-on: windows-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- uses: actions/setup-dotnet@v5
with:
+1 -1
View File
@@ -24,7 +24,7 @@ jobs:
REPO_URL: https://github.com/poli0981/CommandForge
VT_API_KEY: ${{ secrets.VT_API_KEY }}
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- uses: actions/setup-dotnet@v5
with:
+19 -1
View File
@@ -7,6 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [1.3.0] — 2026-06-26
### Added
- **25 new commands and a new "Storage" category** (catalog grew from 116 to 141): optimize /
defragment C:, Disk Management, list volumes & free space, and open Storage settings; TPM status,
Secure Boot state and a computer & OS summary; network adapters, DNS servers and an internet
connectivity test; startup programs, Driver Verifier, Performance Monitor and a system health
report; clear crash dumps, Windows Error Reporting data and the DNS + ARP caches; lid-close and
monitor-timeout power toggles; and NumLock-at-startup and verbose sign-in toggles.
- **Two new UI languages — Simplified Chinese (简体中文) and Spanish (Español)** — joining English,
Vietnamese and Japanese. Selectable in Settings and the View menu and switching live without a
restart.
### Changed
- **Fixed main window size.** The main window is now a fixed 1100×720 and can no longer be resized
or maximized; the F11 full-screen shortcut has been removed.
## [1.2.0] — 2026-06-21
### Added
@@ -87,7 +104,8 @@ Initial public release.
checksums (and an optional VirusTotal scan). No telemetry — the only network use is checking
GitHub for updates.
[Unreleased]: https://github.com/poli0981/CommandForge/compare/v1.2.0...HEAD
[Unreleased]: https://github.com/poli0981/CommandForge/compare/v1.3.0...HEAD
[1.3.0]: https://github.com/poli0981/CommandForge/compare/v1.2.0...v1.3.0
[1.2.0]: https://github.com/poli0981/CommandForge/compare/v1.1.1...v1.2.0
[1.1.1]: https://github.com/poli0981/CommandForge/compare/v1.1.0...v1.1.1
[1.1.0]: https://github.com/poli0981/CommandForge/compare/v1.0.0...v1.1.0
@@ -17,7 +17,7 @@ public interface ISettingsService
/// <summary>The UI color theme (default <see cref="AppTheme.System"/>).</summary>
public AppTheme Theme { get; set; }
/// <summary>UI language: <c>""</c> = follow OS, otherwise a culture code such as <c>"en"</c>, <c>"vi"</c> or <c>"ja"</c>.</summary>
/// <summary>UI language: <c>""</c> = follow OS, otherwise a culture code such as <c>"en"</c>, <c>"vi"</c>, <c>"ja"</c>, <c>"zh-Hans"</c> or <c>"es"</c>.</summary>
public string Language { get; set; }
/// <summary>The overall UI font size (default <see cref="FontScale.Medium"/>).</summary>
@@ -51,10 +51,16 @@ public interface ISettingsService
/// <summary>Recently-run command ids, most-recent first (default empty). Capped by the caller.</summary>
public IReadOnlyList<string> RecentCommandIds { get; set; }
/// <summary>Last main-window width in device-independent pixels, or <see langword="null"/> if never saved.</summary>
/// <summary>
/// Retained for config back-compat only. The main window is now a fixed, non-resizable size, so this
/// value is no longer read or written; it round-trips untouched for users upgrading from older versions.
/// </summary>
public double? WindowWidth { get; set; }
/// <summary>Last main-window height in device-independent pixels, or <see langword="null"/> if never saved.</summary>
/// <summary>
/// Retained for config back-compat only. The main window is now a fixed, non-resizable size, so this
/// value is no longer read or written; it round-trips untouched for users upgrading from older versions.
/// </summary>
public double? WindowHeight { get; set; }
/// <summary>Last main-window left position, or <see langword="null"/> if never saved (centre on launch).</summary>
@@ -63,7 +69,10 @@ public interface ISettingsService
/// <summary>Last main-window top position, or <see langword="null"/> if never saved (centre on launch).</summary>
public double? WindowTop { get; set; }
/// <summary>Whether the main window was maximized when last closed (default <see langword="false"/>).</summary>
/// <summary>
/// Retained for config back-compat only. The main window can no longer be maximized, so this value is
/// no longer read or written; it round-trips untouched for users upgrading from older versions.
/// </summary>
public bool WindowMaximized { get; set; }
/// <summary>Persists the current settings to disk.</summary>
@@ -8,5 +8,6 @@
{ "id": "system-info", "titleKey": "Cat_system-info", "icon": "Information", "order": 7 },
{ "id": "diagnostics", "titleKey": "Cat_diagnostics", "icon": "Stethoscope", "order": 8 },
{ "id": "security-privacy", "titleKey": "Cat_security-privacy", "icon": "ShieldLock", "order": 9 },
{ "id": "developer", "titleKey": "Cat_developer", "icon": "CodeBraces", "order": 10 }
{ "id": "developer", "titleKey": "Cat_developer", "icon": "CodeBraces", "order": 10 },
{ "id": "storage", "titleKey": "Cat_storage", "icon": "Harddisk", "order": 11 }
]
@@ -2259,5 +2259,497 @@
"affectedRegistryValues": [
{ "path": "HKLM\\SYSTEM\\CurrentControlSet\\Control\\FileSystem", "name": "LongPathsEnabled" }
]
},
{
"id": "info.tpm",
"categoryId": "system-info",
"titleKey": "Cmd_info.tpm_Title",
"descriptionKey": "Cmd_info.tpm_Desc",
"icon": "Chip",
"executable": "powershell",
"argsTemplate": "-NoProfile -Command \"Get-CimInstance -Namespace root/cimv2/Security/MicrosoftTpm -ClassName Win32_Tpm | Format-List IsEnabled_InitialValue,IsActivated_InitialValue,SpecVersion,ManufacturerIdTxt\"",
"requiresAdmin": false,
"dangerLevel": "Safe",
"confirmBeforeRun": false,
"createsRestorePoint": false,
"restart": "No",
"restartRegex": null,
"revertCommandId": null,
"estimatedDuration": "Short",
"docUrl": null,
"tags": ["tpm", "security", "hardware", "info"]
},
{
"id": "info.secureboot",
"categoryId": "system-info",
"titleKey": "Cmd_info.secureboot_Title",
"descriptionKey": "Cmd_info.secureboot_Desc",
"icon": "ShieldCheck",
"executable": "powershell",
"argsTemplate": "-NoProfile -Command \"try { 'Secure Boot enabled: ' + (Confirm-SecureBootUEFI) } catch { 'Secure Boot not available (legacy BIOS or unsupported).' }\"",
"requiresAdmin": true,
"dangerLevel": "Safe",
"confirmBeforeRun": false,
"createsRestorePoint": false,
"restart": "No",
"restartRegex": null,
"revertCommandId": null,
"estimatedDuration": "Short",
"docUrl": null,
"tags": ["secure boot", "uefi", "security", "info"]
},
{
"id": "info.product",
"categoryId": "system-info",
"titleKey": "Cmd_info.product_Title",
"descriptionKey": "Cmd_info.product_Desc",
"icon": "Laptop",
"executable": "powershell",
"argsTemplate": "-NoProfile -Command \"Get-CimInstance Win32_ComputerSystem | Format-List Manufacturer,Model,SystemFamily,TotalPhysicalMemory; Get-CimInstance Win32_OperatingSystem | Format-List Caption,Version,InstallDate\"",
"requiresAdmin": false,
"dangerLevel": "Safe",
"confirmBeforeRun": false,
"createsRestorePoint": false,
"restart": "No",
"restartRegex": null,
"revertCommandId": null,
"estimatedDuration": "Short",
"docUrl": null,
"tags": ["computer", "model", "os", "info"]
},
{
"id": "net.adapters",
"categoryId": "network",
"titleKey": "Cmd_net.adapters_Title",
"descriptionKey": "Cmd_net.adapters_Desc",
"icon": "Ethernet",
"executable": "powershell",
"argsTemplate": "-NoProfile -Command \"Get-NetAdapter | Select-Object Name,InterfaceDescription,Status,LinkSpeed | Format-Table -AutoSize\"",
"requiresAdmin": false,
"dangerLevel": "Safe",
"confirmBeforeRun": false,
"createsRestorePoint": false,
"restart": "No",
"restartRegex": null,
"revertCommandId": null,
"estimatedDuration": "Short",
"docUrl": null,
"tags": ["network", "adapter", "nic", "info"]
},
{
"id": "net.dnsservers",
"categoryId": "network",
"titleKey": "Cmd_net.dnsservers_Title",
"descriptionKey": "Cmd_net.dnsservers_Desc",
"icon": "Dns",
"executable": "powershell",
"argsTemplate": "-NoProfile -Command \"Get-DnsClientServerAddress | Where-Object ServerAddresses | Select-Object InterfaceAlias,AddressFamily,ServerAddresses | Format-Table -AutoSize\"",
"requiresAdmin": false,
"dangerLevel": "Safe",
"confirmBeforeRun": false,
"createsRestorePoint": false,
"restart": "No",
"restartRegex": null,
"revertCommandId": null,
"estimatedDuration": "Short",
"docUrl": null,
"tags": ["dns", "network", "server", "info"]
},
{
"id": "net.testconnection",
"categoryId": "network",
"titleKey": "Cmd_net.testconnection_Title",
"descriptionKey": "Cmd_net.testconnection_Desc",
"icon": "LanConnect",
"executable": "powershell",
"argsTemplate": "-NoProfile -Command \"Test-Connection -ComputerName 8.8.8.8 -Count 4\"",
"requiresAdmin": false,
"dangerLevel": "Safe",
"confirmBeforeRun": false,
"createsRestorePoint": false,
"restart": "No",
"restartRegex": null,
"revertCommandId": null,
"estimatedDuration": "Short",
"docUrl": null,
"tags": ["ping", "connectivity", "network", "test"]
},
{
"id": "diag.startup",
"categoryId": "diagnostics",
"titleKey": "Cmd_diag.startup_Title",
"descriptionKey": "Cmd_diag.startup_Desc",
"icon": "Rocket",
"executable": "powershell",
"argsTemplate": "-NoProfile -Command \"Get-CimInstance Win32_StartupCommand | Select-Object Name,Command,Location,User | Format-Table -AutoSize\"",
"requiresAdmin": false,
"dangerLevel": "Safe",
"confirmBeforeRun": false,
"createsRestorePoint": false,
"restart": "No",
"restartRegex": null,
"revertCommandId": null,
"estimatedDuration": "Short",
"docUrl": null,
"tags": ["startup", "autostart", "boot", "diagnostics"]
},
{
"id": "diag.driververifier",
"executionMode": "Launch",
"categoryId": "diagnostics",
"titleKey": "Cmd_diag.driververifier_Title",
"descriptionKey": "Cmd_diag.driververifier_Desc",
"icon": "ShieldSearch",
"executable": "verifier",
"argsTemplate": "",
"requiresAdmin": true,
"dangerLevel": "Caution",
"confirmBeforeRun": true,
"createsRestorePoint": false,
"restart": "No",
"restartRegex": null,
"revertCommandId": null,
"estimatedDuration": "Short",
"docUrl": null,
"tags": ["driver", "verifier", "diagnostics", "stability"]
},
{
"id": "diag.perfmon",
"executionMode": "Launch",
"categoryId": "diagnostics",
"titleKey": "Cmd_diag.perfmon_Title",
"descriptionKey": "Cmd_diag.perfmon_Desc",
"icon": "ChartLine",
"executable": "perfmon",
"argsTemplate": "",
"requiresAdmin": false,
"dangerLevel": "Safe",
"confirmBeforeRun": false,
"createsRestorePoint": false,
"restart": "No",
"restartRegex": null,
"revertCommandId": null,
"estimatedDuration": "Short",
"docUrl": null,
"tags": ["performance", "monitor", "diagnostics"]
},
{
"id": "diag.systemhealth",
"executionMode": "Launch",
"categoryId": "diagnostics",
"titleKey": "Cmd_diag.systemhealth_Title",
"descriptionKey": "Cmd_diag.systemhealth_Desc",
"icon": "ClipboardPulse",
"executable": "perfmon",
"argsTemplate": "/report",
"requiresAdmin": true,
"dangerLevel": "Safe",
"confirmBeforeRun": false,
"createsRestorePoint": false,
"restart": "No",
"restartRegex": null,
"revertCommandId": null,
"estimatedDuration": "Medium",
"docUrl": null,
"tags": ["health", "report", "diagnostics", "performance"]
},
{
"id": "clean.dumps",
"categoryId": "cleanup",
"titleKey": "Cmd_clean.dumps_Title",
"descriptionKey": "Cmd_clean.dumps_Desc",
"icon": "DeleteSweep",
"executable": "powershell",
"argsTemplate": "-NoProfile -Command \"Remove-Item -Path (Join-Path $env:SystemRoot 'Minidump\\*') -Recurse -Force -ErrorAction SilentlyContinue; Remove-Item -Path (Join-Path $env:SystemRoot 'MEMORY.DMP') -Force -ErrorAction SilentlyContinue; Write-Output 'Crash dumps cleared.'\"",
"requiresAdmin": true,
"dangerLevel": "Caution",
"confirmBeforeRun": true,
"createsRestorePoint": false,
"restart": "No",
"restartRegex": null,
"revertCommandId": null,
"estimatedDuration": "Short",
"docUrl": null,
"tags": ["crash", "dump", "cleanup", "disk"]
},
{
"id": "clean.errorreports",
"categoryId": "cleanup",
"titleKey": "Cmd_clean.errorreports_Title",
"descriptionKey": "Cmd_clean.errorreports_Desc",
"icon": "FileAlertOutline",
"executable": "powershell",
"argsTemplate": "-NoProfile -Command \"Remove-Item -Path (Join-Path $env:ProgramData 'Microsoft\\Windows\\WER\\*') -Recurse -Force -ErrorAction SilentlyContinue; Write-Output 'Windows Error Reporting data cleared.'\"",
"requiresAdmin": true,
"dangerLevel": "Caution",
"confirmBeforeRun": true,
"createsRestorePoint": false,
"restart": "No",
"restartRegex": null,
"revertCommandId": null,
"estimatedDuration": "Short",
"docUrl": null,
"tags": ["wer", "error reporting", "cleanup", "disk"]
},
{
"id": "clean.dnsarp",
"categoryId": "cleanup",
"titleKey": "Cmd_clean.dnsarp_Title",
"descriptionKey": "Cmd_clean.dnsarp_Desc",
"icon": "Broom",
"executable": "powershell",
"argsTemplate": "-NoProfile -Command \"ipconfig /flushdns | Out-Null; arp -d * 2>$null; Write-Output 'DNS and ARP caches cleared.'\"",
"requiresAdmin": true,
"dangerLevel": "Caution",
"confirmBeforeRun": true,
"createsRestorePoint": false,
"restart": "No",
"restartRegex": null,
"revertCommandId": null,
"estimatedDuration": "Short",
"docUrl": null,
"tags": ["dns", "arp", "cache", "network", "cleanup"]
},
{
"id": "power.lidclose.donothing",
"categoryId": "power",
"titleKey": "Cmd_power.lidclose.donothing_Title",
"descriptionKey": "Cmd_power.lidclose.donothing_Desc",
"icon": "Laptop",
"executable": "powercfg",
"argsTemplate": "/setacvalueindex SCHEME_CURRENT SUB_BUTTONS LIDACTION 0",
"requiresAdmin": true,
"dangerLevel": "Caution",
"confirmBeforeRun": true,
"createsRestorePoint": false,
"restart": "No",
"restartRegex": null,
"revertCommandId": "power.lidclose.sleep",
"estimatedDuration": "Short",
"docUrl": null,
"tags": ["power", "lid", "laptop", "ac"]
},
{
"id": "power.lidclose.sleep",
"categoryId": "power",
"titleKey": "Cmd_power.lidclose.sleep_Title",
"descriptionKey": "Cmd_power.lidclose.sleep_Desc",
"icon": "PowerSleep",
"executable": "powercfg",
"argsTemplate": "/setacvalueindex SCHEME_CURRENT SUB_BUTTONS LIDACTION 1",
"requiresAdmin": true,
"dangerLevel": "Caution",
"confirmBeforeRun": true,
"createsRestorePoint": false,
"restart": "No",
"restartRegex": null,
"revertCommandId": "power.lidclose.donothing",
"estimatedDuration": "Short",
"docUrl": null,
"tags": ["power", "lid", "laptop", "ac"]
},
{
"id": "power.monitor.timeout15",
"categoryId": "power",
"titleKey": "Cmd_power.monitor.timeout15_Title",
"descriptionKey": "Cmd_power.monitor.timeout15_Desc",
"icon": "MonitorOff",
"executable": "powercfg",
"argsTemplate": "/change monitor-timeout-ac 15",
"requiresAdmin": false,
"dangerLevel": "Caution",
"confirmBeforeRun": true,
"createsRestorePoint": false,
"restart": "No",
"restartRegex": null,
"revertCommandId": "power.monitor.timeout10",
"estimatedDuration": "Short",
"docUrl": null,
"tags": ["power", "display", "timeout", "ac"]
},
{
"id": "power.monitor.timeout10",
"categoryId": "power",
"titleKey": "Cmd_power.monitor.timeout10_Title",
"descriptionKey": "Cmd_power.monitor.timeout10_Desc",
"icon": "Monitor",
"executable": "powercfg",
"argsTemplate": "/change monitor-timeout-ac 10",
"requiresAdmin": false,
"dangerLevel": "Caution",
"confirmBeforeRun": true,
"createsRestorePoint": false,
"restart": "No",
"restartRegex": null,
"revertCommandId": "power.monitor.timeout15",
"estimatedDuration": "Short",
"docUrl": null,
"tags": ["power", "display", "timeout", "ac"]
},
{
"id": "tweak.numlock.on",
"categoryId": "tweaks-shortcuts",
"titleKey": "Cmd_tweak.numlock.on_Title",
"descriptionKey": "Cmd_tweak.numlock.on_Desc",
"icon": "Keyboard",
"executable": "reg",
"argsTemplate": "add \"HKU\\.DEFAULT\\Control Panel\\Keyboard\" /v InitialKeyboardIndicators /t REG_SZ /d 2147483650 /f",
"requiresAdmin": true,
"dangerLevel": "Caution",
"confirmBeforeRun": true,
"createsRestorePoint": false,
"restart": "No",
"restartRegex": null,
"revertCommandId": "tweak.numlock.off",
"estimatedDuration": "Short",
"docUrl": null,
"tags": ["numlock", "keyboard", "startup", "registry", "tweak"],
"affectedRegistryValues": [
{ "path": "HKU\\.DEFAULT\\Control Panel\\Keyboard", "name": "InitialKeyboardIndicators" }
]
},
{
"id": "tweak.numlock.off",
"categoryId": "tweaks-shortcuts",
"titleKey": "Cmd_tweak.numlock.off_Title",
"descriptionKey": "Cmd_tweak.numlock.off_Desc",
"icon": "Keyboard",
"executable": "reg",
"argsTemplate": "add \"HKU\\.DEFAULT\\Control Panel\\Keyboard\" /v InitialKeyboardIndicators /t REG_SZ /d 2147483648 /f",
"requiresAdmin": true,
"dangerLevel": "Caution",
"confirmBeforeRun": true,
"createsRestorePoint": false,
"restart": "No",
"restartRegex": null,
"revertCommandId": "tweak.numlock.on",
"estimatedDuration": "Short",
"docUrl": null,
"tags": ["numlock", "keyboard", "startup", "registry", "tweak"],
"affectedRegistryValues": [
{ "path": "HKU\\.DEFAULT\\Control Panel\\Keyboard", "name": "InitialKeyboardIndicators" }
]
},
{
"id": "tweak.verbosestatus.on",
"categoryId": "tweaks-shortcuts",
"titleKey": "Cmd_tweak.verbosestatus.on_Title",
"descriptionKey": "Cmd_tweak.verbosestatus.on_Desc",
"icon": "MessageTextOutline",
"executable": "reg",
"argsTemplate": "add \"HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\" /v VerboseStatus /t REG_DWORD /d 1 /f",
"requiresAdmin": true,
"dangerLevel": "Caution",
"confirmBeforeRun": true,
"createsRestorePoint": false,
"restart": "No",
"restartRegex": null,
"revertCommandId": "tweak.verbosestatus.off",
"estimatedDuration": "Short",
"docUrl": null,
"tags": ["verbose", "signin", "startup", "registry", "tweak"],
"affectedRegistryValues": [
{ "path": "HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System", "name": "VerboseStatus" }
]
},
{
"id": "tweak.verbosestatus.off",
"categoryId": "tweaks-shortcuts",
"titleKey": "Cmd_tweak.verbosestatus.off_Title",
"descriptionKey": "Cmd_tweak.verbosestatus.off_Desc",
"icon": "MessageTextOutline",
"executable": "reg",
"argsTemplate": "add \"HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\" /v VerboseStatus /t REG_DWORD /d 0 /f",
"requiresAdmin": true,
"dangerLevel": "Caution",
"confirmBeforeRun": true,
"createsRestorePoint": false,
"restart": "No",
"restartRegex": null,
"revertCommandId": "tweak.verbosestatus.on",
"estimatedDuration": "Short",
"docUrl": null,
"tags": ["verbose", "signin", "startup", "registry", "tweak"],
"affectedRegistryValues": [
{ "path": "HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System", "name": "VerboseStatus" }
]
},
{
"id": "storage.optimize",
"categoryId": "storage",
"titleKey": "Cmd_storage.optimize_Title",
"descriptionKey": "Cmd_storage.optimize_Desc",
"icon": "Harddisk",
"executable": "powershell",
"argsTemplate": "-NoProfile -Command \"Optimize-Volume -DriveLetter C -Verbose\"",
"requiresAdmin": true,
"dangerLevel": "Caution",
"confirmBeforeRun": true,
"createsRestorePoint": false,
"restart": "No",
"restartRegex": null,
"revertCommandId": null,
"estimatedDuration": "Long",
"docUrl": null,
"tags": ["optimize", "defrag", "trim", "ssd", "disk", "storage"]
},
{
"id": "storage.diskmgmt",
"executionMode": "Launch",
"categoryId": "storage",
"titleKey": "Cmd_storage.diskmgmt_Title",
"descriptionKey": "Cmd_storage.diskmgmt_Desc",
"icon": "Harddisk",
"executable": "diskmgmt.msc",
"argsTemplate": "",
"requiresAdmin": false,
"dangerLevel": "Safe",
"confirmBeforeRun": false,
"createsRestorePoint": false,
"restart": "No",
"restartRegex": null,
"revertCommandId": null,
"estimatedDuration": "Short",
"docUrl": null,
"tags": ["disk management", "partition", "volume", "storage"]
},
{
"id": "storage.volumes",
"categoryId": "storage",
"titleKey": "Cmd_storage.volumes_Title",
"descriptionKey": "Cmd_storage.volumes_Desc",
"icon": "Database",
"executable": "powershell",
"argsTemplate": "-NoProfile -Command \"Get-Volume | Select-Object DriveLetter,FileSystemLabel,FileSystem,@{N='SizeGB';E={[math]::Round($_.Size/1GB,1)}},@{N='FreeGB';E={[math]::Round($_.SizeRemaining/1GB,1)}} | Format-Table -AutoSize\"",
"requiresAdmin": false,
"dangerLevel": "Safe",
"confirmBeforeRun": false,
"createsRestorePoint": false,
"restart": "No",
"restartRegex": null,
"revertCommandId": null,
"estimatedDuration": "Short",
"docUrl": null,
"tags": ["volumes", "disk", "free space", "storage", "info"]
},
{
"id": "storage.storagesense",
"executionMode": "Launch",
"categoryId": "storage",
"titleKey": "Cmd_storage.storagesense_Title",
"descriptionKey": "Cmd_storage.storagesense_Desc",
"icon": "Cog",
"executable": "explorer",
"argsTemplate": "ms-settings:storagepolicies",
"requiresAdmin": false,
"dangerLevel": "Safe",
"confirmBeforeRun": false,
"createsRestorePoint": false,
"restart": "No",
"restartRegex": null,
"revertCommandId": null,
"estimatedDuration": "Short",
"docUrl": null,
"tags": ["storage sense", "cleanup", "settings", "storage"]
}
]
File diff suppressed because it is too large. Load diff
@@ -1565,4 +1565,157 @@
<data name="Cmd_dev.longpaths.off_Desc" xml:space="preserve">
<value>Win32 の長いパスのサポートを無効にします(既定に戻します)。</value>
</data>
<data name="Cat_storage" xml:space="preserve">
<value>ストレージ</value>
</data>
<data name="Cmd_info.tpm_Title" xml:space="preserve">
<value>TPM の状態</value>
</data>
<data name="Cmd_info.tpm_Desc" xml:space="preserve">
<value>TPM(トラステッド プラットフォーム モジュール)の有無、バージョン、利用可否を表示します。</value>
</data>
<data name="Cmd_info.secureboot_Title" xml:space="preserve">
<value>Secure Boot の状態</value>
</data>
<data name="Cmd_info.secureboot_Desc" xml:space="preserve">
<value>UEFI Secure Boot が有効かどうかを表示します。</value>
</data>
<data name="Cmd_info.product_Title" xml:space="preserve">
<value>コンピューターと OS の概要</value>
</data>
<data name="Cmd_info.product_Desc" xml:space="preserve">
<value>製造元、モデル、OS のエディション、インストール日を表示します。</value>
</data>
<data name="Cmd_net.adapters_Title" xml:space="preserve">
<value>ネットワーク アダプター</value>
</data>
<data name="Cmd_net.adapters_Desc" xml:space="preserve">
<value>ネットワーク アダプターの状態とリンク速度を一覧表示します。</value>
</data>
<data name="Cmd_net.dnsservers_Title" xml:space="preserve">
<value>DNS サーバー</value>
</data>
<data name="Cmd_net.dnsservers_Desc" xml:space="preserve">
<value>各アダプターに設定されている DNS サーバーのアドレスを一覧表示します。</value>
</data>
<data name="Cmd_net.testconnection_Title" xml:space="preserve">
<value>インターネット接続をテスト</value>
</data>
<data name="Cmd_net.testconnection_Desc" xml:space="preserve">
<value>パブリック ホストに ping を実行してインターネット接続を確認します。</value>
</data>
<data name="Cmd_diag.startup_Title" xml:space="preserve">
<value>スタートアップ プログラム</value>
</data>
<data name="Cmd_diag.startup_Desc" xml:space="preserve">
<value>サインイン時に実行されるよう設定されているプログラムを一覧表示します。</value>
</data>
<data name="Cmd_diag.driververifier_Title" xml:space="preserve">
<value>Driver Verifier マネージャー</value>
</data>
<data name="Cmd_diag.driververifier_Desc" xml:space="preserve">
<value>Driver Verifier を開いてデバイス ドライバーのストレス テストを行います(上級者向け)。</value>
</data>
<data name="Cmd_diag.perfmon_Title" xml:space="preserve">
<value>Performance Monitor</value>
</data>
<data name="Cmd_diag.perfmon_Desc" xml:space="preserve">
<value>Performance Monitor の完全なコンソールを開きます。</value>
</data>
<data name="Cmd_diag.systemhealth_Title" xml:space="preserve">
<value>システム正常性レポート</value>
</data>
<data name="Cmd_diag.systemhealth_Desc" xml:space="preserve">
<value>システム診断レポートを生成します(約 1 分かかります)。</value>
</data>
<data name="Cmd_clean.dumps_Title" xml:space="preserve">
<value>クラッシュ ダンプを削除</value>
</data>
<data name="Cmd_clean.dumps_Desc" xml:space="preserve">
<value>保存されたメモリ ダンプとミニダンプのファイルを削除します。</value>
</data>
<data name="Cmd_clean.errorreports_Title" xml:space="preserve">
<value>エラー報告データを削除</value>
</data>
<data name="Cmd_clean.errorreports_Desc" xml:space="preserve">
<value>キューに溜まった Windows エラー報告のファイルを削除します。</value>
</data>
<data name="Cmd_clean.dnsarp_Title" xml:space="preserve">
<value>DNS と ARP のキャッシュを削除</value>
</data>
<data name="Cmd_clean.dnsarp_Desc" xml:space="preserve">
<value>DNS リゾルバー キャッシュと ARP テーブルをクリアします。</value>
</data>
<data name="Cmd_power.lidclose.donothing_Title" xml:space="preserve">
<value>カバーを閉じたとき: 何もしない(電源接続時)</value>
</data>
<data name="Cmd_power.lidclose.donothing_Desc" xml:space="preserve">
<value>AC power 接続時にカバーを閉じてもノート PC をスリープさせません。</value>
</data>
<data name="Cmd_power.lidclose.sleep_Title" xml:space="preserve">
<value>カバーを閉じたとき: スリープ(電源接続時)</value>
</data>
<data name="Cmd_power.lidclose.sleep_Desc" xml:space="preserve">
<value>AC power 接続時にカバーを閉じるとノート PC をスリープさせます。</value>
</data>
<data name="Cmd_power.monitor.timeout15_Title" xml:space="preserve">
<value>15 分後に画面をオフ</value>
</data>
<data name="Cmd_power.monitor.timeout15_Desc" xml:space="preserve">
<value>AC power 接続時、15 分後にディスプレイをオフにします。</value>
</data>
<data name="Cmd_power.monitor.timeout10_Title" xml:space="preserve">
<value>10 分後に画面をオフ</value>
</data>
<data name="Cmd_power.monitor.timeout10_Desc" xml:space="preserve">
<value>AC power 接続時、10 分後にディスプレイをオフにします(既定)。</value>
</data>
<data name="Cmd_tweak.numlock.on_Title" xml:space="preserve">
<value>起動時に NumLock をオン</value>
</data>
<data name="Cmd_tweak.numlock.on_Desc" xml:space="preserve">
<value>起動時とサインイン画面で NumLock を有効にします。</value>
</data>
<data name="Cmd_tweak.numlock.off_Title" xml:space="preserve">
<value>起動時に NumLock をオフ</value>
</data>
<data name="Cmd_tweak.numlock.off_Desc" xml:space="preserve">
<value>起動時とサインイン画面で NumLock を無効にします。</value>
</data>
<data name="Cmd_tweak.verbosestatus.on_Title" xml:space="preserve">
<value>サインイン時の詳細メッセージをオン</value>
</data>
<data name="Cmd_tweak.verbosestatus.on_Desc" xml:space="preserve">
<value>起動時とシャットダウン時に詳細な状態メッセージを表示します。</value>
</data>
<data name="Cmd_tweak.verbosestatus.off_Title" xml:space="preserve">
<value>サインイン時の詳細メッセージをオフ</value>
</data>
<data name="Cmd_tweak.verbosestatus.off_Desc" xml:space="preserve">
<value>起動時とシャットダウン時のメッセージを通常表示に戻します。</value>
</data>
<data name="Cmd_storage.optimize_Title" xml:space="preserve">
<value>C: の最適化 / デフラグ</value>
</data>
<data name="Cmd_storage.optimize_Desc" xml:space="preserve">
<value>C: ドライブを最適化します(SSD は TRIM、HDD はデフラグ)。</value>
</data>
<data name="Cmd_storage.diskmgmt_Title" xml:space="preserve">
<value>Disk Management</value>
</data>
<data name="Cmd_storage.diskmgmt_Desc" xml:space="preserve">
<value>Disk Management コンソールを開きます。</value>
</data>
<data name="Cmd_storage.volumes_Title" xml:space="preserve">
<value>ボリュームと空き容量を一覧表示</value>
</data>
<data name="Cmd_storage.volumes_Desc" xml:space="preserve">
<value>ボリュームのファイル システムと空き容量を表示します。</value>
</data>
<data name="Cmd_storage.storagesense_Title" xml:space="preserve">
<value>ストレージ設定を開く</value>
</data>
<data name="Cmd_storage.storagesense_Desc" xml:space="preserve">
<value>Windows のストレージ設定を開いて Storage Sense を管理します。</value>
</data>
</root>
+153
View File
@@ -1565,4 +1565,157 @@ Continue?</value>
<data name="Cmd_dev.longpaths.off_Desc" xml:space="preserve">
<value>Disable Win32 long path support (back to the default).</value>
</data>
<data name="Cat_storage" xml:space="preserve">
<value>Storage</value>
</data>
<data name="Cmd_info.tpm_Title" xml:space="preserve">
<value>TPM Status</value>
</data>
<data name="Cmd_info.tpm_Desc" xml:space="preserve">
<value>Show Trusted Platform Module presence, version, and readiness.</value>
</data>
<data name="Cmd_info.secureboot_Title" xml:space="preserve">
<value>Secure Boot State</value>
</data>
<data name="Cmd_info.secureboot_Desc" xml:space="preserve">
<value>Report whether UEFI Secure Boot is enabled.</value>
</data>
<data name="Cmd_info.product_Title" xml:space="preserve">
<value>Computer &amp; OS Summary</value>
</data>
<data name="Cmd_info.product_Desc" xml:space="preserve">
<value>Show manufacturer, model, OS edition, and install date.</value>
</data>
<data name="Cmd_net.adapters_Title" xml:space="preserve">
<value>Network Adapters</value>
</data>
<data name="Cmd_net.adapters_Desc" xml:space="preserve">
<value>List network adapters with their status and link speed.</value>
</data>
<data name="Cmd_net.dnsservers_Title" xml:space="preserve">
<value>DNS Servers</value>
</data>
<data name="Cmd_net.dnsservers_Desc" xml:space="preserve">
<value>List the configured DNS server addresses for each adapter.</value>
</data>
<data name="Cmd_net.testconnection_Title" xml:space="preserve">
<value>Test Internet Connection</value>
</data>
<data name="Cmd_net.testconnection_Desc" xml:space="preserve">
<value>Ping a public host to check internet connectivity.</value>
</data>
<data name="Cmd_diag.startup_Title" xml:space="preserve">
<value>Startup Programs</value>
</data>
<data name="Cmd_diag.startup_Desc" xml:space="preserve">
<value>List the programs configured to run at sign-in.</value>
</data>
<data name="Cmd_diag.driververifier_Title" xml:space="preserve">
<value>Driver Verifier Manager</value>
</data>
<data name="Cmd_diag.driververifier_Desc" xml:space="preserve">
<value>Open Driver Verifier to stress-test device drivers (advanced).</value>
</data>
<data name="Cmd_diag.perfmon_Title" xml:space="preserve">
<value>Performance Monitor</value>
</data>
<data name="Cmd_diag.perfmon_Desc" xml:space="preserve">
<value>Open the full Performance Monitor console.</value>
</data>
<data name="Cmd_diag.systemhealth_Title" xml:space="preserve">
<value>System Health Report</value>
</data>
<data name="Cmd_diag.systemhealth_Desc" xml:space="preserve">
<value>Generate a system diagnostics report (takes about a minute).</value>
</data>
<data name="Cmd_clean.dumps_Title" xml:space="preserve">
<value>Clear Crash Dumps</value>
</data>
<data name="Cmd_clean.dumps_Desc" xml:space="preserve">
<value>Delete saved memory dump and minidump files.</value>
</data>
<data name="Cmd_clean.errorreports_Title" xml:space="preserve">
<value>Clear Error Reporting Data</value>
</data>
<data name="Cmd_clean.errorreports_Desc" xml:space="preserve">
<value>Delete queued Windows Error Reporting files.</value>
</data>
<data name="Cmd_clean.dnsarp_Title" xml:space="preserve">
<value>Clear DNS &amp; ARP Caches</value>
</data>
<data name="Cmd_clean.dnsarp_Desc" xml:space="preserve">
<value>Flush the DNS resolver cache and the ARP table.</value>
</data>
<data name="Cmd_power.lidclose.donothing_Title" xml:space="preserve">
<value>Lid Close: Do Nothing (Plugged In)</value>
</data>
<data name="Cmd_power.lidclose.donothing_Desc" xml:space="preserve">
<value>Keep the laptop awake when the lid is closed on AC power.</value>
</data>
<data name="Cmd_power.lidclose.sleep_Title" xml:space="preserve">
<value>Lid Close: Sleep (Plugged In)</value>
</data>
<data name="Cmd_power.lidclose.sleep_Desc" xml:space="preserve">
<value>Put the laptop to sleep when the lid is closed on AC power.</value>
</data>
<data name="Cmd_power.monitor.timeout15_Title" xml:space="preserve">
<value>Screen Off After 15 Minutes</value>
</data>
<data name="Cmd_power.monitor.timeout15_Desc" xml:space="preserve">
<value>Turn off the display after 15 minutes on AC power.</value>
</data>
<data name="Cmd_power.monitor.timeout10_Title" xml:space="preserve">
<value>Screen Off After 10 Minutes</value>
</data>
<data name="Cmd_power.monitor.timeout10_Desc" xml:space="preserve">
<value>Turn off the display after 10 minutes on AC power (default).</value>
</data>
<data name="Cmd_tweak.numlock.on_Title" xml:space="preserve">
<value>NumLock On at Startup</value>
</data>
<data name="Cmd_tweak.numlock.on_Desc" xml:space="preserve">
<value>Enable NumLock at boot and on the sign-in screen.</value>
</data>
<data name="Cmd_tweak.numlock.off_Title" xml:space="preserve">
<value>NumLock Off at Startup</value>
</data>
<data name="Cmd_tweak.numlock.off_Desc" xml:space="preserve">
<value>Disable NumLock at boot and on the sign-in screen.</value>
</data>
<data name="Cmd_tweak.verbosestatus.on_Title" xml:space="preserve">
<value>Verbose Sign-in Messages On</value>
</data>
<data name="Cmd_tweak.verbosestatus.on_Desc" xml:space="preserve">
<value>Show detailed status messages during startup and shutdown.</value>
</data>
<data name="Cmd_tweak.verbosestatus.off_Title" xml:space="preserve">
<value>Verbose Sign-in Messages Off</value>
</data>
<data name="Cmd_tweak.verbosestatus.off_Desc" xml:space="preserve">
<value>Restore the normal startup and shutdown messages.</value>
</data>
<data name="Cmd_storage.optimize_Title" xml:space="preserve">
<value>Optimize / Defragment C:</value>
</data>
<data name="Cmd_storage.optimize_Desc" xml:space="preserve">
<value>Optimize the C: drive (TRIM for SSDs, defragment for HDDs).</value>
</data>
<data name="Cmd_storage.diskmgmt_Title" xml:space="preserve">
<value>Disk Management</value>
</data>
<data name="Cmd_storage.diskmgmt_Desc" xml:space="preserve">
<value>Open the Disk Management console.</value>
</data>
<data name="Cmd_storage.volumes_Title" xml:space="preserve">
<value>List Volumes &amp; Free Space</value>
</data>
<data name="Cmd_storage.volumes_Desc" xml:space="preserve">
<value>Show volumes with their file system and free space.</value>
</data>
<data name="Cmd_storage.storagesense_Title" xml:space="preserve">
<value>Open Storage Settings</value>
</data>
<data name="Cmd_storage.storagesense_Desc" xml:space="preserve">
<value>Open Windows Storage settings to manage Storage Sense.</value>
</data>
</root>
@@ -1565,4 +1565,157 @@ Tiếp tục?</value>
<data name="Cmd_dev.longpaths.off_Desc" xml:space="preserve">
<value>Tắt hỗ trợ đường dẫn dài Win32 (về mặc định).</value>
</data>
<data name="Cat_storage" xml:space="preserve">
<value>Lưu trữ</value>
</data>
<data name="Cmd_info.tpm_Title" xml:space="preserve">
<value>Trạng thái TPM</value>
</data>
<data name="Cmd_info.tpm_Desc" xml:space="preserve">
<value>Hiển thị sự hiện diện, phiên bản và mức độ sẵn sàng của Trusted Platform Module (TPM).</value>
</data>
<data name="Cmd_info.secureboot_Title" xml:space="preserve">
<value>Trạng thái Secure Boot</value>
</data>
<data name="Cmd_info.secureboot_Desc" xml:space="preserve">
<value>Báo cáo Secure Boot của UEFI có được bật hay không.</value>
</data>
<data name="Cmd_info.product_Title" xml:space="preserve">
<value>Tóm tắt máy tính &amp; hệ điều hành</value>
</data>
<data name="Cmd_info.product_Desc" xml:space="preserve">
<value>Hiển thị nhà sản xuất, kiểu máy, phiên bản hệ điều hành và ngày cài đặt.</value>
</data>
<data name="Cmd_net.adapters_Title" xml:space="preserve">
<value>Bộ điều hợp mạng</value>
</data>
<data name="Cmd_net.adapters_Desc" xml:space="preserve">
<value>Liệt kê các bộ điều hợp mạng cùng trạng thái và tốc độ kết nối.</value>
</data>
<data name="Cmd_net.dnsservers_Title" xml:space="preserve">
<value>Máy chủ DNS</value>
</data>
<data name="Cmd_net.dnsservers_Desc" xml:space="preserve">
<value>Liệt kê các địa chỉ máy chủ DNS đã cấu hình cho từng bộ điều hợp.</value>
</data>
<data name="Cmd_net.testconnection_Title" xml:space="preserve">
<value>Kiểm tra kết nối Internet</value>
</data>
<data name="Cmd_net.testconnection_Desc" xml:space="preserve">
<value>Ping đến một máy chủ công cộng để kiểm tra kết nối Internet.</value>
</data>
<data name="Cmd_diag.startup_Title" xml:space="preserve">
<value>Chương trình khởi động</value>
</data>
<data name="Cmd_diag.startup_Desc" xml:space="preserve">
<value>Liệt kê các chương trình được cấu hình chạy khi đăng nhập.</value>
</data>
<data name="Cmd_diag.driververifier_Title" xml:space="preserve">
<value>Trình quản lý Driver Verifier</value>
</data>
<data name="Cmd_diag.driververifier_Desc" xml:space="preserve">
<value>Mở Driver Verifier để kiểm tra áp lực các driver thiết bị (nâng cao).</value>
</data>
<data name="Cmd_diag.perfmon_Title" xml:space="preserve">
<value>Performance Monitor</value>
</data>
<data name="Cmd_diag.perfmon_Desc" xml:space="preserve">
<value>Mở bảng điều khiển Performance Monitor đầy đủ.</value>
</data>
<data name="Cmd_diag.systemhealth_Title" xml:space="preserve">
<value>Báo cáo tình trạng hệ thống</value>
</data>
<data name="Cmd_diag.systemhealth_Desc" xml:space="preserve">
<value>Tạo báo cáo chẩn đoán hệ thống (mất khoảng một phút).</value>
</data>
<data name="Cmd_clean.dumps_Title" xml:space="preserve">
<value>Xóa tệp kết xuất sự cố</value>
</data>
<data name="Cmd_clean.dumps_Desc" xml:space="preserve">
<value>Xóa các tệp kết xuất bộ nhớ và minidump đã lưu.</value>
</data>
<data name="Cmd_clean.errorreports_Title" xml:space="preserve">
<value>Xóa dữ liệu báo cáo lỗi</value>
</data>
<data name="Cmd_clean.errorreports_Desc" xml:space="preserve">
<value>Xóa các tệp Windows Error Reporting đang xếp hàng.</value>
</data>
<data name="Cmd_clean.dnsarp_Title" xml:space="preserve">
<value>Xóa bộ nhớ đệm DNS &amp; ARP</value>
</data>
<data name="Cmd_clean.dnsarp_Desc" xml:space="preserve">
<value>Xóa bộ nhớ đệm phân giải DNS và bảng ARP.</value>
</data>
<data name="Cmd_power.lidclose.donothing_Title" xml:space="preserve">
<value>Đóng nắp: Không làm gì (Khi cắm sạc)</value>
</data>
<data name="Cmd_power.lidclose.donothing_Desc" xml:space="preserve">
<value>Giữ laptop hoạt động khi đóng nắp lúc dùng nguồn AC power.</value>
</data>
<data name="Cmd_power.lidclose.sleep_Title" xml:space="preserve">
<value>Đóng nắp: Ngủ (Khi cắm sạc)</value>
</data>
<data name="Cmd_power.lidclose.sleep_Desc" xml:space="preserve">
<value>Đưa laptop vào chế độ ngủ khi đóng nắp lúc dùng nguồn AC power.</value>
</data>
<data name="Cmd_power.monitor.timeout15_Title" xml:space="preserve">
<value>Tắt màn hình sau 15 phút</value>
</data>
<data name="Cmd_power.monitor.timeout15_Desc" xml:space="preserve">
<value>Tắt màn hình sau 15 phút khi dùng nguồn AC power.</value>
</data>
<data name="Cmd_power.monitor.timeout10_Title" xml:space="preserve">
<value>Tắt màn hình sau 10 phút</value>
</data>
<data name="Cmd_power.monitor.timeout10_Desc" xml:space="preserve">
<value>Tắt màn hình sau 10 phút khi dùng nguồn AC power (mặc định).</value>
</data>
<data name="Cmd_tweak.numlock.on_Title" xml:space="preserve">
<value>Bật NumLock khi khởi động</value>
</data>
<data name="Cmd_tweak.numlock.on_Desc" xml:space="preserve">
<value>Bật NumLock khi khởi động và tại màn hình đăng nhập.</value>
</data>
<data name="Cmd_tweak.numlock.off_Title" xml:space="preserve">
<value>Tắt NumLock khi khởi động</value>
</data>
<data name="Cmd_tweak.numlock.off_Desc" xml:space="preserve">
<value>Tắt NumLock khi khởi động và tại màn hình đăng nhập.</value>
</data>
<data name="Cmd_tweak.verbosestatus.on_Title" xml:space="preserve">
<value>Bật thông báo đăng nhập chi tiết</value>
</data>
<data name="Cmd_tweak.verbosestatus.on_Desc" xml:space="preserve">
<value>Hiển thị thông báo trạng thái chi tiết trong lúc khởi động và tắt máy.</value>
</data>
<data name="Cmd_tweak.verbosestatus.off_Title" xml:space="preserve">
<value>Tắt thông báo đăng nhập chi tiết</value>
</data>
<data name="Cmd_tweak.verbosestatus.off_Desc" xml:space="preserve">
<value>Khôi phục thông báo khởi động và tắt máy thông thường.</value>
</data>
<data name="Cmd_storage.optimize_Title" xml:space="preserve">
<value>Tối ưu / Chống phân mảnh ổ C:</value>
</data>
<data name="Cmd_storage.optimize_Desc" xml:space="preserve">
<value>Tối ưu ổ C: (TRIM cho SSD, chống phân mảnh cho HDD).</value>
</data>
<data name="Cmd_storage.diskmgmt_Title" xml:space="preserve">
<value>Disk Management</value>
</data>
<data name="Cmd_storage.diskmgmt_Desc" xml:space="preserve">
<value>Mở bảng điều khiển Disk Management.</value>
</data>
<data name="Cmd_storage.volumes_Title" xml:space="preserve">
<value>Liệt kê ổ đĩa &amp; dung lượng trống</value>
</data>
<data name="Cmd_storage.volumes_Desc" xml:space="preserve">
<value>Hiển thị các ổ đĩa cùng hệ thống tệp và dung lượng trống.</value>
</data>
<data name="Cmd_storage.storagesense_Title" xml:space="preserve">
<value>Mở cài đặt Lưu trữ</value>
</data>
<data name="Cmd_storage.storagesense_Desc" xml:space="preserve">
<value>Mở cài đặt Lưu trữ của Windows để quản lý Storage Sense.</value>
</data>
</root>
File diff suppressed because it is too large. Load diff
@@ -68,6 +68,8 @@ public sealed partial class SettingsViewModel : ObservableObject
new LanguageOption("en", "English"),
new LanguageOption("vi", "Tiếng Việt"),
new LanguageOption("ja", "日本語"),
new LanguageOption("zh-Hans", "简体中文"),
new LanguageOption("es", "Español"),
];
// Initialize from persisted settings directly (field assignment skips the apply/save hooks).
@@ -17,7 +17,6 @@ public partial class KeyboardShortcutsDialog : Window
new Shortcut("Ctrl+,", Strings.Get("Menu_OpenSettings")),
new Shortcut("Ctrl+L", Strings.Get("Menu_LogViewer")),
new Shortcut("F5", Strings.Get("Menu_CheckForUpdates")),
new Shortcut("F11", Strings.Get("Menu_FullScreen")),
new Shortcut("Ctrl+Q", Strings.Get("MenuExit")),
new Shortcut("↑ / ↓", Strings.Get("Shortcuts_ListNav")),
new Shortcut("Enter", Strings.Get("Shortcuts_OpenSelected")),
+7 -2
View File
@@ -7,7 +7,7 @@
xmlns:appset="clr-namespace:CommandForge.Application.Settings;assembly=CommandForge.Application"
xmlns:views="clr-namespace:CommandForge.Wpf.Views"
Title="{res:Loc AppTitle}"
Width="1100" Height="720" MinWidth="900" MinHeight="600"
Width="1100" Height="720" ResizeMode="NoResize"
WindowStartupLocation="CenterScreen"
FontFamily="{DynamicResource MaterialDesignFont}"
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
@@ -113,10 +113,15 @@
<MenuItem Header="日本語" Command="{Binding Settings.SetLanguageCommand}"
CommandParameter="ja"
IsChecked="{Binding Settings.SelectedLanguage.Code, Converter={StaticResource StringEquals}, ConverterParameter=ja, Mode=OneWay}" />
<MenuItem Header="简体中文" Command="{Binding Settings.SetLanguageCommand}"
CommandParameter="zh-Hans"
IsChecked="{Binding Settings.SelectedLanguage.Code, Converter={StaticResource StringEquals}, ConverterParameter=zh-Hans, Mode=OneWay}" />
<MenuItem Header="Español" Command="{Binding Settings.SetLanguageCommand}"
CommandParameter="es"
IsChecked="{Binding Settings.SelectedLanguage.Code, Converter={StaticResource StringEquals}, ConverterParameter=es, Mode=OneWay}" />
</MenuItem>
<Separator />
<MenuItem Header="{res:Loc MenuToggleSidebar}" Command="{Binding ToggleSidebarCommand}" InputGestureText="Ctrl+B" />
<MenuItem Header="{res:Loc Menu_FullScreen}" Click="OnToggleFullScreenClick" InputGestureText="F11" />
<Separator />
<MenuItem Header="{res:Loc Menu_OpenSettings}" Command="{Binding ShowSettingsCommand}" InputGestureText="Ctrl+," />
</MenuItem>
+9 -59
View File
@@ -18,9 +18,6 @@ public partial class MainWindow : Window
private readonly IServiceProvider _services;
private readonly ISettingsService _settings;
private bool _isFullScreen;
private WindowState _preFullScreenState = WindowState.Normal;
public MainWindow(MainViewModel viewModel, IServiceProvider services, ISettingsService settings)
{
InitializeComponent();
@@ -33,50 +30,31 @@ public partial class MainWindow : Window
private void OnExitClick(object sender, RoutedEventArgs e) => Close();
/// <summary>Restores the last window size/position/maximized state, ignoring off-screen positions.</summary>
/// <summary>
/// Restores the last window position only, ignoring off-screen positions. The window is a fixed
/// non-resizable size (see <c>ResizeMode="NoResize"</c> in XAML), so size/maximized state is not restored.
/// </summary>
private void RestorePlacement()
{
if (_settings.WindowWidth is { } width && width >= MinWidth)
{
Width = width;
}
if (_settings.WindowHeight is { } height && height >= MinHeight)
{
Height = height;
}
if (_settings.WindowLeft is { } left && _settings.WindowTop is { } top && IsOnScreen(left, top, Width, Height))
{
WindowStartupLocation = WindowStartupLocation.Manual;
Left = left;
Top = top;
}
if (_settings.WindowMaximized)
{
WindowState = WindowState.Maximized;
}
}
/// <summary>Persists the current window placement (using restore bounds when maximized/minimized).</summary>
/// <summary>Persists the current window position (size/maximized are fixed and not saved).</summary>
private void SavePlacement()
{
var bounds = WindowState == WindowState.Normal
? new Rect(Left, Top, Width, Height)
: RestoreBounds;
// RestoreBounds is empty before the window is first laid out — skip rather than save zeros.
if (bounds.Width <= 0 || bounds.Height <= 0)
// Left/Top are not yet meaningful before the window is first laid out — skip rather than save garbage.
if (double.IsNaN(Left) || double.IsNaN(Top))
{
return;
}
_settings.WindowLeft = bounds.Left;
_settings.WindowTop = bounds.Top;
_settings.WindowWidth = bounds.Width;
_settings.WindowHeight = bounds.Height;
_settings.WindowMaximized = WindowState == WindowState.Maximized;
_settings.WindowLeft = Left;
_settings.WindowTop = Top;
_settings.Save();
}
@@ -153,34 +131,6 @@ public partial class MainWindow : Window
_viewModel.CheckForUpdatesCommand.Execute(null);
e.Handled = true;
}
else if (e.Key == Key.F11)
{
ToggleFullScreen();
e.Handled = true;
}
}
private void OnToggleFullScreenClick(object sender, RoutedEventArgs e) => ToggleFullScreen();
private void ToggleFullScreen()
{
if (_isFullScreen)
{
WindowStyle = WindowStyle.SingleBorderWindow;
ResizeMode = ResizeMode.CanResize;
WindowState = _preFullScreenState;
_isFullScreen = false;
}
else
{
_preFullScreenState = WindowState;
WindowStyle = WindowStyle.None;
ResizeMode = ResizeMode.NoResize;
// Re-enter Maximized from Normal so the borderless window covers the whole screen.
WindowState = WindowState.Normal;
WindowState = WindowState.Maximized;
_isFullScreen = true;
}
}
private void OpenPalette()
+20 -1
View File
@@ -1,3 +1,4 @@
using CommandForge.Domain;
using CommandForge.Infrastructure.Catalog;
namespace CommandForge.Tests;
@@ -16,10 +17,28 @@ public sealed class CatalogTests
[Fact]
public void Catalog_HasCategoriesAndCommands()
{
Assert.Equal(10, Catalog.Categories.Count);
Assert.Equal(11, Catalog.Categories.Count);
Assert.True(Catalog.Commands.Count >= 20, $"Expected >= 20 commands, got {Catalog.Commands.Count}.");
}
[Fact]
public void Catalog_HasStorageCategory_WithCommands()
{
Assert.Contains(Catalog.Categories, c => c.Id == "storage");
Assert.Contains(Catalog.Commands, c => c.CategoryId == "storage");
}
[Fact]
public void Catalog_DangerousCommands_RequireConfirmation()
{
// Golden rule: Dangerous commands must always confirm before running.
var offenders = Catalog.Commands
.Where(c => c.DangerLevel == DangerLevel.Dangerous && !c.ConfirmBeforeRun)
.Select(c => c.Id)
.ToList();
Assert.True(offenders.Count == 0, $"Dangerous commands missing confirmation: {string.Join(", ", offenders)}.");
}
[Fact]
public void Catalog_AllCommandIds_AreUnique()
{
@@ -1,28 +1,28 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0-windows</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="coverlet.collector" Version="10.0.1" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.9" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.6.0" />
<PackageReference Include="xunit" Version="2.9.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5" />
</ItemGroup>
<ItemGroup>
<Using Include="Xunit" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\CommandForge.Domain\CommandForge.Domain.csproj" />
<ProjectReference Include="..\..\src\CommandForge.Application\CommandForge.Application.csproj" />
<ProjectReference Include="..\..\src\CommandForge.Infrastructure\CommandForge.Infrastructure.csproj" />
<!-- Referenced so the catalog-keys test can verify titles/descriptions exist in the .resx (EN+VI). -->
<ProjectReference Include="..\..\src\CommandForge.Wpf\CommandForge.Wpf.csproj" />
</ItemGroup>
</Project>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0-windows</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="coverlet.collector" Version="10.0.1" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.9" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.7.0" />
<PackageReference Include="xunit" Version="2.9.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5" />
</ItemGroup>
<ItemGroup>
<Using Include="Xunit" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\CommandForge.Domain\CommandForge.Domain.csproj" />
<ProjectReference Include="..\..\src\CommandForge.Application\CommandForge.Application.csproj" />
<ProjectReference Include="..\..\src\CommandForge.Infrastructure\CommandForge.Infrastructure.csproj" />
<!-- Referenced so the catalog-keys test can verify titles/descriptions exist in the .resx (EN+VI). -->
<ProjectReference Include="..\..\src\CommandForge.Wpf\CommandForge.Wpf.csproj" />
</ItemGroup>
</Project>
@@ -46,6 +46,32 @@ public sealed class LocalizationManagerTests
}
}
[Theory]
[InlineData("vi")]
[InlineData("ja")]
[InlineData("zh-Hans")]
[InlineData("es")]
public void SetCulture_LoadsSatellite_NotEnglishFallback(string culture)
{
var original = LocalizationManager.Instance.CurrentCulture;
try
{
LocalizationManager.Instance.SetCulture(new CultureInfo("en"));
var en = LocalizationManager.Instance["Menu_CheckForUpdates"];
LocalizationManager.Instance.SetCulture(new CultureInfo(culture));
var translated = LocalizationManager.Instance["Menu_CheckForUpdates"];
Assert.False(string.IsNullOrEmpty(translated));
// A real satellite resolves to a translated string; an English fallback would be identical.
Assert.NotEqual(en, translated);
}
finally
{
LocalizationManager.Instance.SetCulture(original);
}
}
[Fact]
public void SetCulture_RaisesItemBracketPropertyChanged()
{
+19 -10
View File
@@ -7,30 +7,39 @@ namespace CommandForge.Tests;
/// <summary>
/// Cross-checks that every catalog title/description and UI resource key exists in the neutral
/// (EN) resources and in both the Vietnamese and Japanese satellites (no parent fallback), so a
/// missing translation fails the build rather than silently falling back to English.
/// (EN) resources and in every satellite culture (no parent fallback), so a missing translation
/// fails the build rather than silently falling back to English.
/// </summary>
public sealed class ResxKeyTests
{
private static readonly CatalogLoadResult Catalog = CatalogLoader.LoadEmbedded();
/// <summary>Asserts every key resolves in EN (neutral) and in the VI and JA satellites without fallback.</summary>
/// <summary>The non-neutral UI cultures that must have a full satellite resource set (no fallback).</summary>
private static readonly string[] SatelliteCultures = ["vi", "ja", "zh-Hans", "es"];
/// <summary>Asserts every key resolves in EN (neutral) and in every satellite culture without fallback.</summary>
private static void AssertKeysExist(IEnumerable<string> keys)
{
var manager = new ResourceManager("CommandForge.Wpf.Resources.Strings", typeof(Strings).Assembly);
var english = manager.GetResourceSet(CultureInfo.InvariantCulture, createIfNotExists: true, tryParents: true);
var vietnamese = manager.GetResourceSet(new CultureInfo("vi"), createIfNotExists: true, tryParents: false);
var japanese = manager.GetResourceSet(new CultureInfo("ja"), createIfNotExists: true, tryParents: false);
Assert.NotNull(english);
Assert.NotNull(vietnamese);
Assert.NotNull(japanese);
var satellites = SatelliteCultures.ToDictionary(
culture => culture,
culture => manager.GetResourceSet(new CultureInfo(culture), createIfNotExists: true, tryParents: false));
foreach (var (culture, set) in satellites)
{
Assert.True(set is not null, $"Missing satellite resource set for culture '{culture}'.");
}
foreach (var key in keys)
{
Assert.True(english!.GetString(key) is not null, $"Missing EN resource for key '{key}'.");
Assert.True(vietnamese!.GetString(key) is not null, $"Missing VI resource for key '{key}'.");
Assert.True(japanese!.GetString(key) is not null, $"Missing JA resource for key '{key}'.");
foreach (var (culture, set) in satellites)
{
Assert.True(set!.GetString(key) is not null, $"Missing {culture} resource for key '{key}'.");
}
}
}