mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
lint: Run eslint --fix
This commit is contained in:
parent
8eb310854d
commit
c8211f2898
9 changed files with 23 additions and 23 deletions
|
@ -73,65 +73,65 @@ version['1'] = Object.assign({},
|
|||
setPublicStatus: ['padID', 'publicStatus'],
|
||||
getPublicStatus: ['padID'],
|
||||
listAuthorsOfPad: ['padID'],
|
||||
padUsersCount: ['padID']}
|
||||
padUsersCount: ['padID']},
|
||||
);
|
||||
|
||||
version['1.1'] = Object.assign({}, version['1'],
|
||||
{getAuthorName: ['authorID'],
|
||||
padUsers: ['padID'],
|
||||
sendClientsMessage: ['padID', 'msg'],
|
||||
listAllGroups: []}
|
||||
listAllGroups: []},
|
||||
);
|
||||
|
||||
version['1.2'] = Object.assign({}, version['1.1'],
|
||||
{checkToken: []}
|
||||
{checkToken: []},
|
||||
);
|
||||
|
||||
version['1.2.1'] = Object.assign({}, version['1.2'],
|
||||
{listAllPads: []}
|
||||
{listAllPads: []},
|
||||
);
|
||||
|
||||
version['1.2.7'] = Object.assign({}, version['1.2.1'],
|
||||
{createDiffHTML: ['padID', 'startRev', 'endRev'],
|
||||
getChatHistory: ['padID', 'start', 'end'],
|
||||
getChatHead: ['padID']}
|
||||
getChatHead: ['padID']},
|
||||
);
|
||||
|
||||
version['1.2.8'] = Object.assign({}, version['1.2.7'],
|
||||
{getAttributePool: ['padID'],
|
||||
getRevisionChangeset: ['padID', 'rev']}
|
||||
getRevisionChangeset: ['padID', 'rev']},
|
||||
);
|
||||
|
||||
version['1.2.9'] = Object.assign({}, version['1.2.8'],
|
||||
{copyPad: ['sourceID', 'destinationID', 'force'],
|
||||
movePad: ['sourceID', 'destinationID', 'force']}
|
||||
movePad: ['sourceID', 'destinationID', 'force']},
|
||||
);
|
||||
|
||||
version['1.2.10'] = Object.assign({}, version['1.2.9'],
|
||||
{getPadID: ['roID']}
|
||||
{getPadID: ['roID']},
|
||||
);
|
||||
|
||||
version['1.2.11'] = Object.assign({}, version['1.2.10'],
|
||||
{getSavedRevisionsCount: ['padID'],
|
||||
listSavedRevisions: ['padID'],
|
||||
saveRevision: ['padID', 'rev'],
|
||||
restoreRevision: ['padID', 'rev']}
|
||||
restoreRevision: ['padID', 'rev']},
|
||||
);
|
||||
|
||||
version['1.2.12'] = Object.assign({}, version['1.2.11'],
|
||||
{appendChatMessage: ['padID', 'text', 'authorID', 'time']}
|
||||
{appendChatMessage: ['padID', 'text', 'authorID', 'time']},
|
||||
);
|
||||
|
||||
version['1.2.13'] = Object.assign({}, version['1.2.12'],
|
||||
{appendText: ['padID', 'text']}
|
||||
{appendText: ['padID', 'text']},
|
||||
);
|
||||
|
||||
version['1.2.14'] = Object.assign({}, version['1.2.13'],
|
||||
{getStats: []}
|
||||
{getStats: []},
|
||||
);
|
||||
|
||||
version['1.2.15'] = Object.assign({}, version['1.2.14'],
|
||||
{copyPadWithoutHistory: ['sourceID', 'destinationID', 'force']}
|
||||
{copyPadWithoutHistory: ['sourceID', 'destinationID', 'force']},
|
||||
);
|
||||
|
||||
version['1.3.0'] = {
|
||||
|
|
|
@ -1287,7 +1287,7 @@ const composePadChangesets = async (padId, startNum, endNum) => {
|
|||
const changesets = {};
|
||||
await Promise.all(changesetsNeeded.map(
|
||||
(revNum) => pad.getRevisionChangeset(revNum)
|
||||
.then((changeset) => changesets[revNum] = changeset)
|
||||
.then((changeset) => changesets[revNum] = changeset),
|
||||
));
|
||||
|
||||
// compose Changesets
|
||||
|
|
|
@ -36,7 +36,7 @@ exports.expressPreSession = async (hookName, {app}) => {
|
|||
'static',
|
||||
'skins',
|
||||
settings.skinName,
|
||||
'robots.txt'
|
||||
'robots.txt',
|
||||
);
|
||||
res.sendFile(filePath, (err) => {
|
||||
// there is no custom robots.txt, send the default robots.txt which dissallows all
|
||||
|
|
|
@ -316,7 +316,7 @@ const getHTMLFromAtext = async (pad, atext, authorColors) => {
|
|||
if ((!prevLine || prevLine.listLevel !== line.listLevel) ||
|
||||
(line.listTypeName !== prevLine.listTypeName)) {
|
||||
const exists = _.find(openLists, (item) => (
|
||||
item.level === line.listLevel && item.type === line.listTypeName)
|
||||
item.level === line.listLevel && item.type === line.listTypeName),
|
||||
);
|
||||
if (!exists) {
|
||||
let prevLevel = 0;
|
||||
|
|
|
@ -103,8 +103,8 @@ _.extend(Button.prototype, {
|
|||
tag('button', {
|
||||
'class': ` ${this.attributes.class}`,
|
||||
'data-l10n-id': this.attributes.localizationId,
|
||||
})
|
||||
)
|
||||
}),
|
||||
),
|
||||
);
|
||||
},
|
||||
});
|
||||
|
@ -145,7 +145,7 @@ _.extend(SelectButton.prototype, Button.prototype, {
|
|||
'data-type': 'select',
|
||||
};
|
||||
return tag('li', attributes,
|
||||
this.select({id: this.attributes.selectId})
|
||||
this.select({id: this.attributes.selectId}),
|
||||
);
|
||||
},
|
||||
});
|
||||
|
|
|
@ -1855,7 +1855,7 @@ function Ace2Inner(editorInfo, cssManagers) {
|
|||
};
|
||||
|
||||
const analyzeChange = (
|
||||
oldText, newText, oldAttribs, newAttribs, optSelStartHint, optSelEndHint) => {
|
||||
oldText, newText, oldAttribs, newAttribs, optSelStartHint, optSelEndHint) => {
|
||||
// we need to take into account both the styles attributes & attributes defined by
|
||||
// the plugins, so basically we can ignore only the default line attribs used by
|
||||
// Etherpad
|
||||
|
|
|
@ -65,7 +65,7 @@ describe('Plugins page', function () {
|
|||
// Ensure it's a higher minor version IE 0.3.x as 0.2.x was installed
|
||||
// Coverage for https://github.com/ether/etherpad-lite/issues/4536
|
||||
await helper.waitForPromise(() => parseInt(helper.admin$(
|
||||
'.ep_align .version'
|
||||
'.ep_align .version',
|
||||
)
|
||||
.text()
|
||||
.split('.')[1]) > minorVersionBefore, 60000, 1000);
|
||||
|
|
|
@ -92,7 +92,7 @@ describe('change user color', function () {
|
|||
$chatInput.sendkeys('{enter}');
|
||||
|
||||
// wait until the chat message shows up
|
||||
helper.waitFor(() => chrome$('#chattext').children('p').length !== 0
|
||||
helper.waitFor(() => chrome$('#chattext').children('p').length !== 0,
|
||||
).done(() => {
|
||||
const $firstChatMessage = chrome$('#chattext').children('p');
|
||||
// expect the first chat message to be of the user's color
|
||||
|
|
|
@ -227,7 +227,7 @@ describe('easysync-mutations', function () {
|
|||
|
||||
// turn 123\n 456\n 789\n into 123\n 4<b>5</b>6\n 789\n
|
||||
runMutateAttributionTest(1,
|
||||
['bold,true'], 'Z:c>0|1=4=1*0=1$', ['|1+4', '|1+4', '|1+4'], ['|1+4', '+1*0+1|1+2', '|1+4']
|
||||
['bold,true'], 'Z:c>0|1=4=1*0=1$', ['|1+4', '|1+4', '|1+4'], ['|1+4', '+1*0+1|1+2', '|1+4'],
|
||||
);
|
||||
|
||||
// make a document bold
|
||||
|
|
Loading…
Reference in a new issue