Skip to content

Commit

Permalink
docs: update read me
Browse files Browse the repository at this point in the history
  • Loading branch information
Peek-A-Booo committed Sep 27, 2023
1 parent 320bea2 commit f29982a
Show file tree
Hide file tree
Showing 12 changed files with 37 additions and 47 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ docker pull ltopx/le-ai:latest
docker run -d -p 3000:3000 ltopx/le-ai:latest
```

### Docker Local Deployment

```
docker build -t ltopx/le-ai .
docker run -d -p 3000:3000 ltopx/le-ai
```

### One-click Deployment

Currently supports one-click deployment to Vercel.
Expand Down
10 changes: 9 additions & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,17 @@ docker pull ltopx/le-ai:latest
docker run -d -p 3000:3000 ltopx/le-ai:latest
```

### Docker 本地部署

```
docker build -t ltopx/le-ai .
docker run -d -p 3000:3000 ltopx/le-ai
```

### 一键部署

目前支持一键部署到 Vercel。
支持一键部署到 Vercel。

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

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "le-ai",
"version": "0.9.1",
"version": "0.9.2",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down Expand Up @@ -90,4 +90,4 @@
"dotenv-cli": "7.3.0",
"prisma": "5.3.1"
}
}
}
Binary file added public/changelog/en.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/changelog/en.webp
Binary file not shown.
Binary file added public/changelog/zh-CN.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/changelog/zh-CN.webp
Binary file not shown.
22 changes: 2 additions & 20 deletions src/components/announcement/index.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,16 @@
"use client";

import React from "react";
import Image from "next/image";
import { Modal, Button } from "@ltopx/lx-ui";
import { useTranslations, useLocale } from "next-intl";
import { useTranslations } from "next-intl";
import pkg from "../../../package.json";

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

const locale = useLocale();

const [open, setOpen] = React.useState(false);

const url =
locale === "zh-CN" ? "/changelog/zh-CN.webp" : "/changelog/en.webp";

const onClose = () => {
localStorage.setItem("announcement_version", pkg.version);
setOpen(false);
Expand All @@ -43,7 +37,6 @@ export default function Announcement() {
}
>
<div className="max-h-[500px] overflow-y-auto">
<Image src={url} alt="" width={1920} height={300} />
<div className="flex">
<Button
type="link"
Expand All @@ -58,19 +51,8 @@ export default function Announcement() {
className="list-disc space-y-3 mt-3 max-h-[500px] pl-5 text-slate-500 overflow-y-auto marker:text-sky-400"
>
<li>{tZLog("text1")}</li>
<li>
{tZLog("text2")},{" "}
<a
href="https://docs.le-ai.app/client"
target="_blank"
className="text-sky-400 hover:underline"
>
{tGlobal("learn-more")}
</a>
</li>
<li>{tZLog("text2")}</li>
<li>{tZLog("text3")}</li>
<li>{tZLog("text4")}</li>
<li>{tZLog("text5")}</li>
</ul>
</div>
</Modal>
Expand Down
10 changes: 4 additions & 6 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -322,11 +322,9 @@
"zLog": {
"full-log": "Click to view the full update log",
"menu-notice": "Download Le-AI client",
"title": "v0.9.1 Update 🔥🔥",
"text1": "Added support for account password login",
"text2": "Added compatibility to configure other third-party OpenAI API Keys. For example: nextweb, API2D",
"text3": "Fixed the issue of character limit for prompts and welcome messages when creating a new role",
"text4": "Fixed the issue of garbled response in some cases",
"text5": "Other UI details optimization"
"title": "v0.9.2 Update 🔥🔥",
"text1": "Support Docker deployment",
"text2": "Support unlimited sessions, and adjust the coherence of session by modifying the threshold of content summarization in session settings",
"text3": "UI optimization for other modules"
}
}
10 changes: 4 additions & 6 deletions src/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -322,11 +322,9 @@
"zLog": {
"full-log": "完全な更新履歴を表示するにはクリックしてください",
"menu-notice": "Le-AIクライアントが近日公開予定です",
"title": "v0.9.1 更新のお知らせ 🔥🔥",
"text1": "アカウントパスワードログインのサポートを追加しました",
"text2": "他の第三者OpenAI APIキーとの互換性設定を追加しました。例:nextweb、API2D",
"text3": "新規ロール作成時にプロンプトとウェルカムメッセージの文字数制限の問題を修正しました",
"text4": "一部の場合におけるレスポンス文字化け問題を修正しました",
"text5": "その他UIディテールの最適化"
"title": "v0.9.2 更新のお知らせ 🔥🔥",
"text1": "Dockerデプロイをサポートする",
"text2": "無制限のセッションをサポートし、セッション設定で要約内容の閾値を変更してセッションの一貫性を調整できます",
"text3": "他のモジュールUIの最適化"
}
}
10 changes: 4 additions & 6 deletions src/locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -322,11 +322,9 @@
"zLog": {
"full-log": "点击查看完整更新日志",
"menu-notice": "点击下载 Le-AI 客户端",
"title": "v0.9.1 版本更新公告 🔥🔥",
"text1": "新增支持支持账号密码登录",
"text2": "新增兼容配置其他第三方 OpenAI API Key。例如:nextweb,API2D",
"text3": "修复新建角色时,prompt 和欢迎语字数限制的问题",
"text4": "修复部分情况下响应乱码的问题",
"text5": "其他 UI 细节优化"
"title": "v0.9.2 版本更新公告 🔥🔥",
"text1": "支持 Docker 部署",
"text2": "支持无限会话,可在会话设置中修改内容总结的阈值来调整会话的连贯性",
"text3": "其他模块 UI 优化"
}
}
10 changes: 4 additions & 6 deletions src/locales/zh-HK.json
Original file line number Diff line number Diff line change
Expand Up @@ -322,11 +322,9 @@
"zLog": {
"full-log": "點擊查看完整更新日誌",
"menu-notice": "點擊下載 Le-AI 客戶端",
"title": "v0.9.1 版本更新公告 🔥🔥",
"text1": "新增支援支援帳號密碼登錄",
"text2": "新增兼容配置其他第三方 OpenAI API Key。例如:nextweb,API2D",
"text3": "修復新建角色時,prompt 和歡迎語字數限制的問題",
"text4": "修復部分情況下響應亂碼的問題",
"text5": "其他 UI 細節優化"
"title": "v0.9.2 版本更新公告 🔥🔥",
"text1": "支持 Docker 部署",
"text2": "支持無限會話,可在會話設置中修改內容總結的閾值來調整會話的連貫性",
"text3": "其他模塊 UI 優化"
}
}

1 comment on commit f29982a

@vercel
Copy link

@vercel vercel bot commented on f29982a Sep 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.