Player names open profiles across the launcher and admin panel
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DjMbLQujBHunCCu5GpsHaT
This commit is contained in:
13 files changed
+82
-24
No files matched your search
@@ -1,4 +1,5 @@
|
||||
<script lang="ts">
|
||||
import PlayerLink from '../components/PlayerLink.svelte';
|
||||
import { onMount } from 'svelte';
|
||||
import {
|
||||
Shield, Map, Users, MessageSquare, Plus, Crown, UserCheck, Trash2,
|
||||
@@ -83,7 +84,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
type Invite = { id: number; guild_id: string; guild_name: string; guild_tag: string; icon_url: string; inviter: string };
|
||||
type Invite = { id: number; guild_id: string; guild_name: string; guild_tag: string; icon_url: string; inviter: string; inviter_uuid?: string };
|
||||
let invites = $state<Invite[]>([]);
|
||||
async function loadInvites() {
|
||||
try { invites = await invoke<Invite[]>('my_guild_invites'); } catch { invites = []; }
|
||||
@@ -259,7 +260,7 @@
|
||||
{#each invites as inv (inv.id)}
|
||||
<div class="invite">
|
||||
<span class="dot"><Shield size={15} /></span>
|
||||
<span class="text"><strong>[{inv.guild_tag}] {inv.guild_name}</strong><span class="muted tiny">Invited by {inv.inviter}</span></span>
|
||||
<span class="text"><strong>[{inv.guild_tag}] {inv.guild_name}</strong><span class="muted tiny">Invited by <PlayerLink uuid={inv.inviter_uuid} name={inv.inviter} /></span></span>
|
||||
<button class="sm ghost" onclick={() => answerInvite(inv, false)}>Decline</button>
|
||||
<button class="sm primary" onclick={() => answerInvite(inv, true)} disabled={!!myGuild} title={myGuild ? 'Leave your guild first' : ''}>Accept</button>
|
||||
</div>
|
||||
@@ -450,7 +451,7 @@
|
||||
<div class="author-meta">
|
||||
<Avatar uuid={p.author_uuid} name={p.author_name} size={1.8} />
|
||||
<div class="author-info">
|
||||
<span class="author-name">{p.author_name}</span>
|
||||
<span class="author-name"><PlayerLink uuid={p.author_uuid} name={p.author_name} /></span>
|
||||
<span class="post-date tiny muted">{new Date(p.created_at).toLocaleString()}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user