Ship the Go/SQLite API and Web UI, Chrome/Brave capture addon, Docker Compose, Pangolin reverse-proxy support, and a user-crontab watchdog so the binary stays running without systemd.
48 lines
1.5 KiB
HTML
48 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>RCS</title>
|
|
<link rel="stylesheet" href="popup.css">
|
|
</head>
|
|
<body>
|
|
<h1>RCS</h1>
|
|
<p class="sub">Reddit Comment Saver</p>
|
|
|
|
<div id="setup" hidden>
|
|
<p>Enter your backend URL to start saving comments.</p>
|
|
<label>
|
|
Backend URL
|
|
<input id="backendUrl" type="url" placeholder="http://127.0.0.1:8080" required>
|
|
</label>
|
|
<label>
|
|
API key (optional)
|
|
<input id="apiKey" type="password" placeholder="leave blank if open">
|
|
</label>
|
|
<button id="save" type="button">Save & connect</button>
|
|
<p id="setupError" class="error" hidden></p>
|
|
</div>
|
|
|
|
<div id="status" hidden>
|
|
<p id="statusLine"></p>
|
|
<p><a id="openBackend" href="#" target="_blank" rel="noopener">Open Web UI</a></p>
|
|
|
|
<section class="blocklist" id="blocklistSection">
|
|
<h2>Blocked authors</h2>
|
|
<p class="hint">Comments from these users are not saved. Synced via backend.</p>
|
|
<div class="blocklist-add">
|
|
<input id="blockUserInput" type="text" placeholder="AutoModerator" autocomplete="off">
|
|
<button id="blockAdd" type="button">Add</button>
|
|
</div>
|
|
<p id="blocklistStatus" class="muted" hidden></p>
|
|
<ul id="blocklist" class="blocklist-items"></ul>
|
|
</section>
|
|
|
|
<button id="edit" type="button" class="secondary">Edit connection</button>
|
|
</div>
|
|
|
|
<script src="../lib/api.js"></script>
|
|
<script src="popup.js"></script>
|
|
</body>
|
|
</html>
|