-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
73 lines (63 loc) Β· 3.25 KB
/
Copy pathpopup.html
File metadata and controls
73 lines (63 loc) Β· 3.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Typollama settings</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<main class="panel">
<header class="hero">
<img src="icons/icon48.png" alt="" width="36" height="36">
<div><h1>Typollama</h1><p>Rewrite, proofread, and spellcheck on any page.</p></div>
</header>
<p id="status" class="status" role="status" aria-live="polite" hidden></p>
<form id="settingsForm">
<label for="provider">Provider</label>
<select id="provider" name="provider"></select>
<a id="providerDocs" class="docs" target="_blank" rel="noreferrer">Provider documentation β</a>
<section id="connectionFields" class="connection-fields">
<label id="apiKeyLabel" for="apiKey">API key</label>
<div id="apiKeyRow" class="input-row">
<input id="apiKey" name="apiKey" type="password" autocomplete="off" spellcheck="false">
<button id="clearKey" type="button" class="subtle" hidden>Clear</button>
</div>
<label id="baseUrlLabel" for="baseUrl">Server URL</label>
<input id="baseUrl" name="baseUrl" type="url" inputmode="url" spellcheck="false">
<label for="model">Model</label>
<input id="model" name="model" type="text" spellcheck="false" required>
</section>
<button class="primary" type="submit">Save settings</button>
<details id="advanced">
<summary>Writing tools & shortcuts</summary>
<div class="advanced-content">
<label for="promptType">Writing tool</label>
<select id="promptType">
<option value="spellcheck">Spellcheck</option>
<option value="proofread">Proofread & rewrite</option>
<option value="custom">Custom prompt</option>
</select>
<label for="systemPrompt">Instruction</label>
<textarea id="systemPrompt" rows="5"></textarea>
<button id="resetPrompt" type="button" class="link-button">Restore default instruction</button>
<label for="shortcutMode">Shortcut</label>
<select id="shortcutMode">
<option value="double_stroke">Press Ctrl twice β spellcheck</option>
<option value="triple_stroke">Press Ctrl three times β proofread</option>
<option value="quadruple_stroke">Press Ctrl four times β custom</option>
<option value="custom">Custom shortcut</option>
</select>
<div id="customShortcutRow" class="input-row" hidden>
<input id="customShortcut" type="text" readonly placeholder="Record a shortcut">
<button id="recordShortcut" type="button" class="subtle">Record</button>
</div>
<label class="checkbox"><input id="copyToClipboard" type="checkbox"> Copy the result instead of replacing text</label>
</div>
</details>
</form>
<footer><a href="https://github.com/adamtash/typollama" target="_blank" rel="noreferrer">Documentation & source β</a></footer>
</main>
<script type="module" src="popup.js"></script>
</body>
</html>