diff --git a/.github/funding.yml b/.github/funding.yml deleted file mode 100644 index b2ced52..0000000 --- a/.github/funding.yml +++ /dev/null @@ -1 +0,0 @@ -ko_fi: howard00 diff --git a/README.md b/README.md index 322db69..df40a9b 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Video Guide: [YouTube](https://youtu.be/8P3qgVm6m6g) ## Demo: Production (Latest Docker Image): https://yhw.tw/news -Beta (Beta Docker Image): https://newsbeta.20090526.xyz +Beta (Beta Docekr Image): https://newsbeta.20090526.xyz ## Video Guide diff --git a/components/app/windows/news.vue b/components/app/windows/news.vue index 8ce825a..cb82713 100644 --- a/components/app/windows/news.vue +++ b/components/app/windows/news.vue @@ -81,15 +81,7 @@ const updateContent = async (url: string, tabAction: boolean) => { const req = await fetch(`/api/home/lt?query=${url.trim()}`); const data = await req.json(); if (data) { - // Made by coderabbit: https://github.com/hpware/news-analyze/pull/6#discussion_r2144713017 - const coolArray = [ - ...(data.uuidData ?? []), - ...(data.nuuiddata?.items ?? []), - ]; - contentArray.value = - coolArray.sort( - (title1, title2) => title2.publishTimeUnix - title1.publishTimeUnix, - ) || []; + contentArray.value = [...data.uuidData, ...(data.nuuiddata?.items || [])]; switchTabs.value = false; isDataCached.value = data.cached || false; displayTranslateContent.value = false; diff --git a/components/app/windows/newsView.vue b/components/app/windows/newsView.vue index 8b0fff2..32a3354 100644 --- a/components/app/windows/newsView.vue +++ b/components/app/windows/newsView.vue @@ -1,11 +1,6 @@ diff --git a/createDatabase.ts b/createDatabase.ts index b4959e4..4ebc340 100644 --- a/createDatabase.ts +++ b/createDatabase.ts @@ -54,9 +54,9 @@ const createSources = await sql` const createArticlesArchive = await sql` create table if not exists news_articles ( uuid text primary key, - article_id text, + article_id text primary key, jsondata json not null, - archive_timestamp timestamp default CURRENT_TIMESTAMP + archive_timestamp timestamp default CURRENT_TIMESTAMP, ) `; diff --git a/pages/desktop.vue b/pages/desktop.vue index 04c70bf..dcc127d 100644 --- a/pages/desktop.vue +++ b/pages/desktop.vue @@ -374,9 +374,7 @@ onMounted(async () => { if (openApp.value === "newsView") { return; } - setTimeout(() => { - openWindow(openApp.value); - }, 2000); + openWindow(openApp.value); } }); diff --git a/pages/home.vue b/pages/home.vue index 5b4cb0f..bbe7524 100644 --- a/pages/home.vue +++ b/pages/home.vue @@ -132,14 +132,7 @@ useSeoMeta({ - +