Skip to content

Commit 324ae39

Browse files
committed
Fixed ep_comments_page
1 parent 825ac57 commit 324ae39

File tree

6 files changed

+2059
-34
lines changed

6 files changed

+2059
-34
lines changed

ep_comments_page/exportHTML.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
const $ = require('cheerio').load('');
42
const commentManager = require('./commentManager');
53
import settings from 'ep_etherpad-lite/node/utils/Settings'

ep_comments_page/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
'use strict';
2-
3-
const AttributePool = require('ep_etherpad-lite/static/js/AttributePool');
41
const Changeset = require('ep_etherpad-lite/static/js/Changeset');
2+
import {} from 'ep_etherpad-lite/static/js/Changeset'
53
const eejs = require('ep_etherpad-lite/node/eejs/');
64
import settings from 'ep_etherpad-lite/node/utils/Settings'
5+
const padMessageHandler = require('ep_etherpad-lite/node/handler/PadMessageHandler');
6+
7+
const apiUtils = require('./apiUtils')
8+
79
const {Formidable} = require('formidable');
810
const commentManager = require('./commentManager');
9-
const apiUtils = require('./apiUtils');
1011
const _ = require('underscore');
11-
const padMessageHandler = require('ep_etherpad-lite/node/handler/PadMessageHandler');
12-
const readOnlyManager = require('ep_etherpad-lite/node/db/ReadOnlyManager');
12+
import readOnlyManager from 'ep_etherpad-lite/node/db/ReadOnlyManager'
1313

1414
let io;
1515

ep_comments_page/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"description": "Adds comments on sidebar and link it to the text. For no-skin use ep_page_view.",
33
"name": "ep_comments_page",
4-
"version": "10.0.2",
4+
"version": "10.0.3",
55
"author": {
66
"name": "Nicolas Lescop",
77
"email": "[email protected]"
@@ -31,7 +31,8 @@
3131
"eslint-config-etherpad": "catalog:",
3232
"socket.io-client": "catalog:",
3333
"superagent": "catalog:",
34-
"typescript": "catalog:"
34+
"typescript": "catalog:",
35+
"ep_etherpad-lite": "npm:[email protected]"
3536
},
3637
"scripts": {
3738
"lint": "eslint .",

ep_comments_page/static/js/copyPasteEvents.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
'use strict';
2-
1+
import {randomString} from 'ep_etherpad-lite/static/js/pad_utils'
32
const _ = require('underscore');
4-
const randomString = require('ep_etherpad-lite/static/js/pad_utils').randomString;
53
const shared = require('./shared');
64

75
exports.addTextOnClipboard = (e, ace, padInner, removeSelection, comments, replies) => {

ep_comments_page/static/js/shared.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
'use strict';
2-
3-
const randomString = require('ep_etherpad-lite/static/js/pad_utils').randomString;
1+
import {randomString} from 'ep_etherpad-lite/static/js/pad_utils'
42

53
const collectContentPre = (hookName, context, cb) => {
64
const comment = /(?:^| )(c-[A-Za-z0-9]*)/.exec(context.cls);

0 commit comments

Comments
 (0)