style: auto format
This commit is contained in:
parent
cee538dc75
commit
1c7643873b
|
|
@ -10,19 +10,21 @@ export const route: Route = {
|
|||
maintainers: ['canonnizq'],
|
||||
|
||||
handler: async () => {
|
||||
const response = await ofetch("https://cherrytimes.it/en/tag/markets?page=1");
|
||||
const response = await ofetch('https://cherrytimes.it/en/tag/markets?page=1');
|
||||
const $ = load(response);
|
||||
const items = $('div.post-container').toArray().map((item) => {
|
||||
const element = $(item);
|
||||
const a = element.find('a').eq(1);
|
||||
const items = $('div.post-container')
|
||||
.toArray()
|
||||
.map((item) => {
|
||||
const element = $(item);
|
||||
const a = element.find('a').eq(1);
|
||||
|
||||
return {
|
||||
title: a.text(),
|
||||
link: a.attr('href'),
|
||||
description: element.find('p.excerpt').text(),
|
||||
category: element.find('a').last().text(),
|
||||
};
|
||||
});
|
||||
return {
|
||||
title: a.text(),
|
||||
link: a.attr('href'),
|
||||
description: element.find('p.excerpt').text(),
|
||||
category: element.find('a').last().text(),
|
||||
};
|
||||
});
|
||||
|
||||
return {
|
||||
title: 'Cherry Times - Market',
|
||||
|
|
|
|||
|
|
@ -3,4 +3,4 @@ import type { Namespace } from '@/types';
|
|||
export const namespace: Namespace = {
|
||||
name: 'Cherry Times',
|
||||
url: 'cherrytimes.it',
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue