Showing the changes to packages/plugins/example/src (2 of 265 files). Show all
Unified · Split
| @@ -11,11 +11,7 @@ · 10 unmodified lines | |||
| 11 | // --------------------------------------------------------------------------- | 11 | // --------------------------------------------------------------------------- |
| 12 | 12 | ||
| 13 | import { useState } from "react"; | 13 | import { useState } from "react"; |
| 14 | import { | 14 | import { defineClientPlugin, createPluginAtomClient, useAtomSet } from "@executor-js/sdk/client"; |
| 15 | defineClientPlugin, | ||
| 16 | createPluginAtomClient, | ||
| 17 | useAtomSet, | ||
| 18 | } from "@executor-js/sdk/client"; | ||
| 19 | 15 | ||
| 20 | import { ExampleApi } from "./shared"; | 16 | import { ExampleApi } from "./shared"; |
| 21 | 17 | ||
| @@ -68,9 +64,7 @@ function ExamplePage() { · 46 unmodified lines | |||
| 68 | </button> | 64 | </button> |
| 69 | </div> | 65 | </div> |
| 70 | {result && ( | 66 | {result && ( |
| 71 | <pre style={{ marginTop: "1rem", padding: "0.5rem", background: "#f5f5f5" }}> | 67 | <pre style={{ marginTop: "1rem", padding: "0.5rem", background: "#f5f5f5" }}>{result}</pre> |
| 72 | {result} | ||
| 73 | </pre> | ||
| 74 | )} | 68 | )} |
| 75 | </div> | 69 | </div> |
| 76 | ); | 70 | ); |
| @@ -11,13 +11,7 @@ · 10 unmodified lines | |||
| 11 | // React and other browser-only deps live in `./client` — never here. | 11 | // React and other browser-only deps live in `./client` — never here. |
| 12 | // --------------------------------------------------------------------------- | 12 | // --------------------------------------------------------------------------- |
| 13 | 13 | ||
| 14 | import { | 14 | import { Context, definePlugin, Effect, HttpApi, HttpApiBuilder } from "@executor-js/sdk"; |
| 15 | Context, | ||
| 16 | definePlugin, | ||
| 17 | Effect, | ||
| 18 | HttpApi, | ||
| 19 | HttpApiBuilder, | ||
| 20 | } from "@executor-js/sdk"; | ||
| 21 | 15 | ||
| 22 | import { ExampleApi } from "./shared"; | 16 | import { ExampleApi } from "./shared"; |
| 23 | 17 | ||