Update Database.svelte

This commit is contained in:
Classic298 2025-08-12 13:16:55 +02:00 committed by GitHub
parent e4a0bd8640
commit 60edac6c3f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -79,9 +79,9 @@
return `"${String(user[header]).replace(/"/g, '""')}"`;
})
.join(',');
})
].join('\n');
const blob = new Blob([csv], { type: 'text/csv;charset=utf-8;' });
saveAs(blob, 'users.csv');
};
@ -101,6 +101,7 @@
<div class=" space-y-3 overflow-y-scroll scrollbar-hidden h-full">
<div>
<div class=" mb-2 text-sm font-medium">{$i18n.t('Database')}</div>
<input
id="config-json-input"
hidden
@ -242,11 +243,9 @@
/>
</svg>
</div>
<div class=" self-center text-sm font-medium">
{$i18n.t('Export All Chats (All Users)')}
</div>
</button>
<button
@ -303,6 +302,7 @@
</button>
</div>
</div>
<!-- <div class="flex justify-end pt-3 text-sm font-medium">
<button
class=" px-4 py-2 bg-emerald-700 hover:bg-emerald-800 text-gray-100 transition rounded-lg"
@ -310,5 +310,6 @@
>
{$i18n.t('Save')}
</button>
</div> -->
</form>