mirror of https://github.com/status-im/codimd.git
Fix HTML exporting
This commit is contained in:
parent
d600364933
commit
747502e694
|
@ -1084,5 +1084,7 @@ module.exports = {
|
|||
owner: owner,
|
||||
updateLastChangeUser: updateLastChangeUser,
|
||||
updateOwner: updateOwner,
|
||||
parseMeta: parseMeta
|
||||
parseMeta: parseMeta,
|
||||
exportToHTML: exportToHTML,
|
||||
exportToRawHTML: exportToRawHTML
|
||||
};
|
||||
|
|
|
@ -53,6 +53,8 @@ var owner = extra.owner;
|
|||
var updateLastChangeUser = extra.updateLastChangeUser;
|
||||
var updateOwner = extra.updateOwner;
|
||||
var parseMeta = extra.parseMeta;
|
||||
var exportToHTML = extra.exportToHTML;
|
||||
var exportToRawHTML = extra.exportToRawHTML;
|
||||
|
||||
var historyModule = require('./history');
|
||||
var writeHistory = historyModule.writeHistory;
|
||||
|
@ -755,7 +757,7 @@ function updateStatusBar() {
|
|||
}
|
||||
|
||||
//ui vars
|
||||
var ui = {
|
||||
window.ui = {
|
||||
spinner: $(".ui-spinner"),
|
||||
content: $(".ui-content"),
|
||||
toolbar: {
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" defer></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/4.16.4/lodash.min.js" defer></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/socket.io/1.5.0/socket.io.min.js" defer></script>
|
||||
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.5/handlebars.min.js" defer></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/viz.js/1.3.0/viz.js" defer></script>
|
||||
<%- include build/index-scripts %>
|
||||
<script src="<%- url %>/js/google-drive-upload.js" defer></script>
|
||||
|
|
|
@ -102,6 +102,7 @@
|
|||
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
|
||||
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" defer></script>
|
||||
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.5/handlebars.min.js" defer></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/4.16.4/lodash.min.js" defer></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/viz.js/1.3.0/viz.js" defer></script>
|
||||
<%- include build/pretty-scripts %>
|
||||
|
|
|
@ -13,7 +13,8 @@ module.exports = {
|
|||
$: "jquery",
|
||||
jQuery: "jquery",
|
||||
"window.jQuery": "jquery",
|
||||
"moment": "moment"
|
||||
"moment": "moment",
|
||||
"Handlebars": "handlebars"
|
||||
}),
|
||||
new ExtractTextPlugin("[name].css"),
|
||||
new webpack.optimize.CommonsChunkPlugin({
|
||||
|
@ -127,7 +128,8 @@ module.exports = {
|
|||
"socket.io-client": "io",
|
||||
"lodash": "_",
|
||||
"jquery": "$",
|
||||
"moment": "moment"
|
||||
"moment": "moment",
|
||||
"handlebars": "Handlebars"
|
||||
},
|
||||
|
||||
module: {
|
||||
|
|
Loading…
Reference in New Issue