@nuxt/devtools-ui-kit 1.7.0 → 2.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/components/NCodeBlock.vue +9 -10
- package/dist/components/NNavbar.vue +3 -3
- package/dist/module.json +2 -2
- package/package.json +19 -19
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @nuxt/devtools-ui-kit
|
|
2
2
|
|
|
3
|
-
<a href="https://www.npmjs.com/package/@nuxt/devtools-ui-kit
|
|
3
|
+
<a href="https://www.npmjs.com/package/@nuxt/devtools-ui-kit"><img src="https://flat.badgen.net/npm/v/@nuxt/devtools-ui-kit"></a>
|
|
4
4
|
|
|
5
5
|
> **Warning**: This library is heavily working in progress. Breaking changes may not follow semver. Pin the version if used.
|
|
6
6
|
|
|
@@ -9,6 +9,7 @@ const props = withDefaults(
|
|
|
9
9
|
code: string
|
|
10
10
|
lang?: BuiltinLanguage | 'text'
|
|
11
11
|
lines?: boolean
|
|
12
|
+
inline?: boolean
|
|
12
13
|
transformRendered?: (code: string) => string
|
|
13
14
|
}>(),
|
|
14
15
|
{
|
|
@@ -28,24 +29,22 @@ const rendered = computed(() => {
|
|
|
28
29
|
nextTick(() => emit('loaded'))
|
|
29
30
|
return result
|
|
30
31
|
})
|
|
32
|
+
|
|
33
|
+
const classes = computed(() => [
|
|
34
|
+
'n-code-block shiki',
|
|
35
|
+
(props.lines && !props.inline) ? 'n-code-block-lines' : '',
|
|
36
|
+
])
|
|
31
37
|
</script>
|
|
32
38
|
|
|
33
39
|
<template>
|
|
34
40
|
<template v-if="lang && rendered.supported">
|
|
35
|
-
<pre
|
|
36
|
-
class="n-code-block"
|
|
37
|
-
:class="lines ? 'n-code-block-lines' : ''"
|
|
38
|
-
v-html="rendered.code"
|
|
39
|
-
/>
|
|
41
|
+
<pre :class="classes"><code v-html="rendered.code" /></pre>
|
|
40
42
|
</template>
|
|
41
43
|
<template v-else>
|
|
42
|
-
<pre
|
|
43
|
-
class="n-code-block"
|
|
44
|
-
:class="lines ? 'n-code-block-lines' : ''"
|
|
45
|
-
><pre class="shiki"><code><template v-for="line, _idx in code.split('\n')" :key="_idx"><span class="line" v-text="line" /><br></template></code></pre></pre>
|
|
44
|
+
<pre :class="classes"><code><template v-for="line, _idx in code.split('\n')" :key="_idx"><span class="line" v-text="line" /><br></template></code></pre>
|
|
46
45
|
</template>
|
|
47
46
|
</template>
|
|
48
47
|
|
|
49
48
|
<style>
|
|
50
|
-
.n-code-block-lines
|
|
49
|
+
.n-code-block-lines code{counter-increment:step calc(var(--start, 1) - 1);counter-reset:step}.n-code-block-lines code .line:before{content:counter(step);counter-increment:step;display:inline-block;margin-right:.5rem;padding-right:.5rem;text-align:right;width:2.5rem;--uno:text-truegray/50}
|
|
51
50
|
</style>
|
|
@@ -14,15 +14,15 @@ function update(event: any) {
|
|
|
14
14
|
</script>
|
|
15
15
|
|
|
16
16
|
<template>
|
|
17
|
-
<div flex="~ col gap2" border="b base" flex-1 n-navbar-glass :class="[{ p4: !noPadding }]">
|
|
18
|
-
<div flex="~ gap4" items-center>
|
|
17
|
+
<div flex="~ col gap2 wrap" border="b base" flex-1 n-navbar-glass :class="[{ p4: !noPadding }]">
|
|
18
|
+
<div flex="~ gap4 wrap" items-center>
|
|
19
19
|
<slot name="search">
|
|
20
20
|
<NTextInput
|
|
21
21
|
v-if="search !== undefined"
|
|
22
22
|
placeholder="Search..."
|
|
23
23
|
icon="carbon-search"
|
|
24
24
|
n="primary" flex-auto
|
|
25
|
-
:class="{ 'px-
|
|
25
|
+
:class="{ 'px-3 py-2': !noPadding }"
|
|
26
26
|
:value="search"
|
|
27
27
|
@input="update"
|
|
28
28
|
/>
|
package/dist/module.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/devtools-ui-kit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.0-beta.3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://devtools.nuxt.com/module/ui-kit",
|
|
7
7
|
"repository": {
|
|
@@ -28,33 +28,33 @@
|
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@nuxt/devtools": "
|
|
31
|
+
"@nuxt/devtools": "2.0.0-beta.3"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@iconify-json/carbon": "^1.2.5",
|
|
35
35
|
"@iconify-json/logos": "^1.2.4",
|
|
36
36
|
"@iconify-json/ri": "^1.2.5",
|
|
37
|
-
"@iconify-json/tabler": "^1.2.
|
|
38
|
-
"@nuxt/kit": "^3.15.
|
|
39
|
-
"@unocss/core": "^
|
|
40
|
-
"@unocss/nuxt": "^
|
|
41
|
-
"@unocss/preset-attributify": "^
|
|
42
|
-
"@unocss/preset-icons": "^
|
|
43
|
-
"@unocss/preset-mini": "^
|
|
44
|
-
"@unocss/reset": "^
|
|
45
|
-
"@vueuse/core": "^12.
|
|
46
|
-
"@vueuse/integrations": "^12.
|
|
47
|
-
"@vueuse/nuxt": "^12.
|
|
37
|
+
"@iconify-json/tabler": "^1.2.14",
|
|
38
|
+
"@nuxt/kit": "^3.15.1",
|
|
39
|
+
"@unocss/core": "^65.4.0",
|
|
40
|
+
"@unocss/nuxt": "^65.4.0",
|
|
41
|
+
"@unocss/preset-attributify": "^65.4.0",
|
|
42
|
+
"@unocss/preset-icons": "^65.4.0",
|
|
43
|
+
"@unocss/preset-mini": "^65.4.0",
|
|
44
|
+
"@unocss/reset": "^65.4.0",
|
|
45
|
+
"@vueuse/core": "^12.4.0",
|
|
46
|
+
"@vueuse/integrations": "^12.4.0",
|
|
47
|
+
"@vueuse/nuxt": "^12.4.0",
|
|
48
48
|
"defu": "^6.1.4",
|
|
49
|
-
"focus-trap": "^7.6.
|
|
50
|
-
"splitpanes": "^3.1.
|
|
51
|
-
"unocss": "^
|
|
49
|
+
"focus-trap": "^7.6.4",
|
|
50
|
+
"splitpanes": "^3.1.8",
|
|
51
|
+
"unocss": "^65.4.0",
|
|
52
52
|
"v-lazy-show": "^0.3.0",
|
|
53
|
-
"@nuxt/devtools-kit": "
|
|
53
|
+
"@nuxt/devtools-kit": "2.0.0-beta.3"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"nuxt": "^3.15.
|
|
57
|
-
"@nuxt/devtools": "
|
|
56
|
+
"nuxt": "^3.15.1",
|
|
57
|
+
"@nuxt/devtools": "2.0.0-beta.3"
|
|
58
58
|
},
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"access": "public"
|