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

Commit 1709376

Browse files
committed
refactor(rename): recv_event -> recieve
1 parent a17fb84 commit 1709376

File tree

34 files changed

+38
-38
lines changed

34 files changed

+38
-38
lines changed

containers/AccountViewer/logic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const log = buildLog('L:AccountViewer')
1111

1212
const { SR71, $solver, asyncRes, asyncErr } = asyncSuit
1313
const sr71$ = new SR71({
14-
resv_event: [EVENT.LOGIN],
14+
recieve: [EVENT.LOGIN],
1515
})
1616

1717
let store = null

containers/ArticleBanner/logic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const log = buildLog('L:ArticleBanner')
1111

1212
const { SR71, $solver, asyncRes, asyncErr } = asyncSuit
1313
const sr71$ = new SR71({
14-
resv_event: [EVENT.REFRESH_REACTIONS],
14+
recieve: [EVENT.REFRESH_REACTIONS],
1515
})
1616

1717
let sub$ = null

containers/ArticleViewerHeader/logic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const log = buildLog('L:ArticleViewerHeader')
1313
// user set it from FavoriteSetter
1414
const { SR71, $solver, asyncRes, asyncErr } = asyncSuit
1515
const sr71$ = new SR71({
16-
resv_event: [EVENT.REFRESH_REACTIONS],
16+
recieve: [EVENT.REFRESH_REACTIONS],
1717
})
1818

1919
let sub$ = null

containers/Cashier/logic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import S from './schema'
1717
const { SR71, $solver, asyncRes, asyncErr } = asyncSuit
1818

1919
const sr71$ = new SR71({
20-
resv_event: [EVENT.CALL_CASHIER],
20+
recieve: [EVENT.CALL_CASHIER],
2121
})
2222
let sub$ = null
2323

containers/CheatsheetThread/logic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const log = buildLog('L:CheatsheetThread')
1313

1414
const { SR71, $solver, asyncRes, asyncErr } = asyncSuit
1515
const sr71$ = new SR71({
16-
resv_event: [EVENT.COMMUNITY_CHANGE, EVENT.TABBER_CHANGE],
16+
recieve: [EVENT.COMMUNITY_CHANGE, EVENT.TABBER_CHANGE],
1717
})
1818

1919
let sub$ = null

containers/CommunitiesContent/logic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const log = buildLog('L:CommunitiesContent')
1111

1212
const { SR71, $solver, asyncRes, asyncErr } = asyncSuit
1313
const sr71$ = new SR71({
14-
resv_event: [EVENT.LOGOUT, EVENT.LOGIN, EVENT.REFRESH_COMMUNITIES],
14+
recieve: [EVENT.LOGOUT, EVENT.LOGIN, EVENT.REFRESH_COMMUNITIES],
1515
})
1616

1717
let store = null

containers/CommunityBanner/logic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import S from './schema'
1717
const log = buildLog('L:CommunityBanner')
1818

1919
const { SR71, $solver, asyncRes, asyncErr } = asyncSuit
20-
const sr71$ = new SR71({ resv_event: [EVENT.COMMUNITY_CHANGE] })
20+
const sr71$ = new SR71({ recieve: [EVENT.COMMUNITY_CHANGE] })
2121

2222
let sub$ = null
2323
let store = null

containers/CommunitySetter/logic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const log = buildLog('L:CommunitySetter')
1010

1111
const { SR71, $solver, asyncRes, asyncErr } = asyncSuit
1212
const sr71$ = new SR71({
13-
resv_event: [EVENT.COMMUNITY_MIRROR],
13+
recieve: [EVENT.COMMUNITY_MIRROR],
1414
})
1515

1616
let sub$ = null

containers/Doraemon/logic/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const log = buildLog('L:Doraemon')
2626

2727
const { SR71, $solver, asyncRes, asyncErr } = asyncSuit
2828
const sr71$ = new SR71({
29-
resv_event: [EVENT.QUERY_DORAMON],
29+
recieve: [EVENT.QUERY_DORAMON],
3030
})
3131

3232
let sub$ = null

containers/ErrorBox/logic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const log = buildLog('L:ErrorBox')
99

1010
const { SR71, $solver, asyncRes } = asyncSuit
1111
const sr71$ = new SR71({
12-
resv_event: [EVENT.ERR_RESCUE],
12+
recieve: [EVENT.ERR_RESCUE],
1313
})
1414

1515
let sub$ = null

containers/FavoritesCats/logic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const log = buildLog('L:FavoritesCats')
1212

1313
const { SR71, $solver, asyncRes, asyncErr } = asyncSuit
1414
const sr71$ = new SR71({
15-
resv_event: [EVENT.SET_FAVORITE_CONTENT],
15+
recieve: [EVENT.SET_FAVORITE_CONTENT],
1616
})
1717

1818
let sub$ = null

containers/Header/logic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const log = buildLog('L:Header')
2020

