UXInteract / task_011 /solution /code /index.html
DojiSum's picture
Publish the current 141-task UXInteract release
ef987bb verified
Raw History Blame Contribute Delete
1.57 kB
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Offline Model Request Audit</title>
<style>
body { font: 16px/1.5 system-ui, sans-serif; max-width: 900px; margin: 24px auto; padding: 0 16px; color: #202838; }
label { display: block; margin: 12px 0; }
input, textarea { display: block; width: min(100%, 660px); padding: 8px; box-sizing: border-box; font: inherit; }
textarea { min-height: 80px; }
button { padding: 8px 16px; margin-right: 8px; cursor: pointer; }
output { display: block; min-height: 3em; padding: 12px; background: #f2f5fa; white-space: pre-wrap; }
li { margin: 10px 0; padding: 8px; border: 1px solid #d2d9e3; white-space: pre-wrap; }
.meta { color: #566274; }
</style>
<script src="./config.js"></script>
</head>
<body>
<main>
<h1>Offline Model Request Audit</h1>
<label>Prompt<textarea data-testid="prompt-input"></textarea></label>
<label>Key<input data-testid="config-key" type="password" autocomplete="off"></label>
<label>Base URL<input data-testid="config-baseurl"></label>
<label>Model<input data-testid="config-modelname"></label>
<button data-testid="send-button">Send Request</button>
<button data-testid="clear-button">Clear History</button>
<p data-testid="request-status">idle</p>
<output data-testid="active-content"></output>
<h2>Request History</h2>
<ol data-testid="request-history"></ol>
</main>
<script src="./app.js"></script>
</body>
</html>