Remove accidentally-committed dev-session screenshots/scripts
The previous commit (96a9180) pulled in 38 debugging screenshots,
the PowerShell automation driver, and the dev.log file alongside
the actual fix. Remove them from the working tree and ignore them
going forward via /-prefixed patterns in .gitignore (so the
legitimate src-tauri/icons/*.png stay tracked).
Files remain in git history; the binary diff is small so this isn't
worth a force-push to scrub.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
9
.gitignore
vendored
|
|
@ -18,3 +18,12 @@ src-tauri/gen/
|
|||
.env
|
||||
.env.*
|
||||
!.env.example
|
||||
|
||||
# Dev-session scratch (root-only — leaves src-tauri/icons/*.png alone)
|
||||
/dev.log
|
||||
/dev.err
|
||||
/screenshot.png
|
||||
/screen*.png
|
||||
/shot*.png
|
||||
/tiletopia-window.png
|
||||
/tilescript.ps1
|
||||
|
|
|
|||
0
dev.err
BIN
dev.log
BIN
screen0.png
|
Before Width: | Height: | Size: 221 KiB |
BIN
screen1.png
|
Before Width: | Height: | Size: 1.7 MiB |
BIN
screen2.png
|
Before Width: | Height: | Size: 278 KiB |
BIN
screenshot.png
|
Before Width: | Height: | Size: 224 KiB |
|
Before Width: | Height: | Size: 52 KiB |
|
Before Width: | Height: | Size: 52 KiB |
BIN
shot03-f12.png
|
Before Width: | Height: | Size: 52 KiB |
|
Before Width: | Height: | Size: 52 KiB |
|
Before Width: | Height: | Size: 52 KiB |
|
Before Width: | Height: | Size: 52 KiB |
|
Before Width: | Height: | Size: 52 KiB |
|
Before Width: | Height: | Size: 53 KiB |
|
Before Width: | Height: | Size: 53 KiB |
|
Before Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 53 KiB |
|
Before Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 53 KiB |
|
Before Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 57 KiB |
|
Before Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 53 KiB |
|
Before Width: | Height: | Size: 53 KiB |
|
Before Width: | Height: | Size: 53 KiB |
|
Before Width: | Height: | Size: 53 KiB |
|
Before Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 54 KiB |
BIN
shot28-fresh.png
|
Before Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 60 KiB |
|
|
@ -1,60 +0,0 @@
|
|||
# Helpers for driving the tiletopia window from PowerShell.
|
||||
Add-Type -AssemblyName System.Windows.Forms
|
||||
Add-Type -AssemblyName System.Drawing
|
||||
Add-Type @'
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
public class W {
|
||||
[DllImport("user32.dll")] public static extern bool GetWindowRect(IntPtr h, out RECT r);
|
||||
[DllImport("user32.dll")] public static extern bool SetForegroundWindow(IntPtr h);
|
||||
[DllImport("user32.dll")] public static extern bool ShowWindow(IntPtr h, int n);
|
||||
[DllImport("user32.dll")] public static extern bool SetCursorPos(int x, int y);
|
||||
[DllImport("user32.dll")] public static extern void mouse_event(uint flags, uint dx, uint dy, uint dwData, int extraInfo);
|
||||
[StructLayout(LayoutKind.Sequential)] public struct RECT { public int Left, Top, Right, Bottom; }
|
||||
}
|
||||
'@
|
||||
|
||||
function Get-TileWindow {
|
||||
$p = Get-Process tiletopia -ErrorAction Stop | Where-Object { $_.MainWindowHandle -ne 0 } | Select-Object -First 1
|
||||
if (-not $p) { throw "no tiletopia window" }
|
||||
return $p
|
||||
}
|
||||
|
||||
function Bring-ToFront {
|
||||
$p = Get-TileWindow
|
||||
[W]::ShowWindow($p.MainWindowHandle, 9) | Out-Null # SW_RESTORE
|
||||
[W]::SetForegroundWindow($p.MainWindowHandle) | Out-Null
|
||||
Start-Sleep -Milliseconds 300
|
||||
$r = New-Object W+RECT
|
||||
[W]::GetWindowRect($p.MainWindowHandle, [ref] $r) | Out-Null
|
||||
return $r
|
||||
}
|
||||
|
||||
function Save-Shot([string]$path) {
|
||||
$r = Bring-ToFront
|
||||
$w = $r.Right - $r.Left
|
||||
$h = $r.Bottom - $r.Top
|
||||
$bmp = New-Object System.Drawing.Bitmap $w, $h
|
||||
$g = [System.Drawing.Graphics]::FromImage($bmp)
|
||||
$g.CopyFromScreen($r.Left, $r.Top, 0, 0, (New-Object System.Drawing.Size $w, $h))
|
||||
$bmp.Save($path)
|
||||
$g.Dispose()
|
||||
$bmp.Dispose()
|
||||
Write-Host ("saved " + $path + " (" + $w + "x" + $h + " at " + $r.Left + "," + $r.Top + ")")
|
||||
return @{ x = $r.Left; y = $r.Top; w = $w; h = $h }
|
||||
}
|
||||
|
||||
# Click at *window-relative* coordinates (so we don't depend on the window's
|
||||
# screen position from one run to the next).
|
||||
function Click-Win([int]$relX, [int]$relY) {
|
||||
$r = Bring-ToFront
|
||||
$absX = $r.Left + $relX
|
||||
$absY = $r.Top + $relY
|
||||
[W]::SetCursorPos($absX, $absY) | Out-Null
|
||||
Start-Sleep -Milliseconds 80
|
||||
[W]::mouse_event(0x0002, 0, 0, 0, 0) # LEFTDOWN
|
||||
Start-Sleep -Milliseconds 30
|
||||
[W]::mouse_event(0x0004, 0, 0, 0, 0) # LEFTUP
|
||||
Start-Sleep -Milliseconds 120
|
||||
Write-Host ("clicked window-rel " + $relX + "," + $relY + " (abs " + $absX + "," + $absY + ")")
|
||||
}
|
||||
|
Before Width: | Height: | Size: 52 KiB |