Skip to content

Commit eea7409

Browse files
committed
Improve rendering for Extended JSON and for long strings
1 parent 0bb3640 commit eea7409

14 files changed

+267
-29
lines changed

docs-src/demo.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ const demoData = {
66
element2: 1234,
77
element3: [23, 43, true, false, null, { name: 'special' }, {}],
88
element4: [],
9-
element5: 'this should be some long text\nwith line break',
9+
element5:
10+
'this should be some long text\nwith line break.\nIt shows how long text is handled in the Big JSON Viewer. ' +
11+
'Not everything is rendered at once, only parts of it to keep the performance high. The limit is set by default to 250 characters.' +
12+
'This part of the text is only to make sure that we go over that limit and see how it works in practice. ',
1013
element6: {
1114
name: 'Hero',
1215
age: 32,
@@ -31,7 +34,13 @@ const demoData = {
3134
extendedJson: {
3235
binaryData: {
3336
$binary: {
34-
base64: 'VGhpcyBpcyBhIGJpbmFyeSBzYW1wbGU',
37+
base64:
38+
'dGhpcyBzaG91bGQgYmUgc29tZSBsb25nIHRleHRcbndpdGggbGluZSBicmVhay5cbkl0IHNob3d' +
39+
'zIGhvdyBsb25nIHRleHQgaXMgaGFuZGxlZCBpbiB0aGUgQmlnIEpTT04gVmlld2VyLiBOb3QgZX' +
40+
'Zlcnl0aGluZyBpcyByZW5kZXJlZCBhdCBvbmNlLCBvbmx5IHBhcnRzIG9mIGl0IHRvIGtlZXAgd' +
41+
'GhlIHBlcmZvcm1hbmNlIGhpZ2guIFRoZSBsaW1pdCBpcyBzZXQgYnkgZGVmYXVsdCB0byAyNTAg' +
42+
'Y2hhcmFjdGVycy5UaGlzIHBhcnQgb2YgdGhlIHRleHQgaXMgb25seSB0byBtYWtlIHN1cmUgdGh' +
43+
'hdCB3ZSBnbyBvdmVyIHRoYXQgbGltaXQgYW5kIHNlZSBob3cgaXQgd29ya3MgaW4gcHJhY3RpY2Uu',
3544
subType: '00',
3645
},
3746
},

docs/docs-src.824317f5.css

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/docs-src.824317f5.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/docs-src.970d2ac4.css

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/docs-src.970d2ac4.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/docs-src.97895f40.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/docs-src.97895f40.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/docs-src.be048dda.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/docs-src.be048dda.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html><html lang=en><meta charset=UTF-8><title>Big JSON Viewer Demo</title><link rel=stylesheet href=https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css integrity=sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm crossorigin=anonymous><link rel=stylesheet href=docs-src.824317f5.css><style>body{font-family:Helvetica,serif}</style><body>
1+
<!DOCTYPE html><html lang=en><meta charset=UTF-8><title>Big JSON Viewer Demo</title><link rel=stylesheet href=https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css integrity=sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm crossorigin=anonymous><link rel=stylesheet href=docs-src.970d2ac4.css><style>body{font-family:Helvetica,serif}</style><body>
22
<div class=p-3 style="background:#fff;border:1px solid #ccc;position:fixed;top:0;right:0">
33
<input placeholder=Search id=search>
44
<span id=searchInfo></span>
@@ -43,6 +43,6 @@ <h5 class=mt-3>Copied paths</h5>
4343
</footer>
4444
</div>
4545

46-
<script type=module src=docs-src.97895f40.js></script>
46+
<script type=module src=docs-src.be048dda.js></script>
4747

4848

0 commit comments

Comments
 (0)