Fix HTML exporting

This commit is contained in:
Yukai Huang 2016-10-13 16:35:43 +08:00
parent d600364933
commit 747502e694
5 changed files with 12 additions and 4 deletions

View file

@ -1084,5 +1084,7 @@ module.exports = {
owner: owner, owner: owner,
updateLastChangeUser: updateLastChangeUser, updateLastChangeUser: updateLastChangeUser,
updateOwner: updateOwner, updateOwner: updateOwner,
parseMeta: parseMeta parseMeta: parseMeta,
exportToHTML: exportToHTML,
exportToRawHTML: exportToRawHTML
}; };

View file

@ -53,6 +53,8 @@ var owner = extra.owner;
var updateLastChangeUser = extra.updateLastChangeUser; var updateLastChangeUser = extra.updateLastChangeUser;
var updateOwner = extra.updateOwner; var updateOwner = extra.updateOwner;
var parseMeta = extra.parseMeta; var parseMeta = extra.parseMeta;
var exportToHTML = extra.exportToHTML;
var exportToRawHTML = extra.exportToRawHTML;
var historyModule = require('./history'); var historyModule = require('./history');
var writeHistory = historyModule.writeHistory; var writeHistory = historyModule.writeHistory;
@ -755,7 +757,7 @@ function updateStatusBar() {
} }
//ui vars //ui vars
var ui = { window.ui = {
spinner: $(".ui-spinner"), spinner: $(".ui-spinner"),
content: $(".ui-content"), content: $(".ui-content"),
toolbar: { toolbar: {

View file

@ -22,6 +22,7 @@
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" defer></script> <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/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 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> <script src="//cdnjs.cloudflare.com/ajax/libs/viz.js/1.3.0/viz.js" defer></script>
<%- include build/index-scripts %> <%- include build/index-scripts %>
<script src="<%- url %>/js/google-drive-upload.js" defer></script> <script src="<%- url %>/js/google-drive-upload.js" defer></script>

View file

@ -102,6 +102,7 @@
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <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="//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 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/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> <script src="//cdnjs.cloudflare.com/ajax/libs/viz.js/1.3.0/viz.js" defer></script>
<%- include build/pretty-scripts %> <%- include build/pretty-scripts %>

View file

@ -13,7 +13,8 @@ module.exports = {
$: "jquery", $: "jquery",
jQuery: "jquery", jQuery: "jquery",
"window.jQuery": "jquery", "window.jQuery": "jquery",
"moment": "moment" "moment": "moment",
"Handlebars": "handlebars"
}), }),
new ExtractTextPlugin("[name].css"), new ExtractTextPlugin("[name].css"),
new webpack.optimize.CommonsChunkPlugin({ new webpack.optimize.CommonsChunkPlugin({
@ -127,7 +128,8 @@ module.exports = {
"socket.io-client": "io", "socket.io-client": "io",
"lodash": "_", "lodash": "_",
"jquery": "$", "jquery": "$",
"moment": "moment" "moment": "moment",
"handlebars": "Handlebars"
}, },
module: { module: {