{"id":47251471,"url":"https://github.com/sankeyangshu/lemon-admin-react","last_synced_at":"2026-03-28T20:00:45.229Z","repository":{"id":154906441,"uuid":"554796134","full_name":"sankeyangshu/lemon-admin-react","owner":"sankeyangshu","description":"An admin system template based on the React ecosystem 🎉 一个基于 React 生态系统的后台管理系统应用模板。","archived":false,"fork":false,"pushed_at":"2026-03-18T02:08:00.000Z","size":3021,"stargazers_count":12,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-18T18:36:00.350Z","etag":null,"topics":["admin-template","dark-mode","i18n-react","i18next","react","tailwindcss","tanstack-query","tanstack-router","typescript","vite","zustand"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/sankeyangshu.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-10-20T12:11:17.000Z","updated_at":"2026-03-18T02:08:04.000Z","dependencies_parsed_at":"2026-03-11T16:00:04.131Z","dependency_job_id":null,"html_url":"https://github.com/sankeyangshu/lemon-admin-react","commit_stats":null,"previous_names":["sankeyangshu/galaxy-admin-react","sankeyangshu/react-template-admin","sankeyangshu/lemon-admin-react"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/sankeyangshu/lemon-admin-react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sankeyangshu%2Flemon-admin-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sankeyangshu%2Flemon-admin-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sankeyangshu%2Flemon-admin-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sankeyangshu%2Flemon-admin-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sankeyangshu","download_url":"https://codeload.github.com/sankeyangshu/lemon-admin-react/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sankeyangshu%2Flemon-admin-react/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31120886,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-28T17:50:59.904Z","status":"ssl_error","status_checked_at":"2026-03-28T17:50:59.435Z","response_time":79,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["admin-template","dark-mode","i18n-react","i18next","react","tailwindcss","tanstack-query","tanstack-router","typescript","vite","zustand"],"created_at":"2026-03-14T15:00:25.478Z","updated_at":"2026-03-28T20:00:45.221Z","avatar_url":"https://github.com/sankeyangshu.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  react-template-admin\n\u003c/h1\u003e\n\u003ch4 align=\"center\"\u003e使用 React + TS 构建的后台管理系统\u003c/h4\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/license/sankeyangshu/react-template-admin\" alt=\"license\" /\u003e\n  \u003cimg src=\"https://img.shields.io/github/package-json/v/sankeyangshu/react-template-admin\" alt=\"version\" /\u003e\n  \u003cimg src=\"https://img.shields.io/github/languages/top/sankeyangshu/react-template-admin\" alt=\"languages\" /\u003e\n\u003c/p\u003e\n\n---\n\n## 🧑‍💻 项目状态\n\n项目重构中，具体计划请查询[清单](https://github.com/sankeyangshu/lemon-admin-react/issues/1)。\n\n## 简介\n\n🚀🚀🚀 **react-template-admin** 使用了最新的`React18`、`React-Router v6`、`React-Hooks`、`Vite4`、`Zustand`、`Ant Design v5`、`Typescript`等主流技术开发，集成 `Dark Mode`(暗黑)模式，并且持久化保存，集成了代码规范检查工具`Eslint`、`Prettier`、`Stylelint`。另外本项目还封装了一些常用组件、Hooks、指令、动态路由、按钮级别权限控制等功能。你可以在此之上直接开发你的业务代码！希望你能喜欢。👋👋👋\n\n**注 1：如果对您有帮助，您可以点右上角 \"Star\" 支持一下 谢谢！**\n\n**注 2：由于本人工作较忙，所以项目更新频率较慢，但是本项目会长期维护，有问题可以提 issue， 同时也欢迎大家来共建此项目，包括但不限于：bug 修复、代码优化、功能开发等等**\n\n## ✨ 项目功能\n\n- 🚀 采用最新技术栈开发：React18、React-Router v6、React-Hooks、TypeScript、Vite4\n- 🚀 采用 Vite4 作为项目开发、打包工具（配置 Gzip 打包、TSX 语法、跨域代理…）\n- 🚀 整个项目集成了 TypeScript\n- 🚀 使用 Zustand 做状态管理，轻量、简单、易用\n- 🚀 使用 TypeScript 对 Axios 整个二次封装（请求拦截、取消、常用请求封装…）\n- 🚀 支持 Ant Design 组件大小切换、暗黑模式、i18n 国际化\n- 🚀 使用 React-Router 进行路由权限拦截、页面按钮权限配置、路由懒加载\n- 🚀 常用自定义指令开发（权限、复制、水印、拖拽、节流、防抖、长按…）\n- 🚀 使用 Prettier 统一格式化代码，集成 Eslint、Stylelint 代码校验规范（项目规范配置）\n- 🚀 使用 husky、lint-staged、commitlint 规范提交信息（项目规范配置）\n\n## 基础知识\n\n提前了解和学习这些知识会对使用本项目有很大的帮助。\n\n- [React](https://react.dev/) - 熟悉 `React` 基础语法\n- [React-Router](https://reactrouter.com/en/main) - 熟悉 `React-Router`基本使用\n- [Zustand](https://docs.pmnd.rs/zustand/getting-started/introduction) - 熟悉 `Zustand` 基本使用\n- [Vite](https://cn.vitejs.dev/) - 熟悉 `Vite` 特性\n- [TypeScript](https://www.typescriptlang.org/) - 熟悉 `TypeScript` 基本语法\n- [Ant Design](https://ant.design/index-cn) - 熟悉 `Ant Design` 组件库基本使用\n- [Es6+](http://es6.ruanyifeng.com/) - 熟悉 `ES6` 基本语法\n\n## 配套资源\n\n- [nest-template-cms](https://github.com/sankeyangshu/nest-template-cms) - 使用 Nest + TS 构建的 CMS 开发框架\n- [vue-template-admin](https://github.com/sankeyangshu/vue-template-admin) - 使用 Vue3 + TS 构建的后台管理系统\n\n## 环境准备\n\n本地环境需要安装 [pnpm7.x](https://www.pnpm.cn/)、[Node.js](http://nodejs.org/) 和 [Git](https://git-scm.com/)\n\n- 必须使用[pnpm7.x](https://www.pnpm.cn/)，否则依赖可能安装不上。\n- [Node.js](http://nodejs.org/) 版本要求`12.x`以上，这里推荐 `16.x` 及以上。\n\n## Vscode 配套插件\n\n如果你使用的 IDE 是[vscode](https://code.visualstudio.com/)(推荐)的话，可以安装以下工具来提高开发效率及代码格式化\n\n- [ES7+ React/Redux/React-Native snippets](https://marketplace.visualstudio.com/items?itemName=dsznajder.es7-react-js-snippets) - react 开发必备\n- [CSS Modules](https://marketplace.visualstudio.com/items?itemName=clinyong.vscode-css-modules) - css 模块化支持\n- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) - 脚本代码检查\n- [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) - 代码格式化\n- [Stylelint](https://marketplace.visualstudio.com/items?itemName=stylelint.vscode-stylelint) - css 格式化\n\n## 安装和使用\n\n### 🚀 使用脚手架\n\n[Galaxy-CLI](https://github.com/sankeyangshu/galaxy-cli) 是一个用于快速生成各种**前后端项目模版**的脚手架。\n\n```bash\n# 选择合适的包管理工具安装脚手架\nnpm i -g galaxy-cli-core\n\n# yarn\nyarn global add galaxy-cli-core\n\n# 推荐使用pnpm进行安装\npnpm i -g galaxy-cli-core\n\n# 创建项目,按照脚手架提示，选择react-template-admin模板\ngalaxy init \u003cprojectName\u003e\n\n# 进入项目目录\ncd \u003cprojectName\u003e\n\n# 安装依赖 - 推荐使用pnpm\npnpm install\n\n# 启动服务\npnpm dev\n\n# 打包发布\npnpm build\n```\n\n### 克隆使用\n\n```bash\n# 克隆项目\ngit clone https://github.com/sankeyangshu/react-template-admin.git\n\n# 进入项目目录\ncd react-template-admin\n\n# 安装依赖 - 推荐使用pnpm\npnpm install\n\n# 启动服务\npnpm dev\n\n# 打包发布\npnpm build\n```\n\n## 如何贡献\n\n你可以[提一个 issue](https://github.com/sankeyangshu/react-template-admin/issues) 或者提交一个 Pull Request。\n\n**Pull Request:**\n\n1. Fork 代码\n2. 创建自己的分支: `git checkout -b feat/xxxx`\n3. 提交你的修改: `git commit -am 'feat(function): add xxxxx'`\n4. 推送您的分支: `git push origin feat/xxxx`\n5. 提交 `pull request`\n\n## Git 贡献提交规范\n\n- `feat`: 新增功能\n- `fix`: 修复 bug\n- `docs`: 文档变更\n- `style`: 代码格式（不影响功能，例如空格、分号等格式修正）\n- `refactor`: 代码重构（不包括 bug 修复、功能新增）\n- `perf`: 性能优化\n- `test`: 添加、修改测试用例\n- `build`: 构建流程、外部依赖变更（如升级 npm 包、修改 webpack 配置等）\n- `ci`: 修改 CI 配置、脚本\n- `chore`: 对构建过程或辅助工具和库的更改（不影响源文件、测试用例）\n- `revert`: 回滚 commit\n\n## 浏览器支持\n\n- 本地开发推荐使用 Chrome 最新版浏览器 [Download](https://www.google.com/intl/zh-CN/chrome/)。\n- 生产环境支持现代浏览器，不在支持 IE 浏览器，更多浏览器可以查看 [Can I Use Es Module](https://caniuse.com/?search=ESModule)。\n\n| [\u003cimg src=\"https://i.imgtg.com/2023/04/11/8z7ot.png\" alt=\" IE\" width=\"24px\" height=\"24px\" /\u003e](http://godban.github.io/browsers-support-badges/)\u003c/br\u003eIE | [\u003cimg src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png\" alt=\" Edge\" width=\"24px\" height=\"24px\" /\u003e](http://godban.github.io/browsers-support-badges/)\u003c/br\u003eEdge | [\u003cimg src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png\" alt=\"Firefox\" width=\"24px\" height=\"24px\" /\u003e](http://godban.github.io/browsers-support-badges/)\u003c/br\u003eFirefox | [\u003cimg src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png\" alt=\"Chrome\" width=\"24px\" height=\"24px\" /\u003e](http://godban.github.io/browsers-support-badges/)\u003c/br\u003eChrome | [\u003cimg src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png\" alt=\"Safari\" width=\"24px\" height=\"24px\" /\u003e](http://godban.github.io/browsers-support-badges/)\u003c/br\u003eSafari |\n| :----------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |\n|                                                                      not support                                                                       |                                                                                            last 2 versions                                                                                             |                                                                                                  last 2 versions                                                                                                  |                                                                                                last 2 versions                                                                                                |                                                                                                last 2 versions                                                                                                |\n\n## 许可证\n\n[MIT License](https://github.com/sankeyangshu/react-template-admin/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsankeyangshu%2Flemon-admin-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsankeyangshu%2Flemon-admin-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsankeyangshu%2Flemon-admin-react/lists"}