mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
Update docs.
This commit is contained in:
parent
a4ccad0989
commit
7057f8293d
7 changed files with 37 additions and 15 deletions
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.2 MiB |
|
@ -8,3 +8,6 @@ sentry*
|
|||
package.json
|
||||
node_modules
|
||||
/public/docs
|
||||
Dockerfile
|
||||
docker-compose.yml
|
||||
nginx.conf
|
|
@ -1,6 +1,7 @@
|
|||
# 新聞解析 / News Analyze
|
||||
|
||||

|
||||
   
|
||||
|
||||
|
||||
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.
|
||||
|
|
|
@ -13,7 +13,6 @@ const errorr = ref(false);
|
|||
const switchTabs = ref(false);
|
||||
const tabs = ref([]);
|
||||
const primary = ref<string>("domestic");
|
||||
const likeart = ref([]);
|
||||
|
||||
const updateContent = async (url: string, tabAction: boolean) => {
|
||||
if (tabAction === true) {
|
||||
|
@ -131,10 +130,6 @@ watch(
|
|||
<p :class="getCheckResult(item.title) ? 'hidden' : ''">
|
||||
{{ item.shortDescription }}
|
||||
</p>
|
||||
<!--ADD 類似 NEWS ARTICLES.-->
|
||||
<div class="flex flex-col bg-gray-500">
|
||||
<div class="" v-for="item in likeart"></div>
|
||||
</div>
|
||||
</div>
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
@ -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 () => {
|
|||
</button>
|
||||
<div v-else>{{ summaryText }}</div>
|
||||
</div>
|
||||
<div class="flex flex-col bg-gray-500">
|
||||
<div class="flex flex-row" v-for="item in likeart">
|
||||
<img /><!--Image-->
|
||||
<div class="flex flex-col">
|
||||
<h2>title</h2>
|
||||
<span>description</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
21
nginx.conf
21
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;
|
||||
|
|
|
@ -396,9 +396,9 @@ const openArticles = async (slug: string) => {
|
|||
};
|
||||
|
||||
const getStaticArticleId = () => {
|
||||
storeStaticArticleId.value += 1
|
||||
return storeStaticArticleId.value
|
||||
}
|
||||
storeStaticArticleId.value += 1;
|
||||
return storeStaticArticleId.value;
|
||||
};
|
||||
</script>
|
||||
<template>
|
||||
<div v-if="changeLangAnimation">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue