Compare commits

..

No commits in common. "f9fd4d8d689e7806818411ae07dce299afa71146" and "da524c9e68194325a4d276eb435baf37ee3b6298" have entirely different histories.

5 changed files with 24 additions and 17 deletions

View File

@ -0,0 +1,7 @@
# Goals before the next devlog that NEEDS to be done at the end of the week.
1. Get the custom Groq api thingy work (really)
2. The user CAN change their account settings via the panel.
3. A working sources page (a basic one is fine)
4. A starring system.
5. Merge the Login system into settings.
6. Get the chat feature actually work? (and also can chat about news articles.)

View File

@ -4,20 +4,20 @@
"": {
"name": "blindspec",
"dependencies": {
"@fontsource-variable/noto-sans-tc": "^5.2.6",
"@fontsource/fira-sans": "^5.2.6",
"@fontsource-variable/noto-sans-tc": "^5.2.5",
"@fontsource/fira-sans": "^5.2.5",
"@heroicons/vue": "^2.2.0",
"@monyone/aho-corasick": "^1.0.4",
"@nuxtjs/i18n": "9.5.4",
"@nuxtjs/robots": "5.2.10",
"@nuxtjs/seo": "3.0.3",
"@nuxtjs/tailwindcss": "6.14.0",
"@sentry/nuxt": "^9.29.0",
"@tailwindcss/vite": "^4.1.10",
"@vueuse/core": "^13.3.0",
"@sentry/nuxt": "^9",
"@tailwindcss/vite": "^4.1.5",
"@vueuse/core": "^13.2.0",
"animate.css": "^4.1.1",
"argon2": "^0.43.0",
"cheerio": "^1.1.0",
"cheerio": "^1.0.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"crypto-js": "^4.2.0",
@ -26,25 +26,25 @@
"html-to-json-parser": "^2.0.1",
"js-confetti": "^0.12.0",
"lucide-vue-next": "^0.511.0",
"nuxt": "^3.17.5",
"postgres": "^3.4.7",
"nuxt": "^3.17.2",
"postgres": "^3.4.5",
"prettier": "^3.5.3",
"reka-ui": "^2.3.1",
"reka-ui": "^2.2.1",
"rss-parser": "^3.13.0",
"shadcn-nuxt": "2.1.0",
"tailwind-merge": "^3.3.1",
"tailwind-merge": "^3.2.0",
"tailwind-scrollbar": "^4.0.2",
"tailwindcss": "^3.4.17",
"tailwindcss": "3",
"tailwindcss-animate": "^1.0.7",
"tailwindcss-animatecss": "^3.0.5",
"translate": "^3.0.1",
"uuid": "^11.1.0",
"vue": "^3.5.16",
"vue": "^3.5.13",
"vue-router": "^4.5.1",
},
"devDependencies": {
"autoprefixer": "^10.4.21",
"postcss": "^8.5.5",
"postcss": "^8.5.3",
"vitepress": "^1.6.3",
},
},

View File

@ -88,7 +88,7 @@ const aiSummary = async () => {
isGenerating.value = true;
try {
const req = await fetch(
`/api/ai/summarize/${slug}?locale=${String(locale.value)}`,
`/api/ai/summarize/${slug}?lang=${String(locale.value)}`,
);
const reader = req.body?.getReader();
const decoder = new TextDecoder();

View File

@ -27,7 +27,7 @@ services:
required: true
deploy:
mode: replicated
replicas: 3
replicas: 2
networks:
web:

View File

@ -43,12 +43,12 @@ async function storeArticlesIfItDoesNotExists(data, RequestId) {
SELECT * FROM news_articles
WHERE jsondata = ${data}
`;
if (checkDataIsInDatabase.length > 0) {
if (checkDataIsInDatabase.length === 0) {
return;
}
const storeData = await sql`
INSERT INTO news_articles (uuid, article_id, jsondata)
VALUES (${uuidv4()}, ${RequestId}, ${data}::JSON)
VALUES (${uuidv4()}, ${RequestId}, ${data})
`;
console.log(storeData);
return;