mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +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'],
|
setPublicStatus: ['padID', 'publicStatus'],
|
||||||
getPublicStatus: ['padID'],
|
getPublicStatus: ['padID'],
|
||||||
listAuthorsOfPad: ['padID'],
|
listAuthorsOfPad: ['padID'],
|
||||||
padUsersCount: ['padID']}
|
padUsersCount: ['padID']},
|
||||||
);
|
);
|
||||||
|
|
||||||
version['1.1'] = Object.assign({}, version['1'],
|
version['1.1'] = Object.assign({}, version['1'],
|
||||||
{getAuthorName: ['authorID'],
|
{getAuthorName: ['authorID'],
|
||||||
padUsers: ['padID'],
|
padUsers: ['padID'],
|
||||||
sendClientsMessage: ['padID', 'msg'],
|
sendClientsMessage: ['padID', 'msg'],
|
||||||
listAllGroups: []}
|
listAllGroups: []},
|
||||||
);
|
);
|
||||||
|
|
||||||
version['1.2'] = Object.assign({}, version['1.1'],
|
version['1.2'] = Object.assign({}, version['1.1'],
|
||||||
{checkToken: []}
|
{checkToken: []},
|
||||||
);
|
);
|
||||||
|
|
||||||
version['1.2.1'] = Object.assign({}, version['1.2'],
|
version['1.2.1'] = Object.assign({}, version['1.2'],
|
||||||
{listAllPads: []}
|
{listAllPads: []},
|
||||||
);
|
);
|
||||||
|
|
||||||
version['1.2.7'] = Object.assign({}, version['1.2.1'],
|
version['1.2.7'] = Object.assign({}, version['1.2.1'],
|
||||||
{createDiffHTML: ['padID', 'startRev', 'endRev'],
|
{createDiffHTML: ['padID', 'startRev', 'endRev'],
|
||||||
getChatHistory: ['padID', 'start', 'end'],
|
getChatHistory: ['padID', 'start', 'end'],
|
||||||
getChatHead: ['padID']}
|
getChatHead: ['padID']},
|
||||||
);
|
);
|
||||||
|
|
||||||
version['1.2.8'] = Object.assign({}, version['1.2.7'],
|
version['1.2.8'] = Object.assign({}, version['1.2.7'],
|
||||||
{getAttributePool: ['padID'],
|
{getAttributePool: ['padID'],
|
||||||
getRevisionChangeset: ['padID', 'rev']}
|
getRevisionChangeset: ['padID', 'rev']},
|
||||||
);
|
);
|
||||||
|
|
||||||
version['1.2.9'] = Object.assign({}, version['1.2.8'],
|
version['1.2.9'] = Object.assign({}, version['1.2.8'],
|
||||||
{copyPad: ['sourceID', 'destinationID', 'force'],
|
{copyPad: ['sourceID', 'destinationID', 'force'],
|
||||||
movePad: ['sourceID', 'destinationID', 'force']}
|
movePad: ['sourceID', 'destinationID', 'force']},
|
||||||
);
|
);
|
||||||
|
|
||||||
version['1.2.10'] = Object.assign({}, version['1.2.9'],
|
version['1.2.10'] = Object.assign({}, version['1.2.9'],
|
||||||
{getPadID: ['roID']}
|
{getPadID: ['roID']},
|
||||||
);
|
);
|
||||||
|
|
||||||
version['1.2.11'] = Object.assign({}, version['1.2.10'],
|
version['1.2.11'] = Object.assign({}, version['1.2.10'],
|
||||||
{getSavedRevisionsCount: ['padID'],
|
{getSavedRevisionsCount: ['padID'],
|
||||||
listSavedRevisions: ['padID'],
|
listSavedRevisions: ['padID'],
|
||||||
saveRevision: ['padID', 'rev'],
|
saveRevision: ['padID', 'rev'],
|
||||||
restoreRevision: ['padID', 'rev']}
|
restoreRevision: ['padID', 'rev']},
|
||||||
);
|
);
|
||||||
|
|
||||||
version['1.2.12'] = Object.assign({}, version['1.2.11'],
|
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'],
|
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'],
|
version['1.2.14'] = Object.assign({}, version['1.2.13'],
|
||||||
{getStats: []}
|
{getStats: []},
|
||||||
);
|
);
|
||||||
|
|
||||||
version['1.2.15'] = Object.assign({}, version['1.2.14'],
|
version['1.2.15'] = Object.assign({}, version['1.2.14'],
|
||||||
{copyPadWithoutHistory: ['sourceID', 'destinationID', 'force']}
|
{copyPadWithoutHistory: ['sourceID', 'destinationID', 'force']},
|
||||||
);
|
);
|
||||||
|
|
||||||
version['1.3.0'] = {
|
version['1.3.0'] = {
|
||||||
|
|
|
@ -1287,7 +1287,7 @@ const composePadChangesets = async (padId, startNum, endNum) => {
|
||||||
const changesets = {};
|
const changesets = {};
|
||||||
await Promise.all(changesetsNeeded.map(
|
await Promise.all(changesetsNeeded.map(
|
||||||
(revNum) => pad.getRevisionChangeset(revNum)
|
(revNum) => pad.getRevisionChangeset(revNum)
|
||||||
.then((changeset) => changesets[revNum] = changeset)
|
.then((changeset) => changesets[revNum] = changeset),
|
||||||
));
|
));
|
||||||
|
|
||||||
// compose Changesets
|
// compose Changesets
|
||||||
|
|
|
@ -36,7 +36,7 @@ exports.expressPreSession = async (hookName, {app}) => {
|
||||||
'static',
|
'static',
|
||||||
'skins',
|
'skins',
|
||||||
settings.skinName,
|
settings.skinName,
|
||||||
'robots.txt'
|
'robots.txt',
|
||||||
);
|
);
|
||||||
res.sendFile(filePath, (err) => {
|
res.sendFile(filePath, (err) => {
|
||||||
// there is no custom robots.txt, send the default robots.txt which dissallows all
|
// 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) ||
|
if ((!prevLine || prevLine.listLevel !== line.listLevel) ||
|
||||||
(line.listTypeName !== prevLine.listTypeName)) {
|
(line.listTypeName !== prevLine.listTypeName)) {
|
||||||
const exists = _.find(openLists, (item) => (
|
const exists = _.find(openLists, (item) => (
|
||||||
item.level === line.listLevel && item.type === line.listTypeName)
|
item.level === line.listLevel && item.type === line.listTypeName),
|
||||||
);
|
);
|
||||||
if (!exists) {
|
if (!exists) {
|
||||||
let prevLevel = 0;
|
let prevLevel = 0;
|
||||||
|
|
|
@ -103,8 +103,8 @@ _.extend(Button.prototype, {
|
||||||
tag('button', {
|
tag('button', {
|
||||||
'class': ` ${this.attributes.class}`,
|
'class': ` ${this.attributes.class}`,
|
||||||
'data-l10n-id': this.attributes.localizationId,
|
'data-l10n-id': this.attributes.localizationId,
|
||||||
})
|
}),
|
||||||
)
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -145,7 +145,7 @@ _.extend(SelectButton.prototype, Button.prototype, {
|
||||||
'data-type': 'select',
|
'data-type': 'select',
|
||||||
};
|
};
|
||||||
return tag('li', attributes,
|
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 = (
|
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
|
// 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
|
// the plugins, so basically we can ignore only the default line attribs used by
|
||||||
// Etherpad
|
// 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
|
// 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
|
// Coverage for https://github.com/ether/etherpad-lite/issues/4536
|
||||||
await helper.waitForPromise(() => parseInt(helper.admin$(
|
await helper.waitForPromise(() => parseInt(helper.admin$(
|
||||||
'.ep_align .version'
|
'.ep_align .version',
|
||||||
)
|
)
|
||||||
.text()
|
.text()
|
||||||
.split('.')[1]) > minorVersionBefore, 60000, 1000);
|
.split('.')[1]) > minorVersionBefore, 60000, 1000);
|
||||||
|
|
|
@ -92,7 +92,7 @@ describe('change user color', function () {
|
||||||
$chatInput.sendkeys('{enter}');
|
$chatInput.sendkeys('{enter}');
|
||||||
|
|
||||||
// wait until the chat message shows up
|
// wait until the chat message shows up
|
||||||
helper.waitFor(() => chrome$('#chattext').children('p').length !== 0
|
helper.waitFor(() => chrome$('#chattext').children('p').length !== 0,
|
||||||
).done(() => {
|
).done(() => {
|
||||||
const $firstChatMessage = chrome$('#chattext').children('p');
|
const $firstChatMessage = chrome$('#chattext').children('p');
|
||||||
// expect the first chat message to be of the user's color
|
// 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
|
// turn 123\n 456\n 789\n into 123\n 4<b>5</b>6\n 789\n
|
||||||
runMutateAttributionTest(1,
|
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
|
// make a document bold
|
||||||
|
|
Loading…
Reference in a new issue