Skip to content

Commit 697e82a

Browse files
authored
docs: replace the use of blacklist (#1775)
1 parent 1e2f3bf commit 697e82a

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

docs/fr/guide/plugins.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ const logger = createLogger({
107107
filter (mutation, stateBefore, stateAfter) {
108108
// retourne `true` si une mutation devrait être logguée
109109
// `mutation` est un `{ type, payload }`
110-
return mutation.type !== "aBlacklistedMutation"
110+
return mutation.type !== "aBlocklistedMutation"
111111
},
112112
transformer (state) {
113113
// transforme l'état avant de le logguer.

docs/guide/plugins.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,12 @@ const logger = createLogger({
107107
filter (mutation, stateBefore, stateAfter) {
108108
// returns `true` if a mutation should be logged
109109
// `mutation` is a `{ type, payload }`
110-
return mutation.type !== "aBlacklistedMutation"
110+
return mutation.type !== "aBlocklistedMutation"
111111
},
112112
actionFilter (action, state) {
113113
// same as `filter` but for actions
114114
// `action` is a `{ type, payload }`
115-
return action.type !== "aBlacklistedAction"
115+
return action.type !== "aBlocklistedAction"
116116
},
117117
transformer (state) {
118118
// transform the state before logging it.

docs/ja/guide/plugins.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,12 @@ const logger = createLogger({
107107
filter (mutation, stateBefore, stateAfter) {
108108
// ミューテーションを記録する必要がある場合は、`true` を返します
109109
// `mutation` は `{ type, payload }` です
110-
return mutation.type !== "aBlacklistedMutation"
110+
return mutation.type !== "aBlocklistedMutation"
111111
},
112112
actionFilter (action, state) {
113113
// `filter` と同等ですが、アクション用です
114114
// `action` は `{ type, payloed }` です
115-
return action.type !== "aBlacklistedAction"
115+
return action.type !== "aBlocklistedAction"
116116
},
117117
transformer (state) {
118118
// ロギングの前に、状態を変換します

docs/kr/guide/plugins.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const logger = createLogger({
108108
filter (mutation, stateBefore, stateAfter) {
109109
// 변이시 항상 로깅해야 한다면 true 를 반환하십시오.
110110
// 변이는 { type, payload }의 포맷입니다.
111-
return mutation.type !== "aBlacklistedMutation"
111+
return mutation.type !== "aBlocklistedMutation"
112112
},
113113
transformer (state) {
114114
// 로깅하기전 상태를 변이 하십시오.

docs/ptbr/guide/plugins.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ const logger = createLogger({
107107
filter (mutation, stateBefore, stateAfter) {
108108
// retorna `true` se uma mutação deve ser registrada no log
109109
// `mutation` é um `{ type, payload }`
110-
return mutation.type !== "aBlacklistedMutation"
110+
return mutation.type !== "aBlocklistedMutation"
111111
},
112112
transformer (state) {
113113
// transforma o estado antes de regitrá-lo no log.

docs/ru/guide/plugins.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,12 @@ const logger = createLogger({
105105
filter(mutation, stateBefore, stateAfter) {
106106
// возвращает `true`, если мутация должна быть залогирована
107107
// `mutation` — это объект `{ type, payload }`
108-
return mutation.type !== 'aBlacklistedMutation';
108+
return mutation.type !== 'aBlocklistedMutation';
109109
},
110110
actionFilter (action, state) {
111111
// аналогично `filter`, но для действий
112112
// `action` будет объектом `{ type, payload }`
113-
return action.type !== 'aBlacklistedAction'
113+
return action.type !== 'aBlocklistedAction'
114114
},
115115
transformer(state) {
116116
// обработать состояние перед логированием

docs/zh/guide/plugins.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,12 @@ const logger = createLogger({
107107
filter (mutation, stateBefore, stateAfter) {
108108
   // 若 mutation 需要被记录,就让它返回 true 即可
109109
   // 顺便,`mutation` 是个 { type, payload } 对象
110-
   return mutation.type !== "aBlacklistedMutation"
110+
   return mutation.type !== "aBlocklistedMutation"
111111
},
112112
actionFilter (action, state) {
113113
// 和 `filter` 一样,但是是针对 action 的
114114
// `action` 的格式是 `{ type, payload }`
115-
return action.type !== "aBlacklistedAction"
115+
return action.type !== "aBlocklistedAction"
116116
},
117117
transformer (state) {
118118
// 在开始记录之前转换状态

0 commit comments

Comments
 (0)