diff --git a/GOALS_BEFORE_NEXT_DEVLOG.md b/GOALS_BEFORE_NEXT_DEVLOG.md deleted file mode 100644 index 3553207..0000000 --- a/GOALS_BEFORE_NEXT_DEVLOG.md +++ /dev/null @@ -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.) diff --git a/bun.lock b/bun.lock index f9df03c..f27205b 100644 --- a/bun.lock +++ b/bun.lock @@ -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", }, }, diff --git a/docker-compose.yml b/docker-compose.yml index c7f4e57..5d8a758 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -27,7 +27,7 @@ services: required: true deploy: mode: replicated - replicas: 2 + replicas: 3 networks: web: diff --git a/server/api/ai/summarize/[slug].ts b/server/api/ai/summarize/[slug].ts index fca0869..7ac2dc6 100644 --- a/server/api/ai/summarize/[slug].ts +++ b/server/api/ai/summarize/[slug].ts @@ -38,7 +38,7 @@ export default defineEventHandler(async (event) => { }, { role: "system", - content: `You are a news summarizer. You will be given a news article and you will summarize it into a short paragraph. The user's current locale is ${locale || "zh-tw"} please use the correct language as the response.`, + content: `You are a news summarizer. You will be given a news article and you will summarize it into a short paragraph. The user's current locale is ${locale.toString()} please use the correct language as the response.`, }, ], model: "gemma2-9b-it", diff --git a/server/api/news/get/lt/[slug].ts b/server/api/news/get/lt/[slug].ts index f490ec4..811e5ea 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}) + VALUES (${uuidv4()}, ${RequestId}, ${data}::JSON) `; console.log(storeData); return;