Coder Social home page Coder Social logo

d3george / slash-admin Goto Github PK

View Code? Open in Web Editor NEW
1.0K 10.0 130.0 61.23 MB

A modern react admin. It is based on react 18, vite and TypeScript. It's fast !

Home Page: https://admin.slashspaces.com/

License: MIT License

JavaScript 6.66% Shell 0.03% HTML 0.09% TypeScript 91.54% CSS 1.54% Dockerfile 0.14%
admin-dashboard antd react react-query react-router-v6 tailwindcss ts vite zustand framer-motion

slash-admin's Introduction

About me

  • 💼 Remote TS Fullstack Engineer.
  • ❤️ I love writing TypeScript, and building fun experiments on type-level
  • 🌱 Stay Hungry, Stay Foolish.

JavaScript TypeScript Node.js Vue React NestJs Vite

d3george's github stats

Top Repositories



slash-admin's People

Contributors

aifuxi avatar chenyuxi2002 avatar d3george avatar fliu2476 avatar stitchlau avatar xinmans 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

slash-admin's Issues

添加按钮权限

目前我看权限是管控到路由,是否可以将颗粒度细化到组件,例如对页面中增删改查之类的按钮组件进行权限控制。实现方式可以动态的对组件进行权限设置(也可以取消权限设置),然后在角色管理里进行分配

icon

左侧菜单栏的相同风格的图标我需要去哪里获取

这种形式的路由 /article/:articleId 支持有些问题

src/router/hooks/use-match-route-meta.tsx

const currentRouteMeta = flattenedRoutes.find(
      (item) => item.key === lastRoute?.pathname || `${item.key}/` === lastRoute?.pathname,
    );
    if (currentRouteMeta) {
      if (!currentRouteMeta.hideTab) {
        currentRouteMeta.outlet = children;
        setMatchRouteMeta(currentRouteMeta);
      }
    } else {
      push(HOMEPAGE);
    }

lastRoute?.pathname => /article/123
key: '/article/:articleId' !== '/article/123'

导致这种形式的路由会一直跳HOMEPAGE

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.