feat(server): 用户管理与变更历史接口;修复 result_revisions.parent_id 从未写入

This commit is contained in:
AskaEth committed 2026-09-09 19:51:50 +08:00
1 parent f3813171d3
commit 72462792ec
39 files changed
+10001 -28

No files matched your search

@@ -0,0 +1,89 @@
<script setup lang="ts">
/**
* 窗口化模式标题栏(单屏调试用)。
*
* 样式对齐 Console 自绘标题栏(console/renderer/styles.css 的 .topbar):
* 同样的 50px 高、8×22 圆角标记、--panel 底色与 --border 分隔线、整条可拖拽。
* 这里不引用 MIUIx 令牌——大屏端不加载管理端样式(07 第 9 节),所以直接写死同一组色值。
* 不放窗口控制按钮:大屏窗口由 Console 统一管理,本条只负责拖拽与提示。
*/
defineProps<{
title: string
logo: string
}>()
</script>
<template>
<header class="titlebar">
<div class="brand">
<img v-if="logo" class="brand-logo" :src="logo" alt="会标" />
<span v-else class="brand-mark" aria-hidden="true" />
<span class="brand-title">{{ title }}</span>
</div>
<span class="hint">按 <kbd>F11</kbd> 切换全屏</span>
</header>
</template>
<style scoped>
.titlebar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
height: var(--display-titlebar-h, 50px);
flex: 0 0 auto;
padding: 0 16px;
border-bottom: 1px solid #27314a;
background: #161d2d;
color: #e6ecf7;
user-select: none;
/* 无边框窗口靠这条拖动;条内没有可点控件,整条都是拖拽区 */
-webkit-app-region: drag;
cursor: default;
}
.brand {
display: flex;
align-items: center;
gap: 12px;
min-width: 0;
}
.brand-mark {
width: 8px;
height: 22px;
flex: 0 0 auto;
border-radius: 4px;
background: linear-gradient(180deg, #4fd8ff, #1b6bb8);
}
.brand-logo {
height: 26px;
max-width: 96px;
flex: 0 0 auto;
object-fit: contain;
}
.brand-title {
font-size: 15px;
font-weight: 600;
line-height: 1.25;
letter-spacing: 0.02em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.hint {
flex: 0 0 auto;
font-size: 11px;
line-height: 1.3;
color: #8b98b4;
white-space: nowrap;
}
kbd {
padding: 1px 6px;
border: 1px solid #27314a;
border-radius: 5px;
background: #1d2637;
font-family: inherit;
font-size: 11px;
color: #e6ecf7;
}
</style>