Skip to content

Commit

Permalink
chore: use kebab-case for filename (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
tien authored Jul 23, 2024
1 parent 3c505d6 commit 71a808f
Show file tree
Hide file tree
Showing 34 changed files with 37 additions and 37 deletions.
4 changes: 2 additions & 2 deletions apps/docs/src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import HomepageSponsors from "../components/HomepageSponsors";
import HomepageSponsors from "../components/homepage-sponsors";
import styles from "./index.module.css";
import Link from "@docusaurus/Link";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
import HomepageFeatures from "@site/src/components/HomepageFeatures";
import HomepageFeatures from "@site/src/components/homepage-features";
import Heading from "@theme/Heading";
import Layout from "@theme/Layout";
import clsx from "clsx";
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion apps/example/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import App from "./App.js";
import App from "./app.js";
import "./index.css";
import React from "react";
import ReactDOM from "react-dom/client";
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions packages/core/src/actions/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export { aggregateWallets } from "./aggregateWallets.js";
export { connectWallet } from "./connectWallet.js";
export { disconnectWallet } from "./disconnectWallet.js";
export { getAccounts } from "./getAccounts.js";
export { getClient } from "./getClient.js";
export { getConnectedWallets } from "./getConnectedWallets.js";
export { aggregateWallets } from "./aggregate-wallets.js";
export { connectWallet } from "./connect-wallet.js";
export { disconnectWallet } from "./disconnect-wallet.js";
export { getAccounts } from "./get-accounts.js";
export { getClient } from "./get-client.js";
export { getConnectedWallets } from "./get-connected-wallets.js";
export { preflight, query } from "./query.js";
4 changes: 2 additions & 2 deletions packages/core/src/actions/query.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { CommonDescriptor } from "../config.js";
import type {
InferInstructionResponse,
QueryInstruction,
} from "../QueryBuilder.js";
import type { CommonDescriptor } from "../config.js";
} from "../query-builder.js";
import type { ChainDefinition, TypedApi } from "polkadot-api";

export function preflight<TInstruction extends QueryInstruction>(
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export {
type InferQueryResponse,
type MultiInstruction,
type QueryInstruction,
} from "./QueryBuilder.js";
} from "./query-builder.js";
export * from "./actions/index.js";
export * from "./async-state.js";
export * from "./errors.js";
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/react/src/contexts/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useReconnectWallets } from "../hooks/useReconnectWallets.js";
import { useReconnectWallets } from "../hooks/use-reconnect-wallets.js";
import { chainConfigsAtom } from "../stores/config.js";
import { aggregatorsAtom, directWalletsAtom } from "../stores/wallets.js";
import { MutationEventSubjectContext } from "./mutation.js";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { accountsAtom } from "../stores/accounts.js";
import type { ChainHookOptions } from "./types.js";
import useChainId from "./useChainId.js";
import useChainId from "./use-chain-id.js";
import { useAtomValue } from "jotai";

