Giter Site home page Giter Site logo

halseyspicy / hooks-admin Goto Github PK

View Code? Open in Web Editor NEW
1.6K 12.0 354.0 5.24 MB

🚀🚀🚀 Hooks Admin,基于 React18、React-Router V6、React-Hooks、Redux、TypeScript、Vite2、Ant-Design 开源的一套后台管理框架。

Home Page: https://pro.spicyboy.cn

License: MIT License

HTML 0.73% TypeScript 84.86% Shell 0.06% JavaScript 4.64% Less 9.71%
axios react react-hooks react-redux react-router react-router-dom redux redux-persist redux-promise redux-saga

hooks-admin's Introduction

Hi 👋 , I'm the author of Geeker-Admin, Hooks-Admin open source projects.

javascript logo typescript logo vuejs logo react logo

stats graph   languages graph

hooks-admin's People

Contributors

ahchi529 avatar halseyspicy avatar limuen avatar yihuaxiang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hooks-admin's Issues

cancelToken 在0.22.0 开始已经废弃,建议更改为AbortController的方式

如题,并且路由跳转之前默认取消所有的请求,并不十分合理,比如menuList级别的request ,如果被提前终止会导致bug
path: src/routers/utils/authRouter.tsx
// * 在跳转路由之前,清除所有的请求 axiosCanceler.removeAllPending();

建议addPending时添加header判断

// axiosCanceler.addPending(config) // 修改为 config.headers!.notAllowCancel || axiosCanceler.addPending(config);

催更

哈哈,大佬维护好了没,等的花儿要谢了

建议

image
image
是否可以考虑把action和getter单独做成hook,就不用connect这个api了

登录报错

3:38:54 PM [vite] http proxy error: 15:38:54
Error: self signed certificate in certificate chain
at TLSSocket.onConnectSecure (node:_tls_wrap:1532:34)
at TLSSocket.emit (node:events:527:28)
at TLSSocket._finishInit (node:_tls_wrap:946:8)
at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:727:12)

为什么我登录会报这个错误?我把npm config set strict-ssl false这样设置了也不可以,求解。

Hooks-Admin 已重构完成,需要请加我微信了解

预览地址:https://pro.spicyboy.cn/#/login

介绍 📖

🚀🚀🚀 Hooks-Admin 一款基于 React18、React-RouterV6、React-Hooks、zustand、TypeScript、Vite4、Ant-Design5 的后台管理框架。

主要功能 🔨

  • 使用 React18 + TypeScript 开发,整个项目使用高质量 Hooks + TypeScript 代码完成
  • 使用 Vite4 作为开发、打包工具(配置 Gzip | Brotli 压缩打包、PWA 应用、Visualizer 包分析…)
  • 使用 React-Router v6.15 全新路由钩子,项目支持多路由(Hash | History)切换、路由懒加载配置
  • 项目菜单、路由权限使用 动态路由 控制,完全根据后端菜单数据动态生成路由
  • 使用 zustand 作为状态管理工具(多仓库),集成 zustand-persist 持久化工具
  • 使用 Ant-Design 5 组件库开发,将 Design Token 注入到 CSS 变量中,方便配置项目主题
  • 项目支持多主题:主题颜色、暗黑模式、灰色模式、色弱模式、紧凑主题、圆角大小配置
  • 项目支持多布局:横向布局、经典布局(可开启菜单分割功能)、纵向布局、分栏布局配置
  • 项目其它功能:菜单手风琴模式、无限级菜单、多标签页(拖拽)、详情页标签、面包屑导航、页面水印、ECharts 组件封装、SVG 图标组件、数据大屏…
  • 使用 Prettier 统一格式化代码,集成 Eslint、Stylelint 代码校验规范
  • 使用 husky、lint-staged、commitlint、czg、cz-git 规范代码提交信息

【重构】使用 redux-toolkit + antd5 重构 Hooks-Admin

React18、React-Router V6、React-Hooks、Redux-Toolkit、TypeScript、Vite4、Ant-Design5

1、使用 redux-toolkit + antd5 重构 Hooks-Admin
2、使用动态路由重构现在路由逻辑
3、使用 antd5 暗黑模式
4、新增多种主题配置
5、增加表格封装示例

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.