Skip to content

Commit

Permalink
chore: remove unused web-solana-feature/ui
Browse files Browse the repository at this point in the history
  • Loading branch information
beeman committed Nov 13, 2024
1 parent f2868bf commit dac2f24
Show file tree
Hide file tree
Showing 42 changed files with 0 additions and 1,246 deletions.
2 changes: 0 additions & 2 deletions libs/web/core/feature/src/lib/web-core-routes-user.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { UserCommunityFeature } from '@pubkey-link/web-community-feature'
import { DashboardFeature } from '@pubkey-link/web-dashboard-feature'
import { UserNetworkAssetDetailFeature } from '@pubkey-link/web-network-asset-feature'
import { SolanaFeature } from '@pubkey-link/web-solana-feature'
import { UserListFeature, UserProfileFeature, UserProfileRedirectFeature } from '@pubkey-link/web-user-feature'
import { UiDashboardItem } from '@pubkey-ui/core'
import { IconSettings, IconUsers, IconUsersGroup } from '@tabler/icons-react'
Expand All @@ -20,7 +19,6 @@ const routes: RouteObject[] = [
{ path: '/c/*', element: <UserCommunityFeature /> },
{ path: '/dashboard', element: <DashboardFeature links={links} /> },
{ path: '/settings/*', element: <UserProfileRedirectFeature to="settings" /> },
{ path: '/solana/*', element: <SolanaFeature /> },
{ path: '/u/*', element: <UserProfileFeature /> },
{ path: '/users/*', element: <UserListFeature /> },
]
Expand Down
3 changes: 0 additions & 3 deletions libs/web/solana/data-access/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
export * from './lib/cluster-provider'
export * from './lib/create-transaction'
export * from './lib/solana-provider'
export * from './lib/ui-toast-link'
export * from './lib/use-account'
33 changes: 0 additions & 33 deletions libs/web/solana/data-access/src/lib/cluster-provider.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { WalletAdapterNetwork } from '@solana/wallet-adapter-base'
import { clusterApiUrl } from '@solana/web3.js'
import { atom, useAtomValue, useSetAtom } from 'jotai'
import { atomWithStorage } from 'jotai/utils'
Expand All @@ -17,18 +16,6 @@ export enum ClusterNetwork {
Devnet = 'devnet',
Custom = 'custom',
}
export function toWalletAdapterNetwork(cluster?: ClusterNetwork): WalletAdapterNetwork | undefined {
switch (cluster) {
case ClusterNetwork.Mainnet:
return WalletAdapterNetwork.Mainnet
case ClusterNetwork.Testnet:
return WalletAdapterNetwork.Testnet
case ClusterNetwork.Devnet:
return WalletAdapterNetwork.Devnet
default:
return undefined
}
}

export const defaultClusters: Cluster[] = [
{
Expand Down Expand Up @@ -117,23 +104,3 @@ function getClusterUrlParam(cluster: Cluster): string {

return suffix.length ? `?cluster=${suffix}` : ''
}

export function getExplorerUrl(cluster: Cluster, path: string): string {
let suffix = ''
switch (cluster.network) {
case ClusterNetwork.Devnet:
suffix = 'devnet-solana'
break
case ClusterNetwork.Mainnet:
suffix = ''
break
case ClusterNetwork.Testnet:
suffix = 'testnet-solana'
break
default:
suffix = `custom&customUrl=${encodeURIComponent(cluster.endpoint)}`
break
}

return `https://solana.fm/${path}${suffix.length ? `?cluster=${suffix}` : ''}`
}
50 changes: 0 additions & 50 deletions libs/web/solana/data-access/src/lib/create-transaction.ts

This file was deleted.

18 changes: 0 additions & 18 deletions libs/web/solana/data-access/src/lib/ui-toast-link.tsx

This file was deleted.

139 changes: 0 additions & 139 deletions libs/web/solana/data-access/src/lib/use-account.tsx

This file was deleted.

12 changes: 0 additions & 12 deletions libs/web/solana/feature/.babelrc

This file was deleted.

18 changes: 0 additions & 18 deletions libs/web/solana/feature/.eslintrc.json

This file was deleted.

7 changes: 0 additions & 7 deletions libs/web/solana/feature/README.md

This file was deleted.

13 changes: 0 additions & 13 deletions libs/web/solana/feature/project.json

This file was deleted.

3 changes: 0 additions & 3 deletions libs/web/solana/feature/src/index.ts

This file was deleted.

48 changes: 0 additions & 48 deletions libs/web/solana/feature/src/lib/account/account-detail-feature.tsx

This file was deleted.

Loading

0 comments on commit dac2f24

Please sign in to comment.