diff options
author | Max Wu | 2016-10-13 12:41:57 +0800 |
---|---|---|
committer | GitHub | 2016-10-13 12:41:57 +0800 |
commit | af461ac2d6171b6133701ce0817d14f18b4fd4b1 (patch) | |
tree | 58ae2135c69dacdac283538b6b5e54c8c816bd9f /public/js/history.js | |
parent | 53f88d82d1ea414dc95e8f6181c3cc6638573665 (diff) | |
parent | 773c0ce39e2da7ea155949b5a6dae986a747e89a (diff) |
Merge pull request #195 from Yukaii/webpack-frontend
Use Webpack to bundle frontend code
Diffstat (limited to 'public/js/history.js')
-rw-r--r-- | public/js/history.js | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/public/js/history.js b/public/js/history.js index 324a9da2..d5082dd9 100644 --- a/public/js/history.js +++ b/public/js/history.js @@ -1,3 +1,15 @@ +var store = require('store'); + +var common = require('./common'); +var checkIfAuth = common.checkIfAuth; +var urlpath = common.urlpath; +var serverurl = common.serverurl; +var getLoginState = common.getLoginState; + +var extra = require('./extra'); +var renderFilename = extra.renderFilename; +var md = extra.md; + var migrateHistoryFromTempCallback = null; migrateHistoryFromTemp(); @@ -392,4 +404,18 @@ function deleteServerHistory(noteId, callback) { console.error(xhr.responseText); return callback(error, null); }); -}
\ No newline at end of file +} + +module.exports = { + writeHistory: writeHistory, + parseHistory: parseHistory, + getStorageHistory: getStorageHistory, + getHistory: getHistory, + saveHistory: saveHistory, + removeHistory: removeHistory, + parseStorageToHistory: parseStorageToHistory, + postHistoryToServer: postHistoryToServer, + deleteServerHistory: deleteServerHistory, + parseServerToHistory: parseServerToHistory, + saveStorageHistoryToServer: saveStorageHistoryToServer +} |