{"id":29275881,"url":"https://github.com/peterroe/use-vue-component","last_synced_at":"2025-07-05T07:11:28.745Z","repository":{"id":42051322,"uuid":"415804445","full_name":"peterroe/use-vue-component","owner":"peterroe","description":"Convert vue-component  to react-component in docusaurus!","archived":false,"fork":false,"pushed_at":"2022-09-27T08:45:43.000Z","size":41,"stargazers_count":7,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-04T01:14:03.260Z","etag":null,"topics":["docusaurus","plugin","vue"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/peterroe.png","metadata":{"files":{"readme":"readme.en.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":"2021-10-11T06:30:02.000Z","updated_at":"2023-02-06T02:52:24.000Z","dependencies_parsed_at":"2023-01-18T12:00:14.444Z","dependency_job_id":null,"html_url":"https://github.com/peterroe/use-vue-component","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/peterroe/use-vue-component","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterroe%2Fuse-vue-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterroe%2Fuse-vue-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterroe%2Fuse-vue-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterroe%2Fuse-vue-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peterroe","download_url":"https://codeload.github.com/peterroe/use-vue-component/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterroe%2Fuse-vue-component/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263699784,"owners_count":23497963,"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","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":["docusaurus","plugin","vue"],"created_at":"2025-07-05T07:11:24.212Z","updated_at":"2025-07-05T07:11:28.736Z","avatar_url":"https://github.com/peterroe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![asdfdsf](https://img.shields.io/badge/docusaurus-\u003e=2.0.0--beta.6-success)\n![asdfdsf](https://img.shields.io/badge/Vue-2.6.14-brightgreen)\n\n🧐 [Docusaurus](https://www.docusaurus.cn/docs/) is a **static-site generator**. It builds a single-page application with a fast client-side navigation, leveraging the full power of **React** to make your site interactive. It provides out-of-the-box **documentation features**, but can be used to create **any kind of site** (personal website, product, blog, marketing landing pages, etc).\n\nIn terms of components, docusaurus only supports native rendering **react components**\n\n**This plugin will help you render Vue components you write in docusaurus**\n\n# ⚡install\n\nTwo **NPM packages** need to be installed:\n\n```shell\nyarn add docusaurus-plugin-usevue use-vue-component\n```\n\nAnother plugin address:\n\n[https://github.com/peterroe/docusaurus-plugin-usevue](https://github.com/peterroe/docusaurus-plugin-usevue)\n\n# Import\n\nIn the **docusaurus.config.js** file, add the following configuration:\n\n```js\nmodule.exports = {\n  // ...\n    plugins: [\n        //...\n        'docusaurus-plugin-usevue'\n    ],\n};\n```\n\n# Usage\n\nFor example, there are the following scenarios:\n\n**directory structure:**\n\n```shell\n+-- docs\n|   +-- test.vue\n|   +-- intro.mdx\n```\n\n**test.vue** content：\n\n```vue\n\u003ctemplate\u003e\n    \u003cdiv class=\"red\"\u003e\n        hello world, this is {{name}}\n    \u003c/div\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nexport default {\n    data() {\n        return {\n            name: 'peter'\n        }\n    }\n}\n\u003c/script\u003e\n\n\u003cstyle\u003e\n    .red {\n        color: red\n    }\n\u003c/style\u003e\n```\n\n**intro.mdx** content:\n\n```js\n---\nsidebar_position: 1\n---\n\n## Getting Started\n\nimport {uvc} from 'use-vue-component'  //Import conversion package\nimport test from './text.vue'  //Import Vue components\n\nexport const HelloWorld = uvc(test)  //transform\n\n\u003cHelloWorld/\u003e\n```\n\n# Render results\n\n![df](https://img-blog.csdnimg.cn/a08bd8b839f44074a3f8b60da8af6e59.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterroe%2Fuse-vue-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterroe%2Fuse-vue-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterroe%2Fuse-vue-component/lists"}