diff --git a/.github/README/Screenshot 2025-05-25 at 20.20.14.png b/.github/README/desktop.png similarity index 100% rename from .github/README/Screenshot 2025-05-25 at 20.20.14.png rename to .github/README/desktop.png diff --git a/.prettierignore b/.prettierignore index fbe09a4..bd531e0 100644 --- a/.prettierignore +++ b/.prettierignore @@ -8,3 +8,6 @@ sentry* package.json node_modules /public/docs +Dockerfile +docker-compose.yml +nginx.conf \ No newline at end of file diff --git a/README.md b/README.md index a98bb1c..f0bef7a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # 新聞解析 / News Analyze -![](https://hackatime-badge.hackclub.com/U087ATD163V/news-analyize) +![](https://hackatime-badge.hackclub.com/U087ATD163V/news-analyize) ![CodeRabbit Pull Request Reviews](https://img.shields.io/coderabbit/prs/github/hpware/news-analyze?utm_source=oss&utm_medium=github&utm_campaign=hpware%2Fnews-analyze&labelColor=171717&color=FF570A&link=https%3A%2F%2Fcoderabbit.ai&label=CodeRabbit+Reviews) ![LICENSE](https://img.shields.io/github/license/hpware/news-analyze?style=flat) ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/hpware/news-analyze/build_docker_image.yml) + App Design: [PDF Document](/design.pdf) @@ -95,4 +96,4 @@ https://news.yuanhau.com/api/home/lt?query=domestic https://news.yuanhau.com/api/news/get/lt/${article url hash} -or you can self host the API on your own server with a basic docker compose command. +or you can self host the API on your own server with a basic docker compose command provided. diff --git a/components/app/windows/news.vue b/components/app/windows/news.vue index a74e56f..d0612cb 100644 --- a/components/app/windows/news.vue +++ b/components/app/windows/news.vue @@ -13,7 +13,6 @@ const errorr = ref(false); const switchTabs = ref(false); const tabs = ref([]); const primary = ref("domestic"); -const likeart = ref([]); const updateContent = async (url: string, tabAction: boolean) => { if (tabAction === true) { @@ -131,10 +130,6 @@ watch(

{{ item.shortDescription }}

- -
-
-
diff --git a/components/app/windows/newsView.vue b/components/app/windows/newsView.vue index 62ab730..83d4fe4 100644 --- a/components/app/windows/newsView.vue +++ b/components/app/windows/newsView.vue @@ -9,6 +9,7 @@ const activateAiSummary = ref(false); const isGenerating = ref(false); const summaryText = ref(""); const { locale } = useI18n(); +const likeart = ref([]); const aiSummary = async () => { activateAiSummary.value = true; isGenerating.value = true; @@ -57,6 +58,15 @@ const aiSummary = async () => {
{{ summaryText }}
+
+
+ +
+

title

+ description +
+
+
diff --git a/nginx.conf b/nginx.conf index 03625ae..fd5a573 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,14 +1,27 @@ +# 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 +# +# +# +# If you want to change the log dir use :%s/news_analyze/{your-file-here} +# +# +# +# +# +# server { listen 80; - listen 443 ssl; - ssl_certificate /etc/letsencrypt/live/news.yuanhau.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/news.yuanhau.com/privkey.pem; + listen 443 ssl; #commentbeforessl + ssl_certificate /etc/letsencrypt/live/news.yuanhau.com/fullchain.pem; #commentbeforessl + 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; location / { - proxy_pass http://127.0.0.1:36694; + proxy_pass http://127.0.0.1:36694; # Traefik port. proxy_set_header X-real-IP $remote_addr; proxy_set_header Host $host; proxy_set_header X-Forward-For $proxy_add_x_forwarded_for; @@ -21,4 +34,4 @@ server { proxy_buffering off; proxy_cache off; } -} +} \ No newline at end of file diff --git a/pages/desktop.vue b/pages/desktop.vue index 55edb43..ab92985 100644 --- a/pages/desktop.vue +++ b/pages/desktop.vue @@ -396,9 +396,9 @@ const openArticles = async (slug: string) => { }; const getStaticArticleId = () => { - storeStaticArticleId.value += 1 - return storeStaticArticleId.value -} + storeStaticArticleId.value += 1; + return storeStaticArticleId.value; +};