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.

Commitc9ff290

Browse files
committed
Merge branch 'userpage' into dev
2 parents6202c64 +6b3f20f commitc9ff290

File tree

5 files changed

+51
-94
lines changed

5 files changed

+51
-94
lines changed

‎components/PagedContents/ContentList.js‎

Lines changed: 7 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ import {
88
RepoItemLoading,
99
}from'../LoadingEffects'
1010

11-
/* import PostsList from './PostsList' */
12-
// import JobsList from './JobsList'
13-
// import VideosList from './VideosList'
14-
// import ReposList from './ReposList'
15-
1611
import{THREAD}from'../../utils'
1712

1813
/* eslint-disable */
@@ -34,67 +29,21 @@ const DynamicReposList = dynamic({
3429
})
3530
/* eslint-enable */
3631

37-
constContentList=({
38-
entries,
39-
active,
40-
curView,
41-
community,
42-
thread,
43-
emptyPrefix,
44-
onTitleSelect,
45-
})=>{
32+
constContentList=props=>{
33+
const{ thread}=props
34+
4635
switch(thread){
4736
caseTHREAD.JOB:{
48-
return(
49-
<DynamicJobsList
50-
entries={entries}
51-
active={active}
52-
curView={curView}
53-
thread={thread}
54-
community={community}
55-
emptyPrefix={emptyPrefix}
56-
onTitleSelect={onTitleSelect}
57-
/>
58-
)
37+
return<DynamicJobsListprops={props}/>
5938
}
6039
caseTHREAD.VIDEO:{
61-
return(
62-
<DynamicVideosList
63-
entries={entries}
64-
active={active}
65-
curView={curView}
66-
thread={thread}
67-
community={community}
68-
emptyPrefix={emptyPrefix}
69-
onTitleSelect={onTitleSelect}
70-
/>
71-
)
40+
return<DynamicVideosListprops={props}/>
7241
}
7342
caseTHREAD.REPO:{
74-
return(
75-
<DynamicReposList
76-
entries={entries}
77-
active={active}
78-
curView={curView}
79-
thread={thread}
80-
community={community}
81-
emptyPrefix={emptyPrefix}
82-
onTitleSelect={onTitleSelect}
83-
/>
84-
)
43+
return<DynamicReposListprops={props}/>
8544
}
8645
default:{
87-
return(
88-
<DynamicPostsList
89-
entries={entries}
90-
active={active}
91-
curView={curView}
92-
thread={thread}
93-
community={community}
94-
emptyPrefix={emptyPrefix}
95-
onTitleSelect={onTitleSelect}
96-
/>
97-
)
46+
return<DynamicPostsListprops={props}/>
9847
}
9948
}
10049
}

‎components/PagedContents/JobsList.js‎

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,17 @@ import EmptyLabel from '../EmptyLabel'
99

1010
import{uid,TYPE,Trans}from'../../utils'
1111

12-
constJobsList=({
13-
entries,
14-
curView,
15-
community,
16-
thread,
17-
emptyPrefix,
18-
active,
19-
onTitleSelect,
20-
})=>{
12+
constJobsList=({ props})=>{
13+
const{
14+
entries,
15+
active,
16+
curView,
17+
community,
18+
thread,
19+
emptyPrefix,
20+
onTitleSelect,
21+
}=props
22+
2123
switch(curView){
2224
caseTYPE.RESULT:{
2325
return(

‎components/PagedContents/PostsList.js‎

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,17 @@ import EmptyLabel from '../EmptyLabel'
99

1010
import{uid,TYPE,Trans}from'../../utils'
1111

12-
constPostsList=({
13-
entries,
14-
curView,
15-
community,
16-
thread,
17-
emptyPrefix,
18-
active,
19-
onTitleSelect,
20-
})=>{
12+
constPostsList=({ props})=>{
13+
const{
14+
entries,
15+
active,
16+
curView,
17+
community,
18+
thread,
19+
emptyPrefix,
20+
onTitleSelect,
21+
}=props
22+
2123
switch(curView){
2224
caseTYPE.RESULT:{
2325
return(

‎components/PagedContents/ReposList.js‎

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,17 @@ import EmptyLabel from '../EmptyLabel'
99

1010
import{uid,TYPE,Trans}from'../../utils'
1111

12-
constReposList=({
13-
entries,
14-
curView,
15-
community,
16-
thread,
17-
emptyPrefix,
18-
active,
19-
onTitleSelect,
20-
})=>{
12+
constReposList=({ props})=>{
13+
const{
14+
entries,
15+
active,
16+
curView,
17+
community,
18+
thread,
19+
emptyPrefix,
20+
onTitleSelect,
21+
}=props
22+
2123
switch(curView){
2224
caseTYPE.RESULT:{
2325
return(

‎components/PagedContents/VideosList.js‎

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,17 @@ import EmptyLabel from '../EmptyLabel'
99

1010
import{uid,TYPE,Trans}from'../../utils'
1111

12-
constVideosList=({
13-
entries,
14-
curView,
15-
community,
16-
thread,
17-
emptyPrefix,
18-
active,
19-
onTitleSelect,
20-
})=>{
12+
constVideosList=({ props})=>{
13+
const{
14+
entries,
15+
active,
16+
curView,
17+
community,
18+
thread,
19+
emptyPrefix,
20+
onTitleSelect,
21+
}=props
22+
2123
switch(curView){
2224
caseTYPE.RESULT:{
2325
return(

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp