Files
ProjectDashboard/.claude/settings.json

17 lines
2.6 KiB
JSON
Raw Normal View History

2026-11-12 09:32:23 +01:00
{
"permissions": {
"allow": [
"PowerShell($c = Get-NetTCPConnection -LocalPort 4949 -State Listen -ErrorAction SilentlyContinue; foreach \\($x in $c\\) { $p = Get-CimInstance Win32_Process -Filter \"ProcessId=$\\($x.OwningProcess\\)\"; \"$\\($p.ProcessId\\) $\\($p.CommandLine\\)\"; if \\($p.CommandLine -match 'server\\\\.js'\\) { Stop-Process -Id $p.ProcessId -Confirm:$false } })",
"PowerShell(\\(Get-Content public\\\\app.js -Raw\\) -replace 'const rootPaths = \\\\\\(\\\\\\) =>', 'const rowRootPaths = \\(\\) =>' -replace 'have: rootPaths\\\\\\(\\\\\\)', 'have: rowRootPaths\\(\\)' | Set-Content public\\\\app.js -Encoding utf8 -NoNewline; Select-String -Path public\\\\app.js -Pattern 'rootPaths\\\\\\(\\\\\\)|rowRootPaths' | ForEach-Object { \"$\\($_.LineNumber\\): $\\($_.Line.Trim\\(\\)\\)\" }; node --check public/app.js; if \\($?\\) { 'OK' })",
"PowerShell($b = [IO.File]::ReadAllBytes\\(\"$PWD\\\\public\\\\app.js\"\\); if \\($b[0] -eq 0xEF -and $b[1] -eq 0xBB\\) { [IO.File]::WriteAllBytes\\(\"$PWD\\\\public\\\\app.js\", $b[3..\\($b.Length-1\\)]\\); 'BOM removed' } else { 'no BOM' }; node --check public/app.js; if \\($?\\) { 'OK' })",
"PowerShell($f = \"$PWD\\\\public\\\\app.js\"; $txt = [IO.File]::ReadAllText\\($f, [Text.UTF8Encoding]::new\\($false\\)\\); $orig = [Text.Encoding]::GetEncoding\\(1252\\).GetBytes\\($txt\\); $fixed = [Text.UTF8Encoding]::new\\($false, $true\\).GetString\\($orig\\); [IO.File]::WriteAllText\\($f, $fixed, [Text.UTF8Encoding]::new\\($false\\)\\); \"mojibake left: \" + \\([regex]::Matches\\($fixed, 'Ã|Â'\\).Count\\); \"umlauts: \" + \\([regex]::Matches\\($fixed, '[äöüÄÖÜß–…→]'\\).Count\\); node --check public/app.js; if \\($?\\) { 'OK' })",
2026-11-12 19:50:38 +01:00
"PowerShell($c = Get-NetTCPConnection -LocalPort 4848 -State Listen -ErrorAction SilentlyContinue; foreach \\($x in $c\\) { Get-CimInstance Win32_Process -Filter \"ProcessId=$\\($x.OwningProcess\\)\" | Select-Object ProcessId, CreationDate, CommandLine, ExecutablePath | Format-List }; \\(Get-Item server.js\\).LastWriteTime; try { \\(Invoke-WebRequest -UseBasicParsing -Method Post -Uri 'http://127.0.0.1:4848/api/projects/xyz/git-init' -Headers @{Origin='http://127.0.0.1:4848'} -ContentType 'application/json' -Body '{}'\\).Content } catch { $_.Exception.Response.StatusCode; \\(New-Object IO.StreamReader\\($_.Exception.Response.GetResponseStream\\(\\)\\)\\).ReadToEnd\\(\\).Substring\\(0,120\\) })",
"Bash(node --check server.js)",
"Bash(node -e ' *)"
],
"additionalDirectories": [
"d:\\Oculusquest\\Projekt\\ProjectDashboard"
2026-11-12 09:32:23 +01:00
]
}
}