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 1, 2021. It is now read-only.

Commit5afb3d7

Browse files
committed
refactor(naming): debug -> log
1 parent9b8b4bd commit5afb3d7

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-
constdebug=buildLog('c:AdderCell:index')
16+
constlog=buildLog('c:AdderCell:index')
1717
/* eslint-enable no-unused-vars */
1818

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

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

3535
exportdefaultAdderCell

‎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-
constdebug=buildLog('c:AvatarsRow:index')
18+
constlog=buildLog('c:AvatarsRow:index')
1919
/* eslint-enable no-unused-vars */
2020

2121
constvalidUser=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
exportdefaultAvatarsRow

‎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-
constdebug=buildLog('c:BannerCountBrief:index')
21+
constlog=buildLog('c:BannerCountBrief:index')
2222
/* eslint-enable no-unused-vars */
2323

2424
constCountBrief=({ 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-
constdebug=buildLog('c:ColorCell:index')
14+
constlog=buildLog('c:ColorCell:index')
1515
/* eslint-enable no-unused-vars */
1616

1717
constColorCellComponent=({ 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-
constdebug=buildLog('c:CommunityCell:index')
29+
constlog=buildLog('c:CommunityCell:index')
3030
/* eslint-enable no-unused-vars */
3131

3232
constSingleCommunity=({ 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
exportdefaultCommunityCell

‎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-
constdebug=buildLog('c:CommunityMatrix:index')
23+
constlog=buildLog('c:CommunityMatrix:index')
2424
/* eslint-enable no-unused-vars */
2525

2626
consttooltipOffset=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-
constdebug=buildLog('c:ContentFilter:index')
24+
constlog=buildLog('c:ContentFilter:index')
2525
/* eslint-enable no-unused-vars */
2626

2727
constfilterDict={

‎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-
constdebug=buildLog('c:ContentsCountCell:index')
14+
constlog=buildLog('c:ContentsCountCell:index')
1515
/* eslint-enable no-unused-vars */
1616

1717
constContentsCountCell=({

‎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-
constdebug=buildLog('C:FileUploader')
15+
constlog=buildLog('C:FileUploader')
1616
/* eslint-enable no-unused-vars */
1717

1818
constgetFullDir=(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
exportdefaultFileUploader

‎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-
constdebug=buildLog('c:FocusLine:index')
15+
constlog=buildLog('c:FocusLine:index')
1616
/* eslint-enable no-unused-vars */
1717

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp