mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04: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,
|
data: fetchNewsOrgInfo,
|
||||||
pending,
|
pending,
|
||||||
error,
|
error,
|
||||||
} = useFetch("/api/cached/getData/fetchNewsOrgInfo/2293", {
|
} = useFetch(`/api/cached/getData/fetchNewsOrgInfo/${props.values}`, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
|
|
|
@ -305,9 +305,6 @@ const openPublisher = (text: string) => {
|
||||||
找不到類似文章
|
找不到類似文章
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!--<div v-for="item in findRel(item.title)">
|
|
||||||
{{ item }}
|
|
||||||
</div>-->
|
|
||||||
</div>
|
</div>
|
||||||
<!--<p :class="getCheckResult(item.title) ? 'hidden' : ''">
|
<!--<p :class="getCheckResult(item.title) ? 'hidden' : ''">
|
||||||
{{ item.shortDescription }}
|
{{ item.shortDescription }}
|
||||||
|
|
|
@ -68,8 +68,13 @@ const aiSummary = async () => {
|
||||||
class="w-4 h-4 align-middle justify-center text-center"
|
class="w-4 h-4 align-middle justify-center text-center"
|
||||||
/>Activate
|
/>Activate
|
||||||
</button>
|
</button>
|
||||||
|
<div v-else>
|
||||||
|
<div v-if="!summaryText">
|
||||||
|
Loading...
|
||||||
|
</div>
|
||||||
<div v-else>{{ summaryText }}</div>
|
<div v-else>{{ summaryText }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="flex flex-col bg-gray-500">
|
<div class="flex flex-col bg-gray-500">
|
||||||
<div class="flex flex-row" v-for="item in likeart">
|
<div class="flex flex-row" v-for="item in likeart">
|
||||||
<img /><!--Image-->
|
<img /><!--Image-->
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
"app": {
|
"app": {
|
||||||
"changelangmessage": "Switching the language...",
|
"changelangmessage": "Switching the language...",
|
||||||
"launchtext": "Cooking up the desktop...",
|
"launchtext": "Cooking up the desktop...",
|
||||||
"hotnews": "Hot News",
|
"hotnews": "Hot News (legacy)",
|
||||||
"news": "News",
|
"news": "News",
|
||||||
"sources": "Sources",
|
"sources": "Sources",
|
||||||
"about": "About this website",
|
"about": "About this website",
|
||||||
|
|
|
@ -61,8 +61,8 @@
|
||||||
"app": {
|
"app": {
|
||||||
"changelangmessage": "正在切換語言中...",
|
"changelangmessage": "正在切換語言中...",
|
||||||
"launchtext": "系統開機中...",
|
"launchtext": "系統開機中...",
|
||||||
"hotnews": "熱門新聞",
|
"hotnews": "熱門新聞 (舊版)",
|
||||||
"news": "新聞",
|
"news": "熱門新聞",
|
||||||
"sources": "資料來源",
|
"sources": "資料來源",
|
||||||
"about": "關於這個網站",
|
"about": "關於這個網站",
|
||||||
"settings": "設定",
|
"settings": "設定",
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
# Run :%s/news.yuanhau.com/your.domain.here/ in vim to replace news.yuanhau.com to your domain.
|
# Run :%s/news.yuanhau.com/your.domain.here/ in vim to replace news.yuanhau.com to your domain.
|
||||||
# Caddy is currently not supported.
|
# Caddy is currently not supported.
|
||||||
# Before getting the SSL cert for your website comment the the few with the lines of #commentbeforessl
|
# 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
|
ssl_certificate_key /etc/letsencrypt/live/news.yuanhau.com/privkey.pem; #commentbeforessl
|
||||||
server_name news.yuanhau.com;
|
server_name news.yuanhau.com;
|
||||||
access_log /var/log/nginx/news_analyze.access.log;
|
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 / {
|
location / {
|
||||||
proxy_pass http://127.0.0.1:36694; # Traefik port.
|
proxy_pass http://127.0.0.1:36694; # Traefik port.
|
||||||
|
|
|
@ -41,7 +41,6 @@ export default defineNuxtConfig({
|
||||||
"@nuxtjs/i18n",
|
"@nuxtjs/i18n",
|
||||||
"@nuxtjs/tailwindcss",
|
"@nuxtjs/tailwindcss",
|
||||||
"shadcn-nuxt",
|
"shadcn-nuxt",
|
||||||
"motion-v/nuxt",
|
|
||||||
"@sentry/nuxt/module",
|
"@sentry/nuxt/module",
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
|
@ -461,10 +461,10 @@ const openArticles = async (slug: string, titleName?: string) => {
|
||||||
}, 1000);
|
}, 1000);
|
||||||
};
|
};
|
||||||
|
|
||||||
const openNewsSourcePage = async (slug: string, titleName: string) => {
|
const openNewsSourcePage = async (slug: string) => {
|
||||||
openingAppViaAnApp.value = true;
|
openingAppViaAnApp.value = true;
|
||||||
passedValues.value = slug;
|
passedValues.value = slug;
|
||||||
const titleNameFinal = titleName + " " + t("app.aboutNewsOrg");
|
const titleNameFinal = slug ? "關於" + slug : t("app.aboutNewsOrg");
|
||||||
findAndOpenWindow("aboutNewsOrg", titleNameFinal);
|
findAndOpenWindow("aboutNewsOrg", titleNameFinal);
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue