fix: tsc -b 全绿(rootDir/include 项目引用、frontmatter 导入路径、TiptapEditor 重复 import、WebkitAppRegion 断言、dialog confirm 返回类型)

This commit is contained in:
hunter-dev
2026-08-24 22:25:24 +08:00
parent 6d8abb95a3
commit 3370c1d0d7
7 changed files with 14 additions and 7 deletions
@@ -2,13 +2,13 @@ import { send } from '../../ipc-client';
import { IPC } from '@hunter/shared';
import { useStore } from '../../store';
const drag: React.CSSProperties = { WebkitAppRegion: 'drag' as any, flex: 1, height: '100%' };
const noDrag: React.CSSProperties = { WebkitAppRegion: 'no-drag' as any };
const drag = { WebkitAppRegion: 'drag', flex: 1, height: '100%' } as React.CSSProperties;
const noDrag = { WebkitAppRegion: 'no-drag' } as React.CSSProperties;
export function TitleBar({ onToggleView, view, onSettings, onAppearance, onToggleSidebar, onToggleMinimal, minimal }: { onToggleView: () => void; view: 'editor' | 'graph'; onSettings: () => void; onAppearance: () => void; onToggleSidebar: () => void; onToggleMinimal: () => void; minimal: boolean }) {
const { loadTree } = useStore();
return (
<div style={{ height: 36, display: 'flex', alignItems: 'center', background: '#161620', borderBottom: '1px solid #2a2a3a', WebkitAppRegion: 'drag' as any, userSelect: 'none' }}>
<div style={{ height: 36, display: 'flex', alignItems: 'center', background: '#161620', borderBottom: '1px solid #2a2a3a', WebkitAppRegion: 'drag', userSelect: 'none' } as React.CSSProperties}>
<div style={{ padding: '0 12px', color: '#7ab8ff', fontWeight: 600, fontSize: 13 }}>狩夜人笔记</div>
<div style={drag} />
<button title="侧边栏开关" onClick={onToggleSidebar} style={{ ...btn, fontSize: 14 }}>▤</button>