All Projects → DomeSy → react-mobile

DomeSy / react-mobile

Licence: other
从0构建 react 移动端框架,包含 分模块打包,自动转为rem,强大的路由功能,并配置dva,and-mobile等优质组件(项目会逐渐迭代~)

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
Less
1899 projects
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to react-mobile

React-Whole-barrels
webapck + react + react-router +dva + es6 + less + antd 实现的脚手架 👌👌
Stars: ✭ 23 (-23.33%)
Mutual labels:  less, dva
Ant-Design-Pro-V5
Ant Design Pro V5 详细配置,包括分模块打包,ahooks的使用,L7 地图组件的封装,合理的初始化数据,更有动态表单、动态表格、OSS图片上传等优秀组件(项目会逐渐迭代)~
Stars: ✭ 28 (-6.67%)
Mutual labels:  dva, ahooks
toutiao
模仿今日头条,实现 APP 端,Server 端, Web 管理端
Stars: ✭ 17 (-43.33%)
Mutual labels:  dva, ant-mobile
dva-typescript-antd-starter-kit
A admin dashboard application demo based on antd by typescript and dva
Stars: ✭ 61 (+103.33%)
Mutual labels:  less, dva
dva-graphql-lokka-user-dashboard
A Study Project Related to Dva.js, GraphQL, Graph.cool, Lokka
Stars: ✭ 20 (-33.33%)
Mutual labels:  dva
umi-dva-antd-mobile-starter
Get started with Umi3.js and Ant Design Mobile.
Stars: ✭ 21 (-30%)
Mutual labels:  dva
vue2-element
基于vue2 + vue-router2 + element-ui + vuex2 + fetch + webpack2 企业级后台管理系统最佳实践
Stars: ✭ 115 (+283.33%)
Mutual labels:  less
bootstrap-print
To manage print media for Twitter Bootstrap v3.
Stars: ✭ 60 (+100%)
Mutual labels:  less
jess
If you like CSS, Less, Sass, and/or CSS modules, you're gonna want to star this repo.
Stars: ✭ 26 (-13.33%)
Mutual labels:  less
react-antd
基于react + redux + immutable + less + ES6/7 + webpack2.0 + fetch + react-router + antd实现的SPA后台管理系统模板
Stars: ✭ 320 (+966.67%)
Mutual labels:  less
vue-cli4-webpack-template
基于vue-cli4+webpack 封装,便于下次新项目快速构建一个完备的模板项目(包含架手架引入、过滤器封装、ajax封装、路由引入封装、代理配置调试、less预编译配置引入、less主题切换、语言国际化、网页加载进度条)
Stars: ✭ 14 (-53.33%)
Mutual labels:  less
project-3-crm
⭐crm 客户关系管理系统模板⭐一个不错的后台管理种子项目,拥有自由设置角色自由分配权限🔑的权限管理功能,三员管理多员管理均可,前端antd vue admin后端spring-boot-api-seedling 拥有完善的功能。文档包含需求文档,设计文档和测试文档等。同时配置了travis,拥有集成测试和自动构建的功能。
Stars: ✭ 128 (+326.67%)
Mutual labels:  less
pokedex-nextjs
Get to know the different render methods that the Next.js framework provides by exploring Pokemons
Stars: ✭ 39 (+30%)
Mutual labels:  less
mei-tools-atom
Package for the Atom text editor that provides on-the-fly music notation rendering for MEI with Verovio
Stars: ✭ 17 (-43.33%)
Mutual labels:  less
multi-brand-colors
Multi Brand Colors with support for CSS/CSS-Vars/SCSS/SASS/Stylus/LESS/JSON
Stars: ✭ 26 (-13.33%)
Mutual labels:  less
nextjs-antd-dva-template
最优的nextjs antd dva 服务端解决方案
Stars: ✭ 15 (-50%)
Mutual labels:  dva
tdesign-vue-next
A Vue3.x UI components lib for TDesign.
Stars: ✭ 799 (+2563.33%)
Mutual labels:  less
sonar-css-plugin
SonarQube CSS / SCSS / Less Analyzer
Stars: ✭ 46 (+53.33%)
Mutual labels:  less
vscode-powertools
A swiss army knife with lots of tools, extensions and (scriptable) enhancements for Visual Studio Code.
Stars: ✭ 44 (+46.67%)
Mutual labels:  less
vscode-tree-view
VSCode extension that probvides mail symbol overview of the currently opened file
Stars: ✭ 26 (-13.33%)
Mutual labels:  less

