@axium/server 0.28.4 → 0.28.5
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/package.json +2 -2
- package/routes/account/+page.svelte +22 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axium/server",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.5",
|
|
4
4
|
"author": "James Prevett <axium@jamespre.dev>",
|
|
5
5
|
"funding": {
|
|
6
6
|
"type": "individual",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"clean": "rm -rf build .svelte-kit node_modules/{.vite,.vite-temp}"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@axium/client": ">=0.9.
|
|
50
|
+
"@axium/client": ">=0.9.5",
|
|
51
51
|
"@axium/core": ">=0.12.0",
|
|
52
52
|
"kysely": "^0.28.0",
|
|
53
53
|
"utilium": "^2.3.8",
|
|
@@ -96,23 +96,31 @@
|
|
|
96
96
|
<h3>Passkeys</h3>
|
|
97
97
|
{#each passkeys as passkey}
|
|
98
98
|
<div class="item passkey">
|
|
99
|
-
<
|
|
100
|
-
<
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
<
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
99
|
+
<p>
|
|
100
|
+
<dfn title={passkey.deviceType == 'multiDevice' ? 'Multiple devices' : 'Single device'}>
|
|
101
|
+
<Icon i={passkey.deviceType == 'multiDevice' ? 'laptop-mobile' : 'mobile'} --size="16px" />
|
|
102
|
+
</dfn>
|
|
103
|
+
<dfn title="This passkey is {passkey.backedUp ? '' : 'not '}backed up">
|
|
104
|
+
<Icon i={passkey.backedUp ? 'circle-check' : 'circle-xmark'} --size="16px" />
|
|
105
|
+
</dfn>
|
|
106
|
+
{#if passkey.name}
|
|
107
|
+
<p>{passkey.name}</p>
|
|
108
|
+
{:else}
|
|
109
|
+
<p class="subtle"><i>Unnamed</i></p>
|
|
110
|
+
{/if}
|
|
111
|
+
</p>
|
|
110
112
|
<p>Created {passkey.createdAt.toLocaleString()}</p>
|
|
111
|
-
|
|
113
|
+
<button commandfor="edit_passkey:{passkey.id}" command="show-modal" class="icon-text">
|
|
114
|
+
<Icon i="pen" --size="16px" />
|
|
115
|
+
<span class="mobile-only">Rename</span>
|
|
116
|
+
</button>
|
|
112
117
|
{#if passkeys.length > 1}
|
|
113
|
-
|
|
118
|
+
<button commandfor="delete_passkey:{passkey.id}" command="show-modal" class="icon-text">
|
|
119
|
+
<Icon i="trash" --size="16px" />
|
|
120
|
+
<span class="mobile-only">Delete</span>
|
|
121
|
+
</button>
|
|
114
122
|
{:else}
|
|
115
|
-
<dfn title="You must have at least one passkey" class="disabled">
|
|
123
|
+
<dfn title="You must have at least one passkey" class="disabled icon-text mobile-hide">
|
|
116
124
|
<Icon i="trash-slash" --fill="#888" --size="16px" />
|
|
117
125
|
</dfn>
|
|
118
126
|
{/if}
|