mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* basic implementation * fix loading state of image * tests * try to fix flaky tests
48 lines
1.3 KiB
TypeScript
48 lines
1.3 KiB
TypeScript
export const CHAIN_INDICATOR_IDS = [ 'daily_txs', 'daily_operational_txs', 'coin_price', 'secondary_coin_price', 'market_cap', 'tvl' ] as const;
|
|
export type ChainIndicatorId = typeof CHAIN_INDICATOR_IDS[number];
|
|
|
|
export const HOME_STATS_WIDGET_IDS = [
|
|
'latest_batch',
|
|
'total_blocks',
|
|
'average_block_time',
|
|
'total_txs',
|
|
'total_operational_txs',
|
|
'latest_l1_state_batch',
|
|
'wallet_addresses',
|
|
'gas_tracker',
|
|
'btc_locked',
|
|
'current_epoch',
|
|
] as const;
|
|
export type HomeStatsWidgetId = typeof HOME_STATS_WIDGET_IDS[number];
|
|
|
|
export interface HeroBannerButtonState {
|
|
background?: Array<string | undefined>;
|
|
text_color?: Array<string | undefined>;
|
|
}
|
|
|
|
export interface HeroBannerConfig {
|
|
background?: Array<string | undefined>;
|
|
text_color?: Array<string | undefined>;
|
|
border?: Array<string | undefined>;
|
|
button?: {
|
|
_default?: HeroBannerButtonState;
|
|
_hover?: HeroBannerButtonState;
|
|
_selected?: HeroBannerButtonState;
|
|
};
|
|
search?: {
|
|
border_width?: Array<string | undefined>;
|
|
};
|
|
}
|
|
|
|
export interface HighlightsBannerConfig {
|
|
title: string;
|
|
description: string;
|
|
title_color?: Array<string | undefined>;
|
|
description_color?: Array<string | undefined>;
|
|
background?: Array<string | undefined>;
|
|
side_img_url?: Array<string | undefined>;
|
|
is_pinned?: boolean;
|
|
page_path?: string;
|
|
redirect_url?: string;
|
|
}
|