fix: typo (#45)

This commit is contained in:
wolfgang555 2025-08-02 12:19:15 +08:00 committed by GitHub
parent 446012dfd6
commit ccdb79eb36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
12 changed files with 29 additions and 29 deletions

View File

@ -51,7 +51,7 @@
"rspack", "rspack",
"rushstack", "rushstack",
"rushx", "rushx",
"Seperator", "Separator",
"Sider", "Sider",
"slardar", "slardar",
"stylelint", "stylelint",

View File

@ -48,7 +48,7 @@ On developer machineI want add/update table for my business
atlas migrate hash # step 2 if need atlas migrate hash # step 2 if need
atlas migrate status --url $ATLAS_URL --dir "file://migrations" # check status 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 atlas schema inspect -u $ATLAS_URL --exclude "atlas_schema_revisions,table_*" > opencoze_latest_schema.hcl # step 3
## 4. apply migration ## 4. apply migration

View File

@ -18,7 +18,7 @@ import * as t from '../src/proto';
describe('ferry-parser', () => { describe('ferry-parser', () => {
describe('proto field', () => { describe('proto field', () => {
it('should convert message field extenstions', () => { it('should convert message field extensions', () => {
const idl = ` const idl = `
syntax = "proto3"; syntax = "proto3";
enum Numbers { enum Numbers {
@ -83,7 +83,7 @@ describe('ferry-parser', () => {
return expect(extensionConfigs).to.eql(expected); 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 = ` const idl = `
syntax = "proto3"; syntax = "proto3";
message Foo { message Foo {

View File

@ -18,7 +18,7 @@ import * as t from '../src/proto';
describe('ferry-parser', () => { describe('ferry-parser', () => {
describe('proto method', () => { describe('proto method', () => {
it('should convert method extenstions', () => { it('should convert method extensions', () => {
const idl = ` const idl = `
syntax = 'proto3'; syntax = 'proto3';
message BizRequest {} message BizRequest {}
@ -74,7 +74,7 @@ describe('ferry-parser', () => {
return expect(extensionConfigs).to.eql(expected); return expect(extensionConfigs).to.eql(expected);
}); });
it('should convert method extenstions using old rules', () => { it('should convert method extensions using old rules', () => {
const idl = ` const idl = `
syntax = 'proto3'; syntax = 'proto3';
message BizRequest {} message BizRequest {}

View File

@ -18,7 +18,7 @@ import * as t from '../src/proto';
describe('ferry-parser', () => { describe('ferry-parser', () => {
describe('proto service', () => { describe('proto service', () => {
it('should convert service extenstions', () => { it('should convert service extensions', () => {
const idl = ` const idl = `
syntax = "proto3"; syntax = "proto3";
service Foo { service Foo {
@ -32,7 +32,7 @@ describe('ferry-parser', () => {
return expect(Foo.extensionConfig).to.eql(expected); return expect(Foo.extensionConfig).to.eql(expected);
}); });
it('should convert service extenstions with package', () => { it('should convert service extensions with package', () => {
const idl = ` const idl = `
syntax = "proto3"; syntax = "proto3";
package example; package example;

View File

@ -18,7 +18,7 @@ import * as t from '../src/thrift';
describe('ferry-parser', () => { describe('ferry-parser', () => {
describe('thrift field', () => { describe('thrift field', () => {
it('should convert struct field extenstions', () => { it('should convert struct field extensions', () => {
const idl = ` const idl = `
enum Numbers { enum Numbers {
ONE = 1 ONE = 1
@ -82,7 +82,7 @@ describe('ferry-parser', () => {
return expect(extensionConfigs).to.eql(expected); return expect(extensionConfigs).to.eql(expected);
}); });
it('should convert union field extenstions', () => { it('should convert union field extensions', () => {
const idl = ` const idl = `
union Foo { union Foo {
1: string k1 (api.position = "query") 1: string k1 (api.position = "query")
@ -97,7 +97,7 @@ describe('ferry-parser', () => {
return expect(extensionConfigs).to.eql(expected); 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 = ` const idl = `
struct Foo { struct Foo {
1: string k1 (agw.source = 'query') 1: string k1 (agw.source = 'query')
@ -130,7 +130,7 @@ describe('ferry-parser', () => {
return expect(extensionConfigs).to.eql(expected); 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 = ` const idl = `
struct Foo { struct Foo {
1: string k1 (go.tag = "json:\\"key1\\"") 1: string k1 (go.tag = "json:\\"key1\\"")

View File

@ -18,7 +18,7 @@ import * as t from '../src/thrift';
describe('ferry-parser', () => { describe('ferry-parser', () => {
describe('thrift function', () => { describe('thrift function', () => {
it('should convert function extenstions', () => { it('should convert function extensions', () => {
const idl = ` const idl = `
service Foo { service Foo {
BizResponse Biz1(1: BizRequest req) (api.uri = '/api/biz1') BizResponse Biz1(1: BizRequest req) (api.uri = '/api/biz1')
@ -57,7 +57,7 @@ describe('ferry-parser', () => {
return expect(extensionConfigs).to.eql(expected); return expect(extensionConfigs).to.eql(expected);
}); });
it('should convert function extenstions using agw specification', () => { it('should convert function extensions using agw specification', () => {
const idl = ` const idl = `
service Foo { service Foo {
BizResponse Biz1(1: BizRequest req) (agw.uri = '/api/biz1') BizResponse Biz1(1: BizRequest req) (agw.uri = '/api/biz1')

View File

@ -18,7 +18,7 @@ import * as t from '../src/thrift';
describe('ferry-parser', () => { describe('ferry-parser', () => {
describe('thrift service', () => { describe('thrift service', () => {
it('should convert service extenstions', () => { it('should convert service extensions', () => {
const idl = ` const idl = `
service Foo { service Foo {
} (api.uri_prefix = 'https://example.com') } (api.uri_prefix = 'https://example.com')

View File

@ -19,7 +19,7 @@ import { filterKeys } from './common';
describe('unify-parser', () => { describe('unify-parser', () => {
describe('thrift field', () => { describe('thrift field', () => {
it('should convert struct field extenstions', () => { it('should convert struct field extensions', () => {
const content = ` const content = `
enum Numbers { enum Numbers {
ONE = 1 ONE = 1
@ -90,7 +90,7 @@ describe('unify-parser', () => {
return expect(extensionConfigs).to.eql(expected); return expect(extensionConfigs).to.eql(expected);
}); });
it('should convert union field extenstions', () => { it('should convert union field extensions', () => {
const content = ` const content = `
union Foo { union Foo {
1: string k1 (api.position = "query") 1: string k1 (api.position = "query")
@ -109,7 +109,7 @@ describe('unify-parser', () => {
return expect(extensionConfigs).to.eql(expected); 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 = ` const content = `
struct Foo { struct Foo {
1: string k1 (agw.source = 'query') 1: string k1 (agw.source = 'query')
@ -146,7 +146,7 @@ describe('unify-parser', () => {
return expect(extensionConfigs).to.eql(expected); 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 = ` const content = `
struct Foo { struct Foo {
1: string k1 (go.tag = "json:\\"key1\\"") 1: string k1 (go.tag = "json:\\"key1\\"")
@ -432,7 +432,7 @@ describe('unify-parser', () => {
}); });
describe('proto field', () => { describe('proto field', () => {
it('should convert message field extenstions', () => { it('should convert message field extensions', () => {
const content = ` const content = `
syntax = "proto3"; syntax = "proto3";
enum Numbers { enum Numbers {
@ -499,7 +499,7 @@ describe('unify-parser', () => {
return expect(extensionConfigs).to.eql(expected); 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 = ` const content = `
syntax = "proto3"; syntax = "proto3";
message Foo { message Foo {
@ -535,7 +535,7 @@ describe('unify-parser', () => {
return expect(extensionConfigs).to.eql(expected); return expect(extensionConfigs).to.eql(expected);
}); });
it('should convert message field extenstions with error', () => { it('should convert message field extensions with error', () => {
const content = ` const content = `
syntax = "proto3"; syntax = "proto3";
message Foo { message Foo {

View File

@ -19,7 +19,7 @@ import { filterKeys } from './common';
describe('unify-parser', () => { describe('unify-parser', () => {
describe('thrift function', () => { describe('thrift function', () => {
it('should convert function extenstions', () => { it('should convert function extensions', () => {
const content = ` const content = `
service Foo { service Foo {
BizResponse Biz1(1: BizRequest req) (api.uri = '/api/biz1') BizResponse Biz1(1: BizRequest req) (api.uri = '/api/biz1')
@ -62,7 +62,7 @@ describe('unify-parser', () => {
return expect(extensionConfigs).to.eql(expected); return expect(extensionConfigs).to.eql(expected);
}); });
it('should convert function extenstions using agw specification', () => { it('should convert function extensions using agw specification', () => {
const content = ` const content = `
service Foo { service Foo {
BizResponse Biz1(1: BizRequest req) (agw.uri = '/api/biz1') BizResponse Biz1(1: BizRequest req) (agw.uri = '/api/biz1')
@ -178,7 +178,7 @@ describe('unify-parser', () => {
}); });
describe('proto method', () => { describe('proto method', () => {
it('should convert method extenstions', () => { it('should convert method extensions', () => {
const content = ` const content = `
syntax = 'proto3'; syntax = 'proto3';
message BizRequest {} message BizRequest {}

View File

@ -19,7 +19,7 @@ import { filterKeys } from './common';
describe('unify-parser', () => { describe('unify-parser', () => {
describe('thrift service', () => { describe('thrift service', () => {
it('should convert service extenstions', () => { it('should convert service extensions', () => {
const fileContent = ` const fileContent = `
service Foo { service Foo {
} (api.uri_prefix = 'https://example.com') } (api.uri_prefix = 'https://example.com')
@ -41,7 +41,7 @@ describe('unify-parser', () => {
}); });
describe('proto service', () => { describe('proto service', () => {
it('should convert service extenstions', () => { it('should convert service extensions', () => {
const fileContent = ` const fileContent = `
syntax = "proto3"; syntax = "proto3";
service Foo { service Foo {

View File

@ -130,7 +130,7 @@ export const UseMcpConfigModal = ({
setVisible(false); setVisible(false);
}; };
const handelConfirm = () => { const handleConfirm = () => {
setProjectPublishInfo({ setProjectPublishInfo({
connectorPublishConfig: { connectorPublishConfig: {
...connectorPublishConfig, ...connectorPublishConfig,
@ -178,7 +178,7 @@ export const UseMcpConfigModal = ({
cancelText={I18n.t( cancelText={I18n.t(
'app_publish_connector_space_mcp_config_dialog_cancel', 'app_publish_connector_space_mcp_config_dialog_cancel',
)} )}
onOk={handelConfirm} onOk={handleConfirm}
> >
<div className="text-[12px]"> <div className="text-[12px]">
{I18n.t('app_publish_connector_space_mcp_config_dialog_desc')} {I18n.t('app_publish_connector_space_mcp_config_dialog_desc')}