Skip to content

Commit

Permalink
add screenshots of every part of the playground
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanThatOneKid committed Apr 25, 2024
1 parent 5441f3a commit 164f002
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions docs/02_playgrounds/02_manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,41 +12,52 @@ learning jsonx.

## Use

A playground is a programming environment where you can edit, transpile, and
execute jsonx code.

To use a playground, let's take a look at the parts that make up one playground:
code editor, version dropdown, play button, console, and share button.
code editor, version dropdown, play button, share button, and console.

> [!NOTE]
>
> Screenshots of playground parts are coming soon!
![Playground](/playground.png)

### Code editor

The code editor is where you edit code. It is a TypeScript environment that
comes with batteries-included for editing jsonx code.

![Code editor](/code-editor.png)

### Version dropdown

The version dropdown allows you to select the version of jsonx you want to use.
The default version is the latest stable version found on
[jsr.io](https://jsr.io).

![Version dropdown](/version-dropdown.png)

### Play button

The play button transpiles and executes the code in the code editor. Output is
displayed in the provided console.

### Console

The console displays the output of the code executed in the code editor.

The clear button clears the console.
![Play button](/play-button.png)

### Share button

The share button generates a link to the playground and navigates the user to
the new link. The link is unlisted (not indexed by search engines) and can be
shared with others.

![Share button](/share-button.png)

### Console

The console displays the output of the code executed in the code editor.

The clear button clears the console.

![Console](/console.png)

## Recovery and disposal

> [!NOTE]
Expand Down
Binary file added static/code-editor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/console.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/play-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/playground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/share-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/version-dropdown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 164f002

Please sign in to comment.