-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add bookTable functional component * Implement responsive booktable * Fix unwanted scroll bar on chromium browsers * Add column self-organization and 3 new columns * Add responsive behaviour on depth chart * Run prettier * Add minimum pageSize (book must at least be 1 row height) * Adjust circular spinner div height * Add order ID column style * Refactor window resize event listener * Add depth chart outline * Review fixes
- Loading branch information
1 parent
33941ce
commit e47d55b
Showing
11 changed files
with
800 additions
and
563 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export default function hexToRgb(c) { | ||
if (c.includes('rgb')) { | ||
const vals = c.split('(')[1].split(')')[0]; | ||
return vals.split(','); | ||
} | ||
if (/^#([a-f0-9]{3}){1,2}$/.test(c)) { | ||
if (c.length == 4) { | ||
c = '#' + [c[1], c[1], c[2], c[2], c[3], c[3]].join(''); | ||
} | ||
c = '0x' + c.substring(1); | ||
return [(c >> 16) & 255, (c >> 8) & 255, c & 255]; | ||
} | ||
return ''; | ||
} |
Oops, something went wrong.