Skip to content

Commit

Permalink
generated build, updated packages and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mrin9 committed Nov 25, 2020
1 parent ee64477 commit 332fccd
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 35 deletions.
4 changes: 2 additions & 2 deletions dist/rapidoc-min.js

Large diffs are not rendered by default.

Binary file modified dist/rapidoc-min.js.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions dist/report.html

Large diffs are not rendered by default.

27 changes: 25 additions & 2 deletions docs/examples/oneof.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,39 @@
<meta name='viewport' content='width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes'>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;600&family=Roboto+Mono&display=swap" rel="stylesheet">
<script type='text/javascript' src='../rapidoc-min.js'></script>
<link href='../index.css' rel='stylesheet'>
<script>
function getRapiDoc(){
return document.getElementById("thedoc");
}

function toggleSchemaStyle () {
if (getRapiDoc().getAttribute('schema-style') === 'table') {
getRapiDoc().setAttribute('schema-style', 'tree');
} else {
getRapiDoc().setAttribute('schema-style', 'table');
}
}
</script>

</head>
<body>
<rapi-doc spec-url="../specs/oneof.yaml"
<rapi-doc id="thedoc"
spec-url="../specs/oneof.yaml"
show-info = "false"
show-header = "false"
render-style = "read"
schema-style = "tree"
allow-try = "false"
regular-font = 'Open Sans'
mono-font = "Roboto Mono"
allow-authentication = "false"
> </rapi-doc>
>
<div slot="nav-logo" style="width:100%; display: flex; flex-direction:column;">
<div style="display: flex;justify-content: center; margin: 2px 0">
<button class='btn large' style="width:150px" onclick="toggleSchemaStyle()">Toggle Schema Style</button>
</div>
</div>
</rapi-doc>
</body>
</html>
28 changes: 11 additions & 17 deletions docs/examples/schema-table.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,18 @@
theme = "dark"
schema-style='table'
>
<div slot="nav-logo">

<div slot="nav-logo" style="width:100%; display: flex; flex-direction:column;">

<div style="text-align: center; padding: 0 0 12px 0; color:#47AFE8"> Schema Display Style </div>
<div style="display: flex;justify-content: center; margin: 2px 0">
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('schema-style', 'tree')" >Tree</button>
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('schema-style', 'table')" >Table</button>
</div>

<div style="text-align: center; padding: 20px 0 12px 0; color:#47AFE8"> Font Size </div>
<div style="display: flex;justify-content: center; margin: 2px 0"">
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('font-size', 'default')" >Default</button>
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('font-size', 'large')" >Large</button>
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('font-size', 'largest')" >Largest</button>
</div>
<div slot="nav-logo" style="width:100%; display: flex; flex-direction:column;">
<div style="text-align: center; padding: 0 0 12px 0; color:#47AFE8"> Schema Display Style </div>
<div style="display: flex;justify-content: center; margin: 2px 0">
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('schema-style', 'tree')" >Tree</button>
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('schema-style', 'table')" >Table</button>
</div>


<div style="text-align: center; padding: 20px 0 12px 0; color:#47AFE8"> Font Size </div>
<div style="display: flex;justify-content: center; margin: 2px 0"">
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('font-size', 'default')" >Default</button>
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('font-size', 'large')" >Large</button>
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('font-size', 'largest')" >Largest</button>
</div>
</div>
</rapi-doc>
Expand Down
4 changes: 2 additions & 2 deletions docs/rapidoc-min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"lint-fix": "./node_modules/eslint/bin/eslint.js --fix ./src/**"
},
"devDependencies": {
"@babel/core": "^7.12.8",
"@babel/core": "^7.12.9",
"@babel/preset-env": "^7.12.7",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.2.1",
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.12.7.tgz#9329b4782a7d6bbd7eef57e11addf91ee3ef1e41"
integrity sha512-YaxPMGs/XIWtYqrdEOZOCPsVWfEoriXopnsz3/i7apYPXQ3698UFhS6dVT1KN5qOsWmVgw/FOrmQgpRaZayGsw==

"@babel/core@^7.12.8":
version "7.12.8"
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.12.8.tgz#8ad76c1a7d2a6a3beecc4395fa4f7b4cb88390e6"
integrity sha512-ra28JXL+5z73r1IC/t+FT1ApXU5LsulFDnTDntNfLQaScJUJmcHL5Qxm/IWanCToQk3bPWQo5bflbplU5r15pg==
"@babel/core@^7.12.9":
version "7.12.9"
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.12.9.tgz#fd450c4ec10cdbb980e2928b7aa7a28484593fc8"
integrity sha512-gTXYh3M5wb7FRXQy+FErKFAv90BnlOuNn1QkCK2lREoPAjrQCO49+HVSrFoe5uakFAF5eenS75KbO2vQiLrTMQ==
dependencies:
"@babel/code-frame" "^7.10.4"
"@babel/generator" "^7.12.5"
"@babel/helper-module-transforms" "^7.12.1"
"@babel/helpers" "^7.12.5"
"@babel/parser" "^7.12.7"
"@babel/template" "^7.12.7"
"@babel/traverse" "^7.12.8"
"@babel/traverse" "^7.12.9"
"@babel/types" "^7.12.7"
convert-source-map "^1.7.0"
debug "^4.1.0"
Expand Down Expand Up @@ -1055,10 +1055,10 @@
globals "^11.1.0"
lodash "^4.17.19"

"@babel/traverse@^7.12.8":
version "7.12.8"
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.12.8.tgz#c1c2983bf9ba0f4f0eaa11dff7e77fa63307b2a4"
integrity sha512-EIRQXPTwFEGRZyu6gXbjfpNORN1oZvwuzJbxcXjAgWV0iqXYDszN1Hx3FVm6YgZfu1ZQbCVAk3l+nIw95Xll9Q==
"@babel/traverse@^7.12.9":
version "7.12.9"
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.12.9.tgz#fad26c972eabbc11350e0b695978de6cc8e8596f"
integrity sha512-iX9ajqnLdoU1s1nHt36JDI9KG4k+vmI8WgjK5d+aDTwQbL2fUnzedNedssA645Ede3PM2ma1n8Q4h2ohwXgMXw==
dependencies:
"@babel/code-frame" "^7.10.4"
"@babel/generator" "^7.12.5"
Expand Down

0 comments on commit 332fccd

Please sign in to comment.