Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit210a3b5

Browse files
committed
replace ICON_ASSETS -> ICON_CMD
1 parentca5c2d4 commit210a3b5

File tree

48 files changed

+308
-300
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+308
-300
lines changed

‎components/AdderCell/index.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
importReactfrom'react'
88
importPropTypesfrom'prop-types'
99

10-
import{ICON_ASSETS}from'../../config'
10+
import{ICON_CMD}from'../../config'
1111

1212
import{makeDebugger}from'../../utils'
1313
import{AddWrapper,AddIcon,AddText}from'./styles'
@@ -18,7 +18,7 @@ const debug = makeDebugger('c:AdderCell:index')
1818

1919
constAdderCell=({ onAdd})=>(
2020
<AddWrapperonClick={onAdd}>
21-
<AddIconsrc={`${ICON_ASSETS}/cmd/plus.svg`}/>
21+
<AddIconsrc={`${ICON_CMD}/plus.svg`}/>
2222
<AddText>添加</AddText>
2323
</AddWrapper>
2424
)

‎components/CategoriesCell/index.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import React from 'react'
88
importPropTypesfrom'prop-types'
99
importRfrom'ramda'
1010

11-
import{ICON_ASSETS}from'../../config'
11+
import{ICON_CMD}from'../../config'
1212

1313
import{AdderCell,Icon}from'../../components'
1414

@@ -53,7 +53,7 @@ class CategoriesCell extends React.Component {
5353
<Wrapper>
5454
<CategoriesListsource={source}onDelete={onDelete}/>
5555
<divonClick={onAdd.bind(this,source)}>
56-
<AddIconsrc={`${ICON_ASSETS}/cmd/plus.svg`}/>
56+
<AddIconsrc={`${ICON_CMD}/plus.svg`}/>
5757
</div>
5858
</Wrapper>
5959
)}

‎components/CommunityCell/index.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import R from 'ramda'
99
importPropTypesfrom'prop-types'
1010
importReactTooltipfrom'react-tooltip'
1111

12-
import{ICON_ASSETS}from'../../config'
12+
import{ICON_CMD}from'../../config'
1313
import{AdderCell}from'../../components'
1414

