Skip to content

Commit

Permalink
style: modify Map/Set style. 131d0d0
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 21, 2023
1 parent 7da25fb commit 9ffdd17
Show file tree
Hide file tree
Showing 71 changed files with 201 additions and 195 deletions.
6 changes: 3 additions & 3 deletions asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"files": {
"main.css": "/static/css/main.020a7543.css",
"main.js": "/static/js/main.5c7b788c.js",
"main.js": "/static/js/main.afaf187c.js",
"refractor-prismjs-vendor.0abbb2f3.js": "/static/js/refractor-prismjs-vendor.0abbb2f3.086bbe5c.js",
"react-vendor.js": "/static/js/react-vendor.c7475ed3.js",
"refractor-prismjs-vendor.3665b250.js": "/static/js/refractor-prismjs-vendor.3665b250.f12b46a8.js",
"refractor-prismjs-vendor.a81a7d65.js": "/static/js/refractor-prismjs-vendor.a81a7d65.de08a6f1.js",
"index.html": "/index.html",
"main.020a7543.css.map": "/static/css/main.020a7543.css.map",
"main.5c7b788c.js.map": "/static/js/main.5c7b788c.js.map",
"main.afaf187c.js.map": "/static/js/main.afaf187c.js.map",
"refractor-prismjs-vendor.0abbb2f3.086bbe5c.js.map": "/static/js/refractor-prismjs-vendor.0abbb2f3.086bbe5c.js.map",
"react-vendor.c7475ed3.js.map": "/static/js/react-vendor.c7475ed3.js.map",
"refractor-prismjs-vendor.3665b250.f12b46a8.js.map": "/static/js/refractor-prismjs-vendor.3665b250.f12b46a8.js.map",
Expand All @@ -20,6 +20,6 @@
"static/js/refractor-prismjs-vendor.0abbb2f3.086bbe5c.js",
"static/js/react-vendor.c7475ed3.js",
"static/css/main.020a7543.css",
"static/js/main.5c7b788c.js"
"static/js/main.afaf187c.js"
]
}
8 changes: 4 additions & 4 deletions 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 index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><meta name="keywords" content="react,react-component,array-viewer,base-16,component,interactive,interactive-json,json,json-component,json-display,json-tree,json-view,json-viewer,json-inspector,json-tree,react,react-component,react-json,theme,tree,tree-view,treeview,jaywcjlove"><meta name="description" content="A React component for displaying and editing javascript arrays and JSON objects."><link rel="shortcut icon" href="/favicon.ico"><title>react-json-view</title><script defer="defer" src="./static/js/refractor-prismjs-vendor.3665b250.f12b46a8.js"></script><script defer="defer" src="./static/js/refractor-prismjs-vendor.a81a7d65.de08a6f1.js"></script><script defer="defer" src="./static/js/refractor-prismjs-vendor.0abbb2f3.086bbe5c.js"></script><script defer="defer" src="./static/js/react-vendor.c7475ed3.js"></script><script defer="defer" src="./static/js/main.5c7b788c.js"></script><link href="./static/css/main.020a7543.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><meta name="keywords" content="react,react-component,array-viewer,base-16,component,interactive,interactive-json,json,json-component,json-display,json-tree,json-view,json-viewer,json-inspector,json-tree,react,react-component,react-json,theme,tree,tree-view,treeview,jaywcjlove"><meta name="description" content="A React component for displaying and editing javascript arrays and JSON objects."><link rel="shortcut icon" href="/favicon.ico"><title>react-json-view</title><script defer="defer" src="./static/js/refractor-prismjs-vendor.3665b250.f12b46a8.js"></script><script defer="defer" src="./static/js/refractor-prismjs-vendor.a81a7d65.de08a6f1.js"></script><script defer="defer" src="./static/js/refractor-prismjs-vendor.0abbb2f3.086bbe5c.js"></script><script defer="defer" src="./static/js/react-vendor.c7475ed3.js"></script><script defer="defer" src="./static/js/main.afaf187c.js"></script><link href="./static/css/main.020a7543.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
44 changes: 22 additions & 22 deletions lcov-report/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,30 @@ <h1>All files</h1>
<div class='clearfix'>

