Skip to content

spotter-agent-embed:react-example with styling #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
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
6 changes: 6 additions & 0 deletions visual-embed/spotter/spotter-agent-embed-react/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
VITE_THOUGHTSPOT_HOST=https://embed-1-do-not-delete.thoughtspotstaging.cloud
VITE_TS_DATASOURCE_ID=cd252e5c-b552-49a8-821d-3eadaa049cca
VITE_USERNAME=demo-user
VITE_TOKEN_SERVER=https://node-token-auth-server-example-two.vercel.app
VITE_WORKSHEET_ID=cd252e5c-b552-49a8-821d-3eadaa049cca
VITE_LIVEBOARD_ID=795de2ca-c7b6-44bd-afea-7112550ccda6
24 changes: 24 additions & 0 deletions visual-embed/spotter/spotter-agent-embed-react/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
36 changes: 36 additions & 0 deletions visual-embed/spotter/spotter-agent-embed-react/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# spotter-agent-embed-react

Write something about the example here.

Include, but not limited to:

- How the code is structured
- How to navigate when the demo is opened.

## Demo

Open in [Codesandbox](https://githubbox.com/thoughtspot/developer-examples/tree/main/visual-embed/spotter-agent-embed-react)

## Documentation

- Links to the Thoughtspot developer docs for the features used in this example.
- ...

## Run locally

```
$ git clone https://github.com/thoughtspot/developer-examples
$ cd visual-embed/spotter-agent-embed-react
```
```
$ npm i
```
```
$ npm run dev
```

### Technology labels

- React
- Typescript
- Web
13 changes: 13 additions & 0 deletions visual-embed/spotter/spotter-agent-embed-react/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/ts-logo.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ThoughtSpot React + TS Example</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading