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

Commit ea1fae0

Browse files
committed
refactor: use @model instead of sharedModel
1 parent 2e3a131 commit ea1fae0

File tree

19 files changed

+19
-18
lines changed

19 files changed

+19
-18
lines changed

.babelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"@constant": "./utils/constant/",
5656
"@config":"./config",
5757
"@stores":"./stores",
58+
"@model": "./stores/SharedModel",
5859
"@model":"./stores/SharedModel",
5960
"@utils":"./utils",
6061
"@schemas":"./containers/schemas",

containers/AccountEditor/store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import { types as t, getParent } from 'mobx-state-tree'
77
import R from 'ramda'
88

9-
import { User } from 'stores/SharedModel'
9+
import { User } from '@model'
1010
import { markStates, buildLog, stripMobx } from '@utils'
1111

1212
/* eslint-disable no-unused-vars */

containers/AccountViewer/store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import { types as t, getParent } from 'mobx-state-tree'
77
// import R from 'ramda'
88

9-
import { User, EmptyUser } from 'stores/SharedModel'
9+
import { User, EmptyUser } from '@model'
1010
import { markStates, buildLog, stripMobx } from '@utils'
1111
/* eslint-disable no-unused-vars */
1212
const log = buildLog('S:AccountViewerStore')

containers/CategoryEditor/store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import { types as t, getParent } from 'mobx-state-tree'
77
import R from 'ramda'
88

9-
import { Category } from 'stores/SharedModel'
9+
import { Category } from '@model'
1010
import { markStates, buildLog, stripMobx } from '@utils'
1111
/* eslint-disable no-unused-vars */
1212
const log = buildLog('S:CategoryEditorStore')

containers/CategorySetter/store.js

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

66
import { types as t, getParent } from 'mobx-state-tree'
77
// import R from 'ramda'
8-
import { PagedCategories } from 'stores/SharedModel'
8+
import { PagedCategories } from '@model'
99

1010
import { markStates, buildLog, stripMobx } from '@utils'
1111
/* eslint-disable no-unused-vars */

containers/Comments/store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import R from 'ramda'
88

99
import { TYPE } from '@constant'
1010
import { markStates, buildLog, stripMobx, changeset } from '@utils'
11-
import { Comment, PagedComments, emptyPagiData } from 'stores/SharedModel'
11+
import { Comment, PagedComments, emptyPagiData } from '@model'
1212

1313
/* eslint-disable no-unused-vars */
1414
const log = buildLog('S:CommentsStore')

containers/CommunitiesContent/store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
PagedCategories,
1717
PagedCommunities,
1818
emptyPagiData,
19-
} from 'stores/SharedModel'
19+
} from '@model'
2020

2121
import { markStates, buildLog, stripMobx } from '@utils'
2222

containers/CommunityContent/store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
PagedThreads,
1717
PagedCategories,
1818
emptyPagiData,
19-
} from 'stores/SharedModel'
19+
} from '@model'
2020

2121
import { markStates, buildLog, stripMobx } from '@utils'
2222
/* eslint-disable no-unused-vars */

containers/CommunityEditor/store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import { types as t, getParent } from 'mobx-state-tree'
77
import R from 'ramda'
88

9-
import { Community } from 'stores/SharedModel'
9+
import { Community } from '@model'
1010
import { markStates, buildLog, stripMobx } from '@utils'
1111

1212
/* eslint-disable no-unused-vars */

containers/CommunitySetter/store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import { types as t, getParent } from 'mobx-state-tree'
77
// import R from 'ramda'
88

9-
import { PagedCommunities } from 'stores/SharedModel'
9+
import { PagedCommunities } from '@model'
1010
import { markStates, buildLog, stripMobx } from '@utils'
1111
/* eslint-disable no-unused-vars */
1212
const log = buildLog('S:CommunitySetterStore')

0 commit comments

Comments
 (0)