Giter Club home page Giter Club logo

react-backstage-template's Introduction

项目介绍

后台管理系统,自带路由权限+侧边栏权限控制

技术栈

React TypeScript Vite Recoil antd axios

目录说明

api

封装的 axios 请求

  1. 集合了重复请求拦截,利用 AbortControllerv0.22.0 新特性
  2. 当请求超时后,增加重复请求次数,利用 _currentRequestMaxResendTimes 来控制,默认值为 3
  3. 全局 loading 控制

common

存放公用资源,recoil 状态、api 请求、样式、ts 类型等等

config

全局配置文件夹

hooks

全局共用 React hook

layout

登录之后的共用布局

pages

页面

plugins

全局插件引入

recoil-keys

recoilkey 值,以枚举形式来防止重复

routes

路由渲染的组件,聚合权限菜单

test-json

测试登录和获取菜单栏的假数据,利用 json-server,启动用json-server -w -d 2000 db.json

utils

工具函数存放

react-backstage-template's People

Contributors

kuangxianfeng avatar

Watchers

 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.