/**
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
finalizedBlockAtomFamily,
} from "../stores/block.js";
import type { ChainHookOptions } from "./types.js";
import useChainId from "./useChainId.js";
import useChainId from "./use-chain-id.js";
import { useAtomValue } from "jotai";

/**
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { chainSpecDataAtomFamily } from "../stores/client.js";
import type { ChainHookOptions } from "./types.js";
import useChainId from "./useChainId.js";
import useChainId from "./use-chain-id.js";
import { useAtomValue } from "jotai";

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { clientAtomFamily } from "../stores/client.js";
import type { ChainHookOptions } from "./types.js";
import useChainId from "./useChainId.js";
import useChainId from "./use-chain-id.js";
import { useAtomValue } from "jotai";

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { walletsAtom } from "../stores/wallets.js";
import { useAsyncState } from "./useAsyncState.js";
import { useAsyncState } from "./use-async-state.js";
import { MutationError, PENDING, connectWallet } from "@reactive-dot/core";
import type { Wallet } from "@reactive-dot/core/wallets.js";
import { useAtomCallback } from "jotai/utils";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { walletsAtom } from "../stores/wallets.js";
import { useAsyncState } from "./useAsyncState.js";
import { useAsyncState } from "./use-async-state.js";
import { MutationError, PENDING, disconnectWallet } from "@reactive-dot/core";
import type { Wallet } from "@reactive-dot/core/wallets.js";
import { useAtomCallback } from "jotai/utils";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import {
} from "../contexts/mutation.js";
import { typedApiAtomFamily } from "../stores/client.js";
import type { ChainHookOptions } from "./types.js";
import { useAsyncState } from "./useAsyncState.js";
import useChainId from "./useChainId.js";
import { useAsyncState } from "./use-async-state.js";
import useChainId from "./use-chain-id.js";
import type { ChainId, Chains } from "@reactive-dot/core";
import { MutationError, PENDING } from "@reactive-dot/core";
import { useAtomCallback } from "jotai/utils";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
import type { Falsy, FalsyGuard, FlatHead } from "../types.js";
import { flatHead, stringify } from "../utils/vanilla.js";
import type { ChainHookOptions } from "./types.js";
import useChainId from "./useChainId.js";
import useChainId from "./use-chain-id.js";
import {
IDLE,
Query,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useWallets } from "./useWallets.js";
import { useWallets } from "./use-wallets.js";
import {
IDLE,
PENDING,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { typedApiAtomFamily } from "../stores/client.js";
import type { ChainHookOptions } from "./types.js";
import useChainId from "./useChainId.js";
import useChainId from "./use-chain-id.js";
import type { ChainId, Chains } from "@reactive-dot/core";
import { useAtomValue } from "jotai";
import type { TypedApi } from "polkadot-api";
Expand Down
File renamed without changes.
26 changes: 13 additions & 13 deletions packages/react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ export {
type ReDotSignerProviderProps,
} from "./contexts/index.js";
export type { ChainHookOptions } from "./hooks/types.js";
export { useAccounts } from "./hooks/useAccounts.js";
export { useBlock } from "./hooks/useBlock.js";
export { useChainSpecData } from "./hooks/useChainSpecData.js";
export { useClient } from "./hooks/useClient.js";
export { useConnectWallet } from "./hooks/useConnectWallet.js";
export { useDisconnectWallet } from "./hooks/useDisconnectWallet.js";
export { useMutation } from "./hooks/useMutation.js";
export { useMutationEffect } from "./hooks/useMutationEffect.js";
export { useAccounts } from "./hooks/use-accounts.js";
export { useBlock } from "./hooks/use-block.js";
export { useChainSpecData } from "./hooks/use-chain-spec-data.js";
export { useClient } from "./hooks/use-client.js";
export { useConnectWallet } from "./hooks/use-connect-wallet.js";
export { useDisconnectWallet } from "./hooks/use-disconnect-wallet.js";
export { useMutation } from "./hooks/use-mutation.js";
export { useMutationEffect } from "./hooks/use-mutation-effect.js";
export {
useLazyLoadQuery,
useLazyLoadQueryWithRefresh,
useQueryRefresher,
} from "./hooks/useQuery.js";
export { useReconnectWallets } from "./hooks/useReconnectWallets.js";
export { useResetQueryError } from "./hooks/useResetQueryError.js";
export { useTypedApi } from "./hooks/useTypedApi.js";
export { useConnectedWallets, useWallets } from "./hooks/useWallets.js";
} from "./hooks/use-query.js";
export { useReconnectWallets } from "./hooks/use-reconnect-wallets.js";
export { useResetQueryError } from "./hooks/use-reset-query-error.js";
export { useTypedApi } from "./hooks/use-typed-api.js";
export { useConnectedWallets, useWallets } from "./hooks/use-wallets.js";

0 comments on commit 71a808f

Please sign in to comment.