lint: Re-run `eslint --fix`
parent
30eadad79d
commit
59c03bde20
|
@ -5,7 +5,7 @@
|
||||||
const superagent = require('superagent');
|
const superagent = require('superagent');
|
||||||
const currentTime = new Date();
|
const currentTime = new Date();
|
||||||
|
|
||||||
(async() => {
|
(async () => {
|
||||||
const res = await superagent.get('https://static.etherpad.org/plugins.full.json');
|
const res = await superagent.get('https://static.etherpad.org/plugins.full.json');
|
||||||
const plugins = JSON.parse(res.text);
|
const plugins = JSON.parse(res.text);
|
||||||
for (const plugin of Object.keys(plugins)) {
|
for (const plugin of Object.keys(plugins)) {
|
||||||
|
@ -13,8 +13,8 @@ const currentTime = new Date();
|
||||||
const date = new Date(plugins[plugin].time);
|
const date = new Date(plugins[plugin].time);
|
||||||
const diffTime = Math.abs(currentTime - date);
|
const diffTime = Math.abs(currentTime - date);
|
||||||
const diffDays = Math.ceil(diffTime / (1000 * 60 * 60 * 24));
|
const diffDays = Math.ceil(diffTime / (1000 * 60 * 60 * 24));
|
||||||
if (diffDays > (365*2)) {
|
if (diffDays > (365 * 2)) {
|
||||||
console.log(`${name}, ${plugins[plugin].data.maintainers[0].email}`)
|
console.log(`${name}, ${plugins[plugin].data.maintainers[0].email}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|
|
@ -156,7 +156,7 @@ async function mapAuthorWithDBKey(mapperkey, mapper) {
|
||||||
|
|
||||||
// return the author
|
// return the author
|
||||||
return {authorID: author};
|
return {authorID: author};
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Internal function that creates the database entry for an author
|
* Internal function that creates the database entry for an author
|
||||||
|
|
|
@ -23,7 +23,7 @@ const staticPathsRE = new RegExp(`^/(?:${[
|
||||||
'robots.txt',
|
'robots.txt',
|
||||||
'static/.*',
|
'static/.*',
|
||||||
'stats/?',
|
'stats/?',
|
||||||
'tests/frontend(?:/.*)?'
|
'tests/frontend(?:/.*)?',
|
||||||
].join('|')})$`);
|
].join('|')})$`);
|
||||||
|
|
||||||
exports.normalizeAuthzLevel = (level) => {
|
exports.normalizeAuthzLevel = (level) => {
|
||||||
|
|
|
@ -602,7 +602,7 @@ const lookupEnvironmentVariables = (obj) => {
|
||||||
const defaultValue = match[3];
|
const defaultValue = match[3];
|
||||||
|
|
||||||
if ((envVarValue === undefined) && (defaultValue === undefined)) {
|
if ((envVarValue === undefined) && (defaultValue === undefined)) {
|
||||||
console.warn(`Environment variable "${envVarName}" does not contain any value for `+
|
console.warn(`Environment variable "${envVarName}" does not contain any value for ` +
|
||||||
`configuration key "${key}", and no default was given. Returning null.`);
|
`configuration key "${key}", and no default was given. Returning null.`);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -55,5 +55,4 @@ describe(__filename, function () {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -87,7 +87,6 @@ describe('Chat messages and UI', function () {
|
||||||
|
|
||||||
xit('Checks showChat=false URL Parameter hides chat then' +
|
xit('Checks showChat=false URL Parameter hides chat then' +
|
||||||
' when removed it shows chat', async function () {
|
' when removed it shows chat', async function () {
|
||||||
|
|
||||||
// give it a second to save the username on the server side
|
// give it a second to save the username on the server side
|
||||||
await new Promise((resolve) => setTimeout(resolve, 3000));
|
await new Promise((resolve) => setTimeout(resolve, 3000));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue