Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ yarn-error.log
.env.local
schema.graphql
cypress//integration/examples
cypress/videos/
.vscode/
.DS_Store
.eslintcache

cypress/videos/*
2 changes: 0 additions & 2 deletions src/components/ContentFilter/DesktopView.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ ContentFilter.propTypes = {
field: T.string,
finance: T.string,
scale: T.string,
// video
source: T.string,
}),
onSelect: T.func.isRequired,
Expand Down Expand Up @@ -90,7 +89,6 @@ ContentFilter.defaultProps = {
field: '',
finance: '',
scale: '',
// video
source: '',
},
thread: THREAD.POST,
Expand Down
48 changes: 0 additions & 48 deletions src/components/ContentFilter/FilterPanel/VideoSourceFilter.js

This file was deleted.

14 changes: 0 additions & 14 deletions src/components/ContentFilter/FilterPanel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import JobEducationFilter from './JobEducationFilter'
import JobFieldFilter from './JobFieldFilter'
import JobFinanceFilter from './JobFinanceFilter'
import JobScaleFilter from './JobScaleFilter'
// video
import VideoSourceFilter from './VideoSourceFilter'

import { FilterPanelWrapper } from '../styles'

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

case THREAD.VIDEO:
return (
<FilterPanelWrapper>
<TimeFilter activeFilter={activeFilter} onSelect={onSelect} />
<SortFilter activeFilter={activeFilter} onSelect={onSelect} />
<VideoSourceFilter activeFilter={activeFilter} onSelect={onSelect} />
{isLogin && (
<ViewedFilter activeFilter={activeFilter} onSelect={onSelect} />
)}
</FilterPanelWrapper>
)

case THREAD.REPO:
return (
<FilterPanelWrapper>
Expand Down
49 changes: 0 additions & 49 deletions src/components/LoadingEffects/VideoItemLoading.js

This file was deleted.

1 change: 0 additions & 1 deletion src/components/LoadingEffects/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
export { default as CheatSheetLoading } from './CheatSheetLoading'
export { default as CommentLoading } from './CommentLoading'
export { default as PostItemLoading } from './PostItemLoading'
export { default as VideoItemLoading } from './VideoItemLoading'
export { default as RepoItemLoading } from './RepoItemLoading'
export { default as JobItemLoading } from './JobItemLoading'
export { default as EditorLoading } from './EditorLoading'
Expand Down
7 changes: 0 additions & 7 deletions src/components/PagedContents/ContentList.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { THREAD } from '@/constant'
import {
PostItemLoading,
JobItemLoading,
VideoItemLoading,
RepoItemLoading,
} from '@/components/LoadingEffects'

Expand All @@ -18,9 +17,6 @@ export const PostsList = dynamic(() => import('./PostsList'), {
const JobsList = dynamic(() => import('./JobsList'), {
loading: () => <JobItemLoading num={4} />,
})
const VideosList = dynamic(() => import('./VideosList'), {
loading: () => <VideoItemLoading num={4} />,
})
const ReposList = dynamic(() => import('./ReposList'), {
loading: () => <RepoItemLoading num={4} />,
})
Expand All @@ -32,9 +28,6 @@ const ContentList = (props) => {
case THREAD.JOB:
return <JobsList props={props} />

case THREAD.VIDEO:
return <VideosList props={props} />

case THREAD.REPO:
return <ReposList props={props} />

Expand Down
59 changes: 0 additions & 59 deletions src/components/PagedContents/VideosList.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/PagedContents/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const PagedContents = ({
}

PagedContents.propTypes = {
thread: T.oneOf([THREAD.POST, THREAD.JOB, THREAD.VIDEO, THREAD.REPO]),
thread: T.oneOf([THREAD.POST, THREAD.JOB, THREAD.REPO]),
cover: T.oneOf(['avatar', 'source']),
active: T.object,
data: T.shape({
Expand Down
4 changes: 0 additions & 4 deletions src/components/Switcher/Tabs/LocalIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
TabCityIcon,
TabJobIcon,
TabWikiIcon,
TabVideoIcon,
TabRepoIcon,
TabCheatsheetIcon,
// user
Expand Down Expand Up @@ -43,9 +42,6 @@ const TabIcon = ({ raw, active, small }) => {
case 'wiki':
return <TabWikiIcon active={active ? 1 : 0} small={small} />

case 'video':
return <TabVideoIcon active={active ? 1 : 0} small={small} />

case 'repo':
return <TabRepoIcon active={active ? 1 : 0} small={small} />

Expand Down
2 changes: 0 additions & 2 deletions src/components/Switcher/styles/tabs/local_icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import TabCitySVG from '@/SvgIcons/TabCitySVG'
import TabJobSVG from '@/SvgIcons/TabJobSVG'
//
import TabWikiSVG from '@/SvgIcons/TabWikiSVG'
import TabVideoSVG from '@/SvgIcons/TabVideoSVG'
import TabRepoSVG from '@/SvgIcons/TabRepoSVG'
import TabCheatsheetSVG from '@/SvgIcons/TabCheatsheetSVG'

Expand Down Expand Up @@ -45,7 +44,6 @@ export const TabUserIcon = commonIcon(TabUserSVG)
export const TabCityIcon = commonIcon(TabCitySVG)
export const TabJobIcon = commonIcon(TabJobSVG)
export const TabWikiIcon = commonIcon(TabWikiSVG)
export const TabVideoIcon = commonIcon(TabVideoSVG)
export const TabRepoIcon = commonIcon(TabRepoSVG)
export const TabCheatsheetIcon = commonIcon(TabCheatsheetSVG)

Expand Down
2 changes: 1 addition & 1 deletion src/components/ThreadSelector/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ ThreadSelector.propTypes = {
}

ThreadSelector.defaultProps = {
options: [THREAD.POST, THREAD.VIDEO, THREAD.REPO, THREAD.JOB],
options: [THREAD.POST, THREAD.REPO, THREAD.JOB],
active: THREAD.POST,
onSelect: log,
totalCount: 0,
Expand Down
97 changes: 0 additions & 97 deletions src/components/VideoInfoCard/index.js

This file was deleted.

Loading