diff --git a/bower.json b/bower.json index 5009bc8fb..728a220b8 100644 --- a/bower.json +++ b/bower.json @@ -16,50 +16,22 @@ ], "dependencies": { "bootstrap": "~3.3.7", - "jquery": "~3.1.0", "font-awesome": "~4.6.3", "Ionicons": "ionicons#~2.0.1", "reveal.js": "~3.3.0", - "jquery-mousewheel": "~3.1.13", "spin.js": "~2.3.2", "moment": "~2.14.1", "handlebars": "~4.0.5", - "js-url": "~2.3.0", - "socket.io-client": "~1.4.8", - "viz.js": "~1.3.0", "js-yaml": "~3.6.1", - "to-markdown": "~3.0.1", - "lz-string": "~1.4.4", "raphael": "~2.2.1", - "flowchart": "~1.6.3", "xss": "~0.2.13", - "markdown-it": "^7.0.0", - "markdown-it-abbr": "^1.0.4", - "markdown-it-footnote": "^3.0.1", - "markdown-it-deflist": "^2.0.1", - "markdown-it-mark": "^2.0.0", - "markdown-it-ins": "^2.0.0", - "markdown-it-sub": "^1.0.0", - "markdown-it-sup": "^1.0.0", - "markdown-it-container": "^2.0.0", "mermaid": "^6.0.0", "MathJax": "^2.6.1", "octicons": "~3.5.0", "velocity": "^1.2.3", - "highlightjs": "^9.5.0", - "lodash": "^4.14.1", "randomcolor": "randomColor#^0.4.4", - "file-saver": "FileSaver#^1.3.1", "Idle.Js": "idle.js#^1.0.0", - "js-cookie": "^2.1.2", - "list.js": "^1.2.0", - "store-js": "store.js#^1.3.20", - "string": "^3.3.1", - "visibilityjs": "^1.2.3", - "pdfobject": "pdfobject2#*", - "gist-embed": "*", - "keymaster": "^1.6.3", - "prism": "^1.5.1" + "gist-embed": "*" }, "resolutions": { "jquery": "~3.1.0" diff --git a/package.json b/package.json index b0e0605ba..af442d94a 100644 --- a/package.json +++ b/package.json @@ -93,7 +93,8 @@ "toobusy-js": "^0.5.1", "visibilityjs": "^1.2.4", "viz.js": "^1.3.0", - "winston": "^2.2.0" + "winston": "^2.2.0", + "xss": "^0.2.13" }, "engines": { "node": ">=4.x" diff --git a/public/js/cover.js b/public/js/cover.js index d3d3c10b2..6346f1443 100644 --- a/public/js/cover.js +++ b/public/js/cover.js @@ -12,6 +12,9 @@ var getHistory = historyModule.getHistory; var saveHistory = historyModule.saveHistory; var removeHistory = historyModule.removeHistory; +var saveAs = require('file-saver').saveAs; +var List = require('list.js'); + var options = { valueNames: ['id', 'text', 'timestamp', 'fromNow', 'time', 'tags', 'pinned'], item: '