Skip to content

Commit 80531f1

Browse files
committed
style: 修改了部分命名和注释的格式
1 parent 7e9ad8f commit 80531f1

5 files changed

Lines changed: 7 additions & 4 deletions

File tree

src/components/workspace/MainWorkspace.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
import { computed, ref } from 'vue';
6363
import { useLogStore } from '@/stores/logStore';
6464
import { useWindowStore } from '@/stores/windowStore';
65-
import type { WindowInstance, WindowName } from '@/types/layout';
65+
import type { WindowInstance, WindowName } from '@/types/window';
6666
import FileImporter from '@/components/common/FileImporter.vue';
6767
import ChunkView from './ChunkView.vue';
6868
import ExportPreview from './ExportPreview.vue';

src/composables/useFilter.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ import { useLogStore } from '@/stores/logStore';
55
import { useWindowStore } from '@/stores/windowStore';
66
import { useSelectionStore } from '@/stores/selectionStore';
77

8+
// 这个文件是一个历史遗留问题,它只有10行是filter,剩下的都是选择管理器。
9+
// 它和fiter.ts的关系类似于java与javascript的关系
10+
// 也许正确的名字应该叫 useActiveSelection.ts
811
// 暂时不改这里的接口,后面再单独分离
12+
913
export function useFilter(ownerId?: string) {
1014
const logStore = useLogStore();
1115
const windowStore = useWindowStore();

src/io/import/importAdapters.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

src/stores/windowStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type {
66
WindowInstance,
77
SplitMode,
88
SplitDirection,
9-
} from '@/types/layout';
9+
} from '@/types/window';
1010
import { generateId } from '@/utils/id';
1111

1212
function windowStore() {
File renamed without changes.

0 commit comments

Comments
 (0)