1515
import{
@@ -81,7 +81,7 @@ const renderContent = props => {
8181
onDelete={onDelete}
8282
/>
8383
<divonClick={onAdd.bind(this,thread,source)}>
84-
<AddIconsrc={`${ICON_ASSETS}/cmd/plus.svg`}/>
84+
<AddIconsrc={`${ICON_CMD}/plus.svg`}/>
8585
</div>
8686
</Wrapper>
8787
)

‎components/CommunityMatrix/index.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ import R from 'ramda'
99
importPropTypesfrom'prop-types'
1010
importReactTooltipfrom'react-tooltip'
1111

12+
import{ICON_CMD}from'../../config'
13+
1214
import{
1315
MatrixWrapper,
1416
CommunityLogo,
1517
GeneralPLogo,
1618
AddOnWrapper,
1719
}from'./styles'
18-
import{ICON_ASSETS}from'../../config'
1920

2021
import{makeDebugger,uid}from'../../utils'
2122

@@ -84,7 +85,7 @@ class CommunityMatrix extends React.Component {
8485
onClick={onAddOnSelect}
8586
show={hasAddon}
8687
>
87-
<GeneralPLogosrc={`${ICON_ASSETS}/cmd/all.svg`}/>
88+
<GeneralPLogosrc={`${ICON_CMD}/all.svg`}/>
8889
</AddOnWrapper>
8990
</MatrixWrapper>
9091
)

‎components/ContentFilter/index.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import PropTypes from 'prop-types'
99
import{Button,Row,Col,Tag}from'antd'
1010
import{Popover}from'../../components'
1111

12-
import{ICON_ASSETS}from'../../config'
12+
import{ICON_CMD}from'../../config'
1313

1414
import{
1515
Wrapper,
@@ -150,7 +150,7 @@ const ContentFilter = ({ onSelect, activeWhen, activeSort, activeLength }) => (
150150
<Buttonsize="small"type="primary"ghost>
151151
<InnerBtnWrapper>
152152
综合排序
153-
<FilterIconsrc={`${ICON_ASSETS}/cmd/filter2.svg`}/>
153+
<FilterIconsrc={`${ICON_CMD}/filter2.svg`}/>
154154
</InnerBtnWrapper>
155155
</Button>
156156
&nbsp;&nbsp;&nbsp;&nbsp;

‎components/LoadingEffects/TableLoading.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import styled from 'styled-components'
33

44
import{Img}from'../../components'
55

6-
import{ICON_ASSETS}from'../../config'
6+
import{ICON_CMD}from'../../config'
77
import{Animate}from'../../utils'
88

99
constLoadingWrapper=styled.div`
@@ -24,7 +24,7 @@ const LoadingText = styled.div`
2424

2525
constTableLoading=()=>(
2626
<LoadingWrapper>
27-
<LoadingIconsrc={`${ICON_ASSETS}/cmd/rainbow_logo.svg`}/>
27+
<LoadingIconsrc={`${ICON_CMD}/rainbow_logo.svg`}/>
2828
<LoadingText>... 漫威的编剧真心可以 ...</LoadingText>
2929
</LoadingWrapper>
3030
)

‎components/Navigator/index.js‎

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,21 @@
77
importReactfrom'react'
88
// import PropTypes from 'prop-types'
99

10-
import{makeDebugger}from'../../utils'
11-
import{ICON_ASSETS}from'../../config'
12-
10+
import{ICON_CMD}from'../../config'
1311
import{Breadcrumbs,Logo,LogoText,BetaLogo}from'./style'
12+
import{makeDebugger}from'../../utils'
1413

1514
/* eslint-disable no-unused-vars */
1615
constdebug=makeDebugger('c:Navigator:index')
1716
/* eslint-enable no-unused-vars */
1817

19-
constNavigator=()=>{
20-
return(
21-
<Breadcrumbs>
22-
<Logosrc={`${ICON_ASSETS}/cmd/rainbow_logo.svg`}/>
23-
<LogoText>coderplanets</LogoText>
24-
<BetaLogosrc={`${ICON_ASSETS}/cmd/beta.svg`}/>
25-
</Breadcrumbs>
26-
)
27-
}
18+
constNavigator=()=>(
19+
<Breadcrumbs>
20+
<Logosrc={`${ICON_CMD}/rainbow_logo.svg`}/>
21+
<LogoText>coderplanets</LogoText>
22+
<BetaLogosrc={`${ICON_CMD}/beta.svg`}/>
23+
</Breadcrumbs>
24+
)
2825

2926
/*
3027
Navigator.propTypes = {

‎components/NotFound/index.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import PropTypes from 'prop-types'
99
importRfrom'ramda'
1010

1111
import{ICON_ASSETS,ISSUE_ADDR}from'../../config'
12-
import{makeDebugger}from'../../utils'
1312

1413
import{
1514
Icon404,
@@ -21,6 +20,9 @@ import {
2120
IssueLink,
2221
Desc,
2322
}from'./styles'
23+
24+
import{makeDebugger}from'../../utils'
25+
2426
/* eslint-disable no-unused-vars */
2527
constdebug=makeDebugger('c:NotFound:index')
2628
/* eslint-enable no-unused-vars */

‎components/SexCell/index.js‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
importReactfrom'react'
88
importPropTypesfrom'prop-types'
99

10-
import{ICON_ASSETS}from'../../config'
11-
12-
import{makeDebugger}from'../../utils'
10+
import{ICON_CMD}from'../../config'
1311
import{DudeIcon,GirlIcon}from'./styles'
12+
import{makeDebugger}from'../../utils'
13+
1414
/* eslint-disable no-unused-vars */
1515
constdebug=makeDebugger('c:SexCell:index')
1616
/* eslint-enable no-unused-vars */
1717

1818
constSexCell=({ sex})=>{
1919
if(sex==='dude'){
20-
return<DudeIconsrc={`${ICON_ASSETS}/cmd/dude.svg`}/>
20+
return<DudeIconsrc={`${ICON_CMD}/dude.svg`}/>
2121
}
22-
return<GirlIconsrc={`${ICON_ASSETS}/cmd/girl.svg`}/>
22+
return<GirlIconsrc={`${ICON_CMD}/girl.svg`}/>
2323
}
2424

2525
SexCell.propTypes={

‎components/TagList/index.js‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,8 @@
77
importReactfrom'react'
88
importPropTypesfrom'prop-types'
99

10-
import{ICON_ASSETS}from'../../config'
11-
12-
// import TagsLoading from '../../components/LoadingEffects/TagsLoading'
10+
import{ICON_CMD}from'../../config'
1311
import{Wrapper,TagItem,TagDot,TagTitle,AllTagIcon}from'./styles'
14-
1512
import{uid,makeDebugger}from'../../utils'
1613

1714
/* eslint-disable no-unused-vars */
@@ -31,7 +28,7 @@ const TagList = ({ tags, active, onSelect }) => {
3128
color:'',
3229
})}
3330
>
34-
<AllTagIconsrc={`${ICON_ASSETS}/cmd/all_tags.svg`}/>
31+
<AllTagIconsrc={`${ICON_CMD}/all_tags.svg`}/>
3532
<TagTitle>全部标签</TagTitle>
3633
</TagItem>
3734
) :(

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp