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

Commit 3973269

Browse files
committed
fix(constant): import constant fix
1 parent 59f54d7 commit 3973269

File tree

9 files changed

+37
-46
lines changed

9 files changed

+37
-46
lines changed

containers/Doraemon/logic/Pocket.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ import {
1313
merge,
1414
} from 'rxjs/operators'
1515

16-
import { buildLog, isEmptyValue, EVENT } from '@utils'
16+
import { EVENT } from '@constant'
17+
import { buildLog, isEmptyValue } from '@utils'
1718
import {
1819
searchablePrefix,
1920
startWithSpecialPrefix,

containers/Doraemon/logic/jumper.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
import R from 'ramda'
22

3-
import {
4-
Global,
5-
dispatchEvent,
6-
EVENT,
7-
TYPE,
8-
ROUTE,
9-
thread2Subpath,
10-
THREAD,
11-
} from '@utils'
3+
import { EVENT, TYPE, ROUTE, THREAD } from '@constant'
4+
import { Global, dispatchEvent, thread2Subpath } from '@utils'
125

136
export const jumpToCommunity = (store, communityRaw) => {
147
const { mainPath, subPath } = store.curRoute

containers/Doraemon/logic/search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { THREAD } from '@utils'
1+
import { THREAD } from '@constant'
22
import S from '../schema'
33

44
// search contents: community, post, job, user ...

containers/Preview/styles/add_on.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import styled from 'styled-components'
22

3+
import { TYPE } from '@constant'
4+
import { theme, animate, cs } from '@utils'
5+
36
import Img from '@components/Img'
4-
import { theme, TYPE, animate, cs } from '@utils'
5-
// import { theme } from '@utils'
67

78
export const Wrapper = styled.div`
89
width: 10%;

containers/Preview/styles/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import styled from 'styled-components'
22

33
import R from 'ramda'
4-
import { theme, TYPE, animate, cs } from '@utils'
4+
5+
import { TYPE } from '@constant'
6+
import { theme, animate, cs } from '@utils'
57

68
const WIDE_CASE = [
79
// post

containers/UserSettings/logic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import { asyncSuit, buildLog, dispatchEvent } from '@utils'
77
/* eslint-disable-next-line */
88
const log = buildLog('L:UserSettings')
99

10-
const sr71$ = new SR71()
1110
const { SR71, $solver } = asyncSuit
1211

12+
const sr71$ = new SR71()
1313
let sub$ = null
1414
let store = null
1515

pages/communities.js

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,19 @@ import React from 'react'
55
import { Provider } from 'mobx-react'
66
import R from 'ramda'
77

8+
import { ROUTE } from '@constant'
9+
import {
10+
getJwtToken,
11+
makeGQClient,
12+
queryStringToJSON,
13+
nilOrEmpty,
14+
getSubPath,
15+
ssrAmbulance,
16+
parseTheme,
17+
} from '@utils'
18+
819
import AnalysisService from '@services/Analysis'
20+
import initRootStore from '@stores/init'
921

1022
import GlobalLayout from '@containers/GlobalLayout'
1123
import ThemeWrapper from '@containers/ThemeWrapper'
@@ -21,19 +33,6 @@ import Footer from '@containers/Footer'
2133

2234
import { P } from '@schemas'
2335

24-
import {
25-
getJwtToken,
26-
makeGQClient,
27-
queryStringToJSON,
28-
nilOrEmpty,
29-
getSubPath,
30-
ROUTE,
31-
ssrAmbulance,
32-
parseTheme,
33-
} from '@utils'
34-
35-
import initRootStore from '@stores/init'
36-
3736
/* import PostsThreadSchema from '@containers/PostsThread/schema' */
3837

3938
// try to fix safari bug

pages/user.js

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@ import R from 'ramda'
77
import { SocialProfileJsonLd } from 'next-seo'
88

99
import { SITE_URL } from '@config'
10+
import { ROUTE, USER_THREAD } from '@constant'
11+
import {
12+
getJwtToken,
13+
makeGQClient,
14+
queryStringToJSON,
15+
nilOrEmpty,
16+
getSubPath,
17+
pagedFilter,
18+
ssrAmbulance,
19+
parseTheme,
20+
} from '@utils'
21+
import initRootStore from '@stores/init'
1022

1123
import AnalysisService from '@services/Analysis'
1224
import GlobalLayout from '@containers/GlobalLayout'
@@ -25,21 +37,6 @@ import { P } from '@schemas'
2537
import ErrorPage from '@components/ErrorPage'
2638
// import { AnalysisService, ErrorPage } from '@components'
2739

28-
import {
29-
getJwtToken,
30-
makeGQClient,
31-
queryStringToJSON,
32-
nilOrEmpty,
33-
getSubPath,
34-
USER_THREAD,
35-
ROUTE,
36-
pagedFilter,
37-
ssrAmbulance,
38-
parseTheme,
39-
} from '@utils'
40-
41-
import initRootStore from '@stores/init'
42-
4340
// try to fix safari bug
4441
// see https://github.com/yahoo/react-intl/issues/422
4542
global.Intl = require('intl')

utils/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
export { default as asyncSuit } from './async_suit'
66

7-
export {
8-
C11N, // NON_FILL_COMMUNITY, // PAYMENT_USAGE, // PAYMENT_METHOD,
9-
} from './constants'
7+
export { C11N } from './constants'
108

119
export { buildLog } from './logger'
1210

0 commit comments

Comments
 (0)