mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-07-08 08:27:39 +08:00
Unify the "window detached from main" concept under the SubWindow name, pairing it with MainWindow. Rename the service class, WindowType enum value, HTML entry, renderer directory, React components, logger contexts, and window-manager docs accordingly. Scope of rename (noun-only): - DetachedWindowManager -> SubWindowService - DetachedWindowState -> SubWindowState - WindowType.DetachedTab -> WindowType.SubWindow (value 'subWindow') - detachedWindow.html / detachedWindow/ -> subWindow.html / subWindow/ - DetachedAppShell -> SubWindowAppShell - DetachedTabApp -> SubWindowApp - DETACHED_DEFAULT_WIDTH/HEIGHT -> SUB_WINDOW_DEFAULT_WIDTH/HEIGHT - Logger contexts / sources and all "detached window" prose Preserved (interaction-specific, not window-type nouns): - IPC channels Tab_Detach / Tab_Attach / Tab_MoveWindow / Tab_TryAttach / Tab_DragEnd and their 'tab:*' literals - these describe the drag-tab interaction, not the SubWindow concept - Component prop isDetached and useTabDrag.detachedCreated state - The DevTools "detached" and Node spawn "detached" unrelated usages