{"id":13654406,"url":"https://github.com/zhengxiaowai/weapp-github","last_synced_at":"2026-01-11T03:33:58.118Z","repository":{"id":144129572,"uuid":"69798568","full_name":"zhengxiaowai/weapp-github","owner":"zhengxiaowai","description":"🚀 微信小程序--github","archived":true,"fork":false,"pushed_at":"2016-10-05T11:34:38.000Z","size":72,"stargazers_count":124,"open_issues_count":1,"forks_count":54,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-11-10T06:32:23.021Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/zhengxiaowai.png","metadata":{"files":{"readme":"README.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-10-02T13:27:35.000Z","updated_at":"2023-10-21T03:18:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"83abb1aa-6885-41f6-9431-f961964cf875","html_url":"https://github.com/zhengxiaowai/weapp-github","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhengxiaowai%2Fweapp-github","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhengxiaowai%2Fweapp-github/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhengxiaowai%2Fweapp-github/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhengxiaowai%2Fweapp-github/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhengxiaowai","download_url":"https://codeload.github.com/zhengxiaowai/weapp-github/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250407706,"owners_count":21425549,"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":"2024-08-02T03:00:31.929Z","updated_at":"2025-04-23T09:33:28.867Z","avatar_url":"https://github.com/zhengxiaowai.png","language":"JavaScript","readme":"# weapp-github\n\n微信小程序的一次简单尝试\n\n主要实现了以下功能：\n- Trending\n- 你 start 过的 repo\n- 个人信息和你自己的 repo\n- 基于 basic 的登录\n\n实现的 Trending 和官方的 Trending 不一样，因为 github 没有开放该接口，这里只是使用搜索功能做的一个在一周内创建同时 start 数量最多项目。\n\n关于登录问题，由于小程序不能跳转外部链接，所以没法做 OAuth2 认证\n\nstarts 做了两分钟缓存\n\n## 一些想说的\n\n此次微信终于放出了小程序这个玩意，总体开发感觉还可以，就是 IDE 时不时崩溃几次。\n\n整体代码写起来的感觉，和 React 差不多，没看过源码，不知道具体是怎么样子的。\n\n在这个代码中，我使用了传统布局和 flex 两种方法，对 flex 支持还是很好了，布局起来也没什么难度。\n\n有原生的 fetch 和 和 Promise 感觉棒棒哒\n\n感觉需要改进的地方：\n\n1. 增加对第三方库的支持，原生的 JS 功能有点弱\n2. 无法跳转外部链接，这个比较麻烦了，说白了只能和微信对接，那就无法替代 H5 了\n3. 文档还可可以的，但是最好要有一个不支持某某东西的列表\n\n好吧，我只是一个后端 Python 工程师，客串一下小程序开发~~\n\n\n\n## 目前还有的问题\n\n1. 小程序的 picker 组件只能筛选 4 个，不知道程序 bug 还是组件本身的 bug bug\n2. 在 starts 页面中使用语言筛选功能，只能对已经加载出来的筛选，同时 loading 也存在\n\n## 截个图看看\n\ngif 图片太大了，就用静态的看吧\n\n这个是 Trending 页面的图\n\n![](http://7xtq0y.com1.z0.glb.clouddn.com/2016-10-04-18%3A49%3A32.jpg)\n\n\n这个是登录界面\n\n![](http://7xtq0y.com1.z0.glb.clouddn.com/2016-10-04-18%3A50%3A35.jpg)\n\n这个是个人信息和 repos 的图，请原谅我把私有的马赛克了\n\n![](http://7xtq0y.com1.z0.glb.clouddn.com/2016-10-04-18%3A52%3A56.jpg)\n\n这个是 starts 页面的图，支持拉下更多\n\n![](http://7xtq0y.com1.z0.glb.clouddn.com/2016-10-04-18%3A54%3A21.jpg)\n\n## LICENSE\n\nMIT\n","funding_links":[],"categories":["Demo","Uncategorized","JavaScript"],"sub_categories":["Uncategorized","数据接口有问题"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhengxiaowai%2Fweapp-github","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhengxiaowai%2Fweapp-github","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhengxiaowai%2Fweapp-github/lists"}