From 21b3756b6ec845f52a6f48bc1eadc0443f6c7c8f Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 12 Nov 2013 10:21:39 +0000 Subject: [PATCH] feature(diff) add --- HELP.md | 1 + html/config.html | 1 + lib/client/edit.js | 43 +- lib/diff.js | 21 + lib/diff/diff-match-patch.js | 2193 ++++++++++++++++++++++++++++++++++ lib/server/main.js | 5 +- lib/server/rest.js | 50 +- 7 files changed, 2309 insertions(+), 5 deletions(-) create mode 100644 lib/diff.js create mode 100644 lib/diff/diff-match-patch.js diff --git a/HELP.md b/HELP.md index b5c8de8a..8fec6ed4 100644 --- a/HELP.md +++ b/HELP.md @@ -148,6 +148,7 @@ All main configuration could be done via [config.json](json/config.json "Config" "apiURL" :"/api/v1", "appCache" : false, /* cache files for offline use */ "analytics" : true, /* google analytics suport */ + "diff" : false, /* when save - send patch not whole file */ "localStorage" : true, /* cache directory data */ "minify" : true /* minification of js,css,html and img */ "online" : true, /* load js files from cdn or local path */ diff --git a/html/config.html b/html/config.html index aca28d82..ebf91524 100644 --- a/html/config.html +++ b/html/config.html @@ -2,6 +2,7 @@