Skip to content

Commit

Permalink
feat: add support for request and reply pattern (#795)
Browse files Browse the repository at this point in the history
Co-authored-by: asyncapi-bot <[email protected]>%0ACo-authored-by: Samriddhi <[email protected]>%0ACo-authored-by: W0nderMuffin <[email protected]>%0ACo-authored-by: Viacheslav Turovskyi <[email protected]>%0ACo-authored-by: Andrea Falzetti <[email protected]>%0ACo-authored-by: asyncapi-bot <[email protected]>%0ACo-authored-by: Dale Lane <[email protected]>%0ACo-authored-by: Dominik Schwank <[email protected]>%0ACo-authored-by: Kai Szybiak <[email protected]>%0ACo-authored-by: Lukasz Gornicki <[email protected]>%0ACo-authored-by: Ludovic Dussart <[email protected]>%0ACo-authored-by: Marcelo Avancini <[email protected]>%0ACo-authored-by: thim81 <[email protected]>%0ACo-authored-by: Maciej Urbańczyk <[email protected]>
  • Loading branch information
AceTheCreator and magicmatatjahu authored Nov 16, 2023
1 parent b779aaf commit 12c339b
Show file tree
Hide file tree
Showing 10 changed files with 1,038 additions and 2,566 deletions.
411 changes: 390 additions & 21 deletions library/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
"dependencies": {
"@asyncapi/avro-schema-parser": "3.0.3",
"@asyncapi/openapi-schema-parser": "3.0.4",
"@asyncapi/parser": "^2.1.1",
"@asyncapi/protobuf-schema-parser": "3.0.0",
"@asyncapi/parser": "^3.0.0-next-major-spec.10",
"highlight.js": "^10.7.2",
"isomorphic-dompurify": "^0.13.0",
"marked": "^4.0.14",
Expand Down
4 changes: 4 additions & 0 deletions library/src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ export interface ConfigInterface {
sidebar?: SideBarConfig;
parserOptions?: any;
publishLabel?: string;
sendLabel?: string;
subscribeLabel?: string;
receiveLabel?: string;
requestLabel?: string;
replyLabel?: string;
}

export interface ShowConfig {
Expand Down
8 changes: 8 additions & 0 deletions library/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,16 @@ export const SPECIFICATION_TEXT = 'Specification';
export const DEPRECATED_TEXT = 'Deprecated';
export const PUBLISH_TEXT = 'Publish';
export const PUBLISH_LABEL_DEFAULT_TEXT = 'PUB';
export const SEND_TEXT = 'Send';
export const SEND_LABEL_DEFAULT_TEXT = 'SEND';
export const SUBSCRIBE_TEXT = 'Subscribe';
export const SUBSCRIBE_LABEL_DEFAULT_TEXT = 'SUB';
export const RECEIVE_TEXT = 'Receive';
export const RECEIVE_TEXT_LABEL_DEFAULT_TEXT = 'RECEIVE';
export const REQUEST_TEXT = 'Request';
export const REQUEST_LABEL_DEFAULT_TEXT = 'REQUEST';
export const REPLIER_TEXT = 'Reply';
export const REPLIER_LABEL_DEFAULT_TEXT = 'REPLY';
export const REQUIRED_TEXT = 'Required';
export const GENERATED_TEXT = 'Generated';

Expand Down
2 changes: 1 addition & 1 deletion library/src/containers/Messages/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const Message: React.FunctionComponent<Props> = ({
)}
{title && <span className="text-gray-700 mr-2">{title}</span>}
<span className="border text-orange-600 rounded text-xs py-0 px-2">
{message.id()}
{messageId}
</span>
</div>

Expand Down
Loading

0 comments on commit 12c339b

Please sign in to comment.