{"id":16908052,"url":"https://github.com/dream2023/docsify-plugin-run","last_synced_at":"2025-09-07T21:07:43.840Z","repository":{"id":57214253,"uuid":"226689144","full_name":"dream2023/docsify-plugin-run","owner":"dream2023","description":"docsify 在线运行 Vue 单文件","archived":false,"fork":false,"pushed_at":"2020-01-27T01:08:34.000Z","size":14,"stargazers_count":11,"open_issues_count":1,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-07T01:56:37.334Z","etag":null,"topics":["docsify","docsify-demo","docsify-editor","docsify-plugin","docsify-sfc","docsify-vue","vue-run-sfc"],"latest_commit_sha":null,"homepage":"https://dream2023.github.io/docsify-plugin-run/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dream2023.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-08T15:31:56.000Z","updated_at":"2023-09-23T18:55:11.000Z","dependencies_parsed_at":"2022-08-26T13:23:44.178Z","dependency_job_id":null,"html_url":"https://github.com/dream2023/docsify-plugin-run","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dream2023/docsify-plugin-run","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dream2023%2Fdocsify-plugin-run","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dream2023%2Fdocsify-plugin-run/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dream2023%2Fdocsify-plugin-run/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dream2023%2Fdocsify-plugin-run/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dream2023","download_url":"https://codeload.github.com/dream2023/docsify-plugin-run/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dream2023%2Fdocsify-plugin-run/sbom","scorecard":{"id":355508,"data":{"date":"2025-08-11","repo":{"name":"github.com/dream2023/docsify-plugin-run","commit":"bf316b5341804893962054aa5aa83af9ab2ca02b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/7 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-18T09:28:51.029Z","repository_id":57214253,"created_at":"2025-08-18T09:28:51.035Z","updated_at":"2025-08-18T09:28:51.035Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274095422,"owners_count":25221433,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docsify","docsify-demo","docsify-editor","docsify-plugin","docsify-sfc","docsify-vue","vue-run-sfc"],"created_at":"2024-10-13T18:49:58.467Z","updated_at":"2025-09-07T21:07:43.816Z","avatar_url":"https://github.com/dream2023.png","language":"HTML","readme":"# docsify-plugin-run | docsify 在线运行 Vue 单文件\n\n## 🍏 介绍\n\n`docsify-plugin-run` 通过对 [vue-run-sfc](https://github.com/dream2023/vue-run-sfc) 的封装, 实现了 docsify 在线运行和编辑 Vue 单文件的能力, 简直是写 DEMO 福音, 再也不用担心 `JSFiddle` 或 `Codepen` 无法访问了.\n\n```html\n``html run\n\u003ctemplate\u003e\n  \u003ch2 class=\"title\"\u003e{{name}} DEMO利器!\u003c/h2\u003e\n\u003c/template\u003e\n\u003cscript\u003e\n  export default {\n    data () {\n      return {\n        name: 'docsify-plugin-run'\n      }\n    }\n  }\n\u003c/script\u003e\n\u003cstyle\u003e\n  .title {\n    color: #42b983;\n  }\n\u003c/style\u003e\n``  \u003c== 这里和上面的 ` 有 3 个\n```\n\n## DEMO \u0026 DOC\n[https://dream2023.github.io/docsify-plugin-run/](https://dream2023.github.io/docsify-plugin-run/)\n\n## 🍎 使用\n\n```html\n\u003cscript\u003e\n  window.$docsify = {\n    // 配置, 更多属性解释请往下面翻 ↓\n    run: {\n      themeColor: 'green',\n      themeBorderColor: '#eee',\n      reverse: true,\n      // ...\n    }\n  }\n\u003c/script\u003e\n\n\u003c!-- 引入Vue --\u003e\n\u003cscript src=\"//unpkg.com/vue/dist/vue.min.js\"\u003e\u003c/script\u003e\n\u003c!-- 引入 vue-run-sfc --\u003e\n\u003cscript src=\"//unpkg.com/vue-run-sfc\"\u003e\u003c/script\u003e\n\u003c!-- 引入 docsify-plugin-run --\u003e\n\u003cscript src=\"https://unpkg.com/docsify-plugin-run/src/index.js\"\u003e\u003c/script\u003e\n\u003c!-- 指定版本 --\u003e\n\u003c!-- \u003cscript src=\"https://unpkg.com/docsify-plugin-run@xx.xx.xx/src/index.js\"\u003e\u003c/script\u003e --\u003e\n\u003c!-- docsify --\u003e\n\u003cscript src=\"//unpkg.com/docsify/lib/docsify.min.js\"\u003e\u003c/script\u003e\n```\n\n## 🍊示例\n\n### 全局配置: 运行 element-ui\n\n```html\n\u003cscript\u003e\n  window.$docsify = {\n    run: {\n      jsLabs: ['https://unpkg.com/element-ui/lib/index.js'],\n      cssLabs: ['https://unpkg.com/element-ui/lib/theme-chalk/index.css'],\n    }\n  }\n\u003c/script\u003e\n```\n\n```html\n``html run\n\u003ctemplate\u003e\n  \u003cel-tabs type=\"border-card\"\u003e\n    \u003cel-tab-pane label=\"用户管理\"\u003e用户管理\u003c/el-tab-pane\u003e\n    \u003cel-tab-pane label=\"配置管理\"\u003e配置管理\u003c/el-tab-pane\u003e\n    \u003cel-tab-pane label=\"角色管理\"\u003e角色管理\u003c/el-tab-pane\u003e\n    \u003cel-tab-pane label=\"定时任务补偿\"\u003e定时任务补偿\u003c/el-tab-pane\u003e\n  \u003c/el-tabs\u003e\n\u003c/template\u003e\n``  \u003c== 这里和上面的 ` 有 3 个\n```\n\n### 局部配置: 自定义显示\n\n```html\n``html run {title: '局部配置', height: '200px', row: true}\n\u003ctemplate\u003e\n  \u003cdiv\u003e通过局部配置实现\u003cb\u003e高度自定义\u003c/b\u003e和\u003cb\u003e左右布局\u003c/b\u003e\u003c/div\u003e\n\u003c/template\u003e\n\u003cstyle\u003e\nb {\n  color: #42b983;\n}\n\u003c/style\u003e\n`` \u003c== 这里和上面的 ` 有 3 个\n```\n\n## 🍇 配置属性列表\n\n具体属性请参考: [vue-run-sfc](https://github.com/dream2023/vue-run-sfc#props-%E5%B1%9E%E6%80%A7%E8%AF%B4%E6%98%8E)\n\n```js\n{\n  /**\n   * js 库\n   * @example: ['https://unpkg.com/element-ui/lib/index.js']\n   */\n  jsLabs: Array,\n\n  /**\n   * css 库\n   * @example: ['https://unpkg.com/element-ui/lib/theme-chalk/index.css']\n   */\n  cssLabs: Array,\n\n  /**\n   * js 字符串\n   * @example: 'alert(1)'\n   */\n  js: [Array, String],\n\n  /**\n   * css 字符串\n   * @example: 'body { color: red }'\n   */\n  css: [Array, String],\n\n  // 主题色\n  // 默认值为: #42b983\n  themeColor: {\n    type: String,\n    default: '#42b983'\n  },\n\n  // 主题色\n  // 默认值为: #42b983\n  themeBorderColor: {\n    type: String,\n    default: 'rgba(0,0,0,.07)'\n  },\n\n  /**\n   * 代码编辑器和效果预览排列方式\n   * 当为 false 时, 上下排列\n   * 当为 true 时, 左右排列\n   */\n  row: {\n    type: Boolean,\n    default: undefined\n  },\n\n  /**\n   * 当 `row` 为 true 时, 编辑区和展示区上下位置\n   * 当为 false 时, 编辑器在下, 展示区在上\n   * 当为 true 时, 编辑器在上, 展示区在下\n   */\n  reverse: Boolean,\n\n  /**\n   * 高度\n   * @example: '400px'\n   */\n  height: String,\n\n  /**\n   * 初始加载是否打开编辑区\n   * 当为 false 时, 默认是关闭编辑区\n   * 当为 true 时, 默认是打开编辑区\n   */\n  open: Boolean,\n  /**\n   * 是否隐藏头部\n   */\n  isHideHeader: Boolean\n}\n```\n\n## 相关链接\n\n- [vue-run-sfc](https://github.com/dream2023/vue-run-sfc)\n- [vuep.run](http://vuep.run/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdream2023%2Fdocsify-plugin-run","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdream2023%2Fdocsify-plugin-run","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdream2023%2Fdocsify-plugin-run/lists"}