Files
Ely-GPUI-Components/examples/gallery/pages/devtools/mod.rs
T
ZacharyZhang-NYandClaude Opus 5.5 1c01adc4d6 DB & Dev Tools · Data formats: JSON, YAML and XML as trees, a JSON editor
A document reads into one value, Datum: JSON through serde_json, its
keys now kept in their written order, and YAML's block style through a
small reader that says which line it could not read. JsonViewer and
YamlViewer draw it as one tree: each key with its value, maps and lists
with their counts; a search keeps what holds its words and opens the
way; Enter on a value copies its JSONPath. XmlViewer reads elements,
attributes and text and says where tags cross. JsonEditor writes JSON
in the code editor with Format and Minify and says whether it reads.
DocumentViewer is JsonViewer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 09:22:30 -04:00

31 lines
762 B
Rust

use gpui::{AnyElement, App, Window, div, prelude::*};
mod data;
mod db;
mod formats;
use super::Page;
use crate::script::Step;
pub const PAGE: Page = Page {
number: 33,
slug: "devtools",
title: "DB & Dev Tools",
summary: "Connections, schemas and queries, data to read, requests to send, and the machines that run them.",
render,
script: SCRIPT,
};
const SCRIPT: &[Step] = &[];
fn render(window: &mut Window, cx: &mut App) -> AnyElement {
div()
.child(db::connections(window, cx))
.child(db::schema(window, cx))
.child(data::queries(window, cx))
.child(db::structure(window, cx))
.child(data::redis(window, cx))
.child(formats::documents(window, cx))
.into_any_element()
}