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.

Commit4808e7a

Browse files
committed
update pkg & fix conflict
1 parentedbb60a commit4808e7a

File tree

25 files changed

+362
-482
lines changed

25 files changed

+362
-482
lines changed

‎containers/Comments/store.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const CommentsStore = t
4141
showReplyPreview:t.optional(t.boolean,false),
4242

4343
// current to be delete comment id, use to target the confirm mask
44-
tobeDeleteId:t.maybe(t.string),
44+
tobeDeleteId:t.maybeNull(t.string),
4545
// words count for current comment (include reply comment)
4646
countCurrent:t.optional(t.number,0),
4747
// cur filter type of comment list
@@ -67,7 +67,7 @@ const CommentsStore = t
6767
extractMentions:t.optional(t.array(t.string),[]),
6868

6969
// parrent comment of current reply
70-
replyToComment:t.maybe(Comment),
70+
replyToComment:t.maybeNull(Comment),
7171

7272
// toggle loading for creating comment
7373
creating:t.optional(t.boolean,false),

‎containers/CommunitiesBanner/store.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const debug = makeDebugger('S:CommunitiesBannerStore')
1414

1515
constCommunitiesBannerStore=t
1616
.model('CommunitiesBannerStore',{
17-
pagedCategories:t.maybe(PagedCategories),
17+
pagedCategories:t.maybeNull(PagedCategories),
1818
activeRaw:t.optional(t.string,'all'),
1919
})
2020
.views(self=>({

‎containers/CommunitiesContent/store.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ const debug = makeDebugger('S:CommunitiesContentStore')
1414

1515
constCommunitiesContentStore=t
1616
.model('CommunitiesContentStore',{
17-
pagedCommunities:t.maybe(PagedCommunities),
17+
pagedCommunities:t.maybeNull(PagedCommunities),
1818
// cur active category
1919
/* category: t.optional(t.string, ''), */
2020
// for UI loading state
2121
subscribing:t.optional(t.boolean,false),
22-
subscribingId:t.maybe(t.string),
22+
subscribingId:t.maybeNull(t.string),
2323
})
2424
.views(self=>({
2525
getroot(){

‎containers/Doraemon/store.js‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ const convertThreadsToMaps = com => {
3636

3737
constSuggestion=t.model('Suggestion',{
3838
title:t.string,
39-
desc:t.maybe(t.string),
39+
desc:t.maybeNull(t.string),
4040
raw:t.string,
41-
logo:t.maybe(t.string),
42-
cmd:t.maybe(t.enumeration('cmd',['theme','debug'])),
41+
logo:t.maybeNull(t.string),
42+
cmd:t.maybeNull(t.enumeration('cmd',['theme','debug'])),
4343
descType:t.optional(
4444
t.enumeration('descType',['text','component']),
4545
'text'
@@ -51,12 +51,12 @@ const DoraemonStore = t
5151
visible:t.optional(t.boolean,false),
5252
inputValue:t.optional(t.string,''),
5353
suggestions:t.optional(t.array(Suggestion),[]),
54-
activeRaw:t.maybe(t.string),
54+
activeRaw:t.maybeNull(t.string),
5555
// TODO: prefix -> cmdPrefix, and prefix be a getter
5656
prefix:t.optional(t.string,''),
5757
// for debug config, input login/password ... etc
5858
inputForOtherUse:t.optional(t.boolean,false),
59-
cmdChain:t.maybe(t.array(t.string)),
59+
cmdChain:t.maybeNull(t.array(t.string)),
6060
})
6161
.views(self=>({
6262
getroot(){

‎containers/JobsThread/store.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ const FilterModel = t.model('FilterModel', {
5555

5656
constJobsThreadStore=t
5757
.model('JobsThreadStore',{
58-
pagedJobs:t.maybe(PagedJobs),
58+
pagedJobs:t.maybeNull(PagedJobs),
5959
filters:t.optional(FilterModel,{}),
6060
tags:t.optional(t.array(Tag),[]),
61-
activeTag:t.maybe(Tag),
61+
activeTag:t.maybeNull(Tag),
6262
curView:t.optional(
6363
t.enumeration('curView',[
6464
TYPE.RESULT,

‎containers/PostsThread/store.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const PostsThreadStore = t
6060
filters:t.optional(FilterModel,{}),
6161
/* tags: t.optional(t.map(Tag), {}), */
6262
tags:t.optional(t.array(Tag),[]),
63-
activeTag:t.maybe(Tag),
63+
activeTag:t.maybeNull(Tag),
6464
curView:t.optional(
6565
t.enumeration('curView',[
6666
TYPE.RESULT,

‎containers/Preview/store.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { markStates, TYPE, unholdPage } from '../../utils'
1212
constPreviewStore=t
1313
.model('PreviewStore',{
1414
visible:t.optional(t.boolean,false),
15-
type:t.maybe(
15+
type:t.maybeNull(
1616
t.enumeration('previewType',[
1717
TYPE.POST_PREVIEW_VIEW,
1818
TYPE.PREVIEW_ACCOUNT_VIEW,

‎containers/ReposThread/store.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const ReposThread = t
4747
filters:t.optional(FilterModel,{}),
4848
/* tags: t.optional(t.map(Tag), {}), */
4949
tags:t.optional(t.array(Tag),[]),
50-
activeTag:t.maybe(Tag),
50+
activeTag:t.maybeNull(Tag),
5151
curView:t.optional(
5252
t.enumeration('curView',[
5353
TYPE.RESULT,

‎containers/VideosThread/store.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const VideosThread = t
4545
pagedVideos:t.optional(PagedVideos,emptyPagiData),
4646
filters:t.optional(FilterModel,{}),
4747
tags:t.optional(t.array(Tag),[]),
48-
activeTag:t.maybe(Tag),
48+
activeTag:t.maybeNull(Tag),
4949
curView:t.optional(
5050
t.enumeration('curView',[
5151
TYPE.RESULT,

‎cypress/integration/first.spec.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
describe('first',()=>{
22
it('visit the site',()=>{
3-
cy.visit('http://localhost:3000')
3+
cy.visit('http://localhost:3000/javascript/posts')
44
})
55
})

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp