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

Commit 3e7d7f4

Browse files
committed
fix(constant): c11n import which not catched by eslint
1 parent b4e4394 commit 3e7d7f4

File tree

12 files changed

+59
-73
lines changed

12 files changed

+59
-73
lines changed

components/RepoItem/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
import React from 'react'
88
import T from 'prop-types'
99

10-
import { buildLog, cutFrom, C11N } from '@utils'
11-
import ArticleItemPrefixLabel from '@components/ArticleItemPrefixLabel'
10+
import { buildLog, cutFrom } from '@utils'
11+
import { C11N } from '@constant'
1212

13+
import ArticleItemPrefixLabel from '@components/ArticleItemPrefixLabel'
1314
import Header from './Header'
1415
import Footer from './Footer'
1516

components/Tabber/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import React from 'react'
66
import T from 'prop-types'
77

8-
import { TYPE, THREAD } from '@constant'
9-
import { buildLog, C11N, sortByIndex } from '@utils'
8+
import { TYPE, THREAD, C11N } from '@constant'
9+
import { buildLog, sortByIndex } from '@utils'
1010

1111
import NormalView from './NormalView'
1212
import BriefView from './BriefView'

components/VideoItem/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import T from 'prop-types'
99
import TimeAgo from 'timeago-react'
1010

1111
import { ICON_CMD } from '@config'
12-
import { buildLog, cutFrom, C11N } from '@utils'
12+
import { C11N } from '@constant'
13+
import { buildLog, cutFrom } from '@utils'
1314

1415
import DotDivider from '@components/DotDivider'
1516
import VideoSourceInfo from '@components/VideoSourceInfo'

containers/CommunityBanner/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
*/
66
import React from 'react'
77

8-
import { connectStore, buildLog, C11N } from '@utils'
8+
import { C11N } from '@constant'
9+
import { connectStore, buildLog } from '@utils'
910

1011
import DigestView from './DigestView'
1112
import BriefView from './BriefView'

pages/home/posts.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import NextSeo from 'next-seo'
55

66
import { PAGE_SIZE, SITE_URL } from '@config'
77
import initRootStore from '@stores/init'
8-
98
import AnalysisService from '@services/Analysis'
109

1110
import GlobalLayout from '@containers/GlobalLayout'
@@ -20,7 +19,6 @@ import CommunityBanner from '@containers/CommunityBanner'
2019
import CommunityContent from '@containers/CommunityContent'
2120
import Footer from '@containers/Footer'
2221
import ErrorBox from '@containers/ErrorBox'
23-
2422
import ErrorPage from '@components/ErrorPage'
2523

