Compare commits

..

No commits in common. "10e1354f274cf372b9ca943ab8877ae8c6e0ea80" and "61f56a8c0ae84cee89dfd9d30eec22cfa78cc375" have entirely different histories.

7 changed files with 10 additions and 25 deletions

1
.github/funding.yml vendored
View File

@ -1 +0,0 @@
ko_fi: howard00

View File

@ -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

View File

@ -1,11 +1,9 @@
<template>
<!--YouTube Embed-->
<div
class="justify-center align-center text-center absolute inset-0 flex flex-col mt-12"
>
<div class="justify-center absolute inset-0 flex flex-col">
<iframe
width="600"
height="395"
width="560"
height="315"
src="https://www.youtube-nocookie.com/embed/8P3qgVm6m6g?si=0t8eR0wtWv6b3REE"
title="YouTube video player"
frameborder="0"

View File

@ -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,
)
`;

View File

@ -374,9 +374,7 @@ onMounted(async () => {
if (openApp.value === "newsView") {
return;
}
setTimeout(() => {
openWindow(openApp.value);
}, 2000);
}
});

View File

@ -132,7 +132,7 @@ useSeoMeta({
<TooltipProvider>
<Tooltip>
<TooltipTrigger>
<NuxtLink :to="localePath('/desktop?openapp=onboard')">
<NuxtLink :to="localePath('/desktop')">
<button
class="m-4 mr-1 ml-1 bg-[#8C9393] text-white p-3 rounded-[10px] bg-gradient-to-l from-sky-500 to-purple-600 transition-all duration-150 hover:transform hover:scale-105 hover:shadow-lg"
>

View File

@ -35,7 +35,7 @@ export default defineEventHandler(async (event) => {
const createUserOtherData = await sql`
create table if not exists user_other_data (
user_id text primary key ,
username text not null unique,
user text not null unique,
groq_api_key text,
starred_news JSON not null,
translate_provider text,
@ -51,21 +51,11 @@ export default defineEventHandler(async (event) => {
)
`;
const createArticlesArchive = await sql`
create table if not exists news_articles (
uuid text primary key,
article_id text primary key,
jsondata json not null,
archive_timestamp timestamp default CURRENT_TIMESTAMP,
)
`;
return {
createUsers: createUsers,
usersList: usersList,
createUserAiChatHistory: createUserAiChatHistory,
createSources: createSources,
createUserOtherData: createUserOtherData,
createArticlesArchive: createArticlesArchive,
};
});