feat(monitoring): decouple AI platforms from media_platforms and expand catalog to 6

Add ai_platforms table + shared catalog (yuanbao/kimi/wenxin/deepseek/doubao/qwen),
drop FKs from platform_accounts and desktop_tasks to media_platforms, and wire
target_account_id + platform into DesktopTaskEvent so the desktop runtime no
longer has to infer them from local state. Desktop client gains generic AI page
detection for binding, drops stale-business-date monitor tasks at the edge, and
refactors AccountsView/AiPlatformsView around the shared catalog. Admin tracking
view surfaces per-platform sampling status cards.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-20 15:40:18 +08:00
parent 25dad49ed3
commit 09295d11a1
21 changed files with 2073 additions and 843 deletions
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { computed, ref } from "vue";
import { SearchOutlined, ReloadOutlined, ApiOutlined, ArrowRightOutlined, DeleteOutlined } from "@ant-design/icons-vue";
import { SearchOutlined, ReloadOutlined, ApiOutlined, ArrowRightOutlined, DeleteOutlined, LinkOutlined, SyncOutlined } from "@ant-design/icons-vue";
import StatusBadge from "../components/StatusBadge.vue";
import SurfaceCard from "../components/SurfaceCard.vue";
@@ -208,536 +208,464 @@ async function unbindAccount(account: AccountRow) {
}
const tableColumns = [
{ title: "昵称", key: "name", dataIndex: "name" },
{ title: "平台", key: "platform", dataIndex: "platform" },
{ title: "授权状态", key: "status", dataIndex: "status" },
{ title: "本地会话", key: "session", dataIndex: "session" },
{ title: "授权时间", key: "syncTime", dataIndex: "syncTime" },
{ title: "昵称 / UID", key: "name", dataIndex: "name" },
{ title: "平台", key: "platform", dataIndex: "platform", width: 140 },
{ title: "授权状态", key: "status", dataIndex: "status", width: 120 },
{ title: "本地会话", key: "session", dataIndex: "session", width: 140 },
{ title: "授权时间", key: "syncTime", dataIndex: "syncTime", width: 180 },
{ title: "操作", key: "actions", align: "right" as const }
];
</script>
<template>
<section class="media-view">
<section class="media-view__top-card">
<div class="media-view__header">
<div class="media-view__header-title">
<h2>账号管理</h2>
<p>先把平台授权跑通上面直接发起真实登录绑定下面看已授权账号状态和进入创作台入口</p>
<section class="page-container">
<section class="hero-card">
<div class="hero-header">
<div class="hero-title">
<p class="eyebrow">MEDIA ACCOUNT MANAGEMENT</p>
<h2>媒体账号管理</h2>
</div>
<div class="media-view__header-actions">
<a-button :loading="loading" @click="refreshAccounts">
<div class="hero-actions">
<a-button type="primary" ghost class="modern-btn" :loading="loading" @click="refreshAccounts">
<template #icon><ReloadOutlined /></template>
刷新状态
</a-button>
</div>
</div>
<div class="overview-strip border-t">
<div class="overview-chip">
<span>已授权</span>
<strong>{{ overview.authorized }}</strong>
<div class="stats-strip">
<div class="stat-card">
<div class="stat-label">已授权</div>
<div class="stat-value">{{ overview.authorized }}</div>
</div>
<div class="overview-chip">
<span>待处理</span>
<strong>{{ overview.attention }}</strong>
<div class="stat-card">
<div class="stat-label">待处理</div>
<div class="stat-value">{{ overview.attention }}</div>
</div>
<div class="overview-chip">
<span>风险观察</span>
<strong>{{ overview.risk }}</strong>
<div class="stat-card">
<div class="stat-label">风险观察</div>
<div class="stat-value">{{ overview.risk }}</div>
</div>
<div class="overview-chip">
<span>在线客户端</span>
<strong>{{ overview.onlineClients }}</strong>
<div class="stat-card">
<div class="stat-label">在线客户端</div>
<div class="stat-value">{{ overview.onlineClients }}</div>
</div>
</div>
</section>
<section class="media-list-wrapper panel">
<div class="media-list-content">
<h4 class="media-list-title">选择平台进行授权</h4>
<p class="media-list-desc">点击平台即可发起真实登录登录成功后自动探测账号并回写到当前 desktop client</p>
<section class="media-grid">
<article
v-for="platform in platformCards"
:key="platform.id"
class="media-card"
:class="[
selectedPlatform === platform.id ? 'media-card--active' : '',
platform.latestAccount ? 'media-card--success' : 'media-card--default'
]"
@click="selectPlatform(platform.id)"
>
<div class="media-card__head">
<div class="media-card__identity">
<span class="media-card__badge" :style="{ color: platform.accent }">
<img v-if="platform.logoUrl" :src="platform.logoUrl" :alt="platform.label" style="width: 20px; height: 20px; object-fit: contain;" />
<span v-else>{{ platform.shortName }}</span>
</span>
<div class="media-card__identity-text">
<h3>{{ platform.label }}</h3>
<p>{{ platform.count > 0 ? `${platform.count} 个账号` : "未绑定" }}</p>
</div>
<!-- Content Sections -->
<section class="content-section">
<div class="section-header">
<h3 class="section-title">选择平台进行授权</h3>
</div>
<div class="grid-layout">
<article
v-for="platform in platformCards"
:key="platform.id"
class="modern-card media-card-clickable"
:class="[
selectedPlatform === platform.id ? 'is-active' : '',
platform.latestAccount ? 'is-bound' : 'is-unbound'
]"
@click="selectPlatform(platform.id)"
>
<div class="card-header">
<div class="brand-info">
<span class="brand-logo" :style="{ color: platform.accent, background: '#ffffff', boxShadow: '0 2px 4px rgba(0,0,0,0.03), inset 0 0 0 1px #e2e8f0' }">
<img v-if="platform.logoUrl" :src="platform.logoUrl" :alt="platform.label" style="width: 24px; height: 24px; object-fit: contain;" />
<span v-else>{{ platform.shortName }}</span>
</span>
<div class="brand-text">
<h4>{{ platform.label }}</h4>
<p>{{ platform.count > 0 ? `${platform.count} 个账号` : "未绑定" }}</p>
</div>
</div>
<!-- Dynamic Status Badge/Tag could be added here if needed -->
</div>
<div class="media-card__footer">
<div class="media-card__status">
<span v-if="platform.latestAccount" class="status-dot success"></span>
<span v-else class="status-dot default"></span>
<span class="status-text">{{ platform.latestAccount ? '已接入' : '待接入' }}</span>
</div>
<div class="media-card__actions">
<div class="card-footer" style="padding-top: 16px; margin-top: auto; border-top: 1px dashed #e2e8f0; display:flex; justify-content: space-between; align-items:center;">
<div class="media-card__status" style="display:flex; align-items:center; gap: 8px;">
<span :class="['status-dot', platform.latestAccount ? 'success' : 'default']"></span>
<span style="font-size: 13px; color: #64748b; font-weight: 500;">
{{ platform.latestAccount ? '已接入' : '待接入' }}
</span>
</div>
<div class="action-group">
<a-button
v-if="platform.count > 0"
class="action-btn-publish"
:loading="bindPendingPlatformId === platform.id"
@click.stop="bindPlatform(platform.id)"
>
新增账号 <ApiOutlined />
新增账号
<template #icon><ApiOutlined /></template>
</a-button>
<a-button
v-else
class="action-btn-bind"
type="primary"
class="action-btn-bind modern-btn"
style="border-radius: 8px; font-weight: 600;"
:loading="bindPendingPlatformId === platform.id"
@click.stop="bindPlatform(platform.id)"
>
绑定账号 <ArrowRightOutlined />
绑定账号
<template #icon><ArrowRightOutlined /></template>
</a-button>
</div>
</div>
</article>
</section>
</div>
</div>
</article>
</div>
</section>
<div class="panel list-panel">
<div class="table-header">
<h3 class="panel-title">授权账号列表</h3>
<p class="panel-desc">当前仅展示本机存在缓存分区或会话的媒体账号并实时校验授权是否过期</p>
<div class="media-list-toolbar">
<div class="toolbar-filters">
<a-select
v-model:value="selectedPlatform"
style="width: 160px"
>
<!-- Table Details Section -->
<section class="content-section">
<div class="hero-card" style="padding-bottom: 0;">
<div class="hero-header" style="padding: 24px 32px 16px; border-bottom: 1px solid #eef2f6; align-items: center;">
<div style="flex: 1;">
<h3 class="section-title">授权账号列表</h3>
</div>
<!-- Filters ToolBar -->
<div style="display: flex; gap: 12px; align-items: center;">
<a-select v-model:value="selectedPlatform" style="width: 140px; border-radius: 8px;">
<a-select-option value="all">所有平台</a-select-option>
<a-select-option v-for="platform in platformCards" :key="platform.id" :value="platform.id">
{{ platform.label }}
</a-select-option>
</a-select>
<a-select
v-model:value="selectedStatus"
style="width: 160px"
>
<a-select v-model:value="selectedStatus" style="width: 140px;">
<a-select-option v-for="option in statusOptions" :key="option.value" :value="option.value">
{{ option.label }}
</a-select-option>
</a-select>
<a-input
v-model:value="searchQuery"
placeholder="搜索昵称、UID、平台或本地分区"
style="width: 280px"
allow-clear
>
<template #prefix>
<SearchOutlined style="color: #bfbfbf" />
</template>
<a-input v-model:value="searchQuery" placeholder="搜索昵称、UID..." style="width: 220px;" allow-clear>
<template #prefix><SearchOutlined style="color: #94a3b8;" /></template>
</a-input>
</div>
</div>
</div>
<a-table
class="modern-table"
:columns="tableColumns"
:data-source="filteredAccounts"
:pagination="false"
>
<template #emptyText>
<a-empty description="暂无匹配账号" />
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'name'">
<div class="cell-primary-secondary">
<div class="user-avatar-wrap">
<span class="avatar-circle" :style="{ background: platformMeta(record.platform).accent }">
<img v-if="record.avatarUrl" :src="record.avatarUrl" :alt="record.displayName" />
<span v-else class="avatar-initial">{{ accountInitial(record) }}</span>
</span>
<div class="info-stack">
<span class="title">{{ record.displayName }}</span>
<span class="subtitle">{{ record.platformUid }}</span>
</div>
</div>
</div>
<a-table class="modern-table" :columns="tableColumns" :data-source="filteredAccounts" :pagination="false">
<template #emptyText>
<div style="padding: 60px; color: #94a3b8;"><a-empty description="暂无匹配账号,请重置过滤或绑定新账号" /></div>
</template>
<template v-else-if="column.key === 'platform'">
<div class="platform-display">
<span class="platform-logo-mini">
<img v-if="platformMeta(record.platform).logoUrl" :src="platformMeta(record.platform).logoUrl!" />
<span v-else :style="{ color: platformMeta(record.platform).accent, fontWeight: 600 }">
{{ platformMeta(record.platform).shortName }}
</span>
</span>
<span>{{ platformMeta(record.platform).label }}</span>
</div>
</template>
<template v-else-if="column.key === 'status'">
<a-tag :color="record.health === 'live' ? 'green' : record.health === 'expired' ? 'red' : record.health === 'captcha' ? 'orange' : 'default'">
{{ authStateLabel(record) }}
</a-tag>
</template>
<template v-else-if="column.key === 'session'">
<div class="cell-primary-secondary">
<div class="info-stack">
<span class="title">{{ sessionStateLabel(record) }}</span>
<span class="subtitle">{{ record.online ? "本机在线" : "本机离线" }}</span>
</div>
</div>
</template>
<template v-else-if="column.key === 'syncTime'">
<div class="cell-primary-secondary">
<div class="info-stack">
<span class="title">{{ formatDateTime(record.lastSyncAt) }}</span>
<span class="subtitle">{{ record.partition }}</span>
</div>
</div>
</template>
<template v-else-if="column.key === 'actions'">
<div class="action-buttons">
<a-button
type="primary"
size="small"
:loading="consolePendingAccountId === record.id"
@click="openConsole(record)"
>
创作台
</a-button>
<a-button
size="small"
:loading="bindPendingPlatformId === record.platform"
@click="bindPlatform(record.platform)"
>
重新授权
</a-button>
<a-popconfirm
title="解绑这个账号?"
description="会删除当前账号绑定,并清理本机的本地 session / partition 缓存。"
ok-text="确认解绑"
cancel-text="取消"
@confirm="unbindAccount(record)"
>
<a-button
danger
size="small"
:loading="unbindPendingAccountId === record.id"
>
<template #icon><DeleteOutlined /></template>
解绑
</a-button>
</a-popconfirm>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'name'">
<div class="cell-primary-secondary">
<div class="user-avatar-wrap">
<span class="avatar-circle" :style="{ background: platformMeta(record.platform).accent }">
<img v-if="record.avatarUrl" :src="record.avatarUrl" :alt="record.displayName" />
<span v-else class="avatar-initial">{{ accountInitial(record) }}</span>
</span>
<div class="info-stack">
<span class="title">{{ record.displayName }}</span>
<span class="subtitle mono-text">{{ record.platformUid }}</span>
</div>
</div>
</div>
</template>
<template v-else-if="column.key === 'platform'">
<div class="platform-display">
<span class="platform-logo-mini">
<img v-if="platformMeta(record.platform).logoUrl" :src="platformMeta(record.platform).logoUrl!" />
<span v-else :style="{ color: platformMeta(record.platform).accent, fontWeight: 700 }">
{{ platformMeta(record.platform).shortName }}
</span>
</span>
<span style="font-weight: 600; font-size: 13px; color: #0f172a;">{{ platformMeta(record.platform).label }}</span>
</div>
</template>
<template v-else-if="column.key === 'status'">
<a-tag :color="record.health === 'live' ? 'success' : record.health === 'expired' ? 'error' : record.health === 'captcha' ? 'warning' : 'default'" style="border-radius: 999px; font-weight: 600; padding: 2px 10px;">
{{ authStateLabel(record) }}
</a-tag>
</template>
<template v-else-if="column.key === 'session'">
<div class="cell-primary-secondary">
<div class="info-stack">
<span class="title">{{ sessionStateLabel(record) }}</span>
<span class="subtitle">{{ record.online ? "本机在线" : "本机离线" }}</span>
</div>
</div>
</template>
<template v-else-if="column.key === 'syncTime'">
<div class="cell-primary-secondary">
<div class="info-stack">
<span class="title">{{ formatDateTime(record.lastSyncAt) }}</span>
<span class="subtitle">{{ record.partition }}</span>
</div>
</div>
</template>
<template v-else-if="column.key === 'actions'">
<div class="table-actions">
<a-tooltip title="打开创作台" placement="top">
<a-button type="text" class="action-btn" :loading="consolePendingAccountId === record.id" @click="openConsole(record)">
<template #icon><LinkOutlined /></template>
</a-button>
</a-tooltip>
<a-tooltip title="重新授权" placement="top">
<a-button type="text" class="action-btn" :loading="bindPendingPlatformId === record.platform" @click="bindPlatform(record.platform)">
<template #icon><SyncOutlined /></template>
</a-button>
</a-tooltip>
<a-popconfirm title="确定解绑这个账号?" placement="topRight" @confirm="unbindAccount(record)">
<a-tooltip title="解绑" placement="top">
<a-button danger type="text" class="action-btn danger-btn" :loading="unbindPendingAccountId === record.id">
<template #icon><DeleteOutlined /></template>
</a-button>
</a-tooltip>
</a-popconfirm>
</div>
</template>
</template>
</template>
</a-table>
</div>
</a-table>
</div>
</section>
</section>
</template>
<style scoped>
.media-view {
.page-container {
display: flex;
flex-direction: column;
gap: 32px;
padding-bottom: 40px;
max-width: 1400px;
}
/* Hero Section */
.hero-card {
background: #ffffff;
border-radius: 20px;
border: 1px solid #eef2f6;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -2px rgba(0, 0, 0, 0.01);
overflow: hidden;
}
.hero-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
padding: 36px 40px;
}
.eyebrow {
margin: 0 0 12px;
color: #64748b;
font-size: 13px;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
}
.hero-title h2 {
margin: 0;
font-size: 32px;
font-weight: 800;
color: #0f172a;
letter-spacing: -0.02em;
}
.summary {
margin: 16px 0 0;
max-width: 800px;
color: #475569;
line-height: 1.6;
font-size: 15px;
}
.modern-btn {
border-radius: 8px;
height: 40px;
padding: 0 20px;
font-weight: 600;
}
/* Stats Strip */
.stats-strip {
display: flex;
padding: 24px 40px;
background: #f8fafc;
border-top: 1px solid #eef2f6;
gap: 40px;
}
.stat-card {
display: flex;
flex-direction: column;
gap: 8px;
flex: 1;
}
.stat-label {
font-size: 14px;
font-weight: 500;
color: #64748b;
}
.stat-value {
font-size: 40px;
font-weight: 700;
color: #0f172a;
line-height: 1;
font-feature-settings: "tnum";
}
/* Content Section */
.content-section {
display: flex;
flex-direction: column;
gap: 24px;
}
.section-header {
padding: 0 8px;
}
.section-title {
margin: 0;
font-size: 20px;
font-weight: 700;
color: #0f172a;
}
.section-desc {
margin: 8px 0 0;
color: #64748b;
font-size: 15px;
line-height: 1.5;
}
.grid-layout {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 20px;
}
.media-view__top-card {
background: #fff;
border: 1px solid #e6edf5;
border-radius: 12px;
overflow: hidden;
}
.media-view__header {
display: flex;
justify-content: space-between;
align-items: flex-start;
padding: 24px;
}
.media-view__header-title h2 {
margin: 0;
font-size: 20px;
font-weight: 600;
color: #1a1a1a;
line-height: 1.4;
}
.media-view__header-title p {
margin: 6px 0 0 0;
font-size: 13px;
color: #8c8c8c;
}
.media-view__header-actions {
display: flex;
gap: 12px;
}
.overview-strip {
display: flex;
background: #fafafb;
padding: 16px 24px;
gap: 32px;
}
.border-t {
border-top: 1px solid #e6edf5;
}
.overview-chip {
/* Modern Card Layout */
.modern-card {
display: flex;
flex-direction: column;
}
.overview-chip span {
font-size: 13px;
color: #595959;
}
.overview-chip strong {
margin-top: 4px;
font-size: 24px;
font-weight: 600;
color: #1a1a1a;
line-height: 1.2;
}
.panel {
background: #ffffff;
border-radius: 12px;
border: 1px solid #e6edf5;
display: flex;
flex-direction: column;
}
.media-list-wrapper {
overflow: hidden;
}
.media-list-content {
border-radius: 20px;
border: 1px solid #e2e8f0;
padding: 24px;
}
.media-list-title {
font-size: 16px;
font-weight: 600;
color: #1a1a1a;
margin-bottom: 4px;
}
.media-list-desc {
font-size: 13px;
color: #8c8c8c;
margin-bottom: 20px;
}
.media-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
gap: 16px;
}
.media-card {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
padding: 16px;
border: 1px solid #e6edf5;
border-radius: 12px;
background: #fff;
transition: all 0.2s ease;
display: flex;
flex-direction: column;
}
.media-card-clickable {
cursor: pointer;
}
.media-card:hover {
transform: translateY(-2px);
box-shadow: 0 12px 24px rgba(31, 41, 55, 0.08);
border-color: #1677ff;
.media-card-clickable:hover {
transform: translateY(-4px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
border-color: #cbd5e1;
}
.media-card--active {
border-color: #1677ff;
background: #f0f7ff;
.modern-card.is-active {
border-color: #0ea5e9;
box-shadow: 0 0 0 1px #0ea5e9, 0 4px 6px -1px rgba(14, 165, 233, 0.1);
background: #f0f9ff;
}
.media-card__head {
.card-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
align-items: flex-start;
margin-bottom: 8px; /* Reduced because content goes into footer */
}
.media-card__identity {
.brand-info {
display: flex;
gap: 16px;
align-items: center;
gap: 12px;
}
.media-card__badge {
display: inline-flex;
.brand-logo {
width: 48px;
height: 48px;
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border-radius: 10px;
background: #ffffff;
border: 1px solid #f0f0f0;
box-shadow: 0 2px 4px rgba(0,0,0,0.02);
font-size: 18px;
font-weight: 700;
border-radius: 12px;
font-size: 20px;
font-weight: 800;
}
.media-card__identity-text {
display: flex;
flex-direction: column;
}
.media-card__identity-text h3 {
.brand-text h4 {
margin: 0;
color: #1a1a1a;
font-size: 15px;
font-weight: 600;
font-size: 16px;
font-weight: 700;
color: #0f172a;
}
.media-card__identity-text p {
margin: 2px 0 0;
color: #8c8c8c;
font-size: 12px;
}
.media-card__footer {
margin-top: 20px;
display: flex;
align-items: center;
justify-content: space-between;
}
.media-card__status {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 12px;
color: #8c8c8c;
.brand-text p {
margin: 4px 0 0;
color: #64748b;
font-size: 13px;
font-weight: 500;
}
.status-dot {
width: 8px;
height: 8px;
width: 10px;
height: 10px;
border-radius: 50%;
}
.status-dot.success { background-color: #52c41a; }
.status-dot.default { background-color: #d9d9d9; }
.action-btn-bind {
border-radius: 6px;
font-size: 13px;
color: #fff;
background: #1677ff;
border: 1px solid #1677ff;
height: 32px;
padding: 0 12px;
display: flex;
align-items: center;
gap: 6px;
}
.action-btn-bind:hover {
background: #4096ff;
color: #fff;
border-color: #4096ff;
}
.status-dot.success { background-color: #10b981; }
.status-dot.default { background-color: #cbd5e1; }
.action-btn-publish {
border-radius: 6px;
border-radius: 8px;
font-size: 13px;
color: #1677ff;
background: #e6f4ff;
border: 1px solid #91caff;
height: 32px;
padding: 0 12px;
font-weight: 600;
color: #0284c7;
background: #e0f2fe;
border: 1px solid #bae6fd;
height: 34px;
padding: 0 14px;
display: flex;
align-items: center;
gap: 6px;
transition: all 0.2s ease;
}
.action-btn-publish:hover {
background: #bae0ff;
color: #1677ff;
border-color: #69b1ff;
background: #bae6fd;
color: #0369a1;
border-color: #7dd3fc;
}
/* Table Card Panel */
.list-panel {
padding-bottom: 24px;
}
.table-header {
padding: 24px;
border-bottom: 1px solid #e6edf5;
}
.panel-title {
margin: 0;
font-size: 16px;
font-weight: 600;
color: #1a1a1a;
}
.panel-desc {
margin: 4px 0 0;
font-size: 13px;
color: #8c8c8c;
}
.media-list-toolbar {
margin-top: 16px;
display: flex;
justify-content: space-between;
align-items: center;
}
.toolbar-filters {
display: flex;
align-items: center;
gap: 12px;
.action-btn-bind {
border-radius: 8px;
height: 34px;
}
/* Modern Enterprise Table Styles */
:deep(.modern-table) {
padding: 0 24px;
padding: 0 32px 32px;
}
:deep(.modern-table .ant-table-thead > tr > th) {
background-color: #fcfcfd !important;
color: #4b5563;
background-color: transparent !important;
color: #64748b;
font-weight: 600;
border-bottom: 1px solid #f3f4f6;
padding: 12px 16px;
font-size: 13px;
border-bottom: 1px solid #e2e8f0;
padding: 16px 12px;
}
:deep(.modern-table .ant-table-tbody > tr > td) {
padding: 16px;
border-bottom: 1px solid #f3f4f6;
color: #1f2937;
padding: 16px 12px;
border-bottom: 1px solid #f1f5f9;
color: #0f172a;
}
:deep(.modern-table .ant-table-tbody > tr:last-child > td) {
@@ -745,7 +673,7 @@ const tableColumns = [
}
:deep(.modern-table .ant-table-tbody > tr:hover > td) {
background-color: #f9fafb !important;
background-color: #f8fafc !important;
}
.cell-primary-secondary {
@@ -757,31 +685,35 @@ const tableColumns = [
flex-direction: column;
}
.info-stack .title {
font-weight: 500;
color: #1f2937;
font-weight: 600;
color: #0f172a;
font-size: 14px;
}
.info-stack .subtitle {
color: #6b7280;
font-size: 12px;
margin-top: 2px;
color: #64748b;
font-size: 13px;
margin-top: 4px;
}
.info-stack .mono-text {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.user-avatar-wrap {
display: flex;
align-items: center;
gap: 12px;
gap: 16px;
}
.avatar-circle {
width: 36px;
height: 36px;
width: 44px;
height: 44px;
border-radius: 50%;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}
.avatar-circle img {
width: 100%;
@@ -789,36 +721,51 @@ const tableColumns = [
object-fit: cover;
}
.avatar-initial {
color: #fff;
font-weight: 600;
color: #ffffff;
font-size: 16px;
font-weight: 700;
}
.platform-display {
display: flex;
align-items: center;
gap: 8px;
gap: 12px;
font-size: 14px;
color: #4b5563;
color: #0f172a;
}
.platform-logo-mini {
width: 24px;
height: 24px;
background: #f3f4f6;
border-radius: 6px;
width: 32px;
height: 32px;
background: #ffffff;
box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0 0 0 1px #e2e8f0;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.platform-logo-mini img {
width: 16px;
height: 16px;
width: 20px;
height: 20px;
object-fit: contain;
}
.action-buttons {
.table-actions {
display: flex;
gap: 8px;
justify-content: flex-end;
align-items: center;
}
/* Responsiveness */
@media (max-width: 1024px) {
.hero-header {
flex-direction: column;
gap: 24px;
}
.stats-strip {
flex-wrap: wrap;
gap: 24px;
}
}
</style>