From 199fdb058ee565855c2aebdea659b4891316e415 Mon Sep 17 00:00:00 2001 From: Giselle van Dongen Date: Fri, 21 Jun 2024 13:08:22 +0200 Subject: [PATCH] Fix logos in animations (#426) --- src/components/DurableExecutionAnimation/index.js | 2 +- src/components/TourAnimation/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/DurableExecutionAnimation/index.js b/src/components/DurableExecutionAnimation/index.js index f5485302..8f9b7f9b 100644 --- a/src/components/DurableExecutionAnimation/index.js +++ b/src/components/DurableExecutionAnimation/index.js @@ -374,7 +374,7 @@ class Services extends React.Component { } } -const defaultAnimation = "
HTTP request
addTicket
(Joe, seat2B)
HTTP response
addTicket
{ success }
State

cartService: Joe - cart=[]

Journals

addTicket ( Joe, seat2B )

|||||
|||||
|||||
|||||
|||||
|||||
RPC: reserve { seat2B }
RPC: response { success }

reserve ( seat2B )

|||||
|||||

This animation shows you how durable execution takes place in Restate. The animation shows a ticket reservation platform for a theatre, where users can add tickets to their cart. Tickets can only be reserved by a single user. The application consists of two components: the CartObject and the TicketObject.

CartObject
suspended...
invoked...
async function addTicket(ctx, order){\n" +
+const defaultAnimation = "
HTTP request
addTicket
(Joe, seat2B)
HTTP response
addTicket
{ success }
State

cartService: Joe - cart=[]

Journals

addTicket ( Joe, seat2B )

|||||
|||||
|||||
|||||
|||||
|||||
RPC: reserve { seat2B }
RPC: response { success }

reserve ( seat2B )

|||||
|||||

This animation shows you how durable execution takes place in Restate. The animation shows a ticket reservation platform for a theatre, where users can add tickets to their cart. Tickets can only be reserved by a single user. The application consists of two components: the CartObject and the TicketObject.

CartObject
suspended...
invoked...
async function addTicket(ctx, order){\n" +
     "  const success = await ctx\n" +
     "    .objectClient(ticketManager, ticketId)\n" +
     "    .reserve();\n" +
diff --git a/src/components/TourAnimation/index.js b/src/components/TourAnimation/index.js
index dd03f86e..a70f5a53 100644
--- a/src/components/TourAnimation/index.js
+++ b/src/components/TourAnimation/index.js
@@ -323,7 +323,7 @@ class Services extends React.Component {
     }
 }
 
-const defaultAnimation = "
HTTP request
addTicket
(Mary, seat2B)
HTTP response
addTicket
{ success }
Journals

addTicket ( Mary, seat2B )

|||||
|||||
|||||
|||||
RPC: reserve { seat2B }
RPC: response { success }

reserve ( seat2B )

|||||
|||||

This animation shows you what happened under the hood when we did the reserve call from the `CartObject` to the `TicketObject`. The animation uses the TypeScript SDK.

CartObject[Mary]
suspended...
invoked...
async function addTicket(ctx, ticketId){\n" +
+const defaultAnimation = "
HTTP request
addTicket
(Mary, seat2B)
HTTP response
addTicket
{ success }
Journals

addTicket ( Mary, seat2B )

|||||
|||||
|||||
|||||
RPC: reserve { seat2B }
RPC: response { success }

reserve ( seat2B )

|||||
|||||

This animation shows you what happened under the hood when we did the reserve call from the `CartObject` to the `TicketObject`. The animation uses the TypeScript SDK.

CartObject[Mary]
suspended...
invoked...
async function addTicket(ctx, ticketId){\n" +
     "  const success = await ctx\n" +
     "    .objectClient(ticketObject)\n" +
     "    .reserve(ticketId);\n" +