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 8, 2022. It is now read-only.

Commitaf51d77

Browse files
authored
New community input (#762)
* fix(new-community): fix input not work* fix(route): return to home page got 404* fix(home): svg attr warning* style(home): remove 结果 in default filter bar* style(home): filter bar margin
1 parent0b54885 commitaf51d77

File tree

11 files changed

+34
-208
lines changed

11 files changed

+34
-208
lines changed

‎src/components/ArticleItemPrefixLabel/index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import ReadLabel from './ReadLabel'
1515
constlog=buildLog('c:ArticleItemPrefixLabel:index')
1616

1717
constArticleItemPrefixLabel=({ entry, accountInfo, topOffset})=>{
18-
if(entry.pin)return<PinIcontopOffset={topOffset}/>
18+
if(entry.pin)return<PinIcontop={topOffset}/>
1919

2020
return(
2121
<ReadLabelentry={entry}accountInfo={accountInfo}topOffset={topOffset}/>

‎src/components/ArticleItemPrefixLabel/styles/index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const PinIcon = styled(PinSVG)`
2121
position: absolute;
2222
width: 22px;
2323
height: 22px;
24-
top:${({topOffset})=>topOffset};
24+
top:${({top})=>top};
2525
left: -22px;
2626
${cs.media.mobile`
2727
width: 18px;

‎src/components/ContentFilter/FilterResult.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
constFilterResult=({ totalCount, onFaqChange, faqActive})=>{
1919
return(
2020
<Wrapper>
21-
<ResultText>结果共{totalCount}</ResultText>
21+
<ResultText>{totalCount}</ResultText>
2222
<ResultDivider/>
2323

2424
<MoreOptionWrapper>

‎src/components/ContentFilter/styles/filter_result.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const Wrapper = styled.div`
88
`
99
exportconstResultText=styled.div`
1010
color:${theme('thread.filterResultHint')};
11-
min-width: 75px;
11+
margin-right: 3px;
1212
`
1313
exportconstResultDivider=styled.div`
1414
width: 1px;

‎src/components/Navigator/DigestView.js‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
importReactfrom'react'
2-
importLinkfrom'next/link'
32

43
// import { ICON_CMD } from '@/config'
54
// import Tooltip from '@/components/Tooltip'
@@ -20,11 +19,9 @@ import MainEntries from './MainEntries'
2019
constDigestView=()=>{
2120
return(
2221
<Breadcrumbs>
23-
<Linkhref="/home/posts"passHref>
24-
<LogoLinkhref="/home/posts">
25-
<Logo/>
26-
</LogoLink>
27-
</Link>
22+
<LogoLinkhref="/home/posts">
23+
<Logo/>
24+
</LogoLink>
2825
<DotDivider/>
2926
<MainEntries/>
3027
</Breadcrumbs>

‎src/components/ThreadSelector/index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const ThreadSelector = ({
5252
)}
5353
</div>
5454
</Tooltip>
55-
<LabelCount>结果共{totalCount}</LabelCount>
55+
<LabelCount>{totalCount}</LabelCount>
5656
</Wrapper>
5757
)
5858

‎src/containers/content/NewCommunityContent/Banner/SetupDomain/index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const SetupDomain = ({ status }) => {
2929
<InputBox
3030
value={domainValue}
3131
placeholder="your-domain"
32-
onChange={()=>inputOnChange('domainValue')}
32+
onChange={inputOnChange('domainValue')}
3333
autoFocus
3434
/>
3535
<NextBtn>

‎src/containers/content/NewCommunityContent/Banner/SetupInfo/index.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ const SetupInfo = ({ status }) => {
2929
<InputBox
3030
value={titleValue}
3131
placeholder="社区名称"
32-
onChange={()=>inputOnChange('titleValue')}
32+
onChange={inputOnChange('titleValue')}
3333
autoFocus
3434
noRound
3535
/>
3636
<InputBox
3737
value={descValue}
3838
placeholder="社区一句话描述"
39-
onChange={()=>inputOnChange('descValue')}
39+
onChange={inputOnChange('descValue')}
4040
noRound
4141
/>
4242
<NextBtn>

‎src/containers/content/NewCommunityContent/logic.js‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import{useEffect}from'react'
2+
import{curry}from'ramda'
23

34
import{EVENT,ERR}from'@/constant'
45
import{asyncSuit,buildLog,errRescue,updateEditing}from'@/utils'
@@ -75,7 +76,11 @@ export const communityTypeOnChange = (communityType) =>
7576
*@param {e} htmlEvent
7677
*@public
7778
*/
78-
exportconstinputOnChange=(part,e)=>updateEditing(store,part,e)
79+
exportconstinputOnChange=curry((part,e)=>{
80+
console.log('== inputOnChange e: ',e)
81+
82+
updateEditing(store,part,e)
83+
})
7984

8085
/**
8186
* search communities by current searchValue in store

‎src/pages/index.js‎

Lines changed: 0 additions & 176 deletions
This file was deleted.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp