Gathering detailed insights and metrics for vuepress-plugin-editable-demo-block
Gathering detailed insights and metrics for vuepress-plugin-editable-demo-block
Gathering detailed insights and metrics for vuepress-plugin-editable-demo-block
Gathering detailed insights and metrics for vuepress-plugin-editable-demo-block
Editable demo and code plugin for vuepress
npm install vuepress-plugin-editable-demo-block
Typescript
Module System
Node Version
NPM Version
Vue (75.94%)
JavaScript (13.65%)
Stylus (9.42%)
Shell (0.99%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
8 Stars
17 Commits
1 Forks
1 Watchers
1 Branches
1 Contributors
Updated on Dec 01, 2022
Latest Version
0.1.2
Package Id
vuepress-plugin-editable-demo-block@0.1.2
Unpacked Size
12.68 kB
Size
5.06 kB
File Count
7
NPM Version
6.14.13
Node Version
14.17.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
The plugin is used to help you add vue examples when writing a document. Using this plugin, your users can easily modify your examples. With the editable functions your user can understand your example better.
// npm
npm i vuepress-plugin-editable-demo-block
// yarn
yarn add vuepress-plugin-editable-demo-block
// docs/.vuepress/config.js
module.exports = {
plugins: [
require('vuepress-plugin-editable-demo-block'),
],
}
// docs/.vuepress/enhanceApp.js
export default ({
Vue,
}) => {
Vue.prototype.$editableDemoBlockCfg = {
runSuccessTip: function () { // render suncess tip function
console.log('run success');
},
runFailTip: function () { // // render fail tip function
this.$message.error('run fail');
},
copySuccessTip: () => {
console.log('copy success');
},
hideText: 'hide code', // tip text when code is hide
showText: 'show code', // tip text when code is show
}
}
Write the following code in the Markdown file:
::: demo
\``` <= delete start backslash
<template>
<div class="examples-button">
<p>{{ explain }}</p>
</div>
</template>
<script>
export default {
data () {
return {
explain: 'display button component'
}
}
}
</script>
\``` <= delete start backslash
:::
yarn install
cd examples && yarn install && yarn dev
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
no SAST tool detected
Details
Reason
Found 0/17 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
75 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More