mirror of https://github.com/status-im/codimd.git
Update to es6 module import style
This commit is contained in:
parent
7637a6a8a6
commit
ba1bef015f
|
@ -12,14 +12,14 @@ require('../css/site.css')
|
||||||
|
|
||||||
require('highlight.js/styles/github-gist.css')
|
require('highlight.js/styles/github-gist.css')
|
||||||
|
|
||||||
var toMarkdown = require('to-markdown')
|
import toMarkdown from 'to-markdown'
|
||||||
|
|
||||||
var saveAs = require('file-saver').saveAs
|
import { saveAs } from 'file-saver'
|
||||||
var randomColor = require('randomcolor')
|
import randomColor from 'randomcolor'
|
||||||
|
|
||||||
var _ = require('lodash')
|
import _ from 'lodash'
|
||||||
|
|
||||||
var List = require('list.js')
|
import List from 'list.js'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
checkLoginStateChanged,
|
checkLoginStateChanged,
|
||||||
|
@ -75,8 +75,7 @@ import {
|
||||||
removeHistory
|
removeHistory
|
||||||
} from './history'
|
} from './history'
|
||||||
|
|
||||||
var renderer = require('./render')
|
import { preventXSS } from './render'
|
||||||
var preventXSS = renderer.preventXSS
|
|
||||||
|
|
||||||
import Editor from './lib/editor'
|
import Editor from './lib/editor'
|
||||||
import EditorConfig from './lib/editor/config'
|
import EditorConfig from './lib/editor/config'
|
||||||
|
|
Loading…
Reference in New Issue