Arx / app /renderer /index.html
umer-wasim's picture
Arx 0.5.5: All results with status details; handover updated
b0ffedc verified
Raw History Blame Contribute Delete
4.78 kB
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' 'wasm-unsafe-eval'; style-src 'self'; connect-src 'self' https://huggingface.co https://*.huggingface.co https://*.hf.co https://raw.githubusercontent.com; img-src 'self' data:; worker-src 'self' blob:">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Arx</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header class="bar">
<div class="brand"><span class="dot"></span> Arx</div>
<div class="device" id="device"></div>
</header>
<main>
<!-- 1. Preparing the auditor model -->
<section class="screen" id="screen-model">
<h1>Preparing the auditor</h1>
<p class="lead">The AI auditor runs on this computer. It is downloaded once and then works offline; nothing about your device is sent anywhere.</p>
<div class="card">
<div class="row"><b id="model-name">Loading…</b><span id="model-percent">0%</span></div>
<div class="progress"><div id="model-bar"></div></div>
<p class="muted" id="model-status">Checking this computer…</p>
</div>
</section>
<!-- 2. Approval -->
<section class="screen hidden" id="screen-approve">
<h1>Ready to audit this computer</h1>
<p class="lead">The audit only <b>reads</b> settings. It changes nothing unless you later choose <b>Fix</b>. <span id="plan-total"></span>:</p>
<div class="sections" id="plan"></div>
<label class="option"><input type="checkbox" id="elevated" checked> Run with administrator rights (recommended — without them some checks cannot be read)</label>
<div class="actions">
<button class="secondary" id="cancel">Cancel</button>
<button class="primary" id="run">Run audit</button>
</div>
</section>
<!-- 3. Progress -->
<section class="screen hidden" id="screen-progress">
<h1 id="progress-title">Auditing this computer</h1>
<div class="card">
<div class="row"><b id="progress-step">Collecting evidence</b><span id="progress-count">0 / 0</span></div>
<div class="progress"><div id="progress-bar"></div></div>
<p class="muted" id="progress-current">Waiting for administrator approval…</p>
</div>
<div class="checklist" id="checklist"></div>
</section>
<!-- 4. Results -->
<section class="screen hidden" id="screen-done">
<h1>Audit complete</h1>
<div class="card fix-banner hidden" id="fix-banner"></div>
<div class="card" id="result-summary"></div>
<div class="card fixes hidden" id="fixes"></div>
<div class="card results-all hidden" id="all-results"></div>
<div class="actions">
<button class="secondary" id="again">Run another audit</button>
<button class="primary" id="save-again">Save report as PDF</button>
<button class="secondary" id="ask-chat">📋 Open report with fixes</button>
</div>
<p class="muted" id="saved-note"></p>
</section>
<!-- Cancelled / error -->
<section class="screen hidden" id="screen-stopped">
<h1 id="stopped-title">Audit cancelled</h1>
<p class="lead" id="stopped-text">Nothing was checked and nothing was changed.</p>
<div class="actions"><button class="primary" id="restart">Start again</button></div>
</section>
</main>
<!-- Save popup with 60-second countdown -->
<div class="modal hidden" id="save-modal" role="dialog" aria-modal="true" aria-labelledby="save-title">
<div class="modal-box">
<h2 id="save-title">Save the audit report as PDF?</h2>
<p>Choose where to save it. If you do not answer, it is saved automatically in
<b>Documents › Arx Reports</b> in <b id="countdown">60</b> seconds.</p>
<div class="progress thin"><div id="countdown-bar"></div></div>
<div class="actions">
<button class="secondary" id="save-docs">Save to Documents now</button>
<button class="primary" id="save-choose">Choose location…</button>
</div>
</div>
</div>
<!-- Confirm fixes: shows exactly what will change before the administrator prompt -->
<div class="modal hidden" id="fix-modal" role="dialog" aria-modal="true" aria-labelledby="fix-title">
<div class="modal-box">
<h2 id="fix-title">Fix these problems?</h2>
<p class="muted" id="fix-intro">Arx will change these settings, then check this computer again. You can undo each fix afterwards.</p>
<ul class="fix-list" id="fix-confirm-list"></ul>
<p class="muted" id="fix-password-note">Your computer will ask for your administrator password.</p>
<div class="actions">
<button class="secondary" id="fix-cancel">Cancel</button>
<button class="primary" id="fix-go">Fix now</button>
</div>
</div>
</div>
<script type="module" src="app.js"></script>
</body>
</html>