support export and import

This commit is contained in:
Julian Freeman
2026-03-11 14:11:37 -04:00
parent c11ef4a567
commit 6f023006dc
2 changed files with 64 additions and 1 deletions

View File

@@ -52,6 +52,13 @@
<div id="presetList" class="mt-4 space-y-2 max-h-40 overflow-y-auto pr-1">
<!-- Saved presets -->
</div>
<!-- Import/Export Presets -->
<div class="flex gap-2 pt-2 border-t border-gray-100">
<button id="exportPresets" class="flex-1 bg-white text-gray-600 text-[10px] py-1 rounded border border-gray-300 hover:bg-gray-50 transition-colors font-medium">导出预设</button>
<button id="importPresets" class="flex-1 bg-white text-gray-600 text-[10px] py-1 rounded border border-gray-300 hover:bg-gray-50 transition-colors font-medium">导入预设</button>
<input type="file" id="importInput" class="hidden" accept=".json">
</div>
</div>
</div>