Skip to content

Commit beb01fa

Browse files
authored
fix: typo of flamegraph (#144)
1 parent 2aa393e commit beb01fa

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/node-modules-inspector/src/app/components/chart/Framegraph.vue renamed to packages/node-modules-inspector/src/app/components/chart/Flamegraph.vue

File renamed without changes.

packages/node-modules-inspector/src/app/pages/chart/[...chart].vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { getModuleType } from '../../utils/module-type'
1717
1818
const mouse = reactive(useMouse())
1919
const params = useRoute().params as Record<string, string>
20-
const chart = computed<'frame' | 'treemap' | 'sunburst'>(() => params.chart?.[0] as any || 'treemap')
20+
const chart = computed<'flamegraph' | 'treemap' | 'sunburst'>(() => params.chart?.[0] as any || 'treemap')
2121
const nodeHover = shallowRef<ChartNode | undefined>(undefined)
2222
const nodeSelected = shallowRef<ChartNode | undefined>(undefined)
2323
const location = window.location
@@ -219,7 +219,7 @@ watch(
219219
case 'sunburst':
220220
graph.value = new Sunburst(tree.value.root, options.value)
221221
break
222-
case 'frame':
222+
case 'flamegraph':
223223
graph.value = new Flamegraph(tree.value.root, options.value)
224224
break
225225
default:
@@ -294,11 +294,11 @@ onUnmounted(() => {
294294
</NuxtLink>
295295
<NuxtLink
296296
btn-action as="button"
297-
:to="{ path: '/chart/frame', hash: location.hash }"
297+
:to="{ path: '/chart/flamegraph', hash: location.hash }"
298298
active-class="text-primary bg-primary:5"
299299
>
300300
<div i-ph-chart-bar-horizontal-duotone />
301-
Framegraph
301+
Flamegraph
302302
</NuxtLink>
303303

304304
<div flex-auto />
@@ -310,8 +310,8 @@ onUnmounted(() => {
310310
/>
311311
</div>
312312
<div mt5>
313-
<ChartFramegraph
314-
v-if="chart === 'frame' && graph"
313+
<ChartFlamegraph
314+
v-if="chart === 'flamegraph' && graph"
315315
:graph="graph"
316316
:selected="nodeSelected"
317317
@select="(x: ChartNode | null) => selectNode(x)"

0 commit comments

Comments
 (0)