diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 9d347542..cd369438 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -18,7 +18,6 @@ on: # When a labeled '🚀request-deploy' pull request from forked repo, it will be deploy to Cloudflare Pages - labeled # Allows you to run this workflow manually from the Actions tab - # eslint-disable-next-line yml/no-empty-mapping-value workflow_dispatch: permissions: @@ -60,7 +59,7 @@ jobs: - uses: pnpm/action-setup@v2 name: Install pnpm with: - version: 8 + version: 9.0.5 run_install: false - name: Get pnpm store directory diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index f1a7f7de..b8e55d5f 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -24,12 +24,12 @@ jobs: - name: Setup Node.js environment uses: actions/setup-node@v2 with: - node-version: 16 + node-version: 18 - uses: pnpm/action-setup@v2 name: Install pnpm with: - version: 8 + version: 9.0.5 run_install: false - name: Get pnpm store directory diff --git a/apps/www/package.json b/apps/www/package.json index 8b032cb4..8ffdde38 100644 --- a/apps/www/package.json +++ b/apps/www/package.json @@ -1,7 +1,7 @@ { "name": "www", "type": "module", - "version": "0.10.3", + "version": "0.10.4", "files": [ "dist" ], @@ -53,7 +53,7 @@ "@iconify/vue": "^4.1.2", "@oxc-parser/wasm": "^0.1.0", "@shikijs/transformers": "^1.3.0", - "@types/lodash.template": "^4.5.3", + "@types/lodash-es": "^4.17.12", "@types/node": "^20.12.7", "@vitejs/plugin-vue": "^5.0.4", "@vitejs/plugin-vue-jsx": "^3.1.0", @@ -61,7 +61,7 @@ "@vue/compiler-dom": "^3.4.24", "@vue/tsconfig": "^0.5.1", "autoprefixer": "^10.4.19", - "lodash.template": "^4.5.0", + "lodash-es": "^4.17.21", "pathe": "^1.1.2", "rimraf": "^5.0.5", "shiki": "^1.3.0", diff --git a/apps/www/scripts/build-registry.ts b/apps/www/scripts/build-registry.ts index 2df7fd3e..56535b0d 100644 --- a/apps/www/scripts/build-registry.ts +++ b/apps/www/scripts/build-registry.ts @@ -1,6 +1,6 @@ import fs from 'node:fs' import path, { basename } from 'node:path' -import template from 'lodash.template' +import { template } from 'lodash-es' import { rimraf } from 'rimraf' import { colorMapping, colors } from '../src/lib/registry/colors' @@ -40,7 +40,7 @@ for (const style of styles) { file => `../src/lib/registry/${style.name}/${file}`, ) - const type = item.type.split(':')[1] + // const type = item.type.split(':')[1] index += ` "${item.name}": { name: "${item.name}", @@ -396,4 +396,4 @@ fs.writeFileSync( 'utf8', ) -console.log('✅ Done!') +console.log('✅ Done!!') diff --git a/apps/www/src/content/api-examples.md b/apps/www/src/content/api-examples.md index 6bd8bb5c..b6c6c1f4 100644 --- a/apps/www/src/content/api-examples.md +++ b/apps/www/src/content/api-examples.md @@ -47,3 +47,5 @@ const { site, theme, page, frontmatter } = useData() ## More Check out the documentation for the [full list of runtime APIs](https://vitepress.dev/reference/runtime-api#usedata). + +kick diff --git a/apps/www/src/content/docs/components/form.md b/apps/www/src/content/docs/components/form.md index 1bb4cf7f..52640f3d 100644 --- a/apps/www/src/content/docs/components/form.md +++ b/apps/www/src/content/docs/components/form.md @@ -249,7 +249,7 @@ function onSubmit(values) { ### Build your form Based on last step we can either use `
` component or `useForm` composable -`useForm` is recommended cause values are typed automatically +`useForm` is recommended because values are typed automatically ```vue:line-numbers {2}