mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 16:36:15 -04:00
lint: Re-run eslint --fix
This commit is contained in:
parent
fc234d0088
commit
f54dcbc766
13 changed files with 44 additions and 44 deletions
|
@ -112,7 +112,7 @@ exports.require = function (name, args, mod) {
|
|||
paths,
|
||||
basedir,
|
||||
extensions: ['.html', '.ejs'],
|
||||
},
|
||||
}
|
||||
);
|
||||
|
||||
args.e = exports;
|
||||
|
|
|
@ -71,65 +71,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']}
|
||||
);
|
||||
|
||||
// set the latest available API version here
|
||||
|
|
|
@ -25,10 +25,10 @@ exports.setPadHTML = async (pad, html) => {
|
|||
const apiLogger = log4js.getLogger('ImportHtml');
|
||||
|
||||
rehype()
|
||||
.use(minifyWhitespace, {newlines: false})
|
||||
.process(html, (err, output) => {
|
||||
html = String(output);
|
||||
});
|
||||
.use(minifyWhitespace, {newlines: false})
|
||||
.process(html, (err, output) => {
|
||||
html = String(output);
|
||||
});
|
||||
|
||||
const $ = cheerio.load(html);
|
||||
|
||||
|
|
|
@ -64,9 +64,9 @@ function prefixLocalLibraryPath(path) {
|
|||
for (const key in tar) {
|
||||
exports.tar[prefixLocalLibraryPath(key)] =
|
||||
tar[key].map(prefixLocalLibraryPath).concat(
|
||||
tar[key].map(prefixLocalLibraryPath).map((p) => p.replace(/\.js$/, '')),
|
||||
tar[key].map(prefixLocalLibraryPath).map((p) => p.replace(/\.js$/, ''))
|
||||
).concat(
|
||||
tar[key].map(prefixLocalLibraryPath).map((p) => `${p.replace(/\.js$/, '')}/index.js`),
|
||||
tar[key].map(prefixLocalLibraryPath).map((p) => `${p.replace(/\.js$/, '')}/index.js`)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -108,8 +108,8 @@ _.extend(Button.prototype, {
|
|||
};
|
||||
return tag('li', liAttributes,
|
||||
tag('a', {'class': this.grouping, 'data-l10n-id': this.attributes.localizationId},
|
||||
tag('button', {'class': ` ${this.attributes.class}`, 'data-l10n-id': this.attributes.localizationId}),
|
||||
),
|
||||
tag('button', {'class': ` ${this.attributes.class}`, 'data-l10n-id': this.attributes.localizationId})
|
||||
)
|
||||
);
|
||||
},
|
||||
});
|
||||
|
@ -150,7 +150,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})
|
||||
);
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue