From 9c9e5db72d05a81053aeac40441dbc523125981f Mon Sep 17 00:00:00 2001 From: John McLear Date: Thu, 29 Mar 2012 19:40:55 +0100 Subject: [PATCH] Add ability to export specific pad revisions Conflicts: node/utils/Minify.js node/utils/Settings.js static/css/timeslider.css static/js/pad_impexp.js static/timeslider.html --- node/utils/Minify.js | 4 + static/css/timeslider.css | 5 +- static/timeslider.html | 159 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 167 insertions(+), 1 deletion(-) diff --git a/node/utils/Minify.js b/node/utils/Minify.js index 859ee07a..3c3eb12f 100644 --- a/node/utils/Minify.js +++ b/node/utils/Minify.js @@ -40,6 +40,10 @@ var CACHE_DIR = ROOT_DIR + '../var/'; var TAR_PATH = path.join(__dirname, 'tar.json'); var tar = JSON.parse(fs.readFileSync(TAR_PATH, 'utf8')); +var padJS = ["jquery.min.js", "pad_utils.js", "plugins.js", "undo-xpopup.js", "json2.js", "pad_cookie.js", "pad_editor.js", "pad_editbar.js", "pad_docbar.js", "pad_modals.js", "ace.js", "collab_client.js", "pad_userlist.js", "pad_impexp.js", "pad_savedrevs.js", "pad_connectionstatus.js", "pad2.js", "jquery-ui.js", "chat.js", "excanvas.js", "farbtastic.js"]; + +var timesliderJS = ["jquery.min.js", "plugins.js", "undo-xpopup.js", "json2.js", "colorutils.js", "draggable.js", "pad_utils.js", "pad_cookie.js", "pad_editor.js", "pad_editbar.js", "pad_docbar.js", "pad_modals.js", "pad_impexp.js", "easysync2_client.js", "domline_client.js", "linestylefilter_client.js", "cssmanager_client.js", "broadcast.js", "broadcast_slider.js", "broadcast_revisions.js"]; + /** * creates the minifed javascript for the given minified name * @param req the Express request diff --git a/static/css/timeslider.css b/static/css/timeslider.css index 6022e2d7..1413e407 100644 --- a/static/css/timeslider.css +++ b/static/css/timeslider.css @@ -195,8 +195,11 @@ float:right; color: #222; } -#importexport { top: 118px; } #importexport .popup { width: 185px; } +#importexport{ + top:118px; + width:185px; +} ul { margin-left: 1.5em; } ul ul { margin-left: 0 !important; } diff --git a/static/timeslider.html b/static/timeslider.html index 579e26ef..e4588d35 100644 --- a/static/timeslider.html +++ b/static/timeslider.html @@ -9,6 +9,165 @@ + + + + + + + +