Add chat and message pages

This commit is contained in:
Yang Luo
2023-04-09 15:53:10 +08:00
parent 623b4fee17
commit b0656aca36
4 changed files with 38 additions and 4 deletions

View File

@ -32,6 +32,7 @@ class ChatListPage extends BaseListPage {
updatedTime: moment().format(),
organization: this.props.account.owner,
displayName: `New Chat - ${randomName}`,
type: "Single",
user1: `${this.props.account.owner}/${this.props.account.name}`,
user2: "",
users: [`${this.props.account.owner}/${this.props.account.name}`],
@ -134,6 +135,22 @@ class ChatListPage extends BaseListPage {
sorter: true,
...this.getColumnSearchProps("displayName"),
},
{
title: i18next.t("provider:Type"),
dataIndex: "type",
key: "type",
width: "110px",
sorter: true,
filterMultiple: false,
filters: [
{text: "Single", value: "Single"},
{text: "Group", value: "Group"},
{text: "AI", value: "AI"},
],
render: (text, record, index) => {
return i18next.t(`chat:${text}`);
},
},
{
title: i18next.t("chat:User1"),
dataIndex: "user1",