Skip to content

Commit

Permalink
Merge pull request #36 from williamtroup/3.1.1
Browse files Browse the repository at this point in the history
3.1.1
  • Loading branch information
william-troup authored Sep 11, 2024
2 parents 781a6ab + ce6f301 commit 526b639
Show file tree
Hide file tree
Showing 79 changed files with 266 additions and 159 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
JsonTree.js

[![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=JsonTree.js%2C%20a%20free%20JavaScript%json%20treeview&url=https://github.com/williamtroup/JsonTree.js&hashtags=javascript,treeview,json)
[![npm](https://img.shields.io/badge/npmjs-v3.1.0-blue)](https://www.npmjs.com/package/jjsontree.js)
[![nuget](https://img.shields.io/badge/nuget-v3.1.0-purple)](https://www.nuget.org/packages/jJsonTree.js/)
[![npm](https://img.shields.io/badge/npmjs-v3.1.1-blue)](https://www.npmjs.com/package/jjsontree.js)
[![nuget](https://img.shields.io/badge/nuget-v3.1.1-purple)](https://www.nuget.org/packages/jJsonTree.js/)
[![license](https://img.shields.io/badge/license-MIT-green)](https://github.com/williamtroup/JsonTree.js/blob/main/LICENSE.txt)
[![discussions Welcome](https://img.shields.io/badge/discussions-Welcome-red)](https://github.com/williamtroup/JsonTree.js/discussions)
[![coded by William Troup](https://img.shields.io/badge/coded_by-William_Troup-yellow)](https://william-troup.com/)
</h1>

> <p align="center">🔗 A lightweight JavaScript library that generates customizable tree views to better visualize, and edit, JSON data.</p>
> <p align="center">v3.1.0</p>
> <p align="center">v3.1.1</p>
<br />
![JsonTree.js](docs/images/main.png)
Expand Down Expand Up @@ -154,11 +154,13 @@ You can install the library with npm into your local modules directory using the
npm install jjsontree.js
```

You can also use the following CDN links:
Or, you can download the latest zipped up version [here](https://www.william-troup.com/jsontree-js/download.html).

Or, you can also use the following CDN links:

```markdown
https://cdn.jsdelivr.net/gh/williamtroup/[email protected].0/dist/jsontree.min.js
https://cdn.jsdelivr.net/gh/williamtroup/[email protected].0/dist/jsontree.js.min.css
https://cdn.jsdelivr.net/gh/williamtroup/[email protected].1/dist/jsontree.min.js
https://cdn.jsdelivr.net/gh/williamtroup/[email protected].1/dist/jsontree.js.min.css
```
<br>
<br>
Expand Down
14 changes: 8 additions & 6 deletions README_NUGET.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# JsonTree.js v3.1.0
# JsonTree.js v3.1.1

[![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=JsonTree.js%2C%20a%20free%20JavaScript%json%20treeview&url=https://github.com/williamtroup/JsonTree.js&hashtags=javascript,treeview,json)
[![npm](https://img.shields.io/badge/npmjs-v3.1.0-blue)](https://www.npmjs.com/package/jjsontree.js)
[![nuget](https://img.shields.io/badge/nuget-v3.1.0-purple)](https://www.nuget.org/packages/jJsonTree.js/)
[![npm](https://img.shields.io/badge/npmjs-v3.1.1-blue)](https://www.npmjs.com/package/jjsontree.js)
[![nuget](https://img.shields.io/badge/nuget-v3.1.1-purple)](https://www.nuget.org/packages/jJsonTree.js/)
[![license](https://img.shields.io/badge/license-MIT-green)](https://github.com/williamtroup/JsonTree.js/blob/main/LICENSE.txt)
[![discussions Welcome](https://img.shields.io/badge/discussions-Welcome-red)](https://github.com/williamtroup/JsonTree.js/discussions)
[![coded by William Troup](https://img.shields.io/badge/coded_by-William_Troup-yellow)](https://william-troup.com/)
Expand Down Expand Up @@ -135,11 +135,13 @@ You can install the library with npm into your local modules directory using the
npm install jjsontree.js
```

You can also use the following CDN links:
Or, you can download the latest zipped up version [here](https://www.william-troup.com/jsontree-js/download.html).

Or, you can also use the following CDN links:

```markdown
https://cdn.jsdelivr.net/gh/williamtroup/[email protected].0/dist/jsontree.min.js
https://cdn.jsdelivr.net/gh/williamtroup/[email protected].0/dist/jsontree.js.min.css
https://cdn.jsdelivr.net/gh/williamtroup/[email protected].1/dist/jsontree.min.js
https://cdn.jsdelivr.net/gh/williamtroup/[email protected].1/dist/jsontree.js.min.css
```


Expand Down
14 changes: 7 additions & 7 deletions dist/jsontree.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ var Binding;
t.showTypes = Default2.getBoolean(t.showTypes, false);
t.logJsonValueToolTipPaths = Default2.getBoolean(t.logJsonValueToolTipPaths, false);
t.exportFilenameFormat = Default2.getString(t.exportFilenameFormat, "JsonTree_{dd}-{mm}-{yyyy}_{hh}-{MM}-{ss}.json");
t.showPropertyNameQuotes = Default2.getBoolean(t.showPropertyNameQuotes, false);
t.showPropertyNameQuotes = Default2.getBoolean(t.showPropertyNameQuotes, true);
t.showOpenedObjectArrayBorders = Default2.getBoolean(t.showOpenedObjectArrayBorders, true);
t.showPropertyNameAndIndexColors = Default2.getBoolean(t.showPropertyNameAndIndexColors, true);
t.showUrlOpenButtons = Default2.getBoolean(t.showUrlOpenButtons, true);
Expand Down Expand Up @@ -1477,10 +1477,10 @@ var Arr;
} else {
let n = l;
if (!y) {
if (o.maximumStringLength > 0 && l.length > o.maximumStringLength) {
l = l.substring(0, o.maximumStringLength) + e.text.ellipsisText;
if (o.maximumStringLength > 0 && n.length > o.maximumStringLength) {
n = n.substring(0, o.maximumStringLength) + e.text.ellipsisText;
}
n = o.showStringQuotes ? `"${l}"` : l;
n = o.showStringQuotes ? `"${n}"` : n;
f = o.showValueColors ? `${"string"} value` : "value";
T = o.allowEditing.stringValues;
} else {
Expand Down Expand Up @@ -1615,7 +1615,7 @@ var Arr;
}
g = DomElement.createWithHTML(l, "span", "main-title", e.text.mapText);
p = "map";
if (o.showCounts && r > 0 || !o.ignore.emptyObjects) {
if (o.showCounts && (r > 0 || !o.ignore.emptyObjects)) {
DomElement.createWithHTML(l, "span", "count", `{${r}}`);
}
if (o.showOpeningClosingCurlyBraces) {
Expand Down Expand Up @@ -1643,7 +1643,7 @@ var Arr;
}
g = DomElement.createWithHTML(r, "span", "main-title", e.text.objectText);
p = "object";
if (o.showCounts && n > 0 || !o.ignore.emptyObjects) {
if (o.showCounts && (n > 0 || !o.ignore.emptyObjects)) {
DomElement.createWithHTML(r, "span", "count", `{${n}}`);
}
if (o.showOpeningClosingCurlyBraces) {
Expand Down Expand Up @@ -2178,7 +2178,7 @@ var Arr;
return e;
},
getVersion: function() {
return "3.1.0";
return "3.1.1";
}
};
(() => {
Expand Down
2 changes: 1 addition & 1 deletion dist/jsontree.esm.js.map

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions dist/jsontree.js
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ var Binding;
t.showTypes = Default2.getBoolean(t.showTypes, false);
t.logJsonValueToolTipPaths = Default2.getBoolean(t.logJsonValueToolTipPaths, false);
t.exportFilenameFormat = Default2.getString(t.exportFilenameFormat, "JsonTree_{dd}-{mm}-{yyyy}_{hh}-{MM}-{ss}.json");
t.showPropertyNameQuotes = Default2.getBoolean(t.showPropertyNameQuotes, false);
t.showPropertyNameQuotes = Default2.getBoolean(t.showPropertyNameQuotes, true);
t.showOpenedObjectArrayBorders = Default2.getBoolean(t.showOpenedObjectArrayBorders, true);
t.showPropertyNameAndIndexColors = Default2.getBoolean(t.showPropertyNameAndIndexColors, true);
t.showUrlOpenButtons = Default2.getBoolean(t.showUrlOpenButtons, true);
Expand Down Expand Up @@ -1479,10 +1479,10 @@ var Arr;
} else {
let n = l;
if (!y) {
if (o.maximumStringLength > 0 && l.length > o.maximumStringLength) {
l = l.substring(0, o.maximumStringLength) + e.text.ellipsisText;
if (o.maximumStringLength > 0 && n.length > o.maximumStringLength) {
n = n.substring(0, o.maximumStringLength) + e.text.ellipsisText;
}
n = o.showStringQuotes ? `"${l}"` : l;
n = o.showStringQuotes ? `"${n}"` : n;
f = o.showValueColors ? `${"string"} value` : "value";
T = o.allowEditing.stringValues;
} else {
Expand Down Expand Up @@ -1617,7 +1617,7 @@ var Arr;
}
g = DomElement.createWithHTML(l, "span", "main-title", e.text.mapText);
p = "map";
if (o.showCounts && r > 0 || !o.ignore.emptyObjects) {
if (o.showCounts && (r > 0 || !o.ignore.emptyObjects)) {
DomElement.createWithHTML(l, "span", "count", `{${r}}`);
}
if (o.showOpeningClosingCurlyBraces) {
Expand Down Expand Up @@ -1645,7 +1645,7 @@ var Arr;
}
g = DomElement.createWithHTML(r, "span", "main-title", e.text.objectText);
p = "object";
if (o.showCounts && n > 0 || !o.ignore.emptyObjects) {
if (o.showCounts && (n > 0 || !o.ignore.emptyObjects)) {
DomElement.createWithHTML(r, "span", "count", `{${n}}`);
}
if (o.showOpeningClosingCurlyBraces) {
Expand Down Expand Up @@ -2180,7 +2180,7 @@ var Arr;
return e;
},
getVersion: function() {
return "3.1.0";
return "3.1.1";
}
};
(() => {
Expand Down
2 changes: 1 addition & 1 deletion dist/jsontree.js.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/jsontree.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/jsontree.min.js

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions dist/translations/jsontree.translations.af.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v3.1.0 - Afrikaans | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v3.1.1 - Afrikaans | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down Expand Up @@ -75,6 +75,8 @@ $jsontree.setConfiguration( {
"copyButtonText": "Kopieer",
"dragAndDropTitleText": "Sleep en los jou JSON-lêers om op te laai",
"dragAndDropDescriptionText": "Veelvuldige lêers sal as 'n skikking saamgevoeg word",
"exportButtonText": "Uitvoer"
"exportButtonText": "Uitvoer",
"noPropertiesText": "Daar is geen eiendomme om te besigtig nie.",
"openText": "oopmaak"
}
} );
6 changes: 4 additions & 2 deletions dist/translations/jsontree.translations.ar.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v3.1.0 - Arabic | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v3.1.1 - Arabic | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down Expand Up @@ -75,6 +75,8 @@ $jsontree.setConfiguration( {
"copyButtonText": "ينسخ",
"dragAndDropTitleText": "قم بسحب وإسقاط ملفات JSON للتحميل",
"dragAndDropDescriptionText": "سيتم ضم ملفات متعددة كمصفوفة",
"exportButtonText": "يصدّر"
"exportButtonText": "يصدّر",
"noPropertiesText": "لا توجد خصائص لعرضها.",
"openText": "يفتح"
}
} );
6 changes: 4 additions & 2 deletions dist/translations/jsontree.translations.be.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v3.1.0 - Belarusian | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v3.1.1 - Belarusian | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayHeaderNames": [
Expand Down Expand Up @@ -84,6 +84,8 @@ $jsontree.setConfiguration( {
"copyButtonText": "Копія",
"dragAndDropTitleText": "Перацягніце файлы JSON для загрузкі",
"dragAndDropDescriptionText": "Некалькі файлаў будуць аб'яднаны ў масіў",
"exportButtonText": "Экспарт"
"exportButtonText": "Экспарт",
"noPropertiesText": "Няма ўласцівасцей для прагляду.",
"openText": "адкрыты"
}
} );
6 changes: 4 additions & 2 deletions dist/translations/jsontree.translations.bg.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v3.1.0 - Bulgarian | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v3.1.1 - Bulgarian | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down Expand Up @@ -75,6 +75,8 @@ $jsontree.setConfiguration( {
"copyButtonText": "копие",
"dragAndDropTitleText": "Плъзнете и пуснете вашите JSON файлове за качване",
"dragAndDropDescriptionText": "Няколко файла ще бъдат обединени като масив",
"exportButtonText": "Експортиране"
"exportButtonText": "Експортиране",
"noPropertiesText": "Няма имоти за разглеждане.",
"openText": "отворен"
}
} );
6 changes: 4 additions & 2 deletions dist/translations/jsontree.translations.bn.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v3.1.0 - Bengali | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v3.1.1 - Bengali | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down Expand Up @@ -75,6 +75,8 @@ $jsontree.setConfiguration( {
"copyButtonText": "কপি",
"dragAndDropTitleText": "আপলোড করতে আপনার JSON ফাইলগুলি টেনে আনুন এবং ফেলে দিন",
"dragAndDropDescriptionText": "একাধিক ফাইল একটি অ্যারে হিসাবে যোগদান করা হবে",
"exportButtonText": "রপ্তানি"
"exportButtonText": "রপ্তানি",
"noPropertiesText": "দেখার জন্য কোন বৈশিষ্ট্য নেই.",
"openText": "খোলা"
}
} );
4 changes: 3 additions & 1 deletion dist/translations/jsontree.translations.ca.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ $jsontree.setConfiguration( {
"copyButtonText": "Còpia",
"dragAndDropTitleText": "Arrossegueu i deixeu anar els fitxers JSON per carregar-los",
"dragAndDropDescriptionText": "S'uniran diversos fitxers com a matriu",
"exportButtonText": "Exporta"
"exportButtonText": "Exporta",
"noPropertiesText": "No hi ha propietats per veure.",
"openText": "obert"
}
} );
6 changes: 4 additions & 2 deletions dist/translations/jsontree.translations.da.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v3.1.0 - Danish | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v3.1.1 - Danish | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down Expand Up @@ -75,6 +75,8 @@ $jsontree.setConfiguration( {
"copyButtonText": "Kopi",
"dragAndDropTitleText": "Træk og slip dine JSON-filer for at uploade",
"dragAndDropDescriptionText": "Flere filer vil blive samlet som et array",
"exportButtonText": "Eksportere"
"exportButtonText": "Eksportere",
"noPropertiesText": "Der er ingen ejendomme at se.",
"openText": "åben"
}
} );
6 changes: 4 additions & 2 deletions dist/translations/jsontree.translations.de.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v3.1.0 - German | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v3.1.1 - German | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down Expand Up @@ -75,6 +75,8 @@ $jsontree.setConfiguration( {
"copyButtonText": "Kopie",
"dragAndDropTitleText": "Ziehen Sie Ihre JSON-Dateien per Drag-and-Drop hoch",
"dragAndDropDescriptionText": "Mehrere Dateien werden als Array zusammengefügt",
"exportButtonText": "Export"
"exportButtonText": "Export",
"noPropertiesText": "Es sind keine Eigenschaften zum Anzeigen vorhanden.",
"openText": "offen"
}
} );
6 changes: 4 additions & 2 deletions dist/translations/jsontree.translations.el.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v3.1.0 - Greek | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v3.1.1 - Greek | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down Expand Up @@ -75,6 +75,8 @@ $jsontree.setConfiguration( {
"copyButtonText": "Αντίγραφο",
"dragAndDropTitleText": "Σύρετε και αποθέστε τα αρχεία JSON για μεταφόρτωση",
"dragAndDropDescriptionText": "Πολλά αρχεία θα ενωθούν ως πίνακας",
"exportButtonText": "Εξαγωγή"
"exportButtonText": "Εξαγωγή",
"noPropertiesText": "Δεν υπάρχουν ιδιότητες για προβολή.",
"openText": "ανοιχτό"
}
} );
6 changes: 4 additions & 2 deletions dist/translations/jsontree.translations.en.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v3.1.0 - English | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v3.1.1 - English | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down Expand Up @@ -75,6 +75,8 @@ $jsontree.setConfiguration( {
"copyButtonText": "Copy",
"dragAndDropTitleText": "Drag and drop your JSON files to upload",
"dragAndDropDescriptionText": "Multiple files will be joined as an array",
"exportButtonText": "Export"
"exportButtonText": "Export",
"noPropertiesText": "There are no properties to view.",
"openText": "open"
}
} );
6 changes: 4 additions & 2 deletions dist/translations/jsontree.translations.eo.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v3.1.0 - Esperanto | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v3.1.1 - Esperanto | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down Expand Up @@ -75,6 +75,8 @@ $jsontree.setConfiguration( {
"copyButtonText": "Kopiu",
"dragAndDropTitleText": "Trenu kaj faligi viajn JSON-dosierojn por alŝuti",
"dragAndDropDescriptionText": "Multoblaj dosieroj estos kunigitaj kiel tabelo",
"exportButtonText": "Eksporto"
"exportButtonText": "Eksporto",
"noPropertiesText": "Ne estas posedaĵoj por vidi.",
"openText": "malfermita"
}
} );
6 changes: 4 additions & 2 deletions dist/translations/jsontree.translations.es.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v3.1.0 - Spanish | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v3.1.1 - Spanish | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down Expand Up @@ -75,6 +75,8 @@ $jsontree.setConfiguration( {
"copyButtonText": "Copiar",
"dragAndDropTitleText": "Arrastre y suelte sus archivos JSON para cargarlos",
"dragAndDropDescriptionText": "Se unirán varios archivos como una matriz",
"exportButtonText": "Exportar"
"exportButtonText": "Exportar",
"noPropertiesText": "No hay propiedades para ver.",
"openText": "abierto"
}
} );
6 changes: 4 additions & 2 deletions dist/translations/jsontree.translations.et.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JsonTree.js v3.1.0 - Estonian | (c) Bunoon 2024 | MIT License */
/*! JsonTree.js v3.1.1 - Estonian | (c) Bunoon 2024 | MIT License */
$jsontree.setConfiguration( {
"text": {
"dayNames": [
Expand Down Expand Up @@ -75,6 +75,8 @@ $jsontree.setConfiguration( {
"copyButtonText": "Kopeeri",
"dragAndDropTitleText": "Üleslaadimiseks pukseerige oma JSON-failid",
"dragAndDropDescriptionText": "Mitu faili liidetakse massiivina",
"exportButtonText": "Ekspordi"
"exportButtonText": "Ekspordi",
"noPropertiesText": "Vaatamiseks pole atribuute.",
"openText": "avatud"
}
} );
Loading

0 comments on commit 526b639

Please sign in to comment.