-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Benjamin Keating
committed
Jul 18, 2023
1 parent
89cee9d
commit 7b2622e
Showing
11 changed files
with
145 additions
and
164 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<script> | ||
import { db } from './store'; | ||
import DownloadNotesZip from './DownloadNotesZip.svelte'; | ||
import ImportNotesZip from './ImportNotesZip.svelte'; | ||
const handleDeleteCollection = async () => { | ||
const db$ = await db(); | ||
// db$.notes.destroy(); | ||
db$.notes.remove(); | ||
}; | ||
</script> | ||
|
||
<div class="px-2 text-white"> | ||
<h2 style="font-size: 20px; line-height: 0;">nvAux Settings</h2> | ||
<div class="relative"> | ||
{#await db().notes.find().exec()} | ||
<p>...waiting</p> | ||
{:then notes} | ||
<p><span class="text-gray-600">Total Notes: </span>{notes.length}</p> | ||
{:catch error} | ||
<p style="color: red">{error.message}</p> | ||
{/await} | ||
|
||
<ImportNotesZip /> | ||
<DownloadNotesZip /> | ||
<button | ||
on:click={handleDeleteCollection} | ||
class="btn" | ||
style="background: #b41111;">Reset Database</button | ||
> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div class="px-2 flex items-center absolute w-full flex-grow-0" style="height: 30px; background: #181a1c; bottom: 0; left: 0; color: #606060; "> | ||
nvAux v0.1.5 | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.