Skip to content

Commit

Permalink
Merge pull request #361 from open-rpc/fix/add-inspector-split
Browse files Browse the repository at this point in the history
fix: add inspector split view and updated inspector
  • Loading branch information
shanejonas authored Mar 13, 2020
2 parents 11544fe + 2248fb5 commit 265dbe0
Show file tree
Hide file tree
Showing 11 changed files with 265 additions and 105 deletions.
122 changes: 80 additions & 42 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"license": "Apache-2.0",
"dependencies": {
"@etclabscore/monaco-add-json-schema-diagnostics": "^1.0.3",
"@etclabscore/react-monaco-editor": "^1.0.3",
"@etclabscore/react-monaco-editor": "^1.0.4",
"@material-ui/core": "^4.7.2",
"@material-ui/icons": "^3.0.2",
"@open-rpc/docs-react": "^1.1.5",
"@open-rpc/examples": "^1.3.3",
"@open-rpc/inspector": "^1.2.10",
"@open-rpc/inspector": "^1.3.5",
"@open-rpc/meta-schema": "^1.7.0",
"@open-rpc/schema-utils-js": "^1.11.1",
"@use-it/interval": "^0.1.3",
Expand Down
18 changes: 6 additions & 12 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
.docs {
height: calc(100% - 84px);
padding: 10px;
overflow-y: scroll;
width: 100%;
}
.Resizer {
background: #000;
opacity: .2;
Expand Down Expand Up @@ -44,15 +38,19 @@
height: 100%;
}

.playground-splitview > .Resizer.vertical {
margin-top: 58px;
}

.Resizer.vertical:hover {
border-left: 5px solid rgba(0, 0, 0, 0.5);
border-right: 5px solid rgba(0, 0, 0, 0.5);
}
.Resizer.disabled {
cursor: not-allowed;
cursor: not-allowed;
}
.Resizer.disabled:hover {
border-color: transparent;
border-color: transparent;
}

.react-json-view, .object-key-val, .object-container, .object-content {
Expand All @@ -73,7 +71,3 @@ border-color: transparent;
background: #ddd;
border-radius: 5px;
}

.SplitPane {
position: relative !important;
}
Loading

0 comments on commit 265dbe0

Please sign in to comment.