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

Commit 5afb3d7

Browse files
committed
refactor(naming): debug -> log
1 parent 9b8b4bd commit 5afb3d7

File tree

172 files changed

+493
-477
lines changed

Some content is hidden

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

172 files changed

+493
-477
lines changed

components/AdderCell/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { buildLog } from '@utils'
1313
import { AddWrapper, AddIcon, AddText } from './styles'
1414

1515
/* eslint-disable no-unused-vars */
16-
const debug = buildLog('c:AdderCell:index')
16+
const log = buildLog('c:AdderCell:index')
1717
/* eslint-enable no-unused-vars */
1818

1919
const AdderCell = ({ onAdd }) => (
@@ -29,7 +29,7 @@ AdderCell.propTypes = {
2929
}
3030

3131
AdderCell.defaultProps = {
32-
onAdd: debug,
32+
onAdd: log,
3333
}
3434

3535
export default AdderCell

components/AvatarsRow/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { buildLog, prettyNum } from '@utils'
1515
import { Avatars, AvatarsItem, AvatarsImg, AvatarsMore } from './styles'
1616

1717
/* eslint-disable no-unused-vars */
18-
const debug = buildLog('c:AvatarsRow:index')
18+
const log = buildLog('c:AvatarsRow:index')
1919
/* eslint-enable no-unused-vars */
2020

2121
const validUser = R.compose(
@@ -80,8 +80,8 @@ AvatarsRow.defaultProps = {
8080
height: '32px',
8181
users: [],
8282
limit: ATATARS_LIST_LENGTH.POSTS,
83-
onUserSelect: debug,
84-
onTotalSelect: debug,
83+
onUserSelect: log,
84+
onTotalSelect: log,
8585
}
8686

8787
export default AvatarsRow

components/BannerCountBrief/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
} from './styles'
1919

2020
/* eslint-disable no-unused-vars */
21-
const debug = buildLog('c:BannerCountBrief:index')
21+
const log = buildLog('c:BannerCountBrief:index')
2222
/* eslint-enable no-unused-vars */
2323

2424
const CountBrief = ({ filteredCount, totalCount, thread, unit }) => {

components/ColorCell/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { buildLog } from '@utils'
1111

1212
import { ColorCell, ColorDot /* ColorTitle */ } from './styles'
1313
/* eslint-disable no-unused-vars */
14-
const debug = buildLog('c:ColorCell:index')
14+
const log = buildLog('c:ColorCell:index')
1515
/* eslint-enable no-unused-vars */
1616

1717
const ColorCellComponent = ({ color }) => {

components/CommunityCell/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import {
2626
} from './styles'
2727

2828
/* eslint-disable no-unused-vars */
29-
const debug = buildLog('c:CommunityCell:index')
29+
const log = buildLog('c:CommunityCell:index')
3030
/* eslint-enable no-unused-vars */
3131

3232
const SingleCommunity = ({ community }) => (
@@ -126,8 +126,8 @@ CommunityCell.defaultProps = {
126126
thread: 'POST',
127127
withSetter: false,
128128
source: {},
129-
onDelete: debug,
130-
onAdd: debug,
129+
onDelete: log,
130+
onAdd: log,
131131
}
132132

133133
export default CommunityCell

components/CommunityMatrix/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {
2020
} from './styles'
2121

2222
/* eslint-disable no-unused-vars */
23-
const debug = buildLog('c:CommunityMatrix:index')
23+
const log = buildLog('c:CommunityMatrix:index')
2424
/* eslint-enable no-unused-vars */
2525

2626
const tooltipOffset = JSON.stringify({ top: 5, right: -5 })
@@ -116,8 +116,8 @@ CommunityMatrix.defaultProps = {
116116
totalCount: 0,
117117
},
118118
array: [],
119-
onSelect: debug,
120-
onAddOnSelect: debug,
119+
onSelect: log,
120+
onAddOnSelect: log,
121121
lens: [],
122122
hasAddon: true,
123123
activeRaw: '',

components/ContentFilter/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
} from './styles'
2222

2323
/* eslint-disable no-unused-vars */
24-
const debug = buildLog('c:ContentFilter:index')
24+
const log = buildLog('c:ContentFilter:index')
2525
/* eslint-enable no-unused-vars */
2626

2727
const filterDict = {

components/ContentsCountCell/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { buildLog } from '@utils'
1111
import { Wrapper, Content, Label, Count } from './styles'
1212

1313
/* eslint-disable no-unused-vars */
14-
const debug = buildLog('c:ContentsCountCell:index')
14+
const log = buildLog('c:ContentsCountCell:index')
1515
/* eslint-enable no-unused-vars */
1616

1717
const ContentsCountCell = ({

components/FileUploader/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { buildLog } from '@utils'
1212
import { FileUploaderWrapper, InputFile } from './styles'
1313

1414
/* eslint-disable no-unused-vars */
15-
const debug = buildLog('C:FileUploader')
15+
const log = buildLog('C:FileUploader')
1616
/* eslint-enable no-unused-vars */
1717

1818
const getFullDir = (dir, nestDir) => {
@@ -128,9 +128,9 @@ FileUploader.propTypes = {
128128
FileUploader.defaultProps = {
129129
dir: 'posts',
130130
nestDir: true,
131-
onUploadStart: debug,
132-
onUploadError: debug,
133-
onUploadDone: debug,
131+
onUploadStart: log,
132+
onUploadError: log,
133+
onUploadDone: log,
134134
}
135135

136136
export default FileUploader

components/FocusLine/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { buildLog } from '@utils'
1212
import { Wrapper, Icon, TextWrapper, Text, Focus } from './styles'
1313

1414
/* eslint-disable no-unused-vars */
15-
const debug = buildLog('c:FocusLine:index')
15+
const log = buildLog('c:FocusLine:index')
1616
/* eslint-enable no-unused-vars */
1717

1818
const FocusLine = ({ iconSrc, before, focus, after }) => (

0 commit comments

Comments
 (0)