From ccdb79eb36eec62ae70d999b0ba63a3c506c2a52 Mon Sep 17 00:00:00 2001 From: wolfgang555 <102375417+wolfgang555@users.noreply.github.com> Date: Sat, 2 Aug 2025 12:19:15 +0800 Subject: [PATCH] fix: typo (#45) --- cspell.json | 2 +- docker/atlas/README.md | 2 +- .../idl/idl-parser/__tests__/proto.field.test.ts | 4 ++-- .../idl/idl-parser/__tests__/proto.method.test.ts | 4 ++-- .../idl/idl-parser/__tests__/proto.service.test.ts | 4 ++-- .../idl/idl-parser/__tests__/thrift.field.test.ts | 8 ++++---- .../idl-parser/__tests__/thrift.function.test.ts | 4 ++-- .../idl-parser/__tests__/thrift.service.test.ts | 2 +- .../idl/idl-parser/__tests__/unify.field.test.ts | 14 +++++++------- .../idl-parser/__tests__/unify.function.test.ts | 6 +++--- .../idl/idl-parser/__tests__/unify.service.test.ts | 4 ++-- .../src/hooks/use-mcp-config-modal.tsx | 4 ++-- 12 files changed, 29 insertions(+), 29 deletions(-) diff --git a/cspell.json b/cspell.json index 85ae7eb6..711dafa2 100644 --- a/cspell.json +++ b/cspell.json @@ -51,7 +51,7 @@ "rspack", "rushstack", "rushx", - "Seperator", + "Separator", "Sider", "slardar", "stylelint", diff --git a/docker/atlas/README.md b/docker/atlas/README.md index 8793e540..6f06ef5e 100755 --- a/docker/atlas/README.md +++ b/docker/atlas/README.md @@ -48,7 +48,7 @@ On developer machine(I want add/update table for my business) atlas migrate hash # step 2 if need atlas migrate status --url $ATLAS_URL --dir "file://migrations" # check status - # Last, dump the lastest database schema for other developer + # Last, dump the latest database schema for other developer atlas schema inspect -u $ATLAS_URL --exclude "atlas_schema_revisions,table_*" > opencoze_latest_schema.hcl # step 3 ## 4. apply migration diff --git a/frontend/infra/idl/idl-parser/__tests__/proto.field.test.ts b/frontend/infra/idl/idl-parser/__tests__/proto.field.test.ts index cbfbf14a..25b575bc 100644 --- a/frontend/infra/idl/idl-parser/__tests__/proto.field.test.ts +++ b/frontend/infra/idl/idl-parser/__tests__/proto.field.test.ts @@ -18,7 +18,7 @@ import * as t from '../src/proto'; describe('ferry-parser', () => { describe('proto field', () => { - it('should convert message field extenstions', () => { + it('should convert message field extensions', () => { const idl = ` syntax = "proto3"; enum Numbers { @@ -83,7 +83,7 @@ describe('ferry-parser', () => { return expect(extensionConfigs).to.eql(expected); }); - it('should convert message field extenstions using old rules', () => { + it('should convert message field extensions using old rules', () => { const idl = ` syntax = "proto3"; message Foo { diff --git a/frontend/infra/idl/idl-parser/__tests__/proto.method.test.ts b/frontend/infra/idl/idl-parser/__tests__/proto.method.test.ts index 33140f45..52f10ce6 100644 --- a/frontend/infra/idl/idl-parser/__tests__/proto.method.test.ts +++ b/frontend/infra/idl/idl-parser/__tests__/proto.method.test.ts @@ -18,7 +18,7 @@ import * as t from '../src/proto'; describe('ferry-parser', () => { describe('proto method', () => { - it('should convert method extenstions', () => { + it('should convert method extensions', () => { const idl = ` syntax = 'proto3'; message BizRequest {} @@ -74,7 +74,7 @@ describe('ferry-parser', () => { return expect(extensionConfigs).to.eql(expected); }); - it('should convert method extenstions using old rules', () => { + it('should convert method extensions using old rules', () => { const idl = ` syntax = 'proto3'; message BizRequest {} diff --git a/frontend/infra/idl/idl-parser/__tests__/proto.service.test.ts b/frontend/infra/idl/idl-parser/__tests__/proto.service.test.ts index 5de57526..682912d6 100644 --- a/frontend/infra/idl/idl-parser/__tests__/proto.service.test.ts +++ b/frontend/infra/idl/idl-parser/__tests__/proto.service.test.ts @@ -18,7 +18,7 @@ import * as t from '../src/proto'; describe('ferry-parser', () => { describe('proto service', () => { - it('should convert service extenstions', () => { + it('should convert service extensions', () => { const idl = ` syntax = "proto3"; service Foo { @@ -32,7 +32,7 @@ describe('ferry-parser', () => { return expect(Foo.extensionConfig).to.eql(expected); }); - it('should convert service extenstions with package', () => { + it('should convert service extensions with package', () => { const idl = ` syntax = "proto3"; package example; diff --git a/frontend/infra/idl/idl-parser/__tests__/thrift.field.test.ts b/frontend/infra/idl/idl-parser/__tests__/thrift.field.test.ts index 26e4e35a..4d1087ab 100644 --- a/frontend/infra/idl/idl-parser/__tests__/thrift.field.test.ts +++ b/frontend/infra/idl/idl-parser/__tests__/thrift.field.test.ts @@ -18,7 +18,7 @@ import * as t from '../src/thrift'; describe('ferry-parser', () => { describe('thrift field', () => { - it('should convert struct field extenstions', () => { + it('should convert struct field extensions', () => { const idl = ` enum Numbers { ONE = 1 @@ -82,7 +82,7 @@ describe('ferry-parser', () => { return expect(extensionConfigs).to.eql(expected); }); - it('should convert union field extenstions', () => { + it('should convert union field extensions', () => { const idl = ` union Foo { 1: string k1 (api.position = "query") @@ -97,7 +97,7 @@ describe('ferry-parser', () => { return expect(extensionConfigs).to.eql(expected); }); - it('should convert struct field extenstions using agw specification', () => { + it('should convert struct field extensions using agw specification', () => { const idl = ` struct Foo { 1: string k1 (agw.source = 'query') @@ -130,7 +130,7 @@ describe('ferry-parser', () => { return expect(extensionConfigs).to.eql(expected); }); - it('should convert struct field extenstions using golang tag', () => { + it('should convert struct field extensions using golang tag', () => { const idl = ` struct Foo { 1: string k1 (go.tag = "json:\\"key1\\"") diff --git a/frontend/infra/idl/idl-parser/__tests__/thrift.function.test.ts b/frontend/infra/idl/idl-parser/__tests__/thrift.function.test.ts index fab6eabb..34ce4396 100644 --- a/frontend/infra/idl/idl-parser/__tests__/thrift.function.test.ts +++ b/frontend/infra/idl/idl-parser/__tests__/thrift.function.test.ts @@ -18,7 +18,7 @@ import * as t from '../src/thrift'; describe('ferry-parser', () => { describe('thrift function', () => { - it('should convert function extenstions', () => { + it('should convert function extensions', () => { const idl = ` service Foo { BizResponse Biz1(1: BizRequest req) (api.uri = '/api/biz1') @@ -57,7 +57,7 @@ describe('ferry-parser', () => { return expect(extensionConfigs).to.eql(expected); }); - it('should convert function extenstions using agw specification', () => { + it('should convert function extensions using agw specification', () => { const idl = ` service Foo { BizResponse Biz1(1: BizRequest req) (agw.uri = '/api/biz1') diff --git a/frontend/infra/idl/idl-parser/__tests__/thrift.service.test.ts b/frontend/infra/idl/idl-parser/__tests__/thrift.service.test.ts index 63684d41..50ed47e5 100644 --- a/frontend/infra/idl/idl-parser/__tests__/thrift.service.test.ts +++ b/frontend/infra/idl/idl-parser/__tests__/thrift.service.test.ts @@ -18,7 +18,7 @@ import * as t from '../src/thrift'; describe('ferry-parser', () => { describe('thrift service', () => { - it('should convert service extenstions', () => { + it('should convert service extensions', () => { const idl = ` service Foo { } (api.uri_prefix = 'https://example.com') diff --git a/frontend/infra/idl/idl-parser/__tests__/unify.field.test.ts b/frontend/infra/idl/idl-parser/__tests__/unify.field.test.ts index 5a30a771..2333c727 100644 --- a/frontend/infra/idl/idl-parser/__tests__/unify.field.test.ts +++ b/frontend/infra/idl/idl-parser/__tests__/unify.field.test.ts @@ -19,7 +19,7 @@ import { filterKeys } from './common'; describe('unify-parser', () => { describe('thrift field', () => { - it('should convert struct field extenstions', () => { + it('should convert struct field extensions', () => { const content = ` enum Numbers { ONE = 1 @@ -90,7 +90,7 @@ describe('unify-parser', () => { return expect(extensionConfigs).to.eql(expected); }); - it('should convert union field extenstions', () => { + it('should convert union field extensions', () => { const content = ` union Foo { 1: string k1 (api.position = "query") @@ -109,7 +109,7 @@ describe('unify-parser', () => { return expect(extensionConfigs).to.eql(expected); }); - it('should convert struct field extenstions using agw specification', () => { + it('should convert struct field extensions using agw specification', () => { const content = ` struct Foo { 1: string k1 (agw.source = 'query') @@ -146,7 +146,7 @@ describe('unify-parser', () => { return expect(extensionConfigs).to.eql(expected); }); - it('should convert struct field extenstions using golang tag', () => { + it('should convert struct field extensions using golang tag', () => { const content = ` struct Foo { 1: string k1 (go.tag = "json:\\"key1\\"") @@ -432,7 +432,7 @@ describe('unify-parser', () => { }); describe('proto field', () => { - it('should convert message field extenstions', () => { + it('should convert message field extensions', () => { const content = ` syntax = "proto3"; enum Numbers { @@ -499,7 +499,7 @@ describe('unify-parser', () => { return expect(extensionConfigs).to.eql(expected); }); - it('should convert message field extenstions using old rules', () => { + it('should convert message field extensions using old rules', () => { const content = ` syntax = "proto3"; message Foo { @@ -535,7 +535,7 @@ describe('unify-parser', () => { return expect(extensionConfigs).to.eql(expected); }); - it('should convert message field extenstions with error', () => { + it('should convert message field extensions with error', () => { const content = ` syntax = "proto3"; message Foo { diff --git a/frontend/infra/idl/idl-parser/__tests__/unify.function.test.ts b/frontend/infra/idl/idl-parser/__tests__/unify.function.test.ts index 4bb0880d..5a683e91 100644 --- a/frontend/infra/idl/idl-parser/__tests__/unify.function.test.ts +++ b/frontend/infra/idl/idl-parser/__tests__/unify.function.test.ts @@ -19,7 +19,7 @@ import { filterKeys } from './common'; describe('unify-parser', () => { describe('thrift function', () => { - it('should convert function extenstions', () => { + it('should convert function extensions', () => { const content = ` service Foo { BizResponse Biz1(1: BizRequest req) (api.uri = '/api/biz1') @@ -62,7 +62,7 @@ describe('unify-parser', () => { return expect(extensionConfigs).to.eql(expected); }); - it('should convert function extenstions using agw specification', () => { + it('should convert function extensions using agw specification', () => { const content = ` service Foo { BizResponse Biz1(1: BizRequest req) (agw.uri = '/api/biz1') @@ -178,7 +178,7 @@ describe('unify-parser', () => { }); describe('proto method', () => { - it('should convert method extenstions', () => { + it('should convert method extensions', () => { const content = ` syntax = 'proto3'; message BizRequest {} diff --git a/frontend/infra/idl/idl-parser/__tests__/unify.service.test.ts b/frontend/infra/idl/idl-parser/__tests__/unify.service.test.ts index 013f31d4..2d251706 100644 --- a/frontend/infra/idl/idl-parser/__tests__/unify.service.test.ts +++ b/frontend/infra/idl/idl-parser/__tests__/unify.service.test.ts @@ -19,7 +19,7 @@ import { filterKeys } from './common'; describe('unify-parser', () => { describe('thrift service', () => { - it('should convert service extenstions', () => { + it('should convert service extensions', () => { const fileContent = ` service Foo { } (api.uri_prefix = 'https://example.com') @@ -41,7 +41,7 @@ describe('unify-parser', () => { }); describe('proto service', () => { - it('should convert service extenstions', () => { + it('should convert service extensions', () => { const fileContent = ` syntax = "proto3"; service Foo { diff --git a/frontend/packages/studio/workspace/project-publish/src/hooks/use-mcp-config-modal.tsx b/frontend/packages/studio/workspace/project-publish/src/hooks/use-mcp-config-modal.tsx index e65bec6c..d5648778 100644 --- a/frontend/packages/studio/workspace/project-publish/src/hooks/use-mcp-config-modal.tsx +++ b/frontend/packages/studio/workspace/project-publish/src/hooks/use-mcp-config-modal.tsx @@ -130,7 +130,7 @@ export const UseMcpConfigModal = ({ setVisible(false); }; - const handelConfirm = () => { + const handleConfirm = () => { setProjectPublishInfo({ connectorPublishConfig: { ...connectorPublishConfig, @@ -178,7 +178,7 @@ export const UseMcpConfigModal = ({ cancelText={I18n.t( 'app_publish_connector_space_mcp_config_dialog_cancel', )} - onOk={handelConfirm} + onOk={handleConfirm} >
{I18n.t('app_publish_connector_space_mcp_config_dialog_desc')}