Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions demos/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
dist/
20 changes: 20 additions & 0 deletions demos/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# IPC JSX Demos (Local)

This folder now has a tiny Vite + React host so both JSX demos can run locally.

## Run

```bash
cd demos
pnpm install --ignore-workspace
pnpm --ignore-workspace dev
```

Open [http://127.0.0.1:5173](http://127.0.0.1:5173).

## Demo URLs

- `/?demo=reputation` for `dev-reputation-mock`
- `/?demo=sp` for `sp-analysis`

You can also switch between both demos using the top-right toggle in the UI.
594 changes: 594 additions & 0 deletions demos/dev-reputation-mock/ipc_reputation_demo.jsx

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions demos/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>IPC Demos</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
19 changes: 19 additions & 0 deletions demos/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "ipc-demos",
"private": true,
"version": "0.1.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@vitejs/plugin-react": "^4.3.1",
"vite": "^5.4.10"
}
}
Loading
Loading