Giter Site home page Giter Site logo

pmg1989 / dva-admin Goto Github PK

View Code? Open in Web Editor NEW
284.0 284.0 94.0 19.67 MB

dva admin antd dashboard

Home Page: https://pmg1989.github.io

License: MIT License

JavaScript 78.59% CSS 20.58% HTML 0.84%
admin antd axios dashboard dva dva-admin immutablejs mock react redux

dva-admin's People

Contributors

pmg1989 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  avatar  avatar  avatar  avatar  avatar

dva-admin's Issues

react-router4

什么时候可以把路由基于react-router4 更改一版吗?

npm run build:dll 报错

`UrbanDance:dva-admin yueguang$ npm run build:dll

[email protected] build:dll /Users/student/Desktop/GitHub/dva-admin
roadhog buildDll

/Users/student/Desktop/GitHub/dva-admin/node_modules/_fs-extra@3.0.1@fs-extra/lib/mkdirs/mkdirs-sync.js:49
throw err0
^

Error: EACCES: permission denied, mkdir '/Users/student/Desktop/GitHub/dva-admin/node_modules/roadhog-dlls'
at Object.fs.mkdirSync (fs.js:885:18)
at Object.mkdirsSync (/Users/student/Desktop/GitHub/dva-admin/node_modules/_fs-extra@3.0.1@fs-extra/lib/mkdirs/mkdirs-sync.js:31:9)
at Object.emptyDirSync (/Users/student/Desktop/GitHub/dva-admin/node_modules/_fs-extra@3.0.1@fs-extra/lib/empty/index.js:34:18)
at /Users/student/Desktop/GitHub/dva-admin/node_modules/_roadhog@1.4.1@roadhog/lib/buildDll.js:106:25
at /Users/student/Desktop/GitHub/dva-admin/node_modules/_recursive-readdir@2.2.2@recursive-readdir/index.js:44:14
at FSReqWrap.oncomplete (fs.js:135:15)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build:dll: roadhog buildDll
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build:dll script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/student/.npm/_logs/2018-06-14T15_07_27_212Z-debug.log
UrbanDance:dva-admin yueguang$
`

hyphenToHump

Bread.js 中的 hyphenToHump() 这个函数是从哪来的呀?

登录时getAllPathPowers方法的问题

function getAllPathPowers (menuArray, curPowers) {
return menuArray.reduce((dir, item) => {
dir[/${item.key}] = curPowers[item.id]
if (item.children) {
item.children.reduce((cdir, cur) => {
dir[/${cdir}/${cur.key}] = curPowers[cur.id]
return cdir
}, item.key)
getAllPathPowers(item.children, curPowers)
}
return dir
}, {})
}

这个封装的方法应该得不到所有的path

关于Header的router

作者我关注你的文章好久了 ,我想问下,Header部分添加下拉菜单并且路由,怎么做啊,求教,新手一枚

OpenSSL & please trust the rootCA.crt ???

rootCA.key

error

E:\github\Roles>npm start

> @ start E:\github\Roles
> dora --plugins "proxy,webpack,webpack-hmr"

          proxy: load rule from proxy.config.js
(node:9032) DeprecationWarning: 'GLOBAL' is deprecated, use 'global'
          proxy: listened on 8989
temp certs cleared
1/3 build modulesWARNING: can't open config file: C:/OpenSSL/openssl.cnf
Generating RSA private key, 2048 bit long modulus
.............+++
...................................................+++
e is 65537 (0x10001)
WARNING: can't open config file: C:/OpenSSL/openssl.cnf
Unable to load config info from C:/OpenSSL/openssl.cnf
=============
rootCA generated at :
C:\Users\Admin\.anyproxy_certs
=============
rootCA generated
please trust the rootCA.crt in C:\Users\Admin\.anyproxy_certs\
or you may get it via anyproxy webinterface
 1691/1691 build modules
webpack: bundle build is now finished.

IE 9+ 方案

dva-admin 可支持IE9+,但需要引入babel-polyfill
可在src/index.js的首行加入import "babel-polyfill"即可
image

自己搭建的站点上鼠标滑过ant-card类元素时会出现滚动条

求助,我直接访问demo站点时查看的元素是一切正常的,但是自己clone了一份代码run dev后,访问localhost:8000,所有的ant card元素在鼠标hover的时候,会自动出现滚动条,并把别的元素挤开

image

浏览器为Chrome最新版:59.0.3071.115
操作系统为Win7
打开文档中搭建的demo站点时没有问题

Eslint 在 VS Code 编辑器下失效

作者你好,我把代码clone下来之后在vs code编辑器中打开后,发现所有.js文件第一行 import 或者 const 语句上都会返回一个 eslint 错误。[eslint] Parsing error: The keyword 'import' is reserved 。最终导致所有的 eslint 检查都没有效果。
我尝试更新了 dependencies 所有与 eslint 和 babel 相关的依赖,但是并没有什么卵用。 请问可以协助我解决一下吗? 谢谢🙏

请教下路由后面的随机字符串怎么去掉的呢?

请教下,

<Route path="/" component={require("./routes/App")} >
<IndexRoute component={require("./routes/Home")}/>
<Route path="home" component={require("./routes/Home")}/>

<Route path="test1" component={require("./routes/test")}/>

    </Route>
   
  
  </Route>
  
</Router>

按照您的router.js ,但浏览器地址后面还是会出现随机字符串

项目启动不起来

通过yarn下载好包后,启动报错
Failed to start the server, since you have enabled dllPlugin, but have not run roadhog buildDll before roadhog server.

路由嵌套问题

路由嵌套子页面该如何配置?

image

需要带ID 传子页面,这个子页面在菜单栏是不需要显示的;目前我是多写了一层路由,
做了无用功;
image
其实理想状态应该和图二 一样的,但无奈 图二的方式无法实现,请问作者有没有更好的方式?
最终结果期待的是:/product/productId/info
流程大概就是列表进入详情页面;
如果作者有幸看到,可加我微信 :EvansHongZai1214

更新之后为什么跑步起来了报错了,是不是有的第三方插件为 --save在dev中呢?

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\ch
okidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@
1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}
)
npm WARN [email protected] requires a peer of react@^16.0.0 but none was insta
lled.
npm WARN [email protected] requires a peer of jquery@>=1.8.0 but none was ins
talled.
npm WARN [email protected] requires a peer of eslint-plugin-jsx-a11y@^
5.1.1 but none was installed.

menu这边有个问题请教下。

71xcnr woxxu 9 46kdjw0
以teacher这个角色登陆的时候,menu这边显示部分,这部分代码在哪,可否给我指向下,没找到,麻烦了。

登陆流程问题

如果我想把本地模拟的登陆替换为与服务器交互,应该怎么操作呢,谢谢

menu的引入问题

我咋bread.js中直接引用menu.js 会在const getPathSet = function () 函数中报 forEach没定义 但是通过index来间接引用 为什么就不报错呢?

关于权限控制

看介绍说实现了基本的权限控制,能详细介绍下么?另外,如果要对菜单做权限控制,应该怎么做?

怎么icon 都改不过来的吗?

utils/config.js 里面设置了:
logoSrc: ''
entry.dev.ejs 里面删除了以下:

entry.ejs 里面删除了以下:

但是browser标题还是显示newband图标啊?

怎么破?

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.