Skip to content

Commit c607b8a

Browse files
authored
perf: base resource (#1833)
* chore: add some icon and i18n * chore: update i18n
1 parent 0a0b7f0 commit c607b8a

File tree

7 files changed

+53
-5
lines changed

7 files changed

+53
-5
lines changed

apps/nestjs-backend/src/features/import/open-api/import.class.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export interface IImportConstructorParams {
5858
fileName?: string;
5959
}
6060

61-
interface IParseResult {
61+
export interface IParseResult {
6262
[x: string]: unknown[][];
6363
}
6464

apps/nestjs-backend/test/comment.e2e-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ describe('OpenAPI CommentController (e2e)', () => {
5656
await deleteTable(baseId, tableId);
5757
});
5858

59-
it('should achieve the whole comment curd flow', async () => {
59+
it('should achieve the whole comment crud flow', async () => {
6060
// create comment
6161
const createRes = await createComment(tableId, recordId, {
6262
content: [

apps/nestjs-backend/test/record.e2e-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe('OpenAPI RecordController (e2e)', () => {
4444
await app.close();
4545
});
4646

47-
describe('simple curd', () => {
47+
describe('simple crud', () => {
4848
let table: ITableFullVo;
4949
beforeEach(async () => {
5050
table = await createTable(baseId, { name: 'table1' });

packages/common-i18n/src/locales/en/table.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,8 @@
668668
"result": "Result",
669669
"thinking": "Thinking...",
670670
"toBeConfirmed": "To be confirmed",
671-
"errorMessage": "Error message"
671+
"errorMessage": "Error message",
672+
"confirm": "Confirm"
672673
},
673674
"tools": {
674675
"getTeableApi": "Get Teable API",
@@ -699,6 +700,10 @@
699700
"buildBaseAgent": "Build Base Agent",
700701
"buildAutomationAgent": "Build Automation Agent"
701702
},
703+
"confirm": {
704+
"toBeConfirmed": "To be confirmed",
705+
"deleteWarning": "Are you sure you want to delete?"
706+
},
702707
"action": {
703708
"createTable": "Create table",
704709
"updateTableName": "Update table name",
@@ -707,6 +712,11 @@
707712
"updateViewName": "Update view name",
708713
"deleteView": "Delete view",
709714
"createField": "Create field",
715+
"createAiField": "Create AI field",
716+
"createLinkField": "Create link field",
717+
"createLookupField": "Create lookup field",
718+
"createRollupField": "Create rollup field",
719+
"createFormulaField": "Create formula field",
710720
"deleteField": "Delete field",
711721
"updateField": "Update field",
712722
"createRecord": "Create record",

packages/common-i18n/src/locales/zh/table.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,8 @@
668668
"result": "结果",
669669
"thinking": "思考中...",
670670
"toBeConfirmed": "待确认",
671-
"errorMessage": "错误信息"
671+
"errorMessage": "错误信息",
672+
"confirm": "确认"
672673
},
673674
"tools": {
674675
"getTeableApi": "获取 Teable API",
@@ -699,6 +700,10 @@
699700
"buildBaseAgent": "构建数据库工具",
700701
"buildAutomationAgent": "构建自动化工具"
701702
},
703+
"confirm": {
704+
"toBeConfirmed": "待确认",
705+
"deleteWarning": "你确定要删除吗?"
706+
},
702707
"action": {
703708
"createTable": "创建表格",
704709
"updateTableName": "更新表格名称",
@@ -707,6 +712,11 @@
707712
"updateViewName": "更新视图名称",
708713
"deleteView": "删除视图",
709714
"createField": "创建字段",
715+
"createAiField": "创建 AI 字段",
716+
"createLinkField": "创建关联字段",
717+
"createLookupField": "创建查找字段",
718+
"createRollupField": "创建聚合字段",
719+
"createFormulaField": "创建公式字段",
710720
"deleteField": "删除字段",
711721
"updateField": "更新字段",
712722
"createRecord": "创建记录",
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import * as React from 'react';
2+
import type { SVGProps } from 'react';
3+
const Compose = (props: SVGProps<SVGSVGElement>) => (
4+
<svg
5+
width="16"
6+
height="16"
7+
viewBox="0 0 16 16"
8+
fill="none"
9+
xmlns="http://www.w3.org/2000/svg"
10+
{...props}
11+
>
12+
<g clipPath="url(#clip0_287_17968)">
13+
<path
14+
d="M9.33333 4.66634L11.3333 6.66634M3.33333 3.99967V6.66634M12.6667 9.33301V11.9997M6.66667 1.33301V2.66634M4.66667 5.33301H2M14 10.6663H11.3333M7.33333 1.99967H6M14.4265 2.42637L13.5732 1.57304C13.4982 1.49725 13.4089 1.43708 13.3105 1.39602C13.2121 1.35496 13.1065 1.33382 12.9999 1.33382C12.8932 1.33382 12.7877 1.35496 12.6893 1.39602C12.5908 1.43708 12.5015 1.49725 12.4265 1.57304L1.5732 12.4264C1.49741 12.5014 1.43725 12.5907 1.39619 12.6891C1.35513 12.7875 1.33398 12.8931 1.33398 12.9997C1.33398 13.1063 1.35513 13.2119 1.39619 13.3103C1.43725 13.4087 1.49741 13.498 1.5732 13.573L2.42653 14.4264C2.50108 14.503 2.59022 14.5639 2.6887 14.6054C2.78717 14.647 2.89298 14.6684 2.99987 14.6684C3.10676 14.6684 3.21256 14.647 3.31104 14.6054C3.40951 14.5639 3.49865 14.503 3.5732 14.4264L14.4265 3.57304C14.5031 3.49849 14.564 3.40935 14.6056 3.31087C14.6472 3.2124 14.6686 3.1066 14.6686 2.9997C14.6686 2.89281 14.6472 2.78701 14.6056 2.68853C14.564 2.59006 14.5031 2.50092 14.4265 2.42637Z"
15+
stroke="#71717A"
16+
strokeLinecap="round"
17+
strokeLinejoin="round"
18+
/>
19+
</g>
20+
<defs>
21+
<clipPath id="clip0_287_17968">
22+
<rect width="16" height="16" fill="white" />
23+
</clipPath>
24+
</defs>
25+
</svg>
26+
);
27+
export default Compose;

packages/icons/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,3 +172,4 @@ export { default as ZoomIn } from './components/ZoomIn';
172172
export { default as ZoomOut } from './components/ZoomOut';
173173
export { default as AmazonBedrock } from './components/AmazonBedrock';
174174
export { default as TeableAi } from './components/TeableAi';
175+
export { default as Compose } from './components/Compose';

0 commit comments

Comments
 (0)