Merge remote-tracking branch 'origin/dev' into charting

This commit is contained in:
zernonia 2024-04-26 10:01:54 +08:00
commit d562c1887a
11 changed files with 32 additions and 51 deletions

View File

@ -18,7 +18,6 @@ on:
# When a labeled '🚀request-deploy' pull request from forked repo, it will be deploy to Cloudflare Pages # When a labeled '🚀request-deploy' pull request from forked repo, it will be deploy to Cloudflare Pages
- labeled - labeled
# Allows you to run this workflow manually from the Actions tab # Allows you to run this workflow manually from the Actions tab
# eslint-disable-next-line yml/no-empty-mapping-value
workflow_dispatch: workflow_dispatch:
permissions: permissions:
@ -60,7 +59,7 @@ jobs:
- uses: pnpm/action-setup@v2 - uses: pnpm/action-setup@v2
name: Install pnpm name: Install pnpm
with: with:
version: 8 version: 9.0.5
run_install: false run_install: false
- name: Get pnpm store directory - name: Get pnpm store directory

View File

@ -24,12 +24,12 @@ jobs:
- name: Setup Node.js environment - name: Setup Node.js environment
uses: actions/setup-node@v2 uses: actions/setup-node@v2
with: with:
node-version: 16 node-version: 18
- uses: pnpm/action-setup@v2 - uses: pnpm/action-setup@v2
name: Install pnpm name: Install pnpm
with: with:
version: 8 version: 9.0.5
run_install: false run_install: false
- name: Get pnpm store directory - name: Get pnpm store directory

View File

