Commit Graph

859 Commits

Author SHA1 Message Date
jos b44a465207 Implemented mode `text` 2016-09-23 14:46:59 +02:00
jos 84031dc3ef Define keys 2016-09-23 14:02:08 +02:00
jos 10e9f16b75 Removed a todo 2016-09-23 12:07:44 +02:00
jos 6db127739c Some refactoring 2016-09-23 12:01:39 +02:00
jos 75c1497de1 Minor refactoring 2016-09-23 11:53:25 +02:00
jos 54788aa593 Created immutability function `insertAt` 2016-09-23 11:41:00 +02:00
jos 2a1fabc6ac Fixed the need for try/catch around oldValue 2016-09-23 11:17:53 +02:00
jos 291cfbfa22 Improved errors. Fixed move before 2016-09-23 11:15:56 +02:00
jos 515e7a6bf2 Fixed undo move losing position 2016-09-23 09:33:27 +02:00
jos 7f979b97dd Changed the signature of `jsonToData` to pass the json value first and make the other args optional 2016-09-18 21:54:39 +02:00
jos 0a857aaad6 Simplify patch 2016-09-18 15:40:40 +02:00
jos ad36723618 Fixed `move` 2016-09-18 15:30:57 +02:00
jos c8b3bd2d7a Extra info in JSONPatch mostly working 2016-09-17 16:46:58 +02:00
jos 7b6a3747d2 Refactored 'object' and 'array' to 'Object' and 'Array' respectively 2016-09-17 15:40:17 +02:00
jos fb758d3135 Turn on uglify again 2016-09-17 15:25:26 +02:00
jos 83ae2bab07 Fixed duplicate variables 2016-09-17 15:23:31 +02:00
jos d235425f36 Some refactoring 2016-09-17 15:12:25 +02:00
jos ff7f683b11 Fixed some issues with history 2016-09-17 14:18:54 +02:00
jos de6d7c9551 Reordered functions 2016-09-16 20:39:42 +02:00
jos 611db9c431 Removed `name` from global options 2016-09-16 20:37:07 +02:00
jos 3d467e65e1 History starts to work with JSONPatch 2016-09-16 15:09:31 +02:00
jos 678db6bced Use JSONPatch actions internally 2016-09-16 14:41:51 +02:00
jos 44183e01bd More refactoring 2016-09-09 15:19:57 +02:00
jos 7adc760b33 Refactored API of `remove` and `replace` 2016-09-09 14:43:58 +02:00
jos ec63a9a759 Make `add` standalone 2016-09-09 14:30:07 +02:00
jos bb8850fb91 immutabilityHelpers don't accept non-existing paths 2016-09-09 11:43:36 +02:00
jos fe0f98dfe0 Implemented jsonpatch operations 2016-09-09 11:01:06 +02:00
jos 94671507b5 Prevent duplicate property names 2016-08-26 13:25:34 +02:00
jos 9350debba2 Fixed property names not being escaped when rendering 2016-08-26 12:25:51 +02:00
jos 7280239771 Fixed losing caret position whilst typing 2016-08-26 12:16:43 +02:00
jos ea6b00b67d Fixed build script not outputting errors 2016-08-26 09:19:15 +02:00
jos 71c38f07af Created helper function to find a unique name (not yet used) 2016-08-26 08:57:27 +02:00
jos 123b0c7cb4 Implemented simple undo/redo support 2016-08-21 14:15:30 +02:00
jos 56fc3164ec Implemented menu with expand all / collapse all buttons 2016-08-21 13:43:28 +02:00
jos 737963b908 Remove console outputs 2016-08-21 13:14:18 +02:00
jos b6d622e0d0 Fixed array/object not being rendered empty when removing the last item 2016-08-21 13:12:47 +02:00
jos c5a68b1da3 Implemented expand/collapse methods and ctrl+expand/ctrl+collapse 2016-08-21 12:45:25 +02:00
jos d8a0079032 Show placeholders when a `prop` or `value` is empty 2016-08-20 11:34:37 +02:00
jos 069d35ace4 Moved the logic for manipulating JSONData object into a separate file 2016-08-20 11:14:28 +02:00
jos c8a5614511 Renamed `watch` script to `start` 2016-08-20 10:06:18 +02:00
jos 41821ef825 The factory function now creates a neat wrapper object instead of returning a TreeMode object 2016-08-19 21:14:09 +02:00
jos 422315dba2 Some refactoring 2016-08-14 14:00:14 +02:00
jos ebca411384 Moved functions from objectUtils.js to immutabilityHelpers.js 2016-08-13 21:45:09 +02:00
jos 24ab2899dc Some early refactoring of docs and examples 2016-08-13 21:38:32 +02:00
jos a12505b017 Updated license information on some other places too 2016-08-13 21:23:43 +02:00
jos 25dfa2c0e1 Put new build script into place, update unit testing, changed license to MIT, merged css and image into the bundled js file 2016-08-13 21:15:52 +02:00
jos d014146956 Added some todo's 2016-08-12 13:47:35 +02:00
jos 1099e3859f Set up a structure for JSONEditor base class (instead of Main) 2016-08-07 13:50:46 +02:00
jos 608f45c8e7 Changed singnature of `handleInsert`, `handleDuplicate`, and `handleRemove` 2016-08-06 14:18:15 +02:00
jos a065fbb09e Create a function `getPath` instead of passing path via props 2016-08-06 14:08:57 +02:00