2624
import {

pages/job.js

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ import R from 'ramda'
44
import { BlogJsonLd } from 'next-seo'
55

66
import { PAGE_SIZE, SITE_URL } from '@config'
7+
import { TYPE, ROUTE, THREAD } from '@constant'
8+
import {
9+
getJwtToken,
10+
makeGQClient,
11+
getMainPath,
12+
getSubPath,
13+
getThirdPath,
14+
nilOrEmpty,
15+
ssrAmbulance,
16+
parseTheme,
17+
} from '@utils'
18+
import initRootStore from '@stores/init'
719

820
import AnalysisService from '@services/Analysis'
921

@@ -23,23 +35,6 @@ import { P } from '@schemas'
2335
import ErrorPage from '@components/ErrorPage'
2436

2537
// import { AnalysisService, ErrorPage } from '@components'
26-
27-
import {
28-
getJwtToken,
29-
makeGQClient,
30-
getMainPath,
31-
getSubPath,
32-
getThirdPath,
33-
ROUTE,
34-
THREAD,
35-
TYPE,
36-
nilOrEmpty,
37-
ssrAmbulance,
38-
parseTheme,
39-
} from '@utils'
40-
41-
import initRootStore from '@stores/init'
42-
4338
// try to fix safari bug
4439
// see https://github.com/yahoo/react-intl/issues/422
4540
global.Intl = require('intl')

pages/post.js

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ import R from 'ramda'
44
import { BlogJsonLd } from 'next-seo'
55

66
import { PAGE_SIZE, SITE_URL } from '@config'
7+
import { TYPE, ROUTE, THREAD } from '@constant'
8+
import {
9+
getJwtToken,
10+
nilOrEmpty,
11+
makeGQClient,
12+
getMainPath,
13+
getSubPath,
14+
getThirdPath,
15+
ssrAmbulance,
16+
parseTheme,
17+
} from '@utils'
718
import initRootStore from '@stores/init'
819

920
import AnalysisService from '@services/Analysis'
@@ -21,21 +32,6 @@ import Footer from '@containers/Footer'
2132
import ErrorBox from '@containers/ErrorBox'
2233

2334
import ErrorPage from '@components/ErrorPage'
24-
25-
import {
26-
getJwtToken,
27-
nilOrEmpty,
28-
makeGQClient,
29-
getMainPath,
30-
getSubPath,
31-
getThirdPath,
32-
TYPE,
33-
ROUTE,
34-
THREAD,
35-
ssrAmbulance,
36-
parseTheme,
37-
} from '@utils'
38-
3935
import { P } from '@schemas'
4036

4137
// try to fix safari bug

pages/repo.js

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ import R from 'ramda'
44
import { BlogJsonLd } from 'next-seo'
55

66
import { PAGE_SIZE, SITE_URL } from '@config'
7+
import { TYPE, ROUTE, THREAD } from '@constant'
8+
import {
9+
getJwtToken,
10+
nilOrEmpty,
11+
makeGQClient,
12+
getMainPath,
13+
getSubPath,
14+
getThirdPath,
15+
ssrAmbulance,
16+
parseTheme,
17+
} from '@utils'
718
import initRootStore from '@stores/init'
819

920
import AnalysisService from '@services/Analysis'
@@ -21,20 +32,6 @@ import ErrorBox from '@containers/ErrorBox'
2132

2233
import ErrorPage from '@components/ErrorPage'
2334

24-
import {
25-
getJwtToken,
26-
nilOrEmpty,
27-
makeGQClient,
28-
getMainPath,
29-
getSubPath,
30-
getThirdPath,
31-
TYPE,
32-
ROUTE,
33-
THREAD,
34-
ssrAmbulance,
35-
parseTheme,
36-
} from '@utils'
37-
3835
import { P } from '@schemas'
3936

4037
// try to fix safari bug

pages/video.js

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ import R from 'ramda'
44
import { BlogJsonLd } from 'next-seo'
55

66
import { PAGE_SIZE, SITE_URL } from '@config'
7+
import { TYPE, ROUTE, THREAD } from '@constant'
8+
import {
9+
getJwtToken,
10+
nilOrEmpty,
11+
makeGQClient,
12+
getMainPath,
13+
getSubPath,
14+
getThirdPath,
15+
ssrAmbulance,
16+
parseTheme,
17+
} from '@utils'
718
import initRootStore from '@stores/init'
819

920
import AnalysisService from '@services/Analysis'
@@ -20,21 +31,6 @@ import Footer from '@containers/Footer'
2031
import ErrorBox from '@containers/ErrorBox'
2132

2233
import ErrorPage from '@components/ErrorPage'
23-
24-
import {
25-
getJwtToken,
26-
nilOrEmpty,
27-
makeGQClient,
28-
getMainPath,
29-
getSubPath,
30-
getThirdPath,
31-
TYPE,
32-
ROUTE,
33-
THREAD,
34-
ssrAmbulance,
35-
parseTheme,
36-
} from '@utils'
37-
3834
import { P } from '@schemas'
3935

4036
// try to fix safari bug

utils/dom_operator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TYPE } from './constants'
1+
import { TYPE } from '@constant'
22
// side effects, need refactor
33
/* eslint-disable no-undef */
44
const hasDocument = typeof document === 'object' && document !== null

0 commit comments

Comments
 (0)