2121
const { SR71, $solver, asyncRes, asyncErr } = asyncSuit
2222
const sr71$ = new SR71({
23-
resv_event: [EVENT.SET_C11N],
23+
recieve: [EVENT.SET_C11N],
2424
})
2525

2626
let store = null

containers/JobContent/logic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const log = buildLog('L:JobContent')
1010

1111
const { SR71, $solver, asyncRes, asyncErr } = asyncSuit
1212
const sr71$ = new SR71({
13-
resv_event: [EVENT.REFRESH_JOBS],
13+
recieve: [EVENT.REFRESH_JOBS],
1414
})
1515

1616
let sub$ = null

containers/JobViewer/logic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const log = buildLog('L:JobViewer')
1111

1212
const { SR71, $solver, asyncRes, asyncErr } = asyncSuit
1313
const sr71$ = new SR71({
14-
resv_event: [EVENT.PREVIEW_CLOSED],
14+
recieve: [EVENT.PREVIEW_CLOSED],
1515
})
1616

1717
let sub$ = null

containers/JobsThread/logic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const log = buildLog('L:JobsThread')
1818

1919
const { SR71, $solver, asyncRes, asyncErr } = asyncSuit
2020
const sr71$ = new SR71({
21-
resv_event: [EVENT.REFRESH_JOBS, EVENT.PREVIEW_CLOSED, EVENT.TABBER_CHANGE],
21+
recieve: [EVENT.REFRESH_JOBS, EVENT.PREVIEW_CLOSED, EVENT.TABBER_CHANGE],
2222
})
2323

2424
let store = null

containers/PostContent/logic.js

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

99
const { SR71, $solver, asyncRes, asyncErr } = asyncSuit
1010
const sr71$ = new SR71({
11-
resv_event: [EVENT.REFRESH_POSTS],
11+
recieve: [EVENT.REFRESH_POSTS],
1212
})
1313

1414
let sub$ = null

containers/PostViewer/logic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const log = buildLog('L:PostViewer')
1111

1212
const { SR71, $solver, asyncRes, asyncErr } = asyncSuit
1313
const sr71$ = new SR71({
14-
resv_event: [EVENT.PREVIEW_CLOSED],
14+
recieve: [EVENT.PREVIEW_CLOSED],
1515
})
1616

1717
let sub$ = null

containers/PostsThread/logic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const log = buildLog('L:PostsThread')
2727

