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

Commit 37728b5

Browse files
authored
chore: replace assets endpoint (#1381)
* chore: replace assets endpoint * chore: change api endpoint
1 parent 43f42e5 commit 37728b5

File tree

13 files changed

+50
-52
lines changed

13 files changed

+50
-52
lines changed

config/config.ci.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"//--- endpoint configs ---//": "",
33
"// GRAPHQL_ENDPOINT": "http://localhost:4001/graphiql",
4-
"GRAPHQL_ENDPOINT": "https://api.coderplanets.com/graphiql"
4+
"GRAPHQL_ENDPOINT": "https://api.groupher.com/graphiql"
55
}

config/config.dev.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"//--- endpoint configs ---//": "",
33
"GRAPHQL_ENDPOINT": "http://localhost:4001/graphiql",
4-
"// GRAPHQL_ENDPOINT": "https://api.coderplanets.com/graphiql"
4+
"// GRAPHQL_ENDPOINT": "https://api.groupher.com/graphiql"
55
}

config/config.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@
4242
"grey": 11
4343
},
4444
"//--- endpoint configs ---//": "",
45-
"ASSETS_ENDPOINT": "https://assets.coderplanets.com",
46-
"ICON": "https://assets.coderplanets.com/icons/static",
47-
"ICON_BASE": "https://assets.coderplanets.com/icons",
48-
"ICON_CMD": "https://assets.coderplanets.com/icons/cmd",
49-
"DEFAULT_ICON": "https://assets.coderplanets.com/icons/cmd/cheatsheet.svg",
50-
"DEFAULT_USER_AVATAR": "https://assets.coderplanets.com/icons/cmd/alien_user3.svg",
45+
"ASSETS_ENDPOINT": "https://assets.groupher.com",
46+
"ICON": "https://assets.groupher.com/icons/static",
47+
"ICON_BASE": "https://assets.groupher.com/icons",
48+
"ICON_CMD": "https://assets.groupher.com/icons/cmd",
49+
"DEFAULT_ICON": "https://assets.groupher.com/icons/cmd/cheatsheet.svg",
50+
"DEFAULT_USER_AVATAR": "https://assets.groupher.com/icons/cmd/alien_user3.svg",
5151
"GRAPHQL_ENDPOINT": "http://localhost:4001/graphiql",
5252
"SITE_URL": "https://coderplanets.com",
5353
"SITE_URL_SHORT": "https://coderplanets.com",
@@ -58,7 +58,7 @@
5858
"MENTION_USER_ADDR": "https://coderplanets.com/users/",
5959
"//--- contact configs ---//": "",
6060
"EMAIL_SUPPORT": "[email protected]",
61-
"// GRAPHQL_ENDPOINT": "https://api.coderplanets.com/graphiql",
61+
"// GRAPHQL_ENDPOINT": "https://api.groupher.com/graphiql",
6262
"// 1000 * 60 * 10 = 10 mins": "",
6363
"SSR_CACHE_TIME": 60000
6464
}

config/config.prod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"//--- endpoint configs ---//": "",
3-
"GRAPHQL_ENDPOINT": "https://api.coderplanets.com/graphiql"
3+
"GRAPHQL_ENDPOINT": "https://api.groupher.com/graphiql"
44
}

config/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ export const DEFAULT_THEME = CONFIG.DEFAULT_THEME as TThemeName
99

1010
export { APP_VERSION } from './version'
1111

12-
export const SITE_LOGO =
13-
'https://assets.coderplanets.com/icons/static/new-logo.jpg'
12+
export const SITE_LOGO = 'https://assets.groupher.com/icons/static/new-logo.jpg'
1413

