Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit3e7d7f4

Browse files
committed
fix(constant): c11n import which not catched by eslint
1 parentb4e4394 commit3e7d7f4

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
importReactfrom'react'
88
importTfrom'prop-types'
99

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

13+
importArticleItemPrefixLabelfrom'@components/ArticleItemPrefixLabel'
1314
importHeaderfrom'./Header'
1415
importFooterfrom'./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
importReactfrom'react'
66
importTfrom'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
importNormalViewfrom'./NormalView'
1212
importBriefViewfrom'./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
importTimeAgofrom'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
importDotDividerfrom'@components/DotDivider'
1516
importVideoSourceInfofrom'@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
importReactfrom'react'
77

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

1011
importDigestViewfrom'./DigestView'
1112
importBriefViewfrom'./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
importinitRootStorefrom'@stores/init'
8-
98
importAnalysisServicefrom'@services/Analysis'
109

1110
importGlobalLayoutfrom'@containers/GlobalLayout'
@@ -20,7 +19,6 @@ import CommunityBanner from '@containers/CommunityBanner'
2019
importCommunityContentfrom'@containers/CommunityContent'
2120
importFooterfrom'@containers/Footer'
2221
importErrorBoxfrom'@containers/ErrorBox'
23-
2422
importErrorPagefrom'@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+
importinitRootStorefrom'@stores/init'
719

820
importAnalysisServicefrom'@services/Analysis'
921

@@ -23,23 +35,6 @@ import { P } from '@schemas'
2335
importErrorPagefrom'@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-
importinitRootStorefrom'@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
importinitRootStorefrom'@stores/init'
819

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

2334
importErrorPagefrom'@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
importinitRootStorefrom'@stores/init'
819

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

2233
importErrorPagefrom'@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
importinitRootStorefrom'@stores/init'
819

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

2233
importErrorPagefrom'@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
consthasDocument=typeofdocument==='object'&&document!==null

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp