{"id":19151779,"url":"https://github.com/zhs007/webadmin-base","last_synced_at":"2025-10-09T11:31:51.990Z","repository":{"id":94329600,"uuid":"93813033","full_name":"zhs007/webadmin-base","owner":"zhs007","description":"admin with react \u0026 ant","archived":false,"fork":false,"pushed_at":"2017-06-27T06:15:46.000Z","size":6775,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-22T21:13:59.408Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zhs007.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}},"created_at":"2017-06-09T03:01:01.000Z","updated_at":"2017-06-09T03:14:38.000Z","dependencies_parsed_at":"2023-07-28T00:15:16.054Z","dependency_job_id":null,"html_url":"https://github.com/zhs007/webadmin-base","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zhs007/webadmin-base","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhs007%2Fwebadmin-base","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhs007%2Fwebadmin-base/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhs007%2Fwebadmin-base/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhs007%2Fwebadmin-base/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhs007","download_url":"https://codeload.github.com/zhs007/webadmin-base/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhs007%2Fwebadmin-base/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001300,"owners_count":26083058,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-09T08:15:41.142Z","updated_at":"2025-10-09T11:31:51.954Z","avatar_url":"https://github.com/zhs007.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WebAdmin-base\n\n[![React Native](https://img.shields.io/badge/react-^15.4.4-brightgreen.svg?style=flat-square)](https://github.com/facebook/react)\n[![Ant Design](https://img.shields.io/badge/ant--design-^2.10.0-yellowgreen.svg?style=flat-square)](https://github.com/ant-design/ant-design)\n[![dva](https://img.shields.io/badge/dva-^1.2.0-orange.svg?style=flat-square)](https://github.com/dvajs/dva)\n\n[![GitHub issues](https://img.shields.io/github/issues/zuiidea/antd-admin.svg?style=flat-square)](https://github.com/zhs007/webadmin-base)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://github.com/zhs007/webadmin-base/pulls)\n[![MIT](https://img.shields.io/dub/l/vibe-d.svg?style=flat-square)](http://opensource.org/licenses/MIT)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com)\n\n## 特性\n\n-   基于[react](https://github.com/facebook/react)，[ant-design](https://github.com/ant-design/ant-design)，[dva](https://github.com/dvajs/dva)，[Mock](https://github.com/nuysoft/Mock) 企业级后台管理系统最佳实践。\n-   基于Antd UI 设计语言，提供后台管理系统常见使用场景。\n-   基于[dva](https://github.com/dvajs/dva)动态加载 Model 和路由，按需加载。\n-   使用[roadhog](https://github.com/sorrycc/roadhog)本地调试和构建，其中Mock功能实现脱离后端独立开发。\n-   浅度响应式设计。\n-   基于ant.design脚手架项目。\n-   配合serv项目，就是一套完整的后台框架。\n\n## 更新日志\n\n### 4.2.2\n\n`2017-06-13`\n\n-     增加注册功能。\n\n## 开发构建\n\n### 目录结构\n\n```bash\n├── /dist/           # 项目输出目录\n├── /src/            # 项目源码目录\n│ ├── /components/   # UI组件及UI相关方法\n│ │ ├── skin.less    # 全局样式\n│ │ └── vars.less    # 全局样式变量\n│ ├── /routes/       # 路由组件\n│ │ └── app.js       # 路由入口\n│ ├── /models/       # 数据模型\n│ ├── /services/     # 数据接口\n│ ├── /themes/       # 项目样式\n│ ├── /mock/         # 数据mock\n│ ├── /utils/        # 工具函数\n│ │ ├── config.js    # 项目常规配置\n│ │ ├── menu.js      # 菜单及面包屑配置\n│ │ ├── config.js    # 项目常规配置\n│ │ ├── request.js   # 异步请求函数\n│ │ └── theme.js     # 项目需要在js中使用到样式变量\n│ ├── route.js       # 路由配置\n│ ├── index.js       # 入口文件\n│ └── index.html     \n├── package.json     # 项目信息\n├── .eslintrc        # Eslint配置\n└── .roadhogrc.js    # roadhog配置\n```\n\n文件夹命名说明:\n\n-   components：组件（方法）为单位以文件夹保存，文件夹名组件首字母大写（如`DataTable`），方法首字母小写（如`layer`）,文件夹内主文件与文件夹同名，多文件以`index.js`导出对象（如`./src/components/Layout`）。\n-   routes：页面为单位以文件夹保存，文件夹名首字母小写（特殊除外，如`UIElement`）,文件夹内主文件以`index.js`导出，多文件时可建立`components`文件夹（如`./src/routes/dashboard`），如果有子路由，依次按照路由层次建立文件夹（如`./src/routes/UIElement`）。\n\n### 快速开始\n\n## 问答\n\n-   如何页面跳转？\n\n```\nwindow.location = `${location.origin}/reg`\n```\n\n-   如何让页面独立框架（类似login）？ \n\n```\nopenPages: ['/login', '/reg']\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhs007%2Fwebadmin-base","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhs007%2Fwebadmin-base","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhs007%2Fwebadmin-base/lists"}