From 1879eb8aef39fd7b8328fcd956fa5e8618ceba5f Mon Sep 17 00:00:00 2001 From: Afzal Ansari Date: Thu, 20 Jul 2023 13:00:10 +0000 Subject: [PATCH 1/2] refactors frontpage animation for v3 Signed-off-by: Afzal Ansari --- components/DemoAnimation.js | 36 +++++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/components/DemoAnimation.js b/components/DemoAnimation.js index 107e483c6b56..372bae8f9687 100644 --- a/components/DemoAnimation.js +++ b/components/DemoAnimation.js @@ -44,7 +44,7 @@ export default function DemoAnimation({ className = '' }) { const common = ( <>
- asyncapi: 2.6.0 + asyncapi: 3.0.0
info: @@ -85,10 +85,34 @@ export default function DemoAnimation({ className = '' }) { channels:
-   user/signedup: +   userSignedup:
-     subscribe: +     address:'user/signedup' +
+
+     messages: +
+
+       userSignedupMessage: +
+
+         $ref:'#/components/messages/UserSignedUp' +
+
+ operations: +
+
+   processUserSignups: +
+
+     action:'receive' +
+
+     channel: +
+
+         $ref: '#/channels/userSignedup'
, @@ -99,12 +123,6 @@ export default function DemoAnimation({ className = '' }) { function renderUntilMessagePayload(callback) { return renderTyping( <> -
-       message: -
-
-         $ref: '#/components/messages/UserSignedUp' -
components:
From 9f57a5046d50c3619b45932932baf636d41cc8d9 Mon Sep 17 00:00:00 2001 From: Afzal Ansari Date: Thu, 27 Jul 2023 16:08:35 +0000 Subject: [PATCH 2/2] rmvs extra spaces and replace SUB with RECEIVE Signed-off-by: Afzal Ansari --- components/DemoAnimation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/DemoAnimation.js b/components/DemoAnimation.js index 372bae8f9687..6e302c74d358 100644 --- a/components/DemoAnimation.js +++ b/components/DemoAnimation.js @@ -112,7 +112,7 @@ export default function DemoAnimation({ className = '' }) {     channel:
-         $ref: '#/channels/userSignedup' +       $ref: '#/channels/userSignedup'
, @@ -260,7 +260,7 @@ export default function DemoAnimation({ className = '' }) {
- SUB user/signedup + RECEIVES user/signedup