Kraft102's picture
fix: sql.js Docker/Alpine compatibility layer for PatternMemory and FailureMemory
5a81b95
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data:;">
<title>CSS Stripper Pro</title>
<style>
body { font-family: system-ui, sans-serif; margin: 16px; }
.row { display: flex; gap: 8px; margin: 6px 0; align-items: center; }
label { width: 140px; }
input[type="text"], input[type="number"] { flex: 1; padding: 6px; }
textarea { width: 100%; height: 220px; white-space: pre; overflow: auto; }
button { padding: 8px 12px; }
.small { font-size: 12px; color: #666; }
</style>
</head>
<body>
<h2>CSS Stripper Pro</h2>
<div class="row">
<label for="url">URL</label>
<input id="url" type="text" placeholder="https://www.politi.dk" />
</div>
<div class="row">
<label for="output">Output mappe</label>
<input id="output" type="text" placeholder="./out" />
<button id="browse">Vælg…</button>
</div>
<div class="row">
<label for="maxPages">Maks sider</label>
<input id="maxPages" type="number" value="20" />
<label for="depth">Dybde</label>
<input id="depth" type="number" value="3" />
</div>
<div class="row">
<label for="delayMs">Delay ms</label>
<input id="delayMs" type="number" value="250" />
<label for="timeout">Timeout ms</label>
<input id="timeout" type="number" value="15000" />
</div>
<div class="row">
<label for="safelist">Safelist</label>
<input id="safelist" type="text" placeholder=".is-open,.modal-open" />
</div>
<div class="row">
<label>Samme host</label>
<input id="sameHost" type="checkbox" checked />
<label>Respekter robots.txt</label>
<input id="respectRobots" type="checkbox" />
</div>
<div class="row">
<button id="run">Kør</button>
<button id="cancel">Afbryd</button>
</div>
<p class="small">Output: css/raw.css, css/stripped.css, css/stripped.min.css i den valgte outputmappe.</p>
<textarea id="log" readonly></textarea>
<script src="./renderer.js"></script>
</body>
</html>