mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 04:54:23 +00:00
News window & make the hot news that uses google news rss legacy.
This commit is contained in:
parent
dcf1b7db66
commit
046f5ae446
8 changed files with 14 additions and 12 deletions
|
@ -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",
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -68,7 +68,12 @@ const aiSummary = async () => {
|
|||
class="w-4 h-4 align-middle justify-center text-center"
|
||||
/>Activate
|
||||
</button>
|
||||
<div v-else>{{ summaryText }}</div>
|
||||
<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">
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -61,8 +61,8 @@
|
|||
"app": {
|
||||
"changelangmessage": "正在切換語言中...",
|
||||
"launchtext": "系統開機中...",
|
||||
"hotnews": "熱門新聞",
|
||||
"news": "新聞",
|
||||
"hotnews": "熱門新聞 (舊版)",
|
||||
"news": "熱門新聞",
|
||||
"sources": "資料來源",
|
||||
"about": "關於這個網站",
|
||||
"settings": "設定",
|
||||
|
|
|
@ -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 /vㄇar/log/nginx/news_analyze.error.log;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:36694; # Traefik port.
|
||||
|
|
|
@ -41,7 +41,6 @@ export default defineNuxtConfig({
|
|||
"@nuxtjs/i18n",
|
||||
"@nuxtjs/tailwindcss",
|
||||
"shadcn-nuxt",
|
||||
"motion-v/nuxt",
|
||||
"@sentry/nuxt/module",
|
||||
],
|
||||
|
||||
|
|
|
@ -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 + " " + t("app.aboutNewsOrg");
|
||||
const titleNameFinal = slug ? "關於" + slug : t("app.aboutNewsOrg");
|
||||
findAndOpenWindow("aboutNewsOrg", titleNameFinal);
|
||||
|
||||
setTimeout(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue