Skip to content

Commit 4598d16

Browse files
authored
Merge pull request #35 from guanweiwang/main
feat: 优化代码补全展示,添加筛选
2 parents 782236e + 04599d5 commit 4598d16

File tree

9 files changed

+483
-245
lines changed

9 files changed

+483
-245
lines changed

ui/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"@c-x/ui": "^1.0.9",
1515
"@emotion/react": "^11.14.0",
1616
"@emotion/styled": "^11.14.0",
17+
"@monaco-editor/react": "4.7.0-rc.0",
1718
"@mui/icons-material": "^6.4.12",
1819
"@mui/lab": "6.0.0-beta.19",
1920
"@mui/material": "^6.4.12",

ui/pnpm-lock.yaml

Lines changed: 34 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui/src/api/types.ts

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ export interface DomainCompletionInfo {
131131
content?: string;
132132
created_at?: number;
133133
id?: string;
134+
prompt?: string;
134135
}
135136

136137
export interface DomainCompletionRecord {
@@ -330,11 +331,13 @@ export interface DomainProviderModel {
330331

331332
export interface DomainRegisterReq {
332333
/** 邀请码 */
333-
code?: string;
334+
code: string;
334335
/** 邮箱 */
335-
email?: string;
336+
email: string;
336337
/** 密码 */
337-
password?: string;
338+
password: string;
339+
/** 用户名 */
340+
username: string;
338341
}
339342

340343
export interface DomainSetting {
@@ -585,6 +588,12 @@ export interface GetChatInfoParams {
585588
}
586589

587590
export interface GetListChatRecordParams {
591+
/** 作者 */
592+
author?: string;
593+
/** 是否接受筛选 */
594+
is_accept?: boolean;
595+
/** 语言 */
596+
language?: string;
588597
/** 下一页标识 */
589598
next_token?: string;
590599
/** 分页 */
@@ -599,6 +608,12 @@ export interface GetCompletionInfoParams {
599608
}
600609

601610
export interface GetListCompletionRecordParams {
611+
/** 作者 */
612+
author?: string;
613+
/** 是否接受筛选 */
614+
is_accept?: boolean;
615+
/** 语言 */
616+
language?: string;
602617
/** 下一页标识 */
603618
next_token?: string;
604619
/** 分页 */

ui/src/assets/fonts/iconfont.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)