This repository was archived by the owner on Nov 8, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +8
-11
lines changed Expand file tree Collapse file tree 6 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 53
53
"SITE_URL_SHORT" : " https://coderplanets.com" ,
54
54
"GITHUB" : " https://github.com/coderplanets" ,
55
55
"GITHUB_WEB_ADDR" : " https://github.com/coderplanets/coderplanets_web" ,
56
- "ABOUT_LINK" : " /works /5" ,
56
+ "ABOUT_LINK" : " /w /5" ,
57
57
"ISSUE_ADDR" : " https://github.com/coderplanets/coderplanets_web/issues" ,
58
58
"MENTION_USER_ADDR" : " https://coderplanets.com/users/" ,
59
59
"//--- contact configs ---//" : " " ,
File renamed without changes.
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ export const getServerSideProps = async (context) => {
71
71
}
72
72
}
73
73
74
- const GalleryPage = ( props ) => {
74
+ const WorksPage = ( props ) => {
75
75
const store = useStore ( props )
76
76
const seoConfig = worksSEO ( )
77
77
@@ -84,4 +84,4 @@ const GalleryPage = (props) => {
84
84
)
85
85
}
86
86
87
- export default GalleryPage
87
+ export default WorksPage
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import { isMobile } from 'react-device-detect'
11
11
12
12
import type { TWorks } from '@/spec'
13
13
import { ICON , ICON_CMD } from '@/config'
14
- import { THREAD } from '@/constant'
14
+ import { ROUTE } from '@/constant'
15
15
16
16
import { cutRest } from '@/utils/helper'
17
17
import { buildLog } from '@/utils/logger'
@@ -81,7 +81,7 @@ const WorksCard: FC<TProps> = ({
81
81
{ preview ? (
82
82
< PreviewName as = "div" > { title || '--' } </ PreviewName >
83
83
) : (
84
- < Link href = { `/${ THREAD . WORKS } /${ id } ` } passHref >
84
+ < Link href = { `/${ ROUTE . W } /${ id } ` } passHref prefetch = { false } >
85
85
< Name > { title || '--' } </ Name >
86
86
</ Link >
87
87
) }
Original file line number Diff line number Diff line change @@ -29,11 +29,8 @@ const DesktopView: FC<TProps> = ({ type }) => {
29
29
</ SiteLink >
30
30
</ Link >
31
31
< DotDivider space = { splitMargin } />
32
- < Link href = { `/${ ROUTE . GALLERY } ` } passHref >
33
- < SiteLink
34
- active = { mainPath === ROUTE . GALLERY }
35
- testid = "header-works-link"
36
- >
32
+ < Link href = { `/${ ROUTE . WORKS } ` } passHref >
33
+ < SiteLink active = { mainPath === ROUTE . WORKS } testid = "header-works-link" >
37
34
作品
38
35
</ SiteLink >
39
36
</ Link >
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ export const NON_COMMUNITY_ROUTE = {
3
3
MEETUPS : 'meetups' ,
4
4
HAVE_A_DRINK : 'have-a-drink' ,
5
5
COOL_GUIDE : 'cool-guide' ,
6
+ W : 'w' ,
6
7
WORKS : 'works' ,
7
8
PLAZA : 'plaza' ,
8
- GALLERY : 'gallery' ,
9
9
TRENDING : 'trending' ,
10
10
TOPICS : 'topics' ,
11
11
SPONSOR : 'sponsor' ,
You can’t perform that action at this time.
0 commit comments