File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6262import { computed , ref } from ' vue' ;
6363import { useLogStore } from ' @/stores/logStore' ;
6464import { useWindowStore } from ' @/stores/windowStore' ;
65- import type { WindowInstance , WindowName } from ' @/types/layout ' ;
65+ import type { WindowInstance , WindowName } from ' @/types/window ' ;
6666import FileImporter from ' @/components/common/FileImporter.vue' ;
6767import ChunkView from ' ./ChunkView.vue' ;
6868import ExportPreview from ' ./ExportPreview.vue' ;
Original file line number Diff line number Diff line change @@ -5,7 +5,11 @@ import { useLogStore } from '@/stores/logStore';
55import { useWindowStore } from '@/stores/windowStore' ;
66import { useSelectionStore } from '@/stores/selectionStore' ;
77
8+ // 这个文件是一个历史遗留问题,它只有10行是filter,剩下的都是选择管理器。
9+ // 它和fiter.ts的关系类似于java与javascript的关系
10+ // 也许正确的名字应该叫 useActiveSelection.ts
811// 暂时不改这里的接口,后面再单独分离
12+
913export function useFilter ( ownerId ?: string ) {
1014 const logStore = useLogStore ( ) ;
1115 const windowStore = useWindowStore ( ) ;
Original file line number Diff line number Diff line change @@ -17,8 +17,7 @@ export function dispatchAdapter(text: string): ImportAdapter {
1717 bestAdapter = adapter ;
1818 }
1919 }
20- // 如果所有 adapter 得分都小于 10
21- if ( maxScore < 10 ) {
20+ if ( maxScore < 20 ) {
2221 throw new Error ( '无法识别该文件的格式,暂不支持导入。' ) ;
2322 }
2423
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import type {
66 WindowInstance ,
77 SplitMode ,
88 SplitDirection ,
9- } from '@/types/layout ' ;
9+ } from '@/types/window ' ;
1010import { generateId } from '@/utils/id' ;
1111
1212function windowStore ( ) {
File renamed without changes.
You can’t perform that action at this time.
0 commit comments