@axium/storage 0.19.0 → 0.19.1
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/Add.svelte +1 -1
- package/lib/List.svelte +3 -3
- package/package.json +2 -2
- package/routes/files/[id]/+page.svelte +7 -3
package/lib/Add.svelte
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
|
|
33
33
|
<Popover>
|
|
34
34
|
{#snippet toggle()}
|
|
35
|
-
<button class="icon-text"><Icon i="plus" />{text('storage.Add.text')}</button>
|
|
35
|
+
<button class="icon-text StorageAdd"><Icon i="plus" />{text('storage.Add.text')}</button>
|
|
36
36
|
{/snippet}
|
|
37
37
|
|
|
38
38
|
<span class="menu-item" onclick={() => uploadDialog.showModal()}><Icon i="upload" />{text('storage.Add.upload')}</span>
|
package/lib/List.svelte
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { text } from '@axium/client';
|
|
3
|
-
import { contextMenu } from '@axium/client/attachments';
|
|
3
|
+
import { closeOnBackGesture, contextMenu } from '@axium/client/attachments';
|
|
4
4
|
import { AccessControlDialog, FormDialog, Icon } from '@axium/client/components';
|
|
5
|
+
import { copy } from '@axium/client/gui';
|
|
5
6
|
import '@axium/client/styles/list';
|
|
6
7
|
import type { AccessControllable, UserPublic } from '@axium/core';
|
|
7
8
|
import { formatBytes } from '@axium/core/format';
|
|
@@ -10,7 +11,6 @@
|
|
|
10
11
|
import { copyShortURL, formatItemName } from '@axium/storage/client/frontend';
|
|
11
12
|
import type { StorageItemMetadata } from '@axium/storage/common';
|
|
12
13
|
import Preview from './Preview.svelte';
|
|
13
|
-
import { copy } from '@axium/client/gui';
|
|
14
14
|
|
|
15
15
|
let {
|
|
16
16
|
items = $bindable(),
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
{/each}
|
|
108
108
|
</div>
|
|
109
109
|
|
|
110
|
-
<dialog bind:this={dialogs.preview} class="preview" onclick={e => e.stopPropagation()}>
|
|
110
|
+
<dialog bind:this={dialogs.preview} class="preview" onclick={e => e.stopPropagation()} {@attach closeOnBackGesture}>
|
|
111
111
|
{#if activeItem}
|
|
112
112
|
<Preview
|
|
113
113
|
item={activeItem}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axium/storage",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.1",
|
|
4
4
|
"author": "James Prevett <axium@jamespre.dev>",
|
|
5
5
|
"description": "User file storage for Axium",
|
|
6
6
|
"funding": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"build": "tsc"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@axium/client": ">=0.
|
|
43
|
+
"@axium/client": ">=0.19.0",
|
|
44
44
|
"@axium/core": ">=0.19.0",
|
|
45
45
|
"@axium/server": ">=0.39.0",
|
|
46
46
|
"@sveltejs/kit": "^2.27.3",
|