<div class='fl pad1y space-right2'>
<span class="strong">99.19% </span>
<span class="strong">99.06% </span>
<span class="quiet">Statements</span>
<span class='fraction'>741/747</span>
<span class='fraction'>739/746</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">79.62% </span>
<span class="strong">79.32% </span>
<span class="quiet">Branches</span>
<span class='fraction'>426/535</span>
<span class='fraction'>426/537</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">92% </span>
<span class="strong">91.93% </span>
<span class="quiet">Functions</span>
<span class='fraction'>115/125</span>
<span class='fraction'>114/124</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">99.29% </span>
<span class="strong">99.15% </span>
<span class="quiet">Lines</span>
<span class='fraction'>703/708</span>
<span class='fraction'>704/710</span>
</div>


Expand Down Expand Up @@ -110,17 +110,17 @@ <h1>All files</h1>

<tr>
<td class="file high" data-value="src/comps"><a href="src/comps/index.html">src/comps</a></td>
<td data-value="97.95" class="pic high">
<td data-value="97.27" class="pic high">
<div class="chart"><div class="cover-fill" style="width: 97%"></div><div class="cover-empty" style="width: 3%"></div></div>
</td>
<td data-value="97.95" class="pct high">97.95%</td>
<td data-value="147" class="abs high">144/147</td>
<td data-value="89.13" class="pct high">89.13%</td>
<td data-value="138" class="abs high">123/138</td>
<td data-value="90" class="pct high">90%</td>
<td data-value="20" class="abs high">18/20</td>
<td data-value="97.87" class="pct high">97.87%</td>
<td data-value="141" class="abs high">138/141</td>
<td data-value="97.27" class="pct high">97.27%</td>
<td data-value="147" class="abs high">143/147</td>
<td data-value="88.4" class="pct high">88.4%</td>
<td data-value="138" class="abs high">122/138</td>
<td data-value="89.47" class="pct high">89.47%</td>
<td data-value="19" class="abs high">17/19</td>
<td data-value="97.22" class="pct high">97.22%</td>
<td data-value="144" class="abs high">140/144</td>
</tr>

<tr>
Expand All @@ -144,13 +144,13 @@ <h1>All files</h1>
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="65" class="abs high">65/65</td>
<td data-value="64" class="abs high">64/64</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="0" class="abs high">0/0</td>
<td data-value="83.33" class="pct high">83.33%</td>
<td data-value="30" class="abs high">25/30</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="60" class="abs high">60/60</td>
<td data-value="59" class="abs high">59/59</td>
</tr>

<tr>
Expand Down Expand Up @@ -190,8 +190,8 @@ <h1>All files</h1>
</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="214" class="abs high">214/214</td>
<td data-value="76.47" class="pct medium">76.47%</td>
<td data-value="221" class="abs medium">169/221</td>
<td data-value="76.23" class="pct medium">76.23%</td>
<td data-value="223" class="abs medium">170/223</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="28" class="abs high">28/28</td>
<td data-value="100" class="pct high">100%</td>
Expand Down Expand Up @@ -221,7 +221,7 @@ <h1>All files</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 2023-09-21T05:32:09.370Z
at 2023-09-21T08:00:55.287Z
</div>
<script src="prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion lcov-report/src/Container.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ <h1><a href="../index.html">All files</a> / <a href="index.html">src</a> Contain
<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 2023-09-21T05:32:09.370Z
at 2023-09-21T08:00:55.287Z
</div>
<script src="../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion lcov-report/src/arrow/TriangleArrow.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/arrow</a
<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 2023-09-21T05:32:09.370Z
at 2023-09-21T08:00:55.287Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion lcov-report/src/arrow/TriangleSolidArrow.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/arrow</a
<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 2023-09-21T05:32:09.370Z
at 2023-09-21T08:00:55.287Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion lcov-report/src/arrow/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> src/arrow</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 2023-09-21T05:32:09.370Z
at 2023-09-21T08:00:55.287Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
67 changes: 32 additions & 35 deletions lcov-report/src/comps/Copied.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,30 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/comps</a
<div class='clearfix'>

