mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 15:51:01 +08:00
Compare commits
2 Commits
61f56a8c0a
...
10e1354f27
Author | SHA1 | Date | |
---|---|---|---|
10e1354f27 | |||
a720bdd582 |
1
.github/funding.yml
vendored
Normal file
1
.github/funding.yml
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
ko_fi: howard00
|
@ -19,7 +19,7 @@ Video Guide: [YouTube](https://youtu.be/8P3qgVm6m6g)
|
|||||||
## Demo:
|
## Demo:
|
||||||
Production (Latest Docker Image): https://yhw.tw/news
|
Production (Latest Docker Image): https://yhw.tw/news
|
||||||
|
|
||||||
Beta (Beta Docekr Image): https://newsbeta.20090526.xyz
|
Beta (Beta Docker Image): https://newsbeta.20090526.xyz
|
||||||
|
|
||||||
## Video Guide
|
## Video Guide
|
||||||
|
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<!--YouTube Embed-->
|
<!--YouTube Embed-->
|
||||||
<div class="justify-center absolute inset-0 flex flex-col">
|
<div
|
||||||
|
class="justify-center align-center text-center absolute inset-0 flex flex-col mt-12"
|
||||||
|
>
|
||||||
<iframe
|
<iframe
|
||||||
width="560"
|
width="600"
|
||||||
height="315"
|
height="395"
|
||||||
src="https://www.youtube-nocookie.com/embed/8P3qgVm6m6g?si=0t8eR0wtWv6b3REE"
|
src="https://www.youtube-nocookie.com/embed/8P3qgVm6m6g?si=0t8eR0wtWv6b3REE"
|
||||||
title="YouTube video player"
|
title="YouTube video player"
|
||||||
frameborder="0"
|
frameborder="0"
|
||||||
|
@ -54,9 +54,9 @@ const createSources = await sql`
|
|||||||
const createArticlesArchive = await sql`
|
const createArticlesArchive = await sql`
|
||||||
create table if not exists news_articles (
|
create table if not exists news_articles (
|
||||||
uuid text primary key,
|
uuid text primary key,
|
||||||
article_id text primary key,
|
article_id text,
|
||||||
jsondata json not null,
|
jsondata json not null,
|
||||||
archive_timestamp timestamp default CURRENT_TIMESTAMP,
|
archive_timestamp timestamp default CURRENT_TIMESTAMP
|
||||||
)
|
)
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
@ -374,7 +374,9 @@ onMounted(async () => {
|
|||||||
if (openApp.value === "newsView") {
|
if (openApp.value === "newsView") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
setTimeout(() => {
|
||||||
openWindow(openApp.value);
|
openWindow(openApp.value);
|
||||||
|
}, 2000);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -132,7 +132,7 @@ useSeoMeta({
|
|||||||
<TooltipProvider>
|
<TooltipProvider>
|
||||||
<Tooltip>
|
<Tooltip>
|
||||||
<TooltipTrigger>
|
<TooltipTrigger>
|
||||||
<NuxtLink :to="localePath('/desktop')">
|
<NuxtLink :to="localePath('/desktop?openapp=onboard')">
|
||||||
<button
|
<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"
|
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"
|
||||||
>
|
>
|
||||||
|
@ -35,7 +35,7 @@ export default defineEventHandler(async (event) => {
|
|||||||
const createUserOtherData = await sql`
|
const createUserOtherData = await sql`
|
||||||
create table if not exists user_other_data (
|
create table if not exists user_other_data (
|
||||||
user_id text primary key,
|
user_id text primary key,
|
||||||
user text not null unique,
|
username text not null unique,
|
||||||
groq_api_key text,
|
groq_api_key text,
|
||||||
starred_news JSON not null,
|
starred_news JSON not null,
|
||||||
translate_provider text,
|
translate_provider text,
|
||||||
@ -51,11 +51,21 @@ 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 {
|
return {
|
||||||
createUsers: createUsers,
|
createUsers: createUsers,
|
||||||
usersList: usersList,
|
usersList: usersList,
|
||||||
createUserAiChatHistory: createUserAiChatHistory,
|
createUserAiChatHistory: createUserAiChatHistory,
|
||||||
createSources: createSources,
|
createSources: createSources,
|
||||||
createUserOtherData: createUserOtherData,
|
createUserOtherData: createUserOtherData,
|
||||||
|
createArticlesArchive: createArticlesArchive,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user