Skip to content

Commit

Permalink
Merge pull request #3 from atomic77/ui_pretty_printing
Browse files Browse the repository at this point in the history
Add highlight.js and pretty-printing in ui
  • Loading branch information
atomic77 authored Dec 28, 2021
2 parents 250f317 + 7c752d6 commit c96fc54
Show file tree
Hide file tree
Showing 9 changed files with 1,338 additions and 79 deletions.
167 changes: 121 additions & 46 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 15 additions & 13 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
[package]
name = "reqsink"
version = "0.1.0"
version = "0.2.1"
authors = ["Alex Tomic <[email protected]>"]
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
tiny_http = "0.7"
tera = "1"
serde = "1.0.118"
serde_derive = "1.0.118"
serde_json = "1.0.61"
chrono = "0.4.19"
url = "2.2.0"
clap = "3.0.0-beta.2"
bincode = "1.3"
snap = "1"
rusqlite = {version = "0.24.2", features = ["bundled"]}
rust-embed = "5.8.0"
tiny_http = "^0.9"
tera = "^1.15"
serde = "^1"
serde_derive = "^1"
serde_json = "^1"
chrono = "^0.4"
url = "^2.2"
clap = {version = "^3.0.0-rc.9", features = ["derive"]}
bincode = "^1.3"
snap = "^1"
rusqlite = {version = "0.24", features = ["bundled"]}
rust-embed = "5"
log = "^0.4"
env_logger = "^0.9"
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ curl -X POST -H "Content-Type: application/json" \
localhost:8000/post/some/json
```

The `/admin` route provides a simple GUI showing the current tracked requests:
The `/admin` route provides a simple GUI showing the current tracked requests.
Syntax highlighting and pretty-printing is available for formats such as JSON, using the embedded
highlight.js:

![Admin page](static/admin.png)

Expand Down
Loading

0 comments on commit c96fc54

Please sign in to comment.