# gsy_github_harmony **Repository Path**: hansj_Android/gsy_github_harmonyg ## Basic Information - **Project Name**: gsy_github_harmony - **Description**: 鸿蒙版的GSYGithub,模仿GSYGithubAppKotlin开源项目,鸿蒙的练手项目 - **Primary Language**: TypeScript - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 5 - **Forks**: 0 - **Created**: 2023-12-11 - **Last Updated**: 2024-04-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # gsy_github_harmony #### 介绍 鸿蒙版的GSYGithub,模仿GSYGithubAppKotlin开源项目,鸿蒙的练手项目 #### 效果图 ![输入图片说明](imgs/splash_small.png)![输入图片说明](imgs/login_small.png)![输入图片说明](imgs/login_auth_small.png) ![输入图片说明](imgs/drawer_small.png)![输入图片说明](imgs/dynamic_small.png)![输入图片说明](imgs/recommend_small.png) ![输入图片说明](imgs/mine_small.png)![输入图片说明](imgs/followers_small.png)![输入图片说明](imgs/repos_small.png) ![输入图片说明](imgs/repos_detail_small.png)![输入图片说明](imgs/common_web_small.png) #### 软件架构 软件架构说明 ![输入图片说明](imgs/架构设计图.jpg) #### 主要技术 - 业务设计模式:使用ViewModel类作为状态变量,天然的实现了MVVM - 状态管理:基本使用了鸿蒙开发指南中的状态装饰器 - 数据管理:首选项保存token,user_name等数据 - 权限管理:使用异步的方式封装权限管理 - 网络请求:使用第三方网络框架HttpClient实现鸿蒙版的OkHttp - 模块间通信:使用eventHub事件总线框架 #### 使用说明 1. 在Config.ets,把CLIENT_ID = "xxxxxx" 和CLIENT_SECRET = "xxxxxx"改成你申请的Github client_id 和 client_secret 2. 现在 Github API 需要使用安全登录(授权登录),那么在上述注册 Github App 的 Authorization callback URL 一栏必须填入 `gsygithubapp://authed` #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)