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.

Commit822ca68

Browse files
committed
chore(typo): nofityDot -> notifyDot, cancle -> cancel
1 parent68bced9 commit822ca68

File tree

16 files changed

+69
-67
lines changed

16 files changed

+69
-67
lines changed

‎.eslintrc.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,7 @@ module.exports = {
2727
},
2828
},
2929
},
30-
rules:{},
30+
rules:{
31+
'arrow-parens':['error','always'],
32+
},
3133
}

‎docs/architecture/intro.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ const ErrSolver = [
299299
},
300300
]
301301

302-
exportconstinit=_store=> {
302+
exportconstinit=(_store)=> {
303303
store= _store
304304

305305
if (sub$)returnfalse

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ const ErrSolver = [
295295
},
296296
]
297297

298-
exportconstinit=_store=> {
298+
exportconstinit=(_store)=> {
299299
store= _store
300300

301301
if (sub$)returnfalse

‎src/containers/Comments/logic.js‎

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const loadComents = (args = {}) => {
4747
sr71$.query(S.pagedComments,args)
4848
}
4949

50-
constmarkLoading=fresh=>{
50+
constmarkLoading=(fresh)=>{
5151
if(fresh){
5252
returnstore.mark({loadingFresh:true})
5353
}
@@ -64,7 +64,7 @@ export const createComment = curry((cb, e) => {
6464
body:store.editContent,
6565
thread:store.activeThread,
6666
community:store.communityRaw,
67-
mentionUsers:store.referUsersData.map(user=>({id:user.id})),
67+
mentionUsers:store.referUsersData.map((user)=>({id:user.id})),
6868
}
6969

7070
log('createComment args: ',args)
@@ -84,7 +84,7 @@ export const backToEditor = () =>
8484
showInputPreview:false,
8585
})
8686

87-
exportconstpreviewReply=data=>{
87+
exportconstpreviewReply=(data)=>{
8888
log('previewReply --> : ',data)
8989
}
9090

@@ -132,25 +132,25 @@ export const createReplyComment = () => {
132132
body:store.replyContent,
133133
community:store.curCommunity.raw,
134134
thread:store.activeThread,
135-
mentionUsers:store.referUsersData.map(user=>({id:user.id})),
135+
mentionUsers:store.referUsersData.map((user)=>({id:user.id})),
136136
})
137137
}
138138

139-
exportconstonCommentInputChange=editContent=>
139+
exportconstonCommentInputChange=(editContent)=>
140140
store.mark({
141141
countCurrent:countWords(editContent),
142142
extractMentions:extractMentions(editContent),
143143
editContent,
144144
})
145145

146-
exportconstonReplyInputChange=replyContent=>
146+
exportconstonReplyInputChange=(replyContent)=>
147147
store.mark({
148148
countCurrent:countWords(replyContent),
149149
extractMentions:extractMentions(replyContent),
150150
replyContent,
151151
})
152152

153-
exportconstopenUpdateEditor=data=>
153+
exportconstopenUpdateEditor=(data)=>
154154
store.mark({
155155
isEdit:true,
156156
showReplyBox:true,
@@ -160,7 +160,7 @@ export const openUpdateEditor = data =>
160160
replyContent:data.body,
161161
})
162162

163-
exportconstopenReplyEditor=data=>{
163+
exportconstopenReplyEditor=(data)=>{
164164
if(!store.isLogin)returnstore.authWarning()
165165

166166
initDraftTimmer()
@@ -194,7 +194,7 @@ export const closeReplyBox = () => {
194194
})
195195
}
196196

197-
exportconstonFilterChange=filterType=>{
197+
exportconstonFilterChange=(filterType)=>{
198198
store.mark({ filterType})
199199
loadComents({filter:{page:1,sort:filterType}})
200200
}
@@ -206,7 +206,7 @@ export const onFilterChange = filterType => {
206206
*@param {comment.id} string
207207
*@returns
208208
*/
209-
exportconsttoggleLikeComment=comment=>{
209+
exportconsttoggleLikeComment=(comment)=>{
210210
if(!store.isLogin)returnstore.authWarning()
211211
log('likeComment: ',comment)
212212

@@ -220,7 +220,7 @@ export const toggleLikeComment = comment => {
220220
})
221221
}
222222

223-
exportconstonUploadImageDone=url=>
223+
exportconstonUploadImageDone=(url)=>
224224
send(EVENT.DRAFT_INSERT_SNIPPET,{data:`![](${url})`})
225225

226226
exportconstinsertQuote=()=>
@@ -233,8 +233,8 @@ export const insertCode = () => {
233233
send(EVENT.DRAFT_INSERT_SNIPPET,{ data})
234234
}
235235

236-
exportconstonMention=user=>store.addReferUser(user)
237-
exportconstonMentionSearch=name=>{
236+
exportconstonMention=(user)=>store.addReferUser(user)
237+
exportconstonMentionSearch=(name)=>{
238238
if(name&&name.length>=1){
239239
sr71$.query(S.searchUsers,{ name})
240240
}else{
@@ -249,7 +249,7 @@ export const deleteComment = () =>
249249
})
250250

251251
// show delete confirm
252-
exportconstonDelete=comment=>store.mark({tobeDeleteId:comment.id})
252+
exportconstonDelete=(comment)=>store.mark({tobeDeleteId:comment.id})
253253
exportconstcancelDelete=()=>store.mark({tobeDeleteId:null})
254254

255255
exportconstpageChange=(page=1)=>{
@@ -265,7 +265,7 @@ export const onReplyEditorClose = () => {
265265
onCommentInputBlur()
266266
}
267267

268-
constsaveDraftIfNeed=content=>{
268+
constsaveDraftIfNeed=(content)=>{
269269
if(isEmpty(content))returnfalse
270270
constcurDraftContent=BStore.get('recentDraft')
271271

‎src/containers/CommunitySetter/logic.js‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const onClose = () => {
2121
sr71$.stop()
2222
}
2323

24-
exportconstonSearchChange=e=>store.mark({searchValue:e.target.value})
24+
exportconstonSearchChange=(e)=>store.mark({searchValue:e.target.value})
2525

2626
exportconstonSearch=()=>{
2727
const{ searchValue}=store
@@ -31,7 +31,7 @@ export const onSearch = () => {
3131
:searchCommunities(searchValue)
3232
}
3333

34-
exportconstonSearchPress=e=>{
34+
exportconstonSearchPress=(e)=>{
3535
if(e.key==='Enter'){
3636
onSearch()
3737
}
@@ -42,7 +42,7 @@ export const loadCommunities = (page = 1) =>
4242
sr71$.query(S.pagedCommunities,{filter:{ page,size:20}})
4343

4444
// search spec communities
45-
constsearchCommunities=title=>sr71$.query(S.searchCommunities,{ title})
45+
constsearchCommunities=(title)=>sr71$.query(S.searchCommunities,{ title})
4646

4747
exportconsthandleCommunityBelong=(belong,communityId)=>{
4848
const{ id}=store.viewingData
@@ -103,7 +103,7 @@ const DataSolver = [
103103
constErrSolver=[
104104
{
105105
match:asyncErr(ERR.GRAPHQL),
106-
action:err=>{
106+
action:(err)=>{
107107
log(err)
108108
// cancelLoading()
109109
},
@@ -127,7 +127,7 @@ const ErrSolver = [
127127
// ###############################
128128
// init & uninit
129129
// ###############################
130-
exportconstuseInit=_store=>{
130+
exportconstuseInit=(_store)=>{
131131
useEffect(()=>{
132132
store=_store
133133
// log('effect init')

‎src/containers/MailBox/styles/index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import styled from 'styled-components'
33
importHeaderMailSVGfrom'@/SvgIcons/HeaderMailSVG'
44
import{theme}from'@/utils'
55

6-
exportconstWrapper=styled.div.attrs(props=>({
6+
exportconstWrapper=styled.div.attrs((props)=>({
77
'data-testid':props.testid,
88
}))`
99
position: relative;

‎src/containers/content/CommunitiesContent/logic.js‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ const searchCommunities = () => {
6060
* change search status
6161
*@ppublic
6262
*/
63-
exportconstchangeSearchStatus=status=>store.mark({ ...status})
63+
exportconstchangeSearchStatus=(status)=>store.mark({ ...status})
6464

6565
/**
6666
* search for communities
6767
*@param {e} htmlEvent
6868
*@return {void}
6969
*/
70-
exportconstsearchOnChange=e=>{
70+
exportconstsearchOnChange=(e)=>{
7171
updateEditing(store,'searchValue',e)
7272
searchCommunities()
7373
}
@@ -90,14 +90,14 @@ export const menuOnChange = ({ id, raw }) => {
9090
*@param {page} number
9191
*@public
9292
*/
93-
exportconstpageOnChange=page=>loadCommunities(page)
93+
exportconstpageOnChange=(page)=>loadCommunities(page)
9494

9595
/**
9696
* subscrib / join a community
9797
*@param {id} string
9898
*@public
9999
*/
100-
exportconstsubscribe=id=>{
100+
exportconstsubscribe=(id)=>{
101101
if(!store.isLogin)returnstore.authWarning()
102102

103103
sr71$.mutate(S.subscribeCommunity,{communityId:id})
@@ -112,7 +112,7 @@ export const subscribe = id => {
112112
*@param {id} string
113113
*@public
114114
*/
115-
exportconstunSubscribe=id=>{
115+
exportconstunSubscribe=(id)=>{
116116
if(!store.isLogin)returnstore.authWarning()
117117

118118
sr71$.mutate(S.unsubscribeCommunity,{communityId:id})
@@ -203,7 +203,7 @@ const loadIfNeed = () => {
203203
// ###############################
204204
// init & uninit
205205
// ###############################
206-
exportconstuseInit=_store=>{
206+
exportconstuseInit=(_store)=>{
207207
useEffect(()=>{
208208
store=_store
209209
// log('effect init')

‎src/containers/content/CoolGuideContent/logic.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const menuOnSelect = (activeMenuId, displayType = 'DEFAULT') => {
2828
*
2929
*@param {string} topFilter
3030
*/
31-
exportconsttopFilterOnChange=topFilter=>{
31+
exportconsttopFilterOnChange=(topFilter)=>{
3232
store.mark({ topFilter})
3333
}
3434

@@ -65,7 +65,7 @@ const ErrSolver = [
6565
// ###############################
6666
// init & uninit
6767
// ###############################
68-
exportconstuseInit=_store=>{
68+
exportconstuseInit=(_store)=>{
6969
useEffect(()=>{
7070
store=_store
7171

‎src/containers/content/HaveADrinkContent/logic.js‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const LN = {
3333
*
3434
*@param {string} view, view type
3535
*/
36-
exportconstsetView=view=>{
36+
exportconstsetView=(view)=>{
3737
store.mark({ view})
3838
stopTimer()
3939
}
@@ -56,13 +56,13 @@ export const setSetting = (key, val) => {
5656
*@return void
5757
*@priate
5858
*/
59-
constresetAnimation=elementClassName=>{
59+
constresetAnimation=(elementClassName)=>{
6060
constelements=document.querySelectorAll(`.${elementClassName}`)
6161

6262
// first timer switch the animate part is not visiable
6363
if(elements.length===0)return
6464

65-
elements.forEach(el=>{
65+
elements.forEach((el)=>{
6666
el.style.animation='none'
6767
el.offsetHeight/* trigger reflow */
6868
el.style.animation=null
@@ -111,7 +111,7 @@ export const toggleTimer = () => {
111111
*@param {string} timerInterval, interval of the timer: 3s | 5s | 10s
112112
*@private
113113
*/
114-
exportconstsetTimerInterval=timerInterval=>{
114+
exportconstsetTimerInterval=(timerInterval)=>{
115115
stopTimer()
116116
store.mark({ timerInterval})
117117
startTimer()
@@ -162,7 +162,7 @@ const ErrSolver = [
162162
// ###############################
163163
// init & uninit
164164
// ###############################
165-
exportconstuseInit=_store=>{
165+
exportconstuseInit=(_store)=>{
166166
useEffect(()=>{
167167
store=_store
168168
log('effect init: ',store)

‎src/containers/content/MeetupsContent/logic.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const ErrSolver = [
5050
// ###############################
5151
// init & uninit
5252
// ###############################
53-
exportconstuseInit=_store=>{
53+
exportconstuseInit=(_store)=>{
5454
useEffect(()=>{
5555
store=_store
5656
log('effect init: ',store)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp