@axium/notes 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Note.svelte +1 -9
- package/package.json +4 -3
- package/routes/notes/+page.svelte +15 -12
package/lib/Note.svelte
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
fetchAPI('PATCH', 'notes/:id', note, note.id);
|
|
23
23
|
}}
|
|
24
24
|
/>
|
|
25
|
-
<Popover>
|
|
25
|
+
<Popover showToggle="hover">
|
|
26
26
|
<div
|
|
27
27
|
class="menu-item"
|
|
28
28
|
onclick={() =>
|
|
@@ -104,12 +104,4 @@
|
|
|
104
104
|
padding: 0;
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
|
|
108
|
-
.note :global(.popover-toggle) {
|
|
109
|
-
visibility: hidden;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.note:hover :global(.popover-toggle) {
|
|
113
|
-
visibility: visible;
|
|
114
|
-
}
|
|
115
107
|
</style>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axium/notes",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"author": "James Prevett <axium@jamespre.dev>",
|
|
5
5
|
"description": "Notes for Axium",
|
|
6
6
|
"funding": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"build": "tsc"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@axium/client": ">=0.9.
|
|
38
|
+
"@axium/client": ">=0.9.6",
|
|
39
39
|
"@axium/core": ">=0.12.0",
|
|
40
40
|
"@axium/server": ">=0.28.0",
|
|
41
41
|
"@sveltejs/kit": "^2.27.3",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"name": "Notes",
|
|
57
57
|
"icon": "notes"
|
|
58
58
|
}
|
|
59
|
-
]
|
|
59
|
+
],
|
|
60
|
+
"update_checks": true
|
|
60
61
|
}
|
|
61
62
|
}
|
|
@@ -15,18 +15,17 @@
|
|
|
15
15
|
|
|
16
16
|
<div class="notes-main">
|
|
17
17
|
<h1>Notes</h1>
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
</span>
|
|
18
|
+
<button
|
|
19
|
+
id="create-note"
|
|
20
|
+
class="icon-text mobile-float-right"
|
|
21
|
+
onclick={async () => {
|
|
22
|
+
const result = await fetchAPI('PUT', 'users/:id/notes', { title: '' }, data.session.userId);
|
|
23
|
+
parseNote(result);
|
|
24
|
+
notes.push(result);
|
|
25
|
+
}}
|
|
26
|
+
>
|
|
27
|
+
<Icon i="plus" /> New Note
|
|
28
|
+
</button>
|
|
30
29
|
<div class="lists-container">
|
|
31
30
|
{#each notes as note}
|
|
32
31
|
<Note {note} bind:notes />
|
|
@@ -48,4 +47,8 @@
|
|
|
48
47
|
grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
|
|
49
48
|
gap: 1em;
|
|
50
49
|
}
|
|
50
|
+
|
|
51
|
+
#create-note {
|
|
52
|
+
width: fit-content;
|
|
53
|
+
}
|
|
51
54
|
</style>
|