<div class='fl pad1y space-right2'>
<span class="strong">94.73% </span>
<span class="strong">92.1% </span>
<span class="quiet">Statements</span>
<span class='fraction'>36/38</span>
<span class='fraction'>35/38</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">93.1% </span>
<span class="strong">89.65% </span>
<span class="quiet">Branches</span>
<span class='fraction'>27/29</span>
<span class='fraction'>26/29</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">66.66% </span>
<span class="strong">60% </span>
<span class="quiet">Functions</span>
<span class='fraction'>4/6</span>
<span class='fraction'>3/5</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">93.93% </span>
<span class="strong">91.66% </span>
<span class="quiet">Lines</span>
<span class='fraction'>31/33</span>
<span class='fraction'>33/36</span>
</div>


Expand Down Expand Up @@ -143,8 +143,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/comps</a
<a name='L78'></a><a href='#L78'>78</a>
<a name='L79'></a><a href='#L79'>79</a>
<a name='L80'></a><a href='#L80'>80</a>
<a name='L81'></a><a href='#L81'>81</a>
<a name='L82'></a><a href='#L82'>82</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<a name='L81'></a><a href='#L81'>81</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
Expand Down Expand Up @@ -175,24 +174,23 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/comps</a
<span class="cline-any cline-yes">37x</span>
<span class="cline-any cline-yes">6x</span>
<span class="cline-any cline-yes">6x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">7x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">6x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">5x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">4x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">6x</span>
<span class="cline-any cline-yes">6x</span>
<span class="cline-any cline-yes">6x</span>
<span class="cline-any cline-yes">6x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">6x</span>
<span class="cline-any cline-yes">6x</span>
<span class="cline-any cline-yes">6x</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
Expand Down Expand Up @@ -255,24 +253,23 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/comps</a
&nbsp;
const click = (event: React.MouseEvent&lt;SVGSVGElement, MouseEvent&gt;) =&gt; {
event.stopPropagation();
let copyText = JSON.stringify(
value,
(key, value) =&gt; {
if (typeof value === 'bigint') {
return value.toString();
}
return value;
},
2,
);
if (typeof value === 'number' &amp;&amp; value === Infinity) copyText = 'Infinity';
if (typeof value === 'number' &amp;&amp; isNaN(value)) copyText = 'NaN';
if (typeof value === 'bigint') copyText = value + 'n';
let copyText = '';
if (typeof value === 'number' &amp;&amp; value === Infinity) {
copyText = 'Infinity';
} else if (typeof value === 'number' &amp;&amp; isNaN(value)) {
copyText = 'NaN';
} else if (typeof value === 'bigint') {
copyText = value + 'n';
} else <span class="missing-if-branch" title="if path not taken" >I</span>if (value instanceof Date) {
<span class="cstat-no" title="statement not covered" > copyText = value.toLocaleString();</span>
} else {
copyText = JSON.stringify(value, null, 2);
}
onCopied &amp;&amp; <span class="branch-1 cbranch-no" title="branch not covered" >onCopied(copyText, value);</span>
setCopied(true);
navigator.clipboard
.writeText(copyText)
.then(() =&gt; {
onCopied &amp;&amp; <span class="branch-1 cbranch-no" title="branch not covered" >onCopied(copyText, value);</span>
setCopied(true);
const timer = setTimeout(<span class="fstat-no" title="function not covered" >()</span> =&gt; {
<span class="cstat-no" title="statement not covered" > setCopied(false);</span>
<span class="cstat-no" title="statement not covered" > clearTimeout(timer);</span>
Expand Down Expand Up @@ -313,7 +310,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/comps</a
<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 2023-09-21T05:32:09.370Z
at 2023-09-21T08:00:55.287Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion lcov-report/src/comps/KeyValues.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/comps</a
<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 2023-09-21T05:32:09.370Z
at 2023-09-21T08:00:55.287Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion lcov-report/src/comps/NestedClose.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/comps</a
<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 2023-09-21T05:32:09.370Z
at 2023-09-21T08:00:55.287Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion lcov-report/src/comps/NestedOpen.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">src/comps</a
<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 2023-09-21T05:32:09.370Z
at 2023-09-21T08:00:55.287Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion lcov-report/src/comps/Value.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/comps</a
<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 2023-09-21T05:32:09.370Z
at 2023-09-21T08:00:55.287Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
Loading

0 comments on commit 9ffdd17

Please sign in to comment.