diff --git a/packages/devtools-ui-kit/src/components/NCodeBlock.vue b/packages/devtools-ui-kit/src/components/NCodeBlock.vue index 2e7e3ecf1..e1b371ea0 100644 --- a/packages/devtools-ui-kit/src/components/NCodeBlock.vue +++ b/packages/devtools-ui-kit/src/components/NCodeBlock.vue @@ -2,17 +2,47 @@ // This components requires to run in DevTools to render correctly import { devToolsClient } from '../runtime/client' -defineProps<{ - code: string - lang?: string -}>() +withDefaults( + defineProps<{ + code: string + lang?: string + lines?: boolean + }>(), { + lines: true, + }, +) + + diff --git a/packages/devtools-ui-kit/src/unocss.ts b/packages/devtools-ui-kit/src/unocss.ts index 48ea2725e..167c89d72 100644 --- a/packages/devtools-ui-kit/src/unocss.ts +++ b/packages/devtools-ui-kit/src/unocss.ts @@ -118,6 +118,9 @@ export const unocssPreset = (): Preset => ({ // icon 'n-icon': 'flex-none', + + // code + 'n-code-block': 'dark:bg-[#121212] bg-white', }, }) diff --git a/packages/devtools/client/components/AssetDetails.vue b/packages/devtools/client/components/AssetDetails.vue new file mode 100644 index 000000000..6517bf8fa --- /dev/null +++ b/packages/devtools/client/components/AssetDetails.vue @@ -0,0 +1,194 @@ + + + diff --git a/packages/devtools/client/components/AssetFontPreview.vue b/packages/devtools/client/components/AssetFontPreview.vue new file mode 100644 index 000000000..d589d1c8c --- /dev/null +++ b/packages/devtools/client/components/AssetFontPreview.vue @@ -0,0 +1,23 @@ + + + diff --git a/packages/devtools/client/components/AssetGridItem.vue b/packages/devtools/client/components/AssetGridItem.vue new file mode 100644 index 000000000..e61fc4bcb --- /dev/null +++ b/packages/devtools/client/components/AssetGridItem.vue @@ -0,0 +1,23 @@ + + + diff --git a/packages/devtools/client/components/AssetListItem.vue b/packages/devtools/client/components/AssetListItem.vue new file mode 100644 index 000000000..386282388 --- /dev/null +++ b/packages/devtools/client/components/AssetListItem.vue @@ -0,0 +1,32 @@ + + + diff --git a/packages/devtools/client/components/AssetPreview.vue b/packages/devtools/client/components/AssetPreview.vue new file mode 100644 index 000000000..67380d4c9 --- /dev/null +++ b/packages/devtools/client/components/AssetPreview.vue @@ -0,0 +1,22 @@ + + + diff --git a/packages/devtools/client/components/ComponentDetails.vue b/packages/devtools/client/components/ComponentDetails.vue index 30b76d43e..650809b3c 100644 --- a/packages/devtools/client/components/ComponentDetails.vue +++ b/packages/devtools/client/components/ComponentDetails.vue @@ -14,7 +14,7 @@ const copy = useCopy()