Commit daad20ba authored by Joel's avatar Joel

Merge branch 'fix/github-star-api-limit' into deploy/dev

parents 9b52050b d1f63289
...@@ -139,7 +139,6 @@ To protect your privacy, please avoid posting security issues on GitHub. Instead ...@@ -139,7 +139,6 @@ To protect your privacy, please avoid posting security issues on GitHub. Instead
This software uses the following open-source software: This software uses the following open-source software:
- Chase, H. (2022). LangChain [Computer software]. https://github.com/hwchase17/langchain - Chase, H. (2022). LangChain [Computer software]. https://github.com/hwchase17/langchain
- Liu, J. (2022). LlamaIndex [Computer software]. doi: 10.5281/zenodo.1234.
For more information, please refer to the official website or license text of the respective software. For more information, please refer to the official website or license text of the respective software.
......
...@@ -134,7 +134,6 @@ A: 现已支持英文与中文,你可以为我们贡献语言包。 ...@@ -134,7 +134,6 @@ A: 现已支持英文与中文,你可以为我们贡献语言包。
本软件使用了以下开源软件: 本软件使用了以下开源软件:
- Chase, H. (2022). LangChain [Computer software]. https://github.com/hwchase17/langchain - Chase, H. (2022). LangChain [Computer software]. https://github.com/hwchase17/langchain
- Liu, J. (2022). LlamaIndex [Computer software]. doi: 10.5281/zenodo.1234.
更多信息,请参考相应软件的官方网站或许可证文本。 更多信息,请参考相应软件的官方网站或许可证文本。
......
...@@ -115,7 +115,6 @@ Para proteger tu privacidad, evita publicar problemas de seguridad en GitHub. En ...@@ -115,7 +115,6 @@ Para proteger tu privacidad, evita publicar problemas de seguridad en GitHub. En
Este software utiliza el siguiente software de código abierto: Este software utiliza el siguiente software de código abierto:
- Chase, H. (2022). LangChain [Software de computadora]. https://github.com/hwchase17/langchain - Chase, H. (2022). LangChain [Software de computadora]. https://github.com/hwchase17/langchain
- Liu, J. (2022). LlamaIndex [Software de computadora]. doi: 10.5281/zenodo.1234.
Para obtener más información, consulta el sitio web oficial o el texto de la licencia del software correspondiente. Para obtener más información, consulta el sitio web oficial o el texto de la licencia del software correspondiente.
......
...@@ -114,7 +114,6 @@ A: 現在、英語と中国語に対応しており、言語パックを寄贈 ...@@ -114,7 +114,6 @@ A: 現在、英語と中国語に対応しており、言語パックを寄贈
本ソフトウェアは、以下のオープンソースソフトウェアを使用しています: 本ソフトウェアは、以下のオープンソースソフトウェアを使用しています:
- Chase, H. (2022). LangChain [Computer software]. https://github.com/hwchase17/langchain - Chase, H. (2022). LangChain [Computer software]. https://github.com/hwchase17/langchain
- Liu, J. (2022). LlamaIndex [Computer software]. doi: 10.5281/zenodo.1234.
詳しくは、各ソフトウェアの公式サイトまたはライセンス文をご参照ください。 詳しくは、各ソフトウェアの公式サイトまたはライセンス文をご参照ください。
......
...@@ -90,7 +90,7 @@ class Config: ...@@ -90,7 +90,7 @@ class Config:
self.CONSOLE_URL = get_env('CONSOLE_URL') self.CONSOLE_URL = get_env('CONSOLE_URL')
self.API_URL = get_env('API_URL') self.API_URL = get_env('API_URL')
self.APP_URL = get_env('APP_URL') self.APP_URL = get_env('APP_URL')
self.CURRENT_VERSION = "0.3.11" self.CURRENT_VERSION = "0.3.12"
self.COMMIT_SHA = get_env('COMMIT_SHA') self.COMMIT_SHA = get_env('COMMIT_SHA')
self.EDITION = "SELF_HOSTED" self.EDITION = "SELF_HOSTED"
self.DEPLOY_ENV = get_env('DEPLOY_ENV') self.DEPLOY_ENV = get_env('DEPLOY_ENV')
......
...@@ -2,7 +2,7 @@ version: '3.1' ...@@ -2,7 +2,7 @@ version: '3.1'
services: services:
# API service # API service
api: api:
image: langgenius/dify-api:0.3.11 image: langgenius/dify-api:0.3.12
restart: always restart: always
environment: environment:
# Startup mode, 'api' starts the API server. # Startup mode, 'api' starts the API server.
...@@ -124,7 +124,7 @@ services: ...@@ -124,7 +124,7 @@ services:
# worker service # worker service
# The Celery worker for processing the queue. # The Celery worker for processing the queue.
worker: worker:
image: langgenius/dify-api:0.3.11 image: langgenius/dify-api:0.3.12
restart: always restart: always
environment: environment:
# Startup mode, 'worker' starts the Celery worker for processing the queue. # Startup mode, 'worker' starts the Celery worker for processing the queue.
...@@ -176,7 +176,7 @@ services: ...@@ -176,7 +176,7 @@ services:
# Frontend web application. # Frontend web application.
web: web:
image: langgenius/dify-web:0.3.11 image: langgenius/dify-web:0.3.12
restart: always restart: always
environment: environment:
EDITION: SELF_HOSTED EDITION: SELF_HOSTED
......
'use client'
import React, { useEffect, useState } from 'react'
import { Github } from '@/app/components/base/icons/src/public/common' import { Github } from '@/app/components/base/icons/src/public/common'
import type { GithubRepo } from '@/models/common' import type { GithubRepo } from '@/models/common'
...@@ -10,18 +12,26 @@ const getStar = async () => { ...@@ -10,18 +12,26 @@ const getStar = async () => {
return res.json() return res.json()
} }
const GithubStar = async () => { const GithubStar = () => {
let githubRepo: GithubRepo = { stargazers_count: 0 } const [githubRepo, setGithubRepo] = useState<GithubRepo>({ stargazers_count: 6000 })
const [isFetched, setIsFetched] = useState(false)
useEffect(() => {
(async () => {
try {
if (process.env.NODE_ENV === 'development') if (process.env.NODE_ENV === 'development')
return null return
try { await setGithubRepo(await getStar())
githubRepo = await getStar() setIsFetched(true)
} }
catch (e) { catch (e) {
return null
} }
})()
}, [])
if (!isFetched)
return null
return ( return (
<a <a
......
{ {
"name": "dify-web", "name": "dify-web",
"version": "0.3.11", "version": "0.3.12",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev", "dev": "next dev",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment