This guide shows you how to integrate functionality between Backstage plugins using both frontend (ApiRef) and backend (ServiceRef) approaches following the latest Backstage patterns.
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
https://www.youtube.com/playlist?list=PLj6h78yzYM2O3YsKnBocZZPv0M6f-wLu5 |
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
import { GraphQLRelayService } from './GraphQLRelayService'; | |
import superagent, { Response } from 'superagent'; | |
import { jest } from '@jest/globals'; | |
jest.mock('superagent'); | |
interface TokenResponse { | |
body: { | |
access_token: string; | |
expires_in: number; |
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
/* eslint-disable class-methods-use-this */ | |
type UserProfile = { | |
name: string; | |
avatarUrl: string; | |
balance: number; | |
}; | |
abstract class AbstractWallet { | |
// Returns a promise that resolves an array of strings, each string is an origin | |
async getOrdinals(): Promise<string[]> { |
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
pragma solidity ^0.4.19; | |
import 'zeppelin-solidity/contracts/token/ERC20/MintableToken.sol'; | |
contract BITTokenTest is MintableToken { | |
string public name = "BITTokenTest"; | |
string public symbol = "BIT"; | |
uint8 public decimals = 18; | |
} |
NewerOlder