Skip to content
Merged
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
1 change: 1 addition & 0 deletions visual-embed/add-filter-from-liveboard/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
dist
.env
.env.local
6 changes: 5 additions & 1 deletion visual-embed/add-filter-from-liveboard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@ Two equivalent implementations of the same flow live side by side:
## Run it

```bash
cp sample.env .env # shared by both vanilla/ and react/

cd vanilla # or: cd react
npm install
npm run dev
```

Open http://localhost:8642 for `vanilla/`, or http://localhost:8643 for `react/`.

Set your cluster host, credentials, and Liveboard ID in `vanilla/.env` or `react/.env`:
Set your cluster host, credentials, and Liveboard ID in the shared `.env` at the example root:

```
VITE_THOUGHTSPOT_HOST=https://training.thoughtspot.cloud
Expand Down Expand Up @@ -52,6 +54,8 @@ Instead: fire the trigger without awaiting it, and rely on the SDK's own signals

## Files

- `sample.env` — copy to `.env` at this same root; both `vanilla/` and `react/` read it via Vite's `envDir`.

### `vanilla/`

- `index.html` — layout: embed container + button + loader overlay.
Expand Down
1 change: 1 addition & 0 deletions visual-embed/add-filter-from-liveboard/react/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
registry=https://registry.npmjs.org/
446 changes: 223 additions & 223 deletions visual-embed/add-filter-from-liveboard/react/package-lock.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions visual-embed/add-filter-from-liveboard/react/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ import react from "@vitejs/plugin-react";

export default defineConfig({
plugins: [react()],
// Reads the .env shared with vanilla/ from the example root.
envDir: "..",
});
4 changes: 0 additions & 4 deletions visual-embed/add-filter-from-liveboard/vanilla/.env

This file was deleted.

1 change: 1 addition & 0 deletions visual-embed/add-filter-from-liveboard/vanilla/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
registry=https://registry.npmjs.org/
310 changes: 155 additions & 155 deletions visual-embed/add-filter-from-liveboard/vanilla/package-lock.json

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions visual-embed/add-filter-from-liveboard/vanilla/vite.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { defineConfig } from "vite";

export default defineConfig({
// Reads the .env shared with react/ from the example root.
envDir: "..",
});
Loading