Эх сурвалжийг харах

[frontend] Fix missing executor constructor in the SQL Scratchpad example project

Johan Ahlen 4 жил өмнө
parent
commit
df69acc2e0

+ 1 - 1
desktop/core/src/desktop/js/apps/editor/execution/executor.d.ts

@@ -24,7 +24,7 @@ export interface ExecutorRaw {
   executables: ExecutableRaw[];
 }
 
-declare class Executor {
+export default class Executor {
   connector: KnockoutObservable<Connector>;
   compute: KnockoutObservable<Compute>;
   namespace: KnockoutObservable<Namespace>;

+ 7 - 8
tools/examples/components/sql-scratchpad/README.md

@@ -13,14 +13,13 @@ We wrap the web components to be able to set certain attributes/properties on th
 
 ## To run this project
 
-### In the Hue root folder:
-1. `npm install`
-2. `npm run webpack-npm`
-   
-### In this project folder:
-3. `npm install`
-4. `npm start`
-5. Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
+1. Go to the Hue root folder `cd ../../../../`
+2. `npm install`
+3. `npm run webpack-npm`
+4. Go to the example project `cd tools/examples/components/sql-scratchpad`
+5. `npm install`
+6. `npm start`
+7. Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
 
 ## Base project creation steps (for reference)