1514
export const {
1615
GRAPHQL_ENDPOINT,

src/containers/content/RecipesContent/Footer/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ import {
1717
Avatar,
1818
} from '../styles/footer'
1919

20-
const FAKE_AVATAR =
21-
'https://assets.coderplanets.com/icons/cmd/hot/hackernews.jpeg'
20+
const FAKE_AVATAR = 'https://assets.groupher.com/icons/cmd/hot/hackernews.jpeg'
2221

2322
const Footer = () => {
2423
return (

src/containers/content/WorksContent/RightSidebar/InterviewsList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
UpvoteIcon,
1313
} from '../styles/right_sidebar/interviews_list'
1414

15-
// const icon = 'https://assets.coderplanets.com/works/market1.jpeg'
15+
// const icon = 'https://assets.groupher.com/works/market1.jpeg'
1616

1717
const Interview: React.FC = () => {
1818
return (

src/widgets/Cards/JobCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const JobCard: FC<TProps> = ({
5858
id: '1',
5959
title: 'react',
6060
raw: 'react',
61-
logo: 'https://assets.coderplanets.com/icons/static/new-logo.jpg',
61+
logo: 'https://assets.groupher.com/icons/static/new-logo.jpg',
6262
desc: 'maybe the most popular UI framework for web, maybe the most popular UI framework for web',
6363
subscribersCount: 100,
6464
}

src/widgets/GalleryHub/ImageGallery/MasonryGallery.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const items = [
3434
id: '2',
3535
title: '圣母百花大教堂',
3636
nation: 'italy',
37-
imgSrc: 'https://assets.coderplanets.com/navi/arch/wns.jpg',
37+
imgSrc: 'https://assets.groupher.com/navi/arch/wns.jpg',
3838
},
3939
{
4040
id: '3',
@@ -58,7 +58,7 @@ const items = [
5858
id: '6',
5959
title: '圣母百花大教堂',
6060
nation: 'italy',
61-
imgSrc: 'https://assets.coderplanets.com/navi/arch/wqsqpsngny.jpeg',
61+
imgSrc: 'https://assets.groupher.com/navi/arch/wqsqpsngny.jpeg',
6262
},
6363
]
6464

src/widgets/GalleryHub/ImageGallery/index.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -48,44 +48,44 @@ const tmpItems = [
4848
addr: 'coderplanets.com',
4949
title: '圣母百花大教堂',
5050
nation: 'italy',
51-
imgSrc: 'https://assets.coderplanets.com/navi/arch/wqsqpsngny.jpeg',
52-
imgSrc2: 'https://assets.coderplanets.com/navi/arch/wns.jpg',
53-
imgSrc3: 'https://assets.coderplanets.com/navi/arch/wqsqpsngny.jpeg',
51+
imgSrc: 'https://assets.groupher.com/navi/arch/wqsqpsngny.jpeg',
52+
imgSrc2: 'https://assets.groupher.com/navi/arch/wns.jpg',
53+
imgSrc3: 'https://assets.groupher.com/navi/arch/wqsqpsngny.jpeg',
5454
// desc: '最性感的开发者社区',
55-
icon: 'https://assets.coderplanets.com/icons/pl/javascript.png',
55+
icon: 'https://assets.groupher.com/icons/pl/javascript.png',
5656
},
5757
{
5858
id: '1',
5959
addr: 'elixir.com',
6060
title: '威尼斯总督府',
6161
nation: 'italy',
62-
imgSrc: 'https://assets.coderplanets.com/navi/arch/wns.jpg',
63-
imgSrc2: 'https://assets.coderplanets.com/navi/arch/wns.jpg',
64-
imgSrc3: 'https://assets.coderplanets.com/navi/arch/wqsqpsngny.jpeg',
62+
imgSrc: 'https://assets.groupher.com/navi/arch/wns.jpg',
63+
imgSrc2: 'https://assets.groupher.com/navi/arch/wns.jpg',
64+
imgSrc3: 'https://assets.groupher.com/navi/arch/wqsqpsngny.jpeg',
6565
// desc: '最性感的开发者社区',
66-
icon: 'https://assets.coderplanets.com/icons/pl/elixir.png',
66+
icon: 'https://assets.groupher.com/icons/pl/elixir.png',
6767
},
6868
{
6969
id: '2',
7070
addr: 'coderplanets.com',
7171
title: '圣母百花大教堂',
7272
nation: 'italy',
73-
imgSrc: 'https://assets.coderplanets.com/navi/arch/wqsqpsngny.jpeg',
74-
imgSrc2: 'https://assets.coderplanets.com/navi/arch/wns.jpg',
75-
imgSrc3: 'https://assets.coderplanets.com/navi/arch/wqsqpsngny.jpeg',
73+
imgSrc: 'https://assets.groupher.com/navi/arch/wqsqpsngny.jpeg',
74+
imgSrc2: 'https://assets.groupher.com/navi/arch/wns.jpg',
75+
imgSrc3: 'https://assets.groupher.com/navi/arch/wqsqpsngny.jpeg',
7676
// desc: '最性感的开发者社区',
77-
icon: 'https://assets.coderplanets.com/icons/pl/javascript.png',
77+
icon: 'https://assets.groupher.com/icons/pl/javascript.png',
7878
},
7979
{
8080
id: '3',
8181
addr: 'elixir.com',
8282
title: '威尼斯总督府',
8383
nation: 'italy',
84-
imgSrc: 'https://assets.coderplanets.com/navi/arch/wns.jpg',
85-
imgSrc2: 'https://assets.coderplanets.com/navi/arch/wns.jpg',
86-
imgSrc3: 'https://assets.coderplanets.com/navi/arch/wqsqpsngny.jpeg',
84+
imgSrc: 'https://assets.groupher.com/navi/arch/wns.jpg',
85+
imgSrc2: 'https://assets.groupher.com/navi/arch/wns.jpg',
86+
imgSrc3: 'https://assets.groupher.com/navi/arch/wqsqpsngny.jpeg',
8787
// desc: '最性感的开发者社区',
88-
icon: 'https://assets.coderplanets.com/icons/pl/elixir.png',
88+
icon: 'https://assets.groupher.com/icons/pl/elixir.png',
8989
},
9090
]
9191

0 commit comments

Comments
 (0)