diff --git a/README.md b/README.md index a41d564..1b5a3e4 100644 --- a/README.md +++ b/README.md @@ -14,15 +14,9 @@ Deploy: [via docker compose](/deploy.md) Goals before the next devlog: [Markdown file](/GOALS_BEFORE_NEXT_DEVLOG.md) -Video Guide: [YouTube](https://youtu.be/8P3qgVm6m6g) - ## Demo: https://yhw.tw/news -## Video Guide - -https://github.com/user-attachments/assets/29414c5d-3b2f-420d-93c0-95c14a15bbb7 - ## Issues: ### Onboarding: Onboarding is a must for most people that are using the app for the first time, but I want to do to via a non-video like system, however implementing the function in a already large repo is kinda hard. So later this week, I will just add a basic video onboarding system. diff --git a/components/app/windows/news.vue b/components/app/windows/news.vue index fcad498..347b424 100644 --- a/components/app/windows/news.vue +++ b/components/app/windows/news.vue @@ -182,7 +182,7 @@ const useArgFindRel = (title, newsOrg) => { if ( item.title !== title && item.contentType === "GENERAL" && - item.publisher !== newsOrg + item.publisher === newsOrg ) { const itemVector = tf(item.title); const similarity = jaccardSimilarity(targetVector, itemVector); diff --git a/components/app/windows/settings.vue b/components/app/windows/settings.vue index f7dd10a..b2a5a12 100644 --- a/components/app/windows/settings.vue +++ b/components/app/windows/settings.vue @@ -38,6 +38,9 @@ onMounted(async () => { useremail.value = res.email; isLoggedIn.value = true; }); +const setFirstName = async () => { + const staticFirstName = ""; +}; const emit = defineEmits(["windowopener"]); @@ -95,12 +98,23 @@ const confirmDelete = async () => { showDeleteDialog.value = false; }; -const deleteAccount = async () => { - const req = await fetch("/api/user/sendUserChanges", { - method: "DELETE", +const apiKey = customApiKey.value; +try { + const sendApi = await fetch("/api/ai/loadCustomGroqApi", { + method: "POST", + headers: { + "Content-Type": "application/json", + }, + body: JSON.stringify({ + apiKey: apiKey, + }), }); -}; - + const data = await sendApi.json(); + if (data.error) { + } +} catch (e) { + console.log(e); +} const submitChangeAction = async (action: string) => { const actions = [ { name: "NAME", sendValue: enterFirstName.value }, diff --git a/server/api/user/sendUserChanges.delete.ts b/server/api/user/sendUserChanges.delete.ts deleted file mode 100644 index c958230..0000000 --- a/server/api/user/sendUserChanges.delete.ts +++ /dev/null @@ -1,6 +0,0 @@ -export default defineEventHandler(async (event) => { - const userToken = getCookie(event, "token"); - return { - token: userToken, - }; -});