mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-07-19 12:15:43 +00:00
Updates
This commit is contained in:
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
import type { Group, IFavoriteChainProps, IFavoriteChainsStorage } from './types.js';
|
||||
import React from 'react';
|
||||
interface Props {
|
||||
affinities: Record<string, string>;
|
||||
apiUrl: string;
|
||||
children?: React.ReactNode;
|
||||
className?: string;
|
||||
index: number;
|
||||
isSelected: boolean;
|
||||
favoriteChains: IFavoriteChainsStorage;
|
||||
toggleFavoriteChain: (chainInfo: IFavoriteChainProps) => void;
|
||||
setApiUrl: (network: string, apiUrl: string) => void;
|
||||
setGroup: (groupIndex: number) => void;
|
||||
value: Group;
|
||||
highlightColor: string;
|
||||
}
|
||||
declare function GroupDisplay({ affinities, apiUrl, children, className, favoriteChains, highlightColor, index, isSelected, setApiUrl, setGroup, toggleFavoriteChain, value: { header, isSpaced, networks } }: Props): React.ReactElement<Props>;
|
||||
declare const _default: React.MemoExoticComponent<typeof GroupDisplay>;
|
||||
export default _default;
|
||||
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
import type { IFavoriteChainProps, Network } from './types.js';
|
||||
import React from 'react';
|
||||
interface Props {
|
||||
affinity?: string;
|
||||
apiUrl: string;
|
||||
className?: string;
|
||||
setApiUrl: (network: string, apiUrl: string) => void;
|
||||
value: Network;
|
||||
isFavorite: boolean;
|
||||
toggleFavoriteChain: (chainInfo: IFavoriteChainProps) => void;
|
||||
}
|
||||
declare function NetworkDisplay({ apiUrl, className, isFavorite, setApiUrl, toggleFavoriteChain, value: { isChild, isRelay, isUnreachable, name, nameRelay: relay, paraId, providers, ui } }: Props): React.ReactElement<Props>;
|
||||
declare const _default: React.MemoExoticComponent<typeof NetworkDisplay>;
|
||||
export default _default;
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
import React from 'react';
|
||||
interface Props {
|
||||
className?: string;
|
||||
offset?: number | string;
|
||||
onClose: () => void;
|
||||
}
|
||||
declare function Endpoints({ className, offset, onClose }: Props): React.ReactElement<Props>;
|
||||
declare const _default: React.MemoExoticComponent<typeof Endpoints>;
|
||||
export default _default;
|
||||
Vendored
+33
@@ -0,0 +1,33 @@
|
||||
import type React from 'react';
|
||||
export interface IFavoriteChainProps {
|
||||
chainName: string;
|
||||
relay?: string;
|
||||
paraId?: number;
|
||||
}
|
||||
export type IFavoriteChainsStorage = Record<string, {
|
||||
relay: string;
|
||||
paraId: number;
|
||||
}[]>;
|
||||
export interface Network {
|
||||
isChild?: boolean;
|
||||
isLightClient?: boolean;
|
||||
isRelay?: boolean;
|
||||
isUnreachable?: boolean;
|
||||
name: string;
|
||||
nameRelay?: string;
|
||||
paraId?: number;
|
||||
providers: {
|
||||
name: string;
|
||||
url: string;
|
||||
}[];
|
||||
ui: {
|
||||
color?: string;
|
||||
logo?: string;
|
||||
};
|
||||
}
|
||||
export interface Group {
|
||||
header: React.ReactNode;
|
||||
isDevelopment?: boolean;
|
||||
isSpaced?: boolean;
|
||||
networks: Network[];
|
||||
}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
import type { IFavoriteChainProps, IFavoriteChainsStorage } from './types.js';
|
||||
export declare const FAVORITE_CHAINS_KEY = "pezkuwi-app-favorite-chains";
|
||||
export declare const toggleFavoriteChain: (chainInfo: IFavoriteChainProps) => void;
|
||||
export declare const getFavoriteChains: () => IFavoriteChainsStorage;
|
||||
export declare const isFavoriteChain: (favoriteChains: IFavoriteChainsStorage, chainInfo: IFavoriteChainProps) => boolean;
|
||||
export declare function getContrastingColor(hexColor: string): string;
|
||||
Reference in New Issue
Block a user