Compare commits

...

3 Commits

Author SHA1 Message Date
f9fd4d8d68 Me being me, forgeting what var I setted up in the config, I'm an idiot. 2025-06-16 22:42:52 +08:00
9367f369bc Merge remote-tracking branch 'refs/remotes/origin/master' 2025-06-16 22:11:29 +08:00
fce450bc7e Updates to the archiving system to **NOT** crash the container every
single time it tries to archive stuff & remove goals before next devlog
markdown file.
2025-06-16 22:10:57 +08:00
5 changed files with 17 additions and 24 deletions

View File

@ -1,7 +0,0 @@
# 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.5",
"@fontsource/fira-sans": "^5.2.5",
"@fontsource-variable/noto-sans-tc": "^5.2.6",
"@fontsource/fira-sans": "^5.2.6",
"@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",
"@tailwindcss/vite": "^4.1.5",
"@vueuse/core": "^13.2.0",
"@sentry/nuxt": "^9.29.0",
"@tailwindcss/vite": "^4.1.10",
"@vueuse/core": "^13.3.0",
"animate.css": "^4.1.1",
"argon2": "^0.43.0",
"cheerio": "^1.0.0",
"cheerio": "^1.1.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.2",
"postgres": "^3.4.5",
"nuxt": "^3.17.5",
"postgres": "^3.4.7",
"prettier": "^3.5.3",
"reka-ui": "^2.2.1",
"reka-ui": "^2.3.1",
"rss-parser": "^3.13.0",
"shadcn-nuxt": "2.1.0",
"tailwind-merge": "^3.2.0",
"tailwind-merge": "^3.3.1",
"tailwind-scrollbar": "^4.0.2",
"tailwindcss": "3",
"tailwindcss": "^3.4.17",
"tailwindcss-animate": "^1.0.7",
"tailwindcss-animatecss": "^3.0.5",
"translate": "^3.0.1",
"uuid": "^11.1.0",
"vue": "^3.5.13",
"vue": "^3.5.16",
"vue-router": "^4.5.1",
},
"devDependencies": {
"autoprefixer": "^10.4.21",
"postcss": "^8.5.3",
"postcss": "^8.5.5",
"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}?lang=${String(locale.value)}`,
`/api/ai/summarize/${slug}?locale=${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: 2
replicas: 3
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})
VALUES (${uuidv4()}, ${RequestId}, ${data}::JSON)
`;
console.log(storeData);
return;