feat: add export and import functionality for snippets with UI controls

This commit is contained in:
2025-01-19 15:12:05 +02:00
parent f14f76e2f0
commit a8b2fa4be8
4 changed files with 72 additions and 0 deletions

View File

@@ -25,6 +25,11 @@
<img src="src/astrolabe.svg" alt="Astrolabe logo">
<h1>Astrolabe</h1>
</a>
<div class="header-controls">
<button class="button mini" id="export-snippets">Export</button>
<button class="button mini" id="import-snippets">Import</button>
<input type="file" id="import-file" accept=".json" style="display: none">
</div>
</header>
<div class="panel">
<div class="panel-header">