Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
0af3300c
Commit
0af3300c
authored
May 02, 2018
by
jim
Committed by
ιεΈ
May 18, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ci
parent
680c0c3d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
8 deletions
+17
-8
.babelrc.js
.babelrc.js
+11
-2
package.json
package.json
+3
-3
src/e2e/home.e2e.js
src/e2e/home.e2e.js
+1
-1
src/e2e/login.e2e.js
src/e2e/login.e2e.js
+1
-1
src/routes/Result/Success.js
src/routes/Result/Success.js
+1
-1
No files found.
.babelrc.js
View file @
0af3300c
const
path
=
require
(
'
path
'
);
module
.
exports
=
{
module
.
exports
=
{
plugins
:
[
plugins
:
[
[
[
'
babel-plugin-module-resolver
'
,
'
babel-plugin-module-resolver
'
,
{
{
alias
:
{
alias
:
{
components
:
'
./src/components
'
,
components
:
path
.
join
(
__dirname
,
'
./src/components
'
)
,
},
},
},
},
],
],
[
'
import
'
,
{
libraryName
:
'
antd
'
,
style
:
true
,
// or 'css'
},
],
],
],
};
};
package.json
View file @
0af3300c
...
@@ -23,8 +23,6 @@
...
@@ -23,8 +23,6 @@
"dependencies"
:
{
"dependencies"
:
{
"
@antv/data-set
"
:
"
^0.8.0
"
,
"
@antv/data-set
"
:
"
^0.8.0
"
,
"
@babel/polyfill
"
:
"
^7.0.0-beta.36
"
,
"
@babel/polyfill
"
:
"
^7.0.0-beta.36
"
,
"
@types/react
"
:
"
^16.3.8
"
,
"
@types/react-dom
"
:
"
^16.0.5
"
,
"
antd
"
:
"
^3.4.3
"
,
"
antd
"
:
"
^3.4.3
"
,
"
antd-theme-webpack-plugin
"
:
"
^1.0.8
"
,
"
antd-theme-webpack-plugin
"
:
"
^1.0.8
"
,
"
babel-plugin-transform-decorators-legacy
"
:
"
^1.3.4
"
,
"
babel-plugin-transform-decorators-legacy
"
:
"
^1.3.4
"
,
...
@@ -53,6 +51,8 @@
...
@@ -53,6 +51,8 @@
"
url-polyfill
"
:
"
^1.0.10
"
"
url-polyfill
"
:
"
^1.0.10
"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"
@types/react
"
:
"
^16.3.8
"
,
"
@types/react-dom
"
:
"
^16.0.5
"
,
"
babel-eslint
"
:
"
^8.1.2
"
,
"
babel-eslint
"
:
"
^8.1.2
"
,
"
babel-plugin-dva-hmr
"
:
"
^0.4.1
"
,
"
babel-plugin-dva-hmr
"
:
"
^0.4.1
"
,
"
babel-plugin-import
"
:
"
^1.6.7
"
,
"
babel-plugin-import
"
:
"
^1.6.7
"
,
...
@@ -84,7 +84,7 @@
...
@@ -84,7 +84,7 @@
"
stylelint-config-standard
"
:
"
^18.0.0
"
"
stylelint-config-standard
"
:
"
^18.0.0
"
},
},
"optionalDependencies"
:
{
"optionalDependencies"
:
{
"puppeteer"
:
"^1.
1.1
"
"puppeteer"
:
"^1.
3.0
"
},
},
"lint-staged"
:
{
"lint-staged"
:
{
"**/*.{js,jsx,less}"
:
[
"**/*.{js,jsx,less}"
:
[
...
...
src/e2e/home.e2e.js
View file @
0af3300c
...
@@ -4,7 +4,7 @@ describe('Homepage', () => {
...
@@ -4,7 +4,7 @@ describe('Homepage', () => {
it
(
'
it should have logo text
'
,
async
()
=>
{
it
(
'
it should have logo text
'
,
async
()
=>
{
const
browser
=
await
puppeteer
.
launch
();
const
browser
=
await
puppeteer
.
launch
();
const
page
=
await
browser
.
newPage
();
const
page
=
await
browser
.
newPage
();
await
page
.
goto
(
'
http://localhost:8000
'
);
await
page
.
goto
(
'
http://localhost:8000
'
,
{
waitUntil
:
'
networkidle2
'
}
);
await
page
.
waitForSelector
(
'
h1
'
);
await
page
.
waitForSelector
(
'
h1
'
);
const
text
=
await
page
.
evaluate
(()
=>
document
.
body
.
innerHTML
);
const
text
=
await
page
.
evaluate
(()
=>
document
.
body
.
innerHTML
);
expect
(
text
).
toContain
(
'
<h1>Ant Design Pro</h1>
'
);
expect
(
text
).
toContain
(
'
<h1>Ant Design Pro</h1>
'
);
...
...
src/e2e/login.e2e.js
View file @
0af3300c
...
@@ -10,7 +10,7 @@ describe('Login', () => {
...
@@ -10,7 +10,7 @@ describe('Login', () => {
beforeEach
(
async
()
=>
{
beforeEach
(
async
()
=>
{
page
=
await
browser
.
newPage
();
page
=
await
browser
.
newPage
();
await
page
.
goto
(
'
http://localhost:8000/#/user/login
'
);
await
page
.
goto
(
'
http://localhost:8000/#/user/login
'
,
{
waitUntil
:
'
networkidle2
'
}
);
await
page
.
evaluate
(()
=>
window
.
localStorage
.
setItem
(
'
antd-pro-authority
'
,
'
guest
'
));
await
page
.
evaluate
(()
=>
window
.
localStorage
.
setItem
(
'
antd-pro-authority
'
,
'
guest
'
));
});
});
...
...
src/routes/Result/Success.js
View file @
0af3300c
import
React
,
{
Fragment
}
from
'
react
'
;
import
React
,
{
Fragment
}
from
'
react
'
;
import
{
Button
,
Row
,
Col
,
Icon
,
Steps
,
Card
}
from
'
antd
'
;
import
{
Button
,
Row
,
Col
,
Icon
,
Steps
,
Card
}
from
'
antd
'
;
import
Result
from
'
components/Result
'
;
import
Result
from
'
../../
components/Result
'
;
import
PageHeaderLayout
from
'
../../layouts/PageHeaderLayout
'
;
import
PageHeaderLayout
from
'
../../layouts/PageHeaderLayout
'
;
const
{
Step
}
=
Steps
;
const
{
Step
}
=
Steps
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment