在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:react to typescript开源软件地址:https://gitee.com/dyb881/react-ts开源软件介绍:已重构到 react-appreact 项目包
开发模式业务上拆分为一级路由,一个页面一个文件夹,注册在 page/config.ts 技术栈
目录│ config-overrides.js react-app-rewired 配置文件│ NORM.md 开发规范文档│ PROJECT.md 项目文档│ README.md 描述文档│ tsconfig.json ts编译配置│ tslint.json ts代码审查配置├─public│ config.js 项目配置└─src ├── App.less 全局样式 ├── App.test.tsx ├── App.tsx 项目初始化 ├── api.ts API请求工具初始化 ├── api_mock.ts API模拟数据注册 ├── react-app-env.d.ts 外部引用类型描述 ├── config.ts 主配置 ├── index.tsx 入口文件 ├── component 组件 │ ├── mobile 移动端组件 │ │ ├── antd antd 组件二次封装 │ │ ├── header 标题栏 │ │ └── tabBar 底部导航 │ ├── pc pc端组件 │ │ └── antd antd 组件二次封装 │ ├── file 文件 │ │ ├── get_file.tsx 获取文件 │ │ └── img 图片组件 - 包含预览功能 │ ├── form 表单工具组件 │ ├── router 批量路由页面注册 │ └── transition/style.less 全局 react-addons-css-transition-group 动画注册 ├── interface 公共接口 ├─page 所有页面 │ │ config.ts 页面配置 │ │ index.tsx 注册及主体页面 │ ├─Folder1 首页1 │ └─Folder2 页面2 ├─store 状态管理 │ index.ts 主状态 │ view.ts 视图状态 │ user.ts 用户状态 │ File1.ts 子状态1 │ File2.ts 子状态2 └── tool 工具函数 ├── city.json 省市县数据 ├── dom.ts dom相关 ├── file.ts 文件相关 ├── function.less less函数 ├── index.ts 常用 ├── mock.ts 模拟数据 ├── reg_exp.ts 正则 ├── request 请求封装 └── string. 字符串相关 安装教程
|
请发表评论