feat(auth): 添加设备在线状态上报和UUID功能

添加设备UUID生成和存储功能,实现设备在线状态上报API
新增oauth_report_online和oauth_get_device_uuid命令
优化OAuth token处理流程,支持JWT格式解析
This commit is contained in:
Yukino_fox
2026-04-13 20:59:55 +08:00
parent 90fe00d119
commit c58ae5c731
5 changed files with 228 additions and 12 deletions
+14 -2
View File
@@ -39,7 +39,11 @@ interface PluginStats {
export const PluginManager: React.FC<{ canEdit: boolean }> = ({ canEdit }) => {
const { t } = useTranslation()
const [data, setData] = useState<Plugin[]>([])
const [stats, setStats] = useState<PluginStats>({ total_plugins: 0, enabled_plugins: 0, disabled_plugins: 0 })
const [stats, setStats] = useState<PluginStats>({
total_plugins: 0,
enabled_plugins: 0,
disabled_plugins: 0,
})
const [loading, setLoading] = useState(false)
const [installModalVisible, setInstallModalVisible] = useState(false)
const [installLoading, setInstallLoading] = useState(false)
@@ -180,7 +184,15 @@ export const PluginManager: React.FC<{ canEdit: boolean }> = ({ canEdit }) => {
key: "description",
render: (desc?: string) => (
<Tooltip title={desc}>
<span style={{ maxWidth: 200, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", display: "block" }}>
<span
style={{
maxWidth: 200,
overflow: "hidden",
textOverflow: "ellipsis",
whiteSpace: "nowrap",
display: "block",
}}
>
{desc || "-"}
</span>
</Tooltip>