Skip to content

Commit

Permalink
fix: fix: resolve issues from codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
mekery committed Apr 17, 2020
1 parent d0073f7 commit 4142525
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ framework: [
]
```



## Usage

Register `quasar-tiptap` globally by installing plugin, or import `QuasarTiptap` component as needed.
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function getConfig ({
}),
alias({
entries: {
'src': srcDir,
src: srcDir,
},
}),
typescript({
Expand Down
6 changes: 3 additions & 3 deletions src/utils/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ export function rgbToHex (rgb) {
}

let splits = rgb.split(',')
let r = parseInt(splits[0].split('(')[1])
let g = parseInt(splits[1])
let b = parseInt(splits[2].split(')')[0])
let r = parseInt(splits[0].split('(')[1], 10)
let g = parseInt(splits[1], 10)
let b = parseInt(splits[2].split(')')[0], 10)
let hex = '#' + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1)

return hex
Expand Down

0 comments on commit 4142525

Please sign in to comment.