History

fmt

Rhys Sullivan committed 6 months ago

Commit c92c57d1 parent 87ab5c7265 files · +5705 −8140Browse files

Showing the changes to packages/plugins/example/src (2 of 265 files). Show all

Unified · Split

2 files
  1. packages/plugins/example/src/client.tsx +2 −8
  2. packages/plugins/example/src/server.ts +1 −7
packages/plugins/example/src/client.tsx+2−8
@@ -11,11 +11,7 @@ · 10 unmodified lines
11// ---------------------------------------------------------------------------11// ---------------------------------------------------------------------------
12 12
13import { useState } from "react";13import { useState } from "react";
14import {14import { defineClientPlugin, createPluginAtomClient, useAtomSet } from "@executor-js/sdk/client";
15 defineClientPlugin,
16 createPluginAtomClient,
17 useAtomSet,
18} from "@executor-js/sdk/client";
19 15
20import { ExampleApi } from "./shared";16import { 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 );
packages/plugins/example/src/server.ts+1−7
@@ -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
14import {14import { 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
22import { ExampleApi } from "./shared";16import { ExampleApi } from "./shared";
23 17