From 816a3df35215c43dfbd711c6545bf18bc1db39b2 Mon Sep 17 00:00:00 2001 From: Dexter Date: Tue, 15 Feb 2022 14:44:09 +0000 Subject: [PATCH] reogranizing --- apps/explorer/src/app/{src => }/App.scss | 0 apps/explorer/src/app/{src => }/App.test.tsx | 1 - .../{src => }/__generated__/globalTypes.ts | 0 apps/explorer/src/app/app.tsx | 33 ++++++++++++++---- .../app/{src => }/components/footer/index.tsx | 0 .../app/{src => }/components/header/index.tsx | 0 .../app/{src => }/components/main/index.tsx | 0 .../app/{src => }/components/nav/index.tsx | 0 .../router-error-boundary/index.tsx | 0 .../app/{src => }/components/search/index.tsx | 0 .../components/splash-loader/index.ts | 0 .../splash-loader/splash-loader.scss | 0 .../splash-loader/splash-loader.tsx | 0 .../components/splash-screen/index.ts | 0 .../splash-screen/splash-screen.scss | 0 .../splash-screen/splash-screen.tsx | 0 .../src/app/{src => }/config/index.tsx | 0 .../websocket/tendermint-websocket-context.ts | 0 .../tendermint-websocket-provider.tsx | 0 .../src/app/{src => }/hooks/use-fetch.tsx | 0 .../hooks/use-tendermint-websocket.tsx | 0 .../src/app/{src => }/lib/apollo-client.tsx | 0 .../src/app/{src => }/react-app-env.d.ts | 0 .../assets/__generated__/AssetsQuery.ts | 0 .../src/app/{src => }/routes/assets/index.tsx | 0 .../{src => }/routes/blocks/home/index.tsx | 0 .../app/{src => }/routes/blocks/id/index.tsx | 0 .../src/app/{src => }/routes/blocks/index.tsx | 0 .../tendermint-blockchain-response.d.ts | 0 .../blocks/tendermint-blocks-response.d.ts | 0 .../routes/blocks/tendermint-new-block.d.ts | 0 .../app/{src => }/routes/genesis/index.tsx | 0 .../genesis/tendermint-genesis-response.d.ts | 0 .../__generated__/ProposalsQuery.ts | 0 .../app/{src => }/routes/governance/index.tsx | 0 .../src/app/{src => }/routes/home/index.tsx | 0 .../src/app/{src => }/routes/index.tsx | 0 .../markets/__generated__/MarketsQuery.ts | 0 .../app/{src => }/routes/markets/index.tsx | 0 .../__generated__/NetworkParametersQuery.ts | 0 .../routes/network-parameters/index.tsx | 0 .../{src => }/routes/parties/home/index.tsx | 0 .../id/__generated__/PartyAssetsQuery.ts | 0 .../app/{src => }/routes/parties/id/index.tsx | 0 .../app/{src => }/routes/parties/index.tsx | 0 .../tendermint-transaction-response.d.ts | 0 .../src/app/{src => }/routes/router-config.ts | 0 .../app/{src => }/routes/txs/home/index.tsx | 0 .../src/app/{src => }/routes/txs/id/index.tsx | 0 .../src/app/{src => }/routes/txs/index.tsx | 0 .../txs/tendermint-transaction-response.d.tsx | 0 ...nt-unconfirmed-transactions-response.d.tsx | 0 .../routes/types/chain-explorer-response.d.ts | 0 .../types/tenderming-error-response.d.ts | 0 .../validators/__generated__/NodesQuery.ts | 0 .../app/{src => }/routes/validators/index.tsx | 0 .../tendermint-validator-response.tsx | 0 apps/explorer/src/app/{src => }/setupTests.ts | 0 apps/explorer/src/app/src/App.tsx | 33 ------------------ apps/explorer/src/app/src/index.tsx | 10 ------ .../{src => }/styles/AlphaLyrae-Medium.woff | Bin .../src/app/{src => }/styles/_colors.scss | 0 .../src/app/{src => }/styles/_fonts.scss | 0 .../src/app/{src => }/styles/_reset.scss | 0 apps/explorer/src/main.tsx | 2 +- 65 files changed, 28 insertions(+), 51 deletions(-) rename apps/explorer/src/app/{src => }/App.scss (100%) rename apps/explorer/src/app/{src => }/App.test.tsx (90%) rename apps/explorer/src/app/{src => }/__generated__/globalTypes.ts (100%) rename apps/explorer/src/app/{src => }/components/footer/index.tsx (100%) rename apps/explorer/src/app/{src => }/components/header/index.tsx (100%) rename apps/explorer/src/app/{src => }/components/main/index.tsx (100%) rename apps/explorer/src/app/{src => }/components/nav/index.tsx (100%) rename apps/explorer/src/app/{src => }/components/router-error-boundary/index.tsx (100%) rename apps/explorer/src/app/{src => }/components/search/index.tsx (100%) rename apps/explorer/src/app/{src => }/components/splash-loader/index.ts (100%) rename apps/explorer/src/app/{src => }/components/splash-loader/splash-loader.scss (100%) rename apps/explorer/src/app/{src => }/components/splash-loader/splash-loader.tsx (100%) rename apps/explorer/src/app/{src => }/components/splash-screen/index.ts (100%) rename apps/explorer/src/app/{src => }/components/splash-screen/splash-screen.scss (100%) rename apps/explorer/src/app/{src => }/components/splash-screen/splash-screen.tsx (100%) rename apps/explorer/src/app/{src => }/config/index.tsx (100%) rename apps/explorer/src/app/{src => }/contexts/websocket/tendermint-websocket-context.ts (100%) rename apps/explorer/src/app/{src => }/contexts/websocket/tendermint-websocket-provider.tsx (100%) rename apps/explorer/src/app/{src => }/hooks/use-fetch.tsx (100%) rename apps/explorer/src/app/{src => }/hooks/use-tendermint-websocket.tsx (100%) rename apps/explorer/src/app/{src => }/lib/apollo-client.tsx (100%) rename apps/explorer/src/app/{src => }/react-app-env.d.ts (100%) rename apps/explorer/src/app/{src => }/routes/assets/__generated__/AssetsQuery.ts (100%) rename apps/explorer/src/app/{src => }/routes/assets/index.tsx (100%) rename apps/explorer/src/app/{src => }/routes/blocks/home/index.tsx (100%) rename apps/explorer/src/app/{src => }/routes/blocks/id/index.tsx (100%) rename apps/explorer/src/app/{src => }/routes/blocks/index.tsx (100%) rename apps/explorer/src/app/{src => }/routes/blocks/tendermint-blockchain-response.d.ts (100%) rename apps/explorer/src/app/{src => }/routes/blocks/tendermint-blocks-response.d.ts (100%) rename apps/explorer/src/app/{src => }/routes/blocks/tendermint-new-block.d.ts (100%) rename apps/explorer/src/app/{src => }/routes/genesis/index.tsx (100%) rename apps/explorer/src/app/{src => }/routes/genesis/tendermint-genesis-response.d.ts (100%) rename apps/explorer/src/app/{src => }/routes/governance/__generated__/ProposalsQuery.ts (100%) rename apps/explorer/src/app/{src => }/routes/governance/index.tsx (100%) rename apps/explorer/src/app/{src => }/routes/home/index.tsx (100%) rename apps/explorer/src/app/{src => }/routes/index.tsx (100%) rename apps/explorer/src/app/{src => }/routes/markets/__generated__/MarketsQuery.ts (100%) rename apps/explorer/src/app/{src => }/routes/markets/index.tsx (100%) rename apps/explorer/src/app/{src => }/routes/network-parameters/__generated__/NetworkParametersQuery.ts (100%) rename apps/explorer/src/app/{src => }/routes/network-parameters/index.tsx (100%) rename apps/explorer/src/app/{src => }/routes/parties/home/index.tsx (100%) rename apps/explorer/src/app/{src => }/routes/parties/id/__generated__/PartyAssetsQuery.ts (100%) rename apps/explorer/src/app/{src => }/routes/parties/id/index.tsx (100%) rename apps/explorer/src/app/{src => }/routes/parties/index.tsx (100%) rename apps/explorer/src/app/{src => }/routes/parties/tendermint-transaction-response.d.ts (100%) rename apps/explorer/src/app/{src => }/routes/router-config.ts (100%) rename apps/explorer/src/app/{src => }/routes/txs/home/index.tsx (100%) rename apps/explorer/src/app/{src => }/routes/txs/id/index.tsx (100%) rename apps/explorer/src/app/{src => }/routes/txs/index.tsx (100%) rename apps/explorer/src/app/{src => }/routes/txs/tendermint-transaction-response.d.tsx (100%) rename apps/explorer/src/app/{src => }/routes/txs/tendermint-unconfirmed-transactions-response.d.tsx (100%) rename apps/explorer/src/app/{src => }/routes/types/chain-explorer-response.d.ts (100%) rename apps/explorer/src/app/{src => }/routes/types/tenderming-error-response.d.ts (100%) rename apps/explorer/src/app/{src => }/routes/validators/__generated__/NodesQuery.ts (100%) rename apps/explorer/src/app/{src => }/routes/validators/index.tsx (100%) rename apps/explorer/src/app/{src => }/routes/validators/tendermint-validator-response.tsx (100%) rename apps/explorer/src/app/{src => }/setupTests.ts (100%) delete mode 100644 apps/explorer/src/app/src/App.tsx delete mode 100644 apps/explorer/src/app/src/index.tsx rename apps/explorer/src/app/{src => }/styles/AlphaLyrae-Medium.woff (100%) rename apps/explorer/src/app/{src => }/styles/_colors.scss (100%) rename apps/explorer/src/app/{src => }/styles/_fonts.scss (100%) rename apps/explorer/src/app/{src => }/styles/_reset.scss (100%) diff --git a/apps/explorer/src/app/src/App.scss b/apps/explorer/src/app/App.scss similarity index 100% rename from apps/explorer/src/app/src/App.scss rename to apps/explorer/src/app/App.scss diff --git a/apps/explorer/src/app/src/App.test.tsx b/apps/explorer/src/app/App.test.tsx similarity index 90% rename from apps/explorer/src/app/src/App.test.tsx rename to apps/explorer/src/app/App.test.tsx index 2a68616d9..1f03afeec 100644 --- a/apps/explorer/src/app/src/App.test.tsx +++ b/apps/explorer/src/app/App.test.tsx @@ -1,4 +1,3 @@ -import React from 'react'; import { render, screen } from '@testing-library/react'; import App from './App'; diff --git a/apps/explorer/src/app/src/__generated__/globalTypes.ts b/apps/explorer/src/app/__generated__/globalTypes.ts similarity index 100% rename from apps/explorer/src/app/src/__generated__/globalTypes.ts rename to apps/explorer/src/app/__generated__/globalTypes.ts diff --git a/apps/explorer/src/app/app.tsx b/apps/explorer/src/app/app.tsx index 0bbe4e013..80d4d0b10 100644 --- a/apps/explorer/src/app/app.tsx +++ b/apps/explorer/src/app/app.tsx @@ -1,11 +1,32 @@ -// eslint-disable-next-line @typescript-eslint/no-unused-vars -import styles from './app.module.scss'; +import './App.scss'; -import { Route, Link } from 'react-router-dom'; -import App2 from './src/App'; +import { ApolloProvider } from '@apollo/client'; -export function App() { - return ; +import { createClient } from './lib/apollo-client'; +import { Nav } from './components/nav'; +import { Footer } from './components/footer'; +import { Header } from './components/header'; +import { Main } from './components/main'; +import React from 'react'; +import { DATA_SOURCES } from './config'; +import { TendermintWebsocketProvider } from './contexts/websocket/tendermint-websocket-provider'; + +function App() { + const [client] = React.useState(createClient(DATA_SOURCES.dataNodeUrl)); + return ( + + +
+
+
+
+
+
+ ); } export default App; diff --git a/apps/explorer/src/app/src/components/footer/index.tsx b/apps/explorer/src/app/components/footer/index.tsx similarity index 100% rename from apps/explorer/src/app/src/components/footer/index.tsx rename to apps/explorer/src/app/components/footer/index.tsx diff --git a/apps/explorer/src/app/src/components/header/index.tsx b/apps/explorer/src/app/components/header/index.tsx similarity index 100% rename from apps/explorer/src/app/src/components/header/index.tsx rename to apps/explorer/src/app/components/header/index.tsx diff --git a/apps/explorer/src/app/src/components/main/index.tsx b/apps/explorer/src/app/components/main/index.tsx similarity index 100% rename from apps/explorer/src/app/src/components/main/index.tsx rename to apps/explorer/src/app/components/main/index.tsx diff --git a/apps/explorer/src/app/src/components/nav/index.tsx b/apps/explorer/src/app/components/nav/index.tsx similarity index 100% rename from apps/explorer/src/app/src/components/nav/index.tsx rename to apps/explorer/src/app/components/nav/index.tsx diff --git a/apps/explorer/src/app/src/components/router-error-boundary/index.tsx b/apps/explorer/src/app/components/router-error-boundary/index.tsx similarity index 100% rename from apps/explorer/src/app/src/components/router-error-boundary/index.tsx rename to apps/explorer/src/app/components/router-error-boundary/index.tsx diff --git a/apps/explorer/src/app/src/components/search/index.tsx b/apps/explorer/src/app/components/search/index.tsx similarity index 100% rename from apps/explorer/src/app/src/components/search/index.tsx rename to apps/explorer/src/app/components/search/index.tsx diff --git a/apps/explorer/src/app/src/components/splash-loader/index.ts b/apps/explorer/src/app/components/splash-loader/index.ts similarity index 100% rename from apps/explorer/src/app/src/components/splash-loader/index.ts rename to apps/explorer/src/app/components/splash-loader/index.ts diff --git a/apps/explorer/src/app/src/components/splash-loader/splash-loader.scss b/apps/explorer/src/app/components/splash-loader/splash-loader.scss similarity index 100% rename from apps/explorer/src/app/src/components/splash-loader/splash-loader.scss rename to apps/explorer/src/app/components/splash-loader/splash-loader.scss diff --git a/apps/explorer/src/app/src/components/splash-loader/splash-loader.tsx b/apps/explorer/src/app/components/splash-loader/splash-loader.tsx similarity index 100% rename from apps/explorer/src/app/src/components/splash-loader/splash-loader.tsx rename to apps/explorer/src/app/components/splash-loader/splash-loader.tsx diff --git a/apps/explorer/src/app/src/components/splash-screen/index.ts b/apps/explorer/src/app/components/splash-screen/index.ts similarity index 100% rename from apps/explorer/src/app/src/components/splash-screen/index.ts rename to apps/explorer/src/app/components/splash-screen/index.ts diff --git a/apps/explorer/src/app/src/components/splash-screen/splash-screen.scss b/apps/explorer/src/app/components/splash-screen/splash-screen.scss similarity index 100% rename from apps/explorer/src/app/src/components/splash-screen/splash-screen.scss rename to apps/explorer/src/app/components/splash-screen/splash-screen.scss diff --git a/apps/explorer/src/app/src/components/splash-screen/splash-screen.tsx b/apps/explorer/src/app/components/splash-screen/splash-screen.tsx similarity index 100% rename from apps/explorer/src/app/src/components/splash-screen/splash-screen.tsx rename to apps/explorer/src/app/components/splash-screen/splash-screen.tsx diff --git a/apps/explorer/src/app/src/config/index.tsx b/apps/explorer/src/app/config/index.tsx similarity index 100% rename from apps/explorer/src/app/src/config/index.tsx rename to apps/explorer/src/app/config/index.tsx diff --git a/apps/explorer/src/app/src/contexts/websocket/tendermint-websocket-context.ts b/apps/explorer/src/app/contexts/websocket/tendermint-websocket-context.ts similarity index 100% rename from apps/explorer/src/app/src/contexts/websocket/tendermint-websocket-context.ts rename to apps/explorer/src/app/contexts/websocket/tendermint-websocket-context.ts diff --git a/apps/explorer/src/app/src/contexts/websocket/tendermint-websocket-provider.tsx b/apps/explorer/src/app/contexts/websocket/tendermint-websocket-provider.tsx similarity index 100% rename from apps/explorer/src/app/src/contexts/websocket/tendermint-websocket-provider.tsx rename to apps/explorer/src/app/contexts/websocket/tendermint-websocket-provider.tsx diff --git a/apps/explorer/src/app/src/hooks/use-fetch.tsx b/apps/explorer/src/app/hooks/use-fetch.tsx similarity index 100% rename from apps/explorer/src/app/src/hooks/use-fetch.tsx rename to apps/explorer/src/app/hooks/use-fetch.tsx diff --git a/apps/explorer/src/app/src/hooks/use-tendermint-websocket.tsx b/apps/explorer/src/app/hooks/use-tendermint-websocket.tsx similarity index 100% rename from apps/explorer/src/app/src/hooks/use-tendermint-websocket.tsx rename to apps/explorer/src/app/hooks/use-tendermint-websocket.tsx diff --git a/apps/explorer/src/app/src/lib/apollo-client.tsx b/apps/explorer/src/app/lib/apollo-client.tsx similarity index 100% rename from apps/explorer/src/app/src/lib/apollo-client.tsx rename to apps/explorer/src/app/lib/apollo-client.tsx diff --git a/apps/explorer/src/app/src/react-app-env.d.ts b/apps/explorer/src/app/react-app-env.d.ts similarity index 100% rename from apps/explorer/src/app/src/react-app-env.d.ts rename to apps/explorer/src/app/react-app-env.d.ts diff --git a/apps/explorer/src/app/src/routes/assets/__generated__/AssetsQuery.ts b/apps/explorer/src/app/routes/assets/__generated__/AssetsQuery.ts similarity index 100% rename from apps/explorer/src/app/src/routes/assets/__generated__/AssetsQuery.ts rename to apps/explorer/src/app/routes/assets/__generated__/AssetsQuery.ts diff --git a/apps/explorer/src/app/src/routes/assets/index.tsx b/apps/explorer/src/app/routes/assets/index.tsx similarity index 100% rename from apps/explorer/src/app/src/routes/assets/index.tsx rename to apps/explorer/src/app/routes/assets/index.tsx diff --git a/apps/explorer/src/app/src/routes/blocks/home/index.tsx b/apps/explorer/src/app/routes/blocks/home/index.tsx similarity index 100% rename from apps/explorer/src/app/src/routes/blocks/home/index.tsx rename to apps/explorer/src/app/routes/blocks/home/index.tsx diff --git a/apps/explorer/src/app/src/routes/blocks/id/index.tsx b/apps/explorer/src/app/routes/blocks/id/index.tsx similarity index 100% rename from apps/explorer/src/app/src/routes/blocks/id/index.tsx rename to apps/explorer/src/app/routes/blocks/id/index.tsx diff --git a/apps/explorer/src/app/src/routes/blocks/index.tsx b/apps/explorer/src/app/routes/blocks/index.tsx similarity index 100% rename from apps/explorer/src/app/src/routes/blocks/index.tsx rename to apps/explorer/src/app/routes/blocks/index.tsx diff --git a/apps/explorer/src/app/src/routes/blocks/tendermint-blockchain-response.d.ts b/apps/explorer/src/app/routes/blocks/tendermint-blockchain-response.d.ts similarity index 100% rename from apps/explorer/src/app/src/routes/blocks/tendermint-blockchain-response.d.ts rename to apps/explorer/src/app/routes/blocks/tendermint-blockchain-response.d.ts diff --git a/apps/explorer/src/app/src/routes/blocks/tendermint-blocks-response.d.ts b/apps/explorer/src/app/routes/blocks/tendermint-blocks-response.d.ts similarity index 100% rename from apps/explorer/src/app/src/routes/blocks/tendermint-blocks-response.d.ts rename to apps/explorer/src/app/routes/blocks/tendermint-blocks-response.d.ts diff --git a/apps/explorer/src/app/src/routes/blocks/tendermint-new-block.d.ts b/apps/explorer/src/app/routes/blocks/tendermint-new-block.d.ts similarity index 100% rename from apps/explorer/src/app/src/routes/blocks/tendermint-new-block.d.ts rename to apps/explorer/src/app/routes/blocks/tendermint-new-block.d.ts diff --git a/apps/explorer/src/app/src/routes/genesis/index.tsx b/apps/explorer/src/app/routes/genesis/index.tsx similarity index 100% rename from apps/explorer/src/app/src/routes/genesis/index.tsx rename to apps/explorer/src/app/routes/genesis/index.tsx diff --git a/apps/explorer/src/app/src/routes/genesis/tendermint-genesis-response.d.ts b/apps/explorer/src/app/routes/genesis/tendermint-genesis-response.d.ts similarity index 100% rename from apps/explorer/src/app/src/routes/genesis/tendermint-genesis-response.d.ts rename to apps/explorer/src/app/routes/genesis/tendermint-genesis-response.d.ts diff --git a/apps/explorer/src/app/src/routes/governance/__generated__/ProposalsQuery.ts b/apps/explorer/src/app/routes/governance/__generated__/ProposalsQuery.ts similarity index 100% rename from apps/explorer/src/app/src/routes/governance/__generated__/ProposalsQuery.ts rename to apps/explorer/src/app/routes/governance/__generated__/ProposalsQuery.ts diff --git a/apps/explorer/src/app/src/routes/governance/index.tsx b/apps/explorer/src/app/routes/governance/index.tsx similarity index 100% rename from apps/explorer/src/app/src/routes/governance/index.tsx rename to apps/explorer/src/app/routes/governance/index.tsx diff --git a/apps/explorer/src/app/src/routes/home/index.tsx b/apps/explorer/src/app/routes/home/index.tsx similarity index 100% rename from apps/explorer/src/app/src/routes/home/index.tsx rename to apps/explorer/src/app/routes/home/index.tsx diff --git a/apps/explorer/src/app/src/routes/index.tsx b/apps/explorer/src/app/routes/index.tsx similarity index 100% rename from apps/explorer/src/app/src/routes/index.tsx rename to apps/explorer/src/app/routes/index.tsx diff --git a/apps/explorer/src/app/src/routes/markets/__generated__/MarketsQuery.ts b/apps/explorer/src/app/routes/markets/__generated__/MarketsQuery.ts similarity index 100% rename from apps/explorer/src/app/src/routes/markets/__generated__/MarketsQuery.ts rename to apps/explorer/src/app/routes/markets/__generated__/MarketsQuery.ts diff --git a/apps/explorer/src/app/src/routes/markets/index.tsx b/apps/explorer/src/app/routes/markets/index.tsx similarity index 100% rename from apps/explorer/src/app/src/routes/markets/index.tsx rename to apps/explorer/src/app/routes/markets/index.tsx diff --git a/apps/explorer/src/app/src/routes/network-parameters/__generated__/NetworkParametersQuery.ts b/apps/explorer/src/app/routes/network-parameters/__generated__/NetworkParametersQuery.ts similarity index 100% rename from apps/explorer/src/app/src/routes/network-parameters/__generated__/NetworkParametersQuery.ts rename to apps/explorer/src/app/routes/network-parameters/__generated__/NetworkParametersQuery.ts diff --git a/apps/explorer/src/app/src/routes/network-parameters/index.tsx b/apps/explorer/src/app/routes/network-parameters/index.tsx similarity index 100% rename from apps/explorer/src/app/src/routes/network-parameters/index.tsx rename to apps/explorer/src/app/routes/network-parameters/index.tsx diff --git a/apps/explorer/src/app/src/routes/parties/home/index.tsx b/apps/explorer/src/app/routes/parties/home/index.tsx similarity index 100% rename from apps/explorer/src/app/src/routes/parties/home/index.tsx rename to apps/explorer/src/app/routes/parties/home/index.tsx diff --git a/apps/explorer/src/app/src/routes/parties/id/__generated__/PartyAssetsQuery.ts b/apps/explorer/src/app/routes/parties/id/__generated__/PartyAssetsQuery.ts similarity index 100% rename from apps/explorer/src/app/src/routes/parties/id/__generated__/PartyAssetsQuery.ts rename to apps/explorer/src/app/routes/parties/id/__generated__/PartyAssetsQuery.ts diff --git a/apps/explorer/src/app/src/routes/parties/id/index.tsx b/apps/explorer/src/app/routes/parties/id/index.tsx similarity index 100% rename from apps/explorer/src/app/src/routes/parties/id/index.tsx rename to apps/explorer/src/app/routes/parties/id/index.tsx diff --git a/apps/explorer/src/app/src/routes/parties/index.tsx b/apps/explorer/src/app/routes/parties/index.tsx similarity index 100% rename from apps/explorer/src/app/src/routes/parties/index.tsx rename to apps/explorer/src/app/routes/parties/index.tsx diff --git a/apps/explorer/src/app/src/routes/parties/tendermint-transaction-response.d.ts b/apps/explorer/src/app/routes/parties/tendermint-transaction-response.d.ts similarity index 100% rename from apps/explorer/src/app/src/routes/parties/tendermint-transaction-response.d.ts rename to apps/explorer/src/app/routes/parties/tendermint-transaction-response.d.ts diff --git a/apps/explorer/src/app/src/routes/router-config.ts b/apps/explorer/src/app/routes/router-config.ts similarity index 100% rename from apps/explorer/src/app/src/routes/router-config.ts rename to apps/explorer/src/app/routes/router-config.ts diff --git a/apps/explorer/src/app/src/routes/txs/home/index.tsx b/apps/explorer/src/app/routes/txs/home/index.tsx similarity index 100% rename from apps/explorer/src/app/src/routes/txs/home/index.tsx rename to apps/explorer/src/app/routes/txs/home/index.tsx diff --git a/apps/explorer/src/app/src/routes/txs/id/index.tsx b/apps/explorer/src/app/routes/txs/id/index.tsx similarity index 100% rename from apps/explorer/src/app/src/routes/txs/id/index.tsx rename to apps/explorer/src/app/routes/txs/id/index.tsx diff --git a/apps/explorer/src/app/src/routes/txs/index.tsx b/apps/explorer/src/app/routes/txs/index.tsx similarity index 100% rename from apps/explorer/src/app/src/routes/txs/index.tsx rename to apps/explorer/src/app/routes/txs/index.tsx diff --git a/apps/explorer/src/app/src/routes/txs/tendermint-transaction-response.d.tsx b/apps/explorer/src/app/routes/txs/tendermint-transaction-response.d.tsx similarity index 100% rename from apps/explorer/src/app/src/routes/txs/tendermint-transaction-response.d.tsx rename to apps/explorer/src/app/routes/txs/tendermint-transaction-response.d.tsx diff --git a/apps/explorer/src/app/src/routes/txs/tendermint-unconfirmed-transactions-response.d.tsx b/apps/explorer/src/app/routes/txs/tendermint-unconfirmed-transactions-response.d.tsx similarity index 100% rename from apps/explorer/src/app/src/routes/txs/tendermint-unconfirmed-transactions-response.d.tsx rename to apps/explorer/src/app/routes/txs/tendermint-unconfirmed-transactions-response.d.tsx diff --git a/apps/explorer/src/app/src/routes/types/chain-explorer-response.d.ts b/apps/explorer/src/app/routes/types/chain-explorer-response.d.ts similarity index 100% rename from apps/explorer/src/app/src/routes/types/chain-explorer-response.d.ts rename to apps/explorer/src/app/routes/types/chain-explorer-response.d.ts diff --git a/apps/explorer/src/app/src/routes/types/tenderming-error-response.d.ts b/apps/explorer/src/app/routes/types/tenderming-error-response.d.ts similarity index 100% rename from apps/explorer/src/app/src/routes/types/tenderming-error-response.d.ts rename to apps/explorer/src/app/routes/types/tenderming-error-response.d.ts diff --git a/apps/explorer/src/app/src/routes/validators/__generated__/NodesQuery.ts b/apps/explorer/src/app/routes/validators/__generated__/NodesQuery.ts similarity index 100% rename from apps/explorer/src/app/src/routes/validators/__generated__/NodesQuery.ts rename to apps/explorer/src/app/routes/validators/__generated__/NodesQuery.ts diff --git a/apps/explorer/src/app/src/routes/validators/index.tsx b/apps/explorer/src/app/routes/validators/index.tsx similarity index 100% rename from apps/explorer/src/app/src/routes/validators/index.tsx rename to apps/explorer/src/app/routes/validators/index.tsx diff --git a/apps/explorer/src/app/src/routes/validators/tendermint-validator-response.tsx b/apps/explorer/src/app/routes/validators/tendermint-validator-response.tsx similarity index 100% rename from apps/explorer/src/app/src/routes/validators/tendermint-validator-response.tsx rename to apps/explorer/src/app/routes/validators/tendermint-validator-response.tsx diff --git a/apps/explorer/src/app/src/setupTests.ts b/apps/explorer/src/app/setupTests.ts similarity index 100% rename from apps/explorer/src/app/src/setupTests.ts rename to apps/explorer/src/app/setupTests.ts diff --git a/apps/explorer/src/app/src/App.tsx b/apps/explorer/src/app/src/App.tsx deleted file mode 100644 index 1f9740647..000000000 --- a/apps/explorer/src/app/src/App.tsx +++ /dev/null @@ -1,33 +0,0 @@ -import './App.scss'; - -import { ApolloProvider } from '@apollo/client'; - -import { createClient } from './lib/apollo-client'; -import { BrowserRouter as Router } from 'react-router-dom'; -import { Nav } from './components/nav'; -import { Footer } from './components/footer'; -import { Header } from './components/header'; -import { Main } from './components/main'; -import React from 'react'; -import { DATA_SOURCES } from './config'; -import { TendermintWebsocketProvider } from './contexts/websocket/tendermint-websocket-provider'; - -function App() { - const [client] = React.useState(createClient(DATA_SOURCES.dataNodeUrl)); - return ( - - -
-
-
-
-
-
- ); -} - -export default App; diff --git a/apps/explorer/src/app/src/index.tsx b/apps/explorer/src/app/src/index.tsx deleted file mode 100644 index c1f31c5f4..000000000 --- a/apps/explorer/src/app/src/index.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import React from 'react'; -import ReactDOM from 'react-dom'; -import App from './App'; - -ReactDOM.render( - - - , - document.getElementById('root') -); diff --git a/apps/explorer/src/app/src/styles/AlphaLyrae-Medium.woff b/apps/explorer/src/app/styles/AlphaLyrae-Medium.woff similarity index 100% rename from apps/explorer/src/app/src/styles/AlphaLyrae-Medium.woff rename to apps/explorer/src/app/styles/AlphaLyrae-Medium.woff diff --git a/apps/explorer/src/app/src/styles/_colors.scss b/apps/explorer/src/app/styles/_colors.scss similarity index 100% rename from apps/explorer/src/app/src/styles/_colors.scss rename to apps/explorer/src/app/styles/_colors.scss diff --git a/apps/explorer/src/app/src/styles/_fonts.scss b/apps/explorer/src/app/styles/_fonts.scss similarity index 100% rename from apps/explorer/src/app/src/styles/_fonts.scss rename to apps/explorer/src/app/styles/_fonts.scss diff --git a/apps/explorer/src/app/src/styles/_reset.scss b/apps/explorer/src/app/styles/_reset.scss similarity index 100% rename from apps/explorer/src/app/src/styles/_reset.scss rename to apps/explorer/src/app/styles/_reset.scss diff --git a/apps/explorer/src/main.tsx b/apps/explorer/src/main.tsx index 0bb92da1b..2b066953d 100644 --- a/apps/explorer/src/main.tsx +++ b/apps/explorer/src/main.tsx @@ -2,7 +2,7 @@ import { StrictMode } from 'react'; import * as ReactDOM from 'react-dom'; import { BrowserRouter } from 'react-router-dom'; -import App from './app/app'; +import App from './app/App'; ReactDOM.render(