Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
app-manage-console
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
ReactNative
app-manage-console
Commits
8f2370c0
提交
8f2370c0
authored
7月 19, 2017
作者:
vipcxj
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复eslint检测出的问题
上级
64aafaad
显示空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
17 行增加
和
25 行删除
+17
-25
yaohx_169.xml
.idea/dictionaries/yaohx_169.xml
+1
-0
model.js
src/components/table/dstable/model.js
+0
-4
date.js
src/components/table/search/date.js
+1
-1
header.js
src/routes/main/header.js
+1
-1
index.js
src/routes/main/index.js
+3
-6
dom.js
src/utils/dom.js
+1
-1
routes.js
src/utils/hoc/routes.js
+0
-1
prng4.js
src/utils/jsbn/prng4.js
+9
-8
just-a-try.js
test/just-a-try.js
+1
-3
没有找到文件。
.idea/dictionaries/yaohx_169.xml
浏览文件 @
8f2370c0
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
<dictionary
name=
"yaohx_169"
>
<dictionary
name=
"yaohx_169"
>
<words>
<words>
<w>
anticon
</w>
<w>
anticon
</w>
<w>
arcfour
</w>
<w>
dropdown
</w>
<w>
dropdown
</w>
<w>
infos
</w>
<w>
infos
</w>
<w>
lodash
</w>
<w>
lodash
</w>
...
...
src/components/table/dstable/model.js
浏览文件 @
8f2370c0
...
@@ -53,10 +53,6 @@ const makeProps = (meta) => {
...
@@ -53,10 +53,6 @@ const makeProps = (meta) => {
return
props
;
return
props
;
};
};
const
getColumn
=
(
columns
,
name
)
=>
{
return
(
columns
||
[]).
find
(
column
=>
name
===
column
.
dataIndex
);
};
const
getColumnIdx
=
(
columns
,
name
)
=>
{
const
getColumnIdx
=
(
columns
,
name
)
=>
{
return
(
columns
||
[]).
findIndex
(
column
=>
name
===
column
.
dataIndex
);
return
(
columns
||
[]).
findIndex
(
column
=>
name
===
column
.
dataIndex
);
};
};
...
...
src/components/table/search/date.js
浏览文件 @
8f2370c0
import
React
,
{
Component
}
from
'react'
;
import
React
,
{
Component
}
from
'react'
;
import
PropTypes
from
'prop-types'
;
import
PropTypes
from
'prop-types'
;
import
{
DatePicker
,
Button
}
from
'antd'
;
import
{
DatePicker
,
Button
}
from
'antd'
;
import
moment
from
'moment'
;
import
moment
from
'moment'
;
...
...
src/routes/main/header.js
浏览文件 @
8f2370c0
...
@@ -18,7 +18,7 @@ class HeaderPane extends React.Component {
...
@@ -18,7 +18,7 @@ class HeaderPane extends React.Component {
dispatch
({
type
:
'main/fetchDomains'
});
dispatch
({
type
:
'main/fetchDomains'
});
}
}
render
()
{
render
()
{
const
{
dispatch
,
user
,
domain
,
domainList
,
routes
,
params
,
menus
}
=
this
.
props
;
const
{
dispatch
,
user
,
domain
,
domainList
,
routes
,
params
}
=
this
.
props
;
const
userTitle
=
(
const
userTitle
=
(
<
span
>
<
span
>
<
Icon
type
=
"user"
/>
<
Icon
type
=
"user"
/>
...
...
src/routes/main/index.js
浏览文件 @
8f2370c0
...
@@ -22,6 +22,9 @@ class Main extends React.Component {
...
@@ -22,6 +22,9 @@ class Main extends React.Component {
mode
:
'inline'
,
mode
:
'inline'
,
};
};
}
}
componentDidMount
()
{
this
.
props
.
dispatch
({
type
:
'main/fetchModules'
});
}
onClick
({
keyPath
})
{
onClick
({
keyPath
})
{
const
paths
=
keyPath
.
reverse
().
join
(
'/'
);
const
paths
=
keyPath
.
reverse
().
join
(
'/'
);
this
.
props
.
dispatch
(
routerRedux
.
push
(
fullPath
(
`/main/
${
paths
}
`
)));
this
.
props
.
dispatch
(
routerRedux
.
push
(
fullPath
(
`/main/
${
paths
}
`
)));
...
@@ -32,12 +35,6 @@ class Main extends React.Component {
...
@@ -32,12 +35,6 @@ class Main extends React.Component {
mode
:
collapsed
?
'vertical'
:
'inline'
,
mode
:
collapsed
?
'vertical'
:
'inline'
,
});
});
}
}
componentDidMount
()
{
this
.
props
.
dispatch
({
type
:
'main/fetchModules'
});
}
render
()
{
render
()
{
const
children
=
this
.
props
.
children
;
const
children
=
this
.
props
.
children
;
const
{
menus
}
=
this
.
props
.
main
;
const
{
menus
}
=
this
.
props
.
main
;
...
...
src/utils/dom.js
浏览文件 @
8f2370c0
...
@@ -30,7 +30,7 @@ export function addEvent(object, type, handler, remove) {
...
@@ -30,7 +30,7 @@ export function addEvent(object, type, handler, remove) {
}
}
if
(
!
exists
)
object
[
xc
].
push
(
handler
);
if
(
!
exists
)
object
[
xc
].
push
(
handler
);
}
}
object
[
`on
${
type
}
`
]
=
function
()
{
object
[
`on
${
type
}
`
]
=
function
cb
()
{
const
l
=
object
[
xc
].
length
;
const
l
=
object
[
xc
].
length
;
for
(
let
i
=
0
;
i
<
l
;
i
++
)
{
for
(
let
i
=
0
;
i
<
l
;
i
++
)
{
object
[
xc
][
i
].
apply
(
object
,
arguments
);
object
[
xc
][
i
].
apply
(
object
,
arguments
);
...
...
src/utils/hoc/routes.js
浏览文件 @
8f2370c0
const
route
=
(
routes
)
=>
{
const
route
=
(
routes
)
=>
{
const
Wrapper
=
({
children
})
=>
{
const
Wrapper
=
({
children
})
=>
{
return
children
;
return
children
;
};
};
...
...
src/utils/jsbn/prng4.js
浏览文件 @
8f2370c0
/* eslint-disable no-unused-vars,camelcase */
// prng4.js - uses Arcfour as a PRNG
// prng4.js - uses Arcfour as a PRNG
function
Arcfour
()
{
function
Arcfour
()
{
this
.
i
=
0
;
this
.
i
=
0
;
this
.
j
=
0
;
this
.
j
=
0
;
this
.
S
=
new
Array
()
;
this
.
S
=
[]
;
}
}
// Initialize arcfour context from key, an array of ints, each from [0..255]
// Initialize arcfour context from key, an array of ints, each from [0..255]
function
ARC4init
(
key
)
{
function
ARC4init
(
key
)
{
var
i
,
j
,
t
;
let
i
;
for
(
i
=
0
;
i
<
256
;
++
i
)
let
j
;
this
.
S
[
i
]
=
i
;
let
t
;
for
(
i
=
0
;
i
<
256
;
++
i
)
{
this
.
S
[
i
]
=
i
;
}
j
=
0
;
j
=
0
;
for
(
i
=
0
;
i
<
256
;
++
i
)
{
for
(
i
=
0
;
i
<
256
;
++
i
)
{
j
=
(
j
+
this
.
S
[
i
]
+
key
[
i
%
key
.
length
])
&
255
;
j
=
(
j
+
this
.
S
[
i
]
+
key
[
i
%
key
.
length
])
&
255
;
t
=
this
.
S
[
i
];
t
=
this
.
S
[
i
];
this
.
S
[
i
]
=
this
.
S
[
j
];
this
.
S
[
i
]
=
this
.
S
[
j
];
...
@@ -23,10 +25,9 @@ function ARC4init(key) {
...
@@ -23,10 +25,9 @@ function ARC4init(key) {
}
}
function
ARC4next
()
{
function
ARC4next
()
{
var
t
;
this
.
i
=
(
this
.
i
+
1
)
&
255
;
this
.
i
=
(
this
.
i
+
1
)
&
255
;
this
.
j
=
(
this
.
j
+
this
.
S
[
this
.
i
])
&
255
;
this
.
j
=
(
this
.
j
+
this
.
S
[
this
.
i
])
&
255
;
t
=
this
.
S
[
this
.
i
];
const
t
=
this
.
S
[
this
.
i
];
this
.
S
[
this
.
i
]
=
this
.
S
[
this
.
j
];
this
.
S
[
this
.
i
]
=
this
.
S
[
this
.
j
];
this
.
S
[
this
.
j
]
=
t
;
this
.
S
[
this
.
j
]
=
t
;
return
this
.
S
[(
t
+
this
.
S
[
this
.
i
])
&
255
];
return
this
.
S
[(
t
+
this
.
S
[
this
.
i
])
&
255
];
...
@@ -42,4 +43,4 @@ function prng_newstate() {
...
@@ -42,4 +43,4 @@ function prng_newstate() {
// Pool size must be a multiple of 4 and greater than 32.
// Pool size must be a multiple of 4 and greater than 32.
// An array of bytes the size of the pool will be passed to init()
// An array of bytes the size of the pool will be passed to init()
var
rng_psize
=
256
;
const
rng_psize
=
256
;
test/just-a-try.js
浏览文件 @
8f2370c0
/* eslint-disable no-undef */
/**
/**
* Created by yaohx_169 on 2017/6/29.
* Created by yaohx_169 on 2017/6/29.
*/
*/
import
React
from
'react'
;
import
{
mount
}
from
'enzyme'
;
import
chai
from
'chai'
;
import
chai
from
'chai'
;
chai
.
should
();
chai
.
should
();
describe
(
'ioc'
,
()
=>
{
describe
(
'ioc'
,
()
=>
{
describe
(
'stateful'
,
()
=>
{
describe
(
'stateful'
,
()
=>
{
console
.
log
(
'111'
);
});
});
});
});
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论