Made a simple custom groq api thingy (just the settings page)

This commit is contained in:
yuanhau 2025-06-02 11:33:48 +08:00
parent 5392974261
commit 8eb19d7242
8 changed files with 86 additions and 41 deletions

View file

@ -29,15 +29,16 @@ export default defineEventHandler(async (event) => {
html("div.editor div figure img").attr("src") ||
"";
const articles = [];
const otherArticles = html("section.moduleContainer div");
for (const item in otherArticles) {
}
const otherArticles = html("section.moduleContainer div").html();
/*for (const item in otherArticles) {
console.log(item);
console.log("-");
}*/
return {
name: newsOrgName,
description: description,
logo: logo,
articles: []
articles: otherArticles,
};
} catch (e) {
console.log(e);