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.

Commit68fd8e2

Browse files
committed
chore(typo): fix spell warnings by vscode plugin
1 parentfbb90f7 commit68fd8e2

File tree

176 files changed

+443
-441
lines changed

Some content is hidden

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

176 files changed

+443
-441
lines changed

‎config/config.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"WORD_LIMIT": {
1313
"COMMENT":300
1414
},
15-
"ATATARS_LIST_LENGTH": {
15+
"AVATARS_LIST_LENGTH": {
1616
"POSTS":4,
1717
"COMMENTS":5
1818
},

‎config/index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export {
1111
SPONSOR_AMOUNT_THRESHOLD,
1212
PAGE_SIZE,
1313
WORD_LIMIT,
14-
ATATARS_LIST_LENGTH,
14+
AVATARS_LIST_LENGTH,
1515
TAG_COLORS,
1616
TAG_COLOR_ORDER,
1717
ASSETS_ENDPOINT,

‎docs/architecture/convention.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Import S from './schema'
117117

118118
// 5. init aysnc
119119
Const sr71$=newSR71({
120-
  recieve: [
120+
  receive: [
121121
    EVENT.REFRESH_POSTS,
122122
  ],
123123
})

‎docs/architecture/convention.zh-CN.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ import S from './schema'
113113

114114
// 5. init aysnc
115115
constsr71$=newSR71({
116-
recieve: [EVENT.REFRESH_POSTS],
116+
receive: [EVENT.REFRESH_POSTS],
117117
})
118118

119119
// 6. init store

‎docs/architecture/intro.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ import Editor from './Editor'
160160
import {Wrapper,ViewerWrapper }from'./styles'
161161

162162
import {connectStore,buildLog }from'@/utils'
163-
import {useInit,changeView,onPublish,canclePublish }from'./logic'
163+
import {useInit,changeView,onPublish,cancelPublish }from'./logic'
164164

165165
constPostEditorContainer= ({ postEditor: store, attachment })=>{
166166
useInit(store)
@@ -179,7 +179,7 @@ const PostEditorContainer = ({ postEditor: store, attachment }) =>{
179179
<ArticleEditFooter
180180
isEdit={isEdit}
181181
statusMsg={statusMsg}
182-
onCancle={canclePublish}
182+
onCancel={cancelPublish}
183183
onPublish={onPublish}
184184
/>
185185
</Wrapper>
@@ -297,11 +297,11 @@ const DataSolver = [
297297
constErrSolver= [
298298
{
299299
match:asyncErr(ERR.GRAPHQL),
300-
action: ({ details })=>cancleLoading(),
300+
action: ({ details })=>cancelLoading(),
301301
},
302302
{
303303
match:asyncErr(ERR.NETWORK),
304-
action: ({ details })=>cancleLoading(),
304+
action: ({ details })=>cancelLoading(),
305305
},
306306
]
307307

‎docs/architecture/intro.zh-CN.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ import Editor from './Editor'
157157
import {Wrapper,ViewerWrapper }from'./styles'
158158

159159
import {connectStore,buildLog }from'@/utils'
160-
import {useInit,changeView,onPublish,canclePublish }from'./logic'
160+
import {useInit,changeView,onPublish,cancelPublish }from'./logic'
161161

162162
constPostEditorContainer= ({ postEditor: store, attachment })=>{
163163
useInit(store)
@@ -176,7 +176,7 @@ const PostEditorContainer = ({ postEditor: store, attachment }) =>{
176176
<ArticleEditFooter
177177
isEdit={isEdit}
178178
statusMsg={statusMsg}
179-
onCancle={canclePublish}
179+
onCancel={cancelPublish}
180180
onPublish={onPublish}
181181
/>
182182
</Wrapper>
@@ -294,11 +294,11 @@ const DataSolver = [
294294
constErrSolver= [
295295
{
296296
match:asyncErr(ERR.GRAPHQL),
297-
action: ({ details })=>cancleLoading(),
297+
action: ({ details })=>cancelLoading(),
298298
},
299299
{
300300
match:asyncErr(ERR.NETWORK),
301-
action: ({ details })=>cancleLoading(),
301+
action: ({ details })=>cancelLoading(),
302302
},
303303
]
304304

‎docs/js/async.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Const DataSolver = [
2929
    Match:asyncRes('updateProfile'),
3030
    Action: ()=> {
3131
      updateDone()
32-
      cancleLoading()
32+
      cancelLoading()
3333
    },
3434
  },
3535
]
@@ -41,7 +41,7 @@ The container component can listen for asynchronous events that need to be respo
4141

4242
```js
4343
Const sr71$=newSR71({
44-
  recieve: [
44+
  receive: [
4545
    EVENT.PREVIEW_OPEN,
4646
    EVENT.PREVIEW_CLOSE,
4747
    EVENT.UPLOAD_IMG_START,
@@ -94,19 +94,19 @@ The logical unification of error handling is handled by ErrSolver in a unified m
9494
Const ErrSolver= [
9595
  {
9696
    Match:asyncErr(ERR.GRAPHQL),
97-
    Action: ()=>cancleLoading(),
97+
    Action: ()=>cancelLoading(),
9898
  },
9999
  {
100100
    Match:asyncErr(ERR.TIMEOUT),
101101
    Action: ({ details })=> {
102-
      cancleLoading()
102+
      cancelLoading()
103103
      errRescue({ type:ERR.TIMEOUT, details, path:'AccountEditor' })
104104
    },
105105
  },
106106
  {
107107
    Match:asyncErr(ERR.NETWORK),
108108
    Action: ()=> {
109-
      cancleLoading()
109+
      cancelLoading()
110110
      errRescue({ type:ERR.NETWORK, path:'AccountEditor' })
111111
    },
112112
  },

‎docs/js/async.zh-CN.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const DataSolver = [
2929
match:asyncRes('updateProfile'),
3030
action: ()=> {
3131
updateDone()
32-
cancleLoading()
32+
cancelLoading()
3333
},
3434
},
3535
]
@@ -41,7 +41,7 @@ const DataSolver = [
4141

4242
```js
4343
constsr71$=newSR71({
44-
recieve: [
44+
receive: [
4545
EVENT.PREVIEW_OPEN,
4646
EVENT.PREVIEW_CLOSE,
4747
EVENT.UPLOAD_IMG_START,
@@ -94,19 +94,19 @@ const sr71$ = new SR71({
9494
constErrSolver= [
9595
{
9696
match:asyncErr(ERR.GRAPHQL),
97-
action: ()=>cancleLoading(),
97+
action: ()=>cancelLoading(),
9898
},
9999
{
100100
match:asyncErr(ERR.TIMEOUT),
101101
action: ({ details })=> {
102-
cancleLoading()
102+
cancelLoading()
103103
errRescue({ type:ERR.TIMEOUT, details, path:'AccountEditor' })
104104
},
105105
},
106106
{
107107
match:asyncErr(ERR.NETWORK),
108108
action: ()=> {
109-
cancleLoading()
109+
cancelLoading()
110110
errRescue({ type:ERR.NETWORK, path:'AccountEditor' })
111111
},
112112
},

‎src/components/ArticleEditFooter/index.js‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { buildLog } from '@/utils'
1212
import{Button}from'@/components/Buttons'
1313
import{Space}from'@/components/Common'
1414

15-
import{Wrapper,RespectText,PublishBtns,Divider}from'./styles'
15+
import{Wrapper,RespectText,PublishButtons,Divider}from'./styles'
1616

1717
/* eslint-disable-next-line */
1818
constlog=buildLog('c:ArticleEditFooter:index')
@@ -25,11 +25,11 @@ const DoingText = ({ isEdit }) => {
2525
)
2626
}
2727

28-
constArticleEditFooter=({ isEdit, publishing,onCancle, onPublish})=>(
28+
constArticleEditFooter=({ isEdit, publishing,onCancel, onPublish})=>(
2929
<Wrapper>
3030
<RespectText>请尊重自己和他人的时间,不要发布无意义的内容。</RespectText>
3131
<Divider/>
32-
<PublishBtns>
32+
<PublishButtons>
3333
{publishing ?(
3434
<div>
3535
<Buttonsize="default"type="primary"ghost>
@@ -44,7 +44,7 @@ const ArticleEditFooter = ({ isEdit, publishing, onCancle, onPublish }) => (
4444
</div>
4545
) :(
4646
<div>
47-
<Buttonsize="default"type="primary"ghostonClick={onCancle}>
47+
<Buttonsize="default"type="primary"ghostonClick={onCancel}>
4848
取消
4949
</Button>
5050
<Spaceright="15px"/>
@@ -53,23 +53,23 @@ const ArticleEditFooter = ({ isEdit, publishing, onCancle, onPublish }) => (
5353
</Button>
5454
</div>
5555
)}
56-
</PublishBtns>
56+
</PublishButtons>
5757
</Wrapper>
5858
)
5959

6060
ArticleEditFooter.propTypes={
6161
isEdit:T.bool,
6262
publishing:T.bool,
6363

64-
onCancle:T.func,
64+
onCancel:T.func,
6565
onPublish:T.func,
6666
}
6767

6868
ArticleEditFooter.defaultProps={
6969
isEdit:false,
7070
publishing:false,
7171

72-
onCancle:log,
72+
onCancel:log,
7373
onPublish:log,
7474
}
7575

‎src/components/ArticleEditFooter/styles/index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const Divider = styled.div`
2121
margin-bottom: 20px;
2222
`
2323

24-
exportconstPublishBtns=styled.div`
24+
exportconstPublishButtons=styled.div`
2525
width: 80%;
2626
text-align: center;
2727
`

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp