From 2018a579d3ea5e085b54f2acd8b2e43ce4150e7f Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Wed, 2 Sep 2020 18:52:17 +0000 Subject: [PATCH] style: auto format --- docs/en/other.md | 12 ++++----- docs/other.md | 12 ++++----- lib/routes/mitre/publications.js | 42 ++++++++++++++++---------------- 3 files changed, 33 insertions(+), 33 deletions(-) diff --git a/docs/en/other.md b/docs/en/other.md index 114c00747f..5fd2fa50e5 100644 --- a/docs/en/other.md +++ b/docs/en/other.md @@ -111,6 +111,12 @@ Official Website: [https://www.ssm.gov.mo/apps1/PreventWuhanInfection/en.aspx](h +## MITRE + +### All Publications + + + ## Parcel Tracking ### Hermes UK @@ -144,12 +150,6 @@ Official Website: [https://www.ssm.gov.mo/apps1/PreventWuhanInfection/en.aspx](h -## MITRE - -### All Publications - - - ## SANS Institute ### Latest conference materials diff --git a/docs/other.md b/docs/other.md index f635fb991f..ca3d5148eb 100644 --- a/docs/other.md +++ b/docs/other.md @@ -121,6 +121,12 @@ pageClass: routes +## MITRE + +### 全部出版物 + + + ## MobData ### 分析报告 @@ -172,12 +178,6 @@ pageClass: routes -## MITRE - -### 全部出版物 - - - ## SANS Institute ### 最新会议材料 diff --git a/lib/routes/mitre/publications.js b/lib/routes/mitre/publications.js index 392e48ff90..c21ea1ef0a 100644 --- a/lib/routes/mitre/publications.js +++ b/lib/routes/mitre/publications.js @@ -2,26 +2,26 @@ // const got = require('@/utils/got'); // const cheerio = require('cheerio'); -const buildData = require("@/utils/common-config"); +const buildData = require('@/utils/common-config'); module.exports = async (ctx) => { - const link = `https://www.mitre.org/publications/all`; - const host = `https://www.mitre.org`; - ctx.state.data = await buildData({ - link, - url: link, - title: `%title%`, - params: { - title: "MITRE: All Publications", - host, - link, - }, - item: { - item: "div.list-item", - title: `$('div.list-item div.list-main a span.title').text()`, - link: `'%host%' + $('div.list-item div.list-main a').attr('href')`, - category: `$('div.list-item div.list-main a span.time').text()`, - description: `$('div.list-item div.list-main a span.teaser').html()`, - }, - }); -}; \ No newline at end of file + const link = `https://www.mitre.org/publications/all`; + const host = `https://www.mitre.org`; + ctx.state.data = await buildData({ + link, + url: link, + title: `%title%`, + params: { + title: 'MITRE: All Publications', + host, + link, + }, + item: { + item: 'div.list-item', + title: `$('div.list-item div.list-main a span.title').text()`, + link: `'%host%' + $('div.list-item div.list-main a').attr('href')`, + category: `$('div.list-item div.list-main a span.time').text()`, + description: `$('div.list-item div.list-main a span.teaser').html()`, + }, + }); +};