Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 0df981e

Browse files
authored
refactor(community): remove video concept (#1073)
* refactor(community): remove video concept * refactor(community): remove emoji demo * refactor(community): remove topic on tags query * refactor(community): remove topic on tags query * refactor(community): remove topic on tags query
1 parent a2ad509 commit 0df981e

File tree

123 files changed

+45
-4486
lines changed

Some content is hidden

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

123 files changed

+45
-4486
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ yarn-error.log
99
.env.local
1010
schema.graphql
1111
cypress//integration/examples
12-
cypress/videos/
1312
.vscode/
1413
.DS_Store
1514
.eslintcache
15+
16+
cypress/videos/*

src/components/ContentFilter/DesktopView.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ ContentFilter.propTypes = {
6262
field: T.string,
6363
finance: T.string,
6464
scale: T.string,
65-
// video
6665
source: T.string,
6766
}),
6867
onSelect: T.func.isRequired,
@@ -90,7 +89,6 @@ ContentFilter.defaultProps = {
9089
field: '',
9190
finance: '',
9291
scale: '',
93-
// video
9492
source: '',
9593
},
9694
thread: THREAD.POST,

src/components/ContentFilter/FilterPanel/VideoSourceFilter.js

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

src/components/ContentFilter/FilterPanel/index.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ import JobEducationFilter from './JobEducationFilter'
1414
import JobFieldFilter from './JobFieldFilter'
1515
import JobFinanceFilter from './JobFinanceFilter'
1616
import JobScaleFilter from './JobScaleFilter'
17-
// video
18-
import VideoSourceFilter from './VideoSourceFilter'
1917

2018
import { FilterPanelWrapper } from '../styles'
2119

@@ -33,18 +31,6 @@ const FilterPanel = ({ thread, activeFilter, onSelect, isLogin }) => {
3331
</FilterPanelWrapper>
3432
)
3533

36-
case THREAD.VIDEO:
37-
return (
38-
<FilterPanelWrapper>
39-
<TimeFilter activeFilter={activeFilter} onSelect={onSelect} />
40-
<SortFilter activeFilter={activeFilter} onSelect={onSelect} />
41-
<VideoSourceFilter activeFilter={activeFilter} onSelect={onSelect} />
42-
{isLogin && (
43-
<ViewedFilter activeFilter={activeFilter} onSelect={onSelect} />
44-
)}
45-
</FilterPanelWrapper>
46-
)
47-
4834
case THREAD.REPO:
4935
return (
5036
<FilterPanelWrapper>

src/components/LoadingEffects/VideoItemLoading.js

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

src/components/LoadingEffects/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
export { default as CheatSheetLoading } from './CheatSheetLoading'
88
export { default as CommentLoading } from './CommentLoading'
99
export { default as PostItemLoading } from './PostItemLoading'
10-
export { default as VideoItemLoading } from './VideoItemLoading'
1110
export { default as RepoItemLoading } from './RepoItemLoading'
1211
export { default as JobItemLoading } from './JobItemLoading'
1312
export { default as EditorLoading } from './EditorLoading'

src/components/PagedContents/ContentList.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { THREAD } from '@/constant'
88
import {
99
PostItemLoading,
1010
JobItemLoading,
11-
VideoItemLoading,
1211
RepoItemLoading,
1312
} from '@/components/LoadingEffects'
1413

@@ -18,9 +17,6 @@ export const PostsList = dynamic(() => import('./PostsList'), {
1817
const JobsList = dynamic(() => import('./JobsList'), {
1918
loading: () => <JobItemLoading num={4} />,
2019
})
21-
const VideosList = dynamic(() => import('./VideosList'), {
22-
loading: () => <VideoItemLoading num={4} />,
23-
})
2420
const ReposList = dynamic(() => import('./ReposList'), {
2521
loading: () => <RepoItemLoading num={4} />,
2622
})
@@ -32,9 +28,6 @@ const ContentList = (props) => {
3228
case THREAD.JOB:
3329
return <JobsList props={props} />
3430

35-
case THREAD.VIDEO:
36-
return <VideosList props={props} />
37-
3831
case THREAD.REPO:
3932
return <ReposList props={props} />
4033

src/components/PagedContents/VideosList.js

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

src/components/PagedContents/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const PagedContents = ({
6565
}
6666

6767
PagedContents.propTypes = {
68-
thread: T.oneOf([THREAD.POST, THREAD.JOB, THREAD.VIDEO, THREAD.REPO]),
68+
thread: T.oneOf([THREAD.POST, THREAD.JOB, THREAD.REPO]),
6969
cover: T.oneOf(['avatar', 'source']),
7070
active: T.object,
7171
data: T.shape({

src/components/Switcher/Tabs/LocalIcon.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
TabCityIcon,
99
TabJobIcon,
1010
TabWikiIcon,
11-
TabVideoIcon,
1211
TabRepoIcon,
1312
TabCheatsheetIcon,
1413
// user
@@ -43,9 +42,6 @@ const TabIcon = ({ raw, active, small }) => {
4342
case 'wiki':
4443
return <TabWikiIcon active={active ? 1 : 0} small={small} />
4544

46-
case 'video':
47-
return <TabVideoIcon active={active ? 1 : 0} small={small} />
48-
4945
case 'repo':
5046
return <TabRepoIcon active={active ? 1 : 0} small={small} />
5147

0 commit comments

Comments
 (0)