You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>This will generate a sample folder with <code>docs</code> and <code>src</code> folders. For a sanity check, let’s go ahead and build the frontend created by the template. This will also help ensure you have the necessary tools installed.</p>
166
166
<h3><ahref="#compile-the-frontend" name="compile-the-frontend" class="anchor"><spanclass="anchor-link"></span></a>Compile the Frontend</h3>
167
-
<p>The <code>sample/src</code> sub-folder is where your frontend application is located. It uses Typescript, React and node. Make sure node version <code>v16.0.0</code> or higher is installed in your machine. Let’s compile our generated application.</p>
167
+
<p>The <code>sample/src</code> sub-folder is where your frontend application is located. It uses Typescript, React and node. Make sure node version <code>v22.15.1</code>and npm 10.9.2 or higher are installed on your machine. Let’s compile our generated application.</p>
<preclass="prettyprint"><buttonclass="snippet-button copy-snippet" title="Copy snippet to clipboard">copy</button><aclass="snippet-button go-to-source" href="https://github.com/tmtsoftware/esw-gateway-ui-example/tree/master/src/components/Main.tsx#L2-L55" target="_blank" title="Go to snippet source">source</a><codeclass="language-tsx">import * as React from 'react'
206
206
import { useAuth } from '../hooks/useAuth'
<p>This is because the UI is now trying to find the AAS authorization server, but we have not yet started CSW services. We will start them now, as well as the UI Gateway which will be needed for our subsequent flows.</p>
Copy file name to clipboardExpand all lines: esw-gateway-ui-example/flows/submit-commands.html
+11-13Lines changed: 11 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -156,15 +156,15 @@
156
156
<divclass="md-content__searchable">
157
157
<h1><ahref="#adding-a-submit-command" name="adding-a-submit-command" class="anchor"><spanclass="anchor-link"></span></a>Adding a Submit Command</h1>
158
158
<p>In this part of the tutorial, we want to send a Setup Command to an Assembly from the UI application via Gateway server.</p>
159
-
<p>Visit <ahref="https://tmtsoftware.github.io/csw/0.1.0-SNAPSHOT/params/commands.html">here</a> to learn more about commands.</p>
160
-
<p>Visit <ahref="https://tmtsoftware.github.io/csw/0.1.0-SNAPSHOT/commons/create-component.html">here</a> to learn more about components.</p>
159
+
<p>Visit <ahref="https://tmtsoftware.github.io/csw/6.0.0/params/commands.html">here</a> to learn more about commands.</p>
160
+
<p>Visit <ahref="https://tmtsoftware.github.io/csw/6.0.0/commons/create-component.html">here</a> to learn more about components.</p>
161
161
<h2><ahref="#start-an-assembly-using-esw-shell" name="start-an-assembly-using-esw-shell" class="anchor"><spanclass="anchor-link"></span></a>Start an Assembly using esw-shell</h2>
162
-
<p>We will use the esw-shell utility to create and start a simple Assembly. The esw-shell is a REPL application that provides numerous tools for TMT programming. Visit <ahref="https://tmtsoftware.github.io/esw/0.1.0-SNAPSHOT/eswshell/esw-shell.html">here</a> to learn more about the esw-shell utility.</p>
162
+
<p>We will use the esw-shell utility to create and start a simple Assembly. The esw-shell is a REPL application that provides numerous tools for TMT programming. Visit <ahref="https://tmtsoftware.github.io/esw/1.0.2/eswshell/esw-shell.html">here</a> to learn more about the esw-shell utility.</p>
<p>We will use an esw-shell <ahref="https://tmtsoftware.github.io/esw/0.1.0-SNAPSHOT/technical/apps/esw-shell.html#using-custom-component-handlers">feature</a> that allows the dynamic creation of component by specifying command handler functionality when spawning the component.</p>
167
+
<p>We will use an esw-shell <ahref="https://tmtsoftware.github.io/esw/1.0.2/technical/apps/esw-shell.html#using-custom-component-handlers">feature</a> that allows the dynamic creation of component by specifying command handler functionality when spawning the component.</p>
168
168
<p>Our assembly will take a <code>sleep</code> command with <code>sleepInSeconds</code> (LongKey) parameter. This is a long-running command which will return a <code>Started</code> response immediately and then a <code>Completed</code> response after sleeping the time provided in the parameter. Any other command other than <code>sleep</code> immediately returns a <code>Completed</code> response.</p>
169
169
<p>Run this command inside esw-shell’s ammonite shell:</p>
0 commit comments