diff --git a/GOALS_BEFORE_NEXT_DEVLOG.md b/GOALS_BEFORE_NEXT_DEVLOG.md new file mode 100644 index 0000000..3553207 --- /dev/null +++ b/GOALS_BEFORE_NEXT_DEVLOG.md @@ -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.) diff --git a/bun.lock b/bun.lock index f27205b..f9df03c 100644 --- a/bun.lock +++ b/bun.lock @@ -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", }, }, diff --git a/components/app/windows/newsView.vue b/components/app/windows/newsView.vue index fe9b454..8b0fff2 100644 --- a/components/app/windows/newsView.vue +++ b/components/app/windows/newsView.vue @@ -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(); diff --git a/docker-compose.yml b/docker-compose.yml index 5d8a758..c7f4e57 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -27,7 +27,7 @@ services: required: true deploy: mode: replicated - replicas: 3 + replicas: 2 networks: web: diff --git a/server/api/news/get/lt/[slug].ts b/server/api/news/get/lt/[slug].ts index 811e5ea..f490ec4 100644 --- a/server/api/news/get/lt/[slug].ts +++ b/server/api/news/get/lt/[slug].ts @@ -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;