Skip to content

Commit 66a303c

Browse files
committed
refactor: 将config.ts更名为更符合实际含义的style.ts
1 parent fe5f73e commit 66a303c

10 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/components/panels/IdentityPanel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ import { useUiStore, PANEL_MAX_WIDTH } from '@/stores/uiStore';
114114
import { useHistoryStore } from '@/stores/historyStore';
115115
import { useLogEditorStore } from '@/stores/editorStore';
116116
import type { RoleType } from '@/types/log';
117-
import type { ColorMode, ColorRule } from '@/types/config';
117+
import type { ColorMode, ColorRule } from '@/types/style';
118118
import { useWindowStore } from '@/stores/windowStore';
119119
import {
120120
buildIdentityStats,

src/components/panels/RuleEditorPanel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ import { ref, computed } from 'vue';
258258
import { useStyleStore } from '@/stores/styleStore';
259259
import { useLogStore } from '@/stores/logStore';
260260
import { useActiveContext } from '@/composables/useActiveContext';
261-
import type { ColorRule } from '@/types/config';
261+
import type { ColorRule } from '@/types/style';
262262
import type { MessageFilter } from '@/types/log';
263263
import { matchesMessageFilter } from '@/editor/filter';
264264
import { useWindowStore } from '@/stores/windowStore';

src/editor/identity.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ColorMode } from '@/types/config';
1+
import type { ColorMode } from '@/types/style';
22
import type { Message, RoleType } from '@/types/log';
33

44
export interface IdentityStat {

src/editor/styleEngine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ColorRule } from '@/types/config';
1+
import type { ColorRule } from '@/types/style';
22
import type { Message } from '@/types/log';
33
import { matchesMessageFilter } from './filter';
44
import type { CSSProperties } from 'vue';

src/io/export/flattener.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { LogDocument, Message } from '@/types/log';
2-
import type { ViewSettings, ColorRule } from '@/types/config';
2+
import type { ViewSettings, ColorRule } from '@/types/style';
33
import type { ExportRow, ExportStyle } from '@/types/export';
44
import { computeStyleForMessage } from '@/editor/styleEngine';
55
import { normalizeExportContentNewlines } from './templateParser';

src/io/localStorage/project.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ColorRule, ViewSettings } from '@/types/config';
1+
import type { ColorRule, ViewSettings } from '@/types/style';
22
import type { LogDocument, MessageFilter } from '@/types/log';
33
import { isRoleType } from '@/types/log';
44
import type { ProjectFile } from '@/types/project';

src/stores/historyStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { computed, ref } from 'vue';
33
import { useLogStore } from './logStore';
44
import { useStyleStore } from './styleStore';
55
import type { LogDocument, MessageFilter } from '@/types/log';
6-
import type { ColorRule } from '@/types/config';
6+
import type { ColorRule } from '@/types/style';
77

88
interface HistorySnapshot {
99
documents: LogDocument[];

src/stores/styleStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { defineStore } from 'pinia';
22
import { ref, computed } from 'vue';
3-
import type { ColorRule, ColorMode, ViewSettings } from '@/types/config';
3+
import type { ColorRule, ColorMode, ViewSettings } from '@/types/style';
44
import type { Message } from '@/types/log';
55
import { generateId } from '@/utils/id';
66
import { collectIdentityValues } from '@/editor/identity';

src/types/project.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ViewSettings, ColorRule } from './config';
1+
import type { ViewSettings, ColorRule } from './style';
22
import type { LogDocument } from './log';
33

44
export interface ProjectFile {
File renamed without changes.

0 commit comments

Comments
 (0)