mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-08-11 14:15:46 +00:00
48 lines
1.8 KiB
HTML
48 lines
1.8 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Self-hosted LiveSync WebApp</title>
|
|
<link rel="stylesheet" href="./webapp.css" />
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1>Self-hosted LiveSync on Web</h1>
|
|
<p class="subtitle">Experimental browser proof of concept using the File System Access API</p>
|
|
|
|
<div id="status" class="info">Initialising...</div>
|
|
|
|
<div id="vault-selector" class="vault-selector">
|
|
<h2>Select Vault Folder</h2>
|
|
<p>Open a vault you already used, or pick a new folder.</p>
|
|
|
|
<div id="vault-history-list" class="vault-list"></div>
|
|
<p id="vault-history-empty" class="empty-note">No saved vaults yet.</p>
|
|
<button id="pick-new-vault" type="button">Choose new vault folder</button>
|
|
</div>
|
|
|
|
<section id="p2p-control" class="p2p-control is-hidden"></section>
|
|
|
|
<div class="info-section">
|
|
<h2>How to Use</h2>
|
|
<ul>
|
|
<li>Select the local Vault root and grant access.</li>
|
|
<li>Create or edit <code>.livesync/settings.json</code> in that Vault.</li>
|
|
<li>Reload this page to apply the settings.</li>
|
|
<li>Use the P2P controls only as an optional secondary connection.</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="footer">
|
|
<p>
|
|
Powered by
|
|
<a href="https://github.com/vrtmrz/obsidian-livesync" target="_blank">Self-hosted LiveSync</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<script type="module" src="./main.ts"></script>
|
|
</body>
|
|
</html>
|