dsh-vscode-mode 0.15.3 → 0.15.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@
10
10
  * 作者 ddj 2026年09月17号
11
11
  */
12
12
  import React from 'react'
13
- import { ModalShell } from './ModalShell.js'
13
+ import { FloatingWindow } from './FloatingWindow.js'
14
14
 
15
15
  /** stacked 时间线展开的作者上限(其余并入「其他」)。 */
16
16
  const STACK_TOP = 5
@@ -205,11 +205,10 @@ export function SvnLogStats(props) {
205
205
  const [othersPct, setOthersPct] = React.useState(0)
206
206
  const [stacked, setStacked] = React.useState(false)
207
207
  const stats = React.useMemo(() => svnLogStatsOf(entries, { caseInsensitive: ci }), [entries, ci])
208
- return React.createElement(ModalShell, {
208
+ return React.createElement(FloatingWindow, {
209
+ title: 'SVN 日志统计', height: 600,
209
210
  dialogClass: 'edrv-svnlog-stats',
210
- width: 'min(680px, calc(100vw - 40px))',
211
- zIndex: 192,
212
- closeOnEsc: false,
211
+ width: 680,
213
212
  onClose,
214
213
  },
215
214
  React.createElement('div', { className: 'edrv-svnlog-stats-head' },
@@ -9,7 +9,7 @@
9
9
  * 作者 ddj 2026年09月20号
10
10
  */
11
11
  import React from 'react'
12
- import { ModalShell } from './ModalShell.js'
12
+ import { FloatingWindow } from './FloatingWindow.js'
13
13
  import { downloadText } from './svnExport.js'
14
14
 
15
15
  /**
@@ -40,10 +40,11 @@ export function SvnPatchDialog(props) {
40
40
  onNote?.(done ? '已保存 ' + fileName : '保存失败:浏览器下载能力不可用')
41
41
  }
42
42
 
43
- return React.createElement(ModalShell, {
43
+ return React.createElement(FloatingWindow, {
44
+ title: 'SVN 补丁预览', height: 560,
44
45
  key: 'edrv-svn-patch',
45
46
  dialogClass: 'edrv-svn-patch-dialog',
46
- width: 'min(760px, calc(100vw - 48px))',
47
+ width: 760,
47
48
  onClose,
48
49
  },
49
50
  React.createElement('div', { className: 'edrv-svn-patch-head' },
@@ -9,7 +9,7 @@
9
9
  */
10
10
  import React from 'react'
11
11
  import { SVN_SUM_LETTER } from '../../shared/svn.js'
12
- import { ModalShell } from './ModalShell.js'
12
+ import { FloatingWindow } from './FloatingWindow.js'
13
13
  import { svnDiffSum } from '../svnStatus.js'
14
14
 
15
15
  /**
@@ -53,10 +53,11 @@ export function SvnSumDialog(props) {
53
53
  (entry.kind === 'dir' ? React.createElement('span', { className: 'edrv-svnlog-path-kind' }, '目录') : null)))
54
54
  }
55
55
 
56
- return React.createElement(ModalShell, {
56
+ return React.createElement(FloatingWindow, {
57
+ title: 'SVN 目录对比', height: 560,
57
58
  key: 'edrv-svn-sum',
58
59
  dialogClass: 'edrv-svn-sum-dialog',
59
- width: 'min(680px, calc(100vw - 48px))',
60
+ width: 680,
60
61
  onClose,
61
62
  },
62
63
  React.createElement('div', { className: 'edrv-svn-patch-head' },
@@ -9,7 +9,7 @@ import { rpc } from '../rpc.js'
9
9
  import { absoluteOf } from '../tabActions.js'
10
10
  import { ContextMenu } from './ContextMenu.js'
11
11
  import type { ContextMenuEntry } from './ContextMenu.js'
12
- import { ModalShell } from './ModalShell.js'
12
+ import { FloatingWindow } from './FloatingWindow.js'
13
13
  import { nextConflict, nextUpdateSort, rowConflict, sortUpdateRows, updateActs, updateCloseMode, updateDone, updateLocked, updateParent, updateRange, updateReady, updateType } from './svnUpdateModel.js'
14
14
  import type { UpdateColumn, UpdateSort } from './svnUpdateModel.js'
15
15
 
@@ -564,10 +564,9 @@ export function SvnUpdateDialog(props: UpdateProps): React.ReactElement {
564
564
  const phase = pendingRows && processFinished ? '正在加载更新明细…'
565
565
  : state?.phase === 'completed' ? '更新完成' : state?.phase === 'failed' ? '更新失败'
566
566
  : state?.phase === 'cancelled' ? '更新已停止' : state?.phase === 'cancelling' ? '正在停止…' : '正在更新…'
567
- return React.createElement(ModalShell, {
568
- dialogClass: 'edrv-update-dialog', width: 'min(1320px, calc(100vw - 48px))',
569
- cardStyle: { height: 'min(680px, calc(100vh - 48px))', boxSizing: 'border-box', maxHeight: 'none' },
570
- closeOnEsc: closeMode.passive, closeOnMask: closeMode.passive, onClose: dismiss,
567
+ return React.createElement(FloatingWindow, {
568
+ title: 'SVN 更新', dialogClass: 'edrv-update-dialog', width: 1320, height: 680,
569
+ closeOnEsc: closeMode.passive, onClose: dismiss,
571
570
  },
572
571
  updateHead(props, state, phase, closable, dismiss),
573
572
  updateTable(props, displayRows, view, selection, finished, sort, onSort, evidence.states),