This repository was archived by the owner on Nov 8, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 12 files changed +59
-73
lines changed Expand file tree Collapse file tree 12 files changed +59
-73
lines changed Original file line number Diff line number Diff line change 77import React from 'react'
88import 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'
1314import Header from './Header'
1415import Footer from './Footer'
1516
Original file line number Diff line number Diff line change 55import React from 'react'
66import 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
1111import NormalView from './NormalView'
1212import BriefView from './BriefView'
Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ import T from 'prop-types'
99import TimeAgo from 'timeago-react'
1010
1111import { ICON_CMD } from '@config'
12- import { buildLog , cutFrom , C11N } from '@utils'
12+ import { C11N } from '@constant'
13+ import { buildLog , cutFrom } from '@utils'
1314
1415import DotDivider from '@components/DotDivider'
1516import VideoSourceInfo from '@components/VideoSourceInfo'
Original file line number Diff line number Diff line change 55 */
66import React from 'react'
77
8- import { connectStore , buildLog , C11N } from '@utils'
8+ import { C11N } from '@constant'
9+ import { connectStore , buildLog } from '@utils'
910
1011import DigestView from './DigestView'
1112import BriefView from './BriefView'
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import NextSeo from 'next-seo'
55
66import { PAGE_SIZE , SITE_URL } from '@config'
77import initRootStore from '@stores/init'
8-
98import AnalysisService from '@services/Analysis'
109
1110import GlobalLayout from '@containers/GlobalLayout'
@@ -20,7 +19,6 @@ import CommunityBanner from '@containers/CommunityBanner'
2019import CommunityContent from '@containers/CommunityContent'
2120import Footer from '@containers/Footer'
2221import ErrorBox from '@containers/ErrorBox'
23-
2422import ErrorPage from '@components/ErrorPage'
2523
2624import {
Original file line number Diff line number Diff line change @@ -4,6 +4,18 @@ import R from 'ramda'
44import { BlogJsonLd } from 'next-seo'
55
66import { 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
820import AnalysisService from '@services/Analysis'
921
@@ -23,23 +35,6 @@ import { P } from '@schemas'
2335import 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
4540global . Intl = require ( 'intl' )
Original file line number Diff line number Diff line change @@ -4,6 +4,17 @@ import R from 'ramda'
44import { BlogJsonLd } from 'next-seo'
55
66import { 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'
718import initRootStore from '@stores/init'
819
920import AnalysisService from '@services/Analysis'
@@ -21,21 +32,6 @@ import Footer from '@containers/Footer'
2132import ErrorBox from '@containers/ErrorBox'
2233
2334import 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-
3935import { P } from '@schemas'
4036
4137// try to fix safari bug
Original file line number Diff line number Diff line change @@ -4,6 +4,17 @@ import R from 'ramda'
44import { BlogJsonLd } from 'next-seo'
55
66import { 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'
718import initRootStore from '@stores/init'
819
920import AnalysisService from '@services/Analysis'
@@ -21,20 +32,6 @@ import ErrorBox from '@containers/ErrorBox'
2132
2233import 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-
3835import { P } from '@schemas'
3936
4037// try to fix safari bug
Original file line number Diff line number Diff line change @@ -4,6 +4,17 @@ import R from 'ramda'
44import { BlogJsonLd } from 'next-seo'
55
66import { 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'
718import initRootStore from '@stores/init'
819
920import AnalysisService from '@services/Analysis'
@@ -20,21 +31,6 @@ import Footer from '@containers/Footer'
2031import ErrorBox from '@containers/ErrorBox'
2132
2233import 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-
3834import { P } from '@schemas'
3935
4036// try to fix safari bug
Original file line number Diff line number Diff line change 1- import { TYPE } from './constants '
1+ import { TYPE } from '@constant '
22// side effects, need refactor
33/* eslint-disable no-undef */
44const hasDocument = typeof document === 'object' && document !== null
You can’t perform that action at this time.
0 commit comments