2026-04-19 14:18:20 +08:00
|
|
|
<script setup lang="ts">
|
2026-04-20 11:08:09 +08:00
|
|
|
import {
|
|
|
|
|
AppstoreOutlined,
|
|
|
|
|
LinkOutlined,
|
2026-04-20 16:04:32 +08:00
|
|
|
LogoutOutlined,
|
2026-05-01 20:39:09 +08:00
|
|
|
RobotOutlined,
|
|
|
|
|
SendOutlined,
|
2026-04-30 22:00:01 +08:00
|
|
|
SettingOutlined,
|
2026-05-01 20:39:09 +08:00
|
|
|
} from '@ant-design/icons-vue'
|
|
|
|
|
import { computed } from 'vue'
|
|
|
|
|
import { RouterLink, RouterView, useRoute } from 'vue-router'
|
2026-04-19 14:18:20 +08:00
|
|
|
|
2026-05-01 20:39:09 +08:00
|
|
|
import { useDesktopRuntime } from '../composables/useDesktopRuntime'
|
|
|
|
|
import { useDesktopSession } from '../composables/useDesktopSession'
|
|
|
|
|
import { desktopMonitoringMediaCatalog, desktopPublishMediaCatalog } from '../lib/media-catalog'
|
2026-04-19 14:18:20 +08:00
|
|
|
|
2026-05-01 20:39:09 +08:00
|
|
|
const route = useRoute()
|
|
|
|
|
const { snapshot, error, refreshAccounts } = useDesktopRuntime()
|
|
|
|
|
const { session, logout } = useDesktopSession()
|
2026-04-20 09:52:48 +08:00
|
|
|
|
2026-05-01 20:39:09 +08:00
|
|
|
const accountAwareRoutes = new Set(['/media-platforms', '/ai-platforms'])
|
2026-04-20 09:52:48 +08:00
|
|
|
|
|
|
|
|
function handleNavClick(target: string) {
|
|
|
|
|
if (accountAwareRoutes.has(target)) {
|
2026-05-01 20:39:09 +08:00
|
|
|
void refreshAccounts()
|
2026-04-20 09:52:48 +08:00
|
|
|
}
|
|
|
|
|
}
|
2026-04-19 14:18:20 +08:00
|
|
|
|
|
|
|
|
const navItems = computed(() => {
|
2026-05-01 20:39:09 +08:00
|
|
|
const data = snapshot.value
|
|
|
|
|
const accounts = data?.accounts ?? []
|
|
|
|
|
const publishIDs = new Set(desktopPublishMediaCatalog.map((item) => item.id))
|
2026-05-08 19:14:16 +08:00
|
|
|
const monitoringIDs = new Set(desktopMonitoringMediaCatalog.map((item) => item.id))
|
2026-04-19 14:18:20 +08:00
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
{
|
2026-05-01 20:39:09 +08:00
|
|
|
to: '/',
|
|
|
|
|
title: '控制台',
|
|
|
|
|
description: '运行总览、活动流和总体健康度',
|
2026-04-19 14:18:20 +08:00
|
|
|
count: data?.summary.issuesOpen ?? 0,
|
2026-04-20 11:08:09 +08:00
|
|
|
icon: AppstoreOutlined,
|
2026-04-19 14:18:20 +08:00
|
|
|
},
|
|
|
|
|
{
|
2026-05-01 20:39:09 +08:00
|
|
|
to: '/publish-management',
|
|
|
|
|
title: '发布管理',
|
|
|
|
|
description: '查看待发布队列、历史发送结果,并对文章再次发送',
|
2026-04-20 09:52:48 +08:00
|
|
|
count: data?.summary.queuedTasks ?? 0,
|
2026-04-20 11:08:09 +08:00
|
|
|
icon: SendOutlined,
|
2026-04-19 14:18:20 +08:00
|
|
|
},
|
|
|
|
|
{
|
2026-05-01 20:39:09 +08:00
|
|
|
to: '/media-platforms',
|
|
|
|
|
title: '媒体账号',
|
|
|
|
|
description: '发布媒体授权、多个账号绑定管理',
|
2026-04-19 14:18:20 +08:00
|
|
|
count: accounts.filter((item) => publishIDs.has(item.platform)).length,
|
2026-04-20 11:08:09 +08:00
|
|
|
icon: LinkOutlined,
|
2026-04-19 14:18:20 +08:00
|
|
|
},
|
|
|
|
|
{
|
2026-05-01 20:39:09 +08:00
|
|
|
to: '/ai-platforms',
|
|
|
|
|
title: 'AI 平台',
|
2026-05-06 12:56:54 +08:00
|
|
|
description: 'AI 平台一平台一授权,按卡片查看状态与归属',
|
2026-05-08 19:14:16 +08:00
|
|
|
count: accounts.filter((item) => monitoringIDs.has(item.platform)).length,
|
2026-04-20 11:08:09 +08:00
|
|
|
icon: RobotOutlined,
|
2026-04-19 14:18:20 +08:00
|
|
|
},
|
2026-05-01 20:39:09 +08:00
|
|
|
]
|
|
|
|
|
})
|
2026-04-19 14:18:20 +08:00
|
|
|
|
2026-05-24 10:23:50 +08:00
|
|
|
const operatorName = computed(() => {
|
|
|
|
|
const user = session.value?.user
|
|
|
|
|
return (
|
|
|
|
|
user?.name?.trim() ||
|
|
|
|
|
user?.phone?.trim() ||
|
|
|
|
|
user?.email?.trim() ||
|
|
|
|
|
'未命名操作员'
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|
const operatorEmail = computed(() => {
|
|
|
|
|
const user = session.value?.user
|
|
|
|
|
const email = user?.email?.trim()
|
|
|
|
|
const phone = user?.phone?.trim()
|
|
|
|
|
if (email && phone && email !== operatorName.value) {
|
|
|
|
|
return email
|
|
|
|
|
}
|
|
|
|
|
return phone && phone !== operatorName.value ? phone : ''
|
|
|
|
|
})
|
2026-05-01 20:39:09 +08:00
|
|
|
const liveClientLabel = computed(() => snapshot.value?.clients[0]?.deviceName ?? null)
|
2026-04-19 14:18:20 +08:00
|
|
|
const clientLabel = computed(
|
2026-05-01 20:39:09 +08:00
|
|
|
() =>
|
|
|
|
|
liveClientLabel.value ?? session.value?.desktopClient?.device_name ?? '当前设备尚未注册 client',
|
|
|
|
|
)
|
2026-04-30 22:00:01 +08:00
|
|
|
|
|
|
|
|
function openSettingsWindow() {
|
2026-05-01 20:39:09 +08:00
|
|
|
void window.desktopBridge.app.openSettingsWindow()
|
2026-04-30 22:00:01 +08:00
|
|
|
}
|
2026-04-19 14:18:20 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<div class="app-shell">
|
2026-04-22 00:24:21 +08:00
|
|
|
<div class="window-drag-bar" aria-hidden="true"></div>
|
2026-04-19 14:18:20 +08:00
|
|
|
<aside class="sidebar">
|
2026-04-20 09:52:48 +08:00
|
|
|
<div class="brand-block">
|
|
|
|
|
<div class="brand-mark">
|
|
|
|
|
<span class="brand-ring"></span>
|
|
|
|
|
<span class="brand-core"></span>
|
2026-04-19 14:18:20 +08:00
|
|
|
</div>
|
2026-04-20 09:52:48 +08:00
|
|
|
<div>
|
|
|
|
|
<p class="eyebrow">Workspace Cockpit</p>
|
2026-05-01 11:03:55 +08:00
|
|
|
<h1>省心推</h1>
|
2026-04-20 09:52:48 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2026-04-19 14:18:20 +08:00
|
|
|
|
2026-04-20 09:52:48 +08:00
|
|
|
<nav class="nav">
|
|
|
|
|
<RouterLink
|
|
|
|
|
v-for="item in navItems"
|
2026-05-01 20:39:09 +08:00
|
|
|
:key="item.to"
|
|
|
|
|
:to="item.to"
|
|
|
|
|
class="nav-link"
|
|
|
|
|
:class="{ active: route.path === item.to }"
|
|
|
|
|
@click="handleNavClick(item.to)"
|
|
|
|
|
>
|
|
|
|
|
<div class="nav-copy">
|
|
|
|
|
<component :is="item.icon" class="nav-icon" />
|
|
|
|
|
<strong>{{ item.title }}</strong>
|
|
|
|
|
</div>
|
|
|
|
|
<span class="nav-count">{{ item.count }}</span>
|
|
|
|
|
</RouterLink>
|
|
|
|
|
</nav>
|
2026-04-19 14:18:20 +08:00
|
|
|
|
|
|
|
|
<footer class="sidebar-footer">
|
2026-04-20 09:52:48 +08:00
|
|
|
<section class="user-profile-panel">
|
|
|
|
|
<div class="user-info-row">
|
|
|
|
|
<div class="user-avatar">{{ operatorName.charAt(0).toUpperCase() }}</div>
|
|
|
|
|
<div class="user-details">
|
2026-04-19 14:18:20 +08:00
|
|
|
<strong>{{ operatorName }}</strong>
|
2026-04-20 09:52:48 +08:00
|
|
|
<p>{{ operatorEmail }}</p>
|
2026-04-19 14:18:20 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2026-04-20 09:52:48 +08:00
|
|
|
<div class="user-actions-row">
|
2026-04-20 16:04:32 +08:00
|
|
|
<a-tooltip :title="clientLabel" placement="top">
|
|
|
|
|
<div class="device-tag">
|
|
|
|
|
<span class="status-dot"></span>
|
|
|
|
|
<span class="device-name-text">{{ clientLabel }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</a-tooltip>
|
2026-04-30 22:00:01 +08:00
|
|
|
<div class="action-cluster">
|
|
|
|
|
<a-tooltip title="设置" placement="top">
|
|
|
|
|
<button type="button" class="footer-icon-btn" @click="openSettingsWindow">
|
|
|
|
|
<SettingOutlined />
|
|
|
|
|
</button>
|
|
|
|
|
</a-tooltip>
|
|
|
|
|
<a-tooltip title="退出登录" placement="top">
|
2026-05-01 20:39:09 +08:00
|
|
|
<button
|
|
|
|
|
type="button"
|
|
|
|
|
class="footer-icon-btn footer-icon-btn--danger"
|
|
|
|
|
@click="logout"
|
|
|
|
|
>
|
2026-04-30 22:00:01 +08:00
|
|
|
<LogoutOutlined />
|
|
|
|
|
</button>
|
|
|
|
|
</a-tooltip>
|
|
|
|
|
</div>
|
2026-04-20 09:52:48 +08:00
|
|
|
</div>
|
2026-04-19 14:18:20 +08:00
|
|
|
</section>
|
|
|
|
|
|
2026-04-20 16:04:32 +08:00
|
|
|
<div class="footer-bottom-row">
|
|
|
|
|
<span class="version-label">Version</span>
|
2026-05-01 20:39:09 +08:00
|
|
|
<strong class="version-value">{{ snapshot?.app.version ?? '0.1.0' }}</strong>
|
2026-04-19 14:18:20 +08:00
|
|
|
</div>
|
|
|
|
|
<p v-if="error" class="error-text">{{ error }}</p>
|
|
|
|
|
</footer>
|
|
|
|
|
</aside>
|
|
|
|
|
|
|
|
|
|
<main class="content">
|
2026-04-22 00:24:21 +08:00
|
|
|
<div class="content-dragbar" aria-hidden="true"></div>
|
2026-04-19 14:18:20 +08:00
|
|
|
<RouterView />
|
|
|
|
|
</main>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
.app-shell {
|
|
|
|
|
display: flex;
|
|
|
|
|
height: 100vh;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
background: #f0f2f5;
|
|
|
|
|
color: #1a1a1a;
|
2026-04-22 00:24:21 +08:00
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Real drag handle for the macOS hidden title bar — must be above content
|
|
|
|
|
but only spans the empty zone behind the traffic lights. */
|
|
|
|
|
.window-drag-bar {
|
|
|
|
|
position: fixed;
|
|
|
|
|
top: 0;
|
2026-05-01 18:02:52 +08:00
|
|
|
left: 0;
|
|
|
|
|
right: 144px;
|
|
|
|
|
height: 24px;
|
|
|
|
|
z-index: 1000;
|
|
|
|
|
-webkit-app-region: drag;
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-01 20:39:09 +08:00
|
|
|
:global(html[data-platform='darwin']) .window-drag-bar {
|
2026-04-22 00:24:21 +08:00
|
|
|
left: 80px;
|
|
|
|
|
right: 0;
|
|
|
|
|
height: 28px;
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-01 20:39:09 +08:00
|
|
|
.app-shell :where(button, a, input, select, textarea, [role='button'], [role='link']) {
|
2026-04-22 00:24:21 +08:00
|
|
|
-webkit-app-region: no-drag;
|
2026-04-19 14:18:20 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sidebar {
|
|
|
|
|
width: 320px;
|
|
|
|
|
height: 100vh;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
padding: 24px;
|
2026-04-22 00:24:21 +08:00
|
|
|
padding-top: 44px;
|
2026-04-19 14:18:20 +08:00
|
|
|
border-right: 1px solid #e6edf5;
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.brand-block {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 16px;
|
|
|
|
|
align-items: center;
|
2026-04-22 00:24:21 +08:00
|
|
|
-webkit-app-region: drag;
|
2026-04-19 14:18:20 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.brand-mark {
|
|
|
|
|
position: relative;
|
|
|
|
|
width: 40px;
|
|
|
|
|
height: 40px;
|
|
|
|
|
display: grid;
|
|
|
|
|
place-items: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.brand-ring,
|
|
|
|
|
.brand-core {
|
|
|
|
|
position: absolute;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.brand-ring {
|
|
|
|
|
inset: 0;
|
|
|
|
|
border: 1px solid #91caff;
|
|
|
|
|
background: #e6f4ff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.brand-core {
|
|
|
|
|
width: 16px;
|
|
|
|
|
height: 16px;
|
|
|
|
|
background: #1677ff;
|
|
|
|
|
box-shadow: 0 2px 6px rgba(22, 119, 255, 0.4);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.eyebrow {
|
|
|
|
|
margin: 0 0 4px;
|
|
|
|
|
color: #8c8c8c;
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
letter-spacing: 0.1em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
|
margin: 0;
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
color: #1a1a1a;
|
|
|
|
|
line-height: 1.2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav {
|
2026-04-20 09:52:48 +08:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
2026-04-19 14:18:20 +08:00
|
|
|
gap: 12px;
|
2026-04-20 09:52:48 +08:00
|
|
|
margin: auto 0;
|
2026-04-19 14:18:20 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav-link {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
2026-04-20 11:08:09 +08:00
|
|
|
padding: 12px 16px;
|
|
|
|
|
border-radius: 8px;
|
2026-04-19 14:18:20 +08:00
|
|
|
text-decoration: none;
|
2026-04-20 11:08:09 +08:00
|
|
|
background: transparent;
|
|
|
|
|
border: 1px solid transparent;
|
2026-04-19 14:18:20 +08:00
|
|
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav-link:hover {
|
2026-04-20 11:08:09 +08:00
|
|
|
background: #f8fafc;
|
2026-04-19 14:18:20 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav-link.active {
|
2026-04-20 11:08:09 +08:00
|
|
|
background: #e6f4ff;
|
|
|
|
|
border-color: #e6f4ff;
|
2026-04-19 14:18:20 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav-copy {
|
2026-04-20 11:08:09 +08:00
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav-icon {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
color: #8c8c8c;
|
|
|
|
|
transition: color 0.2s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav-link:hover .nav-icon {
|
|
|
|
|
color: #595959;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav-link.active .nav-icon {
|
|
|
|
|
color: #1677ff;
|
2026-04-19 14:18:20 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav-copy strong {
|
|
|
|
|
font-size: 14px;
|
2026-04-20 11:08:09 +08:00
|
|
|
font-weight: 500;
|
|
|
|
|
color: #4b5563;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav-link:hover .nav-copy strong {
|
|
|
|
|
color: #1f2937;
|
2026-04-19 14:18:20 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav-link.active .nav-copy strong {
|
|
|
|
|
color: #1677ff;
|
2026-04-20 11:08:09 +08:00
|
|
|
font-weight: 600;
|
2026-04-19 14:18:20 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav-count {
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
min-width: 28px;
|
|
|
|
|
height: 28px;
|
|
|
|
|
padding: 0 8px;
|
|
|
|
|
border-radius: 14px;
|
|
|
|
|
background: #f0f0f0;
|
|
|
|
|
color: #595959;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav-link.active .nav-count {
|
|
|
|
|
background: #1677ff;
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sidebar-footer {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 16px;
|
|
|
|
|
padding-top: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-20 09:52:48 +08:00
|
|
|
.user-profile-panel {
|
2026-04-20 16:04:32 +08:00
|
|
|
padding: 16px;
|
|
|
|
|
border-radius: 16px;
|
|
|
|
|
background: #ffffff;
|
2026-04-20 09:52:48 +08:00
|
|
|
border: 1px solid #e2e8f0;
|
2026-05-01 20:39:09 +08:00
|
|
|
box-shadow:
|
|
|
|
|
0 1px 3px rgba(0, 0, 0, 0.02),
|
|
|
|
|
0 2px 4px -2px rgba(0, 0, 0, 0.01);
|
2026-04-20 16:04:32 +08:00
|
|
|
transition: all 0.2s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.user-profile-panel:hover {
|
|
|
|
|
border-color: #cbd5e1;
|
2026-05-01 20:39:09 +08:00
|
|
|
box-shadow:
|
|
|
|
|
0 4px 6px -1px rgba(0, 0, 0, 0.03),
|
|
|
|
|
0 2px 4px -2px rgba(0, 0, 0, 0.02);
|
2026-04-20 09:52:48 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.user-info-row {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.user-avatar {
|
2026-04-20 16:04:32 +08:00
|
|
|
width: 40px;
|
|
|
|
|
height: 40px;
|
2026-04-20 09:52:48 +08:00
|
|
|
border-radius: 50%;
|
2026-04-20 16:04:32 +08:00
|
|
|
background: #0f172a;
|
|
|
|
|
color: #ffffff;
|
2026-04-20 09:52:48 +08:00
|
|
|
font-weight: 700;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
flex-shrink: 0;
|
2026-05-01 20:39:09 +08:00
|
|
|
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
|
2026-04-20 09:52:48 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.user-details {
|
|
|
|
|
min-width: 0;
|
2026-04-20 16:04:32 +08:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 2px;
|
2026-04-19 14:18:20 +08:00
|
|
|
}
|
|
|
|
|
|
2026-04-20 09:52:48 +08:00
|
|
|
.user-details strong {
|
2026-04-19 14:18:20 +08:00
|
|
|
display: block;
|
2026-04-20 09:52:48 +08:00
|
|
|
font-size: 14px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
color: #0f172a;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
2026-04-20 16:04:32 +08:00
|
|
|
line-height: 1.2;
|
2026-04-19 14:18:20 +08:00
|
|
|
}
|
|
|
|
|
|
2026-04-20 09:52:48 +08:00
|
|
|
.user-details p {
|
2026-04-20 16:04:32 +08:00
|
|
|
margin: 0;
|
2026-04-19 14:18:20 +08:00
|
|
|
font-size: 12px;
|
2026-04-20 09:52:48 +08:00
|
|
|
color: #64748b;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
2026-04-20 16:04:32 +08:00
|
|
|
line-height: 1.2;
|
2026-04-19 14:18:20 +08:00
|
|
|
}
|
|
|
|
|
|
2026-04-20 09:52:48 +08:00
|
|
|
.user-actions-row {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
2026-04-20 16:04:32 +08:00
|
|
|
margin-top: 16px;
|
|
|
|
|
padding-top: 16px;
|
|
|
|
|
border-top: 1px dashed #e2e8f0;
|
|
|
|
|
gap: 8px;
|
2026-04-20 09:52:48 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.device-tag {
|
2026-04-20 16:04:32 +08:00
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 6px;
|
|
|
|
|
font-size: 12px;
|
2026-04-20 09:52:48 +08:00
|
|
|
font-weight: 500;
|
2026-04-20 16:04:32 +08:00
|
|
|
color: #4b5563;
|
|
|
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
|
|
|
min-width: 0;
|
2026-04-20 09:52:48 +08:00
|
|
|
}
|
|
|
|
|
|
2026-04-20 16:04:32 +08:00
|
|
|
.device-tag .status-dot {
|
|
|
|
|
width: 8px;
|
|
|
|
|
height: 8px;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
background-color: #10b981;
|
|
|
|
|
box-shadow: 0 0 0 2px #d1fae5;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.device-name-text {
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-30 22:00:01 +08:00
|
|
|
.action-cluster {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 6px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.footer-icon-btn {
|
2026-04-20 16:04:32 +08:00
|
|
|
width: 32px;
|
|
|
|
|
height: 32px;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
color: #94a3b8;
|
2026-04-20 09:52:48 +08:00
|
|
|
background: transparent;
|
2026-04-20 16:04:32 +08:00
|
|
|
border: 1px solid transparent;
|
2026-04-19 14:18:20 +08:00
|
|
|
cursor: pointer;
|
2026-04-20 16:04:32 +08:00
|
|
|
transition: all 0.2s ease;
|
2026-04-30 22:00:01 +08:00
|
|
|
text-decoration: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.footer-icon-btn:hover {
|
|
|
|
|
background: #f1f5f9;
|
|
|
|
|
color: #1677ff;
|
|
|
|
|
border-color: #e2e8f0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.footer-icon-btn.router-link-active {
|
|
|
|
|
background: #e6f4ff;
|
|
|
|
|
color: #1677ff;
|
|
|
|
|
border-color: #e6f4ff;
|
2026-04-19 14:18:20 +08:00
|
|
|
}
|
|
|
|
|
|
2026-04-30 22:00:01 +08:00
|
|
|
.footer-icon-btn--danger:hover {
|
2026-04-20 09:52:48 +08:00
|
|
|
background: #fef2f2;
|
2026-04-20 16:04:32 +08:00
|
|
|
color: #ef4444;
|
|
|
|
|
border-color: #fee2e2;
|
2026-04-20 09:52:48 +08:00
|
|
|
}
|
|
|
|
|
|
2026-04-20 16:04:32 +08:00
|
|
|
.footer-bottom-row {
|
2026-04-19 14:18:20 +08:00
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
2026-04-20 16:04:32 +08:00
|
|
|
padding: 0 4px;
|
2026-04-19 14:18:20 +08:00
|
|
|
}
|
|
|
|
|
|
2026-04-20 16:04:32 +08:00
|
|
|
.version-label {
|
|
|
|
|
color: #94a3b8;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.version-value {
|
|
|
|
|
color: #475569;
|
2026-04-19 14:18:20 +08:00
|
|
|
font-size: 13px;
|
2026-04-20 16:04:32 +08:00
|
|
|
font-weight: 600;
|
|
|
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
2026-04-19 14:18:20 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.error-text {
|
|
|
|
|
margin: 0;
|
2026-04-20 16:04:32 +08:00
|
|
|
color: #ef4444;
|
2026-04-19 14:18:20 +08:00
|
|
|
font-size: 13px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.content {
|
|
|
|
|
flex: 1;
|
2026-04-30 20:56:03 +08:00
|
|
|
min-width: 0;
|
2026-04-19 14:18:20 +08:00
|
|
|
height: 100vh;
|
|
|
|
|
padding: 24px 32px;
|
|
|
|
|
overflow-y: auto;
|
2026-04-22 00:24:21 +08:00
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.content-dragbar {
|
|
|
|
|
position: sticky;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
height: 24px;
|
|
|
|
|
margin: -24px -32px 0;
|
|
|
|
|
-webkit-app-region: drag;
|
|
|
|
|
z-index: 5;
|
2026-04-19 14:18:20 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (max-width: 1080px) {
|
|
|
|
|
.sidebar {
|
|
|
|
|
width: 260px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|