diff --git a/src/lib/Settings.svelte b/src/lib/Settings.svelte
new file mode 100644
index 0000000..09e5605
--- /dev/null
+++ b/src/lib/Settings.svelte
@@ -0,0 +1,33 @@
+
+
+
+
nvAux Settings
+
+ {#await db().notes.find().exec()}
+
...waiting
+ {:then notes}
+
Total Notes: {notes.length}
+ {:catch error}
+
{error.message}
+ {/await}
+
+
+
+
+
+
diff --git a/src/lib/StatusBar.svelte b/src/lib/StatusBar.svelte
new file mode 100644
index 0000000..273b974
--- /dev/null
+++ b/src/lib/StatusBar.svelte
@@ -0,0 +1,3 @@
+
+nvAux v0.1.5
+
diff --git a/src/lib/store.js b/src/lib/store.js
index 764ebae..34a38f5 100644
--- a/src/lib/store.js
+++ b/src/lib/store.js
@@ -25,20 +25,27 @@ const _create = async () => {
const db = await createRxDatabase({
name: 'nvauxdb',
storage: getRxStorageDexie(),
- // ignoreDuplicate: true
+ ignoreDuplicate: true
});
await db.addCollections({ notes: { schema } });
const notes = await db.notes.find().exec();
-
if (notes.length === 0) {
const date = new Date().getTime();
await db.notes.insert({
- guid: uuidv4(),
- name: 'π Welcome to nvAux!',
- body: `
+ guid: '00000000-0000-0000-0000-000000000000',
+ name: 'βοΈ nvAux Settings...',
+ createdAt: date,
+ updatedAt: date
+ });
+
+ setTimeout (() => {
+ db.notes.insert({
+ guid: uuidv4(),
+ name: 'π Welcome to nvAux!',
+ body: `
Welcome aboard! nvAux is your new personal command center, designed to capture your thoughts and ideas swiftly and securely. Inspired by the principles of OmniFocus and David Allen's 'Getting Things Done', nvAux is more than just a note-taking appβit's a productivity powerhouse.
Here's a quick rundown of what you can do with nvAux:
@@ -52,9 +59,10 @@ Dive into our User Guide to explore these features in detail, or check out our F
The nvAux Team
`,
- createdAt: date,
- updatedAt: date
- });
+ createdAt: new Date().getTime(),
+ updatedAt: new Date().getTime()
+ });
+ }, 500)
};
dbPromise = db;
diff --git a/src/lib/style.css b/src/lib/style.css
index 42203e4..f4482f2 100644
--- a/src/lib/style.css
+++ b/src/lib/style.css
@@ -13,46 +13,56 @@ button, input, optgroup, select, textarea { padding: 0; line-height: inherit; co
pre, code, kbd, samp { font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
html, body { background-color: #151618; margin: 0; padding: 0; font-family: Verdana, Geneva, Tahoma, sans-serif; font-size: 0.9rem; height: 100%; width: 100%; overflow: hidden;}
-.w-screen { width: 100vw; }
-.h-screen { height: 100vh; }
+.absolute { position: absolute; }
+.bg-gray-200 { background-color: #edf2f7; }
+.bg-gray-800 { background-color: #2d3748; }
+.bg-transparent { background-color: transparent; }
+.block { display: block; }
+.border-0 { border-width: 0; }
+.border-b { border-bottom-width: 1px; }
+.border-box { box-sizing: border-box; }
+.elipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 10px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
-.justify-center { justify-content: center; }
-.bg-gray-200 { background-color: #edf2f7; }
-.items-center { align-items: center; }
.flex-grow { flex-grow: 1; }
-.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
-.m-1\.5 { margin: 0.375rem; }
-.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
-.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
-.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
-.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
-.pr-1 { padding-right: 0.25rem; }
-.pr-1\.5 { padding-right: 0.375rem; }
-.pl-1 { padding-left: 0.25rem; }
-.pl-1\.5 { padding-left: 0.375rem; }
-.w-full { width: 100%; }
+.flex-grow-0 { flex-grow: 0; }
+.h-\[10px\] { height: 10px; }
.h-full { height: 100%; }
-.overflow-y-auto { overflow-y: auto; }
-.overflow-x-clip { overflow-x: clip; }
-.text-sm { font-size: 0.875rem; }
+.h-screen { height: 100vh; }
+.hidden { display: none; }
+.items-center { align-items: center; }
+.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
+.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
-.text-gray-600 { color: #718096; }
-.border-b { border-bottom-width: 1px; }
-.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
-.smooth-scroll { scroll-behavior: smooth; }
-.select-none { user-select: none; }
-.items-center { align-items: center; }
-.relative { position: relative; }
-.block { display: block; }
+.m-1\.5 { margin: 0.375rem; }
.no-resize { resize: none; }
-.border-0 { border-width: 0; }
.outline-none { outline: none; }
-.border-box { box-sizing: border-box; }
-.absolute { position: absolute; }
-.bg-transparent { background-color: transparent; }
.overflow-hidden { overflow: hidden; }
-.elipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 10px; }
+.overflow-x-clip { overflow-x: clip; }
+.overflow-y-auto { overflow-y: auto; }
+.pl-1 { padding-left: 0.25rem; }
+.pl-1\.5 { padding-left: 0.375rem; }
+.pr-1 { padding-right: 0.25rem; }
+.pr-1\.5 { padding-right: 0.375rem; }
+.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
+.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
+.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
+.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
+.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
+.p-2 { padding: 0.5rem; }
+.relative { position: relative; }
.row-resize { cursor: row-resize; }
-.h-\[10px\] { height: 10px; }
+.select-none { user-select: none; }
+.smooth-scroll { scroll-behavior: smooth; }
+.text-gray-600 { color: #718096; }
+.text-sm { font-size: 0.875rem; }
+.text-white { color: #fff; }
+.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
+.w-full { width: 100%; }
+.w-screen { width: 100vw; }
+.btn {
+ padding: 3px 10px;
+ border-radius: 3px;
+ font-size: 14px;
+}