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

Commit 9b8b4bd

Browse files
committed
refactor(naming): makeDebugger -> buildLog
1 parent 6973ba7 commit 9b8b4bd

File tree

171 files changed

+342
-349
lines changed

Some content is hidden

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

171 files changed

+342
-349
lines changed

components/AdderCell/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import T from 'prop-types'
99

1010
import { ICON_CMD } from '@config'
1111

12-
import { makeDebugger } from '@utils'
12+
import { buildLog } from '@utils'
1313
import { AddWrapper, AddIcon, AddText } from './styles'
1414

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

1919
const AdderCell = ({ onAdd }) => (

components/AvatarsRow/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ import { Tooltip } from 'antd'
1111

1212
import { ATATARS_LIST_LENGTH } from 'config/general'
1313

14-
import { makeDebugger, prettyNum } from '@utils'
14+
import { buildLog, prettyNum } from '@utils'
1515
import { Avatars, AvatarsItem, AvatarsImg, AvatarsMore } from './styles'
1616

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

2121
const validUser = R.compose(

components/BannerCountBrief/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import React from 'react'
88
import T from 'prop-types'
99

10-
import { makeDebugger, toPercentNum } from '@utils'
10+
import { buildLog, toPercentNum } from '@utils'
1111

1212
import {
1313
Result,
@@ -18,7 +18,7 @@ import {
1818
} from './styles'
1919

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

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

components/ColorCell/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
import React from 'react'
88
import T from 'prop-types'
99

10-
import { makeDebugger } from '@utils'
10+
import { buildLog } from '@utils'
1111

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

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

components/CommunityCell/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import ReactTooltip from 'react-tooltip'
1111

1212
import { ICON_CMD } from '@config'
1313

14-
import { uid, makeDebugger } from '@utils'
14+
import { uid, buildLog } from '@utils'
1515
import AdderCell from '../AdderCell'
1616
import CommunitiesLogoList from './CommunitiesLogoList'
1717

@@ -26,7 +26,7 @@ import {
2626
} from './styles'
2727

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

3232
const SingleCommunity = ({ community }) => (

components/CommunityMatrix/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import ReactTooltip from 'react-tooltip'
1111

1212
import { ICON_CMD } from '@config'
1313

14-
import { makeDebugger, uid } from '@utils'
14+
import { buildLog, uid } from '@utils'
1515
import {
1616
MatrixWrapper,
1717
CommunityLogo,
@@ -20,7 +20,7 @@ import {
2020
} from './styles'
2121

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

2626
const tooltipOffset = JSON.stringify({ top: 5, right: -5 })

components/ContentFilter/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import React from 'react'
88
import T from 'prop-types'
99
import { Button, Row, Col, Tag } from 'antd'
1010
import { ICON_CMD } from '@config'
11-
import { makeDebugger, isEmptyValue } from '@utils'
11+
import { buildLog, isEmptyValue } from '@utils'
1212
import Popover from '../Popover'
1313

1414
import {
@@ -21,7 +21,7 @@ import {
2121
} from './styles'
2222

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

2727
const filterDict = {

components/ContentsCountCell/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
import React from 'react'
88
import T from 'prop-types'
99

10-
import { makeDebugger } from '@utils'
10+
import { buildLog } from '@utils'
1111
import { Wrapper, Content, Label, Count } from './styles'
1212

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

1717
const ContentsCountCell = ({

components/FileUploader/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import React from 'react'
88
import T from 'prop-types'
99

1010
import { ASSETS_ENDPOINT } from '@config'
11-
import { makeDebugger } from '@utils'
11+
import { buildLog } from '@utils'
1212
import { FileUploaderWrapper, InputFile } from './styles'
1313

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

1818
const getFullDir = (dir, nestDir) => {

components/FocusLine/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import React from 'react'
88
import R from 'ramda'
99
import T from 'prop-types'
1010

11-
import { makeDebugger } from '@utils'
11+
import { buildLog } from '@utils'
1212
import { Wrapper, Icon, TextWrapper, Text, Focus } from './styles'
1313

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

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

0 commit comments

Comments
 (0)