repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/e2e/common.ts
e2e/common.ts
import { BrowserContext, expect, Locator, Page } from '@playwright/test'; const RESOURCE_EXCLUSTIONS = ['media', 'font', 'other']; export async function waitForReady(page: Page) { await page.waitForSelector('body:visible'); // await expect(page.getByRole('progressbar')).toHaveCount(0); } export async function wa...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/e2e/validator.spec.ts
e2e/validator.spec.ts
// import { expect, test } from '@playwright/test'; // import { interceptRoutes, hasReadPermissions, waitForReady } from './common'; // const validatorAddress = 'desmosvaloper134zrg6jn3a5l5jjpzv9eucdlw3nl2qelk0e992'; // const rewardAddress = 'desmos134zrg6jn3a5l5jjpzv9eucdlw3nl2qelgz330c'; // test('validator page', a...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/e2e/search.spec.ts
e2e/search.spec.ts
import { test } from '@playwright/test'; import { interceptRoutes, waitForReady } from './common'; const placeholder = 'Search for validator / tx hash / block height / address / @dtag'; const address = 'desmos17lca9smrdlwkznr92hypzrgsjkelnxear4qhyj'; const validatorAddress = 'desmosvaloper17lca9smrdlwkznr92hypzrgsjkel...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/e2e/transactions.spec.ts
e2e/transactions.spec.ts
import { test } from '@playwright/test'; import { interceptRoutes, waitForClick, waitForMenuItemClick, waitForReady } from './common'; const transactionHash = '5922EA68378A74989E95BF477BF107A120CA1D006FDDA84BC93630BBF9A8E75B'; test('transactions list page', async ({ page, isMobile }) => { await interceptRoutes(page...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/e2e/validators.spec.ts
e2e/validators.spec.ts
import { test } from '@playwright/test'; import { interceptRoutes, waitForMenuItemClick, waitForReady } from './common'; const validatorAddress = 'desmosvaloper17lca9smrdlwkznr92hypzrgsjkelnxeaacgrwq'; test('validators list page', async ({ page, isMobile }) => { await interceptRoutes(page); await page.goto(`.`);...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/e2e/blocks.spec.ts
e2e/blocks.spec.ts
import { test } from '@playwright/test'; import { interceptRoutes, waitForMenuItemClick, waitForReady } from './common'; test('blocks page', async ({ page, isMobile }) => { await interceptRoutes(page); // Test single block url await page.goto(`./blocks/1`); await waitForReady(page); await waitForMenuItemCl...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/e2e/account.spec.ts
e2e/account.spec.ts
// import { expect, test } from '@playwright/test'; // import { interceptRoutes, waitForPopupClick, hasReadPermissions, waitForReady } from './common'; // const address = 'desmos134zrg6jn3a5l5jjpzv9eucdlw3nl2qelgz330c'; // test('account page - copy addresses', async ({ page, context }) => { // await interceptRoutes...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/e2e/footer.spec.ts
e2e/footer.spec.ts
import { Locator, Page, expect, test } from '@playwright/test'; import { interceptRoutes, waitForPopupClick, waitForReady } from './common'; async function getHref(locator: Locator) { return await (await locator).first().getAttribute('href'); } test('footer', async ({ page, isMobile }) => { await interceptRoutes(...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/shared-utils/configs/captureUnderscoreErrorException.ts
packages/shared-utils/configs/captureUnderscoreErrorException.ts
import type { NextPageContext } from 'next'; async function captureUnderscoreErrorException(_contextData: NextPageContext) { // Do nothing } export default captureUnderscoreErrorException;
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/shared-utils/configs/sentry/captureUnderscoreErrorException.ts
packages/shared-utils/configs/sentry/captureUnderscoreErrorException.ts
import * as Sentry from '@sentry/nextjs'; import type { NextPageContext } from 'next'; async function captureUnderscoreErrorException(contextData: NextPageContext) { await Sentry.captureUnderscoreErrorException(contextData); } export default captureUnderscoreErrorException;
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/jest-presets/jest/node/jest-preset.ts
packages/jest-presets/jest/node/jest-preset.ts
import { Config } from 'jest'; // Any custom config you want to pass to Jest const customJestConfig: Config = { setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'], modulePathIgnorePatterns: [ '<rootDir>/tests/__fixtures__', '<rootDir>/node_modules', '<rootDir>/dist', ], moduleNameMapper: { // must...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/jest.setup.ts
packages/ui/jest.setup.ts
import mockApollo from '@/tests/mocks/mockApollo'; import mockChainConfig from '@/tests/mocks/mockChainConfig'; import mockDayJs from '@/tests/mocks/mockDayJs'; import mockDynamicComponent from '@/tests/mocks/mockDynamicComponent'; import mockI18Next from '@/tests/mocks/mockI18Next'; import mockProfiles from '@/tests/m...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/jest.config.ts
packages/ui/jest.config.ts
import configFromPreset from 'jest-presets/jest/node/jest-preset'; import nextJest from 'next/jest'; import { pathsToModuleNameMapper } from 'ts-jest'; import tsconfig from './tsconfig.json'; /* Creating a jest configuration for nextjs. */ const createJestConfig = nextJest({ dir: './', })(configFromPreset); const e...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/next-env.d.ts
packages/ui/next-env.d.ts
/// <reference types="next" /> /// <reference types="next/image-types/global" /> // NOTE: This file should not be edited // see https://nextjs.org/docs/basic-features/typescript for more information.
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/declarations.d.ts
packages/ui/declarations.d.ts
declare module '*.png'; declare module '*.jpg'; declare module '*.jpeg'; declare module '*.svg'; declare module '*.svg?url'; declare module '*.gif'; declare module '*.woff2'; type Override<T1, T2> = Omit<T1, keyof T2> & T2; interface ComponentDefault { className?: string; } interface AvatarName { className?: stri...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/window.d.ts
packages/ui/window.d.ts
import type { Window as KeplrWindow } from '@keplr-wallet/types'; declare global { // eslint-disable-next-line @typescript-eslint/no-empty-interface interface Window extends KeplrWindow {} }
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/createPalette.d.ts
packages/ui/createPalette.d.ts
/* eslint-disable */ import type { Custom, PaletteOptions, Palette } from '@mui/material/styles/createPalette'; declare module '@mui/material/styles' { interface Theme { status: { danger: string; }; } // allow configuration using `createTheme` interface ThemeOptions { status?: { danger?...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/createMixins.d.ts
packages/ui/createMixins.d.ts
import type { MixinsOptions, Mixins } from '@mui/material/styles/createMixins'; declare module '@mui/material/styles/createMixins' { interface MixinsOptions { layout?: CSSProperties; tableCell?: CSSProperties; } interface Mixins { layout: CSSProperties; tableCell: CSSProperties; } }
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/index.ts
packages/ui/src/index.ts
export { default as chainConfig } from '@/chainConfig'; export { default as generalConfig } from '@/generalConfig'; export * as models from '@/models'; export * as screens from '@/screens'; export * as styles from '@/styles'; export * as utils from '@/utils';
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/generalConfig/types.ts
packages/ui/src/generalConfig/types.ts
export interface GeneralConfig { maintainer: { name: string; url: string; }; github: { reportIssue: string; }; version: string; }
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/generalConfig/index.ts
packages/ui/src/generalConfig/index.ts
import generalJson from 'shared-utils/configs/general.json'; import type { GeneralConfig } from '@/generalConfig/types'; const generalConfig = generalJson as GeneralConfig; export default generalConfig;
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/styles/createEmotionCache.ts
packages/ui/src/styles/createEmotionCache.ts
import createCache from '@emotion/cache'; export default function createEmotionCache() { return createCache({ key: 'mui-style' }); }
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/styles/useSharedStyles.ts
packages/ui/src/styles/useSharedStyles.ts
import { Theme } from '@mui/material/styles'; import { makeStyles } from 'tss-react/mui'; import { CSSObject } from 'tss-react/types'; type ResponsiveStyleKeys<N extends string> = | `${N}UntilXl` | `${N}WhenXl` | `${N}UntilLg` | `${N}WhenLg` | `${N}UntilMd` | `${N}WhenMd` | `${N}UntilSm` | `${N}WhenSm`...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/styles/index.ts
packages/ui/src/styles/index.ts
import { ThemeOptions } from '@mui/material/styles'; import chainConfig from '@/chainConfig'; import { darkTemplate, deuteranopiaTemplate, lightTemplate, tritanopiaTemplate, } from '@/styles/theme'; const { themes } = chainConfig(); type ThemeDictionaryType = { [theme: string]: ThemeOptions }; // getThemeDict...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/styles/theme/dark.ts
packages/ui/src/styles/theme/dark.ts
import { ThemeOptions } from '@mui/material'; import chainConfig from '@/chainConfig'; const { themes } = chainConfig(); const { dark: theme } = themes; type DeepPartial<T> = T extends object ? { [P in keyof T]?: DeepPartial<T[P]>; } : T; /** Custom theme overrides for dark mode */ export const darkThe...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/styles/theme/light.ts
packages/ui/src/styles/theme/light.ts
import { ThemeOptions } from '@mui/material'; import chainConfig from '@/chainConfig'; const { themes } = chainConfig(); const { light: theme } = themes; type DeepPartial<T> = T extends object ? { [P in keyof T]?: DeepPartial<T[P]>; } : T; /** Custom theme overrides for light mode */ export const light...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/styles/theme/tritanopia.ts
packages/ui/src/styles/theme/tritanopia.ts
import { ThemeOptions } from '@mui/material'; const backgroundDefault = '#0A0A0A'; const surfaceOne = '#18181C'; const surfaceTwo = '#252529'; const fontOne = '#E6E6E6'; const fontTwo = '#AAAAAB'; const fontThree = '#818181'; const icon = '#9F9F9F'; type DeepPartial<T> = T extends object ? { [P in keyof T]?: ...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/styles/theme/deuteranopia.ts
packages/ui/src/styles/theme/deuteranopia.ts
import { ThemeOptions } from '@mui/material'; const backgroundDefault = '#000000'; const surfaceOne = '#1C1C1C'; const surfaceTwo = '#252527'; const fontOne = '#FFFFFF'; const fontTwo = '#C4C4C4'; const fontThree = '#8D8D8D'; const icon = '#9F9F9F'; type DeepPartial<T> = T extends object ? { [P in keyof T]?: ...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/styles/theme/index.ts
packages/ui/src/styles/theme/index.ts
import { darkThemeOverride } from '@/styles/theme/dark'; import { deuteranopiaThemeOverride } from '@/styles/theme/deuteranopia'; import { lightThemeOverride } from '@/styles/theme/light'; import { tritanopiaThemeOverride } from '@/styles/theme/tritanopia'; import { ThemeOptions } from '@mui/material/styles'; import * ...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/chainConfig/types.ts
packages/ui/src/chainConfig/types.ts
export interface ChainSettings { network: string; chainType: string; genesis: { time: string; height: number; }; prefix: { consensus: string; validator: string; account: string; }; primaryTokenUnit: string; votingPowerTokenUnit: string; tokenUnits: { [token: string]: { di...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/chainConfig/index.ts
packages/ui/src/chainConfig/index.ts
import chainJson from '@/chain.json'; import type { ChainConfig } from '@/chainConfig/types'; const chainTypes = [process.env.NEXT_PUBLIC_CHAIN_TYPE]; function chainConfig() { /* Setting the basePath, chainType, chains, and settings variables. */ const chainType = chainTypes.find((c) => !!c)?.toLowerCase() || 'ma...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/graphql/useApollo/index.ts
packages/ui/src/graphql/useApollo/index.ts
import chainConfig from '@/chainConfig'; import { ApolloClient, DefaultOptions, InMemoryCache, NormalizedCacheObject, split } from '@apollo/client'; import { BatchHttpLink } from '@apollo/client/link/batch-http'; import { HttpLink } from '@apollo/client/link/http'; import { GraphQLWsLink } from '@apollo/clien...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/graphql/types/general_types.ts
packages/ui/src/graphql/types/general_types.ts
import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; export type Maybe<T> = T | null; export type InputMaybe<T> = Maybe<T>; export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] }; export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
true
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/graphql/types/profile_types.ts
packages/ui/src/graphql/types/profile_types.ts
import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; export type Maybe<T> = T | null; export type InputMaybe<T> = Maybe<T>; export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] }; export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
true
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/graphql/general/account_details_documents.ts
packages/ui/src/graphql/general/account_details_documents.ts
export const AccountCommissionDocument = /* GraphQL */ ` query AccountCommission($validatorAddress: String!) { commission: action_validator_commission_amount(address: $validatorAddress) { coins } } `; export const AccountWithdrawalAddressDocument = /* GraphQL */ ` query AccountWithdrawalAddress($ad...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/graphql/general/validator_details_documents.ts
packages/ui/src/graphql/general/validator_details_documents.ts
export const ValidatorDelegationsDocument = /* GraphQL */ ` query ValidatorDelegations( $validatorAddress: String! $offset: Int = 0 $limit: Int = 10 $pagination: Boolean! = true ) { delegations: action_validator_delegations( address: $validatorAddress limit: $limit offset: $off...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/graphql/profiles/desmos_profile_graphql.ts
packages/ui/src/graphql/profiles/desmos_profile_graphql.ts
export const DesmosProfileDocument = /* GraphQL */ ` query DesmosProfile($addresses: [String!]) { profile(where: { address: { _in: $addresses } }, limit: 20) { address bio dtag nickname profilePic: profile_pic coverPic: cover_pic chainLinks: chain_links { creation...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/tests/mocks/MockTheme.tsx
packages/ui/src/tests/mocks/MockTheme.tsx
import createCache, { EmotionCache } from '@emotion/cache'; import { CacheProvider } from '@emotion/react'; import { createTheme, ThemeProvider } from '@mui/material/styles'; import { ReactNode } from 'react'; import { RecoilRoot } from 'recoil'; import { defaultTheme } from '@/styles'; let appCache: EmotionCache | un...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/tests/mocks/mockChainConfig.ts
packages/ui/src/tests/mocks/mockChainConfig.ts
import { jest } from '@jest/globals'; function mockChainConfig() { const { default: chainConfig } = jest.requireActual<{ default(): { tokenUnits: object } }>('@/chainConfig'); const config = chainConfig(); config.tokenUnits = { udaric: { display: 'daric', exponent: 6 }, upotic: { display: 'potic', ex...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/tests/mocks/mockI18Next.ts
packages/ui/src/tests/mocks/mockI18Next.ts
/* eslint-disable no-nested-ternary, react/no-array-index-key */ import { jest } from '@jest/globals'; import type { Trans as TransType } from 'next-i18next'; import { ComponentProps, createElement, Fragment, isValidElement } from 'react'; function mockI18Next() { const t = jest.fn((key: string) => key); const i18...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/tests/mocks/mockDayJs.ts
packages/ui/src/tests/mocks/mockDayJs.ts
import { jest } from '@jest/globals'; function mockDayJs() { const format = jest.fn(() => '2020-08-10 12:00:00'); const fromNow = jest.fn(() => '1 day ago'); const diff = jest.fn(() => 30); const local = jest.fn(() => ({ format })); const utc = jest.fn(() => ({ format, fromNow, diff, local })); const unix ...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/tests/mocks/mockApollo.ts
packages/ui/src/tests/mocks/mockApollo.ts
import { ApolloClient, from, InMemoryCache } from '@apollo/client'; import { jest } from '@jest/globals'; export const mockClient = new ApolloClient({ link: from([]), cache: new InMemoryCache() }); function mockApollo() { const useApolloClient = jest.fn(() => mockClient); jest.mock('@apollo/client', () => ({ ...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/tests/mocks/mockDynamicComponent.ts
packages/ui/src/tests/mocks/mockDynamicComponent.ts
import { jest } from '@jest/globals'; function mockDynamicComponent() { const DynamicComponent = () => null; DynamicComponent.displayName = 'LoadableComponent'; DynamicComponent.preload = jest.fn(); jest.mock('next/dynamic', () => jest.fn(() => DynamicComponent)); } export default mockDynamicComponent;
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/tests/mocks/mockProfiles.ts
packages/ui/src/tests/mocks/mockProfiles.ts
import { jest } from '@jest/globals'; function mockProfiles() { const useProfileRecoil = jest.fn((address: string) => ({ address, name: address, imageUrl: '' })); const useProfilesRecoil = jest.fn((addresses: string[]) => ({ profiles: addresses.map((address) => ({ address, name: address, imageUrl: '' })), ...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/tests/utils/wait.ts
packages/ui/src/tests/utils/wait.ts
import type { act } from 'react-test-renderer'; /** * helper test util to wait for the dom to update * before asserting tests * @param ms */ const wait = async (rendererAct: typeof act, ms = 50) => { await rendererAct( () => new Promise((resolve) => { setTimeout(() => resolve(), ms); }) ...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/hooks/use_desmos_profile/types.ts
packages/ui/src/hooks/use_desmos_profile/types.ts
export type Options = { addresses: string[]; skip?: boolean; };
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/hooks/use_desmos_profile/index.ts
packages/ui/src/hooks/use_desmos_profile/index.ts
/* eslint-disable no-nested-ternary */ import { useApolloClient } from '@apollo/client'; import * as R from 'ramda'; import { useEffect, useState } from 'react'; import { useRecoilCallback, useRecoilValue } from 'recoil'; import chainConfig from '@/chainConfig'; import { DesmosProfileDocument, DesmosProfileDtagDocu...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/hooks/use_react_window/index.ts
packages/ui/src/hooks/use_react_window/index.ts
import * as R from 'ramda'; import { useCallback, useEffect, useRef } from 'react'; import type { VariableSizeGrid } from 'react-window'; import useShallowMemo from '@/hooks/useShallowMemo'; // reusable hook helpers for react window list components export const useList = () => { const listRef = useRef({}); const ...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/hooks/use_get_component_dimension/index.ts
packages/ui/src/hooks/use_get_component_dimension/index.ts
import { useEffect, useRef, useState } from 'react'; /** * Nav hook helper to get the component height */ export const useGetComponentDimension = () => { const [height, setHeight] = useState(0); const [width, setWidth] = useState(0); const ref = useRef<HTMLDivElement | null>(null); useEffect(() => { if ...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/hooks/useAppTranslation/index.test.tsx
packages/ui/src/hooks/useAppTranslation/index.test.tsx
import useAppTranslation from '@/hooks/useAppTranslation'; import { renderHook } from '@testing-library/react'; import i18n from 'i18next'; import { I18nextProvider, initReactI18next } from 'react-i18next'; // Sample translation data const translations = { en: { translation: { testKey: 'translation:testKey...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/hooks/useAppTranslation/index.ts
packages/ui/src/hooks/useAppTranslation/index.ts
import { useTranslation } from 'next-i18next'; import { useCallback, useMemo } from 'react'; import { UseTranslationOptions } from 'react-i18next'; /** * Returns the first item in an array or the input itself if it's a string or null. * @param arg - The input array, string, or null. * @returns The first item in the...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/hooks/use_interval/index.ts
packages/ui/src/hooks/use_interval/index.ts
import { useEffect, useRef } from 'react'; export const useInterval = (callback: () => void, delay: number) => { const savedCallback = useRef(callback); // Remember the latest callback. useEffect(() => { savedCallback.current = callback; }, [callback]); // initial call useEffect(() => { savedCall...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/hooks/useShallowMemo/index.test.ts
packages/ui/src/hooks/useShallowMemo/index.test.ts
import { renderHook } from '@testing-library/react'; import useShallowMemo from '@/hooks/useShallowMemo'; describe('hooks: useShallowMemo (no key)', () => { it('given the same props when render 10 times then return the same result', async () => { const initialProps = ['a', 'b', 'c']; const { rerender, result...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/hooks/useShallowMemo/index.ts
packages/ui/src/hooks/useShallowMemo/index.ts
import * as R from 'ramda'; import { useRef } from 'react'; /** * It returns the same value as the previous render if the value hasn't changed * @param {V} value - The value to memoize. * @returns The current value of the ref. */ const useShallowMemo = <V, K = keyof unknown>(value: V, key?: K): V => { const ref ...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/hooks/useInfiniteQuery/types.ts
packages/ui/src/hooks/useInfiniteQuery/types.ts
import { ApolloError, ApolloQueryResult, ReactiveVar, TypedDocumentNode } from '@apollo/client'; export interface Data<TItem> { loading: boolean; error: ApolloError | undefined; items: TItem[]; } export interface Summary { variables: object; maxFetched?: number; itemCount?: number; } export type SummaryV...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/hooks/useInfiniteQuery/index.ts
packages/ui/src/hooks/useInfiniteQuery/index.ts
import { InfiniteQuery, Summary, SummaryVars, UseInfiniteQueryParams, } from '@/hooks/useInfiniteQuery/types'; import useShallowMemo from '@/hooks/useShallowMemo'; import { makeVar, OperationVariables, ReactiveVar, useQuery } from '@apollo/client'; import * as R from 'ramda'; import { useEffect, useMemo } from ...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/hooks/use_persisted_state/index.test.tsx
packages/ui/src/hooks/use_persisted_state/index.test.tsx
import { act, renderHook } from '@testing-library/react'; import { usePersistedState } from '@/hooks/use_persisted_state'; describe('misc: usePersistedState', () => { it('retrieves persisted value from localStorage on mount', async () => { (localStorage.getItem as jest.Mock).mockReturnValueOnce('"persisted"'); ...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/hooks/use_persisted_state/index.ts
packages/ui/src/hooks/use_persisted_state/index.ts
import { Dispatch, SetStateAction, useEffect, useState } from 'react'; /** * Helper hook to handle values that may need to be story throughout multiple sessions * @param key key value that exist in localstorage * @param initialValue initial value to be set if none is found */ export const usePersistedState = <P>( ...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/hooks/use_pagination/index.ts
packages/ui/src/hooks/use_pagination/index.ts
import { MouseEvent, useCallback, useState } from 'react'; type Options = { pageChangeCallback?: (page: number, rowsPerPage: number) => void; rowsChangeCallback?: (page: number, rowsPerPage: number) => void; rowsPage?: number; }; const getTotal = (items: unknown[]) => items.length; /** * Hook helper for reusa...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/hooks/use_window/index.ts
packages/ui/src/hooks/use_window/index.ts
import { useEffect, useState } from 'react'; const isClient = typeof window === 'object'; export const useWindowOrigin = () => { const [location, setLocation] = useState<string>(''); useEffect(() => { if (!isClient) return; setLocation(window.location.origin); }, []); return { location }; };
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/hooks/use_screen_size/index.test.tsx
packages/ui/src/hooks/use_screen_size/index.test.tsx
import { act, cleanup, renderHook } from '@testing-library/react'; import { useScreenSize } from '@/hooks/use_screen_size'; describe('hook: useScreenSize', () => { test('returns correct definitions', async () => { const { result } = renderHook(() => useScreenSize()); await act(async () => { global.inn...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/hooks/use_screen_size/index.ts
packages/ui/src/hooks/use_screen_size/index.ts
import { useEffect, useState } from 'react'; import { useStyles } from 'tss-react/mui'; const isClient = typeof window === 'object'; export const useScreenSize = () => { const [windowSize, setWindowSize] = useState<{ width: number | undefined; height: number | undefined; }>(getSize()); const [isDesktop,...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/hooks/useBigDipperNetworks/index.ts
packages/ui/src/hooks/useBigDipperNetworks/index.ts
import chainConfig from '@/chainConfig'; import { ChainIdQuery, useChainIdQuery } from '@/graphql/types/general_types'; import { BigDipperNetwork, zBigDipperNetwork } from '@/models/bigDipperNetwork'; import { gql, makeVar, useQuery, useReactiveVar } from '@apollo/client'; import { useCallback, useEffect } from 'react'...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/hooks/useBigDipperNetworks/mocks.ts
packages/ui/src/hooks/useBigDipperNetworks/mocks.ts
import { ChainIdDocument } from '@/graphql/types/general_types'; import { query } from '@/hooks/useBigDipperNetworks'; const mockQueryResult = jest.fn().mockReturnValue({ data: { networks: [ { name: 'Desmos', logo: 'https://raw.githubusercontent.com/forbole/big-dipper-networks/main/logos/de...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/pages/_error.tsx
packages/ui/src/pages/_error.tsx
import Error from '@/screens/error'; import type { NextPage, NextPageContext } from 'next'; import NextErrorComponent from 'next/error'; import captureUnderscoreErrorException from 'shared-utils/configs/captureUnderscoreErrorException'; const ErrorPage: NextPage = () => <Error />; export const getInitialProps = async...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/pages/_app.tsx
packages/ui/src/pages/_app.tsx
import MyApp from '@/screens/app'; import { appWithTranslation } from 'next-i18next'; import 'react-toastify/dist/ReactToastify.css'; import 'shared-utils/assets/styles/global.css'; import nextI18NextConfig from '../../next-i18next.config'; export default appWithTranslation(MyApp, nextI18NextConfig);
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/pages/404.tsx
packages/ui/src/pages/404.tsx
import withGetStaticProps from '@/pages/withGetStaticProps'; import NotFound from '@/screens/404'; import type { NextPage } from 'next'; import nextI18NextConfig from '../../next-i18next.config'; const Custom404: NextPage = () => <NotFound />; export const getStaticProps = withGetStaticProps(nextI18NextConfig); expo...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/pages/withGetStaticProps.ts
packages/ui/src/pages/withGetStaticProps.ts
import { GetStaticPropsContext } from 'next'; import { UserConfig } from 'next-i18next'; import { serverSideTranslations } from 'next-i18next/serverSideTranslations'; function withGetStaticProps(nextI18NextConfig: UserConfig, ...namespacesRequired: string[]) { const namespaceForApp = process.env.NEXT_PUBLIC_APP_NAME...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/pages/index.tsx
packages/ui/src/pages/index.tsx
import withGetStaticProps from '@/pages/withGetStaticProps'; import type { NextPage } from 'next'; import Home from '@/screens/home'; import nextI18NextConfig from '../../next-i18next.config'; const HomePage: NextPage = () => <Home />; export const getStaticProps = withGetStaticProps( nextI18NextConfig, 'home', ...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/pages/[dtag].tsx
packages/ui/src/pages/[dtag].tsx
import withGetStaticProps from '@/pages/withGetStaticProps'; import ProfileDetails from '@/screens/profile_details'; import type { NextPage } from 'next'; import nextI18NextConfig from '../../next-i18next.config'; const ProfileDetailsPage: NextPage = () => <ProfileDetails />; export const getStaticPaths = () => ({ pa...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/pages/_document.tsx
packages/ui/src/pages/_document.tsx
import createEmotionCache from '@/styles/createEmotionCache'; import createEmotionServer from '@emotion/server/create-instance'; import { AppType } from 'next/app'; import Document, { DocumentContext, DocumentInitialProps, Head, Html, Main, NextScript, } from 'next/document'; import { FC } from 'react'; ex...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/pages/withGetServerSideProps.ts
packages/ui/src/pages/withGetServerSideProps.ts
import { GetServerSidePropsContext } from 'next'; import { UserConfig } from 'next-i18next'; import { serverSideTranslations } from 'next-i18next/serverSideTranslations'; function withGetServerSideProps(nextI18NextConfig: UserConfig, ...namespacesRequired: string[]) { const namespaceForApp = process.env.NEXT_PUBLIC_...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/pages/server-sitemap.xml/index.tsx
packages/ui/src/pages/server-sitemap.xml/index.tsx
import chainConfig from '@/chainConfig'; import { readFileSync } from 'fs'; import { GetServerSideProps } from 'next'; import { getServerSideSitemapLegacy } from 'next-sitemap'; import { basename } from 'path'; function getSiteUrl() { const dir = JSON.parse(readFileSync('./package.json', 'utf8')).name; const [_mat...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/linear_loading/index.test.tsx
packages/ui/src/components/linear_loading/index.test.tsx
import renderer from 'react-test-renderer'; import LinearLoading from '@/components/linear_loading'; import MockTheme from '@/tests/mocks/MockTheme'; // ================================== // unit tests // ================================== describe('component: LinearLoading', () => { it('matches snapshot', () => { ...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/linear_loading/index.tsx
packages/ui/src/components/linear_loading/index.tsx
import LinearProgress from '@mui/material/LinearProgress'; import { FC } from 'react'; import useStyles from '@/components/linear_loading/styles'; const LinearLoading: FC<ComponentDefault> = ({ className }) => { const { classes, cx } = useStyles(); return ( <div className={cx(classes.root, className)}> <...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/linear_loading/styles.ts
packages/ui/src/components/linear_loading/styles.ts
import { makeStyles } from 'tss-react/mui'; const useStyles = makeStyles()((theme) => ({ root: { flex: 1, display: 'flex', alignItems: 'center', justifyContent: 'center', height: '100%', minHeight: '150px', padding: theme.spacing(2), '& > *': { width: '70%', }, [theme.br...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/transaction_type_filter/index.tsx
packages/ui/src/components/transaction_type_filter/index.tsx
import React, { FC } from 'react'; import Dialog from '@mui/material/Dialog'; import DialogContent from '@mui/material/DialogContent'; import DialogTitle from '@mui/material/DialogTitle'; import Typography from '@mui/material/Typography'; import useAppTranslation from '@/hooks/useAppTranslation'; import FilterTxsIcon f...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/transaction_type_filter/styles.ts
packages/ui/src/components/transaction_type_filter/styles.ts
import { makeStyles } from 'tss-react/mui'; const useStyles = makeStyles()((theme) => ({ checkBox: { height: '16px', marginTop: '0.5px', marginRight: '8px', width: '16px', '& svg': { height: '16px', width: '16px', }, }, column: { flexBasis: 'calc(50% - 20px)', }, colum...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/transaction_type_filter/hooks.ts
packages/ui/src/components/transaction_type_filter/hooks.ts
// useTransactionTypeFilter hook import { useEffect, useMemo, useState, ChangeEvent, useCallback } from 'react'; import { useMessageTypesQuery, useMsgTypesByAddressQuery } from '@/graphql/types/general_types'; import { SetterOrUpdater, useRecoilState } from 'recoil'; import { writeFilter, writeOpenDialog, writeSelected...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/transaction_type_filter/components/transaction_type_search/index.tsx
packages/ui/src/components/transaction_type_filter/components/transaction_type_search/index.tsx
import InputAdornment from '@mui/material/InputAdornment'; import InputBase from '@mui/material/InputBase'; import { FC } from 'react'; import { useTxTypeSearch } from '@/components/transaction_type_filter/components/transaction_type_search/hooks'; import useStyles from '@/components/transaction_type_filter/components/...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/transaction_type_filter/components/transaction_type_search/styles.ts
packages/ui/src/components/transaction_type_filter/components/transaction_type_search/styles.ts
import { makeStyles } from 'tss-react/mui'; const useStyles = makeStyles()((theme) => ({ root: { '& .MuiInputBase-root': { width: '300px', height: '32px', background: theme.palette.mode === 'dark' ? theme.palette.divider : theme.palette.background.default, padding: theme.spacing(0...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/transaction_type_filter/components/transaction_type_search/hooks.ts
packages/ui/src/components/transaction_type_filter/components/transaction_type_search/hooks.ts
import { ChangeEventHandler, KeyboardEventHandler, useState } from 'react'; export const useTxTypeSearch = (callback: (value: string, clear?: () => void) => void) => { const [value, setValue] = useState(''); const handleOnChange: ChangeEventHandler<HTMLTextAreaElement> = (e) => { const newValue = e?.target?.va...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/info_popover/index.test.tsx
packages/ui/src/components/info_popover/index.test.tsx
import renderer from 'react-test-renderer'; import ConditionExplanation from '@/components/condition_explanation'; import InfoPopover from '@/components/info_popover'; import MockTheme from '@/tests/mocks/MockTheme'; // ================================== // unit tests // ================================== describe('co...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/info_popover/index.tsx
packages/ui/src/components/info_popover/index.tsx
import Paper from '@mui/material/Paper'; import Popover from '@mui/material/Popover'; import HelpOutlineIcon from '@mui/icons-material/HelpOutline'; import { FC, ReactNode } from 'react'; import useStyles from '@/components/info_popover/styles'; import { useInfoPopover } from '@/components/info_popover/hooks'; type In...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/info_popover/styles.ts
packages/ui/src/components/info_popover/styles.ts
import { makeStyles } from 'tss-react/mui'; const useStyles = makeStyles()((theme) => ({ root: { display: 'flex', alignItems: 'center', }, icon: { display: 'inline-block', fontSize: '1rem', margin: theme.spacing(0, 0.5), }, popover: { pointerEvents: 'none', '& .MuiPopover-paper': ...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/info_popover/hooks.ts
packages/ui/src/components/info_popover/hooks.ts
import { MouseEventHandler, useState } from 'react'; export const useInfoPopover = () => { const [anchorEl, setAnchorEl] = useState<HTMLAnchorElement | null>(null); const handlePopoverOpen: MouseEventHandler<HTMLAnchorElement> = (event) => { setAnchorEl(event.currentTarget); }; const handlePopoverClose =...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/avatar/index.test.tsx
packages/ui/src/components/avatar/index.test.tsx
import renderer from 'react-test-renderer'; import Avatar from '@/components/avatar'; import MockTheme from '@/tests/mocks/MockTheme'; jest.mock('jdenticon', () => ({ update: jest.fn(), })); // ================================== // unit tests // ================================== describe('component: Avatar', () =>...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/avatar/index.tsx
packages/ui/src/components/avatar/index.tsx
import useStyles from '@/components/avatar/styles'; import * as jdenticon from 'jdenticon'; import Image from 'next/image'; import { FC, startTransition, useEffect, useRef, useState } from 'react'; type AvatarProps = { className?: string; imageUrl?: string; address: string; }; const Avatar: FC<AvatarProps> = ({...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/avatar/styles.ts
packages/ui/src/components/avatar/styles.ts
import { makeStyles } from 'tss-react/mui'; const useStyles = makeStyles()((theme) => ({ root: { width: '28px', height: '28px', minWidth: '28px', minHeight: '28px', borderRadius: '50%', overflow: 'hidden', background: theme.palette.custom.general.surfaceTwo, display: 'flex', align...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/icons/index.tsx
packages/ui/src/components/icons/index.tsx
export { default as FacebookIcon } from '@/components/icons/facebook'; export { default as ForboleIcon } from '@/components/icons/forbole'; export { default as GithubIcon } from '@/components/icons/github'; export { default as LinkedinIcon } from '@/components/icons/linkedIn'; export { default as MediumIcon } from '@/c...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/icons/linkedIn/index.tsx
packages/ui/src/components/icons/linkedIn/index.tsx
const LinkedIn = () => ( <svg width="26px" height="26px" viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" > <title>LinkedIn</title> <path d="M14.9890268,1.20241657e-06 C21.0563025,-0.00241991759 26.5271266,3.6516228...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/icons/medium/index.tsx
packages/ui/src/components/icons/medium/index.tsx
const Medium = () => ( <svg width="26px" height="26px" viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" > <title>Medium</title> <path d="M15.5,0 C15.5366185,0.00750277472 15.5737035,0.0125142661 15.611,0.015 C15.874,...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/icons/twitter/index.tsx
packages/ui/src/components/icons/twitter/index.tsx
const Twitter = () => ( <svg width="26px" height="26px" viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" > <title>Twitter</title> <path d="M15.030104,-3.90798505e-14 C17.4327457,0.00844510715 19.7985346,0.591320629 2...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/icons/facebook/index.tsx
packages/ui/src/components/icons/facebook/index.tsx
const Facebook = () => ( <svg width="26px" height="26px" viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" > <title>Facebook</title> <path d="M30.0000769,15.091 C30.0127495,11.1004785 28.4393963,7.26840764 25.6262033,...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/icons/github/index.tsx
packages/ui/src/components/icons/github/index.tsx
const Github = () => ( <svg width="26px" height="26px" viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" > <title>Github</title> <path d="M30,16.6 C29.9902635,16.6482336 29.9832524,16.6969776 29.979,16.746 C29.943381...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/icons/youtube/index.tsx
packages/ui/src/components/icons/youtube/index.tsx
const YouTube = () => ( <svg width="26px" height="26px" viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" > <title>YouTube</title> <path d="M16.280007,0.0528529024 C16.9755748,0.112143963 17.6662177,0.219399109 18.347...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/icons/forbole/index.tsx
packages/ui/src/components/icons/forbole/index.tsx
const Forbole = () => ( <svg xmlns="http://www.w3.org/2000/svg" width="157.198" height="31.202" viewBox="0 0 157.198 31.202" > <g id="logo_white" transform="translate(0.502 0.488)"> <path id="Union_2" data-name="Union 2" d="M11.493,29.241c-.956-.93-1.861-1.954-2.834...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/icons/telegram/index.tsx
packages/ui/src/components/icons/telegram/index.tsx
const Telegram = () => ( <svg width="26px" height="26px" viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" > <title>Telegram</title> <path d="M16.3,0.061 C16.973605,0.118532992 17.6420717,0.225487657 18.3,0.381 C20.52...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/sort_arrows/index.test.tsx
packages/ui/src/components/sort_arrows/index.test.tsx
import renderer from 'react-test-renderer'; import SortArrows from '@/components/sort_arrows'; import MockTheme from '@/tests/mocks/MockTheme'; // ================================== // unit tests // ================================== describe('component: SortArrows', () => { it('matches snapshot', () => { const ...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false
forbole/big-dipper-2.0-cosmos
https://github.com/forbole/big-dipper-2.0-cosmos/blob/de058820eacedc2e9cbe82ad7fec8239faedeeff/packages/ui/src/components/sort_arrows/index.tsx
packages/ui/src/components/sort_arrows/index.tsx
import { FC } from 'react'; import SortDownIcon from 'shared-utils/assets/icon-sort-down.svg'; import useStyles from '@/components/sort_arrows/styles'; type SortArrowsProps = { className?: string; sort?: 'asc' | 'desc'; }; const SortArrows: FC<SortArrowsProps> = ({ className, sort }) => { const { classes, cx } ...
typescript
Apache-2.0
de058820eacedc2e9cbe82ad7fec8239faedeeff
2026-01-05T04:51:16.060495Z
false