Publish v6.1.0

This commit is contained in:
jos 2019-06-22 16:31:42 +02:00
parent 8a95b5b640
commit d509d4e542
13 changed files with 2408 additions and 1960 deletions

View File

@ -3,10 +3,11 @@
https://github.com/josdejong/jsoneditor
## not yet published, version 6.1.0
## 2019-06-22, version 6.1.0
- Implemented menu options `sort` and `transform` for modes `code` and `text`.
- Implemented new context menu item `extract`.
- Minor tweaks in the way paths are displayed in the sort and transform modals.
## 2019-06-12, version 6.0.0

View File

@ -43,8 +43,8 @@
id="namedview4144"
showgrid="true"
inkscape:zoom="4"
inkscape:cx="101.95756"
inkscape:cy="63.092516"
inkscape:cx="13.229181"
inkscape:cy="119.82429"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
@ -733,4 +733,17 @@
id="path3546-2-2"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccccc" />
<rect
style="fill:#4c4c4c;fill-opacity:1;stroke:none;stroke-width:0"
id="svg_1-3"
height="16"
width="16"
y="28"
x="4" />
<path
sodipodi:nodetypes="ccccccccc"
inkscape:connector-curvature="0"
id="path4402-5-7"
d="m 15,41 0,-7 -4,0 0,3 -5,-4 5,-4 0,3 6,0 0,9"
style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.68465352px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
</svg>

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 31 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
dist/jsoneditor.css vendored
View File

@ -798,6 +798,10 @@ div.jsoneditor-contextmenu button.jsoneditor-transform > div.jsoneditor-icon {
background-position: -216px 0;
}
div.jsoneditor-contextmenu button.jsoneditor-extract > div.jsoneditor-icon {
background-position: 0 -24px;
}
/* ContextMenu - sub menu */
div.jsoneditor-contextmenu ul li button.jsoneditor-selected,

3251
dist/jsoneditor.js vendored

File diff suppressed because one or more lines are too long

2
dist/jsoneditor.map vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "jsoneditor",
"version": "6.0.0",
"version": "6.1.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "jsoneditor",
"version": "6.0.0",
"version": "6.1.0",
"main": "./index",
"description": "A web-based tool to view, edit, format, and validate JSON",
"tags": [

View File

@ -1236,8 +1236,8 @@ exports.sort = function (array, path, direction) {
var sortedArray = array.slice()
sortedArray.sort(function (a, b) {
const aValue = exports.get(a, parsedPath);
const bValue = exports.get(b, parsedPath);
var aValue = exports.get(a, parsedPath);
var bValue = exports.get(b, parsedPath);
return sign * (aValue > bValue ? 1 : aValue < bValue ? -1 : 0);
})