News window & make the hot news that uses google news rss legacy.

This commit is contained in:
yuanhau 2025-06-01 08:15:53 +08:00
parent dcf1b7db66
commit 046f5ae446
8 changed files with 14 additions and 12 deletions

View file

@ -20,7 +20,7 @@ const {
data: fetchNewsOrgInfo,
pending,
error,
} = useFetch("/api/cached/getData/fetchNewsOrgInfo/2293", {
} = useFetch(`/api/cached/getData/fetchNewsOrgInfo/${props.values}`, {
method: "POST",
headers: {
"Content-Type": "application/json",

View file

@ -305,9 +305,6 @@ const openPublisher = (text: string) => {
找不到類似文章
</div>
</div>
<!--<div v-for="item in findRel(item.title)">
{{ item }}
</div>-->
</div>
<!--<p :class="getCheckResult(item.title) ? 'hidden' : ''">
{{ item.shortDescription }}

View file

@ -68,8 +68,13 @@ const aiSummary = async () => {
class="w-4 h-4 align-middle justify-center text-center"
/>Activate
</button>
<div v-else>
<div v-if="!summaryText">
Loading...
</div>
<div v-else>{{ summaryText }}</div>
</div>
</div>
<div class="flex flex-col bg-gray-500">
<div class="flex flex-row" v-for="item in likeart">
<img /><!--Image-->

View file

@ -61,7 +61,7 @@
"app": {
"changelangmessage": "Switching the language...",
"launchtext": "Cooking up the desktop...",
"hotnews": "Hot News",
"hotnews": "Hot News (legacy)",
"news": "News",
"sources": "Sources",
"about": "About this website",

View file

@ -61,8 +61,8 @@
"app": {
"changelangmessage": "正在切換語言中...",
"launchtext": "系統開機中...",
"hotnews": "熱門新聞",
"news": "新聞",
"hotnews": "熱門新聞 (舊版)",
"news": "熱門新聞",
"sources": "資料來源",
"about": "關於這個網站",
"settings": "設定",

View file

@ -1,6 +1,7 @@
# Run :%s/news.yuanhau.com/your.domain.here/ in vim to replace news.yuanhau.com to your domain.
# Caddy is currently not supported.
# Before getting the SSL cert for your website comment the the few with the lines of #commentbeforessl
# Use "certbot certonly" to get a certificate.
#
#
#
@ -18,7 +19,7 @@ server {
ssl_certificate_key /etc/letsencrypt/live/news.yuanhau.com/privkey.pem; #commentbeforessl
server_name news.yuanhau.com;
access_log /var/log/nginx/news_analyze.access.log;
error_log /var/log/nginx/news_analyze.error.log;
error_log /var/log/nginx/news_analyze.error.log;
location / {
proxy_pass http://127.0.0.1:36694; # Traefik port.

View file

@ -41,7 +41,6 @@ export default defineNuxtConfig({
"@nuxtjs/i18n",
"@nuxtjs/tailwindcss",
"shadcn-nuxt",
"motion-v/nuxt",
"@sentry/nuxt/module",
],

View file

@ -461,10 +461,10 @@ const openArticles = async (slug: string, titleName?: string) => {
}, 1000);
};
const openNewsSourcePage = async (slug: string, titleName: string) => {
const openNewsSourcePage = async (slug: string) => {
openingAppViaAnApp.value = true;
passedValues.value = slug;
const titleNameFinal = titleName + "&nbsp;" + t("app.aboutNewsOrg");
const titleNameFinal = slug ? "關於" + slug : t("app.aboutNewsOrg");
findAndOpenWindow("aboutNewsOrg", titleNameFinal);
setTimeout(() => {