chore(deps-dev): bump prettier from 1.19.1 to 2.0.2

This commit is contained in:
DIYgod
2020-04-02 21:21:46 +08:00
parent 27e4a7c151
commit 0e7b14e718
471 changed files with 1237 additions and 4457 deletions

View File

@@ -25,12 +25,7 @@ module.exports = async (ctx) => {
// replace placeholer image url
imgNode.each((index, element) => {
if (
$(element).attr('src') &&
$(element)
.attr('src')
.indexOf('none.gif') !== -1
) {
if ($(element).attr('src') && $(element).attr('src').indexOf('none.gif') !== -1) {
$(element).attr('src', $(element).attr('zoomfile'));
}
@@ -40,23 +35,13 @@ module.exports = async (ctx) => {
});
// remove image tips
$(description)
.find('div[class*="aimg_tip"]')
.remove();
$(description)
.find('div[class*="tip"]')
.remove();
$(description)
.find('p[class="mbn"]')
.remove();
$(description).find('div[class*="aimg_tip"]').remove();
$(description).find('div[class*="tip"]').remove();
$(description).find('p[class="mbn"]').remove();
// remove rate infomation
$(description)
.find('dl[class="rate"]')
.remove();
$(description)
.find('h3[class*="psth"]')
.remove();
$(description).find('dl[class="rate"]').remove();
$(description).find('h3[class*="psth"]').remove();
const single = {
title: item.title,