Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
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
464912e7
Commit
464912e7
authored
Jan 28, 2019
by
陈帅
Committed by
陈小聪
Jan 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
html prettier (#3473)
* prettier html * update dependencies * centering icon * set icon size * edit text
parent
fe94317e
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
49 additions
and
44 deletions
+49
-44
.prettierignore
.prettierignore
+0
-2
functions/package.json
functions/package.json
+1
-1
package.json
package.json
+25
-26
src/components/NoticeIcon/index.less
src/components/NoticeIcon/index.less
+6
-1
src/components/SelectLang/index.less
src/components/SelectLang/index.less
+1
-1
src/pages/List/CardList.js
src/pages/List/CardList.js
+1
-1
src/pages/document.ejs
src/pages/document.ejs
+15
-12
No files found.
.prettierignore
View file @
464912e7
**/*.md
**/*.md
**/*.svg
**/*.svg
**/*.ejs
**/*.html
package.json
package.json
.umi
.umi
.umi-production
.umi-production
functions/package.json
View file @
464912e7
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
"firebase-functions"
:
"^2.1.0"
,
"firebase-functions"
:
"^2.1.0"
,
"mockjs"
:
"^1.0.1-beta3"
,
"mockjs"
:
"^1.0.1-beta3"
,
"moment"
:
"^2.22.2"
,
"moment"
:
"^2.22.2"
,
"path-to-regexp"
:
"^
2.2.1
"
"path-to-regexp"
:
"^
3.0.0
"
},
},
"private"
:
true
"private"
:
true
}
}
package.json
View file @
464912e7
...
@@ -36,7 +36,6 @@
...
@@ -36,7 +36,6 @@
"
antd
"
:
"
^3.11.6
"
,
"
antd
"
:
"
^3.11.6
"
,
"
bizcharts
"
:
"
^3.4.2
"
,
"
bizcharts
"
:
"
^3.4.2
"
,
"
bizcharts-plugin-slider
"
:
"
^2.1.1-beta.1
"
,
"
bizcharts-plugin-slider
"
:
"
^2.1.1-beta.1
"
,
"
chalk
"
:
"
^2.4.2
"
,
"
classnames
"
:
"
^2.2.6
"
,
"
classnames
"
:
"
^2.2.6
"
,
"
dva
"
:
"
^2.4.0
"
,
"
dva
"
:
"
^2.4.0
"
,
"
enquire-js
"
:
"
^0.2.1
"
,
"
enquire-js
"
:
"
^0.2.1
"
,
...
@@ -46,62 +45,62 @@
...
@@ -46,62 +45,62 @@
"
memoize-one
"
:
"
^5.0.0
"
,
"
memoize-one
"
:
"
^5.0.0
"
,
"
moment
"
:
"
^2.22.2
"
,
"
moment
"
:
"
^2.22.2
"
,
"
numeral
"
:
"
^2.0.6
"
,
"
numeral
"
:
"
^2.0.6
"
,
"
nzh
"
:
"
^1.0.
3
"
,
"
nzh
"
:
"
^1.0.
4
"
,
"
omit.js
"
:
"
^1.0.0
"
,
"
omit.js
"
:
"
^1.0.0
"
,
"
path-to-regexp
"
:
"
^
2.4
.0
"
,
"
path-to-regexp
"
:
"
^
3.0
.0
"
,
"
prop-types
"
:
"
^15.
5.10
"
,
"
prop-types
"
:
"
^15.
6.2
"
,
"
qs
"
:
"
^6.6.0
"
,
"
qs
"
:
"
^6.6.0
"
,
"
rc-animate
"
:
"
^2.
4.4
"
,
"
rc-animate
"
:
"
^2.
6.0
"
,
"
react
"
:
"
^16.
6.3
"
,
"
react
"
:
"
^16.
7.0
"
,
"
react-container-query
"
:
"
^0.11.0
"
,
"
react-container-query
"
:
"
^0.11.0
"
,
"
react-copy-to-clipboard
"
:
"
^5.0.1
"
,
"
react-copy-to-clipboard
"
:
"
^5.0.1
"
,
"
react-document-title
"
:
"
^2.0.3
"
,
"
react-document-title
"
:
"
^2.0.3
"
,
"
react-dom
"
:
"
^16.
6.3
"
,
"
react-dom
"
:
"
^16.
7.0
"
,
"
react-fittext
"
:
"
^1.0.0
"
,
"
react-fittext
"
:
"
^1.0.0
"
,
"
react-media
"
:
"
^1.
8.0
"
,
"
react-media
"
:
"
^1.
9.2
"
,
"
react-router-dom
"
:
"
^4.3.1
"
"
react-router-dom
"
:
"
^4.3.1
"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"
@types/react
"
:
"
^16.7.7
"
,
"
@types/react
"
:
"
^16.7.7
"
,
"
@types/react-dom
"
:
"
^16.0.10
"
,
"
@types/react-dom
"
:
"
^16.0.10
"
,
"
antd-pro-merge-less
"
:
"
^1.0.0
"
,
"
antd-pro-merge-less
"
:
"
^1.0.0
"
,
"
antd-theme-webpack-plugin
"
:
"
^1.
1.8
"
,
"
antd-theme-webpack-plugin
"
:
"
^1.
2.0
"
,
"
babel-eslint
"
:
"
^10.0.1
"
,
"
babel-eslint
"
:
"
^10.0.1
"
,
"
chalk
"
:
"
^2.4.2
"
,
"
check-prettier
"
:
"
^1.0.1
"
,
"
check-prettier
"
:
"
^1.0.1
"
,
"
cross-env
"
:
"
^5.1.1
"
,
"
cross-env
"
:
"
^5.1.1
"
,
"
cross-port-killer
"
:
"
^1.0.1
"
,
"
cross-port-killer
"
:
"
^1.0.1
"
,
"
enzyme
"
:
"
3.
7
.0
"
,
"
enzyme
"
:
"
3.
8
.0
"
,
"
eslint
"
:
"
^5.
4.0
"
,
"
eslint
"
:
"
^5.
12.1
"
,
"
eslint-config-airbnb
"
:
"
^17.
0
.0
"
,
"
eslint-config-airbnb
"
:
"
^17.
1
.0
"
,
"
eslint-config-prettier
"
:
"
^3.
0.1
"
,
"
eslint-config-prettier
"
:
"
^3.
6.0
"
,
"
eslint-plugin-babel
"
:
"
^5.3.0
"
,
"
eslint-plugin-babel
"
:
"
^5.3.0
"
,
"
eslint-plugin-compat
"
:
"
^2.6.
2
"
,
"
eslint-plugin-compat
"
:
"
^2.6.
3
"
,
"
eslint-plugin-import
"
:
"
^2.1
4
.0
"
,
"
eslint-plugin-import
"
:
"
^2.1
5
.0
"
,
"
eslint-plugin-jsx-a11y
"
:
"
^6.
1.2
"
,
"
eslint-plugin-jsx-a11y
"
:
"
^6.
2.0
"
,
"
eslint-plugin-markdown
"
:
"
^1.0.0
-beta.6
"
,
"
eslint-plugin-markdown
"
:
"
^1.0.0
"
,
"
eslint-plugin-react
"
:
"
^7.1
1.1
"
,
"
eslint-plugin-react
"
:
"
^7.1
2.4
"
,
"
gh-pages
"
:
"
^2.0.1
"
,
"
gh-pages
"
:
"
^2.0.1
"
,
"
husky
"
:
"
^1.
2.0
"
,
"
husky
"
:
"
^1.
3.1
"
,
"
jest-puppeteer
"
:
"
^3.9.0
"
,
"
jest-puppeteer
"
:
"
^3.9.0
"
,
"
less
"
:
"
^3.9.0
"
,
"
less
"
:
"
^3.9.0
"
,
"
lint-staged
"
:
"
^8.1.0
"
,
"
lint-staged
"
:
"
^8.1.0
"
,
"
merge-umi-mock-data
"
:
"
^1.0.4
"
,
"
merge-umi-mock-data
"
:
"
^1.0.4
"
,
"
mockjs
"
:
"
^1.0.1-beta3
"
,
"
mockjs
"
:
"
^1.0.1-beta3
"
,
"
prettier
"
:
"
1.15.2
"
,
"
prettier
"
:
"
1.16.1
"
,
"
pro-download
"
:
"
^1.0.1
"
,
"
slash2
"
:
"
^2.0.0
"
,
"
slash2
"
:
"
^2.0.0
"
,
"
stylelint
"
:
"
^9.8.0
"
,
"
stylelint
"
:
"
^9.8.0
"
,
"
stylelint-config-prettier
"
:
"
^4.0.0
"
,
"
stylelint-config-prettier
"
:
"
^4.0.0
"
,
"
stylelint-config-standard
"
:
"
^18.0.0
"
,
"
stylelint-config-standard
"
:
"
^18.0.0
"
,
"
tslint
"
:
"
^5.1
0.0
"
,
"
tslint
"
:
"
^5.1
2.1
"
,
"
tslint-config-prettier
"
:
"
^1.1
0
.0
"
,
"
tslint-config-prettier
"
:
"
^1.1
7
.0
"
,
"
tslint-react
"
:
"
^3.6.0
"
,
"
tslint-react
"
:
"
^3.6.0
"
,
"
umi
"
:
"
^2.4.
2
"
,
"
umi
"
:
"
^2.4.
4
"
,
"
umi-plugin-ga
"
:
"
^1.1.3
"
,
"
umi-plugin-ga
"
:
"
^1.1.3
"
,
"
umi-plugin-react
"
:
"
^1.
3.4
"
"
umi-plugin-react
"
:
"
^1.
4.2
"
},
},
"optionalDependencies"
:
{
"optionalDependencies"
:
{
"puppeteer"
:
"^1.1
0
.0"
"puppeteer"
:
"^1.1
1
.0"
},
},
"lint-staged"
:
{
"lint-staged"
:
{
"**/*.{js,ts,tsx,json,jsx,less}"
:
[
"**/*.{js,ts,tsx,json,jsx,less}"
:
[
...
...
src/components/NoticeIcon/index.less
View file @
464912e7
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
.popover {
.popover {
width: 336px;
width: 336px;
position: relative;
}
}
.noticeButton {
.noticeButton {
...
@@ -9,9 +10,13 @@
...
@@ -9,9 +10,13 @@
display: inline-block;
display: inline-block;
transition: all 0.3s;
transition: all 0.3s;
}
}
.icon {
.icon {
padding: 4px;
padding: 4px;
vertical-align: middle;
}
.badge {
font-size: 16px;
}
}
.tabs {
.tabs {
...
...
src/components/SelectLang/index.less
View file @
464912e7
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
vertical-align: top;
vertical-align: top;
line-height: @layout-header-height;
line-height: @layout-header-height;
> i {
> i {
font-size: 1
4
px !important;
font-size: 1
6
px !important;
transform: none !important;
transform: none !important;
svg {
svg {
position: relative;
position: relative;
...
...
src/pages/List/CardList.js
View file @
464912e7
...
@@ -86,7 +86,7 @@ class CardList extends PureComponent {
...
@@ -86,7 +86,7 @@ class CardList extends PureComponent {
)
:
(
)
:
(
<
List
.
Item
>
<
List
.
Item
>
<
Button
type
=
"
dashed
"
className
=
{
styles
.
newButton
}
>
<
Button
type
=
"
dashed
"
className
=
{
styles
.
newButton
}
>
<
Icon
type
=
"
plus
"
/>
新
增
产品
<
Icon
type
=
"
plus
"
/>
新
建
产品
<
/Button
>
<
/Button
>
<
/List.Item
>
<
/List.Item
>
)
)
...
...
src/pages/document.ejs
View file @
464912e7
<!DOCTYPE html>
<!DOCTYPE html>
<html
lang=
"en"
>
<html
lang=
"en"
>
<head>
<head>
<meta
charset=
"UTF-8"
>
<meta
charset=
"UTF-8"
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
>
<meta
<title>
Ant Design Pro
</title>
name=
"viewport"
<link
rel=
"icon"
href=
"/favicon.png"
type=
"image/x-icon"
>
content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
<script
src=
"https://gw.alipayobjects.com/os/antv/pkg/_antv.data-set-0.9.6/dist/data-set.min.js"
></script>
/>
</head>
<title>
Ant Design Pro
</title>
<body>
<link
rel=
"icon"
href=
"/favicon.png"
type=
"image/x-icon"
/>
<noscript>
Sorry, we need js to run correctly!
</noscript>
<script
src=
"https://gw.alipayobjects.com/os/antv/pkg/_antv.data-set-0.9.6/dist/data-set.min.js"
></script>
<div
id=
"root"
></div>
</head>
</body>
<body>
<noscript>
Sorry, we need js to run correctly!
</noscript>
<div
id=
"root"
></div>
</body>
</html>
</html>
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