78 lines
2.6 KiB
HTML
78 lines
2.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<title>Memos Clipper — Settings</title>
|
|
<link rel="stylesheet" href="settings.css" />
|
|
</head>
|
|
<body>
|
|
<div class="page">
|
|
<header>
|
|
<div class="logo">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/>
|
|
<polyline points="14 2 14 8 20 8"/>
|
|
<line x1="16" y1="13" x2="8" y2="13"/>
|
|
<line x1="16" y1="17" x2="8" y2="17"/>
|
|
<polyline points="10 9 9 9 8 9"/>
|
|
</svg>
|
|
Memos Clipper Settings
|
|
</div>
|
|
</header>
|
|
|
|
<main>
|
|
<div class="card">
|
|
<h2>Connection</h2>
|
|
<label>
|
|
<span>Memos Instance URL</span>
|
|
<input type="url" id="memos-url" placeholder="https://memos.example.com" />
|
|
<small>The base URL of your usememos instance (no trailing slash)</small>
|
|
</label>
|
|
<label>
|
|
<span>API Token</span>
|
|
<input type="password" id="api-token" placeholder="Your access token" />
|
|
<small>Settings → Account → Access Tokens in your Memos instance</small>
|
|
</label>
|
|
<div class="actions">
|
|
<button id="test-btn" class="secondary">Test Connection</button>
|
|
<button id="save-btn">Save Settings</button>
|
|
</div>
|
|
<div id="status" class="status hidden"></div>
|
|
</div>
|
|
|
|
<div class="card">
|
|
<h2>Defaults</h2>
|
|
<label>
|
|
<span>Default visibility</span>
|
|
<select id="visibility">
|
|
<option value="PRIVATE">Private</option>
|
|
<option value="PROTECTED">Protected</option>
|
|
<option value="PUBLIC">Public</option>
|
|
</select>
|
|
</label>
|
|
<label>
|
|
<span>Default clip mode</span>
|
|
<select id="clip-mode">
|
|
<option value="page">Full page (article extraction)</option>
|
|
<option value="selection">Selection only</option>
|
|
</select>
|
|
</label>
|
|
<label class="checkbox-label">
|
|
<input type="checkbox" id="include-images" checked />
|
|
<span>Upload page images as attachments</span>
|
|
</label>
|
|
<label class="checkbox-label">
|
|
<input type="checkbox" id="include-tags" />
|
|
<span>Automatically add #clipped tag</span>
|
|
</label>
|
|
<div class="actions">
|
|
<button id="save-defaults-btn">Save Defaults</button>
|
|
</div>
|
|
<div id="defaults-status" class="status hidden"></div>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
<script src="settings.js"></script>
|
|
</body>
|
|
</html>
|