diff options
author | Yukai Huang | 2017-01-05 20:56:16 +0800 |
---|---|---|
committer | Yukai Huang | 2017-01-05 20:56:16 +0800 |
commit | fce08cc164bb1ecc6b986fe6630381b630a1508c (patch) | |
tree | 0bc7516826ef0325ccd3d52a767ca09cab425dad /public/js/cover.js | |
parent | 71aece74292e9764e6dc20ebe84f211099d6076d (diff) |
Convert history.js to es6
Diffstat (limited to 'public/js/cover.js')
-rw-r--r-- | public/js/cover.js | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/public/js/cover.js b/public/js/cover.js index ecb385ed..677d82eb 100644 --- a/public/js/cover.js +++ b/public/js/cover.js @@ -11,20 +11,21 @@ import { setloginStateChangeEvent } from './common'; -import historyModule from './history'; -const parseStorageToHistory = historyModule.parseStorageToHistory; -const parseHistory = historyModule.parseHistory; -const getStorageHistory = historyModule.getStorageHistory; -const getHistory = historyModule.getHistory; -const saveHistory = historyModule.saveHistory; -const removeHistory = historyModule.removeHistory; -const postHistoryToServer = historyModule.postHistoryToServer; -const deleteServerHistory = historyModule.deleteServerHistory; -const parseServerToHistory = historyModule.parseServerToHistory; -const saveStorageHistoryToServer = historyModule.saveStorageHistoryToServer; -const clearDuplicatedHistory = historyModule.clearDuplicatedHistory; - -import {saveAs} from 'file-saver'; +import { + clearDuplicatedHistory, + deleteServerHistory, + getHistory, + getStorageHistory, + parseHistory, + parseServerToHistory, + parseStorageToHistory, + postHistoryToServer, + removeHistory, + saveHistory, + saveStorageHistoryToServer +} from './history'; + +import { saveAs } from 'file-saver'; import List from 'list.js'; import S from 'string'; |