Skip to content

Commit

Permalink
v2.3.1 refactor: replace let with const (#158) 45490df
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 24, 2024
1 parent 3647d04 commit 54501ba
Show file tree
Hide file tree
Showing 56 changed files with 67 additions and 65 deletions.
14 changes: 8 additions & 6 deletions coverage/CONTRIBUTORS.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions coverage/badges.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion coverage/lcov-report/color-alpha/src/Pointer.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-alpha/
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/color-alpha/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ <h1><a href="../../index.html">All files</a> color-alpha/src</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/color-alpha/src/index.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-alpha/
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/color-block/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h1><a href="../../index.html">All files</a> color-block/src</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/color-block/src/index.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-block/
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/color-chrome/src/Arrow.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-chrome
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/color-chrome/src/EyeDropper.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-chrome
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/color-chrome/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ <h1><a href="../../index.html">All files</a> color-chrome/src</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/color-chrome/src/index.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-chrome
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/color-circle/src/Point.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-circle
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/color-circle/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ <h1><a href="../../index.html">All files</a> color-circle/src</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/color-circle/src/index.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-circle
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/color-colorful/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h1><a href="../../index.html">All files</a> color-colorful/src</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/color-colorful/src/index.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-colorf
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/color-compact/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h1><a href="../../index.html">All files</a> color-compact/src</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/color-compact/src/index.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-compac
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/color-convert/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h1><a href="../../index.html">All files</a> color-convert/src</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
4 changes: 2 additions & 2 deletions coverage/lcov-report/color-convert/src/index.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-conver
&nbsp;
/** Converts an RGBA color plus alpha transparency to hex */
export const rgbaToHex = ({ r, g, b }: RgbaColor): string =&gt; {
let bin = (r &lt;&lt; 16) | (g &lt;&lt; 8) | b;
const bin = (r &lt;&lt; 16) | (g &lt;&lt; 8) | b;
return `#${((h) =&gt; new Array(7 - h.length).join('0') + h)(bin.toString(16))}`;
};
&nbsp;
Expand Down Expand Up @@ -1255,7 +1255,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-conver
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h1><a href="../../index.html">All files</a> color-editable-input-hsla/src</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-editab
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h1><a href="../../index.html">All files</a> color-editable-input-rgba/src</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-editab
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/color-editable-input/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h1><a href="../../index.html">All files</a> color-editable-input/src</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-editab
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/color-github/src/Point.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-github
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/color-github/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ <h1><a href="../../index.html">All files</a> color-github/src</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/color-github/src/index.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-github
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/color-hue/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h1><a href="../../index.html">All files</a> color-hue/src</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/color-hue/src/index.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-hue/sr
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/color-material/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h1><a href="../../index.html">All files</a> color-material/src</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/color-material/src/index.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-materi
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/color-name/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h1><a href="../../index.html">All files</a> color-name/src</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/color-name/src/index.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-name/s
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/color-saturation/src/Pointer.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-satura
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/color-saturation/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ <h1><a href="../../index.html">All files</a> color-saturation/src</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/color-saturation/src/index.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-satura
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/color-shade-slider/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h1><a href="../../index.html">All files</a> color-shade-slider/src</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/color-shade-slider/src/index.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-shade-
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-09-22T16:35:25.199Z
at 2024-09-24T15:55:39.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
Loading

0 comments on commit 54501ba

Please sign in to comment.