-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix long byte array display for anchor ix arguments * add option to download idl * add badge to show IDL version * add toggle for viewing expanded IDL (no more clicking manually to expand)
- Loading branch information
Showing
7 changed files
with
156 additions
and
29 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
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import React from 'react'; | ||
|
||
import { IdlSpec } from '@/app/utils/convertLegacyIdl'; | ||
|
||
interface IDLBadgeProps { | ||
spec: IdlSpec; | ||
} | ||
|
||
export function IDLBadge({ spec }: IDLBadgeProps) { | ||
const badgeClass = spec === 'legacy' ? 'bg-warning' : 'bg-success'; | ||
const badgeText = spec === 'legacy' ? 'Legacy' : '0.30.1'; | ||
|
||
return <span className={`badge ${badgeClass}`}>{badgeText} Anchor IDL</span>; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import 'react-json-view'; | ||
|
||
declare module 'react-json-view' { | ||
interface ReactJsonViewProps { | ||
displayArrayKey?: boolean; | ||
} | ||
} |
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