upd version

This commit is contained in:
d-chrka 2026-03-15 13:16:45 +01:00
parent b70cfa4d0d
commit 326200194a
2 changed files with 11 additions and 2 deletions

View File

@ -43,7 +43,16 @@
"Bash(git config:*)", "Bash(git config:*)",
"Bash(FILE=\"/home/d-chrka@internal.lan/Projekte/chrka/Ka-Note/ka-note/client/src/routes/wiki/[id]/+page.svelte\"\npython3 - \"$FILE\" <<'EOF'\nimport sys\npath = sys.argv[1]\nwith open\\(path, 'r'\\) as f:\n content = f.read\\(\\)\n\nold = '\\\\t\\\\t\\\\t\\\\t<input\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tclass=\"flex-1 bg-transparent text-2xl font-bold text-white outline-none placeholder:text-muted\"'\nnew = '\\\\t\\\\t\\\\t\\\\t<input\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tbind:this={titleInputEl}\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tclass=\"flex-1 bg-transparent text-2xl font-bold text-white outline-none placeholder:text-muted\"'\n\nif old in content:\n content = content.replace\\(old, new, 1\\)\n with open\\(path, 'w'\\) as f:\n f.write\\(content\\)\n print\\(\"replaced\"\\)\nelse:\n print\\(\"NOT FOUND\"\\)\n # debug: show actual bytes around the area\n idx = content.find\\('<input'\\)\n print\\(repr\\(content[idx:idx+100]\\)\\)\nEOF)", "Bash(FILE=\"/home/d-chrka@internal.lan/Projekte/chrka/Ka-Note/ka-note/client/src/routes/wiki/[id]/+page.svelte\"\npython3 - \"$FILE\" <<'EOF'\nimport sys\npath = sys.argv[1]\nwith open\\(path, 'r'\\) as f:\n content = f.read\\(\\)\n\nold = '\\\\t\\\\t\\\\t\\\\t<input\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tclass=\"flex-1 bg-transparent text-2xl font-bold text-white outline-none placeholder:text-muted\"'\nnew = '\\\\t\\\\t\\\\t\\\\t<input\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tbind:this={titleInputEl}\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tclass=\"flex-1 bg-transparent text-2xl font-bold text-white outline-none placeholder:text-muted\"'\n\nif old in content:\n content = content.replace\\(old, new, 1\\)\n with open\\(path, 'w'\\) as f:\n f.write\\(content\\)\n print\\(\"replaced\"\\)\nelse:\n print\\(\"NOT FOUND\"\\)\n # debug: show actual bytes around the area\n idx = content.find\\('<input'\\)\n print\\(repr\\(content[idx:idx+100]\\)\\)\nEOF)",
"Bash(git push:*)", "Bash(git push:*)",
"Bash(git rm:*)" "Bash(git rm:*)",
"Bash(ls /home/d-chrka@internal.lan/Projekte/chrka/Ka-Note/ka-note/backups/*.db 2>/dev/null | sort -t- -k1 | tail -5)",
"Bash(pwsh -NoProfile -Command '\n$ErrorActionPreference = \"Stop\"\n$envFile = \"/home/d-chrka@internal.lan/Projekte/chrka/Ka-Note/ka-note/.env\"\nif \\(Test-Path $envFile\\) {\n Get-Content $envFile | Where-Object { $_ -match \"^\\\\s*[^#]\\\\S+=\\\\S\" } | ForEach-Object {\n $k, $v = $_ -split \"=\", 2\n [System.Environment]::SetEnvironmentVariable\\($k.Trim\\(\\), $v.Trim\\(\\), \"Process\"\\)\n }\n}\n\n$KuduToken = az account get-access-token --resource \"https://management.azure.com\" --query accessToken -o tsv\nif \\($LASTEXITCODE -ne 0\\) { throw \"Failed to get Azure access token\" }\n\n$backup = \"/home/d-chrka@internal.lan/Projekte/chrka/Ka-Note/ka-note/backups/ka-note-pre-deploy-1.2.39.db\"\nWrite-Host \"Uploading: $backup\"\n\nInvoke-WebRequest -Uri \"https://ka-note.scm.azurewebsites.net/api/vfs/data/ka-note.db\" `\n -Method PUT `\n -Headers @{ Authorization = \"Bearer $KuduToken\" } `\n -InFile $backup -UseBasicParsing | Out-Null\n\nWrite-Host \"Upload done. Restarting...\"\naz webapp restart --name ka-note --resource-group rg-koogle-prod\nWrite-Host \"Done.\"\n')",
"Bash(az webapp:*)",
"Bash(BACKUP=\"/home/d-chrka@internal.lan/Projekte/chrka/Ka-Note/ka-note/backups/ka-note-pre-deploy-1.2.39.db\"\naz webapp deploy --name ka-note --resource-group rg-koogle-prod \\\\\n --src-path \"$BACKUP\" \\\\\n --target-path \"/home/data/ka-note.db\" \\\\\n --type static 2>&1)",
"Bash(BACKUP=\"/home/d-chrka@internal.lan/Projekte/chrka/Ka-Note/ka-note/backups/ka-note-pre-deploy-1.2.39.db\"\ncurl -s -o /dev/null -w \"%{http_code}\" -X PUT \\\\\n -u '$ka-note:PbAnjiqP3MhWkAn3ofACdkdtpB3N6fQl3dyu5mDa1hRMw20gZFECGeeuAvmc' \\\\\n -H \"Content-Type: application/octet-stream\" \\\\\n --data-binary @\"$BACKUP\" \\\\\n \"https://ka-note.scm.azurewebsites.net/api/vfs/data/ka-note.db\")",
"Bash(az resource:*)",
"Bash(BACKUP=\"/home/d-chrka@internal.lan/Projekte/chrka/Ka-Note/ka-note/backups/ka-note-pre-deploy-1.2.39.db\")",
"Bash(split -b 8m \"$BACKUP\" /tmp/db_chunk_)",
"Read(//tmp/**)"
] ]
} }
} }

View File

@ -1 +1 @@
1.2.47 1.2.48