@axium/server 0.41.0 → 0.41.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axium/server",
3
- "version": "0.41.0",
3
+ "version": "0.41.1",
4
4
  "author": "James Prevett <axium@jamespre.dev>",
5
5
  "funding": {
6
6
  "type": "individual",
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { deleteUser, fetchAPI, text } from '@axium/client';
3
- import { ClipboardCopy, FormDialog, Icon, SessionList, ZodForm, ZodInput } from '@axium/client/components';
3
+ import { ClipboardCopy, FormDialog, Icon, SessionList, UserPFP, ZodForm, ZodInput } from '@axium/client/components';
4
4
  import { toast } from '@axium/client/toast';
5
5
  import '@axium/client/styles/account';
6
6
  import { preferenceLabels, Preferences, User } from '@axium/core';
@@ -10,7 +10,8 @@
10
10
  let user = $state(data.user);
11
11
  const { session } = data;
12
12
 
13
- let sessions = $state(user.sessions);
13
+ let sessions = $state(user.sessions),
14
+ hasDefaultPFP = $state(false);
14
15
 
15
16
  async function updateValue(val: User) {
16
17
  try {
@@ -94,12 +95,9 @@
94
95
  </div>
95
96
  <div class="item info">
96
97
  <p>{text('page.admin.users.profile_image')}</p>
97
- {#if user.image}
98
- <a href={user.image} target="_blank" rel="noopener noreferrer">{user.image}</a>
99
- <ClipboardCopy value={user.image} --size="16px" />
100
- {:else}
101
- <i>{text('page.admin.users.default_image')}</i>
102
- <p></p>
98
+ <UserPFP {user} bind:isDefault={hasDefaultPFP} />
99
+ {#if hasDefaultPFP}
100
+ <p>{text('page.admin.users.default_image')}</p>
103
101
  {/if}
104
102
  </div>
105
103
  <div class="item info">