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

Commit 0e701c5

Browse files
authored
refactor(dashboard): basicinfo & re-org codebase (#1337)
* refactor: adjust post element styles * refactor: clean up the missing type when import * style: improve wallpaper section * refactor: extract common comps * refactor: more basic info & adjust sidebar items * feat: add theme color item
1 parent 843238a commit 0e701c5

File tree

60 files changed

+422
-148
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+422
-148
lines changed

src/containers/content/CommunityContent/ClassicLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { FC, memo } from 'react'
88
import { includes } from 'ramda'
99
import { isMobile } from 'react-device-detect'
1010

11-
import { TThread } from '@/spec'
11+
import type { TThread } from '@/spec'
1212
import { ARTICLE_THREAD } from '@/constant'
1313
import { buildLog } from '@/utils/logger'
1414
import CommunityDigest from '@/containers/digest/CommunityDigest'

src/containers/content/HelpCenterContent/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import { types as T, getParent, Instance } from 'mobx-state-tree'
77
import { values } from 'ramda'
88

99
import type { TRootStore, TCommunity } from '@/spec'
10-
import type { TVisibles } from './spec'
1110
import { markStates, toJS } from '@/utils/mobx'
1211

12+
import type { TVisibles } from './spec'
1313
import { VIEW } from './constant'
1414

1515
export const HelpCenterContent = T.model('HelpCenterContent', {

src/containers/content/HelpCenterContent/styles/footer/reaction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import styled from 'styled-components'
22

3-
import { TActive } from '@/spec'
3+
import type { TActive } from '@/spec'
44
import Img from '@/Img'
55
import css, { theme } from '@/utils/css'
66

src/containers/digest/ArticleDigest/logic.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import asyncSuit from '@/utils/async'
66
import { send, errRescue } from '@/utils/helper'
77
import { buildLog } from '@/utils/logger'
88

9-
import uid from '@/utils/uid'
10-
119
import type { TStore } from './store'
1210
import S from './schema'
1311

src/containers/editor/ArticleEditor/logic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useEffect } from 'react'
22
import Router from 'next/router'
33
import { values } from 'ramda'
44

5-
import type { TEditValue, TEditMode, TCommunity, TTag } from '@/spec'
5+
import type { TEditValue, TCommunity, TTag } from '@/spec'
66
import { HCN, ERR } from '@/constant'
77
import { buildLog } from '@/utils/logger'
88
import asyncSuit from '@/utils/async'

src/containers/editor/WallpaperEditor/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { FC, memo } from 'react'
22

3-
import { TWallpaperType } from '@/spec'
3+
import type { TWallpaperType } from '@/spec'
44
import { WALLPAPER_TYPE } from '@/constant'
55

66
import Button from '@/widgets/Buttons/Button'

src/containers/editor/WorksEditor/Content/NamePart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { FC, memo, useEffect, useRef } from 'react'
22

3-
import { TEditMode } from '@/spec'
3+
import type { TEditMode } from '@/spec'
44
import { nilOrEmpty } from '@/utils/validator'
55

66
import PublishRules from './PublishRules'

src/containers/editor/WorksEditor/Content/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { FC, memo } from 'react'
22

3-
import { TSelectOption, TTechCommunities, TEditMode, TUser } from '@/spec'
3+
import type { TSelectOption, TTechCommunities, TEditMode, TUser } from '@/spec'
44

55
import type { TStep, TInputData } from '../spec'
66
import { STEP } from '../constant'

src/containers/editor/WorksEditor/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import { FC } from 'react'
88

9-
import { TMetric } from '@/spec'
9+
import type { TMetric } from '@/spec'
1010
import { METRIC } from '@/constant'
1111

1212
import { buildLog } from '@/utils/logger'

src/containers/thread/CperMapThread/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
import { types as T, getParent, Instance } from 'mobx-state-tree'
77

8+
import type { TCommunity, TTheme, TRootStore } from '@/spec'
89
import { markStates, toJS } from '@/utils/mobx'
9-
import { TCommunity, TTheme, TRootStore } from '@/spec'
1010

1111
const Geo = T.model('Thread', {
1212
city: T.string,

0 commit comments

Comments
 (0)