React-mobile

移动端React框架,使用react + dva + react-keeper + ant design mobile + ahooks + less 打造移动端框架,本框架主要是记录日常的问题,组件

线上地址 react-mobile-Domesy 语雀地址 React 移动端 入门实战

前言

本框架适用于移动端项目,项目中有过多的使用案例,如dva的使用,dva配置请求的封装,跳转,路由等皆有案例,另外提供antd-mobile等框架的一些组件封装,帮助开发更加简单。

另外有通用方法,高阶组件的封装及使用,让移动端项目一键式开发

cli 安装

$ npm install domesy -g

// 在命令行中使用 domesy 命令即可

如果本项目对你有帮助,请不要吝啬你的star

目录结构

  |-- public                                
  |-- src                                   # 开发目录
  |   |-- components                        # 业务组件
  |   |-- images                            # 存储图片 
  |   |-- mock                              # 数据模拟
  |   |-- models                            # dva模块
  |   |-- pages                             # 页面模板
  |   |   |-- _404页面                       # 404页面
  |   |   |-- commonPages                   # 公共页面模块
  |   |   |-- Home.jsx                      # 公共页面配置模块(不可删除,可放全局小模块)
  |   |-- router                            # 路由文件
  |   |-- styles                            # 全局css文件
  |   |   |-- common.css                    # 全局css颜色样式
  |   |   |-- theme.jsx                     # 配置less全局样式
  |   |-- utils                             # 配置模块
  |   |   |-- Jump                          # 跳转模块
  |   |   |-- Method                        # 全局配置
  |   |   |-- dva.js                        # dva配置
  |   |   |-- config.js                     # 配置模块
  |-- .gitignore                            # git忽略文件
  |-- package.js                            # 配置文件
  |-- config-overrides.js                   # 项目配置

项目配置

  • react-app-rewired,customize-cra :react-app-rewired的作用就是在不eject的情况下,覆盖create-react-app的配置形成config-overrides.js
  • babel-plugin-import 是一个用于按需加载组件代码和样式的 babel 插件
  • antd-mobile:移动端组件库
  • antd-mobile-icons: icon 库
  • rc-form: 配合antd-mobile使用表单
  • compression-webpack-plugin: 压缩js为gzip
  • less less-loader 配置less
  • clear: 清屏
  • chalk: 装饰作用,使之终端上的输出加上颜色
  • figlet: 作用是将字母转化为图片,使之更加醒目
  • postcss-px2rem-exclude:px转化为rem(页面以375为标准)
  • lib-flexible:移动端适配问题
  • @babel/plugin-proposal-decorators: 装饰器语法
  • webpack-bundle-analyzer: 配置打包分析
  • react-router-dom: 路由
  • react-keeper: 更适用于移动端,原因是具备缓存页面的功能,类似于具备Vue的keep-alive的功能
  • react-redux: react专门封装redux的库
  • react-loadable: 路由懒加载
  • dva-model-persisit: 数据持久化
  • dva-core、dva-loading : dva数据流
  • cross-env: 配置分模块打包
  • axios: 请求
  • ahooks: hooks 集中方法
  • qs: 序列化成URL的形式
  • mockjs: 模拟数据
  • copy-to-clipboard: 复制
  • react-photo-view: 图片放大缩小等操作
  • react-draggable-tags: 组件拖拽,可适用于移动端排序
  • js-md5: md5加密
  • jsencrypt: RSA加密解密
  • crypto-js: DES加密,AES加密解密
  • qrcode.react: 生成二维码

项目功能

  • antd-mobile组件库
  • less(配置全局less文件)
  • 别名
  • 装饰器
  • 页面大小,开发模式下,单位px,打包模式下rem
  • 模拟数据开发列表
  • redux-logger:开发模式下存在,打包模式下删除looger
  • redux-persist:数据持久化(默认以session存储)
  • 实现路由懒加载
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].