Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit 9ff03ab

Browse files
committed
chore: update deps
1 parent 4201755 commit 9ff03ab

File tree

6 files changed

+1558
-815
lines changed

6 files changed

+1558
-815
lines changed

components/PanelEditorMonaco.client.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<script setup lang="ts">
22
import * as monaco from 'monaco-editor-core/esm/vs/editor/editor.api'
3-
import { shikijiToMonaco } from 'shikiji-monaco'
3+
import { shikiToMonaco } from '@shikijs/monaco'
44
import { initMonaco } from '~/monaco/setup'
55
import { reloadLanguageTools } from '~/monaco/env'
6-
import { getShikiji } from '~/monaco/shikiji'
6+
import { getShiki } from '~/monaco/shiki'
77
88
const props = defineProps<{
99
modelValue: string
@@ -71,8 +71,8 @@ watch(
7171
if (!value)
7272
return
7373
74-
const shiki = await getShikiji()
75-
shikijiToMonaco(shiki, monaco)
74+
const shiki = await getShiki()
75+
shikiToMonaco(shiki, monaco)
7676
7777
const editor = monaco.editor.create(
7878
value,

content/0.index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ With this tutorial, we assume you are already familiar with the basic concept of
2424
Start learning by click the topics below:
2525

2626
::div{.flex.flex-wrap.gap-2}
27-
:content-card{to="/vue/intro" title="Vue Basics" description="If you are not familiar with Vue, we recommend you to learn the basics of Vue first." icon="i-logos-vue"}
28-
:content-card{to="/concepts/intro" title="Nuxt Concepts" description="If you are not familiar with Vue, we recommend you to learn the basics of Vue first." icon="i-logos-nuxt-icon"}
27+
:content-card{to="/vue" title="Vue Basics" description="If you are not familiar with Vue, we recommend you to learn the basics of Vue first." icon="i-logos-vue"}
28+
:content-card{to="/concepts" title="Nuxt Concepts" description="If you are not familiar with Vue, we recommend you to learn the basics of Vue first." icon="i-logos-nuxt-icon"}
2929
::
3030

3131
## Case Studies

monaco/shikiji.ts renamed to monaco/shiki.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
1-
import type { HighlighterCore } from 'shikiji-core'
2-
import { getHighlighterCore } from 'shikiji-core'
3-
import { getWasmInlined } from 'shikiji/wasm'
1+
import type { HighlighterCore } from 'shiki/core'
2+
import { getHighlighterCore } from 'shiki/core'
3+
import getWasmInlined from 'shiki/wasm'
44

5-
import langVue from 'shikiji/langs/vue.mjs'
6-
import themeBlack from 'theme-vitesse/themes/vitesse-black.json'
7-
import themeLight from 'theme-vitesse/themes/vitesse-light.json'
5+
import langVue from 'shiki/langs/vue.mjs'
6+
import themeBlack from 'shiki/themes/vitesse-black.mjs'
7+
import themeLight from 'shiki/themes/vitesse-light.mjs'
88

99
let highlighter: Promise<HighlighterCore> | undefined
1010

11-
export async function getShikiji() {
11+
export async function getShiki() {
1212
if (highlighter)
1313
return highlighter
1414

1515
const darkColors = (themeBlack as any).colors as Record<string, string>
1616
darkColors['editor.background'] = '#00000000'
1717
darkColors['editor.lineHighlightBackground'] = '#00000000'
18-
themeLight.name = 'vitesse-light'
19-
themeBlack.name = 'vitesse-black'
2018

2119
highlighter = getHighlighterCore({
2220
langs: [

package.json

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "learn.nuxt.com",
33
"type": "module",
44
"private": true,
5-
"packageManager": "pnpm@8.14.1",
5+
"packageManager": "pnpm@8.15.1",
66
"scripts": {
77
"build": "nuxt build",
88
"dev": "nuxt dev",
@@ -14,48 +14,48 @@
1414
"format": "eslint . --fix"
1515
},
1616
"dependencies": {
17-
"@volar/monaco": "^1.11.1",
17+
"@shikijs/core": "^1.0.0-beta.3",
18+
"@shikijs/monaco": "^1.0.0-beta.3",
19+
"@volar/monaco": "^2.0.0",
1820
"@vue/language-service": "^1.8.27",
19-
"@webcontainer/api": "^1.1.8",
20-
"birpc": "^0.2.14",
21-
"floating-vue": "^5.1.0",
21+
"@webcontainer/api": "^1.1.9",
22+
"birpc": "^0.2.15",
23+
"floating-vue": "^5.2.2",
2224
"jszip": "^3.10.1",
2325
"monaco-editor": "^0.45.0",
2426
"monaco-editor-textmate": "^4.0.0",
2527
"monaco-textmate": "^3.0.1",
2628
"onigasm": "^2.2.5",
27-
"shikiji": "^0.9.19",
28-
"shikiji-core": "^0.9.19",
29-
"shikiji-monaco": "^0.9.19",
29+
"shiki": "^1.0.0-beta.3",
3030
"splitpanes": "^3.1.5",
3131
"strip-json-comments": "^5.0.1",
3232
"theme-vitesse": "^0.7.5",
33-
"vue": "^3.4.14",
33+
"vue": "^3.4.15",
3434
"vue-router": "^4.2.5",
3535
"xterm": "^5.3.0",
3636
"xterm-addon-fit": "^0.8.0"
3737
},
3838
"devDependencies": {
39-
"@antfu/eslint-config": "^2.6.2",
39+
"@antfu/eslint-config": "^2.6.3",
4040
"@iconify-json/logos": "^1.1.42",
41-
"@iconify/json": "^2.2.169",
42-
"@nuxt/content": "^2.10.0",
41+
"@iconify/json": "^2.2.177",
42+
"@nuxt/content": "^2.11.0",
4343
"@nuxt/devtools": "^1.0.8",
44-
"@nuxt/kit": "^3.9.1",
44+
"@nuxt/kit": "^3.10.0",
4545
"@nuxtjs/color-mode": "^3.3.2",
4646
"@nuxtjs/seo": "2.0.0-rc.4",
4747
"@pinia/nuxt": "^0.5.1",
48-
"@unocss/eslint-plugin": "^0.58.3",
49-
"@unocss/extractor-mdc": "^0.58.3",
50-
"@unocss/nuxt": "^0.58.3",
48+
"@unocss/eslint-plugin": "^0.58.4",
49+
"@unocss/extractor-mdc": "^0.58.4",
50+
"@unocss/nuxt": "^0.58.4",
5151
"@vueuse/nuxt": "^10.7.2",
5252
"eslint": "^8.56.0",
5353
"eslint-plugin-format": "^0.1.0",
5454
"execa": "^8.0.1",
5555
"fast-glob": "^3.3.2",
5656
"fuse.js": "^7.0.0",
5757
"monaco-editor-core": "^0.45.0",
58-
"nuxt": "^3.9.1",
58+
"nuxt": "^3.10.0",
5959
"nuxt-icon": "^0.6.8",
6060
"pathe": "^1.1.2",
6161
"remark-external-links": "^9.0.1",
@@ -68,7 +68,8 @@
6868
}
6969
},
7070
"resolutions": {
71-
"shikiji": "^0.9.19",
71+
"shikiji": "npm:[email protected]",
72+
"shikiji-transformers": "npm:@shikijs/[email protected]",
7273
"unified": "^11.0.4"
7374
}
7475
}

0 commit comments

Comments
 (0)