Skip to content

Commit

Permalink
release: v3.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
xinlei3166 committed Mar 26, 2024
1 parent 0a3c37c commit cf4aa4f
Show file tree
Hide file tree
Showing 11 changed files with 2,894 additions and 2,486 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [3.0.4](https://github.com/xinlei3166/vitepress-theme-demoblock/compare/v3.0.3...v3.0.4) (2024-03-26)



## [3.0.3](https://github.com/xinlei3166/vitepress-theme-demoblock/compare/v3.0.2...v3.0.3) (2023-07-16)


Expand Down
85 changes: 42 additions & 43 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vitepress-theme-demoblock",
"version": "3.0.3",
"version": "3.0.4",
"type": "module",
"description": "vitepress-theme-demoblock",
"repository": {
Expand Down Expand Up @@ -49,56 +49,55 @@
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0"
},
"dependencies": {
"@floating-ui/vue": "^1.0.1",
"@mdit-vue/plugin-sfc": "^0.12.0",
"@vue/compiler-sfc": "^3.3.4",
"@vueuse/core": "^10.1.2",
"camelcase": "^7.0.1",
"globby": "^13.1.4",
"@floating-ui/vue": "^1.0.6",
"@mdit-vue/plugin-sfc": "^2.0.0",
"@vue/compiler-sfc": "^3.4.21",
"@vueuse/core": "^10.9.0",
"camelcase": "^8.0.0",
"globby": "^14.0.1",
"hash-sum": "^2.0.0",
"markdown-it": "^13.0.1",
"markdown-it-container": "^3.0.0",
"markdown-it": "^14.1.0",
"markdown-it-container": "^4.0.0",
"minimist": "^1.2.8",
"picocolors": "^1.0.0",
"prettier": "^2.8.8",
"remark": "^14.0.3",
"remark-directive": "^2.0.1",
"remark-frontmatter": "^4.0.1",
"remark-parse": "^10.0.2",
"remark-stringify": "^10.0.3",
"shiki": "^0.14.2",
"unified": "^10.1.2",
"unist-util-visit": "^4.1.2",
"vitepress": "^1.0.0-beta.3",
"vue": "^3.3.4",
"yaml": "^2.2.2"
"prettier": "^3.2.5",
"remark": "^15.0.1",
"remark-directive": "^3.0.0",
"remark-frontmatter": "^5.0.0",
"remark-parse": "^11.0.0",
"remark-stringify": "^11.0.0",
"shiki": "^1.2.0",
"unified": "^11.0.4",
"unist-util-visit": "^5.0.0",
"vitepress": "^1.0.1",
"vue": "^3.4.21",
"yaml": "^2.4.1"
},
"devDependencies": {
"@types/fs-extra": "^11.0.1",
"@types/hash-sum": "^1.0.0",
"@types/markdown-it": "^12.2.3",
"@types/minimist": "^1.2.2",
"@types/node": "^20.2.1",
"@types/prettier": "^2.7.2",
"@types/unist": "^2.0.6",
"@typescript-eslint/eslint-plugin": "^5.59.6",
"@typescript-eslint/parser": "^5.59.6",
"@types/fs-extra": "^11.0.4",
"@types/hash-sum": "^1.0.2",
"@types/markdown-it": "^13.0.7",
"@types/minimist": "^1.2.5",
"@types/node": "^20.11.30",
"@types/unist": "^3.0.2",
"@typescript-eslint/eslint-plugin": "^7.4.0",
"@typescript-eslint/parser": "^7.4.0",
"@yunquejs/release": "^0.1.9",
"chokidar-cli": "^3.0.0",
"conventional-changelog-cli": "^2.2.2",
"eslint": "^8.40.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-vue": "^9.13.0",
"lint-staged": "^13.2.2",
"conventional-changelog-cli": "^4.1.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-vue": "^9.24.0",
"lint-staged": "^15.2.2",
"npm-run-all": "^4.1.5",
"simple-git-hooks": "^2.8.1",
"tsx": "^3.12.7",
"typescript": "^5.0.4",
"unbuild": "^1.2.1",
"vite": "^4.3.9",
"vitest": "^0.31.1",
"vue-eslint-parser": "^9.3.0"
"simple-git-hooks": "^2.11.1",
"tsx": "^4.7.1",
"typescript": "^5.4.3",
"unbuild": "^2.0.0",
"vite": "^5.2.6",
"vitest": "^1.4.0",
"vue-eslint-parser": "^9.4.2"
},
"simple-git-hooks": {
"pre-commit": "pnpm exec lint-staged --concurrent false",
Expand Down
8 changes: 7 additions & 1 deletion playground/vitepress/.vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ export default defineConfig({

config: (md) => {
md.use(demoblockPlugin, {
customClass: 'demoblock-custom'
customClass: 'demoblock-custom',
// onCopySuccess: (instance, copySuccess) => {
// instance.appContext.config.globalProperties.message.success(copySuccess)
// },
// onCopyError: (instance, copyError) => {
// instance.appContext.config.globalProperties.message.error(copyError)
// }
})
}
},
Expand Down
2 changes: 2 additions & 0 deletions playground/vitepress/.vitepress/theme/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ import 'vitepress-theme-demoblock/dist/theme/styles/index.css'
import { useComponents } from './useComponents'
import './style.css'
import 'element-plus/dist/index.css'
// import message from 'vitepress-theme-demoblock/dist/client/components/message'
// import ElementPlus from 'element-plus'
// import cn from 'element-plus/lib/locale/lang/zh-cn'

export default {
...DefaultTheme,
enhanceApp(ctx) {
DefaultTheme.enhanceApp(ctx)
// ctx.app.config.globalProperties.message = message
// ctx.app.use(ElementPlus, { locale: cn })
useComponents(ctx.app)
}
Expand Down
2 changes: 1 addition & 1 deletion playground/vitepress/guide/inclusion/basic.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## 来自 inclusion

inclusion
inclusion

## 基础用法 <Badge type="info" text="default" />

Expand Down
16 changes: 8 additions & 8 deletions playground/vitepress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
},
"dependencies": {},
"devDependencies": {
"vite-plugin-inspect": "^0.7.28",
"@vitejs/plugin-vue": "^5.0.4",
"@vitejs/plugin-vue-jsx": "^3.1.0",
"element-plus": "^2.6.2",
"less": "^4.2.0",
"vite": "^5.2.6",
"vite-plugin-inspect": "^0.8.3",
"vitepress": "^1.0.1",
"vitepress-theme-demoblock": "workspace:*",
"vitepress": "^1.0.0-beta.3",
"vite": "^4.3.9",
"@vitejs/plugin-vue-jsx": "^3.0.1",
"@vitejs/plugin-vue": "^4.2.3",
"vue": "^3.3.4",
"element-plus": "^2.3.4",
"less": "^4.1.3"
"vue": "^3.4.21"
}
}
Loading

0 comments on commit cf4aa4f

Please sign in to comment.