Coder Social home page Coder Social logo

magiclizi / antd-admin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zuiidea/antd-admin

1.0 2.0 0.0 19.96 MB

A admin dashboard application demo built upon Ant Design and Dva.js

Home Page: http://zuiidea.github.io/antd-admin/

License: MIT License

JavaScript 89.33% CSS 10.47% HTML 0.20%

antd-admin's Introduction

Antd Admin

React Native Ant Design dva

GitHub issues PRs Welcome MIT js-standard-style

演示地址 http://zuiidea.github.io/antd-admin | 备用地址

特性

  • 基于reactant-designdvaMock 企业级后台管理系统最佳实践。
  • 基于Antd UI 设计语言,提供后台管理系统常见使用场景。
  • 基于dva动态加载 Model 和路由,按需加载。
  • 使用roadhog本地调试和构建,其中Mock功能实现脱离后端独立开发。
  • 浅度响应式设计。

更新日志

4.2.1

2017-05-12

  •   新增IconFont扩展方案,本地使用方案。#270 Live
  •   新增常见场景使用loading。 dva-loading

4.2

2017-04-28

  •   修改user相关API使用Restful风格。

  •   增加user页面多条件查询。#266

  •   修复菜单默认高亮。#201

    More Change Log

开发构建

目录结构

├── /dist/           # 项目输出目录
├── /src/            # 项目源码目录
│ ├── /components/   # UI组件及UI相关方法
│ │ ├── skin.less    # 全局样式
│ │ └── vars.less    # 全局样式变量
│ ├── /routes/       # 路由组件
│ │ └── app.js       # 路由入口
│ ├── /models/       # 数据模型
│ ├── /services/     # 数据接口
│ ├── /themes/       # 项目样式
│ ├── /mock/         # 数据mock
│ ├── /utils/        # 工具函数
│ │ ├── config.js    # 项目常规配置
│ │ ├── menu.js      # 菜单及面包屑配置
│ │ ├── config.js    # 项目常规配置
│ │ ├── request.js   # 异步请求函数
│ │ └── theme.js     # 项目需要在js中使用到样式变量
│ ├── route.js       # 路由配置
│ ├── index.js       # 入口文件
│ └── index.html     
├── package.json     # 项目信息
├── .eslintrc        # Eslint配置
└── .roadhogrc.js    # roadhog配置

文件夹命名说明:

  • components:组件(方法)为单位以文件夹保存,文件夹名组件首字母大写(如DataTable),方法首字母小写(如layer),文件夹内主文件与文件夹同名,多文件以index.js导出对象(如./src/components/Layout)。
  • routes:页面为单位以文件夹保存,文件夹名首字母小写(特殊除外,如UIElement),文件夹内主文件以index.js导出,多文件时可建立components文件夹(如./src/routes/dashboard),如果有子路由,依次按照路由层次建立文件夹(如./src/routes/UIElement)。

快速开始

克隆项目文件:

git clone https://github.com/zuiidea/antd-admin.git

进入目录安装依赖:

npm i 或者 yarn install

开发:

npm run dev
打开 http://localhost:8000

构建:

npm run build

将会生成dist目录

代码检测:

npm run lint

项目部署 #269

参考

用户列表:https://github.com/dvajs/dva/tree/master/examples/user-dashboard

dashboard设计稿:https://dribbble.com/shots/3108122-Dashboard-Admin (已征得作者同意)

截屏

web

移动

antd-admin's People

Contributors

0nese7en avatar afc163 avatar catest avatar haoyue0603 avatar paranoidjk avatar pmg1989 avatar xland avatar zhangpenglin avatar zhongjie-chen avatar zlotus avatar zuiidea avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.