@axium/storage 0.6.9 → 0.6.11
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 -8
- package/lib/List.svelte +1 -1
- package/lib/Sidebar.svelte +1 -1
- package/lib/SidebarItem.svelte +5 -6
- package/lib/Usage.svelte +1 -1
- package/package.json +2 -2
- package/routes/files/+layout.svelte +3 -3
- package/routes/files/[id]/+page.svelte +1 -1
- package/routes/files/shared/+page.svelte +1 -1
- package/routes/files/trash/+page.svelte +1 -1
- package/routes/files/usage/+page.svelte +1 -1
- package/styles/list.css +2 -2
package/lib/Add.svelte
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { forMime } from '@axium/core/icons';
|
|
3
|
-
import { FormDialog, Icon, Popover, Upload } from '@axium/
|
|
3
|
+
import { FormDialog, Icon, Popover, Upload } from '@axium/client/components';
|
|
4
4
|
import { uploadItem } from '@axium/storage/client';
|
|
5
5
|
import type { StorageItemMetadata } from '@axium/storage/common';
|
|
6
6
|
|
|
@@ -72,10 +72,3 @@
|
|
|
72
72
|
</div>
|
|
73
73
|
{/if}
|
|
74
74
|
</FormDialog>
|
|
75
|
-
|
|
76
|
-
<style>
|
|
77
|
-
.menu-item:hover {
|
|
78
|
-
cursor: pointer;
|
|
79
|
-
background-color: #4455;
|
|
80
|
-
}
|
|
81
|
-
</style>
|
package/lib/List.svelte
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { formatBytes } from '@axium/core/format';
|
|
3
3
|
import { forMime as iconForMime } from '@axium/core/icons';
|
|
4
|
-
import { FormDialog, Icon } from '@axium/
|
|
4
|
+
import { FormDialog, Icon } from '@axium/client/components';
|
|
5
5
|
import { getDirectoryMetadata, updateItemMetadata } from '@axium/storage/client';
|
|
6
6
|
import type { StorageItemMetadata } from '@axium/storage/common';
|
|
7
7
|
import '../styles/list.css';
|
package/lib/Sidebar.svelte
CHANGED
package/lib/SidebarItem.svelte
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import * as icon from '@axium/core/icons';
|
|
3
|
-
import { ClipboardCopy, FormDialog, Icon } from '@axium/
|
|
3
|
+
import { ClipboardCopy, FormDialog, Icon } from '@axium/client/components';
|
|
4
4
|
import { deleteItem, updateItemMetadata } from '@axium/storage/client';
|
|
5
5
|
import type { StorageItemMetadata } from '@axium/storage/common';
|
|
6
6
|
import { debug, getDirectory, selection, toggle, toggleRange } from '@axium/storage/sidebar';
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
<SidebarItem bind:item={children[i]} bind:items={children} />
|
|
88
88
|
{/each}
|
|
89
89
|
{:catch error}
|
|
90
|
-
<i
|
|
90
|
+
<i class="error-text">{error.message}</i>
|
|
91
91
|
{/await}
|
|
92
92
|
</div>
|
|
93
93
|
</details>
|
|
@@ -166,14 +166,13 @@
|
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
.StorageSidebarItem:hover {
|
|
169
|
-
background:
|
|
169
|
+
background: var(--bg-strong);
|
|
170
170
|
cursor: pointer;
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
.selected {
|
|
174
174
|
border: 1px solid #555;
|
|
175
|
-
background:
|
|
176
|
-
color: #fff;
|
|
175
|
+
background: var(--bg-strong);
|
|
177
176
|
}
|
|
178
177
|
|
|
179
178
|
details > div {
|
|
@@ -182,7 +181,7 @@
|
|
|
182
181
|
|
|
183
182
|
div.action:hover {
|
|
184
183
|
cursor: pointer;
|
|
185
|
-
background-color:
|
|
184
|
+
background-color: var(--bg-accent);
|
|
186
185
|
border-radius: 0.25em;
|
|
187
186
|
}
|
|
188
187
|
</style>
|
package/lib/Usage.svelte
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { formatBytes } from '@axium/core/format';
|
|
3
|
-
import { NumberBar } from '@axium/
|
|
3
|
+
import { NumberBar } from '@axium/client/components';
|
|
4
4
|
import { getUserStorageInfo } from '@axium/storage/client';
|
|
5
5
|
import type { UserStorageInfo } from '@axium/storage/common';
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axium/storage",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.11",
|
|
4
4
|
"author": "James Prevett <axium@jamespre.dev> (https://jamespre.dev)",
|
|
5
5
|
"description": "User file storage for Axium",
|
|
6
6
|
"funding": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"build": "tsc"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@axium/client": ">=0.
|
|
41
|
+
"@axium/client": ">=0.2.0",
|
|
42
42
|
"@axium/core": ">=0.5.4",
|
|
43
43
|
"@axium/server": ">=0.22.5",
|
|
44
44
|
"@sveltejs/kit": "^2.27.3",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { Icon } from '@axium/
|
|
2
|
+
import { Icon } from '@axium/client/components';
|
|
3
3
|
import { StorageUsage } from '@axium/storage/components';
|
|
4
4
|
import { capitalize } from 'utilium';
|
|
5
5
|
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.item:hover {
|
|
47
|
-
background-color:
|
|
47
|
+
background-color: var(--bg-accent);
|
|
48
48
|
cursor: pointer;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.item.active {
|
|
52
|
-
background-color:
|
|
52
|
+
background-color: var(--bg-accent);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.usage {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { Icon } from '@axium/
|
|
2
|
+
import { Icon } from '@axium/client/components';
|
|
3
3
|
import { StorageAdd, StorageList } from '@axium/storage/components';
|
|
4
4
|
import type { PageProps } from './$types';
|
|
5
5
|
import { updateItemMetadata } from '@axium/storage/client';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { formatBytes } from '@axium/core/format';
|
|
3
3
|
import { forMime as iconForMime } from '@axium/core/icons';
|
|
4
|
-
import { Icon } from '@axium/
|
|
4
|
+
import { Icon } from '@axium/client/components';
|
|
5
5
|
import '@axium/storage/styles/list';
|
|
6
6
|
import type { PageProps } from './$types';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { formatBytes } from '@axium/core/format';
|
|
3
3
|
import { forMime as iconForMime } from '@axium/core/icons';
|
|
4
|
-
import { FormDialog, Icon } from '@axium/
|
|
4
|
+
import { FormDialog, Icon } from '@axium/client/components';
|
|
5
5
|
import { deleteItem, updateItemMetadata } from '@axium/storage/client';
|
|
6
6
|
import '@axium/storage/styles/list';
|
|
7
7
|
import type { PageProps } from './$types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { formatBytes } from '@axium/core/format';
|
|
3
3
|
import { forMime } from '@axium/core/icons';
|
|
4
|
-
import { FormDialog, Icon, NumberBar } from '@axium/
|
|
4
|
+
import { FormDialog, Icon, NumberBar } from '@axium/client/components';
|
|
5
5
|
import { deleteItem, updateItemMetadata } from '@axium/storage/client';
|
|
6
6
|
import type { StorageItemUpdate } from '@axium/storage/common';
|
|
7
7
|
import { StorageList } from '@axium/storage/components';
|
package/styles/list.css
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
.list-header {
|
|
8
8
|
font-weight: bold;
|
|
9
|
-
border-bottom: 1.5px solid
|
|
9
|
+
border-bottom: 1.5px solid var(--fg-accent);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.list-item-container {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.list-item:not(.list-header, :first-child) {
|
|
28
|
-
border-top: 1px solid
|
|
28
|
+
border-top: 1px solid var(--fg-accent);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.list-item:not(.list-header):hover {
|