mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 06:34:39 -04:00
Convert history.js to es6
This commit is contained in:
parent
71aece7429
commit
fce08cc164
3 changed files with 112 additions and 132 deletions
|
@ -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 {
|
||||
clearDuplicatedHistory,
|
||||
deleteServerHistory,
|
||||
getHistory,
|
||||
getStorageHistory,
|
||||
parseHistory,
|
||||
parseServerToHistory,
|
||||
parseStorageToHistory,
|
||||
postHistoryToServer,
|
||||
removeHistory,
|
||||
saveHistory,
|
||||
saveStorageHistoryToServer
|
||||
} from './history';
|
||||
|
||||
import {saveAs} from 'file-saver';
|
||||
import { saveAs } from 'file-saver';
|
||||
import List from 'list.js';
|
||||
import S from 'string';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue