diff --git a/packages/devtools/src/app/components/data/AssetDetails.vue b/packages/devtools/src/app/components/data/AssetDetails.vue new file mode 100644 index 00000000..a05d3451 --- /dev/null +++ b/packages/devtools/src/app/components/data/AssetDetails.vue @@ -0,0 +1,70 @@ + + + + + + + + {{ asset.filename }} + + + + + + + + Open in editor + + + + View source + + + + + + + Source + + + + + + + + + + Chunks + + + + + + diff --git a/packages/devtools/src/app/components/data/ChunkDetails.vue b/packages/devtools/src/app/components/data/ChunkDetails.vue index 58d1a4c6..d3a2879e 100644 --- a/packages/devtools/src/app/components/data/ChunkDetails.vue +++ b/packages/devtools/src/app/components/data/ChunkDetails.vue @@ -2,10 +2,13 @@ import type { Chunk as ChunkInfo } from '@rolldown/debug' import type { SessionContext } from '~~/shared/types' -defineProps<{ +withDefaults(defineProps<{ chunk: ChunkInfo session: SessionContext -}>() + showModules?: boolean +}>(), { + showModules: true, +}) @@ -32,20 +35,22 @@ defineProps<{ {{ chunk.imports }} --> - - Modules - - - - + + + Modules + + + + + diff --git a/packages/devtools/src/app/components/flowmap/ModuleFlow.vue b/packages/devtools/src/app/components/flowmap/ModuleFlow.vue index 44d5dc04..eca880e0 100644 --- a/packages/devtools/src/app/components/flowmap/ModuleFlow.vue +++ b/packages/devtools/src/app/components/flowmap/ModuleFlow.vue @@ -375,10 +375,11 @@ const codeDisplay = computed(() => { - Assets Details (WIP) - - Trace back to the chunk - - A button to open the asset in the editor - - A button to show source in the page +