mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-20 14:39:53 +01:00
remove more dead requires.
This commit is contained in:
parent
a2d22a5764
commit
b204aa2085
18 changed files with 1 additions and 34 deletions
|
@ -21,7 +21,6 @@
|
||||||
|
|
||||||
var ERR = require("async-stacktrace");
|
var ERR = require("async-stacktrace");
|
||||||
var db = require("./DB").db;
|
var db = require("./DB").db;
|
||||||
var async = require("async");
|
|
||||||
var customError = require("../utils/customError");
|
var customError = require("../utils/customError");
|
||||||
var randomString = require('ep_etherpad-lite/static/js/pad_utils').randomString;
|
var randomString = require('ep_etherpad-lite/static/js/pad_utils').randomString;
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
|
|
||||||
|
|
||||||
var ERR = require("async-stacktrace");
|
var ERR = require("async-stacktrace");
|
||||||
var db = require("./DB").db;
|
|
||||||
var async = require("async");
|
var async = require("async");
|
||||||
var authorManager = require("./AuthorManager");
|
var authorManager = require("./AuthorManager");
|
||||||
var padManager = require("./PadManager");
|
var padManager = require("./PadManager");
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Store = require('ep_etherpad-lite/node_modules/connect/lib/middleware/session/store'),
|
var Store = require('ep_etherpad-lite/node_modules/connect/lib/middleware/session/store'),
|
||||||
utils = require('ep_etherpad-lite/node_modules/connect/lib/utils'),
|
|
||||||
Session = require('ep_etherpad-lite/node_modules/connect/lib/middleware/session/session'),
|
|
||||||
db = require('ep_etherpad-lite/node/db/DB').db,
|
db = require('ep_etherpad-lite/node/db/DB').db,
|
||||||
log4js = require('ep_etherpad-lite/node_modules/log4js'),
|
log4js = require('ep_etherpad-lite/node_modules/log4js'),
|
||||||
messageLogger = log4js.getLogger("SessionStore");
|
messageLogger = log4js.getLogger("SessionStore");
|
||||||
|
|
|
@ -22,7 +22,6 @@ var ERR = require("async-stacktrace");
|
||||||
var exporthtml = require("../utils/ExportHtml");
|
var exporthtml = require("../utils/ExportHtml");
|
||||||
var exporttxt = require("../utils/ExportTxt");
|
var exporttxt = require("../utils/ExportTxt");
|
||||||
var exportdokuwiki = require("../utils/ExportDokuWiki");
|
var exportdokuwiki = require("../utils/ExportDokuWiki");
|
||||||
var padManager = require("../db/PadManager");
|
|
||||||
var async = require("async");
|
var async = require("async");
|
||||||
var fs = require("fs");
|
var fs = require("fs");
|
||||||
var settings = require('../utils/Settings');
|
var settings = require('../utils/Settings');
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
var path = require('path');
|
|
||||||
var eejs = require('ep_etherpad-lite/node/eejs');
|
var eejs = require('ep_etherpad-lite/node/eejs');
|
||||||
var installer = require('ep_etherpad-lite/static/js/pluginfw/installer');
|
var installer = require('ep_etherpad-lite/static/js/pluginfw/installer');
|
||||||
var plugins = require('ep_etherpad-lite/static/js/pluginfw/plugins');
|
var plugins = require('ep_etherpad-lite/static/js/pluginfw/plugins');
|
||||||
var _ = require('underscore');
|
var _ = require('underscore');
|
||||||
var semver = require('semver');
|
var semver = require('semver');
|
||||||
var async = require('async');
|
|
||||||
|
|
||||||
exports.expressCreateServer = function (hook_name, args, cb) {
|
exports.expressCreateServer = function (hook_name, args, cb) {
|
||||||
args.app.get('/admin/plugins', function(req, res) {
|
args.app.get('/admin/plugins', function(req, res) {
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
var path = require('path');
|
|
||||||
var eejs = require('ep_etherpad-lite/node/eejs');
|
var eejs = require('ep_etherpad-lite/node/eejs');
|
||||||
var settings = require('ep_etherpad-lite/node/utils/Settings');
|
var settings = require('ep_etherpad-lite/node/utils/Settings');
|
||||||
var installer = require('ep_etherpad-lite/static/js/pluginfw/installer');
|
|
||||||
var hooks = require("ep_etherpad-lite/static/js/pluginfw/hooks");
|
var hooks = require("ep_etherpad-lite/static/js/pluginfw/hooks");
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,6 @@ exports.expressCreateServer = function (hook_name, args, cb) {
|
||||||
{
|
{
|
||||||
var html;
|
var html;
|
||||||
var padId;
|
var padId;
|
||||||
var pad;
|
|
||||||
|
|
||||||
async.series([
|
async.series([
|
||||||
//translate the read only pad to a padId
|
//translate the read only pad to a padId
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
var log4js = require('log4js');
|
|
||||||
var settings = require('../../utils/Settings');
|
var settings = require('../../utils/Settings');
|
||||||
var socketio = require('socket.io');
|
var socketio = require('socket.io');
|
||||||
var socketIORouter = require("../../handler/SocketIORouter");
|
var socketIORouter = require("../../handler/SocketIORouter");
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
var path = require('path');
|
|
||||||
var minify = require('../../utils/Minify');
|
var minify = require('../../utils/Minify');
|
||||||
var plugins = require("ep_etherpad-lite/static/js/pluginfw/plugins");
|
var plugins = require("ep_etherpad-lite/static/js/pluginfw/plugins");
|
||||||
var CachingMiddleware = require('../../utils/caching_middleware');
|
var CachingMiddleware = require('../../utils/caching_middleware');
|
||||||
var settings = require("../../utils/Settings");
|
var settings = require("../../utils/Settings");
|
||||||
var Yajsml = require('yajsml');
|
var Yajsml = require('yajsml');
|
||||||
var fs = require("fs");
|
|
||||||
var ERR = require("async-stacktrace");
|
|
||||||
var _ = require("underscore");
|
var _ = require("underscore");
|
||||||
|
|
||||||
exports.expressCreateServer = function (hook_name, args, cb) {
|
exports.expressCreateServer = function (hook_name, args, cb) {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
var log4js = require('log4js');
|
|
||||||
var express = require('express');
|
var express = require('express');
|
||||||
var apiHandler = require('../../handler/APIHandler');
|
var apiHandler = require('../../handler/APIHandler');
|
||||||
var apiCaller = require('./apicalls').apiCaller;
|
var apiCaller = require('./apicalls').apiCaller;
|
||||||
|
|
|
@ -2,7 +2,6 @@ var express = require('express');
|
||||||
var log4js = require('log4js');
|
var log4js = require('log4js');
|
||||||
var httpLogger = log4js.getLogger("http");
|
var httpLogger = log4js.getLogger("http");
|
||||||
var settings = require('../../utils/Settings');
|
var settings = require('../../utils/Settings');
|
||||||
var randomString = require('ep_etherpad-lite/static/js/pad_utils').randomString;
|
|
||||||
var hooks = require('ep_etherpad-lite/static/js/pluginfw/hooks');
|
var hooks = require('ep_etherpad-lite/static/js/pluginfw/hooks');
|
||||||
var ueberStore = require('../../db/SessionStore');
|
var ueberStore = require('../../db/SessionStore');
|
||||||
var stats = require('ep_etherpad-lite/node/stats')
|
var stats = require('ep_etherpad-lite/node/stats')
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
var languages = require('languages4translatewiki')
|
var languages = require('languages4translatewiki')
|
||||||
, fs = require('fs')
|
, fs = require('fs')
|
||||||
, path = require('path')
|
, path = require('path')
|
||||||
, express = require('express')
|
|
||||||
, _ = require('underscore')
|
, _ = require('underscore')
|
||||||
, npm = require('npm')
|
, npm = require('npm')
|
||||||
, plugins = require('ep_etherpad-lite/static/js/pluginfw/plugins.js').plugins
|
, plugins = require('ep_etherpad-lite/static/js/pluginfw/plugins.js').plugins
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var util = require('util');
|
|
||||||
var spawn = require('child_process').spawn;
|
var spawn = require('child_process').spawn;
|
||||||
var async = require("async");
|
var async = require("async");
|
||||||
var settings = require("./Settings");
|
var settings = require("./Settings");
|
||||||
|
|
|
@ -18,12 +18,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var async = require("async");
|
|
||||||
var Changeset = require("ep_etherpad-lite/static/js/Changeset");
|
var Changeset = require("ep_etherpad-lite/static/js/Changeset");
|
||||||
var padManager = require("../db/PadManager");
|
|
||||||
var ERR = require("async-stacktrace");
|
|
||||||
var Security = require('ep_etherpad-lite/static/js/security');
|
|
||||||
var hooks = require('ep_etherpad-lite/static/js/pluginfw/hooks');
|
|
||||||
|
|
||||||
exports.getPadPlainText = function(pad, revNum){
|
exports.getPadPlainText = function(pad, revNum){
|
||||||
var atext = ((revNum !== undefined) ? pad.getInternalRevisionAText(revNum) : pad.atext());
|
var atext = ((revNum !== undefined) ? pad.getInternalRevisionAText(revNum) : pad.atext());
|
||||||
|
|
|
@ -22,9 +22,6 @@ var async = require("async");
|
||||||
var Changeset = require("ep_etherpad-lite/static/js/Changeset");
|
var Changeset = require("ep_etherpad-lite/static/js/Changeset");
|
||||||
var padManager = require("../db/PadManager");
|
var padManager = require("../db/PadManager");
|
||||||
var ERR = require("async-stacktrace");
|
var ERR = require("async-stacktrace");
|
||||||
var Security = require('ep_etherpad-lite/static/js/security');
|
|
||||||
var hooks = require('ep_etherpad-lite/static/js/pluginfw/hooks');
|
|
||||||
var getPadPlainText = require('./ExportHelper').getPadPlainText;
|
|
||||||
var _analyzeLine = require('./ExportHelper')._analyzeLine;
|
var _analyzeLine = require('./ExportHelper')._analyzeLine;
|
||||||
|
|
||||||
// This is slightly different than the HTML method as it passes the output to getTXTFromAText
|
// This is slightly different than the HTML method as it passes the output to getTXTFromAText
|
||||||
|
@ -82,7 +79,6 @@ function getTXTFromAtext(pad, atext, authorColors)
|
||||||
var textLines = atext.text.slice(0, -1).split('\n');
|
var textLines = atext.text.slice(0, -1).split('\n');
|
||||||
var attribLines = Changeset.splitAttributionLines(atext.attribs, atext.text);
|
var attribLines = Changeset.splitAttributionLines(atext.attribs, atext.text);
|
||||||
|
|
||||||
var tags = ['h1', 'h2', 'strong', 'em', 'u', 's'];
|
|
||||||
var props = ['heading1', 'heading2', 'bold', 'italic', 'underline', 'strikethrough'];
|
var props = ['heading1', 'heading2', 'bold', 'italic', 'underline', 'strikethrough'];
|
||||||
var anumMap = {};
|
var anumMap = {};
|
||||||
var css = "";
|
var css = "";
|
||||||
|
@ -110,7 +106,6 @@ function getTXTFromAtext(pad, atext, authorColors)
|
||||||
// <b>Just bold <i>Bold and italics</i></b> <i>Just italics</i>
|
// <b>Just bold <i>Bold and italics</i></b> <i>Just italics</i>
|
||||||
var taker = Changeset.stringIterator(text);
|
var taker = Changeset.stringIterator(text);
|
||||||
var assem = Changeset.stringAssembler();
|
var assem = Changeset.stringAssembler();
|
||||||
var openTags = [];
|
|
||||||
|
|
||||||
var idx = 0;
|
var idx = 0;
|
||||||
|
|
||||||
|
@ -250,7 +245,6 @@ function getTXTFromAtext(pad, atext, authorColors)
|
||||||
// so we want to do something reasonable there. We also
|
// so we want to do something reasonable there. We also
|
||||||
// want to deal gracefully with blank lines.
|
// want to deal gracefully with blank lines.
|
||||||
// => keeps track of the parents level of indentation
|
// => keeps track of the parents level of indentation
|
||||||
var lists = []; // e.g. [[1,'bullet'], [3,'bullet'], ...]
|
|
||||||
for (var i = 0; i < textLines.length; i++)
|
for (var i = 0; i < textLines.length; i++)
|
||||||
{
|
{
|
||||||
var line = _analyzeLine(textLines[i], attribLines[i], apool);
|
var line = _analyzeLine(textLines[i], attribLines[i], apool);
|
||||||
|
|
|
@ -261,7 +261,6 @@ function getAceFile(callback) {
|
||||||
// them into the file.
|
// them into the file.
|
||||||
async.forEach(founds, function (item, callback) {
|
async.forEach(founds, function (item, callback) {
|
||||||
var filename = item.match(/"([^"]*)"/)[1];
|
var filename = item.match(/"([^"]*)"/)[1];
|
||||||
var request = require('request');
|
|
||||||
|
|
||||||
var baseURI = 'http://localhost:' + settings.port;
|
var baseURI = 'http://localhost:' + settings.port;
|
||||||
var resourceURI = baseURI + path.normalize(path.join('/static/', filename));
|
var resourceURI = baseURI + path.normalize(path.join('/static/', filename));
|
||||||
|
|
|
@ -19,7 +19,6 @@ var Buffer = require('buffer').Buffer;
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
var zlib = require('zlib');
|
var zlib = require('zlib');
|
||||||
var util = require('util');
|
|
||||||
var settings = require('./Settings');
|
var settings = require('./Settings');
|
||||||
var semver = require('semver');
|
var semver = require('semver');
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
var _ = require("underscore")
|
var _ = require("underscore")
|
||||||
, tagAttributes
|
, tagAttributes
|
||||||
, tag
|
, tag
|
||||||
, defaultButtons
|
|
||||||
, Button
|
, Button
|
||||||
, ButtonsGroup
|
, ButtonsGroup
|
||||||
, Separator
|
, Separator
|
||||||
|
@ -122,8 +121,7 @@ _.extend(SelectButton.prototype, Button.prototype, {
|
||||||
},
|
},
|
||||||
|
|
||||||
select: function (attributes) {
|
select: function (attributes) {
|
||||||
var self = this
|
var options = [];
|
||||||
, options = [];
|
|
||||||
|
|
||||||
_.each(this.options, function (opt) {
|
_.each(this.options, function (opt) {
|
||||||
var a = _.extend({
|
var a = _.extend({
|
||||||
|
|
Loading…
Reference in a new issue