Skip to content

Commit

Permalink
Improve embed playground
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed Jan 4, 2024
1 parent 10c9fe3 commit 8e51c11
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

| Version | Supported | |
| ------- | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------- |
| 2.0-dev | :warning: | [Docs](https://docs.butterfly.linwood.dev/docs/2.0/intro) [Release](https://github.com/LinwoodDev/butterfly/releases/tag/v2.0.0-rc.3) |
| 2.0.1-dev | :warning: | [Docs](https://docs.butterfly.linwood.dev/docs/2.0/intro) [Release](https://github.com/LinwoodDev/butterfly/releases/tag/v2.0.1-rc.0) |
| 2.0.0 | :white_check_mark: | [Docs](https://docs.butterfly.linwood.dev/docs/1.6/intro) [Release](https://github.com/LinwoodDev/butterfly/releases/tag/v2.0.0) |
| 1.6.1 | :x: | [Docs](https://docs.butterfly.linwood.dev/docs/1.6/intro) [Release](https://github.com/LinwoodDev/butterfly/releases/tag/v1.6.1) |
| 1.5.1 | :x: | [Docs](https://docs.butterfly.linwood.dev/docs/1.5/intro) [Release](https://github.com/LinwoodDev/butterfly/releases/tag/v1.5.1) |
Expand Down
8 changes: 7 additions & 1 deletion docs/src/components/EmbedPlayground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ export default function EmbedPlayground() {
<div>
<div className="input-group">
<label htmlFor="language">Host</label>
<input className="input" type="text" value={host} id="language" onChange={(e) => setHost(e.target.value)} />
<input className="input" type="text" value={host} id="host" readOnly />
<div className="grid">
<button className="button button--outline button--secondary" onClick={() => setHost("https://butterfly.linwood.dev")}>Main</button>
<button className="button button--outline button--secondary" onClick={() => setHost("https://preview.butterfly.linwood.dev")}>Preview</button>
<button className="button button--outline button--secondary" onClick={() => setHost("https://v1.butterfly.linwood.dev")}>V1</button>
<button className="button button--outline button--secondary" onClick={() => setHost("https://v2.butterfly.linwood.dev")}>V2</button>
</div>
</div>
<label className="checkbox">Save
<input type="checkbox" checked={save} id="save" onChange={() => setSave(!save)} />
Expand Down

0 comments on commit 8e51c11

Please sign in to comment.