{"id":26062406,"url":"https://github.com/work-design/mp","last_synced_at":"2025-07-11T18:04:08.930Z","repository":{"id":155790782,"uuid":"630303317","full_name":"work-design/mp","owner":"work-design","description":"小程序封装代码。","archived":false,"fork":false,"pushed_at":"2024-10-24T03:44:49.000Z","size":119,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-24T21:00:11.312Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/work-design.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["qinmingyuan"]}},"created_at":"2023-04-20T05:11:55.000Z","updated_at":"2024-10-24T03:44:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"a744fd70-9ea4-438f-abb5-735b6024bbc8","html_url":"https://github.com/work-design/mp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/work-design%2Fmp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/work-design%2Fmp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/work-design%2Fmp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/work-design%2Fmp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/work-design","download_url":"https://codeload.github.com/work-design/mp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242573496,"owners_count":20151707,"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":[],"created_at":"2025-03-08T16:00:11.112Z","updated_at":"2025-03-08T16:00:11.726Z","avatar_url":"https://github.com/work-design.png","language":"JavaScript","funding_links":["https://github.com/sponsors/qinmingyuan"],"categories":[],"sub_categories":[],"readme":"## 快捷文档\n* [project.config.json](https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html)\n\n\n## ext 配置格式\n\n```json\n{\n  \"extAppid\": \"\",\n  \"ext\": {\n    \"host\": \"\",\n    \"auth_host\": \"\",\n    \"path\": \"\"\n  },\n  \"window\": {}\n}\n```\n\n\nwx.onBLEConnectionStateChange(res =\u003e {\nconsole.debug(`${res.deviceId} 状态已改变, 连接状态: ${res.connected}`)\nconst result = wx.getStorageSync('printer')\nif (result.deviceId === res.deviceId \u0026\u0026 !res.connected) {\nObject.assign(result, { connected: false })\nwx.setStorageSync('printer', result)\n}\n})\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwork-design%2Fmp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwork-design%2Fmp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwork-design%2Fmp/lists"}