Skip to content

Commit 484d2ef

Browse files
committed
chore: composables file naming style
1 parent ae4110e commit 484d2ef

File tree

8 files changed

+23
-142
lines changed

8 files changed

+23
-142
lines changed

packages/vite/src/app/components/chunks/Graph.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<script setup lang="ts">
22
import type { ChunkImport } from '@rolldown/debug'
33
import type { RolldownChunkInfo, SessionContext } from '~~/shared/types/data'
4-
import type { ModuleGraphLink, ModuleGraphNode } from '~/composables/moduleGraph'
4+
import type { ModuleGraphLink, ModuleGraphNode } from '~/composables/module-graph'
55
import { useRoute } from '#app/composables/router'
66
import { computed, nextTick, unref } from 'vue'
7-
import { createModuleGraph } from '~/composables/moduleGraph'
7+
import { createModuleGraph } from '~/composables/module-graph'
88
99
type ChunkInfo = RolldownChunkInfo & {
1010
id: string

packages/vite/src/app/components/data/AssetRelationships.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<script setup lang="ts">
22
import type { HierarchyNode } from 'd3-hierarchy'
33
import type { RolldownAssetInfo } from '~~/shared/types'
4-
import type { ModuleGraphLink, ModuleGraphNode } from '~/composables/moduleGraph'
4+
import type { ModuleGraphLink, ModuleGraphNode } from '~/composables/module-graph'
55
import { computed, onMounted, shallowRef, useTemplateRef, watch } from 'vue'
6-
import { generateModuleGraphLink, getModuleGraphLinkColor } from '~/composables/moduleGraph'
6+
import { generateModuleGraphLink, getModuleGraphLinkColor } from '~/composables/module-graph'
77
88
const props = defineProps<{
99
importers?: RolldownAssetInfo[]

packages/vite/src/app/components/data/ModuleImportRelationships.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<script setup lang="ts">
22
import type { HierarchyNode } from 'd3-hierarchy'
33
import type { ModuleImport, ModuleInfo, ModuleListItem, SessionContext } from '~~/shared/types'
4-
import type { ModuleGraphLink, ModuleGraphNode } from '~/composables/moduleGraph'
4+
import type { ModuleGraphLink, ModuleGraphNode } from '~/composables/module-graph'
55
import { computed, onMounted, shallowRef, useTemplateRef, watch } from 'vue'
6-
import { generateModuleGraphLink, getModuleGraphLinkColor } from '~/composables/moduleGraph'
6+
import { generateModuleGraphLink, getModuleGraphLinkColor } from '~/composables/module-graph'
77
88
const props = defineProps<{
99
module: ModuleInfo

packages/vite/src/app/components/display/ModuleGraph.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts" generic="T extends { id: string, imports: unknown[] }, I">
22
import type { SessionContext } from '~~/shared/types'
33
import { onMounted, unref, watch } from 'vue'
4-
import { generateModuleGraphLink, getModuleGraphLinkColor, useGraphDraggingScroll, useGraphZoom, useModuleGraph, useToggleGraphNodeExpanded } from '~/composables/moduleGraph'
4+
import { generateModuleGraphLink, getModuleGraphLinkColor, useGraphDraggingScroll, useGraphZoom, useModuleGraph, useToggleGraphNodeExpanded } from '~/composables/module-graph'
55
66
const props = withDefaults(defineProps<{
77
modules: T[]

packages/vite/src/app/components/modules/Graph.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<script setup lang="ts">
22
import type { ModuleImport, ModuleListItem, SessionContext } from '~~/shared/types'
3-
import type { ModuleGraphLink, ModuleGraphNode } from '~/composables/moduleGraph'
3+
import type { ModuleGraphLink, ModuleGraphNode } from '~/composables/module-graph'
44
import { computed, nextTick, unref } from 'vue'
5-
import { createModuleGraph } from '~/composables/moduleGraph'
5+
import { createModuleGraph } from '~/composables/module-graph'
66
77
const props = defineProps<{
88
modules: ModuleListItem[]

packages/vite/src/app/composables/moduleGraph.ts renamed to packages/vite/src/app/composables/module-graph.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { hierarchy, tree } from 'd3-hierarchy'
77
import { linkHorizontal, linkVertical } from 'd3-shape'
88
import Fuse from 'fuse.js'
99
import { computed, inject, nextTick, provide, ref, shallowReactive, shallowRef, unref } from 'vue'
10-
import { useZoomElement } from './zoomElement'
10+
import { useZoomElement } from './zoom-element'
1111

1212
export interface ModuleGraphNode<M, I> {
1313
module: M
File renamed without changes.

0 commit comments

Comments
 (0)