Manually scaffolded Tauri 2 + React + TypeScript + Vite project structure since the CLI requires an interactive terminal. Preserves existing docs/ and .git history. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
31 lines
702 B
TypeScript
31 lines
702 B
TypeScript
import { useState } from "react";
|
|
import { invoke } from "@tauri-apps/api/core";
|
|
|
|
function App() {
|
|
const [greetMsg, setGreetMsg] = useState("");
|
|
const [name, setName] = useState("");
|
|
|
|
async function greet() {
|
|
setGreetMsg(await invoke("greet", { name }));
|
|
}
|
|
|
|
return (
|
|
<main>
|
|
<h1>Orchai</h1>
|
|
<p>Tuleap tracker monitor & AI agent dispatcher</p>
|
|
<div>
|
|
<input
|
|
id="greet-input"
|
|
onChange={(e) => setName(e.currentTarget.value)}
|
|
placeholder="Enter a name..."
|
|
/>
|
|
<button type="button" onClick={() => greet()}>
|
|
Greet
|
|
</button>
|
|
</div>
|
|
<p>{greetMsg}</p>
|
|
</main>
|
|
);
|
|
}
|
|
|
|
export default App;
|