Skip to content

Commit 00d0e71

Browse files
committed
fix(*): merge upstream change and pin simple-markdown to exact version
1 parent ae6b485 commit 00d0e71

File tree

51 files changed

+1662
-468
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1662
-468
lines changed

lib/config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,11 @@ export type Config = {
359359
tsdm39: {
360360
cookie: string;
361361
};
362+
tumblr: {
363+
clientId?: string;
364+
clientSecret?: string;
365+
refreshToken?: string;
366+
};
362367
twitter: {
363368
username?: string[];
364369
password?: string[];
@@ -825,6 +830,11 @@ const calculateValue = () => {
825830
tsdm39: {
826831
cookie: envs.TSDM39_COOKIES,
827832
},
833+
tumblr: {
834+
clientId: envs.TUMBLR_CLIENT_ID,
835+
clientSecret: envs.TUMBLR_CLIENT_SECRET,
836+
refreshToken: envs.TUMBLR_REFRESH_TOKEN,
837+
},
828838
twitter: {
829839
username: envs.TWITTER_USERNAME?.split(','),
830840
password: envs.TWITTER_PASSWORD?.split(','),

lib/router.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1357,7 +1357,7 @@ router.get('/forum4399/:mtag', lazyloadRouteHandler('./routes/game4399/forum'));
13571357
router.get('/nudt/yjszs/:id?', lazyloadRouteHandler('./routes/universities/nudt/yjszs'));
13581358

13591359
// dev.to
1360-
router.get('/dev.to/top/:period', lazyloadRouteHandler('./routes/dev.to/top'));
1360+
// router.get('/dev.to/top/:period', lazyloadRouteHandler('./routes/dev.to/top'));
13611361

13621362
// GameRes 游资网
13631363
router.get('/gameres/hot', lazyloadRouteHandler('./routes/gameres/hot'));

lib/routes-deprecated/dev.to/top.js

Lines changed: 0 additions & 40 deletions
This file was deleted.

lib/routes/18comic/album.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ async function handler(ctx) {
8989
})
9090
)
9191
);
92-
results = results.reverse();
92+
results = results.toReversed();
9393
}
9494

9595
return {

lib/routes/agefans/detail.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async function handler(ctx) {
4444
link: a.attr('href').replace('http://', 'https://'),
4545
};
4646
})
47-
.reverse();
47+
.toReversed();
4848

4949
return {
5050
title: `AGE动漫 - ${ldJson.name}`,

lib/routes/aliyun/database-month.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@ async function handler() {
6161
return {
6262
title: $('title').text(),
6363
link: url,
64-
item: result.reverse(),
64+
item: result.toReversed(),
6565
};
6666
}

lib/routes/bilibili/danmaku.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ async function handler(ctx) {
6262
danmakuList.push({ p: $(item).attr('p'), text: $(item).text() });
6363
});
6464

65-
danmakuList = danmakuList.reverse().slice(0, limit);
65+
danmakuList = danmakuList.toReversed().slice(0, limit);
6666

6767
return {
6868
title: `${videoName} 的 弹幕动态`,

lib/routes/biquge/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ async function handler(ctx) {
5858

5959
let items = $('dl dd a')
6060
.toArray()
61-
.reverse()
61+
.toReversed()
6262
.slice(0, ctx.req.query('limit') ? Number.parseInt(ctx.req.query('limit')) : 1)
6363
.map((item) => {
6464
item = $(item);

lib/routes/capitalmind/insights.ts

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import { Data, Route } from '@/types';
2+
import { baseUrl, fetchArticles } from './utils';
3+
4+
export const route: Route = {
5+
path: '/insights',
6+
example: '/capitalmind/insights',
7+
features: {
8+
requireConfig: false,
9+
requirePuppeteer: false,
10+
antiCrawler: false,
11+
supportBT: false,
12+
supportPodcast: false,
13+
supportScihub: false,
14+
},
15+
radar: [
16+
{
17+
source: ['capitalmind.in/insights'],
18+
target: '/insights',
19+
},
20+
],
21+
name: 'Insights',
22+
maintainers: ['Rjnishant530'],
23+
handler,
24+
};
25+
26+
async function handler() {
27+
const items = await fetchArticles('insights');
28+
29+
return {
30+
title: 'Capitalmind Insights',
31+
link: `${baseUrl}/insights`,
32+
description: 'Financial insights and analysis from Capitalmind',
33+
language: 'en',
34+
item: items,
35+
allowEmpty: false,
36+
image: `${baseUrl}/favicons/favicon.ico`,
37+
icon: `${baseUrl}/favicons/favicon.ico`,
38+
logo: `${baseUrl}/favicons/favicon.ico`,
39+
} as Data;
40+
}

lib/routes/capitalmind/namespace.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import type { Namespace } from '@/types';
2+
3+
export const namespace: Namespace = {
4+
name: 'Capitalmind',
5+
url: 'capitalmind.in',
6+
lang: 'en',
7+
categories: ['finance'],
8+
};

0 commit comments

Comments
 (0)