@ -1,7 +1,7 @@
{ {
"name": "www", "name": "www",
"type": "module", "type": "module",
"version": "0.10.3", "version": "0.10.4",
"files": [ "files": [
"dist" "dist"
], ],
@ -53,7 +53,7 @@
"@iconify/vue": "^4.1.2", "@iconify/vue": "^4.1.2",
"@oxc-parser/wasm": "^0.1.0", "@oxc-parser/wasm": "^0.1.0",
"@shikijs/transformers": "^1.3.0", "@shikijs/transformers": "^1.3.0",
"@types/lodash.template": "^4.5.3", "@types/lodash-es": "^4.17.12",
"@types/node": "^20.12.7", "@types/node": "^20.12.7",
"@vitejs/plugin-vue": "^5.0.4", "@vitejs/plugin-vue": "^5.0.4",
"@vitejs/plugin-vue-jsx": "^3.1.0", "@vitejs/plugin-vue-jsx": "^3.1.0",
@ -61,7 +61,7 @@
"@vue/compiler-dom": "^3.4.24", "@vue/compiler-dom": "^3.4.24",
"@vue/tsconfig": "^0.5.1", "@vue/tsconfig": "^0.5.1",
"autoprefixer": "^10.4.19", "autoprefixer": "^10.4.19",
"lodash.template": "^4.5.0", "lodash-es": "^4.17.21",
"pathe": "^1.1.2", "pathe": "^1.1.2",
"rimraf": "^5.0.5", "rimraf": "^5.0.5",
"shiki": "^1.3.0", "shiki": "^1.3.0",

View File

@ -1,6 +1,6 @@
import fs from 'node:fs' import fs from 'node:fs'
import path, { basename } from 'node:path' import path, { basename } from 'node:path'
import template from 'lodash.template' import { template } from 'lodash-es'
import { rimraf } from 'rimraf' import { rimraf } from 'rimraf'
import { colorMapping, colors } from '../src/lib/registry/colors' import { colorMapping, colors } from '../src/lib/registry/colors'
@ -40,7 +40,7 @@ for (const style of styles) {
file => `../src/lib/registry/${style.name}/${file}`, file => `../src/lib/registry/${style.name}/${file}`,
) )
const type = item.type.split(':')[1] // const type = item.type.split(':')[1]
index += ` index += `
"${item.name}": { "${item.name}": {
name: "${item.name}", name: "${item.name}",
@ -396,4 +396,4 @@ fs.writeFileSync(
'utf8', 'utf8',
) )
console.log('✅ Done!') console.log('✅ Done!!')

View File

@ -47,3 +47,5 @@ const { site, theme, page, frontmatter } = useData()
## More ## More
Check out the documentation for the [full list of runtime APIs](https://vitepress.dev/reference/runtime-api#usedata). Check out the documentation for the [full list of runtime APIs](https://vitepress.dev/reference/runtime-api#usedata).
kick

View File

@ -249,7 +249,7 @@ function onSubmit(values) {
### Build your form ### Build your form
Based on last step we can either use `<Form />` component or `useForm` composable Based on last step we can either use `<Form />` component or `useForm` composable
`useForm` is recommended cause values are typed automatically `useForm` is recommended because values are typed automatically
```vue:line-numbers {2} ```vue:line-numbers {2}
<script setup lang="ts"> <script setup lang="ts">

View File

@ -1,7 +1,7 @@
{ {
"name": "shadcn-vue", "name": "shadcn-vue",
"type": "module", "type": "module",
"version": "0.10.3", "version": "0.10.4",
"private": true, "private": true,
"packageManager": "pnpm@9.0.5", "packageManager": "pnpm@9.0.5",
"license": "MIT", "license": "MIT",

View File

@ -1,7 +1,7 @@
{ {
"name": "shadcn-vue", "name": "shadcn-vue",
"type": "module", "type": "module",
"version": "0.10.3", "version": "0.10.4",
"description": "Add components to your apps.", "description": "Add components to your apps.",
"publishConfig": { "publishConfig": {
"access": "public" "access": "public"
@ -55,7 +55,7 @@
"diff": "^5.2.0", "diff": "^5.2.0",
"fs-extra": "^11.2.0", "fs-extra": "^11.2.0",
"https-proxy-agent": "^7.0.4", "https-proxy-agent": "^7.0.4",
"lodash.template": "^4.5.0", "lodash-es": "^4.17.21",
"magic-string": "^0.30.10", "magic-string": "^0.30.10",
"nypm": "^0.3.8", "nypm": "^0.3.8",
"ofetch": "^1.3.4", "ofetch": "^1.3.4",
@ -71,7 +71,7 @@
"@types/babel__core": "^7.20.5", "@types/babel__core": "^7.20.5",
"@types/diff": "^5.2.0", "@types/diff": "^5.2.0",
"@types/fs-extra": "^11.0.4", "@types/fs-extra": "^11.0.4",
"@types/lodash.template": "^4.5.3", "@types/lodash-es": "^4.5.3",
"@types/node": "^20.11.30", "@types/node": "^20.11.30",
"@types/prompts": "^2.4.9", "@types/prompts": "^2.4.9",
"@vitest/ui": "^0.34.4", "@vitest/ui": "^0.34.4",

View File

@ -2,7 +2,7 @@ import { existsSync, promises as fs } from 'node:fs'
import process from 'node:process' import process from 'node:process'
import path from 'pathe' import path from 'pathe'
import { Command } from 'commander' import { Command } from 'commander'
import template from 'lodash.template' import { template } from 'lodash-es'
import ora from 'ora' import ora from 'ora'
import prompts from 'prompts' import prompts from 'prompts'
import { z } from 'zod' import { z } from 'zod'

View File

@ -1,7 +1,7 @@
{ {
"name": "shadcn-nuxt", "name": "shadcn-nuxt",
"type": "module", "type": "module",
"version": "0.10.3", "version": "0.10.4",
"description": "Add shadcn-vue module to Nuxt", "description": "Add shadcn-vue module to Nuxt",
"publishConfig": { "publishConfig": {
"access": "public" "access": "public"

View File

@ -150,9 +150,9 @@ importers:
'@shikijs/transformers': '@shikijs/transformers':
specifier: ^1.3.0 specifier: ^1.3.0
version: 1.3.0 version: 1.3.0
'@types/lodash.template': '@types/lodash-es':
specifier: ^4.5.3 specifier: ^4.17.12
version: 4.5.3 version: 4.17.12
'@types/node': '@types/node':
specifier: ^20.12.7 specifier: ^20.12.7
version: 20.12.7 version: 20.12.7
@ -174,9 +174,9 @@ importers:
autoprefixer: autoprefixer:
specifier: ^10.4.19 specifier: ^10.4.19
version: 10.4.19(postcss@8.4.38) version: 10.4.19(postcss@8.4.38)
lodash.template: lodash-es:
specifier: ^4.5.0 specifier: ^4.17.21
version: 4.5.0 version: 4.17.21
pathe: pathe:
specifier: ^1.1.2 specifier: ^1.1.2
version: 1.1.2 version: 1.1.2
@ -240,9 +240,9 @@ importers:
https-proxy-agent: https-proxy-agent:
specifier: ^7.0.4 specifier: ^7.0.4
version: 7.0.4 version: 7.0.4
lodash.template: lodash-es:
specifier: ^4.5.0 specifier: ^4.17.21
version: 4.5.0 version: 4.17.21
magic-string: magic-string:
specifier: ^0.30.10 specifier: ^0.30.10
version: 0.30.10 version: 0.30.10
@ -283,9 +283,9 @@ importers:
'@types/fs-extra': '@types/fs-extra':
specifier: ^11.0.4 specifier: ^11.0.4
version: 11.0.4 version: 11.0.4
'@types/lodash.template': '@types/lodash-es':
specifier: ^4.5.3 specifier: ^4.5.3
version: 4.5.3 version: 4.17.12
'@types/node': '@types/node':
specifier: ^20.11.30 specifier: ^20.11.30
version: 20.12.7 version: 20.12.7
@ -2058,8 +2058,8 @@ packages:
'@types/linkify-it@3.0.5': '@types/linkify-it@3.0.5':
resolution: {integrity: sha512-yg6E+u0/+Zjva+buc3EIb+29XEg4wltq7cSmd4Uc2EE/1nUVmxyzpX6gUXD0V8jIrG0r7YeOGVIbYRkxeooCtw==} resolution: {integrity: sha512-yg6E+u0/+Zjva+buc3EIb+29XEg4wltq7cSmd4Uc2EE/1nUVmxyzpX6gUXD0V8jIrG0r7YeOGVIbYRkxeooCtw==}
'@types/lodash.template@4.5.3': '@types/lodash-es@4.17.12':
resolution: {integrity: sha512-Mo0UYKLu1oXgkV9TVoXZLlXXjyIXlW7ZQRxi/4gQJmzJr63dmicE8gG0OkPjYTKBrBic852q0JzqrtNUWLBIyA==} resolution: {integrity: sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==}
'@types/lodash@4.17.0': '@types/lodash@4.17.0':
resolution: {integrity: sha512-t7dhREVv6dbNj0q17X12j7yDG4bD/DHYX7o5/DbDxobP0HnGPgpRz2Ej77aL7TZT3DSw13fqUTj8J4mMnqa7WA==} resolution: {integrity: sha512-t7dhREVv6dbNj0q17X12j7yDG4bD/DHYX7o5/DbDxobP0HnGPgpRz2Ej77aL7TZT3DSw13fqUTj8J4mMnqa7WA==}
@ -4886,9 +4886,6 @@ packages:
lodash-es@4.17.21: lodash-es@4.17.21:
resolution: {integrity: sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==} resolution: {integrity: sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==}
lodash._reinterpolate@3.0.0:
resolution: {integrity: sha512-xYHt68QRoYGjeeM/XOE1uJtvXQAgvszfBhjV4yvsQH0u2i9I6cI6c6/eG4Hh3UAOVn0y/xAXwmTzEay49Q//HA==}
lodash.camelcase@4.3.0: lodash.camelcase@4.3.0:
resolution: {integrity: sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==} resolution: {integrity: sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==}
@ -4922,12 +4919,6 @@ packages:
lodash.startcase@4.4.0: lodash.startcase@4.4.0:
resolution: {integrity: sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg==} resolution: {integrity: sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg==}
lodash.template@4.5.0:
resolution: {integrity: sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A==}
lodash.templatesettings@4.2.0:
resolution: {integrity: sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ==}
lodash.uniq@4.5.0: lodash.uniq@4.5.0:
resolution: {integrity: sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==} resolution: {integrity: sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==}
@ -9437,7 +9428,7 @@ snapshots:
'@types/linkify-it@3.0.5': {} '@types/linkify-it@3.0.5': {}
'@types/lodash.template@4.5.3': '@types/lodash-es@4.17.12':
dependencies: dependencies:
'@types/lodash': 4.17.0 '@types/lodash': 4.17.0
@ -12800,8 +12791,6 @@ snapshots:
lodash-es@4.17.21: {} lodash-es@4.17.21: {}
lodash._reinterpolate@3.0.0: {}
lodash.camelcase@4.3.0: {} lodash.camelcase@4.3.0: {}
lodash.defaults@4.2.0: {} lodash.defaults@4.2.0: {}
@ -12824,15 +12813,6 @@ snapshots:
lodash.startcase@4.4.0: {} lodash.startcase@4.4.0: {}
lodash.template@4.5.0:
dependencies:
lodash._reinterpolate: 3.0.0
lodash.templatesettings: 4.2.0
lodash.templatesettings@4.2.0:
dependencies:
lodash._reinterpolate: 3.0.0
lodash.uniq@4.5.0: {} lodash.uniq@4.5.0: {}
lodash.upperfirst@4.3.1: {} lodash.upperfirst@4.3.1: {}