-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[preview] use a lighter switch in schema model
- Loading branch information
Showing
2 changed files
with
24 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
<div class="schema-model" ng-class="{hidden: !schema}"> | ||
<header> | ||
<a ng-click="mode = 'json'" ng-class="{active: mode === 'model'}">JSON</a> <span ng-class="{active: mode === 'json'}">JSON</span> | ||
<span class="active pipe">|</span> | ||
<a ng-click="mode = 'model'" ng-class="{active: mode === 'json'}">Model</a> <span ng-class="{active: mode === 'model'}">Model</span> | ||
</header> | ||
|
||
<section class="json animate-if" ng-if="mode === 'json'" > | ||
<json-formatter json="json" open="1"></json-formatter> | ||
</section> | ||
<section class="model animate-if" ng-if="mode === 'model'"> | ||
<json-schema-view schema="json" open="0"></json-schema-view> | ||
</section> | ||
</div> | ||
<table class="schema-model" ng-class="{hidden: !schema}"> | ||
<tr> | ||
<td> | ||
<a class="toggle" ng-click="mode = mode == 'model' ? 'json' : 'model'" title="Switch to {{mode == 'model' ? 'json' : 'model'}}">⇄</a> | ||
</td> | ||
<td class="json animate-if" ng-if="mode === 'json'" > | ||
<json-formatter json="json" open="1"></json-formatter> | ||
</td> | ||
<td class="model animate-if" ng-if="mode === 'model'"> | ||
<json-schema-view schema="json" open="0"></json-schema-view> | ||
</td> | ||
</tr> | ||
</table> |