Skip to content

Commit

Permalink
style: fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
likun7981 committed Jun 27, 2022
1 parent 7ac902c commit 7c318d9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ dist-ssr
*.local

/.vscode
/packages/app/db.json
/packages/app/hlink
4 changes: 2 additions & 2 deletions packages/app/client/components/RunDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import { taskService } from '../service'
ansiHtml.setColors({
red: 'ca372d',
green: '4c7b3a',
yellow: 'd4d697',
yellow: 'c6c964',
blue: '4387cf',
magenta: 'b86cb4',
cyan: '71d2c4',
white: 'ced4cc',
white: 'c3cac1',
gray: '9a9b99',
})
type IProps = {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export type LogLevel = 'INFO' | 'WARN' | 'ERROR' | 'SUCCEED'

const color: Record<LogLevel, ChalkInstance> = {
INFO: chalk.black.bgBlue,
WARN: chalk.black.bgHex('#faad14'),
WARN: chalk.black.bgYellow,
ERROR: chalk.black.bgRedBright,
SUCCEED: chalk.black.bgGreen,
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/utils/progress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export class SimpleProgressBar {
log.info('如果你看到这个消息,说明你的bash不支持格式化输入')
this.total = total
this.current = 0
this.stepCount = Math.max(Math.ceil(this.total / 10), 10)
this.stepCount = Math.min(Math.max(Math.ceil(this.total / 10), 10), 199)
}
tick = (count: number) => {
this.current += count
Expand Down

0 comments on commit 7c318d9

Please sign in to comment.