{"id":22407816,"url":"https://github.com/openhacking/vuepress-plugin-qrcode","last_synced_at":"2025-07-31T19:31:54.538Z","repository":{"id":57407657,"uuid":"304345960","full_name":"openHacking/vuepress-plugin-qrcode","owner":"openHacking","description":"vuepress plugin qrcode","archived":false,"fork":false,"pushed_at":"2021-05-11T05:01:59.000Z","size":1097,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-05T07:02:45.529Z","etag":null,"topics":["qrcode","qrcode-plugin","vuejs","vuepress","vuepress-plugin","vuepress-plugin-qrcode","vuepress-qrcode","vuepress-site"],"latest_commit_sha":null,"homepage":"https://lwebapp.com/","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openHacking.png","metadata":{"files":{"readme":"README-zh.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-15T14:07:02.000Z","updated_at":"2023-07-17T08:51:59.000Z","dependencies_parsed_at":"2022-09-26T17:10:21.215Z","dependency_job_id":null,"html_url":"https://github.com/openHacking/vuepress-plugin-qrcode","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openHacking%2Fvuepress-plugin-qrcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openHacking%2Fvuepress-plugin-qrcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openHacking%2Fvuepress-plugin-qrcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openHacking%2Fvuepress-plugin-qrcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openHacking","download_url":"https://codeload.github.com/openHacking/vuepress-plugin-qrcode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228283727,"owners_count":17896267,"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":["qrcode","qrcode-plugin","vuejs","vuepress","vuepress-plugin","vuepress-plugin-qrcode","vuepress-qrcode","vuepress-site"],"created_at":"2024-12-05T11:15:30.002Z","updated_at":"2024-12-05T11:15:30.840Z","avatar_url":"https://github.com/openHacking.png","language":"Vue","readme":"\u003cdiv align=\"center\"\u003e\n\nVuepress Plugin Qrcode\n\n![npm download](https://img.shields.io/npm/dt/vuepress-plugin-qrcode)\n![GitHub package.json version](https://img.shields.io/github/package-json/v/openHacking/vuepress-plugin-qrcode?style=flat-square)\n[![GitHub license](https://img.shields.io/github/license/openHacking/vuepress-plugin-qrcode?style=flat-square)](https://github.com/openHacking/vuepress-plugin-qrcode)\n\u003c/div\u003e\n\n简体中文 | [English](./README.md)\n\n## 介绍\n\nVuepress Plugin Qrcode是一个展示当前网址二维码供移动设备扫描的Vuepress插件\n\n⭐求个小星星😆\n\n## 文档\n\n- [官方Demo](https://openhacking.github.io/vuepress-template/zh/)\n- [社区案例](https://dushusir.github.io/blog/)\n\n![Demo](./assets/vuepress-plugin-qrcode-demo.png)\n\n## 安装\n\n```sh\nyarn add -D vuepress-plugin-qrcode\n# OR npm install -D vuepress-plugin-qrcode\n```\n\n## 使用\n\n- 案例一：不加配置直接使用\n```js\n// .vuepress/config.js\nmodule.exports = {\n  plugins: ['qrcode']\n}\n```\n- 案例二：设置可选配置，显示的文本和二维码大小\n```js\n// .vuepress/config.js\nmodule.exports = {\n  plugins: [\n    ['qrcode',{\n        labelText:'Mobile Read', //显示的文本\n        size:'small' // 二维码大小\n    }]\n  ]\n}\n```\n- 案例三：多语言配置\n```js\n// .vuepress/config.js\nmodule.exports = {\n  plugins: [\n    ['qrcode',{\n        // \"/\"和\"/zh/\"对应locales设置的路径\n        labelText: {\n          \"/\": \"QRCode\", \n          \"/zh/\": \"二维码\",\n        },\n        size:'small' // 二维码大小\n    }]\n  ]\n}\n```\n- 案例四：地址添加参数，标记来自二维码\n```js\n// .vuepress/config.js\nmodule.exports = {\n  plugins: [\n    ['qrcode',{\n        channel:true, //添加标记\n    }]\n  ]\n}\n```\n\n## 配置(可选)\n\n### labelText\n- 类型: `string ｜ object`\n- 默认值: `Mobile Read`   \n点击按钮弹出二维码，按钮的文字。\n\n  + 可以直接`labelText`为一个字符串，比如：\n  ```js\n  labelText: '二维码'\n  ```\n\n  + 或者根据站点多语言配置不同的显示，比如：\n  ```js\n  labelText: {\n    \"/\": \"QRCode\", \n    \"/zh/\": \"二维码\",\n  }\n  ```\n\n  \u003e 参考 [vuepress多语言支持](https://vuepress.vuejs.org/zh/guide/i18n.html#%E5%A4%9A%E8%AF%AD%E8%A8%80%E6%94%AF%E6%8C%81)\n\n### size\n- 类型: `string | number`\n- 默认值: `small`    \n设置二维码大小\n    + 可以为一个字符串，可能的值有：\n      - `small`：代表100px * 100px\n      - `medium`：代表150px * 150px\n      - `big`：代表200px * 200px\n\n      比如：\n      ```js\n      size:'big'\n      ```\n    \n    + 或者设定你认为合适的具体数值，推荐的值有：\n      - `80`：代表80px * 80px\n      - `120`：代表120px * 120px\n\n      比如：\n      ```js\n      size: 120\n      ```\n\n### channel\n- 类型: `boolean`\n- 默认值: `false`    \n是否在二维码地址尾部添加参数，用于标记访问来自二维码，便于统计手机扫描的访问效果，比如：\n  ```js\n  channel:true\n  ```\n\n## 赞助\n\n如果你觉得这个项目对你有用或者有所启发，可以请作者喝杯果汁：\n| 微信捐赠  | 支付宝捐赠\n|---|---|\n| \u003cimg src=\"./assets/wechat.jpg\" width=\"140\" /\u003e| \u003cimg src=\"./assets/alipay.jpg\" width=\"140\" /\u003e\n\n并联系作者加到赞助者列表： alexliu518@gmail.com\n\n## 赞助者列表\n\n- [Dushusir](https://dushusir.github.io)\n\n## 资源\n\n- [vuepress](https://vuepress.vuejs.org/)\n- [vuepress plugins](https://github.com/vuepress/awesome-vuepress#plugins)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenhacking%2Fvuepress-plugin-qrcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenhacking%2Fvuepress-plugin-qrcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenhacking%2Fvuepress-plugin-qrcode/lists"}