mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-15 07:34:42 -04:00
Refactor webpack module
This commit is contained in:
parent
b90c26fe90
commit
43c9f68b9a
6 changed files with 132 additions and 98 deletions
|
@ -7,25 +7,16 @@ require('bootstrap/dist/css/bootstrap.css');
|
|||
require('prismjs/themes/prism.css');
|
||||
require('highlight.js/styles/github-gist.css');
|
||||
|
||||
/* other vendors plugin */
|
||||
require('gist-embed');
|
||||
require('string');
|
||||
require('prismjs');
|
||||
require('prismjs/components/prism-wiki');
|
||||
require('to-markdown');
|
||||
var toMarkdown = require('to-markdown');
|
||||
|
||||
require('raphael');
|
||||
require('js-sequence-diagrams');
|
||||
|
||||
require('flowchart.js');
|
||||
var saveAs = require('file-saver').saveAs;
|
||||
require('store');
|
||||
require('js-url');
|
||||
require('visibilityjs');
|
||||
var List = require('list.js');
|
||||
require('../vendor/md-toc');
|
||||
require('randomcolor');
|
||||
|
||||
var List = require('list.js');
|
||||
|
||||
var common = require('./common.js');
|
||||
var urlpath = common.urlpath;
|
||||
var noteid = common.noteid;
|
||||
|
@ -2268,6 +2259,7 @@ function havePermission() {
|
|||
window.havePermission = havePermission;
|
||||
|
||||
//socket.io actions
|
||||
var io = require("socket.io-client");
|
||||
var socket = io.connect({
|
||||
path: urlpath ? '/' + urlpath + '/socket.io/' : '',
|
||||
timeout: 5000 //5 secs to timeout
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue