-
-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added options for introspection querying + deprecation UX
- Loading branch information
Showing
10 changed files
with
158 additions
and
67 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
#!/usr/bin/env bash | ||
|
||
if [ -z "$1" ] | ||
then | ||
|
4 changes: 2 additions & 2 deletions
4
...s/altair/components/doc-viewer/doc-viewer-deprecated/doc-viewer-deprecated.component.html
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,8 +1,8 @@ | ||
@if (item?.isDeprecated) { | ||
@if (isDeprecated) { | ||
<div class="doc-viewer-item-query-deprecated"> | ||
<span class="doc-viewer-item-query-deprecated-title"> | ||
{{ 'DOCS_DEPRECATED_TEXT' | translate }} | ||
</span> | ||
<span markdown [data]="item?.deprecationReason ?? ''"> </span> | ||
<span markdown [data]="deprecatedReason || ''"> </span> | ||
</div> | ||
} |
4 changes: 2 additions & 2 deletions
4
...les/altair/components/doc-viewer/doc-viewer-deprecated/doc-viewer-deprecated.component.ts
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,11 +1,11 @@ | ||
import { Component, Input } from '@angular/core'; | ||
import { GraphQLEnumValue, GraphQLField } from 'graphql'; | ||
|
||
@Component({ | ||
selector: 'app-doc-viewer-deprecated', | ||
templateUrl: './doc-viewer-deprecated.component.html', | ||
styles: [], | ||
}) | ||
export class DocViewerDeprecatedComponent { | ||
@Input() item?: GraphQLField<any, any> | GraphQLEnumValue; | ||
@Input() isDeprecated = false; | ||
@Input() deprecatedReason = ''; | ||
} |
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
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
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
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