2828
const { SR71, $solver, asyncRes, asyncErr } = asyncSuit
2929
const sr71$ = new SR71({
30-
resv_event: [
30+
recieve: [
3131
EVENT.REFRESH_POSTS,
3232
EVENT.PREVIEW_CLOSED,
3333
EVENT.COMMUNITY_CHANGE,

containers/Preview/logic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const log = buildLog('L:Preview')
88

99
const { SR71, $solver, asyncRes } = asyncSuit
1010
const sr71$ = new SR71({
11-
resv_event: [
11+
recieve: [
1212
EVENT.PREVIEW_OPEN,
1313
EVENT.PREVIEW_CLOSE,
1414
EVENT.UPLOAD_IMG_START,

containers/RepoEditor/logic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const log = buildLog('L:RepoEditor')
1919

2020
const { SR71, $solver, asyncRes, asyncErr } = asyncSuit
2121
const sr71$ = new SR71({
22-
resv_event: [EVENT.PREVIEW_CLOSED],
22+
recieve: [EVENT.PREVIEW_CLOSED],
2323
})
2424

2525
let sub$ = null

containers/RepoViewer/logic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const log = buildLog('L:RepoViewer')
1212

1313
const { SR71, $solver, asyncRes, asyncErr } = asyncSuit
1414
const sr71$ = new SR71({
15-
resv_event: [EVENT.PREVIEW_CLOSED, EVENT.SYNC_REPO],
15+
recieve: [EVENT.PREVIEW_CLOSED, EVENT.SYNC_REPO],
1616
})
1717

1818
let sub$ = null

containers/ReposThread/logic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const log = buildLog('L:ReposThread')
1717

1818
const { SR71, $solver, asyncRes } = asyncSuit
1919
const sr71$ = new SR71({
20-
resv_event: [EVENT.REFRESH_REPOS, EVENT.PREVIEW_CLOSED, EVENT.TABBER_CHANGE],
20+
recieve: [EVENT.REFRESH_REPOS, EVENT.PREVIEW_CLOSED, EVENT.TABBER_CHANGE],
2121
})
2222

2323
let sub$ = null

containers/Sidebar/logic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const log = buildLog('L:Sidebar')
1919

2020
const { SR71, $solver, asyncRes, asyncErr } = asyncSuit
2121
const sr71$ = new SR71({
22-
resv_event: [EVENT.LOGOUT, EVENT.LOGIN, EVENT.SESSTION_ROUTINE],
22+
recieve: [EVENT.LOGOUT, EVENT.LOGIN, EVENT.SESSTION_ROUTINE],
2323
})
2424

2525
let store = null

containers/TagsBar/logic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const log = buildLog('L:TagsBar')
1111

1212
const { SR71, $solver, asyncRes, asyncErr } = asyncSuit
1313
const sr71$ = new SR71({
14-
resv_event: [EVENT.COMMUNITY_CHANGE, EVENT.TABBER_CHANGE],
14+
recieve: [EVENT.COMMUNITY_CHANGE, EVENT.TABBER_CHANGE],
1515
})
1616

1717
let sub$ = null

containers/UserBilling/logic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const log = buildLog('L:UserBilling')
1212

1313
const { SR71, $solver, asyncRes, asyncErr } = asyncSuit
1414
const sr71$ = new SR71({
15-
resv_event: [EVENT.NEW_BILLS],
15+
recieve: [EVENT.NEW_BILLS],
1616
})
1717

1818
let sub$ = null

containers/UserLister/logic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const log = buildLog('L:UserLister')
1212

1313
const { SR71, $solver, asyncRes, asyncErr } = asyncSuit
1414
const sr71$ = new SR71({
15-
resv_event: [EVENT.USER_LISTER_OPEN],
15+
recieve: [EVENT.USER_LISTER_OPEN],
1616
})
1717

1818
let sub$ = null

containers/VideoContent/logic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const log = buildLog('L:VideoContent')
1010

1111
const { SR71, $solver, asyncRes, asyncErr } = asyncSuit
1212
const sr71$ = new SR71({
13-
resv_event: [EVENT.REFRESH_VIDEOS],
13+
recieve: [EVENT.REFRESH_VIDEOS],
1414
})
1515

1616
let sub$ = null

containers/VideosThread/logic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const log = buildLog('L:VideosThread')
1818

1919
const { SR71, $solver, asyncRes, asyncErr } = asyncSuit
2020
const sr71$ = new SR71({
21-
resv_event: [EVENT.REFRESH_VIDEOS, EVENT.PREVIEW_CLOSED, EVENT.TABBER_CHANGE],
21+
recieve: [EVENT.REFRESH_VIDEOS, EVENT.PREVIEW_CLOSED, EVENT.TABBER_CHANGE],
2222
})
2323

2424
let sub$ = null

containers/WikiThread/logic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const log = buildLog('L:WikiThread')
1212

1313
const { SR71, $solver, asyncRes, asyncErr } = asyncSuit
1414
const sr71$ = new SR71({
15-
resv_event: [EVENT.COMMUNITY_CHANGE, EVENT.TABBER_CHANGE],
15+
recieve: [EVENT.COMMUNITY_CHANGE, EVENT.TABBER_CHANGE],
1616
})
1717

1818
let sub$ = null

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$ = new SR71({
120-
  Resv_event: [
120+
  recieve: [
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
@@ -117,7 +117,7 @@ import S from './schema'
117117

118118
// 5. init aysnc
119119
const sr71$ = new SR71({
120-
resv_event: [EVENT.REFRESH_POSTS],
120+
recieve: [EVENT.REFRESH_POSTS],
121121
})
122122

123123
// 6. init store

docs/js/async.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The container component can listen for asynchronous events that need to be respo
4141

4242
```js
4343
Const sr71$ = new SR71({
44-
  Resv_event: [
44+
  recieve: [
4545
    EVENT.PREVIEW_OPEN,
4646
    EVENT.PREVIEW_CLOSE,
4747
    EVENT.UPLOAD_IMG_START,

docs/js/async.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const DataSolver = [
4141

4242
```js
4343
const sr71$ = new SR71({
44-
resv_event: [
44+
recieve: [
4545
EVENT.PREVIEW_OPEN,
4646
EVENT.PREVIEW_CLOSE,
4747
EVENT.UPLOAD_IMG_START,

utils/async/sr71.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ import { queryPromise, mutatePromise, restGetPromise } from './methods'
1919
// import { debounceTime, switchMap, merge, timeoutWith } from 'rxjs/operator'
2020

2121
class SR71 {
22-
constructor(opts = { resv_event: '' }) {
22+
constructor(opts = { recieve: '' }) {
2323
this.getInput$ = new Subject()
2424
this.queryInput$ = new Subject()
2525
this.mutateInput$ = new Subject()
2626
this.stop$ = new Subject()
2727
this.eventInput$ = new Subject()
28-
this.resv_event = opts.resv_event
28+
this.recieve = opts.recieve
2929

3030
this.initEventSubscription()
3131
this.query$ = this.queryInput$.pipe(
@@ -67,12 +67,12 @@ class SR71 {
6767

6868
// Private
6969
initEventSubscription() {
70-
if (Array.isArray(this.resv_event)) {
70+
if (Array.isArray(this.recieve)) {
7171
R.forEach(event => {
7272
this.subscriptEvent(event)
73-
}, this.resv_event)
73+
}, this.recieve)
7474
} else {
75-
this.subscriptEvent(this.resv_event)
75+
this.subscriptEvent(this.recieve)
7676
}
7777
}
7878

0 commit comments

Comments
 (0)