@axium/notes 0.1.6 → 0.1.8

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/dist/plugin.d.ts CHANGED
@@ -52,5 +52,10 @@ declare const _default: {
52
52
  dependencies: {
53
53
  zod: string;
54
54
  };
55
+ apps: {
56
+ id: string;
57
+ name: string;
58
+ icon: string;
59
+ }[];
55
60
  };
56
61
  export default _default;
package/dist/plugin.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import * as acl from '@axium/server/acl';
2
- import { addApp } from '@axium/server/apps';
3
2
  import { count, createIndex, database, warnExists } from '@axium/server/database';
4
3
  import { done, start } from '@axium/server/io';
5
4
  import { sql } from 'kysely';
@@ -38,12 +37,6 @@ async function remove() {
38
37
  start('Dropping table notes');
39
38
  await database.schema.dropTable('notes').execute().then(done);
40
39
  }
41
- addApp({
42
- id: 'notes',
43
- name: 'Notes',
44
- icon: 'notes',
45
- version: pkg.version,
46
- });
47
40
  export default {
48
41
  ...pkg,
49
42
  statusText,
package/lib/Note.svelte CHANGED
@@ -34,7 +34,10 @@
34
34
  <Icon i="trash" /> Delete
35
35
  </div>
36
36
  <div class="menu-item" onclick={() => download(note.title + '.txt', note.content ?? '')}>
37
- <Icon i="file-arrow-down" /> Download
37
+ <Icon i="download" /> Download
38
+ </div>
39
+ <div class="menu-item" onclick={() => copy('text/plain', `${location.origin}/notes/${note.id}`)}>
40
+ <Icon i="link-horizontal" /> Copy Link
38
41
  </div>
39
42
  {#if notes}
40
43
  <div class="menu-item" onclick={() => open(`/notes/${note.id}`)}>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axium/notes",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "author": "James Prevett <axium@jamespre.dev> (https://jamespre.dev)",
5
5
  "description": "Notes for Axium",
6
6
  "funding": {
@@ -36,12 +36,19 @@
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@axium/client": ">=0.4.0",
39
- "@axium/core": ">=0.6.0",
40
- "@axium/server": ">=0.22.0",
39
+ "@axium/core": ">=0.7.0",
40
+ "@axium/server": ">=0.23.0",
41
41
  "@sveltejs/kit": "^2.27.3",
42
42
  "utilium": "^2.4.0"
43
43
  },
44
44
  "dependencies": {
45
45
  "zod": "^4.0.5"
46
- }
46
+ },
47
+ "apps": [
48
+ {
49
+ "id": "notes",
50
+ "name": "Notes",
51
+ "icon": "notes"
52
+ }
53
+ ]
47
54
  }