mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 08:56:17 -04:00
add files to pad.js package and avoid requiring rjquery from pad.html
This commit is contained in:
parent
a0d3c55e17
commit
500215ea0e
3 changed files with 44 additions and 26 deletions
|
@ -1,28 +1,47 @@
|
||||||
{
|
{
|
||||||
"pad.js": [
|
"pad.js": [
|
||||||
"pad.js"
|
"pad.js"
|
||||||
, "pad_utils.js"
|
|
||||||
, "browser.js"
|
, "browser.js"
|
||||||
, "pad_cookie.js"
|
|
||||||
, "pad_editor.js"
|
|
||||||
, "pad_editbar.js"
|
|
||||||
, "vendors/nice-select.js"
|
|
||||||
, "pad_modals.js"
|
|
||||||
, "pad_automatic_reconnect.js"
|
|
||||||
, "ace.js"
|
|
||||||
, "collab_client.js"
|
|
||||||
, "pad_userlist.js"
|
|
||||||
, "pad_impexp.js"
|
|
||||||
, "pad_savedrevs.js"
|
|
||||||
, "pad_connectionstatus.js"
|
|
||||||
, "chat.js"
|
|
||||||
, "gritter.js"
|
|
||||||
, "$js-cookie/src/js.cookie.js"
|
|
||||||
, "$tinycon/tinycon.js"
|
|
||||||
, "farbtastic.js"
|
, "farbtastic.js"
|
||||||
|
, "skiplist.js"
|
||||||
|
, "contentcollector.js"
|
||||||
|
, "scroll.js"
|
||||||
|
, "caretPosition.js"
|
||||||
|
, "undomodule.js"
|
||||||
|
, "ace2_inner.js"
|
||||||
|
, "gritter.js"
|
||||||
|
, "rjquery.js"
|
||||||
|
, "jquery.js"
|
||||||
|
, "changesettracker.js"
|
||||||
|
, "pad_utils.js"
|
||||||
|
, "pluginfw/shared.js"
|
||||||
|
, "pluginfw/client_plugins.js"
|
||||||
|
, "pluginfw/hooks.js"
|
||||||
|
, "pluginfw/plugin_defs.js"
|
||||||
|
, "chat.js"
|
||||||
|
, "$security.js"
|
||||||
|
, "security.js"
|
||||||
|
, "$unorm/lib/unorm.js"
|
||||||
|
, "ace2_common.js"
|
||||||
|
, "$tinycon/tinycon.js"
|
||||||
|
, "$js-cookie/src/js.cookie.js"
|
||||||
|
, "collab_client.js"
|
||||||
|
, "pad_cookie.js"
|
||||||
|
, "pad_connectionstatus.js"
|
||||||
|
, "pad_userlist.js"
|
||||||
, "skin_variants.js"
|
, "skin_variants.js"
|
||||||
, "socketio.js"
|
, "pad_editor.js"
|
||||||
|
, "pad_modals.js"
|
||||||
|
, "pad_editbar.js"
|
||||||
|
, "ace.js"
|
||||||
|
, "pad_savedrevs.js"
|
||||||
|
, "underscore.js"
|
||||||
|
, "$underscore/underscore.js"
|
||||||
|
, "vendors/nice-select.js"
|
||||||
|
, "pad_automatic_reconnect.js"
|
||||||
|
, "pad_impexp.js"
|
||||||
, "colorutils.js"
|
, "colorutils.js"
|
||||||
|
, "socketio.js"
|
||||||
]
|
]
|
||||||
, "timeslider.js": [
|
, "timeslider.js": [
|
||||||
"timeslider.js"
|
"timeslider.js"
|
||||||
|
|
|
@ -24,9 +24,8 @@
|
||||||
|
|
||||||
let socket;
|
let socket;
|
||||||
|
|
||||||
// These jQuery things should create local references, but for now `require()`
|
// TODO: these globals should be removed when possible
|
||||||
// assigns to the global `$` and augments it with plugins.
|
window.$ = window.jQuery = require('./rjquery').$;
|
||||||
require('./jquery');
|
|
||||||
require('./farbtastic');
|
require('./farbtastic');
|
||||||
require('./gritter');
|
require('./gritter');
|
||||||
|
|
||||||
|
|
|
@ -481,7 +481,8 @@
|
||||||
require.setLibraryURI(baseURL + "javascripts/lib");
|
require.setLibraryURI(baseURL + "javascripts/lib");
|
||||||
require.setGlobalKeyPath("require");
|
require.setGlobalKeyPath("require");
|
||||||
|
|
||||||
$ = jQuery = require('ep_etherpad-lite/static/js/rjquery').jQuery; // Expose jQuery #HACK
|
// intentionally moved here before first using $/jQuery
|
||||||
|
pad = require('ep_etherpad-lite/static/js/pad').pad;
|
||||||
browser = require('ep_etherpad-lite/static/js/browser');
|
browser = require('ep_etherpad-lite/static/js/browser');
|
||||||
|
|
||||||
var plugins = require('ep_etherpad-lite/static/js/pluginfw/client_plugins');
|
var plugins = require('ep_etherpad-lite/static/js/pluginfw/client_plugins');
|
||||||
|
@ -494,13 +495,12 @@
|
||||||
hooks.aCallAll('documentReady');
|
hooks.aCallAll('documentReady');
|
||||||
});
|
});
|
||||||
|
|
||||||
var pad = require('ep_etherpad-lite/static/js/pad');
|
const _pad = require('ep_etherpad-lite/static/js/pad');
|
||||||
pad.baseURL = baseURL;
|
_pad.baseURL = baseURL;
|
||||||
pad.init();
|
_pad.init();
|
||||||
});
|
});
|
||||||
|
|
||||||
/* TODO: These globals shouldn't exist. */
|
/* TODO: These globals shouldn't exist. */
|
||||||
pad = require('ep_etherpad-lite/static/js/pad').pad;
|
|
||||||
chat = require('ep_etherpad-lite/static/js/chat').chat;
|
chat = require('ep_etherpad-lite/static/js/chat').chat;
|
||||||
padeditbar = require('ep_etherpad-lite/static/js/pad_editbar').padeditbar;
|
padeditbar = require('ep_etherpad-lite/static/js/pad_editbar').padeditbar;
|
||||||
padimpexp = require('ep_etherpad-lite/static/js/pad_impexp').padimpexp;
|
padimpexp = require('ep_etherpad-lite/static/js/pad_impexp').padimpexp;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue