Skip to content

Commit f29982a

Browse files
committed
docs: update read me
1 parent 320bea2 commit f29982a

File tree

12 files changed

+37
-47
lines changed

12 files changed

+37
-47
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@ docker pull ltopx/le-ai:latest
7777
docker run -d -p 3000:3000 ltopx/le-ai:latest
7878
```
7979

80+
### Docker Local Deployment
81+
82+
```
83+
docker build -t ltopx/le-ai .
84+
85+
docker run -d -p 3000:3000 ltopx/le-ai
86+
```
87+
8088
### One-click Deployment
8189

8290
Currently supports one-click deployment to Vercel.

README_CN.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,17 @@ docker pull ltopx/le-ai:latest
7777
docker run -d -p 3000:3000 ltopx/le-ai:latest
7878
```
7979

80+
### Docker 本地部署
81+
82+
```
83+
docker build -t ltopx/le-ai .
84+
85+
docker run -d -p 3000:3000 ltopx/le-ai
86+
```
87+
8088
### 一键部署
8189

82-
目前支持一键部署到 Vercel。
90+
支持一键部署到 Vercel。
8391

8492
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/LTopx/Le-AI)
8593

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "le-ai",
3-
"version": "0.9.1",
3+
"version": "0.9.2",
44
"private": true,
55
"scripts": {
66
"dev": "next dev",
@@ -90,4 +90,4 @@
9090
"dotenv-cli": "7.3.0",
9191
"prisma": "5.3.1"
9292
}
93-
}
93+
}

public/changelog/en.png

362 KB
Loading

public/changelog/en.webp

-19.4 KB
Binary file not shown.

public/changelog/zh-CN.png

359 KB
Loading

public/changelog/zh-CN.webp

-19.9 KB
Binary file not shown.

src/components/announcement/index.tsx

+2-20
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
11
"use client";
22

33
import React from "react";
4-
import Image from "next/image";
54
import { Modal, Button } from "@ltopx/lx-ui";
6-
import { useTranslations, useLocale } from "next-intl";
5+
import { useTranslations } from "next-intl";
76
import pkg from "../../../package.json";
87

98
export default function Announcement() {
109
const tGlobal = useTranslations("global");
1110
const tZLog = useTranslations("zLog");
1211

13-
const locale = useLocale();
14-
1512
const [open, setOpen] = React.useState(false);
1613

17-
const url =
18-
locale === "zh-CN" ? "/changelog/zh-CN.webp" : "/changelog/en.webp";
19-
2014
const onClose = () => {
2115
localStorage.setItem("announcement_version", pkg.version);
2216
setOpen(false);
@@ -43,7 +37,6 @@ export default function Announcement() {
4337
}
4438
>
4539
<div className="max-h-[500px] overflow-y-auto">
46-
<Image src={url} alt="" width={1920} height={300} />
4740
<div className="flex">
4841
<Button
4942
type="link"
@@ -58,19 +51,8 @@ export default function Announcement() {
5851
className="list-disc space-y-3 mt-3 max-h-[500px] pl-5 text-slate-500 overflow-y-auto marker:text-sky-400"
5952
>
6053
<li>{tZLog("text1")}</li>
61-
<li>
62-
{tZLog("text2")},{" "}
63-
<a
64-
href="https://docs.le-ai.app/client"
65-
target="_blank"
66-
className="text-sky-400 hover:underline"
67-
>
68-
{tGlobal("learn-more")}
69-
</a>
70-
</li>
54+
<li>{tZLog("text2")}</li>
7155
<li>{tZLog("text3")}</li>
72-
<li>{tZLog("text4")}</li>
73-
<li>{tZLog("text5")}</li>
7456
</ul>
7557
</div>
7658
</Modal>

src/locales/en.json

+4-6
Original file line numberDiff line numberDiff line change
@@ -322,11 +322,9 @@
322322
"zLog": {
323323
"full-log": "Click to view the full update log",
324324
"menu-notice": "Download Le-AI client",
325-
"title": "v0.9.1 Update 🔥🔥",
326-
"text1": "Added support for account password login",
327-
"text2": "Added compatibility to configure other third-party OpenAI API Keys. For example: nextweb, API2D",
328-
"text3": "Fixed the issue of character limit for prompts and welcome messages when creating a new role",
329-
"text4": "Fixed the issue of garbled response in some cases",
330-
"text5": "Other UI details optimization"
325+
"title": "v0.9.2 Update 🔥🔥",
326+
"text1": "Support Docker deployment",
327+
"text2": "Support unlimited sessions, and adjust the coherence of session by modifying the threshold of content summarization in session settings",
328+
"text3": "UI optimization for other modules"
331329
}
332330
}

src/locales/ja.json

+4-6
Original file line numberDiff line numberDiff line change
@@ -322,11 +322,9 @@
322322
"zLog": {
323323
"full-log": "完全な更新履歴を表示するにはクリックしてください",
324324
"menu-notice": "Le-AIクライアントが近日公開予定です",
325-
"title": "v0.9.1 更新のお知らせ 🔥🔥",
326-
"text1": "アカウントパスワードログインのサポートを追加しました",
327-
"text2": "他の第三者OpenAI APIキーとの互換性設定を追加しました。例:nextweb、API2D",
328-
"text3": "新規ロール作成時にプロンプトとウェルカムメッセージの文字数制限の問題を修正しました",
329-
"text4": "一部の場合におけるレスポンス文字化け問題を修正しました",
330-
"text5": "その他UIディテールの最適化"
325+
"title": "v0.9.2 更新のお知らせ 🔥🔥",
326+
"text1": "Dockerデプロイをサポートする",
327+
"text2": "無制限のセッションをサポートし、セッション設定で要約内容の閾値を変更してセッションの一貫性を調整できます",
328+
"text3": "他のモジュールUIの最適化"
331329
}
332330
}

src/locales/zh-CN.json

+4-6
Original file line numberDiff line numberDiff line change
@@ -322,11 +322,9 @@
322322
"zLog": {
323323
"full-log": "点击查看完整更新日志",
324324
"menu-notice": "点击下载 Le-AI 客户端",
325-
"title": "v0.9.1 版本更新公告 🔥🔥",
326-
"text1": "新增支持支持账号密码登录",
327-
"text2": "新增兼容配置其他第三方 OpenAI API Key。例如:nextweb,API2D",
328-
"text3": "修复新建角色时,prompt 和欢迎语字数限制的问题",
329-
"text4": "修复部分情况下响应乱码的问题",
330-
"text5": "其他 UI 细节优化"
325+
"title": "v0.9.2 版本更新公告 🔥🔥",
326+
"text1": "支持 Docker 部署",
327+
"text2": "支持无限会话,可在会话设置中修改内容总结的阈值来调整会话的连贯性",
328+
"text3": "其他模块 UI 优化"
331329
}
332330
}

src/locales/zh-HK.json

+4-6
Original file line numberDiff line numberDiff line change
@@ -322,11 +322,9 @@
322322
"zLog": {
323323
"full-log": "點擊查看完整更新日誌",
324324
"menu-notice": "點擊下載 Le-AI 客戶端",
325-
"title": "v0.9.1 版本更新公告 🔥🔥",
326-
"text1": "新增支援支援帳號密碼登錄",
327-
"text2": "新增兼容配置其他第三方 OpenAI API Key。例如:nextweb,API2D",
328-
"text3": "修復新建角色時,prompt 和歡迎語字數限制的問題",
329-
"text4": "修復部分情況下響應亂碼的問題",
330-
"text5": "其他 UI 細節優化"
325+
"title": "v0.9.2 版本更新公告 🔥🔥",
326+
"text1": "支持 Docker 部署",
327+
"text2": "支持無限會話,可在會話設置中修改內容總結的閾值來調整會話的連貫性",
328+
"text3": "其他模塊 UI 優化"
331329
}
332330
}

0 commit comments

Comments
 (0)