mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-12-05 16:07:33 +00:00
fix(frontend): truncate long MCP client IDs
Signed client IDs are now about 200 characters. Show them on one line on the consent page and in the connection list, with the full value in the title. The random part leads, so truncated IDs still differ. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
575dd9bc2b
commit
b3eb7194c2
2 files changed
+2
-2
No files matched your search
@@ -23,7 +23,7 @@
|
||||
</div>
|
||||
<div>
|
||||
<dt class="text-gray-500 dark:text-gray-400">{{ t('mcp.clientId') }}</dt>
|
||||
<dd class="mt-1 break-all font-mono text-xs text-gray-700 dark:text-gray-200">{{ consent.client_id }}</dd>
|
||||
<dd class="mt-1 truncate font-mono text-xs text-gray-700 dark:text-gray-200" :title="consent.client_id">{{ consent.client_id }}</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt class="text-gray-500 dark:text-gray-400">{{ t('mcp.returnAddress') }}</dt>
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
<span class="rounded-md bg-primary-50 px-2 py-0.5 text-xs text-primary-700 dark:bg-primary-900/20 dark:text-primary-300">{{ grant.read_only ? t('mcp.readOnly') : t('mcp.readWrite') }}</span>
|
||||
<span class="text-xs" :class="isActive(grant) ? 'text-emerald-600 dark:text-emerald-400' : 'text-gray-500 dark:text-gray-400'">{{ grantStatus(grant) }}</span>
|
||||
</div>
|
||||
<p class="break-all font-mono text-xs text-gray-500 dark:text-gray-400">{{ grant.client_id }}</p>
|
||||
<p class="truncate font-mono text-xs text-gray-500 dark:text-gray-400" :title="grant.client_id">{{ grant.client_id }}</p>
|
||||
<div class="flex flex-wrap gap-x-4 gap-y-1 text-xs text-gray-500 dark:text-gray-400">
|
||||
<span>{{ t('mcp.createdAt', { date: formatDate(grant.created_at) }) }}</span>
|
||||
<span>{{ t('mcp.expiresAt', { date: formatDate(grant.expires_at) }) }}</span>
|
||||
|
||||
Reference in new issue
Block a user