From 3cc33b143f858108422fabc859ee2fd0798552da Mon Sep 17 00:00:00 2001 From: Tomasz Awramski Date: Thu, 4 Apr 2024 19:47:39 +0200 Subject: [PATCH] refactor(ledger-browser): rename ledger browser - delete solid.js version - rename package - fix type erros - bump vite from 5.0.12 to 5.0.13 in /packages/cacti-ledger-browser-react Closes: #3156 Signed-off-by: Tomasz Awramski --- packages/cacti-ledger-browser-react/README.md | 61 -- .../cacti-ledger-browser-react/index.html | 16 - .../cacti-ledger-browser-react/package.json | 79 -- .../cacti-ledger-browser-react/tsconfig.json | 19 - packages/cacti-ledger-browser/CHANGELOG.md | 8 - packages/cacti-ledger-browser/index.html | 28 +- packages/cacti-ledger-browser/package.json | 52 +- .../cacti-ledger-browser/postcss.config.js | 5 - .../cacti-ledger-browser/src/App.module.css | 12 - packages/cacti-ledger-browser/src/App.tsx | 18 - .../src/assets/favicon.ico | Bin 15086 -> 0 bytes .../AccountCard/AccountCard.module.css | 19 - .../components/AccountCard/AccountCard.tsx | 19 - .../components/BlockCard/BlockCard.module.css | 33 - .../src/components/BlockCard/BlockCard.tsx | 28 - .../CardWrapper/CardWrapper.module.css | 85 --- .../components/CardWrapper/CardWrapper.tsx | 168 ----- .../src/components/Chart/Chart.module.css | 29 - .../src/components/Chart/Chart.tsx | 66 -- .../src/components/Chart/LineChart.tsx | 80 -- .../Pagination/Pagination.module.css | 51 -- .../src/components/Pagination/Pagination.tsx | 66 -- .../components/TokenHeader/TokenAccount.tsx | 20 - .../TokenHeader/TokenHeader.module.css | 57 -- .../components/TokenHeader/TokenHeader.tsx | 52 -- .../components/UI/Button/Button.module.css | 77 -- .../src/components/UI/Button/Button.tsx | 28 - .../components/UI/CustomTable/CustomTable.css | 53 -- .../UI/CustomTable/CustomTable.module.css | 137 ---- .../components/UI/CustomTable/CustomTable.tsx | 108 --- .../EmptyTablePlaceholder.module.css | 7 - .../EmptyTablePlaceholder.tsx | 10 - .../src/components/UI/Menu/Menu.module.css | 22 - .../src/components/UI/Menu/Menu.tsx | 60 -- .../components/UI/Search/Search.module.css | 43 -- .../src/components/UI/Search/Search.tsx | 46 -- .../components/UI/Select/Select.module.css | 73 -- .../src/components/UI/Select/Select.tsx | 78 -- packages/cacti-ledger-browser/src/index.css | 16 - packages/cacti-ledger-browser/src/index.tsx | 14 - packages/cacti-ledger-browser/src/logo.svg | 1 - .../src/main/typescript/apps/cacti/index.ts | 0 .../apps/cacti/pages/status-page.tsx | 0 .../eth/components/Chart/Chart.module.css | 0 .../apps/eth/components/Chart/Chart.tsx | 5 +- .../apps/eth/components/Chart/LineChart.tsx | 33 +- .../components/TokenHeader/TokenAccount.tsx | 2 +- .../TokenHeader/TokenHeader.module.css | 0 .../components/TokenHeader/TokenHeader.tsx | 7 +- .../src/main/typescript/apps/eth/index.tsx | 0 .../eth/pages/Accounts/Accounts.module.css | 0 .../apps/eth/pages/Accounts/Accounts.tsx | 2 +- .../apps/eth/pages/Blocks/Blocks.module.css | 0 .../apps/eth/pages/Blocks/Blocks.tsx | 3 +- .../eth/pages/Dashboard/Dashboard.module.css | 0 .../apps/eth/pages/Dashboard/Dashboard.tsx | 0 .../apps/eth/pages/Details/BlockDetails.tsx | 0 .../apps/eth/pages/Details/Details.module.css | 0 .../apps/eth/pages/Details/TokenDetails.tsx | 0 .../pages/Details/TokenTransactionDetails.tsx | 0 .../eth/pages/Details/TransactionDetails.tsx | 0 .../apps/eth/pages/ERC20/ERC20.module.css | 0 .../typescript/apps/eth/pages/ERC20/ERC20.tsx | 0 .../apps/eth/pages/ERC721/ERC721.module.css | 0 .../apps/eth/pages/ERC721/ERC721.tsx | 4 +- .../SingleTokenHistory.module.css | 0 .../SingleTokenHistory/SingleTokenHistory.tsx | 0 .../Transactions/Transactions.module.css | 0 .../eth/pages/Transactions/Transactions.tsx | 0 .../components/TokenHeader/TokenAccount.tsx | 2 +- .../TokenHeader/TokenHeader.module.css | 0 .../components/TokenHeader/TokenHeader.tsx | 7 +- .../src/main/typescript/apps/fabric/index.tsx | 0 .../BlocksFabric/BlocksFabric.module.css | 0 .../pages/BlocksFabric/BlocksFabric.tsx | 0 .../pages/DashFabric/DashFabric.module.css | 0 .../fabric/pages/DashFabric/DashFabric.tsx | 0 .../pages/FabricBlock/FabricBlock.module.css | 0 .../fabric/pages/FabricBlock/FabricBlock.tsx | 0 .../FabricTransaction.module.css | 0 .../FabricTransaction/FabricTransaction.tsx | 0 .../TransactionsFabric.module.css | 0 .../TransactionsFabric/TransactionsFabric.tsx | 0 .../src/main/typescript/common/config.tsx | 0 .../typescript/common/supabase-client.tsx | 0 .../main/typescript/common/supabase-types.ts | 0 .../main/typescript/common/token-standards.ts | 0 .../AccountCard/AccountCard.module.css | 0 .../components/AccountCard/AccountCard.tsx | 2 +- .../components/AppShell/Home.module.css | 0 .../typescript/components/AppShell/Home.tsx | 0 .../AppShell/LedgerSelector.module.css | 0 .../components/AppShell/LedgerSelector.tsx | 2 +- .../components/AppShell/Root.module.css | 0 .../typescript/components/AppShell/Root.tsx | 0 .../components/BlockCard/BlockCard.module.css | 0 .../components/BlockCard/BlockCard.tsx | 2 +- .../components/TokenHeader/TokenAccount.tsx | 2 +- .../TokenHeader/TokenHeader.module.css | 0 .../components/TokenHeader/TokenHeader.tsx | 2 +- .../components/ui/Button.module.css | 0 .../main/typescript/components/ui/Button.tsx | 4 +- .../components/ui/CardWrapper.module.css | 0 .../typescript/components/ui/CardWrapper.tsx | 8 +- .../typescript/components/ui/CustomTable.css | 0 .../components/ui/CustomTable.module.css | 0 .../typescript/components/ui/CustomTable.tsx | 18 +- .../EmptyTablePlaceholder.module.css | 0 .../EmptyTablePlaceholder.tsx | 0 .../typescript/components/ui/Menu.module.css | 0 .../main/typescript/components/ui/Menu.tsx | 6 +- .../components/ui/Pagination.module.css | 0 .../typescript/components/ui/Pagination.tsx | 2 +- .../components/ui/Search.module.css | 0 .../main/typescript/components/ui/Search.tsx | 6 +- .../src/main/typescript/main.tsx | 0 .../src/main/typescript/vite-env.d.ts | 0 .../cacti-ledger-browser/src/pages/Pages.tsx | 65 -- .../pages/eth/Accounts/Accounts.module.css | 6 - .../src/pages/eth/Accounts/Accounts.tsx | 63 -- .../src/pages/eth/Blocks/Blocks.module.css | 0 .../src/pages/eth/Blocks/Blocks.tsx | 60 -- .../pages/eth/Dashboard/Dashboard.module.css | 10 - .../src/pages/eth/Dashboard/Dashboard.tsx | 100 --- .../src/pages/eth/Details/BlockDetails.tsx | 59 -- .../src/pages/eth/Details/Details.module.css | 32 - .../src/pages/eth/Details/TokenDetails.tsx | 59 -- .../eth/Details/TokenTransactionDetails.tsx | 62 -- .../pages/eth/Details/TransactionDetails.tsx | 100 --- .../src/pages/eth/ERC20/ERC20.module.css | 19 - .../src/pages/eth/ERC20/ERC20.tsx | 75 -- .../src/pages/eth/ERC721/ERC721.module.css | 18 - .../src/pages/eth/ERC721/ERC721.tsx | 117 --- .../SingleTokenHistory.module.css | 12 - .../SingleTokenHistory/SingleTokenHistory.tsx | 119 --- .../eth/Transactions/Transactions.module.css | 12 - .../pages/eth/Transactions/Transactions.tsx | 66 -- .../BlocksFabric/BlocksFabric.module.css | 0 .../fabric/BlocksFabric/BlocksFabric.tsx | 63 -- .../fabric/DashFabric/DashFabric.module.css | 11 - .../pages/fabric/DashFabric/DashFabric.tsx | 102 --- .../fabric/FabricBlock/FabricBlock.module.css | 8 - .../pages/fabric/FabricBlock/FabricBlock.tsx | 82 --- .../FabricTransaction.module.css | 22 - .../FabricTransaction/FabricTransaction.tsx | 123 ---- .../TransactionsFabric.module.css | 0 .../TransactionsFabric/TransactionsFabric.tsx | 60 -- .../src/pages/shared/Home/Home.module.css | 16 - .../src/pages/shared/Home/Home.tsx | 12 - .../src/schema/supabase-types.ts | 103 --- .../src/schema/token-standards.ts | 4 - .../src/supabase-client.tsx | 7 - packages/cacti-ledger-browser/styles.d.ts | 4 - .../cacti-ledger-browser/tailwind.config.ts | 11 - packages/cacti-ledger-browser/tsconfig.json | 26 +- .../tsconfig.node.json | 0 .../vite.config.mts | 0 packages/cacti-ledger-browser/vite.config.ts | 13 - yarn.lock | 683 +----------------- 159 files changed, 160 insertions(+), 4207 deletions(-) delete mode 100644 packages/cacti-ledger-browser-react/README.md delete mode 100644 packages/cacti-ledger-browser-react/index.html delete mode 100644 packages/cacti-ledger-browser-react/package.json delete mode 100644 packages/cacti-ledger-browser-react/tsconfig.json delete mode 100644 packages/cacti-ledger-browser/CHANGELOG.md delete mode 100644 packages/cacti-ledger-browser/postcss.config.js delete mode 100644 packages/cacti-ledger-browser/src/App.module.css delete mode 100644 packages/cacti-ledger-browser/src/App.tsx delete mode 100644 packages/cacti-ledger-browser/src/assets/favicon.ico delete mode 100644 packages/cacti-ledger-browser/src/components/AccountCard/AccountCard.module.css delete mode 100644 packages/cacti-ledger-browser/src/components/AccountCard/AccountCard.tsx delete mode 100644 packages/cacti-ledger-browser/src/components/BlockCard/BlockCard.module.css delete mode 100644 packages/cacti-ledger-browser/src/components/BlockCard/BlockCard.tsx delete mode 100644 packages/cacti-ledger-browser/src/components/CardWrapper/CardWrapper.module.css delete mode 100644 packages/cacti-ledger-browser/src/components/CardWrapper/CardWrapper.tsx delete mode 100644 packages/cacti-ledger-browser/src/components/Chart/Chart.module.css delete mode 100644 packages/cacti-ledger-browser/src/components/Chart/Chart.tsx delete mode 100644 packages/cacti-ledger-browser/src/components/Chart/LineChart.tsx delete mode 100644 packages/cacti-ledger-browser/src/components/Pagination/Pagination.module.css delete mode 100644 packages/cacti-ledger-browser/src/components/Pagination/Pagination.tsx delete mode 100644 packages/cacti-ledger-browser/src/components/TokenHeader/TokenAccount.tsx delete mode 100644 packages/cacti-ledger-browser/src/components/TokenHeader/TokenHeader.module.css delete mode 100644 packages/cacti-ledger-browser/src/components/TokenHeader/TokenHeader.tsx delete mode 100644 packages/cacti-ledger-browser/src/components/UI/Button/Button.module.css delete mode 100644 packages/cacti-ledger-browser/src/components/UI/Button/Button.tsx delete mode 100644 packages/cacti-ledger-browser/src/components/UI/CustomTable/CustomTable.css delete mode 100644 packages/cacti-ledger-browser/src/components/UI/CustomTable/CustomTable.module.css delete mode 100644 packages/cacti-ledger-browser/src/components/UI/CustomTable/CustomTable.tsx delete mode 100644 packages/cacti-ledger-browser/src/components/UI/CustomTable/EmptyTablePlaceholder/EmptyTablePlaceholder.module.css delete mode 100644 packages/cacti-ledger-browser/src/components/UI/CustomTable/EmptyTablePlaceholder/EmptyTablePlaceholder.tsx delete mode 100644 packages/cacti-ledger-browser/src/components/UI/Menu/Menu.module.css delete mode 100644 packages/cacti-ledger-browser/src/components/UI/Menu/Menu.tsx delete mode 100644 packages/cacti-ledger-browser/src/components/UI/Search/Search.module.css delete mode 100644 packages/cacti-ledger-browser/src/components/UI/Search/Search.tsx delete mode 100644 packages/cacti-ledger-browser/src/components/UI/Select/Select.module.css delete mode 100644 packages/cacti-ledger-browser/src/components/UI/Select/Select.tsx delete mode 100644 packages/cacti-ledger-browser/src/index.css delete mode 100644 packages/cacti-ledger-browser/src/index.tsx delete mode 100644 packages/cacti-ledger-browser/src/logo.svg rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/cacti/index.ts (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/cacti/pages/status-page.tsx (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/eth/components/Chart/Chart.module.css (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/eth/components/Chart/Chart.tsx (87%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/eth/components/Chart/LineChart.tsx (70%) rename packages/{cacti-ledger-browser-react/src/main/typescript => cacti-ledger-browser/src/main/typescript/apps/eth}/components/TokenHeader/TokenAccount.tsx (88%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/eth/components/TokenHeader/TokenHeader.module.css (100%) rename packages/{cacti-ledger-browser-react/src/main/typescript/apps/fabric => cacti-ledger-browser/src/main/typescript/apps/eth}/components/TokenHeader/TokenHeader.tsx (86%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/eth/index.tsx (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/eth/pages/Accounts/Accounts.module.css (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/eth/pages/Accounts/Accounts.tsx (96%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/eth/pages/Blocks/Blocks.module.css (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/eth/pages/Blocks/Blocks.tsx (96%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/eth/pages/Dashboard/Dashboard.module.css (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/eth/pages/Dashboard/Dashboard.tsx (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/eth/pages/Details/BlockDetails.tsx (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/eth/pages/Details/Details.module.css (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/eth/pages/Details/TokenDetails.tsx (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/eth/pages/Details/TokenTransactionDetails.tsx (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/eth/pages/Details/TransactionDetails.tsx (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/eth/pages/ERC20/ERC20.module.css (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/eth/pages/ERC20/ERC20.tsx (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/eth/pages/ERC721/ERC721.module.css (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/eth/pages/ERC721/ERC721.tsx (95%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/eth/pages/SingleTokenHistory/SingleTokenHistory.module.css (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/eth/pages/SingleTokenHistory/SingleTokenHistory.tsx (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/eth/pages/Transactions/Transactions.module.css (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/eth/pages/Transactions/Transactions.tsx (100%) rename packages/{cacti-ledger-browser-react/src/main/typescript/apps/eth => cacti-ledger-browser/src/main/typescript/apps/fabric}/components/TokenHeader/TokenAccount.tsx (92%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/fabric/components/TokenHeader/TokenHeader.module.css (100%) rename packages/{cacti-ledger-browser-react/src/main/typescript/apps/eth => cacti-ledger-browser/src/main/typescript/apps/fabric}/components/TokenHeader/TokenHeader.tsx (87%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/fabric/index.tsx (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/fabric/pages/BlocksFabric/BlocksFabric.module.css (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/fabric/pages/BlocksFabric/BlocksFabric.tsx (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/fabric/pages/DashFabric/DashFabric.module.css (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/fabric/pages/DashFabric/DashFabric.tsx (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/fabric/pages/FabricBlock/FabricBlock.module.css (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/fabric/pages/FabricBlock/FabricBlock.tsx (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/fabric/pages/FabricTransaction/FabricTransaction.module.css (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/fabric/pages/FabricTransaction/FabricTransaction.tsx (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/fabric/pages/TransactionsFabric/TransactionsFabric.module.css (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/apps/fabric/pages/TransactionsFabric/TransactionsFabric.tsx (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/common/config.tsx (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/common/supabase-client.tsx (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/common/supabase-types.ts (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/common/token-standards.ts (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/components/AccountCard/AccountCard.module.css (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/components/AccountCard/AccountCard.tsx (92%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/components/AppShell/Home.module.css (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/components/AppShell/Home.tsx (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/components/AppShell/LedgerSelector.module.css (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/components/AppShell/LedgerSelector.tsx (98%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/components/AppShell/Root.module.css (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/components/AppShell/Root.tsx (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/components/BlockCard/BlockCard.module.css (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/components/BlockCard/BlockCard.tsx (94%) rename packages/{cacti-ledger-browser-react/src/main/typescript/apps/fabric => cacti-ledger-browser/src/main/typescript}/components/TokenHeader/TokenAccount.tsx (92%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/components/TokenHeader/TokenHeader.module.css (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/components/TokenHeader/TokenHeader.tsx (97%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/components/ui/Button.module.css (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/components/ui/Button.tsx (80%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/components/ui/CardWrapper.module.css (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/components/ui/CardWrapper.tsx (95%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/components/ui/CustomTable.css (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/components/ui/CustomTable.module.css (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/components/ui/CustomTable.tsx (79%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/components/ui/EmptyTablePlaceholder/EmptyTablePlaceholder.module.css (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/components/ui/EmptyTablePlaceholder/EmptyTablePlaceholder.tsx (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/components/ui/Menu.module.css (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/components/ui/Menu.tsx (90%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/components/ui/Pagination.module.css (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/components/ui/Pagination.tsx (98%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/components/ui/Search.module.css (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/components/ui/Search.tsx (84%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/main.tsx (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/src/main/typescript/vite-env.d.ts (100%) delete mode 100644 packages/cacti-ledger-browser/src/pages/Pages.tsx delete mode 100644 packages/cacti-ledger-browser/src/pages/eth/Accounts/Accounts.module.css delete mode 100644 packages/cacti-ledger-browser/src/pages/eth/Accounts/Accounts.tsx delete mode 100644 packages/cacti-ledger-browser/src/pages/eth/Blocks/Blocks.module.css delete mode 100644 packages/cacti-ledger-browser/src/pages/eth/Blocks/Blocks.tsx delete mode 100644 packages/cacti-ledger-browser/src/pages/eth/Dashboard/Dashboard.module.css delete mode 100644 packages/cacti-ledger-browser/src/pages/eth/Dashboard/Dashboard.tsx delete mode 100644 packages/cacti-ledger-browser/src/pages/eth/Details/BlockDetails.tsx delete mode 100644 packages/cacti-ledger-browser/src/pages/eth/Details/Details.module.css delete mode 100644 packages/cacti-ledger-browser/src/pages/eth/Details/TokenDetails.tsx delete mode 100644 packages/cacti-ledger-browser/src/pages/eth/Details/TokenTransactionDetails.tsx delete mode 100644 packages/cacti-ledger-browser/src/pages/eth/Details/TransactionDetails.tsx delete mode 100644 packages/cacti-ledger-browser/src/pages/eth/ERC20/ERC20.module.css delete mode 100644 packages/cacti-ledger-browser/src/pages/eth/ERC20/ERC20.tsx delete mode 100644 packages/cacti-ledger-browser/src/pages/eth/ERC721/ERC721.module.css delete mode 100644 packages/cacti-ledger-browser/src/pages/eth/ERC721/ERC721.tsx delete mode 100644 packages/cacti-ledger-browser/src/pages/eth/SingleTokenHistory/SingleTokenHistory.module.css delete mode 100644 packages/cacti-ledger-browser/src/pages/eth/SingleTokenHistory/SingleTokenHistory.tsx delete mode 100644 packages/cacti-ledger-browser/src/pages/eth/Transactions/Transactions.module.css delete mode 100644 packages/cacti-ledger-browser/src/pages/eth/Transactions/Transactions.tsx delete mode 100644 packages/cacti-ledger-browser/src/pages/fabric/BlocksFabric/BlocksFabric.module.css delete mode 100644 packages/cacti-ledger-browser/src/pages/fabric/BlocksFabric/BlocksFabric.tsx delete mode 100644 packages/cacti-ledger-browser/src/pages/fabric/DashFabric/DashFabric.module.css delete mode 100644 packages/cacti-ledger-browser/src/pages/fabric/DashFabric/DashFabric.tsx delete mode 100644 packages/cacti-ledger-browser/src/pages/fabric/FabricBlock/FabricBlock.module.css delete mode 100644 packages/cacti-ledger-browser/src/pages/fabric/FabricBlock/FabricBlock.tsx delete mode 100644 packages/cacti-ledger-browser/src/pages/fabric/FabricTransaction/FabricTransaction.module.css delete mode 100644 packages/cacti-ledger-browser/src/pages/fabric/FabricTransaction/FabricTransaction.tsx delete mode 100644 packages/cacti-ledger-browser/src/pages/fabric/TransactionsFabric/TransactionsFabric.module.css delete mode 100644 packages/cacti-ledger-browser/src/pages/fabric/TransactionsFabric/TransactionsFabric.tsx delete mode 100644 packages/cacti-ledger-browser/src/pages/shared/Home/Home.module.css delete mode 100644 packages/cacti-ledger-browser/src/pages/shared/Home/Home.tsx delete mode 100644 packages/cacti-ledger-browser/src/schema/supabase-types.ts delete mode 100644 packages/cacti-ledger-browser/src/schema/token-standards.ts delete mode 100644 packages/cacti-ledger-browser/src/supabase-client.tsx delete mode 100644 packages/cacti-ledger-browser/styles.d.ts delete mode 100644 packages/cacti-ledger-browser/tailwind.config.ts rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/tsconfig.node.json (100%) rename packages/{cacti-ledger-browser-react => cacti-ledger-browser}/vite.config.mts (100%) delete mode 100644 packages/cacti-ledger-browser/vite.config.ts diff --git a/packages/cacti-ledger-browser-react/README.md b/packages/cacti-ledger-browser-react/README.md deleted file mode 100644 index 92d18af3bf..0000000000 --- a/packages/cacti-ledger-browser-react/README.md +++ /dev/null @@ -1,61 +0,0 @@ -# `@hyperledger/cacti-ledger-browser-react` - -This component allows viewing ledger data in Supabase or other postgreSQL compatible database. The data is fed to supabase by persistence plugins for each ledgers. - -## Summary - -- [`@hyperledger/cacti-ledger-browser`](#hyperledgercacti-gui-tx-viewer) - - [Summary](#summary) - - [Remarks](#remarks) - - [Getting Started](#getting-started) - - [Prerequisites using yarn](#prerequisites-using-yarn) - - [Alternative Prerequisites using npm](#alternative-prerequisites-using-npm) - - [Usage](#usage) - - [Contributing](#contributing) - - [License](#license) - - [Acknowledgments](#acknowledgments) - -## Remarks - -- Plugin requires running Supabase or other database and persistence plugins in order to properly view ledger data. -- Currently, fabric and ethereum based ledgers are supported. - -## Getting Started - -Clone the git repository on your local machine. Follow these instructions that will get you a copy of the project up and running on your local machine for development and testing purposes. - -### Prerequisites using yarn - -In the root of the project, execute the command to install and build the dependencies. It will also build this GUI front-end component: - -```sh -yarn run build -``` -### Alternative Prerequisites using npm - -In the root of the project, execute the command to install and build the dependencies. It will also build this GUI front-end component: - -```sh -npm install -``` - -### Usage -- Run Supabase instance (see documentation for detailed instructions). For development purposes, you can use our image located in `tools/docker/supabase-all-in-one`. -- Run one or more persistence plugins: - - [Ethereum](../cacti-plugin-persistence-ethereum) - - [Fabric] (../cacti-plugin-persistence-fabric) -- Edit [Supabase configuration file](./src/supabase-client.tsx), set correct supabase API URL and service_role key. -- Execute `yarn run start` or `npm start` in this package directory. -- The running application address: http://localhost:3001/ (can be changed in [Vite configuration](./vite.config.ts)) - -## Contributing - -We welcome contributions to Hyperledger Cacti in many forms, and there’s always plenty to do! - -Please review [CONTIRBUTING.md](../../CONTRIBUTING.md) to get started. - -## License - -This distribution is published under the Apache License Version 2.0 found in the [LICENSE](../../LICENSE) file. - -## Acknowledgments \ No newline at end of file diff --git a/packages/cacti-ledger-browser-react/index.html b/packages/cacti-ledger-browser-react/index.html deleted file mode 100644 index 066d32e3cb..0000000000 --- a/packages/cacti-ledger-browser-react/index.html +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - Cacti Ledger Browser - - - -
- - - - \ No newline at end of file diff --git a/packages/cacti-ledger-browser-react/package.json b/packages/cacti-ledger-browser-react/package.json deleted file mode 100644 index 6d6a630f49..0000000000 --- a/packages/cacti-ledger-browser-react/package.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "name": "@hyperledger/cacti-ledger-browser-react", - "version": "2.0.0-alpha.2", - "description": "Cacti GUI for visualizing ledger data build on react.", - "keywords": [ - "Hyperledger", - "Cacti", - "Integration", - "Blockchain", - "Distributed Ledger Technology" - ], - "homepage": "https://github.com/hyperledger/cacti#readme", - "bugs": { - "url": "https://github.com/hyperledger/cacti/issues" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/hyperledger/cacti.git" - }, - "license": "Apache-2.0", - "author": { - "name": "Hyperledger Cacti Contributors", - "email": "cacti@lists.hyperledger.org", - "url": "https://www.hyperledger.org/use/cacti" - }, - "contributors": [ - { - "name": "Please add yourself to the list of contributors", - "email": "your.name@example.com", - "url": "https://example.com" - }, - { - "name": "Tomasz Awramski", - "email": "tomasz.awramski@fujitsu.com", - "url": "https://www.fujitsu.com/global/" - }, - { - "name": "Eryk Baranowski", - "email": "eryk.baranowski@fujitsu.com", - "url": "https://www.fujitsu.com/global/" - }, - { - "name": "Barnaba Pawelczak", - "email": "barnaba.pawelczak@fujitsu.com", - "url": "https://www.fujitsu.com/global/" - } - ], - "scripts": { - "build": "yarn run build:prod:frontend", - "build:dev:frontend": "vite build --mode=development", - "build:prod:frontend": "vite build", - "serve": "vite preview", - "start": "vite" - }, - "dependencies": { - "@emotion/react": "11.11.3", - "@emotion/styled": "11.11.0", - "@mui/icons-material": "5.15.10", - "@mui/material": "5.15.10", - "@supabase/supabase-js": "1.35.6", - "apexcharts": "3.45.2", - "localforage": "1.10.0", - "match-sorter": "6.3.3", - "moment": "2.30.1", - "react": "18.2.0", - "react-apexcharts": "1.4.1", - "react-dom": "18.2.0", - "react-router-dom": "6.21.3", - "sort-by": "1.2.0" - }, - "devDependencies": { - "@types/react": "18.2.43", - "@types/react-dom": "18.2.17", - "@types/sort-by": "1", - "@vitejs/plugin-react": "4.2.1", - "typescript": "5.2.2", - "vite": "5.0.12" - } -} diff --git a/packages/cacti-ledger-browser-react/tsconfig.json b/packages/cacti-ledger-browser-react/tsconfig.json deleted file mode 100644 index c46a23bf1a..0000000000 --- a/packages/cacti-ledger-browser-react/tsconfig.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "../../tsconfig.base.json", - "compilerOptions": { - "composite": true, - "outDir": "./dist/lib/", - "declarationDir": "dist/lib", - "rootDir": "./src", - "skipLibCheck": true, - "noEmit": true, - "jsx": "react-jsx", - "plugins": [ - { - "name": "typescript-plugin-css-modules" - } - ], - "lib": ["ES2015", "dom"] - }, - "include": ["./src"] -} diff --git a/packages/cacti-ledger-browser/CHANGELOG.md b/packages/cacti-ledger-browser/CHANGELOG.md deleted file mode 100644 index 058cae185b..0000000000 --- a/packages/cacti-ledger-browser/CHANGELOG.md +++ /dev/null @@ -1,8 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -# [2.0.0-alpha.2](https://github.com/hyperledger/cacti/compare/v2.0.0-alpha.1...v2.0.0-alpha.2) (2023-09-27) - -**Note:** Version bump only for package @hyperledger/cacti-ledger-browser diff --git a/packages/cacti-ledger-browser/index.html b/packages/cacti-ledger-browser/index.html index 103afb82d4..066d32e3cb 100644 --- a/packages/cacti-ledger-browser/index.html +++ b/packages/cacti-ledger-browser/index.html @@ -1,16 +1,16 @@ - + - - - - - - Cacti Ledger Browser - - - -
- - - + + + + + Cacti Ledger Browser + + + +
+ + + + \ No newline at end of file diff --git a/packages/cacti-ledger-browser/package.json b/packages/cacti-ledger-browser/package.json index dd795ffd18..57a34b3451 100644 --- a/packages/cacti-ledger-browser/package.json +++ b/packages/cacti-ledger-browser/package.json @@ -1,7 +1,7 @@ { "name": "@hyperledger/cacti-ledger-browser", "version": "2.0.0-alpha.2", - "description": "Cacti GUI for visualizing ledger data.", + "description": "Cacti GUI for visualizing ledger data build on react.", "keywords": [ "Hyperledger", "Cacti", @@ -29,6 +29,11 @@ "email": "your.name@example.com", "url": "https://example.com" }, + { + "name": "Tomasz Awramski", + "email": "tomasz.awramski@fujitsu.com", + "url": "https://www.fujitsu.com/global/" + }, { "name": "Eryk Baranowski", "email": "eryk.baranowski@fujitsu.com", @@ -48,31 +53,28 @@ "start": "vite" }, "dependencies": { - "@solidjs/router": "0.8.4", + "@emotion/react": "11.11.3", + "@emotion/styled": "11.11.0", + "@mui/icons-material": "5.15.10", + "@mui/material": "5.15.10", "@supabase/supabase-js": "1.35.6", - "apexcharts": "3.36.0", - "chart.js": "3.9.1", - "moment": "2.29.4", - "solid-apexcharts": "0.1.6", - "solid-icons": "1.0.4", - "solid-js": "1.8.11", - "solid-slider": "1.3.9", - "solid-toast": "0.5.0" + "apexcharts": "3.45.2", + "localforage": "1.10.0", + "match-sorter": "6.3.3", + "moment": "2.30.1", + "react": "18.2.0", + "react-apexcharts": "1.4.1", + "react-dom": "18.2.0", + "react-router-dom": "6.21.3", + "sort-by": "1.2.0", + "web3": "4.1.1" }, "devDependencies": { - "autoprefixer": "10.4.8", - "postcss": "8.4.31", - "supabase": "1.28.4", - "typescript-plugin-css-modules": "5.0.2", - "vite": "4.5.2", - "vite-plugin-solid": "2.8.2" - }, - "engines": { - "node": ">=18", - "npm": ">=8" - }, - "publishConfig": { - "access": "public" - }, - "watch": {} + "@types/react": "18.2.43", + "@types/react-dom": "18.2.17", + "@types/sort-by": "1", + "@vitejs/plugin-react": "4.2.1", + "typescript": "5.2.2", + "vite": "5.0.13" + } } diff --git a/packages/cacti-ledger-browser/postcss.config.js b/packages/cacti-ledger-browser/postcss.config.js deleted file mode 100644 index a47ef4f952..0000000000 --- a/packages/cacti-ledger-browser/postcss.config.js +++ /dev/null @@ -1,5 +0,0 @@ -module.exports = { - plugins: { - autoprefixer: {}, - }, -}; diff --git a/packages/cacti-ledger-browser/src/App.module.css b/packages/cacti-ledger-browser/src/App.module.css deleted file mode 100644 index cba488b71c..0000000000 --- a/packages/cacti-ledger-browser/src/App.module.css +++ /dev/null @@ -1,12 +0,0 @@ -.main { - width: 100%; -} -.content { - margin: 1rem 2rem; -} - -@media (max-width: 1699px) { - .content { - margin: 1rem; - } -} \ No newline at end of file diff --git a/packages/cacti-ledger-browser/src/App.tsx b/packages/cacti-ledger-browser/src/App.tsx deleted file mode 100644 index a810c8f041..0000000000 --- a/packages/cacti-ledger-browser/src/App.tsx +++ /dev/null @@ -1,18 +0,0 @@ -import { Component } from "solid-js"; -import Pages from "./pages/Pages"; -import Menu from "./components/UI/Menu/Menu"; -// @ts-expect-error -import styles from "./App.module.css"; - -const App: Component = () => { - return ( -
- -
- -
-
- ); -}; - -export default App; diff --git a/packages/cacti-ledger-browser/src/assets/favicon.ico b/packages/cacti-ledger-browser/src/assets/favicon.ico deleted file mode 100644 index b836b2bccac650e0e7d90514083add91d2c027ff..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 15086 zcmeI32Y6Lgw#RQo0Y@EtmA&@a z>%VX~JRB7qO`13ut2?&Tb~rp84oCIs=KCidj&pqWB%^#k=3$2;oFCNVH(cTvg2?Ck zua+_V>;M1%EHI;OjS4~SYCbiyeXWK_$5|a}^+(18cdR{rcBk6ILps&z9{OsXW^?@N zKE>$q&tL)YJ|5J*W^?dPL^gr^&;nW zso#2j*ZLKIX+474)p`W1FCqa*I(V-kh2T{d-Vlwqj>6Uoyeh17Jq2bpw@W<*ZZ)rK zeKo&ZgYOr-)?mfL?hT*&C3FDe6G#^%3dz;>)tKujjTg*<7aMELcjK+EBDytDU`84$ zaI4534b`I8Ux-`UtI^M<12}(;^hFY9cdY$)ZDX;o5fe@u3tlH?u`eQcBQ)LyPP~yl zUJ%S`F|wp*BekSgBek+ml_F zEBZ86EBiJP?CMW{Y^t`5XpxlqPCIt7^8XRL&my5nuB^NJiU}RZcgKWfW3lgYC*H;y z@2Y-a?$=bU2KNVViZoN(N4LDS_bs2{hx4lZ7+D;|B-4-ACs`$5jmh746Q^6e_c8~Jzjt+UELmaWVXW}bbc8_nP zwxZ8E<`;Y3Z%kNtEgM^SHw^bu88bM;zBTwFl;P%MKN*`fwI zd{q=j##+FaI*!CPS_ga}I;5aO+Kg8U zgS;0VGG})&eyepTHIBYvJ-f9Z$eKZi@#t{dilaD}IP%r&OxByMy%f_AVn?xO2DtZ! zbWsQ9bkkS`vtU0m|8=d$!SL7gciIP9hhlN0*Mc*SF0!6$xU-H;{J)7F<(+n4aU?nr zKN3f2#B&BZNNfl`tpj*19qc}k@9v5t=UV8XV|3rtcAw+#-@1$6)S(MLIEN1k>^Zf} zIAVTTlM+J`9}*{m^AI{n3|T%XJ&t58*z(c4?LT0?a-B7!M|f3;9_d{Z9}J2a(`sYv zxYlQhqucT93sz2*d|g%?i4F(QL1NzWfu+OUam1Rj=cB-m*T{3e<*|M7Yw*Ft_@FBI z2ggtGJu7>pi0n0@gU(0A;z-uQ1H@4QF*zUnj}*sJ-uFo}{U1-9;Wrogdm?d?NWM!X z2km1YkbOsTx6ViAS|}-w#OBU8vgIT3ku4wnNG@1G991bV*5cPC2l-V@3i6wW+)fVi zSIO8mMTC5=M{wF^AUa#-yD*CBBE#Bkp(?JJ+h$JyrT=u! z``;b}J2)Q!?`FX)c+-LnyiUxrmx}+9{gM-r17V1~4(+D*FrACguP7g}CrCbuU{8>J z0Rc18OC4F*OMzQ~Tja*k$TyCj{BX$3?AZ67Dvus%v%6G9&brvy#H^nM?3l5w*ij4n zmgF3rk*BLuI3`KT*qb!^caT0ULUSADs5q&gox_0EMofdS>gPh7l&d|zZ^!_Hz~ zZRfHuo3=eHcDCU)Y>b@^8#5YsowyhGQJ=3Ktp0P`WOZTBbYvP5m~|m8@I`lZz{XAY z&*^&285iI^V6*YT;&v_*vokK#QPal97WGlb!278wCsqznXQIZd?6_&_;@%nRLj3!7 z9oA;Y23B%M2WY#;Wr%;7*u{1Zn&i z1%JHL2YK0Xfj!*8pE29t0~<%W#B!N7wy!^1Tv#?X@oL;l!M$pLI<;Y(#(gOG!DFp1Z)unyl-)G`4*#~##d&zO&WklyD?WT~3};gkS3*_)GTz__OeVTWk4B+T7n}$Ir|-v-vIc z*`Edzv;CZTPUCmR2Wt^~|8-eEbz((-b@IcZ#Pv8Zzo#w;=G3_=CvBd}VYK6S(+Bu1 zU>)Mt`8X#ftVd2t_>D_RVJbU5Sbe)QP<_4SZFMSY5-~hMo!U5&n3$}-**;aB+s(S$ z8v@38>Pq@TbtMByUjX*`PW;@yN( z*?R)Zb*2#=xQ7Qm2-iL!9>l&^#pZ(lP>~M|``dJ|`ykCNANgUFxD2e;S@j^Kl#;C~=qpg4YcPu?4vlREFFtjW@SAoefj16j*@9hd5Z zo2-LO_Jd*U2jx1umxQfA#7c@>*%<-V_j|0lP1 zas2Y0IUggJPsX0-@Ihh8>%jCurY#p4J}Asdi})M*r?Qp;utj6=yH#r|36r~@F{cOk z>s-lP6p(vhNd|fJDr@;B;~kw_4=gRjH@C^9dFXfvUmYcHt>K!{Iq4Bi!T*@MbN*bv z2j>&uZUFucjD5gAh`nF{pLYj;EAZF4k{MZr{p_Ki3&X$e`^#ED=|6|#?lHZBQhZ)0 z-yzo>j#)CMI~+bT0#n8U#%hdwt;a0JD!fm(jg`#z6&U4vYxFR$vqrgTKHtkI_qC6} z(C<|+{Y-o>c=VWM+)r@HJTmIf`JH1H?`8Bc$7<$CWl4W-jqHkYokPYfMwlx-vdhan zG*B6%d@lgyIvM4@0#xxI07WkuMSsNv+FmNluwyB9mOicOh%e&o(|VFO|A+qqU#adP zy*>2D)S%a-CE`!-MpybEeCR2tO;5q2Kec+(eQS6GwXgLwb9O@(G3S1IMlLdM9`pXl zytkP5A7TFWF2k?ygd%&D@3bUxb~D zc-^ghjxB2>AtZ<@@miJz$Sv&*8{vmtG&U z&&Q=-#@TyfarX3^z2Jul_c)Yb zQ^GI*un}2}w_bbZ=TZVZ4ZtGCb^bK&uAJP}GoPHYJza;%Y zyms2OFFIPi6VmG;Js!x%W}k<_H5**M@U(HlD+=HGmQOqw$~=?7&-aKO)9MCXjEaUI z-3s>g^e|Ywym0f<4`bKSKA-eDSe*7Iu8o6N6)xG}-F@@HFt98e>>lY|8Gd@R@L9r5 z3lFrHd+dQriG~;20`DvL7jE6+{|!#s;{3hTrco`_jtQ;RKIYZjukeL%ktXMSlzTo? zCWcYoE#RbbW5*R?kZUatClMYe9*%hzyt(klTTL!`2Y6$IyM-T-8oh9A!g*@mfop_A z!4G%fg~paO|IT4v55en22)7!?{iRPrxFq5I1%vRZX`07_7lj89E?9U0iwBlEp45J& zrmlGcxMSfji~P`bJ-U^7zJ=ed35L_sYZ6C)hV%$X?~3NKu&dlp_!G^A%G}In@o!SM zms+UQ&NYV)ALHVOciMeamj2dvaD#pE!(p)gp!*ceI2JofKZn7K8(gO5V&N1l3^E?% zy?n0yAiSUOKLH(XW5Y6I(3)RHVzCO`WJ`Fxu=vTo*CZA-KaU@De}U--&Eui3@Q|Xv z#k-W?hXgRVwI3wU>RdT7$S(|DE=bO#cjQ zKqt9-fACVHkROFhE8=*FZHaFi4<&ZCczstt7<>t}*~9P(CeiN%$mL2gdwxM(`R(biLiISugBeNG&q=%QYjmXU7KAycYs^ zm3m07^jTQ^l?$h$xe0^+xvTbU<9w|8t<><(Y=V1;4G_L$CG|bJ`Ah$U6RCsb=s9hi zh{ZP= zc>(*JMs3~F(OILW#(SLluAX-{^IA1?C+DI$qr`jFIFBvv+XepV2jQqRpH_lh?Q=?9 zS-7dwQ4>^F?E6ODTWa@Guhcbfi*wL6kUH!5vTVRL6~Ec`_S!H0Jd&FAo0>~<*0ZIK zz0_96-Y{OB-4%$gA!hB=wf0_$4Zg+(FO-ELCpEk&HN}e;5<=AZ*qQ3vUDK(T2Qt?* z{r*BiD0OD)rPQrNq;BV|pC`{T_zR1>uyIH5Mg`PrlbOF!S@X+x)IoyfzPhF?wamjS zjd~`vO{q;ujm@P7uItA|^>2$mvDx4Pwbp6Oe_u5;>Q;Y1rxT(db(o@>wytAa^HT?= zc0}E!EF1hc^~R5=mo~l_KfTO-u((aAOAo>ZH$_+KCng5;cd4aY^+WN2)X*&(gnow& z)=~3pjSb4xw}A~RbI&kraN|C0kdMtyf;*gRU!v|;u6gZtK%Yv?-<3Gnh7Gc)Y3ET# z%Etyb`RqEjIZqs<@|y^3)djpybB$Yew$E4EYv!rQyw#~?c{6sTj@6DhY|iIZslolK zwCny^KR4<#{6DLTQdAlWsB&CKvM4nK8!{`MiU;DuXCl=oT~y2GH6;m=St67xsvwn2 zslaC}eShOjdx~>c5dQ|^acd6y$hq{XP`^5pI4_>$ ztXLpt@A=*8s|ED>%fJ1Qa}(#KTbzp~*sqh<%X&6?h5M&*#w(C>y7Ym|*;W3%g`8RC zY_*y*&PM~9scoZMo=TkJ>(XCHA9?>xLp}4>(o--0F2FjA$(cxcs^vT+J;_@+tL)`G zkTBUdY{yVfXZ**FZuu+DSexaUb`Q_AF_Vm*R5{y-NPlV^&-(h@z_T9Dn-_WhcgfE@ zn|t$Yo-5Dg(zC03nxwyybB8?t$n&>656ZJ4eOm>b9eUgCuxq$i1)goY^IW@~XWD$} zv6JUx>CLpBVddFXdU$!(|C;aX+OL<_nR8$BpzkUud4}KZ6wU&vW{;}OE6-md+@la# z#WUD*XEu&;+CZ+S-{yJb8+o2HdOxh*8l$Ji>YZVK%|E?i>=*3QF8$hE^DKQLr>tia zqkqMC&XfIFIQ;)uGm<^>U9-nyS~UBdOV8P7s|HO!zG6V3)njpdxxq)Dj+)4`63-5@ zXG*^UeG2TA`8+SV#M7mu&}Z4}k7cv}id;-&zfUFa%l;$$HG8kzgZ<_XeHusD>$-~W z_CNCDo8+v2Xnqi`meW?dF!{OjbMF<{P`UD{3UW|Gq{d_=bk0*6(lD|z7KWYY7R#*)(qxJUL+mK WLaxim%Fn{v*G = (props) => { - const params = useParams(); - const navigate = useNavigate(); - const handleClick = () => { - navigate(`/${params.standard}/${props.address}`); - }; - return ( -
- {props.address} -
- ); -}; - -export default AccountCard; diff --git a/packages/cacti-ledger-browser/src/components/BlockCard/BlockCard.module.css b/packages/cacti-ledger-browser/src/components/BlockCard/BlockCard.module.css deleted file mode 100644 index 3e90ee76fa..0000000000 --- a/packages/cacti-ledger-browser/src/components/BlockCard/BlockCard.module.css +++ /dev/null @@ -1,33 +0,0 @@ -.block-card { - display: flex; - gap: 1rem; - background-color: rgb(252, 249, 249); - height: 5rem; - align-items: center; - justify-content: space-around; - width: 100%; - padding: 1rem 0rem; - margin-top: 5px; - border-radius: 10px; - border: .5px solid rgb(242, 245, 242); - max-height: 100vh; - font-size: 14px; -} - -.block-card:hover { - cursor: pointer; - background-color: #ffffff; -} - -.block-num { - color: rgb(12, 105, 12); -} - -.block-hash { - display: block; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - width: min-content; - max-width: 50%; -} \ No newline at end of file diff --git a/packages/cacti-ledger-browser/src/components/BlockCard/BlockCard.tsx b/packages/cacti-ledger-browser/src/components/BlockCard/BlockCard.tsx deleted file mode 100644 index 774b7163f6..0000000000 --- a/packages/cacti-ledger-browser/src/components/BlockCard/BlockCard.tsx +++ /dev/null @@ -1,28 +0,0 @@ -import { useNavigate } from "@solidjs/router"; -import { HiSolidHashtag } from "solid-icons/hi"; -import { Component } from "solid-js"; -// @ts-expect-error -import styles from "./BlockCard.module.css"; - -const BlockCard: Component<{ - number: string; - created_at: Date; - hash: string; -}> = (props) => { - const navigate = useNavigate(); - const handleClick = () => { - navigate(`/blockDetails/${props.number}`); - }; - - return ( -
-

{props.created_at.toLocaleString()}

-

{props.number}

-

- {props.hash} -

-
- ); -}; - -export default BlockCard; diff --git a/packages/cacti-ledger-browser/src/components/CardWrapper/CardWrapper.module.css b/packages/cacti-ledger-browser/src/components/CardWrapper/CardWrapper.module.css deleted file mode 100644 index d20ba47158..0000000000 --- a/packages/cacti-ledger-browser/src/components/CardWrapper/CardWrapper.module.css +++ /dev/null @@ -1,85 +0,0 @@ -.wrapper { - background-color: rgb(253, 253, 253); - padding: 1rem; - border-radius: 10px; - border: 1px solid rgb(233, 236, 233); - height: fit-content; -} - -.wrapper-half-width { - width: 50%; -} - -.wrapper-full-width { - width: 100%; -} - -.wrapper-cards { - width: 100%; - display: flex; - justify-content: center; - padding: 1rem; -} - -.wrapper-title { - margin-top: .5rem; - display: flex; - gap:5px; - align-items: center; - font-weight: 700; - font-size: 1.2rem; - color: rgb(9, 75, 9); -} - -.wrapper-btns { - display: flex; - justify-content: flex-end; - padding-right: 1rem; -} - -.wrapper-header { - width: 100%; - display: flex; - justify-content: space-between; - padding: 0 1rem; -} - -.wrapper-columns { - display: flex; - justify-content: space-around; - background-color: rgb(243, 239, 239); - align-items: center; - border-radius: 10px; - border: 1px solid rgb(233, 236, 233); - height: 50px; -} - -.wrapper-columns span { - display: flex; - width: 150px; -} - -.wrapper-search { - display: flex; - gap: 5px; -} - -@media (max-width: 1699px) { - .wrapper { - width: 100%; - } - - .wrapper-header { - padding-left: 0; - padding-right: 0; - } - - .wrapper-cards { - flex-direction: column; - padding: 1rem 0; - } - - .wrapper-title svg { - margin-bottom: -3px; - } -} diff --git a/packages/cacti-ledger-browser/src/components/CardWrapper/CardWrapper.tsx b/packages/cacti-ledger-browser/src/components/CardWrapper/CardWrapper.tsx deleted file mode 100644 index 2d4633e752..0000000000 --- a/packages/cacti-ledger-browser/src/components/CardWrapper/CardWrapper.tsx +++ /dev/null @@ -1,168 +0,0 @@ -import { - createSignal, - createEffect, - ParentComponent, - onCleanup, -} from "solid-js"; -import { TbCactus } from "solid-icons/tb"; -import { useNavigate } from "@solidjs/router"; -import Button from "../UI/Button/Button"; -import Search from "../UI/Search/Search"; -import CustomTable from "../UI/CustomTable/CustomTable"; -import { TableProps } from "../../schema/supabase-types"; -import Pagination from "../Pagination/Pagination"; -// @ts-expect-error -import styles from "./CardWrapper.module.css"; -import EmptyTablePlaceholder from "../UI/CustomTable/EmptyTablePlaceholder/EmptyTablePlaceholder"; - -type cardWrapperProp = { - filters?: string[]; - data: any[]; - display: string; - trimmed?: boolean; - columns?: TableProps; - title: string; - getSearchValue?: (val: string) => {}; -}; - -const pageSize: number = 6; - -const CardWrapper: ParentComponent = (props) => { - const navigate = useNavigate(); - const [searchKey, setSearchKey] = createSignal(""); - const [filteredData, setFilteredData] = createSignal([]); - const [paginatedData, setPaginatedData] = createSignal([]); - const [currentPage, setCurrentPage] = createSignal(1); - const [totalPages, setTotalPages] = createSignal(1); - const [viewport, setViewport] = createSignal(""); - - const handleGoToPage = (pageNumber: number) => { - if (pageNumber < 1 || pageNumber > totalPages()) return; - setCurrentPage(pageNumber); - }; - - const handleNextPage = () => { - if (currentPage() === totalPages()) return; - setCurrentPage((prev) => prev + 1); - }; - - const handlePrevPage = () => { - if (currentPage() === 1) return; - setCurrentPage((prev) => prev - 1); - }; - - const filterData = () => { - const { filters, data } = props; - if (searchKey().length === 0) { - setFilteredData(data); - return; - } - let newData = data.filter((row) => { - let isMatch: boolean = false; - filters?.forEach((property) => { - if (row[property]?.toString().toLowerCase().includes(searchKey())) { - isMatch = true; - } - }); - return isMatch; - }); - setFilteredData(newData); - }; - - const handleSearch = () => { - filterData(); - if (props.getSearchValue) { - props.getSearchValue(searchKey()); - } - }; - - createEffect(() => { - setFilteredData(props.data); - }); - - createEffect(() => { - const screenResized = () => - setViewport(window.innerWidth <= 1699 ? "small" : "wide"); - screenResized(); - window.addEventListener("resize", screenResized, true); - onCleanup(() => { - window.removeEventListener("resize", screenResized, true); - }); - }); - - createEffect(() => { - if (filteredData().length <= pageSize) { - setPaginatedData(filteredData()); - } else { - const firstEl = currentPage() * pageSize - pageSize; - setPaginatedData(filteredData().slice(firstEl, firstEl + pageSize)); - } - }); - - createEffect(() => { - const pageNum = Math.ceil(filteredData().length / pageSize); - setTotalPages(pageNum); - }); - - return ( -
-
- - {props.title} - - {props.trimmed && viewport() === "small" && ( - - )} - {props.filters && ( -
- setSearchKey(e)} - type="text" - placeholder="Type to search" - /> - -
- )} -
-
- {props?.columns && props.data?.length > 0 && ( - - )} - {props?.data?.length === 0 && } -
-
- {" "} - {props.trimmed && viewport() === "wide" && ( - - )} -
- {!props.trimmed && ( - - )} -
- ); -}; - -export default CardWrapper; diff --git a/packages/cacti-ledger-browser/src/components/Chart/Chart.module.css b/packages/cacti-ledger-browser/src/components/Chart/Chart.module.css deleted file mode 100644 index be4a07ddb5..0000000000 --- a/packages/cacti-ledger-browser/src/components/Chart/Chart.module.css +++ /dev/null @@ -1,29 +0,0 @@ -.chart-wrapper { - width: 100%; - height:fit-content; - display: flex; - flex-direction: column; - gap: 1rem; - justify-content: center; - align-items: center; - background-color: rgb(253, 253, 253); - border-radius: 10px; - border: 1px solid rgb(238, 238, 238); -} - -.chart-wrapper > span { - margin-top: 1rem; - font-size: 24px; -} - -.chart-wrapper-line{ - padding:1rem; - width: 100%; - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - background-color: rgb(253, 253, 253); - border-radius: 10px; - border: 1px solid rgb(238, 238, 238); -} \ No newline at end of file diff --git a/packages/cacti-ledger-browser/src/components/Chart/Chart.tsx b/packages/cacti-ledger-browser/src/components/Chart/Chart.tsx deleted file mode 100644 index 23c1bf9188..0000000000 --- a/packages/cacti-ledger-browser/src/components/Chart/Chart.tsx +++ /dev/null @@ -1,66 +0,0 @@ -import { SolidApexCharts } from "solid-apexcharts"; -import { createSignal, createEffect, Component } from "solid-js"; -import { ERC20Txn } from "../../schema/supabase-types"; -// @ts-expect-error -import styles from "./Chart.module.css"; - -const Chart: Component<{ chartData: any }> = (props) => { - const [chartProps, setChartProps] = createSignal<{ - series: any; - options: any; - }>({ - series: { - list: [ - { - name: "balance", - data: [], - }, - ], - }, - options: { - chart: { - id: "solidchart-example", - }, - xaxis: { - type: "datetime", - }, - }, - }); - - createEffect(async () => { - const { chartData } = props; - - setChartProps({ - options: { - chart: { - id: "solidchart-example", - }, - xaxis: { - categories: chartData()?.map((txn: ERC20Txn) => txn.token_address), - }, - }, - series: { - list: [ - { - name: "balance", - data: chartData()?.map((txn: ERC20Txn) => txn.balance), - }, - ], - }, - }); - }); - - return ( -
- Balance - -
- ); -}; - -export default Chart; diff --git a/packages/cacti-ledger-browser/src/components/Chart/LineChart.tsx b/packages/cacti-ledger-browser/src/components/Chart/LineChart.tsx deleted file mode 100644 index 4ee210d8fb..0000000000 --- a/packages/cacti-ledger-browser/src/components/Chart/LineChart.tsx +++ /dev/null @@ -1,80 +0,0 @@ -import { SolidApexCharts } from "solid-apexcharts"; -import { createSignal, createEffect, Component } from "solid-js"; -import moment from "moment"; -import { balanceDate } from "../../schema/supabase-types"; -// @ts-expect-error -import styles from "./Chart.module.css"; - -const LineChart: Component<{ chartData: any }> = (props) => { - const [chartProps, setChartProps] = createSignal({ - series: { - list: [ - { - name: "balance", - data: [], - }, - ], - }, - options: { - chart: { - id: "solidchart-example", - }, - xaxis: { - categories: [], - }, - }, - }); - - createEffect(async () => { - const { chartData } = props; - - setChartProps({ - options: { - chart: { - id: "solidchart-example", - }, - stroke: { - curve: "stepline", - }, - tooltip: { - x: { - show: true, - format: "dd MM yyyy h:mm", - formatter: undefined, - }, - }, - xaxis: { - type: "datetime", - categories: chartData()?.map((txn: balanceDate) => - moment(txn.created_at).format("YYYY-MM-DD h:mm:ss a"), - ), - labels: { - format: "dd MM yyyy h:mm", - }, - }, - }, - series: { - list: [ - { - name: "balance", - data: chartData()?.map((txn: balanceDate) => txn.balance), - }, - ], - }, - }); - }); - - return ( -
- -
- ); -}; - -export default LineChart; diff --git a/packages/cacti-ledger-browser/src/components/Pagination/Pagination.module.css b/packages/cacti-ledger-browser/src/components/Pagination/Pagination.module.css deleted file mode 100644 index 0632e5e845..0000000000 --- a/packages/cacti-ledger-browser/src/components/Pagination/Pagination.module.css +++ /dev/null @@ -1,51 +0,0 @@ -.pagination { - width: 100%; - padding: 1rem; - justify-content: flex-end; - display: flex; - align-items: center; - gap: 10px; -} - -.pagination-counter { - height: 2.5rem; - display: flex; - align-items: center; - padding: 0 1rem; - border-radius: 10px; - border: 1px solid rgb(204, 206, 205); -} - -.pagination-jump { - display: flex; - gap: 10px; - padding: 9px 1rem; - background-color: rgb(233, 229, 229); - border-radius: 10px; -} - -input { - border-radius: 10px; - border: 1px solid rgb(54, 51, 224); - padding: 0 0.5rem; - width: 7rem; - text-align: center; - font-size: 1rem; -} - -@media (max-width: 1699px) { - .pagination { - padding: 0; - justify-content: center; - position: relative; - } - - .pagination button { - min-width: 85px; - } - - .pagination-jump { - position: absolute; - top: 2.75rem; - } -} diff --git a/packages/cacti-ledger-browser/src/components/Pagination/Pagination.tsx b/packages/cacti-ledger-browser/src/components/Pagination/Pagination.tsx deleted file mode 100644 index abc483bb06..0000000000 --- a/packages/cacti-ledger-browser/src/components/Pagination/Pagination.tsx +++ /dev/null @@ -1,66 +0,0 @@ -import Button from "../UI/Button/Button"; -import { - FaSolidAngleRight, - FaSolidAngleLeft, - FaSolidAnglesLeft, - FaSolidAnglesRight, -} from "solid-icons/fa"; -import { Component, createSignal } from "solid-js"; -// @ts-expect-error -import styles from "./Pagination.module.css"; - -type pagination = { - current: number; - total: number; - goToPage: (pageNumber: number) => void; - goNextPage: () => void; - goPrevPage: () => void; -}; - -const Pagination: Component = (props) => { - let inputRef: any; - const getInputValue = () => - inputRef?.value ? inputRef.value : props.current; - const [goToPageVisible, setGoToPageVisible] = createSignal(false); - - return ( -
- - - - {goToPageVisible() === true && ( -
- - -
- )} - - -
- ); -}; - -export default Pagination; diff --git a/packages/cacti-ledger-browser/src/components/TokenHeader/TokenAccount.tsx b/packages/cacti-ledger-browser/src/components/TokenHeader/TokenAccount.tsx deleted file mode 100644 index 8a7125a1a7..0000000000 --- a/packages/cacti-ledger-browser/src/components/TokenHeader/TokenAccount.tsx +++ /dev/null @@ -1,20 +0,0 @@ -import { BiRegularWallet } from "solid-icons/bi"; -import { Component } from "solid-js"; -// @ts-expect-error -import styles from "./TokenHeader.module.css"; - -const TokenAccount: Component<{ accountNum: string }> = (props) => { - return ( -
- - {" "} - {" "} - {props.accountNum} - -
- ); -}; - -export default TokenAccount; diff --git a/packages/cacti-ledger-browser/src/components/TokenHeader/TokenHeader.module.css b/packages/cacti-ledger-browser/src/components/TokenHeader/TokenHeader.module.css deleted file mode 100644 index 2d9ef9600c..0000000000 --- a/packages/cacti-ledger-browser/src/components/TokenHeader/TokenHeader.module.css +++ /dev/null @@ -1,57 +0,0 @@ -.token-header { - display: flex; - flex-direction: column; - width: 100%; - gap: 1rem; -} - -.token-details { - width: 100%; - height: min-content; - border: 1px solid rgb(240, 236, 236); - border-radius: 10px; - gap: 3rem; - padding: 1rem 2rem; - display: flex; - justify-content: flex-start; - align-items: center; - background-color: rgb(247, 245, 245); -} - -.token-details div { - display: flex; - align-items: center; - gap: 1rem; -} - -.token-icon { - height: 100%; - transform: translateY(10%); - color: rgb(34, 70, 70); -} - -.token-account { - font-size: 16px; - width: 100%; - height: min-content; - display: flex; - align-items: center; - justify-content: center; - background-color: rgb(247, 245, 245); - border-radius: 10px; - padding: 1rem; - padding-left: 2rem; -} - -.token-account span { - display: flex; - align-items: center; - gap: .5rem; -} - -.token-account-icon { - color: rgb(22, 92, 65); - font-size: 28px; - height: 30px; - width: 30px; -} \ No newline at end of file diff --git a/packages/cacti-ledger-browser/src/components/TokenHeader/TokenHeader.tsx b/packages/cacti-ledger-browser/src/components/TokenHeader/TokenHeader.tsx deleted file mode 100644 index 9224480d95..0000000000 --- a/packages/cacti-ledger-browser/src/components/TokenHeader/TokenHeader.tsx +++ /dev/null @@ -1,52 +0,0 @@ -import TokenAccount from './TokenAccount' -import { Component } from 'solid-js' -import { createSignal, createEffect } from 'solid-js' -import { TokenMetadata20 } from '../../schema/supabase-types' -import { supabase } from '../../supabase-client' -// @ts-expect-error -import styles from "./TokenHeader.module.css"; - -const TokenHeader: Component<{ accountNum: string; token_address: string }> = ( - props, -) => { - const [tokenData, setTokenData] = createSignal(); - - createEffect(async () => { - try { - const { data, error } = await supabase - .from(`token_metadata_erc20`) - .select("*") - .match({ address: props.token_address }); - console.log(data); - if (data?.[0]) { - setTokenData(data[0]); - } else { - throw new Error("Failed to load token details"); - } - } catch (error: any) { - console.error(error.message); - } - }, []); - - return ( -
- -
-

- Address: {props.token_address} -

-

- Created at: {tokenData()?.created_at} -

-

- Total supply: - {tokenData()?.total_supply} -

-
-
- ); -}; - -export default TokenHeader; - - diff --git a/packages/cacti-ledger-browser/src/components/UI/Button/Button.module.css b/packages/cacti-ledger-browser/src/components/UI/Button/Button.module.css deleted file mode 100644 index eab9eabd84..0000000000 --- a/packages/cacti-ledger-browser/src/components/UI/Button/Button.module.css +++ /dev/null @@ -1,77 +0,0 @@ -.button { - color: rgb(14, 48, 23); - background-color: rgb(248, 248, 250); - height: 2.5rem; - display: flex; - align-items: center; - justify-content: center; - width: max-content; - min-width: 100px; - padding: 10px; - border: 1px solid rgb(32, 133, 77); - font-family: 'Roboto'; - border-radius: 10px; -} - -.button:hover { - background-color: rgb(219, 219, 224); - transform: scale(1.01); - cursor: pointer; -} - -.button-primary { - background-color: rgb(244, 247, 245); - color:rgb(14, 44, 14); - border-radius: 5px; - width:150px; -} - -.button-primary:hover { background-color: rgb(226, 253, 219);} - -.button-warn { background-color: rgb(155, 22, 13);} - -.button-warn:hover { background-color: rgb(114, 22, 16);} - -.button-menu{ - border:none; - background: transparent; - height: 100%; - transition: background-color 0.5s ease-out; - position:relative; - border-radius: 0; - -} -.button-menu:hover{ -color:rgb(0, 0, 0); -background-color: rgb(243, 242, 242); -} -.button-menu:hover:after { - content: ''; - display: block; - position: absolute; - left: 0; - right: 0; - bottom: 1px; - width: 100%; - height: 1px; - border-bottom: 2px solid green; - -} - -.button-link { - background: transparent; - border:none; - height: min-content; - color:rgb(64, 64, 228); -} - -.button-link:hover{ - background: transparent; - color:rgb(78, 78, 236); -} - -@media (max-width: 1699px) { - .button-primary { - font-size: 1rem; - } -} \ No newline at end of file diff --git a/packages/cacti-ledger-browser/src/components/UI/Button/Button.tsx b/packages/cacti-ledger-browser/src/components/UI/Button/Button.tsx deleted file mode 100644 index c69ad06233..0000000000 --- a/packages/cacti-ledger-browser/src/components/UI/Button/Button.tsx +++ /dev/null @@ -1,28 +0,0 @@ -import { ParentComponent } from "solid-js"; -// @ts-expect-error -import styles from "./Button.module.css"; - -const Button: ParentComponent<{ - type?: string; - onClick: () => void; - disabled?: boolean; -}> = (props) => { - type ObjectKey = keyof typeof styles; - const buttonTypeStyle = `button-${props.type}` as ObjectKey; - - const handleClick = (e: MouseEvent) => { - e.stopPropagation(); - props.onClick(); - }; - - return ( - - ); -}; - -export default Button; diff --git a/packages/cacti-ledger-browser/src/components/UI/CustomTable/CustomTable.css b/packages/cacti-ledger-browser/src/components/UI/CustomTable/CustomTable.css deleted file mode 100644 index d94c8789f0..0000000000 --- a/packages/cacti-ledger-browser/src/components/UI/CustomTable/CustomTable.css +++ /dev/null @@ -1,53 +0,0 @@ -table { - border-collapse: separate; - border-spacing: 0; - width: 100%; - } - - tbody tr { - background-color: rgb(248, 248, 248); - border: 1px solid rgb(219, 241, 232); - border-radius: 10px; - } - - tbody tr:hover { - cursor: pointer; - background-color: rgb(235, 240, 237); - } - - th { - background-color: rgb(240, 235, 235); - border-style: none; - border-bottom: solid 1px rgb(223, 218, 218); - padding: 10px; - } - - td { - min-height: 2rem; - border-style: none; - border-bottom: solid 4px rgb(255, 255, 255); - padding: 1.5rem .5rem; - text-align: center; - } - - tr { - min-height: 20rem; - background-color: rgb(90, 103, 116); - padding: 1rem; - } - - tr:first-child th:first-child { - border-top-left-radius: 10px; - } - - tr:first-child th:last-child { - border-top-right-radius: 10px; - } - - tr:last-child td:first-child { - border-bottom-left-radius: 10px; - } - - tr:last-child td:last-child { - border-bottom-right-radius: 10px; - } \ No newline at end of file diff --git a/packages/cacti-ledger-browser/src/components/UI/CustomTable/CustomTable.module.css b/packages/cacti-ledger-browser/src/components/UI/CustomTable/CustomTable.module.css deleted file mode 100644 index 306f13ac57..0000000000 --- a/packages/cacti-ledger-browser/src/components/UI/CustomTable/CustomTable.module.css +++ /dev/null @@ -1,137 +0,0 @@ -table { - border-collapse: separate; - border-spacing: 0; - width: 100%; -} - -tbody tr { - background-color: rgb(248, 248, 248); - border: 1px solid rgb(219, 241, 232); - border-radius: 10px; -} - -tbody tr:hover { - cursor: pointer; - background-color: rgb(235, 240, 237); -} - -th { - background-color: rgb(240, 235, 235); - border-style: none; - border-bottom: solid 1px rgb(155, 153, 153); - padding: 10px; -} - -td { - min-height: 2rem; - border-style: none; - border-bottom: solid 2px rgb(255, 255, 255); - padding: 1.5rem 0.5rem; - text-align: center; -} - -tr { - min-height: 20rem; - background-color: rgb(90, 103, 116); - padding: 1rem; -} - -tr:first-child th:first-child { - border-top-left-radius: 10px; -} - -tr:first-child th:last-child { - border-top-right-radius: 10px; -} - -tr:last-child td:first-child { - border-bottom-left-radius: 10px; -} - -tr:last-child td:last-child { - border-bottom-right-radius: 10px; -} - -@media (max-width: 1699px) { - table { - width: 100%; - margin-bottom: 0.75rem; - table-layout: fixed; - } - - table:hover td:nth-child(even) { - cursor: pointer; - background-color: rgb(235, 240, 237); - } - - td { - position: relative; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - padding: 0.75rem; - } - - .table-rwd { - border: solid 1px rgb(223, 218, 218); - overflow: hidden; - } - - .table-rwd td { - border-bottom: solid 2px rgb(253, 253, 253); - } - - .table-rwd-heading { - background-color: rgb(240, 235, 235); - border-style: none; - padding: 0.5rem; - width: 140px; - font-weight: 700; - font-size: 0.9rem; - border-right: solid 1px rgb(223, 218, 218); - } - - .table-rwd:first-child { - border-top-left-radius: 10px; - } - - .table-rwd:first-child { - border-top-right-radius: 10px; - } - - .table-rwd:last-child { - border-bottom-left-radius: 10px; - } - - .table-rwd:last-child { - border-bottom-right-radius: 10px; - } - - .table-rwd tr:last-child > td:nth-last-of-type(2) { - border-bottom: 0; - } - - .table-rwd tr:last-child > td:last-of-type { - border-bottom: 0; - } - - .table-rwd td:last-child { - text-align: left; - } - - tr:first-child th:first-child { - border-top-left-radius: 0; - } - - tr:first-child th:last-child { - border-top-right-radius: 0; - } - - tr:last-child td:first-child { - border-bottom-left-radius: 0; - } - - tr:last-child td:last-child { - border-bottom-right-radius: 0; - } -} diff --git a/packages/cacti-ledger-browser/src/components/UI/CustomTable/CustomTable.tsx b/packages/cacti-ledger-browser/src/components/UI/CustomTable/CustomTable.tsx deleted file mode 100644 index e549ff40ea..0000000000 --- a/packages/cacti-ledger-browser/src/components/UI/CustomTable/CustomTable.tsx +++ /dev/null @@ -1,108 +0,0 @@ -import { Component, createSignal, createEffect, onCleanup } from "solid-js"; -import { TableProps, TableProperty } from "../../../schema/supabase-types"; - -import EmptyTablePlaceholder from "./EmptyTablePlaceholder/EmptyTablePlaceholder"; -// @ts-expect-error -import styles from "./CustomTable.module.css"; - - -const CustomTable: Component<{ cols: TableProps; data: any[] }> = (props) => { - - const [viewport, setViewport] = createSignal(""); - -createEffect(() => { - const screenResized = () => - setViewport(window.innerWidth <= 1699 ? "small" : "wide"); - screenResized(); - window.addEventListener("resize", screenResized, true); - onCleanup(() => { - window.removeEventListener("resize", screenResized, true); - }); -}); - - - - const getObjPropVal = (objProp: string[], row: any) => { - if (objProp.length === 1) return row[objProp[0]]; - else { - return objProp.map((prop) => ( - <> - {row[prop]} -

- - )); - } - }; - - const handleRowClick = (row: any) => { - props.cols.onClick.action(row[props.cols.onClick.prop]); - }; - - return ( - <> - {props.data.length === 0 ? ( - - ) : ( - <> - {viewport() === "wide" && ( - - - - {props.cols.schema.map((col) => ( - - ))} - - - - {props.data.map((row) => { - return ( - - {props.cols.schema.map((col: TableProperty) => ( - - ))} - - ); - })} - -
{col.display}
handleRowClick(row)}> - {getObjPropVal(col.objProp, row)} -
- )} - - {viewport() === "small" && ( - <> - {props.data.map((row) => { - return ( - handleRowClick(row)} - > - - {props.cols.schema.map((heading, idx) => { - return ( - - - - - ); - })} - -
- {heading.display} - - {getObjPropVal( - props.cols.schema[idx].objProp, - row, - )} -
- ); - })} - - )} - - )} - - ); -}; - -export default CustomTable; diff --git a/packages/cacti-ledger-browser/src/components/UI/CustomTable/EmptyTablePlaceholder/EmptyTablePlaceholder.module.css b/packages/cacti-ledger-browser/src/components/UI/CustomTable/EmptyTablePlaceholder/EmptyTablePlaceholder.module.css deleted file mode 100644 index 8d9bbfa661..0000000000 --- a/packages/cacti-ledger-browser/src/components/UI/CustomTable/EmptyTablePlaceholder/EmptyTablePlaceholder.module.css +++ /dev/null @@ -1,7 +0,0 @@ -.placeholder-container { - display: flex; - justify-content: center; - font-size: 2rem; - font-weight: bold; - color: rgb(9, 75, 9); -} \ No newline at end of file diff --git a/packages/cacti-ledger-browser/src/components/UI/CustomTable/EmptyTablePlaceholder/EmptyTablePlaceholder.tsx b/packages/cacti-ledger-browser/src/components/UI/CustomTable/EmptyTablePlaceholder/EmptyTablePlaceholder.tsx deleted file mode 100644 index 0a70ca9c27..0000000000 --- a/packages/cacti-ledger-browser/src/components/UI/CustomTable/EmptyTablePlaceholder/EmptyTablePlaceholder.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import { Component } from "solid-js"; - -// @ts-ignore -import styles from "./EmptyTablePlaceholder.module.css"; - -const EmptyTablePlaceholder: Component = () => { - return
No data available
; -}; - -export default EmptyTablePlaceholder; diff --git a/packages/cacti-ledger-browser/src/components/UI/Menu/Menu.module.css b/packages/cacti-ledger-browser/src/components/UI/Menu/Menu.module.css deleted file mode 100644 index ab9a7591e0..0000000000 --- a/packages/cacti-ledger-browser/src/components/UI/Menu/Menu.module.css +++ /dev/null @@ -1,22 +0,0 @@ -.nav-bar{ - width: 100%; - display: flex; - justify-content: flex-start; - padding-left: 8rem; - height: 4rem; - background-color: rgb(180, 218, 167); - align-items: center; - gap: 2rem; -} - -.navigation { - height: 100%; - display: flex; - gap: 1rem; -} - -@media (max-width: 1699px) { - .nav-bar{ - padding-left: 1rem; - } -} \ No newline at end of file diff --git a/packages/cacti-ledger-browser/src/components/UI/Menu/Menu.tsx b/packages/cacti-ledger-browser/src/components/UI/Menu/Menu.tsx deleted file mode 100644 index 970c4dc367..0000000000 --- a/packages/cacti-ledger-browser/src/components/UI/Menu/Menu.tsx +++ /dev/null @@ -1,60 +0,0 @@ -import Button from "../Button/Button"; -import { createSignal, createEffect, For, Show } from "solid-js"; -import { useNavigate, useLocation } from "@solidjs/router"; -// @ts-expect-error -import styles from "./Menu.module.css"; -import Select from "../Select/Select"; - -const pathsEth = [ - { title: "DASHBOARD", path: "/eth" }, - { title: "ERC20", path: "/eth/accounts/erc20" }, - { title: "NFT ERC721", path: "/eth/accounts/erc721" }, -]; -const pathsFabric = [{ title: "DASHBOARD", path: "/fabric" }]; - -const Menu = () => { - const navigate = useNavigate(); - const location = useLocation(); - const [activeLedger, setActiveLedger] = createSignal(""); - - const handleSelect = (selectedValue: string) => { - setActiveLedger(selectedValue); - navigate(`/${activeLedger()}`) - }; - - createEffect(()=>{ - if(activeLedger().length > 0) return - const currentPath = location.pathname - const ledgers = ['eth', 'fabric'] - - ledgers.forEach(ledger => { - if(currentPath.includes(ledger)){ - setActiveLedger(ledger) - } - }) - }) - - return ( -
- handleInput(e)} - onPaste={(e) => handleInput(e)} - /> - -
- ); -}; - -export default Search; diff --git a/packages/cacti-ledger-browser/src/components/UI/Select/Select.module.css b/packages/cacti-ledger-browser/src/components/UI/Select/Select.module.css deleted file mode 100644 index 19e2f837af..0000000000 --- a/packages/cacti-ledger-browser/src/components/UI/Select/Select.module.css +++ /dev/null @@ -1,73 +0,0 @@ -.select-wrapper { - height: 2.2rem; - width: 13rem; -} - -.select { - width: 100%; - height: 100%; - display: flex; -} - -.select-icon { - position: relative; - right: 30px; - height: 10px; - width: 10px; - transform: translateY(-50%) rotate(45deg); - pointer-events: none; -} - -.select-icon-up { - top: 60%; - border-top: 2px solid rgb(32, 133, 77); - border-left: 2px solid rgb(32, 133, 77); -} - -.select-icon-down { - top: 40%; - border-bottom: 2px solid rgb(32, 133, 77); - border-right: 2px solid rgb(32, 133, 77); -} - -.select-input { - width: 100%; - height: 100%; - font-family: "Roboto"; - font-size: 1rem; - color: rgb(102, 117, 106); - background-color: rgb(248, 248, 250); - border: 1px solid rgb(32, 133, 77); - border-radius: 10px; - cursor: pointer; - text-align: start; -} - -.select-input:hover { - background-color: rgb(235, 240, 237); -} - -.options-container { - z-index: 1000; - width: 100%; - position: relative; - overflow-y: auto; - border: 1px solid rgb(32, 133, 77); - border-radius: 10px; - color: rgb(102, 117, 106); - background: white; - cursor: pointer; -} - -.option { - padding: 5px; -} - -.selected-option { - padding: 5px; - background-color: rgb(235, 240, 237); -} - -.option:hover { - background-color: rgb(235, 240, 237); -} diff --git a/packages/cacti-ledger-browser/src/components/UI/Select/Select.tsx b/packages/cacti-ledger-browser/src/components/UI/Select/Select.tsx deleted file mode 100644 index b2ca834bcf..0000000000 --- a/packages/cacti-ledger-browser/src/components/UI/Select/Select.tsx +++ /dev/null @@ -1,78 +0,0 @@ -import { For, Component, createSignal } from "solid-js"; -import { useLocation } from "@solidjs/router"; - -// @ts-ignore -import styles from "./Select.module.css"; - -const options = [ - { value: "", display: "Select the ledger" }, - { value: "eth", display: "Ethereum" }, - { value: "fabric", display: "Fabric" }, -]; - -const Select: Component<{ - onSelect: (selectedOption: string) => void; - value: string; -}> = (props) => { - const selectStartLedgerByUrl = (path: string) => - options.find((option) => option.value === path); - - const [dropdownVisible, setDropdownVisible] = createSignal(false); - const startLocation = useLocation().pathname.split("/")[1]; - const [selectedOption, setSelectedOption] = createSignal( - selectStartLedgerByUrl(startLocation) || options[0], - ); - - const selectOption = (item: any) => { - setSelectedOption(item); - props.onSelect(item.value); - setDropdownVisible(false); - }; - - return ( -
-
setDropdownVisible(!dropdownVisible())} - > - setDropdownVisible(true)} - onBlur={() => setDropdownVisible(false)} - class={styles["select-input"]} - /> -
-
- {dropdownVisible() ? ( -
- - {(item) => ( -
selectOption(item)} - > - {item.display} -
- )} -
-
- ) : null} -
- ); -}; - -export default Select; diff --git a/packages/cacti-ledger-browser/src/index.css b/packages/cacti-ledger-browser/src/index.css deleted file mode 100644 index 46ecb129e1..0000000000 --- a/packages/cacti-ledger-browser/src/index.css +++ /dev/null @@ -1,16 +0,0 @@ -@import url('https://fonts.googleapis.com/css?family=Roboto'); -*{ - box-sizing: border-box; - padding: 0; - margin: 0; -} - -body { - margin: 0; - font-family: 'Roboto'; -} - -h1,h2,h3,h4,h5 { - color:rgb(36, 143, 36); -} - diff --git a/packages/cacti-ledger-browser/src/index.tsx b/packages/cacti-ledger-browser/src/index.tsx deleted file mode 100644 index 388b856121..0000000000 --- a/packages/cacti-ledger-browser/src/index.tsx +++ /dev/null @@ -1,14 +0,0 @@ -/* @refresh reload */ -import { render } from "solid-js/web"; -import { Router } from "@solidjs/router"; -import "./index.css"; -import App from "./App"; - -render( - () => ( - - - - ), - document.getElementById("root")!, -); diff --git a/packages/cacti-ledger-browser/src/logo.svg b/packages/cacti-ledger-browser/src/logo.svg deleted file mode 100644 index 025aa303c5..0000000000 --- a/packages/cacti-ledger-browser/src/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/cacti/index.ts b/packages/cacti-ledger-browser/src/main/typescript/apps/cacti/index.ts similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/cacti/index.ts rename to packages/cacti-ledger-browser/src/main/typescript/apps/cacti/index.ts diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/cacti/pages/status-page.tsx b/packages/cacti-ledger-browser/src/main/typescript/apps/cacti/pages/status-page.tsx similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/cacti/pages/status-page.tsx rename to packages/cacti-ledger-browser/src/main/typescript/apps/cacti/pages/status-page.tsx diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/components/Chart/Chart.module.css b/packages/cacti-ledger-browser/src/main/typescript/apps/eth/components/Chart/Chart.module.css similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/components/Chart/Chart.module.css rename to packages/cacti-ledger-browser/src/main/typescript/apps/eth/components/Chart/Chart.module.css diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/components/Chart/Chart.tsx b/packages/cacti-ledger-browser/src/main/typescript/apps/eth/components/Chart/Chart.tsx similarity index 87% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/components/Chart/Chart.tsx rename to packages/cacti-ledger-browser/src/main/typescript/apps/eth/components/Chart/Chart.tsx index d93dad5c1f..dea1604765 100644 --- a/packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/components/Chart/Chart.tsx +++ b/packages/cacti-ledger-browser/src/main/typescript/apps/eth/components/Chart/Chart.tsx @@ -1,9 +1,10 @@ import Chart from "react-apexcharts"; -import { ERC20Txn } from "../../schema/supabase-types"; + import styles from "./Chart.module.css"; +import { ERC20Txn } from "../../../../common/supabase-types"; -function ApexChart(props) { +function ApexChart(props: any) { const chartProps = { options: { chart: { diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/components/Chart/LineChart.tsx b/packages/cacti-ledger-browser/src/main/typescript/apps/eth/components/Chart/LineChart.tsx similarity index 70% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/components/Chart/LineChart.tsx rename to packages/cacti-ledger-browser/src/main/typescript/apps/eth/components/Chart/LineChart.tsx index 701c1cae76..48da2fe054 100644 --- a/packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/components/Chart/LineChart.tsx +++ b/packages/cacti-ledger-browser/src/main/typescript/apps/eth/components/Chart/LineChart.tsx @@ -1,11 +1,33 @@ import Chart from "react-apexcharts"; import moment from "moment"; -import { balanceDate } from "../../schema/supabase-types"; + import styles from "./Chart.module.css"; import { useEffect, useState } from "react"; +import { balanceDate } from "../../../../common/supabase-types"; + +interface ChartProps { + series: { + list: { + name: string; + data: any[]; + }[]; + }; + options: { + stroke: Record; + tooltip: Record; + chart: { + id: string; + }; + xaxis: { + type: "datetime" | "category" | "numeric" | undefined; + categories: any[]; + labels: Record; + }; + }; +} -function LineChart(props) { - const [chartProps, setChartProps] = useState({ +function LineChart(props:any ) { + const [chartProps, setChartProps] = useState({ series: { list: [ { @@ -15,11 +37,16 @@ function LineChart(props) { ], }, options: { + stroke: {}, + tooltip: { + }, chart: { id: "chart-example", }, xaxis: { + type: undefined, categories: [], + labels: {} }, }, }); diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/components/TokenHeader/TokenAccount.tsx b/packages/cacti-ledger-browser/src/main/typescript/apps/eth/components/TokenHeader/TokenAccount.tsx similarity index 88% rename from packages/cacti-ledger-browser-react/src/main/typescript/components/TokenHeader/TokenAccount.tsx rename to packages/cacti-ledger-browser/src/main/typescript/apps/eth/components/TokenHeader/TokenAccount.tsx index 0400b16cfc..c0b9b6be85 100644 --- a/packages/cacti-ledger-browser-react/src/main/typescript/components/TokenHeader/TokenAccount.tsx +++ b/packages/cacti-ledger-browser/src/main/typescript/apps/eth/components/TokenHeader/TokenAccount.tsx @@ -1,7 +1,7 @@ import styles from "./TokenHeader.module.css"; import AccountBalanceWalletIcon from "@mui/icons-material/AccountBalanceWallet"; -function TokenAccount(props) { +function TokenAccount(props: Record) { return (
diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/components/TokenHeader/TokenHeader.module.css b/packages/cacti-ledger-browser/src/main/typescript/apps/eth/components/TokenHeader/TokenHeader.module.css similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/components/TokenHeader/TokenHeader.module.css rename to packages/cacti-ledger-browser/src/main/typescript/apps/eth/components/TokenHeader/TokenHeader.module.css diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/fabric/components/TokenHeader/TokenHeader.tsx b/packages/cacti-ledger-browser/src/main/typescript/apps/eth/components/TokenHeader/TokenHeader.tsx similarity index 86% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/fabric/components/TokenHeader/TokenHeader.tsx rename to packages/cacti-ledger-browser/src/main/typescript/apps/eth/components/TokenHeader/TokenHeader.tsx index d47c124ff8..c3d2b6d59e 100644 --- a/packages/cacti-ledger-browser-react/src/main/typescript/apps/fabric/components/TokenHeader/TokenHeader.tsx +++ b/packages/cacti-ledger-browser/src/main/typescript/apps/eth/components/TokenHeader/TokenHeader.tsx @@ -1,11 +1,10 @@ import TokenAccount from "./TokenAccount"; -import { TokenMetadata20 } from "../../schema/supabase-types"; -import { supabase } from "../../supabase-client"; - import styles from "./TokenHeader.module.css"; import { useEffect, useState } from "react"; +import { TokenMetadata20 } from "../../../../common/supabase-types"; +import { supabase } from "../../../../common/supabase-client"; -function TokenHeader(props) { +function TokenHeader(props: Record) { const [tokenData, setTokenData] = useState(); const fetchData = async () => { diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/index.tsx b/packages/cacti-ledger-browser/src/main/typescript/apps/eth/index.tsx similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/index.tsx rename to packages/cacti-ledger-browser/src/main/typescript/apps/eth/index.tsx diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/Accounts/Accounts.module.css b/packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/Accounts/Accounts.module.css similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/Accounts/Accounts.module.css rename to packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/Accounts/Accounts.module.css diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/Accounts/Accounts.tsx b/packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/Accounts/Accounts.tsx similarity index 96% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/Accounts/Accounts.tsx rename to packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/Accounts/Accounts.tsx index 6d04fe4cf3..4a84b417e3 100644 --- a/packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/Accounts/Accounts.tsx +++ b/packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/Accounts/Accounts.tsx @@ -54,7 +54,7 @@ function Accounts() { data={accounts} filters={["address"]} trimmed={false} - getSearchValue={(e) => setSearchKey(e)} + getSearchValue={(e: any) => setSearchKey(e)} >
); diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/Blocks/Blocks.module.css b/packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/Blocks/Blocks.module.css similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/Blocks/Blocks.module.css rename to packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/Blocks/Blocks.module.css diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/Blocks/Blocks.tsx b/packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/Blocks/Blocks.tsx similarity index 96% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/Blocks/Blocks.tsx rename to packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/Blocks/Blocks.tsx index c54552e57a..dbafa5e62f 100644 --- a/packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/Blocks/Blocks.tsx +++ b/packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/Blocks/Blocks.tsx @@ -1,9 +1,10 @@ import { supabase } from "../../../../common/supabase-client"; import { useNavigate } from "react-router-dom"; import CardWrapper from "../../../../components/ui/CardWrapper"; -import { Block } from "../../../schema/supabase-types"; + import styles from "./Blocks.module.css"; import { useEffect, useState } from "react"; +import { Block } from "web3"; type ObjectKey = keyof typeof styles; diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/Dashboard/Dashboard.module.css b/packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/Dashboard/Dashboard.module.css similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/Dashboard/Dashboard.module.css rename to packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/Dashboard/Dashboard.module.css diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/Dashboard/Dashboard.tsx b/packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/Dashboard/Dashboard.tsx similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/Dashboard/Dashboard.tsx rename to packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/Dashboard/Dashboard.tsx diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/Details/BlockDetails.tsx b/packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/Details/BlockDetails.tsx similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/Details/BlockDetails.tsx rename to packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/Details/BlockDetails.tsx diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/Details/Details.module.css b/packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/Details/Details.module.css similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/Details/Details.module.css rename to packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/Details/Details.module.css diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/Details/TokenDetails.tsx b/packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/Details/TokenDetails.tsx similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/Details/TokenDetails.tsx rename to packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/Details/TokenDetails.tsx diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/Details/TokenTransactionDetails.tsx b/packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/Details/TokenTransactionDetails.tsx similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/Details/TokenTransactionDetails.tsx rename to packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/Details/TokenTransactionDetails.tsx diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/Details/TransactionDetails.tsx b/packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/Details/TransactionDetails.tsx similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/Details/TransactionDetails.tsx rename to packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/Details/TransactionDetails.tsx diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/ERC20/ERC20.module.css b/packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/ERC20/ERC20.module.css similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/ERC20/ERC20.module.css rename to packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/ERC20/ERC20.module.css diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/ERC20/ERC20.tsx b/packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/ERC20/ERC20.tsx similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/ERC20/ERC20.tsx rename to packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/ERC20/ERC20.tsx diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/ERC721/ERC721.module.css b/packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/ERC721/ERC721.module.css similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/ERC721/ERC721.module.css rename to packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/ERC721/ERC721.module.css diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/ERC721/ERC721.tsx b/packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/ERC721/ERC721.tsx similarity index 95% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/ERC721/ERC721.tsx rename to packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/ERC721/ERC721.tsx index f9d6e514ba..d703a8aae4 100644 --- a/packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/ERC721/ERC721.tsx +++ b/packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/ERC721/ERC721.tsx @@ -1,11 +1,11 @@ import TokenAccount from "../../../../components/TokenHeader/TokenAccount"; import { supabase } from "../../../../common/supabase-client"; import CardWrapper from "../../../../components/ui/CardWrapper"; -import { ERC721Txn } from "../../../schema/supabase-types"; -import { TokenMetadata721 } from "../../../schema/supabase-types"; + import styles from "./ERC721.module.css"; import { useNavigate, useParams } from "react-router-dom"; import { useEffect, useState } from "react"; +import { ERC721Txn, TokenMetadata721 } from "../../../../common/supabase-types"; function ERC721() { const params = useParams(); diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/SingleTokenHistory/SingleTokenHistory.module.css b/packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/SingleTokenHistory/SingleTokenHistory.module.css similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/SingleTokenHistory/SingleTokenHistory.module.css rename to packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/SingleTokenHistory/SingleTokenHistory.module.css diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/SingleTokenHistory/SingleTokenHistory.tsx b/packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/SingleTokenHistory/SingleTokenHistory.tsx similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/SingleTokenHistory/SingleTokenHistory.tsx rename to packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/SingleTokenHistory/SingleTokenHistory.tsx diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/Transactions/Transactions.module.css b/packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/Transactions/Transactions.module.css similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/Transactions/Transactions.module.css rename to packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/Transactions/Transactions.module.css diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/Transactions/Transactions.tsx b/packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/Transactions/Transactions.tsx similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/pages/Transactions/Transactions.tsx rename to packages/cacti-ledger-browser/src/main/typescript/apps/eth/pages/Transactions/Transactions.tsx diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/components/TokenHeader/TokenAccount.tsx b/packages/cacti-ledger-browser/src/main/typescript/apps/fabric/components/TokenHeader/TokenAccount.tsx similarity index 92% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/components/TokenHeader/TokenAccount.tsx rename to packages/cacti-ledger-browser/src/main/typescript/apps/fabric/components/TokenHeader/TokenAccount.tsx index 0400b16cfc..565880406c 100644 --- a/packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/components/TokenHeader/TokenAccount.tsx +++ b/packages/cacti-ledger-browser/src/main/typescript/apps/fabric/components/TokenHeader/TokenAccount.tsx @@ -1,7 +1,7 @@ import styles from "./TokenHeader.module.css"; import AccountBalanceWalletIcon from "@mui/icons-material/AccountBalanceWallet"; -function TokenAccount(props) { +function TokenAccount(props: any) { return (
diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/fabric/components/TokenHeader/TokenHeader.module.css b/packages/cacti-ledger-browser/src/main/typescript/apps/fabric/components/TokenHeader/TokenHeader.module.css similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/fabric/components/TokenHeader/TokenHeader.module.css rename to packages/cacti-ledger-browser/src/main/typescript/apps/fabric/components/TokenHeader/TokenHeader.module.css diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/components/TokenHeader/TokenHeader.tsx b/packages/cacti-ledger-browser/src/main/typescript/apps/fabric/components/TokenHeader/TokenHeader.tsx similarity index 87% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/components/TokenHeader/TokenHeader.tsx rename to packages/cacti-ledger-browser/src/main/typescript/apps/fabric/components/TokenHeader/TokenHeader.tsx index d47c124ff8..fa846452d1 100644 --- a/packages/cacti-ledger-browser-react/src/main/typescript/apps/eth/components/TokenHeader/TokenHeader.tsx +++ b/packages/cacti-ledger-browser/src/main/typescript/apps/fabric/components/TokenHeader/TokenHeader.tsx @@ -1,11 +1,12 @@ +import { supabase } from "../../../../common/supabase-client"; +import { TokenMetadata20 } from "../../../../common/supabase-types"; import TokenAccount from "./TokenAccount"; -import { TokenMetadata20 } from "../../schema/supabase-types"; -import { supabase } from "../../supabase-client"; + import styles from "./TokenHeader.module.css"; import { useEffect, useState } from "react"; -function TokenHeader(props) { +function TokenHeader(props: any) { const [tokenData, setTokenData] = useState(); const fetchData = async () => { diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/fabric/index.tsx b/packages/cacti-ledger-browser/src/main/typescript/apps/fabric/index.tsx similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/fabric/index.tsx rename to packages/cacti-ledger-browser/src/main/typescript/apps/fabric/index.tsx diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/fabric/pages/BlocksFabric/BlocksFabric.module.css b/packages/cacti-ledger-browser/src/main/typescript/apps/fabric/pages/BlocksFabric/BlocksFabric.module.css similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/fabric/pages/BlocksFabric/BlocksFabric.module.css rename to packages/cacti-ledger-browser/src/main/typescript/apps/fabric/pages/BlocksFabric/BlocksFabric.module.css diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/fabric/pages/BlocksFabric/BlocksFabric.tsx b/packages/cacti-ledger-browser/src/main/typescript/apps/fabric/pages/BlocksFabric/BlocksFabric.tsx similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/fabric/pages/BlocksFabric/BlocksFabric.tsx rename to packages/cacti-ledger-browser/src/main/typescript/apps/fabric/pages/BlocksFabric/BlocksFabric.tsx diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/fabric/pages/DashFabric/DashFabric.module.css b/packages/cacti-ledger-browser/src/main/typescript/apps/fabric/pages/DashFabric/DashFabric.module.css similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/fabric/pages/DashFabric/DashFabric.module.css rename to packages/cacti-ledger-browser/src/main/typescript/apps/fabric/pages/DashFabric/DashFabric.module.css diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/fabric/pages/DashFabric/DashFabric.tsx b/packages/cacti-ledger-browser/src/main/typescript/apps/fabric/pages/DashFabric/DashFabric.tsx similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/fabric/pages/DashFabric/DashFabric.tsx rename to packages/cacti-ledger-browser/src/main/typescript/apps/fabric/pages/DashFabric/DashFabric.tsx diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/fabric/pages/FabricBlock/FabricBlock.module.css b/packages/cacti-ledger-browser/src/main/typescript/apps/fabric/pages/FabricBlock/FabricBlock.module.css similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/fabric/pages/FabricBlock/FabricBlock.module.css rename to packages/cacti-ledger-browser/src/main/typescript/apps/fabric/pages/FabricBlock/FabricBlock.module.css diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/fabric/pages/FabricBlock/FabricBlock.tsx b/packages/cacti-ledger-browser/src/main/typescript/apps/fabric/pages/FabricBlock/FabricBlock.tsx similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/fabric/pages/FabricBlock/FabricBlock.tsx rename to packages/cacti-ledger-browser/src/main/typescript/apps/fabric/pages/FabricBlock/FabricBlock.tsx diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/fabric/pages/FabricTransaction/FabricTransaction.module.css b/packages/cacti-ledger-browser/src/main/typescript/apps/fabric/pages/FabricTransaction/FabricTransaction.module.css similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/fabric/pages/FabricTransaction/FabricTransaction.module.css rename to packages/cacti-ledger-browser/src/main/typescript/apps/fabric/pages/FabricTransaction/FabricTransaction.module.css diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/fabric/pages/FabricTransaction/FabricTransaction.tsx b/packages/cacti-ledger-browser/src/main/typescript/apps/fabric/pages/FabricTransaction/FabricTransaction.tsx similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/fabric/pages/FabricTransaction/FabricTransaction.tsx rename to packages/cacti-ledger-browser/src/main/typescript/apps/fabric/pages/FabricTransaction/FabricTransaction.tsx diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/fabric/pages/TransactionsFabric/TransactionsFabric.module.css b/packages/cacti-ledger-browser/src/main/typescript/apps/fabric/pages/TransactionsFabric/TransactionsFabric.module.css similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/fabric/pages/TransactionsFabric/TransactionsFabric.module.css rename to packages/cacti-ledger-browser/src/main/typescript/apps/fabric/pages/TransactionsFabric/TransactionsFabric.module.css diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/fabric/pages/TransactionsFabric/TransactionsFabric.tsx b/packages/cacti-ledger-browser/src/main/typescript/apps/fabric/pages/TransactionsFabric/TransactionsFabric.tsx similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/fabric/pages/TransactionsFabric/TransactionsFabric.tsx rename to packages/cacti-ledger-browser/src/main/typescript/apps/fabric/pages/TransactionsFabric/TransactionsFabric.tsx diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/common/config.tsx b/packages/cacti-ledger-browser/src/main/typescript/common/config.tsx similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/common/config.tsx rename to packages/cacti-ledger-browser/src/main/typescript/common/config.tsx diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/common/supabase-client.tsx b/packages/cacti-ledger-browser/src/main/typescript/common/supabase-client.tsx similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/common/supabase-client.tsx rename to packages/cacti-ledger-browser/src/main/typescript/common/supabase-client.tsx diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/common/supabase-types.ts b/packages/cacti-ledger-browser/src/main/typescript/common/supabase-types.ts similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/common/supabase-types.ts rename to packages/cacti-ledger-browser/src/main/typescript/common/supabase-types.ts diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/common/token-standards.ts b/packages/cacti-ledger-browser/src/main/typescript/common/token-standards.ts similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/common/token-standards.ts rename to packages/cacti-ledger-browser/src/main/typescript/common/token-standards.ts diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/components/AccountCard/AccountCard.module.css b/packages/cacti-ledger-browser/src/main/typescript/components/AccountCard/AccountCard.module.css similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/components/AccountCard/AccountCard.module.css rename to packages/cacti-ledger-browser/src/main/typescript/components/AccountCard/AccountCard.module.css diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/components/AccountCard/AccountCard.tsx b/packages/cacti-ledger-browser/src/main/typescript/components/AccountCard/AccountCard.tsx similarity index 92% rename from packages/cacti-ledger-browser-react/src/main/typescript/components/AccountCard/AccountCard.tsx rename to packages/cacti-ledger-browser/src/main/typescript/components/AccountCard/AccountCard.tsx index b63876faf1..72a6075872 100644 --- a/packages/cacti-ledger-browser-react/src/main/typescript/components/AccountCard/AccountCard.tsx +++ b/packages/cacti-ledger-browser/src/main/typescript/components/AccountCard/AccountCard.tsx @@ -1,7 +1,7 @@ import { useNavigate, useParams } from "react-router-dom"; import styles from "./AccountCard.module.css"; -function AccountCard(props) { +function AccountCard(props: any) { const params = useParams(); const navigate = useNavigate(); const handleClick = () => { diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/components/AppShell/Home.module.css b/packages/cacti-ledger-browser/src/main/typescript/components/AppShell/Home.module.css similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/components/AppShell/Home.module.css rename to packages/cacti-ledger-browser/src/main/typescript/components/AppShell/Home.module.css diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/components/AppShell/Home.tsx b/packages/cacti-ledger-browser/src/main/typescript/components/AppShell/Home.tsx similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/components/AppShell/Home.tsx rename to packages/cacti-ledger-browser/src/main/typescript/components/AppShell/Home.tsx diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/components/AppShell/LedgerSelector.module.css b/packages/cacti-ledger-browser/src/main/typescript/components/AppShell/LedgerSelector.module.css similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/components/AppShell/LedgerSelector.module.css rename to packages/cacti-ledger-browser/src/main/typescript/components/AppShell/LedgerSelector.module.css diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/components/AppShell/LedgerSelector.tsx b/packages/cacti-ledger-browser/src/main/typescript/components/AppShell/LedgerSelector.tsx similarity index 98% rename from packages/cacti-ledger-browser-react/src/main/typescript/components/AppShell/LedgerSelector.tsx rename to packages/cacti-ledger-browser/src/main/typescript/components/AppShell/LedgerSelector.tsx index 9aa3a6c44b..7de5324c23 100644 --- a/packages/cacti-ledger-browser-react/src/main/typescript/components/AppShell/LedgerSelector.tsx +++ b/packages/cacti-ledger-browser/src/main/typescript/components/AppShell/LedgerSelector.tsx @@ -8,7 +8,7 @@ const options = [ { value: "fabric", display: "Fabric" }, ]; -function LedgerSelector(props) { +function LedgerSelector(props: any) { const selectStartLedgerByUrl = (path: string) => options.find((option) => option.value === path); diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/components/AppShell/Root.module.css b/packages/cacti-ledger-browser/src/main/typescript/components/AppShell/Root.module.css similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/components/AppShell/Root.module.css rename to packages/cacti-ledger-browser/src/main/typescript/components/AppShell/Root.module.css diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/components/AppShell/Root.tsx b/packages/cacti-ledger-browser/src/main/typescript/components/AppShell/Root.tsx similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/components/AppShell/Root.tsx rename to packages/cacti-ledger-browser/src/main/typescript/components/AppShell/Root.tsx diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/components/BlockCard/BlockCard.module.css b/packages/cacti-ledger-browser/src/main/typescript/components/BlockCard/BlockCard.module.css similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/components/BlockCard/BlockCard.module.css rename to packages/cacti-ledger-browser/src/main/typescript/components/BlockCard/BlockCard.module.css diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/components/BlockCard/BlockCard.tsx b/packages/cacti-ledger-browser/src/main/typescript/components/BlockCard/BlockCard.tsx similarity index 94% rename from packages/cacti-ledger-browser-react/src/main/typescript/components/BlockCard/BlockCard.tsx rename to packages/cacti-ledger-browser/src/main/typescript/components/BlockCard/BlockCard.tsx index d21e95d3a1..88f07620fe 100644 --- a/packages/cacti-ledger-browser-react/src/main/typescript/components/BlockCard/BlockCard.tsx +++ b/packages/cacti-ledger-browser/src/main/typescript/components/BlockCard/BlockCard.tsx @@ -3,7 +3,7 @@ import TagIcon from "@mui/icons-material/Tag"; import styles from "./BlockCard.module.css"; import { useNavigate } from "react-router-dom"; -function BlockCard(props) { +function BlockCard(props: any) { const navigate = useNavigate(); const handleClick = () => { navigate(`/blockDetails/${props.number}`); diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/apps/fabric/components/TokenHeader/TokenAccount.tsx b/packages/cacti-ledger-browser/src/main/typescript/components/TokenHeader/TokenAccount.tsx similarity index 92% rename from packages/cacti-ledger-browser-react/src/main/typescript/apps/fabric/components/TokenHeader/TokenAccount.tsx rename to packages/cacti-ledger-browser/src/main/typescript/components/TokenHeader/TokenAccount.tsx index 0400b16cfc..565880406c 100644 --- a/packages/cacti-ledger-browser-react/src/main/typescript/apps/fabric/components/TokenHeader/TokenAccount.tsx +++ b/packages/cacti-ledger-browser/src/main/typescript/components/TokenHeader/TokenAccount.tsx @@ -1,7 +1,7 @@ import styles from "./TokenHeader.module.css"; import AccountBalanceWalletIcon from "@mui/icons-material/AccountBalanceWallet"; -function TokenAccount(props) { +function TokenAccount(props: any) { return (
diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/components/TokenHeader/TokenHeader.module.css b/packages/cacti-ledger-browser/src/main/typescript/components/TokenHeader/TokenHeader.module.css similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/components/TokenHeader/TokenHeader.module.css rename to packages/cacti-ledger-browser/src/main/typescript/components/TokenHeader/TokenHeader.module.css diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/components/TokenHeader/TokenHeader.tsx b/packages/cacti-ledger-browser/src/main/typescript/components/TokenHeader/TokenHeader.tsx similarity index 97% rename from packages/cacti-ledger-browser-react/src/main/typescript/components/TokenHeader/TokenHeader.tsx rename to packages/cacti-ledger-browser/src/main/typescript/components/TokenHeader/TokenHeader.tsx index e2b5c45019..e333d84866 100644 --- a/packages/cacti-ledger-browser-react/src/main/typescript/components/TokenHeader/TokenHeader.tsx +++ b/packages/cacti-ledger-browser/src/main/typescript/components/TokenHeader/TokenHeader.tsx @@ -4,7 +4,7 @@ import { supabase } from "../../common/supabase-client"; import styles from "./TokenHeader.module.css"; import { useEffect, useState } from "react"; -function TokenHeader(props) { +function TokenHeader(props: any) { const [tokenData, setTokenData] = useState(); const fetchData = async () => { diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/components/ui/Button.module.css b/packages/cacti-ledger-browser/src/main/typescript/components/ui/Button.module.css similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/components/ui/Button.module.css rename to packages/cacti-ledger-browser/src/main/typescript/components/ui/Button.module.css diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/components/ui/Button.tsx b/packages/cacti-ledger-browser/src/main/typescript/components/ui/Button.tsx similarity index 80% rename from packages/cacti-ledger-browser-react/src/main/typescript/components/ui/Button.tsx rename to packages/cacti-ledger-browser/src/main/typescript/components/ui/Button.tsx index ec1c40d5f0..1d7360b057 100644 --- a/packages/cacti-ledger-browser-react/src/main/typescript/components/ui/Button.tsx +++ b/packages/cacti-ledger-browser/src/main/typescript/components/ui/Button.tsx @@ -1,10 +1,10 @@ import styles from "./Button.module.css"; -function Button(props) { +function Button(props: any) { type ObjectKey = keyof typeof styles; const buttonTypeStyle = `button-${props.type}` as ObjectKey; - const handleClick = (e: MouseEvent) => { + const handleClick = (e: { stopPropagation: () => void; }) => { e.stopPropagation(); props.onClick(); }; diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/components/ui/CardWrapper.module.css b/packages/cacti-ledger-browser/src/main/typescript/components/ui/CardWrapper.module.css similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/components/ui/CardWrapper.module.css rename to packages/cacti-ledger-browser/src/main/typescript/components/ui/CardWrapper.module.css diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/components/ui/CardWrapper.tsx b/packages/cacti-ledger-browser/src/main/typescript/components/ui/CardWrapper.tsx similarity index 95% rename from packages/cacti-ledger-browser-react/src/main/typescript/components/ui/CardWrapper.tsx rename to packages/cacti-ledger-browser/src/main/typescript/components/ui/CardWrapper.tsx index d201435b12..5bb19315c5 100644 --- a/packages/cacti-ledger-browser-react/src/main/typescript/components/ui/CardWrapper.tsx +++ b/packages/cacti-ledger-browser/src/main/typescript/components/ui/CardWrapper.tsx @@ -2,7 +2,7 @@ import Button from "./Button"; import Search from "./Search"; import CustomTable from "./CustomTable"; -import { TableProps } from "../../schema/supabase-types"; + import Pagination from "./Pagination"; import EmptyTablePlaceholder from "./EmptyTablePlaceholder/EmptyTablePlaceholder"; import styles from "./CardWrapper.module.css"; @@ -12,7 +12,7 @@ import { useEffect, useState } from "react"; const pageSize: number = 6; -function CardWrapper(props) { +function CardWrapper(props: any) { const location = useLocation(); const path = location.pathname.split("/"); const navigate = useNavigate(); @@ -44,7 +44,7 @@ function CardWrapper(props) { filteredData = data; return; } - const newData = data.filter((row) => { + const newData = data.filter((row: any) => { let isMatch: boolean = false; filters?.forEach((property: string | number) => { if (row[property]?.toString().toLowerCase().includes(searchKey)) { @@ -108,7 +108,7 @@ function CardWrapper(props) { {props.filters && (
setSearchKey(e)} + onKeyUp={(e: any) => setSearchKey(e)} type="text" placeholder="Type to search" /> diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/components/ui/CustomTable.css b/packages/cacti-ledger-browser/src/main/typescript/components/ui/CustomTable.css similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/components/ui/CustomTable.css rename to packages/cacti-ledger-browser/src/main/typescript/components/ui/CustomTable.css diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/components/ui/CustomTable.module.css b/packages/cacti-ledger-browser/src/main/typescript/components/ui/CustomTable.module.css similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/components/ui/CustomTable.module.css rename to packages/cacti-ledger-browser/src/main/typescript/components/ui/CustomTable.module.css diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/components/ui/CustomTable.tsx b/packages/cacti-ledger-browser/src/main/typescript/components/ui/CustomTable.tsx similarity index 79% rename from packages/cacti-ledger-browser-react/src/main/typescript/components/ui/CustomTable.tsx rename to packages/cacti-ledger-browser/src/main/typescript/components/ui/CustomTable.tsx index d378d87bc1..52c59e8121 100644 --- a/packages/cacti-ledger-browser-react/src/main/typescript/components/ui/CustomTable.tsx +++ b/packages/cacti-ledger-browser/src/main/typescript/components/ui/CustomTable.tsx @@ -1,10 +1,12 @@ -import { TableProperty } from "../../../schema/supabase-types"; + import EmptyTablePlaceholder from "./EmptyTablePlaceholder/EmptyTablePlaceholder"; import styles from "./CustomTable.module.css"; -import { useEffect, useState } from "react"; +import { useState, useEffect, ReactElement, JSXElementConstructor, ReactNode, ReactPortal } from "react"; +import { TableProperty } from "../../common/supabase-types"; + -function CustomTable(props) { +function CustomTable(props: any) { const [viewport, setViewport] = useState(""); useEffect(() => { @@ -17,7 +19,7 @@ function CustomTable(props) { }; }, [viewport]); - const getObjPropVal = (objProp: string[], row: any) => { + const getObjPropVal = (objProp: any[], row: any) => { if (objProp.length === 1) return row[objProp[0]]; else { return objProp.map((prop) => ( @@ -43,13 +45,13 @@ function CustomTable(props) { - {props.cols.schema.map((col) => ( + {props.cols.schema.map((col: any) => ( ))} - {props.data.map((row) => { + {props.data.map((row: any) => { return ( {props.cols.schema.map((col: TableProperty) => ( @@ -66,14 +68,14 @@ function CustomTable(props) { {viewport === "small" && ( <> - {props.data.map((row) => { + {props.data.map((row: any) => { return (
{col.display}
handleRowClick(row)} > - {props.cols.schema.map((heading, idx) => { + {props.cols.schema.map((heading: { display: string | number | boolean | ReactElement> | Iterable | ReactPortal | null | undefined; }, idx: string | number) => { return (
diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/components/ui/EmptyTablePlaceholder/EmptyTablePlaceholder.module.css b/packages/cacti-ledger-browser/src/main/typescript/components/ui/EmptyTablePlaceholder/EmptyTablePlaceholder.module.css similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/components/ui/EmptyTablePlaceholder/EmptyTablePlaceholder.module.css rename to packages/cacti-ledger-browser/src/main/typescript/components/ui/EmptyTablePlaceholder/EmptyTablePlaceholder.module.css diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/components/ui/EmptyTablePlaceholder/EmptyTablePlaceholder.tsx b/packages/cacti-ledger-browser/src/main/typescript/components/ui/EmptyTablePlaceholder/EmptyTablePlaceholder.tsx similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/components/ui/EmptyTablePlaceholder/EmptyTablePlaceholder.tsx rename to packages/cacti-ledger-browser/src/main/typescript/components/ui/EmptyTablePlaceholder/EmptyTablePlaceholder.tsx diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/components/ui/Menu.module.css b/packages/cacti-ledger-browser/src/main/typescript/components/ui/Menu.module.css similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/components/ui/Menu.module.css rename to packages/cacti-ledger-browser/src/main/typescript/components/ui/Menu.module.css diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/components/ui/Menu.tsx b/packages/cacti-ledger-browser/src/main/typescript/components/ui/Menu.tsx similarity index 90% rename from packages/cacti-ledger-browser-react/src/main/typescript/components/ui/Menu.tsx rename to packages/cacti-ledger-browser/src/main/typescript/components/ui/Menu.tsx index 2871cbf211..7190ae8096 100644 --- a/packages/cacti-ledger-browser-react/src/main/typescript/components/ui/Menu.tsx +++ b/packages/cacti-ledger-browser/src/main/typescript/components/ui/Menu.tsx @@ -2,9 +2,9 @@ import { useEffect, useState } from "react"; import { useLocation, useNavigate } from "react-router-dom"; import LedgerSelector from "../AppShell/LedgerSelector"; import styles from "./Menu.module.css"; -import Button from "../ui/Button"; +import Button from "./Button"; -const ledgersPaths = { +const ledgersPaths: Record = { eth: [ { title: "DASHBOARD", path: "/eth/dashboard" }, { title: "ERC20", path: "/eth/accounts/erc20" }, @@ -62,7 +62,7 @@ function Menu() { {activeLedger.length > 0 ? ( ) : null} diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/components/ui/Pagination.module.css b/packages/cacti-ledger-browser/src/main/typescript/components/ui/Pagination.module.css similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/components/ui/Pagination.module.css rename to packages/cacti-ledger-browser/src/main/typescript/components/ui/Pagination.module.css diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/components/ui/Pagination.tsx b/packages/cacti-ledger-browser/src/main/typescript/components/ui/Pagination.tsx similarity index 98% rename from packages/cacti-ledger-browser-react/src/main/typescript/components/ui/Pagination.tsx rename to packages/cacti-ledger-browser/src/main/typescript/components/ui/Pagination.tsx index 28b755bab1..671f847bd5 100644 --- a/packages/cacti-ledger-browser-react/src/main/typescript/components/ui/Pagination.tsx +++ b/packages/cacti-ledger-browser/src/main/typescript/components/ui/Pagination.tsx @@ -14,7 +14,7 @@ type pagination = { goPrevPage: () => void; }; -function Pagination(props) { +function Pagination(props: any) { let inputRef: any; const getInputValue = () => inputRef?.value ? inputRef.value : props.current; diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/components/ui/Search.module.css b/packages/cacti-ledger-browser/src/main/typescript/components/ui/Search.module.css similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/components/ui/Search.module.css rename to packages/cacti-ledger-browser/src/main/typescript/components/ui/Search.module.css diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/components/ui/Search.tsx b/packages/cacti-ledger-browser/src/main/typescript/components/ui/Search.tsx similarity index 84% rename from packages/cacti-ledger-browser-react/src/main/typescript/components/ui/Search.tsx rename to packages/cacti-ledger-browser/src/main/typescript/components/ui/Search.tsx index 16b3a129f7..a8f8ee77f1 100644 --- a/packages/cacti-ledger-browser-react/src/main/typescript/components/ui/Search.tsx +++ b/packages/cacti-ledger-browser/src/main/typescript/components/ui/Search.tsx @@ -1,10 +1,10 @@ -import { useState } from "react"; +import React, { useState } from "react"; import styles from "./Search.module.css"; -function Search(props) { +function Search(props: any) { const [val, setValue] = useState(""); - const handleInput = (e: InputEvent | ClipboardEvent) => { + const handleInput = (e: InputEvent | ClipboardEvent | React.FormEvent) => { const inputValue = (e.currentTarget as HTMLInputElement).value; if (inputValue) { setValue(inputValue); diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/main.tsx b/packages/cacti-ledger-browser/src/main/typescript/main.tsx similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/main.tsx rename to packages/cacti-ledger-browser/src/main/typescript/main.tsx diff --git a/packages/cacti-ledger-browser-react/src/main/typescript/vite-env.d.ts b/packages/cacti-ledger-browser/src/main/typescript/vite-env.d.ts similarity index 100% rename from packages/cacti-ledger-browser-react/src/main/typescript/vite-env.d.ts rename to packages/cacti-ledger-browser/src/main/typescript/vite-env.d.ts diff --git a/packages/cacti-ledger-browser/src/pages/Pages.tsx b/packages/cacti-ledger-browser/src/pages/Pages.tsx deleted file mode 100644 index 06ae9707d3..0000000000 --- a/packages/cacti-ledger-browser/src/pages/Pages.tsx +++ /dev/null @@ -1,65 +0,0 @@ -import { Routes, Route } from "@solidjs/router"; -import TransactionDetails from "./eth/Details/TransactionDetails"; -import BlockDetails from "./eth/Details/BlockDetails"; -import TokenTransactionDetails from "./eth/Details/TokenTransactionDetails"; -import TokenDetails from "./eth/Details/TokenDetails"; -import Dashboard from "./eth/Dashboard/Dashboard"; -import Transactions from "./eth/Transactions/Transactions"; -import Blocks from "./eth/Blocks/Blocks"; -import Accounts from "./eth/Accounts/Accounts"; -import ERC20 from "./eth/ERC20/ERC20"; -import ERC721 from "./eth/ERC721/ERC721"; -import SingleTokenHistory from "./eth/SingleTokenHistory/SingleTokenHistory"; - -import TransactionsFabric from "./fabric/TransactionsFabric/TransactionsFabric"; -import BlocksFabric from "./fabric/BlocksFabric/BlocksFabric"; -import DashFabric from "./fabric/DashFabric/DashFabric"; -import FabricBlock from "./fabric/FabricBlock/FabricBlock"; -import FabricTransaction from "./fabric/FabricTransaction/FabricTransaction"; - -import Home from "./shared/Home/Home"; - -const Pages = () => { - return ( - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ); -}; -export default Pages; diff --git a/packages/cacti-ledger-browser/src/pages/eth/Accounts/Accounts.module.css b/packages/cacti-ledger-browser/src/pages/eth/Accounts/Accounts.module.css deleted file mode 100644 index 43c52de4a5..0000000000 --- a/packages/cacti-ledger-browser/src/pages/eth/Accounts/Accounts.module.css +++ /dev/null @@ -1,6 +0,0 @@ -.accounts-wrapper{ - width:100%; - display:grid; - grid-template-columns: repeat(auto-fit, 35rem); - gap: 1rem; -} \ No newline at end of file diff --git a/packages/cacti-ledger-browser/src/pages/eth/Accounts/Accounts.tsx b/packages/cacti-ledger-browser/src/pages/eth/Accounts/Accounts.tsx deleted file mode 100644 index 2964bd0f3c..0000000000 --- a/packages/cacti-ledger-browser/src/pages/eth/Accounts/Accounts.tsx +++ /dev/null @@ -1,63 +0,0 @@ -import { createSignal, createEffect } from "solid-js"; -import { useParams, useNavigate } from "@solidjs/router"; -import { supabase } from "../../../supabase-client"; -import CardWrapper from "../../../components/CardWrapper/CardWrapper"; - -const Accounts = () => { - const params = useParams(); - const navigate = useNavigate(); - const [accounts, setAccounts] = createSignal<{ address: string }[]>([]); - const [searchKey, setSearchKey] = createSignal(""); - - const tableProps = { - onClick: { - action: (param: string) => navigate(`/eth/${params.standard}/${param}`), - prop: "address", - }, - schema: [ - { - display: "Account address", - objProp: ["address"], - }, - ], - }; - - const fetchAccounts = async () => { - try { - const { data, error } = await supabase - .from(`token_${params.standard.toLowerCase()}`) - .select("account_address"); - if (data) { - const objData = [ - ...new Set(data.map((el) => el.account_address)), - ].map((el) => ({ address: el })); - setAccounts(objData); - } - if (error) { - console.error(error.message); - } - } catch (error:any) { - console.error(error.message); - } - }; - - createEffect(async () => { - await fetchAccounts(); - }, []); - - return ( -
- setSearchKey(e)} - > -
- ); -}; - -export default Accounts; diff --git a/packages/cacti-ledger-browser/src/pages/eth/Blocks/Blocks.module.css b/packages/cacti-ledger-browser/src/pages/eth/Blocks/Blocks.module.css deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/packages/cacti-ledger-browser/src/pages/eth/Blocks/Blocks.tsx b/packages/cacti-ledger-browser/src/pages/eth/Blocks/Blocks.tsx deleted file mode 100644 index f3b9ff15dc..0000000000 --- a/packages/cacti-ledger-browser/src/pages/eth/Blocks/Blocks.tsx +++ /dev/null @@ -1,60 +0,0 @@ -import { createSignal, createEffect } from "solid-js"; -import { useNavigate } from "@solidjs/router"; -import { supabase } from "../../../supabase-client"; -import CardWrapper from "../../../components/CardWrapper/CardWrapper"; -import { Block } from "../../../schema/supabase-types"; -// @ts-expect-error -import styles from "./Blocks.module.css"; - -type ObjectKey = keyof typeof styles; - -const Blocks = () => { - const navigate = useNavigate(); - const [block, setBlock] = createSignal([]); - - const blocksTableProps = { - onClick: { - action: (param: string) => navigate(`/eth/block-details/${param}`), - prop: "number", - }, - schema: [ - { display: "created at", objProp: ["created_at"] }, - { display: "block number", objProp: ["number"] }, - { display: "hash", objProp: ["hash"] }, - ], - }; - - const fetchBlock = async () => { - try { - const { data, error } = await supabase.from("block").select("*"); - if (data) { - console.log(JSON.stringify(data)) - setBlock(data); - } - if (error) { - console.error(error.message); - } - } catch (error:any) { - console.error(error.message); - } - }; - - createEffect(async () => { - await fetchBlock(); - }, []); - - return ( -
- -
- ); -}; - -export default Blocks; diff --git a/packages/cacti-ledger-browser/src/pages/eth/Dashboard/Dashboard.module.css b/packages/cacti-ledger-browser/src/pages/eth/Dashboard/Dashboard.module.css deleted file mode 100644 index f2443fc562..0000000000 --- a/packages/cacti-ledger-browser/src/pages/eth/Dashboard/Dashboard.module.css +++ /dev/null @@ -1,10 +0,0 @@ -.dashboard-wrapper { - display: flex; - gap: 1rem; -} - -@media (max-width: 1699px) { - .dashboard-wrapper { - flex-direction: column; - } -} \ No newline at end of file diff --git a/packages/cacti-ledger-browser/src/pages/eth/Dashboard/Dashboard.tsx b/packages/cacti-ledger-browser/src/pages/eth/Dashboard/Dashboard.tsx deleted file mode 100644 index 47fd54a779..0000000000 --- a/packages/cacti-ledger-browser/src/pages/eth/Dashboard/Dashboard.tsx +++ /dev/null @@ -1,100 +0,0 @@ -import { createSignal, createEffect, Show } from "solid-js"; -import { useNavigate, useParams } from "@solidjs/router"; -import { supabase } from "../../../supabase-client"; -import CardWrapper from "../../../components/CardWrapper/CardWrapper"; -import { Transaction } from "../../../schema/supabase-types"; -import { Block } from "../../../schema/supabase-types"; -// @ts-expect-error -import styles from "./Dashboard.module.css"; - -const Dashboard = () => { - const navigate = useNavigate(); - const [transaction, setTransaction] = createSignal([]); - const [block, setBlock] = createSignal([]); - - const txnTableProps = { - onClick: { - action: (param: string) => { - navigate(`/eth/txn-details/${param}`); - }, - prop: "id", - }, - schema: [ - { display: "transaction id", objProp: ["id"] }, - { display: "sender/recipient", objProp: ["from", "to"] }, - { display: "token value", objProp: ["eth_value"] }, - ], - }; - const blocksTableProps = { - onClick: { - action: (param: string) => { - navigate(`/eth/block-details/${param}`); - }, - prop: "number", - }, - schema: [ - { display: "created at", objProp: ["created_at"] }, - { display: "block number", objProp: ["number"] }, - { display: "hash", objProp: ["hash"] }, - ], - }; - - const fetchTransactions = async () => { - try { - const { data, error } = await supabase.from("transaction").select("*"); - if (data) { - setTransaction(data); - } - if (error) { - console.error(error.message); - } - } catch (error:any) { - console.error(error.message); - } - }; - - const fetchBlock = async () => { - try { - const { data, error } = await supabase.from("block").select("*"); - if (data) { - setBlock(data); - } - if (error) { - console.error(error.message); - } - } catch (error:any) { - console.error(error.message); - } - }; - - createEffect(async () => { - await fetchBlock(); - }, []); - - createEffect(async () => { - await fetchTransactions(); - }, []); - - return ( -
-
- - -
-
- ); -}; - -export default Dashboard; diff --git a/packages/cacti-ledger-browser/src/pages/eth/Details/BlockDetails.tsx b/packages/cacti-ledger-browser/src/pages/eth/Details/BlockDetails.tsx deleted file mode 100644 index 4b53ad9eb6..0000000000 --- a/packages/cacti-ledger-browser/src/pages/eth/Details/BlockDetails.tsx +++ /dev/null @@ -1,59 +0,0 @@ -import { createEffect, createSignal, Show } from "solid-js"; -import { useParams } from "@solidjs/router"; -import { supabase } from "../../../supabase-client"; -import { Block } from "../../../schema/supabase-types"; -// @ts-expect-error -import styles from "./Details.module.css"; - -const blockDetails = () => { - const [details, setDetails] = createSignal({}); - const params = useParams(); - - createEffect(async () => { - try { - const { data, error } = await supabase - .from("block") - .select("*") - .match({ number: params.number }); - if (data?.[0]) { - setDetails(data[0]); - } else { - throw new Error("Failed to load block details"); - } - } catch (error:any) { - console.error(error.message); - } - }, []); - - return ( -
-
- Failed to load details
}> -

Block Details

-

- Address: {details().number}{" "} -

-

- {" "} - Created at: - {details().created_at} -

-

- Hash: - {details().hash} -

-

- Number of transaction: - {details().number_of_tx} -

-

- Sync at: - {details().sync_at} -

- -
- - ); -}; - -export default blockDetails; diff --git a/packages/cacti-ledger-browser/src/pages/eth/Details/Details.module.css b/packages/cacti-ledger-browser/src/pages/eth/Details/Details.module.css deleted file mode 100644 index 899ff99432..0000000000 --- a/packages/cacti-ledger-browser/src/pages/eth/Details/Details.module.css +++ /dev/null @@ -1,32 +0,0 @@ -h1{ - padding: 0; - margin: 0; - margin-bottom: .5rem; -} -.details { - display: flex; - gap: .75rem; -} -.details-card{ - display: flex; - flex-direction: column; - gap: 15px; - border: 1px solid rgb(230, 224, 224); - border-radius: 10px; - padding: 1.5rem 2rem; - width:45%; -} -span { - display: inline-block; - font-size: 1.1rem; -} - -@media (max-width: 1699px) { - .details{ - flex-direction: column; - } - - .details-card { - width: 100%; - } -} \ No newline at end of file diff --git a/packages/cacti-ledger-browser/src/pages/eth/Details/TokenDetails.tsx b/packages/cacti-ledger-browser/src/pages/eth/Details/TokenDetails.tsx deleted file mode 100644 index 14a6b4b814..0000000000 --- a/packages/cacti-ledger-browser/src/pages/eth/Details/TokenDetails.tsx +++ /dev/null @@ -1,59 +0,0 @@ -import { createEffect, createSignal } from "solid-js"; -import { useParams } from "@solidjs/router"; -import { supabase } from "../../../supabase-client"; -import { STANDARDS } from "../../../schema/token-standards"; -import { TokenMetadata20, TokenMetadata721 } from "../../../schema/supabase-types"; -// @ts-expect-error -import styles from "./Details.module.css"; - -const TokenDetails = () => { - const [tokenData, setTokenData] = createSignal< - TokenMetadata20 | TokenMetadata721 | any - >(); - - const params = useParams(); - - createEffect(async () => { - try { - const { data, error } = await supabase - .from(`token_metadata_${params.standard.toLowerCase()}`) - .select("*") - .match({ address: params.address }); - if (data?.[0]) { - setTokenData(data[0]); - } else { - throw new Error("Failed to load token details"); - } - } catch (error:any) { - console.error(error.message); - } - }, []); - - return ( -
-
-

Token Details

-

- Adress: {tokenData()?.address}{" "} -

-

- Created at: - {tokenData()?.created_at} -

-

- Name: - {tokenData()?.name} -

-

- Symbol: - {tokenData()?.symbol} -

- {params.standard === STANDARDS.erc20 && ( -

total_supply : {tokenData()?.total_supply}

- )} -
-
- ); -}; - -export default TokenDetails; diff --git a/packages/cacti-ledger-browser/src/pages/eth/Details/TokenTransactionDetails.tsx b/packages/cacti-ledger-browser/src/pages/eth/Details/TokenTransactionDetails.tsx deleted file mode 100644 index 69af02c901..0000000000 --- a/packages/cacti-ledger-browser/src/pages/eth/Details/TokenTransactionDetails.tsx +++ /dev/null @@ -1,62 +0,0 @@ -import { createEffect, createSignal } from "solid-js"; -import { useParams } from "@solidjs/router"; -import { supabase } from "../../../supabase-client"; -import { STANDARDS } from "../../../schema/token-standards"; -import { ERC20Txn, ERC721Txn } from "../../../schema/supabase-types"; -// @ts-expect-error -import styles from "./Details.module.css"; - -const TokenTransactionDetails = () => { - const [txnData, setTxnData] = createSignal({}); - const params = useParams(); - - createEffect(async () => { - try { - const { data, error } = await supabase - .from(`token_${params.standard.toLowerCase()}`) - .select("*") - .match({ account_address: params.address }); - if (data?.[0]) { - setTxnData(data[0]); - } else { - throw new Error("Failed to load transaction details"); - } - } catch (error:any) { - console.error(error.message); - } - }, []); - - return ( -
-
-

Details of Transaction

-

- {" "} - Address: - {txnData()?.account_address}{" "} -

-

- {" "} - Created_at: - {txnData()?.token_address} -

- {params.standard === STANDARDS.erc20 && ( -

- {" "} - Balance: - {txnData()?.balance} -

- )} - {params.standard === STANDARDS.erc721 && ( -

- {" "} - Uri: - {txnData()?.uri} -

- )} -
-
- ); -}; - -export default TokenTransactionDetails; diff --git a/packages/cacti-ledger-browser/src/pages/eth/Details/TransactionDetails.tsx b/packages/cacti-ledger-browser/src/pages/eth/Details/TransactionDetails.tsx deleted file mode 100644 index b0187c3219..0000000000 --- a/packages/cacti-ledger-browser/src/pages/eth/Details/TransactionDetails.tsx +++ /dev/null @@ -1,100 +0,0 @@ -import { createEffect, createSignal } from "solid-js"; -import { useParams, useNavigate } from "@solidjs/router"; -import { supabase } from "../../../supabase-client"; -import CardWrapper from "../../../components/CardWrapper/CardWrapper"; -import { Transaction, TokenTransfer } from "../../../schema/supabase-types"; -// @ts-expect-error -import styles from "./Details.module.css"; - -const TransactionsDetails = () => { - const [details, setDetails] = createSignal({}); - const [transfers, setTransfers] = createSignal([]); - const params = useParams(); - - const detailsTableProps = { - onClick: { - action: () => {}, - prop: "id", - }, - schema: [ - { display: "transfer id", objProp: ["id"] }, - { display: "sender/recipient", objProp: ["sender", "recipient"] }, - { display: "value", objProp: ["value"] }, - ], - }; - - const fetchDetails = async () => { - try { - const { data, error } = await supabase - .from("transaction") - .select("*") - .match({ id: params.id }); - if (data?.[0]) { - setDetails(data[0]); - } else { - throw new Error("Failed to load transaction details"); - } - } catch (error:any) { - console.error(error.message); - } - }; - - const fetchTransfers = async () => { - try { - const { data, error } = await supabase - .from("token_transfer") - .select("*") - .match({ transaction_id: params.id }); - if (data) { - setTransfers(data); - } else { - throw new Error("Failed to load transfers"); - } - } catch (error:any) { - console.error(error.message); - } - }; - - createEffect(async () => { - await fetchDetails(); - await fetchTransfers(); - }, []); - - return ( -
-
-

Details of Transaction

-

- {" "} - Hash: {details().hash}{" "} -

-

- Block: - {details().block_number} -

-

- From: - {details().from} -

-

- To: - {details().to}{" "} -

-

- {" "} - Value:   {details().eth_value} -

-
- -
- ); -}; - -export default TransactionsDetails; diff --git a/packages/cacti-ledger-browser/src/pages/eth/ERC20/ERC20.module.css b/packages/cacti-ledger-browser/src/pages/eth/ERC20/ERC20.module.css deleted file mode 100644 index 92eaa56f56..0000000000 --- a/packages/cacti-ledger-browser/src/pages/eth/ERC20/ERC20.module.css +++ /dev/null @@ -1,19 +0,0 @@ -.erc-content { - display: flex; - gap:2rem; -} - -.erc-wrap{ - width:100%; - display: flex; - gap:1rem; - flex-direction: column; - -} - - -@media (max-width: 1699px) { - .erc-content{ - flex-direction: column; - } -} \ No newline at end of file diff --git a/packages/cacti-ledger-browser/src/pages/eth/ERC20/ERC20.tsx b/packages/cacti-ledger-browser/src/pages/eth/ERC20/ERC20.tsx deleted file mode 100644 index d32c5956ae..0000000000 --- a/packages/cacti-ledger-browser/src/pages/eth/ERC20/ERC20.tsx +++ /dev/null @@ -1,75 +0,0 @@ -import { useParams, useNavigate } from "@solidjs/router"; -import { createSignal, createEffect } from "solid-js"; -import TokenAccount from "../../../components/TokenHeader/TokenAccount"; -import { supabase } from "../../../supabase-client"; -import CardWrapper from "../../../components/CardWrapper/CardWrapper"; -import Chart from "../../../components/Chart/Chart"; -import { ERC20Txn } from "../../../schema/supabase-types"; -// @ts-expect-error -import styles from "./ERC20.module.css"; - -const ERC20 = () => { - const params = useParams(); - const navigate = useNavigate(); - const [token_erc20, setToken_erc20] = createSignal([]); - - const ercTableProps = { - onClick: { - action: (token_address: string) => - navigate(`/eth/erc20/trend/${params.account}/${token_address}`), - prop: "token_address", - }, - schema: [ - { - display: "token address", - objProp: ["token_address"], - }, - { - display: "balance", - objProp: ["balance"], - }, - ], - }; - - const fetchERC20 = async () => { - try { - const { data, error } = await supabase - .from("token_erc20") - .select() - .eq("account_address", params.account); - if (data) { - setToken_erc20(data); - } - if (error) { - throw new Error(error.message); - } - } catch (error: any) { - console.error(error.message); - } - }; - - createEffect(async () => { - await fetchERC20(); - }, []); - - return ( -
-
- - -
-
- - -
-
- ); -}; - -export default ERC20; diff --git a/packages/cacti-ledger-browser/src/pages/eth/ERC721/ERC721.module.css b/packages/cacti-ledger-browser/src/pages/eth/ERC721/ERC721.module.css deleted file mode 100644 index fb8d75ce96..0000000000 --- a/packages/cacti-ledger-browser/src/pages/eth/ERC721/ERC721.module.css +++ /dev/null @@ -1,18 +0,0 @@ -.erc-content { - display: flex; - gap:2rem; -} - -.erc-wrap{ - display: flex; - gap:1rem; - flex-direction: column; - align-items: center; -} - -@media (max-width: 1699px) { - - .erc-content{ - flex-direction: column; - } -} \ No newline at end of file diff --git a/packages/cacti-ledger-browser/src/pages/eth/ERC721/ERC721.tsx b/packages/cacti-ledger-browser/src/pages/eth/ERC721/ERC721.tsx deleted file mode 100644 index 29caf8be4d..0000000000 --- a/packages/cacti-ledger-browser/src/pages/eth/ERC721/ERC721.tsx +++ /dev/null @@ -1,117 +0,0 @@ -import { useParams, useNavigate } from "@solidjs/router"; -import { createSignal, createEffect, Show } from "solid-js"; -import TokenAccount from "../../../components/TokenHeader/TokenAccount"; -import { supabase } from "../../../supabase-client"; -import CardWrapper from "../../../components/CardWrapper/CardWrapper"; -import { ERC721Txn } from "../../../schema/supabase-types"; -import { TokenMetadata721 } from "../../../schema/supabase-types"; -// @ts-expect-error -import styles from "./ERC721.module.css"; - -const ERC721 = () => { - const params = useParams(); - const navigate = useNavigate(); - const [token_erc721, setToken_erc721] = createSignal([]); - const [tokenMetadata, setTokenMetadata] = createSignal( - [], - ); - - const ercTableProps = { - onClick: { - action: (param: string) => navigate(`/eth/token-details/erc721/${param}`), - prop: "token_address", - }, - schema: [ - { - display: "symbol", - objProp: ["symbol"], - }, - { - display: "URI", - objProp: ["uri"], - }, - ], - }; - const metaProps = { - onClick: { - action: () => {}, - prop: "", - }, - schema: [ - { - display: "created at", - objProp: ["created_at"], - }, - { - display: "sender/recipient", - objProp: ["sender", "recipient"], - }, - { - display: "token address", - objProp: ["token_address"], - }, - ], - }; - - const fetchERC721 = async () => { - try { - const { data, error } = await supabase - .from("erc721_txn_meta_view") - .select() - .eq("account_address", params.account); - if (data) { - setToken_erc721(data); - } - if (error) { - throw new Error(error.message); - } - } catch (error:any) { - console.error(error.message); - } - }; - - const fetchMetadata = async () => { - try { - const { data, error } = await supabase - .from(`erc721_token_history_view`) - .select("*"); - if (data) { - setTokenMetadata(data); - } - if (error) { - console.error(error.message); - } - } catch (error:any) { - console.error(error.message); - } - }; - - createEffect(async () => { - await fetchERC721(); - await fetchMetadata(); - }, []); - - return ( -
- -
- - -
-
- ); -}; - -export default ERC721; diff --git a/packages/cacti-ledger-browser/src/pages/eth/SingleTokenHistory/SingleTokenHistory.module.css b/packages/cacti-ledger-browser/src/pages/eth/SingleTokenHistory/SingleTokenHistory.module.css deleted file mode 100644 index aa59d7de7e..0000000000 --- a/packages/cacti-ledger-browser/src/pages/eth/SingleTokenHistory/SingleTokenHistory.module.css +++ /dev/null @@ -1,12 +0,0 @@ -.token-history { - display: flex; - flex-direction: column; - gap: 1rem; -} - -.transactions { - display: flex; - flex-direction: column; - gap: 2rem; - margin-top: 2rem; -} \ No newline at end of file diff --git a/packages/cacti-ledger-browser/src/pages/eth/SingleTokenHistory/SingleTokenHistory.tsx b/packages/cacti-ledger-browser/src/pages/eth/SingleTokenHistory/SingleTokenHistory.tsx deleted file mode 100644 index d1dfbaa54f..0000000000 --- a/packages/cacti-ledger-browser/src/pages/eth/SingleTokenHistory/SingleTokenHistory.tsx +++ /dev/null @@ -1,119 +0,0 @@ -import { createSignal, createEffect, Show } from "solid-js"; -import { supabase } from "../../../supabase-client"; -import CardWrapper from "../../../components/CardWrapper/CardWrapper"; -import LineChart from "../../../components/Chart/LineChart"; -import TokenHeader from "../../../components/TokenHeader/TokenHeader"; -import { useNavigate, useParams } from "@solidjs/router"; -import { TokenHistoryItem20 } from "../../../schema/supabase-types"; -import { balanceDate } from "../../../schema/supabase-types"; -// @ts-expect-error -import styles from "./SingleTokenHistory.module.css"; -import EmptyTablePlaceholder from "../../../components/UI/CustomTable/EmptyTablePlaceholder/EmptyTablePlaceholder"; - -const SingleTokenHistory = () => { - type ObjectKey = keyof typeof styles; - const [transactions, setTransactions] = createSignal( - [], - ); - const [balanceHistory, setBalanceHistory] = createSignal([]); - const navigate = useNavigate(); - const params = useParams(); - - const tokenTableProps = { - onClick: { - action: (param: string) => navigate(`/view/${param}`), - prop: "id", - }, - schema: [ - { - display: "created at", - objProp: ["created_at"], - }, - { - display: "transaction hash", - objProp: ["transaction_hash"], - }, - { - display: "sender/recipient", - objProp: ["sender", "recipient"], - }, - { - display: "token address", - objProp: ["token_address"], - }, - { - display: "token value", - objProp: ["value"], - }, - ], - }; - - const calcTokenBalance = (txnData: TokenHistoryItem20[]) => { - let balance = 0; - const balances = txnData.map((txn) => { - let txn_value = txn.value || 0; - let account = params.account; - if (txn.recipient !== account) { - txn_value *= -1; - } - balance += txn_value; - return { - created_at: txn.created_at + "Z", - balance: balance, - }; - }); - return balances; - }; - - const fetchTransactions = async () => { - try { - const { data, error } = await supabase - .from("erc20_token_history_view") - .select("*") - .match({ token_address: params.address }).or(`sender.eq.${params.account}, recipient.eq.${params.account}`); - if (data) { - setTransactions(data); - setBalanceHistory(calcTokenBalance(data)); - } - if (error) { - console.error(error.message); - } - } catch (error:any) { - console.error(error.message); - } - }; - - createEffect(async () => { - await fetchTransactions(); - }, []); - - return ( -
- -
- 0 } - fallback={}> - - - - - -
-
- ); -}; - -export default SingleTokenHistory; diff --git a/packages/cacti-ledger-browser/src/pages/eth/Transactions/Transactions.module.css b/packages/cacti-ledger-browser/src/pages/eth/Transactions/Transactions.module.css deleted file mode 100644 index 7ff183b0da..0000000000 --- a/packages/cacti-ledger-browser/src/pages/eth/Transactions/Transactions.module.css +++ /dev/null @@ -1,12 +0,0 @@ -.transactions{ - display: flex; - flex-direction: column; - -}.transactions-search { - display: flex; - justify-content: center; - align-items: center; - margin-bottom: 2rem; - - -} \ No newline at end of file diff --git a/packages/cacti-ledger-browser/src/pages/eth/Transactions/Transactions.tsx b/packages/cacti-ledger-browser/src/pages/eth/Transactions/Transactions.tsx deleted file mode 100644 index 1679f054cc..0000000000 --- a/packages/cacti-ledger-browser/src/pages/eth/Transactions/Transactions.tsx +++ /dev/null @@ -1,66 +0,0 @@ -import { createSignal, createEffect, Show } from "solid-js"; -import { useNavigate, useParams } from "@solidjs/router"; -import { supabase } from "../../../supabase-client"; -import CardWrapper from "../../../components/CardWrapper/CardWrapper"; -import { Transaction } from "../../../schema/supabase-types"; -// @ts-expect-error -import styles from "./Transactions.module.css"; - -const Transactions = () => { - const navigate = useNavigate(); - const [transactions, setTransactions] = createSignal([]); - - const txnTableProps = { - onClick: { - action: (param: string) => navigate(`/eth/txn-details/${param}`), - prop: "id", - }, - schema: [ - { - display: "transaction id", - objProp: ["id"], - }, - { - display: "sender/recipient", - objProp: ["from", "to"], - }, - { - display: "token value", - objProp: ["eth_value"], - }, - ], - }; - - const fetchTransactions = async () => { - try { - const { data } = await supabase.from("transaction").select("*"); - if (data) { - console.log(JSON.stringify(data)) - setTransactions(data); - } else { - throw new Error("Failed to load transactions"); - } - } catch (error:any) { - console.error(error.message); - } - }; - - createEffect(async () => { - await fetchTransactions(); - }, []); - - return ( -
- -
- ); -}; - -export default Transactions; diff --git a/packages/cacti-ledger-browser/src/pages/fabric/BlocksFabric/BlocksFabric.module.css b/packages/cacti-ledger-browser/src/pages/fabric/BlocksFabric/BlocksFabric.module.css deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/packages/cacti-ledger-browser/src/pages/fabric/BlocksFabric/BlocksFabric.tsx b/packages/cacti-ledger-browser/src/pages/fabric/BlocksFabric/BlocksFabric.tsx deleted file mode 100644 index d3c9b4b547..0000000000 --- a/packages/cacti-ledger-browser/src/pages/fabric/BlocksFabric/BlocksFabric.tsx +++ /dev/null @@ -1,63 +0,0 @@ -import { createSignal, createEffect } from "solid-js"; -import { useNavigate } from "@solidjs/router"; -import { supabase } from "../../../supabase-client"; -import CardWrapper from "../../../components/CardWrapper/CardWrapper"; -import { Block } from "../../../schema/supabase-types"; -// @ts-expect-error -import styles from "./BlocksFabric.module.css"; - -type ObjectKey = keyof typeof styles; - -const BlocksFabric = () => { - const navigate = useNavigate(); - const [block, setBlock] = createSignal([]); - - const blocksTableProps = { - onClick: { - action: (param: string) => { - navigate(`/fabric/block-details/${param}`); - }, - prop: "id", - }, - schema: [ - { display: "created at", objProp: ["created_at"] }, - { display: "block number", objProp: ["block_number"] }, - { display: "channel name", objProp: ["channel_id"] }, - { display: "hash", objProp: ["data_hash"] }, - { display: "transactions count", objProp: ["tx_count"] }, - ], - }; - - const fetchBlock = async () => { - try { - const { data, error } = await supabase.from("fabric_blocks").select("*"); - if (data) { - setBlock(data); - } - if (error) { - console.error(error.message); - } - } catch (error:any) { - console.error(error.message); - } - }; - - createEffect(async () => { - await fetchBlock(); - }, []); - - return ( -
- -
- ); -}; - -export default BlocksFabric; diff --git a/packages/cacti-ledger-browser/src/pages/fabric/DashFabric/DashFabric.module.css b/packages/cacti-ledger-browser/src/pages/fabric/DashFabric/DashFabric.module.css deleted file mode 100644 index f75a30b767..0000000000 --- a/packages/cacti-ledger-browser/src/pages/fabric/DashFabric/DashFabric.module.css +++ /dev/null @@ -1,11 +0,0 @@ -.dashboard-wrapper { - display: flex; - gap: 1rem; - flex-direction: column; -} - -@media (max-width: 1699px) { - .dashboard-wrapper { - flex-direction: column; - } -} \ No newline at end of file diff --git a/packages/cacti-ledger-browser/src/pages/fabric/DashFabric/DashFabric.tsx b/packages/cacti-ledger-browser/src/pages/fabric/DashFabric/DashFabric.tsx deleted file mode 100644 index 1ebf142f39..0000000000 --- a/packages/cacti-ledger-browser/src/pages/fabric/DashFabric/DashFabric.tsx +++ /dev/null @@ -1,102 +0,0 @@ -import { createSignal, createEffect, Show } from "solid-js"; -import { useNavigate, useParams } from "@solidjs/router"; -import { supabase } from "../../../supabase-client"; -import CardWrapper from "../../../components/CardWrapper/CardWrapper"; -import { Transaction } from "../../../schema/supabase-types"; -import { Block } from "../../../schema/supabase-types"; -// @ts-expect-error -import styles from "./DashFabric.module.css"; - -const DashFabric = () => { - const navigate = useNavigate(); - const [transaction, setTransaction] = createSignal([]); - const [block, setBlock] = createSignal([]); - - const txnTableProps = { - onClick: { - action: (param: string) => { - navigate(`/fabric/txn-details/${param}`); - }, - prop: "id", - }, - schema: [ - { display: "created at", objProp: ["created_at"] }, - { display: "transaction id", objProp: ["transaction_id"] }, - { display: "channel name", objProp: ["channel_id"] }, - { display: "block id", objProp: ["block_id"] }, - { display: "status", objProp: ["status"] }, - ], - }; - - const blocksTableProps = { - onClick: { - action: (param: string) => { - navigate(`/fabric/block-details/${param}`); - }, - prop: "id", - }, - schema: [ - { display: "created at", objProp: ["created_at"] }, - { display: "block number", objProp: ["block_number"] }, - { display: "channel name", objProp: ["channel_id"] }, - { display: "hash", objProp: ["data_hash"] }, - { display: "transactions count", objProp: ["tx_count"] }, - ], - }; - - const fetchTransactions = async () => { - try { - const { data, error } = await supabase.from("fabric_transactions").select("*"); - if (data) { - setTransaction(data); - } - if (error) { - console.error(error.message); - } - } catch (error:any) { - console.error(error.message); - } - }; - - const fetchBlock = async () => { - try { - const { data, error } = await supabase.from("fabric_blocks").select("*"); - if (data) { - setBlock(data); - } - if (error) { - console.error(error.message); - } - } catch (error:any) { - console.error(error.message); - } - }; - - createEffect(async () => { - await fetchBlock(); - await fetchTransactions(); - }, []); - - return ( -
-
- - -
-
- ); -} - -export default DashFabric \ No newline at end of file diff --git a/packages/cacti-ledger-browser/src/pages/fabric/FabricBlock/FabricBlock.module.css b/packages/cacti-ledger-browser/src/pages/fabric/FabricBlock/FabricBlock.module.css deleted file mode 100644 index 5bfa3e269e..0000000000 --- a/packages/cacti-ledger-browser/src/pages/fabric/FabricBlock/FabricBlock.module.css +++ /dev/null @@ -1,8 +0,0 @@ -.details-card { - display: flex; - flex-direction: column; - gap: 15px; - border: 1px solid rgb(230, 224, 224); - border-radius: 10px; - padding: 1.5rem 2rem; -} \ No newline at end of file diff --git a/packages/cacti-ledger-browser/src/pages/fabric/FabricBlock/FabricBlock.tsx b/packages/cacti-ledger-browser/src/pages/fabric/FabricBlock/FabricBlock.tsx deleted file mode 100644 index 5a5b56ce38..0000000000 --- a/packages/cacti-ledger-browser/src/pages/fabric/FabricBlock/FabricBlock.tsx +++ /dev/null @@ -1,82 +0,0 @@ -// @ts-expect-error -import styles from './FabricBlock.module.css' -import { createEffect, createSignal, Show } from 'solid-js'; -import { useParams } from '@solidjs/router'; -import { supabase } from '../../../supabase-client'; - -const FabricBlock = () => { - const [details, setDetails] = createSignal({}); - const params = useParams(); - - createEffect(async () => { - try { - const { data, error } = await supabase - .from("fabric_blocks") - .select("*") - .match({ id: params.id}); - if (data?.[0]) { - setDetails(data[0]); - } else { - throw new Error("Failed to load block details"); - } - } catch (error:any) { - console.error(error.message); - } - }, []); - - return ( -
-
- Failed to load details
}> -

Block Details

-

- ID: {details().id}{" "} -

-

- {" "} - Block Number: - {details().block_number} -

-

- Hash: - {details().data_hash} -

-

- Tx Count: - {details().tx_count} -

-

- Created at: - {details().created_at} -

-

- {" "} - Previous Blockhash: - {details().prev_blockhash} -

- -

- {" "} - Channel name: - {details().channel_id} -

- {/* -

- {" "} - Blk Size: - {details().blksize} -

-

- {" "} - Network name: - {details().network_name} -

*/ - } - -
- - ); - }; -export default FabricBlock - - diff --git a/packages/cacti-ledger-browser/src/pages/fabric/FabricTransaction/FabricTransaction.module.css b/packages/cacti-ledger-browser/src/pages/fabric/FabricTransaction/FabricTransaction.module.css deleted file mode 100644 index 15fab73ab7..0000000000 --- a/packages/cacti-ledger-browser/src/pages/fabric/FabricTransaction/FabricTransaction.module.css +++ /dev/null @@ -1,22 +0,0 @@ -.details-card { - display: flex; - flex-direction: column; - gap: 15px; - border: 1px solid rgb(230, 224, 224); - border-radius: 10px; - padding: 1.5rem 2rem; -} - -.details-bytes-wrap { - display: flex; - align-items: center; - gap: 1rem; -} -.details-bytes { - width: 30vw; - font-size: 14px; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - resize: horizontal; -} \ No newline at end of file diff --git a/packages/cacti-ledger-browser/src/pages/fabric/FabricTransaction/FabricTransaction.tsx b/packages/cacti-ledger-browser/src/pages/fabric/FabricTransaction/FabricTransaction.tsx deleted file mode 100644 index 832eb9bf0d..0000000000 --- a/packages/cacti-ledger-browser/src/pages/fabric/FabricTransaction/FabricTransaction.tsx +++ /dev/null @@ -1,123 +0,0 @@ -// @ts-expect-error -import styles from './FabricTransaction.module.css' -import { createEffect, createSignal, Show } from 'solid-js'; -import { AiOutlineCopy } from 'solid-icons/ai' -import toast, { Toaster } from 'solid-toast'; -import { useParams } from '@solidjs/router'; -import { supabase } from '../../../supabase-client'; -import Button from '../../../components/UI/Button/Button'; - -const notify = () => toast('Success! Creator ID Bytes was successfully copied to the clipboard.'); - -const FabricTransaction = () => { - const [details, setDetails] = createSignal({}); - const params = useParams(); - - createEffect(async () => { - try { - const { data, error } = await supabase - .from("fabric_transactions") - .select("*") - .match({ id: params.id}); - if (data?.[0]) { - console.log(data) - setDetails(data[0]); - } else { - throw new Error("Failed to load block details"); - } - } catch (error:any) { - console.error(error.message); - } - }, []); - - const copyIdToClipboard = () => { - navigator.clipboard.writeText(details().creator_id_bytes) - notify() - } - - return ( -
-
- Failed to load details
}> -

Transaction Details

-

- Created at: - {details().created_at} -

-

- Block ID: {details().block_id}{" "} -

-

- {" "} - Transaction ID: - {details().transaction_id} -

-

- {" "} - Channel name: - {details().channel_id} -

- -

- {" "} - Status - {details().status} -

- -

- {" "} - Type - {details().type} -

- {/* -

- {" "} - Validation Code - {details().validation_code} -

-

- {" "} - Network name: - {details().network_name} -

- */} -

- {" "} - Chaincode Name: - {details().chaincode_name} -

-

- {" "} - Creator ID Bytes: - {details().creator_id_bytes} - -

-

- {" "} - Creator nonce: - {details().creator_nonce} -

-

- {" "} - Creator MSP ID: - {details().creator_msp_id} -

-

- {" "} - Endorser MSP ID: - {details().endorser_msp_id} -

-

- {" "} - Payload Proposal Hash: - {details().payload_proposal_hash} -

- -
- - - ); - }; -export default FabricTransaction - - diff --git a/packages/cacti-ledger-browser/src/pages/fabric/TransactionsFabric/TransactionsFabric.module.css b/packages/cacti-ledger-browser/src/pages/fabric/TransactionsFabric/TransactionsFabric.module.css deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/packages/cacti-ledger-browser/src/pages/fabric/TransactionsFabric/TransactionsFabric.tsx b/packages/cacti-ledger-browser/src/pages/fabric/TransactionsFabric/TransactionsFabric.tsx deleted file mode 100644 index a8b7690db5..0000000000 --- a/packages/cacti-ledger-browser/src/pages/fabric/TransactionsFabric/TransactionsFabric.tsx +++ /dev/null @@ -1,60 +0,0 @@ -import { createSignal, createEffect, Show } from "solid-js"; -import { useNavigate, useParams } from "@solidjs/router"; -import { supabase } from "../../../supabase-client"; -import CardWrapper from "../../../components/CardWrapper/CardWrapper"; -import { Transaction } from "../../../schema/supabase-types"; -// @ts-expect-error -import styles from "./TransactionsFabric.module.css"; - -const TransactionsFabric = () => { - const navigate = useNavigate(); - const [transactions, setTransactions] = createSignal([]); - - const txnTableProps = { - onClick: { - action: (param: string) => { - navigate(`/fabric/txn-details/${param}`); - }, - prop:"id", - }, - schema: [ - { display: "created at", objProp: ["created_at"] }, - { display: "transaction id", objProp: ["transaction_id"] }, - { display: "channel name", objProp: ["channel_id"] }, - { display: "block id", objProp: ["block_id"] }, - { display: "status", objProp: ["status"] }, - ], - }; - - const fetchTransactions = async () => { - try { - const { data } = await supabase.from("fabric_transactions").select("*"); - if (data) { - setTransactions(data); - } else { - throw new Error("Failed to load transactions"); - } - } catch (error:any) { - console.error(error.message); - } - }; - - createEffect(async () => { - await fetchTransactions(); - }, []); - - return ( -
- -
- ); -}; - -export default TransactionsFabric; diff --git a/packages/cacti-ledger-browser/src/pages/shared/Home/Home.module.css b/packages/cacti-ledger-browser/src/pages/shared/Home/Home.module.css deleted file mode 100644 index 0c0f242381..0000000000 --- a/packages/cacti-ledger-browser/src/pages/shared/Home/Home.module.css +++ /dev/null @@ -1,16 +0,0 @@ -.home { - font-weight: 700; - margin:5rem; - font-size: 3rem; - color:rgb(14, 87, 32); - display: flex; - justify-content: center; - flex-direction: column; - align-items: center; - gap:2rem; -} - -.home-icon { - font-size: 20rem; - color:rgb(194, 202, 194); -} \ No newline at end of file diff --git a/packages/cacti-ledger-browser/src/pages/shared/Home/Home.tsx b/packages/cacti-ledger-browser/src/pages/shared/Home/Home.tsx deleted file mode 100644 index faac0f5b52..0000000000 --- a/packages/cacti-ledger-browser/src/pages/shared/Home/Home.tsx +++ /dev/null @@ -1,12 +0,0 @@ -// @ts-expect-error -import styles from "./Home.module.css" -import { TbCactus } from 'solid-icons/tb' -const Home = () => { - return ( -

Select ledger from the dropdown menu

- -
- ) -} - -export default Home \ No newline at end of file diff --git a/packages/cacti-ledger-browser/src/schema/supabase-types.ts b/packages/cacti-ledger-browser/src/schema/supabase-types.ts deleted file mode 100644 index 45b608e68e..0000000000 --- a/packages/cacti-ledger-browser/src/schema/supabase-types.ts +++ /dev/null @@ -1,103 +0,0 @@ -export interface ERC20Txn { - account_address: string; - token_address: string; - uri: string; - token_id: number; - id: string; - balance: number; - last_owner_change: string; -} - -export interface ERC721Txn { - account_address: string; - token_address: string; - uri: string; - token_id: number; - id: string; - last_owner_change: string; -} - -export interface TokenMetadata20 { - address: string; - name: string; - symbol: string; - total_supply: number; - created_at: string; -} - -export interface TokenMetadata721 { - address: string; - name: string; - symbol: string; - created_at: string; -} - -export interface Block { - number: number; - created_at: string; - hash: string; - number_of_tx: number; - sync_at: string; -} - -export interface TokenTransfer { - transaction_id: string; - sender: string; - recipient: string; - value: number; - id: string; -} - -export interface Transaction { - index: number; - hash: string; - block_number: number; - from: string; - to: string; - eth_value: number; - method_signature: string; - method_name: string; - id: string; -} - -export interface TokenHistoryItem { - transaction_hash: string | null; - token_address: string | null; - created_at: string | null; - sender: string | null; - recipient: string | null; -} - -export interface TokenHistoryItem721 extends TokenHistoryItem { - token_id: number | null; -} - -export interface TokenHistoryItem20 extends TokenHistoryItem { - value: number | null; -} - -export interface TokenTransactionMetadata721 { - account_address: string; - token_address: string; - uri: string; - symbol: string; -} - -export interface TableProperty { - display: string; - objProp: string[]; -} - -export interface TableRowClick { - action: (param: string) => void; - prop: string; -} -export interface TableProps { - onClick: TableRowClick; - schema: TableProperty[]; -} - -export interface balanceDate { - created_at: string; - balance: number; -} diff --git a/packages/cacti-ledger-browser/src/schema/token-standards.ts b/packages/cacti-ledger-browser/src/schema/token-standards.ts deleted file mode 100644 index 65ad5a514c..0000000000 --- a/packages/cacti-ledger-browser/src/schema/token-standards.ts +++ /dev/null @@ -1,4 +0,0 @@ -export const STANDARDS = { - erc20: "ERC20", - erc721: "ERC721", -}; diff --git a/packages/cacti-ledger-browser/src/supabase-client.tsx b/packages/cacti-ledger-browser/src/supabase-client.tsx deleted file mode 100644 index 11dbd850c8..0000000000 --- a/packages/cacti-ledger-browser/src/supabase-client.tsx +++ /dev/null @@ -1,7 +0,0 @@ -import { createClient } from "@supabase/supabase-js"; - -let supabaseUrl = "http://localhost:8000"; -let supabaseKey = - "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJhbm9uIiwKICAgICJpc3MiOiAic3VwYWJhc2UtZGVtbyIsCiAgICAiaWF0IjogMTY0MTc2OTIwMCwKICAgICJleHAiOiAxNzk5NTM1NjAwCn0.dc_X5iR_VP_qT0zsiyj_I_OZ2T9FtRU2BBNWN8Bu4GE"; - -export const supabase = createClient(supabaseUrl, supabaseKey); diff --git a/packages/cacti-ledger-browser/styles.d.ts b/packages/cacti-ledger-browser/styles.d.ts deleted file mode 100644 index f2d12bb56c..0000000000 --- a/packages/cacti-ledger-browser/styles.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -declare module "*.module.css" { - const classes: { [key: string]: string }; - export default classes; -} diff --git a/packages/cacti-ledger-browser/tailwind.config.ts b/packages/cacti-ledger-browser/tailwind.config.ts deleted file mode 100644 index 06602b374a..0000000000 --- a/packages/cacti-ledger-browser/tailwind.config.ts +++ /dev/null @@ -1,11 +0,0 @@ -module.exports = { - content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"], - darkMode: false, // or 'media' or 'class' - theme: { - extend: {}, - }, - variants: { - extend: {}, - }, - plugins: [], -}; diff --git a/packages/cacti-ledger-browser/tsconfig.json b/packages/cacti-ledger-browser/tsconfig.json index c93aefcae8..c46a23bf1a 100644 --- a/packages/cacti-ledger-browser/tsconfig.json +++ b/packages/cacti-ledger-browser/tsconfig.json @@ -1,19 +1,19 @@ { "extends": "../../tsconfig.base.json", - "include": [ - "./src" - ], "compilerOptions": { - "jsx": "preserve", - "jsxImportSource": "solid-js", + "composite": true, + "outDir": "./dist/lib/", + "declarationDir": "dist/lib", + "rootDir": "./src", + "skipLibCheck": true, + "noEmit": true, + "jsx": "react-jsx", "plugins": [ - { - "name": "typescript-plugin-css-modules" - } + { + "name": "typescript-plugin-css-modules" + } ], - "outDir": "./dist/out-tsc", - "rootDir": "./src", - "tsBuildInfoFile": "../../.build-cache/cacti-ledger-browser.tsbuildinfo" + "lib": ["ES2015", "dom"] }, - -} \ No newline at end of file + "include": ["./src"] +} diff --git a/packages/cacti-ledger-browser-react/tsconfig.node.json b/packages/cacti-ledger-browser/tsconfig.node.json similarity index 100% rename from packages/cacti-ledger-browser-react/tsconfig.node.json rename to packages/cacti-ledger-browser/tsconfig.node.json diff --git a/packages/cacti-ledger-browser-react/vite.config.mts b/packages/cacti-ledger-browser/vite.config.mts similarity index 100% rename from packages/cacti-ledger-browser-react/vite.config.mts rename to packages/cacti-ledger-browser/vite.config.mts diff --git a/packages/cacti-ledger-browser/vite.config.ts b/packages/cacti-ledger-browser/vite.config.ts deleted file mode 100644 index 279d6a4fca..0000000000 --- a/packages/cacti-ledger-browser/vite.config.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { defineConfig } from "vite"; -import solidPlugin from "vite-plugin-solid"; - -export default defineConfig({ - plugins: [solidPlugin()], - server: { - port: 3001, - }, - build: { - target: "esnext", - outDir: "./dist/lib", - }, -}); diff --git a/yarn.lock b/yarn.lock index cc281b5e54..240ef82e04 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1311,29 +1311,6 @@ __metadata: languageName: node linkType: hard -"@babel/core@npm:^7.23.3": - version: 7.23.7 - resolution: "@babel/core@npm:7.23.7" - dependencies: - "@ampproject/remapping": "npm:^2.2.0" - "@babel/code-frame": "npm:^7.23.5" - "@babel/generator": "npm:^7.23.6" - "@babel/helper-compilation-targets": "npm:^7.23.6" - "@babel/helper-module-transforms": "npm:^7.23.3" - "@babel/helpers": "npm:^7.23.7" - "@babel/parser": "npm:^7.23.6" - "@babel/template": "npm:^7.22.15" - "@babel/traverse": "npm:^7.23.7" - "@babel/types": "npm:^7.23.6" - convert-source-map: "npm:^2.0.0" - debug: "npm:^4.1.0" - gensync: "npm:^1.0.0-beta.2" - json5: "npm:^2.2.3" - semver: "npm:^6.3.1" - checksum: 10/956841695ea801c8b4196d01072e6c1062335960715a6fcfd4009831003b526b00627c78b373ed49b1658c3622c71142f7ff04235fe839cac4a1a25ed51b90aa - languageName: node - linkType: hard - "@babel/core@npm:^7.23.5": version: 7.23.9 resolution: "@babel/core@npm:7.23.9" @@ -1628,25 +1605,6 @@ __metadata: languageName: node linkType: hard -"@babel/helper-create-class-features-plugin@npm:^7.23.6": - version: 7.23.7 - resolution: "@babel/helper-create-class-features-plugin@npm:7.23.7" - dependencies: - "@babel/helper-annotate-as-pure": "npm:^7.22.5" - "@babel/helper-environment-visitor": "npm:^7.22.20" - "@babel/helper-function-name": "npm:^7.23.0" - "@babel/helper-member-expression-to-functions": "npm:^7.23.0" - "@babel/helper-optimise-call-expression": "npm:^7.22.5" - "@babel/helper-replace-supers": "npm:^7.22.20" - "@babel/helper-skip-transparent-expression-wrappers": "npm:^7.22.5" - "@babel/helper-split-export-declaration": "npm:^7.22.6" - semver: "npm:^6.3.1" - peerDependencies: - "@babel/core": ^7.0.0 - checksum: 10/c8b3ef58fca399a25f00d703b0fb2ac1d86642d9e3bd7af04df77857641ed08aaca042ffb271ef93771f9272481fd1cf102a9bddfcee407fb126c927deeef6a7 - languageName: node - linkType: hard - "@babel/helper-create-regexp-features-plugin@npm:^7.16.7": version: 7.17.0 resolution: "@babel/helper-create-regexp-features-plugin@npm:7.17.0" @@ -1779,24 +1737,6 @@ __metadata: languageName: node linkType: hard -"@babel/helper-member-expression-to-functions@npm:^7.23.0": - version: 7.23.0 - resolution: "@babel/helper-member-expression-to-functions@npm:7.23.0" - dependencies: - "@babel/types": "npm:^7.23.0" - checksum: 10/325feb6e200478c8cd6e10433fabe993a7d3315cc1a2a457e45514a5f95a73dff4c69bea04cc2daea0ffe72d8ed85d504b3f00b2e0767b7d4f5ae25fec9b35b2 - languageName: node - linkType: hard - -"@babel/helper-module-imports@npm:7.18.6, @babel/helper-module-imports@npm:^7.18.6": - version: 7.18.6 - resolution: "@babel/helper-module-imports@npm:7.18.6" - dependencies: - "@babel/types": "npm:^7.18.6" - checksum: 10/75b0d510271c2d220c426ec1174666febbe8ce520e66f99f87e8944acddaf5d1e88167fe500a1c8e46a770a5cb916e566d3b514ec0af6cbdac93089ed8200716 - languageName: node - linkType: hard - "@babel/helper-module-imports@npm:^7.10.4, @babel/helper-module-imports@npm:^7.22.5": version: 7.22.5 resolution: "@babel/helper-module-imports@npm:7.22.5" @@ -1815,6 +1755,15 @@ __metadata: languageName: node linkType: hard +"@babel/helper-module-imports@npm:^7.18.6": + version: 7.18.6 + resolution: "@babel/helper-module-imports@npm:7.18.6" + dependencies: + "@babel/types": "npm:^7.18.6" + checksum: 10/75b0d510271c2d220c426ec1174666febbe8ce520e66f99f87e8944acddaf5d1e88167fe500a1c8e46a770a5cb916e566d3b514ec0af6cbdac93089ed8200716 + languageName: node + linkType: hard + "@babel/helper-module-imports@npm:^7.22.15": version: 7.22.15 resolution: "@babel/helper-module-imports@npm:7.22.15" @@ -2297,17 +2246,6 @@ __metadata: languageName: node linkType: hard -"@babel/helpers@npm:^7.23.7": - version: 7.23.8 - resolution: "@babel/helpers@npm:7.23.8" - dependencies: - "@babel/template": "npm:^7.22.15" - "@babel/traverse": "npm:^7.23.7" - "@babel/types": "npm:^7.23.6" - checksum: 10/4c392351910102403b6a7c922319077b179c276e422a4e45b243b45610f813a05a043b6b116cbf5eb4b437fb51b9a2dfc2b7c65f38a0de7fde1f97d08a675313 - languageName: node - linkType: hard - "@babel/helpers@npm:^7.23.9": version: 7.23.9 resolution: "@babel/helpers@npm:7.23.9" @@ -2459,15 +2397,6 @@ __metadata: languageName: node linkType: hard -"@babel/parser@npm:^7.23.6": - version: 7.23.6 - resolution: "@babel/parser@npm:7.23.6" - bin: - parser: ./bin/babel-parser.js - checksum: 10/6be3a63d3c9d07b035b5a79c022327cb7e16cbd530140ecb731f19a650c794c315a72c699a22413ebeafaff14aa8f53435111898d59e01a393d741b85629fa7d - languageName: node - linkType: hard - "@babel/parser@npm:^7.23.9": version: 7.23.9 resolution: "@babel/parser@npm:7.23.9" @@ -2793,7 +2722,7 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-syntax-jsx@npm:^7.18.6, @babel/plugin-syntax-jsx@npm:^7.22.5": +"@babel/plugin-syntax-jsx@npm:^7.22.5": version: 7.22.5 resolution: "@babel/plugin-syntax-jsx@npm:7.22.5" dependencies: @@ -2804,17 +2733,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-syntax-jsx@npm:^7.23.3": - version: 7.23.3 - resolution: "@babel/plugin-syntax-jsx@npm:7.23.3" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.22.5" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10/89037694314a74e7f0e7a9c8d3793af5bf6b23d80950c29b360db1c66859d67f60711ea437e70ad6b5b4b29affe17eababda841b6c01107c2b638e0493bafb4e - languageName: node - linkType: hard - "@babel/plugin-syntax-jsx@npm:^7.7.2": version: 7.21.4 resolution: "@babel/plugin-syntax-jsx@npm:7.21.4" @@ -2925,17 +2843,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-syntax-typescript@npm:^7.23.3": - version: 7.23.3 - resolution: "@babel/plugin-syntax-typescript@npm:7.23.3" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.22.5" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10/abfad3a19290d258b028e285a1f34c9b8a0cbe46ef79eafed4ed7ffce11b5d0720b5e536c82f91cbd8442cde35a3dd8e861fa70366d87ff06fdc0d4756e30876 - languageName: node - linkType: hard - "@babel/plugin-syntax-typescript@npm:^7.7.2": version: 7.16.7 resolution: "@babel/plugin-syntax-typescript@npm:7.16.7" @@ -3324,19 +3231,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-modules-commonjs@npm:^7.23.3": - version: 7.23.3 - resolution: "@babel/plugin-transform-modules-commonjs@npm:7.23.3" - dependencies: - "@babel/helper-module-transforms": "npm:^7.23.3" - "@babel/helper-plugin-utils": "npm:^7.22.5" - "@babel/helper-simple-access": "npm:^7.22.5" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10/a3bc082d0dfe8327a29263a6d721cea608d440bc8141ba3ec6ba80ad73d84e4f9bbe903c27e9291c29878feec9b5dee2bd0563822f93dc951f5d7fc36bdfe85b - languageName: node - linkType: hard - "@babel/plugin-transform-modules-systemjs@npm:^7.22.5": version: 7.22.11 resolution: "@babel/plugin-transform-modules-systemjs@npm:7.22.11" @@ -3756,20 +3650,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-typescript@npm:^7.23.3": - version: 7.23.6 - resolution: "@babel/plugin-transform-typescript@npm:7.23.6" - dependencies: - "@babel/helper-annotate-as-pure": "npm:^7.22.5" - "@babel/helper-create-class-features-plugin": "npm:^7.23.6" - "@babel/helper-plugin-utils": "npm:^7.22.5" - "@babel/plugin-syntax-typescript": "npm:^7.23.3" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10/a816811129f3fcb0af1aeb52b84285be390ed8a0eedab17d31fa8e6847c4ca39b4b176d44831f20a8561b3f586974053570ad7bdfa51f89566276e6b191786d2 - languageName: node - linkType: hard - "@babel/plugin-transform-unicode-escapes@npm:^7.22.10, @babel/plugin-transform-unicode-escapes@npm:^7.22.5": version: 7.22.10 resolution: "@babel/plugin-transform-unicode-escapes@npm:7.22.10" @@ -4056,21 +3936,6 @@ __metadata: languageName: node linkType: hard -"@babel/preset-typescript@npm:^7.23.3": - version: 7.23.3 - resolution: "@babel/preset-typescript@npm:7.23.3" - dependencies: - "@babel/helper-plugin-utils": "npm:^7.22.5" - "@babel/helper-validator-option": "npm:^7.22.15" - "@babel/plugin-syntax-jsx": "npm:^7.23.3" - "@babel/plugin-transform-modules-commonjs": "npm:^7.23.3" - "@babel/plugin-transform-typescript": "npm:^7.23.3" - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 10/c4add0f3fcbb3f4a305c48db9ccb32694f1308ed9971ccbc1a8a3c76d5a13726addb3c667958092287d7aa080186c5c83dbfefa55eacf94657e6cde39e172848 - languageName: node - linkType: hard - "@babel/regjsgen@npm:^0.8.0": version: 0.8.0 resolution: "@babel/regjsgen@npm:0.8.0" @@ -7447,9 +7312,9 @@ __metadata: languageName: unknown linkType: soft -"@hyperledger/cacti-ledger-browser-react@workspace:packages/cacti-ledger-browser-react": +"@hyperledger/cacti-ledger-browser@workspace:packages/cacti-ledger-browser": version: 0.0.0-use.local - resolution: "@hyperledger/cacti-ledger-browser-react@workspace:packages/cacti-ledger-browser-react" + resolution: "@hyperledger/cacti-ledger-browser@workspace:packages/cacti-ledger-browser" dependencies: "@emotion/react": "npm:11.11.3" "@emotion/styled": "npm:11.11.0" @@ -7470,30 +7335,8 @@ __metadata: react-router-dom: "npm:6.21.3" sort-by: "npm:1.2.0" typescript: "npm:5.2.2" - vite: "npm:5.0.12" - languageName: unknown - linkType: soft - -"@hyperledger/cacti-ledger-browser@workspace:packages/cacti-ledger-browser": - version: 0.0.0-use.local - resolution: "@hyperledger/cacti-ledger-browser@workspace:packages/cacti-ledger-browser" - dependencies: - "@solidjs/router": "npm:0.8.4" - "@supabase/supabase-js": "npm:1.35.6" - apexcharts: "npm:3.36.0" - autoprefixer: "npm:10.4.8" - chart.js: "npm:3.9.1" - moment: "npm:2.29.4" - postcss: "npm:8.4.31" - solid-apexcharts: "npm:0.1.6" - solid-icons: "npm:1.0.4" - solid-js: "npm:1.8.11" - solid-slider: "npm:1.3.9" - solid-toast: "npm:0.5.0" - supabase: "npm:1.28.4" - typescript-plugin-css-modules: "npm:5.0.2" - vite: "npm:4.5.2" - vite-plugin-solid: "npm:2.8.2" + vite: "npm:5.0.13" + web3: "npm:4.1.1" languageName: unknown linkType: soft @@ -13517,24 +13360,6 @@ __metadata: languageName: node linkType: hard -"@solid-primitives/timer@npm:^1.3.2": - version: 1.3.7 - resolution: "@solid-primitives/timer@npm:1.3.7" - peerDependencies: - solid-js: ^1.6.12 - checksum: 10/de5b8579ada9fae56c3409a4db66a71b55ac30db69df7a540e3c396c713acc783e14ac890fc13e2635031cac5043d27831168231d51464191a0df24a6c38720f - languageName: node - linkType: hard - -"@solidjs/router@npm:0.8.4": - version: 0.8.4 - resolution: "@solidjs/router@npm:0.8.4" - peerDependencies: - solid-js: ^1.5.3 - checksum: 10/2502d46d3c8147af3e07c03b7148511a20105d2d85fcf04a23ce9a83b0124db123298377bd31290e0c3bddc49f0a1fd569f84648629efe5be7b6a132e80cc6a3 - languageName: node - linkType: hard - "@sovpro/delimited-stream@npm:^1.1.0": version: 1.1.0 resolution: "@sovpro/delimited-stream@npm:1.1.0" @@ -14410,7 +14235,7 @@ __metadata: languageName: node linkType: hard -"@types/babel__core@npm:^7.20.4, @types/babel__core@npm:^7.20.5": +"@types/babel__core@npm:^7.20.5": version: 7.20.5 resolution: "@types/babel__core@npm:7.20.5" dependencies: @@ -15580,24 +15405,6 @@ __metadata: languageName: node linkType: hard -"@types/postcss-modules-local-by-default@npm:^4.0.0": - version: 4.0.0 - resolution: "@types/postcss-modules-local-by-default@npm:4.0.0" - dependencies: - postcss: "npm:^8.0.0" - checksum: 10/093a869240ddafc1b6946f3f6197c2de0ebd2f8ae3d5de7a6ec51aad5d6c8837a503496168f3d6230ddaa2bc4c815426a2353e8ddd88acae6bcb4a03477592d5 - languageName: node - linkType: hard - -"@types/postcss-modules-scope@npm:^3.0.1": - version: 3.0.2 - resolution: "@types/postcss-modules-scope@npm:3.0.2" - dependencies: - postcss: "npm:^8.0.0" - checksum: 10/ec47ebe937c47836a5e4edc1f77652d4d92a3ae47e608c8ac806cab083dd4b1f57913c513c3ef6c43fa652ea8df94c8f702a3f2b02a9861d1d927fb868680c08 - languageName: node - linkType: hard - "@types/prettier@npm:^2.1.5": version: 2.7.3 resolution: "@types/prettier@npm:2.7.3" @@ -17502,20 +17309,6 @@ __metadata: languageName: node linkType: hard -"apexcharts@npm:3.36.0": - version: 3.36.0 - resolution: "apexcharts@npm:3.36.0" - dependencies: - svg.draggable.js: "npm:^2.2.2" - svg.easing.js: "npm:^2.0.0" - svg.filter.js: "npm:^2.0.2" - svg.pathmorphing.js: "npm:^0.1.3" - svg.resize.js: "npm:^1.4.3" - svg.select.js: "npm:^3.0.1" - checksum: 10/8b47bc2652578bdb0e5a3545130e6d545d4062e7ddc54627377c6191945ddad8e9cd48d6e274b3dfdf39207af17db5f1191bb5c4ce807efaa0a7787a60394935 - languageName: node - linkType: hard - "apexcharts@npm:3.45.2": version: 3.45.2 resolution: "apexcharts@npm:3.45.2" @@ -17531,20 +17324,6 @@ __metadata: languageName: node linkType: hard -"apexcharts@npm:^3.33.1": - version: 3.41.0 - resolution: "apexcharts@npm:3.41.0" - dependencies: - svg.draggable.js: "npm:^2.2.2" - svg.easing.js: "npm:^2.0.0" - svg.filter.js: "npm:^2.0.2" - svg.pathmorphing.js: "npm:^0.1.3" - svg.resize.js: "npm:^1.4.3" - svg.select.js: "npm:^3.0.1" - checksum: 10/f7703a627271715cad76990bd6df8c11267080c82dcfc2bfde43f2142ebd8cc405b77743c5a2274fdecded7507de40f4ff74014c421dc252bc073b04dc757c84 - languageName: node - linkType: hard - "apisauce@npm:^2.1.5": version: 2.1.6 resolution: "apisauce@npm:2.1.6" @@ -18466,24 +18245,6 @@ __metadata: languageName: node linkType: hard -"autoprefixer@npm:10.4.8": - version: 10.4.8 - resolution: "autoprefixer@npm:10.4.8" - dependencies: - browserslist: "npm:^4.21.3" - caniuse-lite: "npm:^1.0.30001373" - fraction.js: "npm:^4.2.0" - normalize-range: "npm:^0.1.2" - picocolors: "npm:^1.0.0" - postcss-value-parser: "npm:^4.2.0" - peerDependencies: - postcss: ^8.1.0 - bin: - autoprefixer: bin/autoprefixer - checksum: 10/f248b74a58f8a887463c456c4a167b85048413c44688d4c0393a755d545a74c467dba39645a5005dff580a8dbac36ce0b006b9896189efd86dbd0410cb284801 - languageName: node - linkType: hard - "autoprefixer@npm:^10.4.13": version: 10.4.15 resolution: "autoprefixer@npm:10.4.15" @@ -18717,21 +18478,6 @@ __metadata: languageName: node linkType: hard -"babel-plugin-jsx-dom-expressions@npm:^0.37.13": - version: 0.37.13 - resolution: "babel-plugin-jsx-dom-expressions@npm:0.37.13" - dependencies: - "@babel/helper-module-imports": "npm:7.18.6" - "@babel/plugin-syntax-jsx": "npm:^7.18.6" - "@babel/types": "npm:^7.20.7" - html-entities: "npm:2.3.3" - validate-html-nesting: "npm:^1.2.1" - peerDependencies: - "@babel/core": ^7.20.12 - checksum: 10/96bcb595f9bfe5288acfd11e363312d43308b5d5aea605c1cd1356ce98d41bb96bd7c5a6ba3e18d565b9b2c9c7f27eaf6b6bd11fdf245af4bbf8a34f722c433d - languageName: node - linkType: hard - "babel-plugin-macros@npm:^3.1.0": version: 3.1.0 resolution: "babel-plugin-macros@npm:3.1.0" @@ -18901,17 +18647,6 @@ __metadata: languageName: node linkType: hard -"babel-preset-solid@npm:^1.8.4": - version: 1.8.9 - resolution: "babel-preset-solid@npm:1.8.9" - dependencies: - babel-plugin-jsx-dom-expressions: "npm:^0.37.13" - peerDependencies: - "@babel/core": ^7.0.0 - checksum: 10/25e2a9d591532274e21aea225b87b820e5e1f99d7b3883b32514c09823e596865b0450a5888e1ae435c7f7c354367ec8ace25b2947934734396412aa8039957f - languageName: node - linkType: hard - "babel-runtime@npm:^6.11.6": version: 6.26.0 resolution: "babel-runtime@npm:6.26.0" @@ -20297,13 +20032,6 @@ __metadata: languageName: node linkType: hard -"caniuse-lite@npm:^1.0.30001373": - version: 1.0.30001516 - resolution: "caniuse-lite@npm:1.0.30001516" - checksum: 10/004986e33b59bd99115ad9946db10ce578c4f7c81f234d17c8e5e764df415629a8202f3d6cf27c558c372dd3b431faa54cdba0d16db329143a36725ef05e71f3 - languageName: node - linkType: hard - "caniuse-lite@npm:^1.0.30001449": version: 1.0.30001474 resolution: "caniuse-lite@npm:1.0.30001474" @@ -20581,13 +20309,6 @@ __metadata: languageName: node linkType: hard -"chart.js@npm:3.9.1": - version: 3.9.1 - resolution: "chart.js@npm:3.9.1" - checksum: 10/62ee137b296181d8d12e428cb83a02351768039ff672b8ff775534f844777e9c91a3213fc8c6c46b59175a47f23d1547178fdd64ff9afc37c2c1703b2cede93e - languageName: node - linkType: hard - "check-error@npm:^1.0.2": version: 1.0.2 resolution: "check-error@npm:1.0.2" @@ -22747,7 +22468,7 @@ __metadata: languageName: node linkType: hard -"csstype@npm:^3.1.0, csstype@npm:^3.1.2": +"csstype@npm:^3.1.2": version: 3.1.2 resolution: "csstype@npm:3.1.2" checksum: 10/1f39c541e9acd9562996d88bc9fb62d1cb234786ef11ed275567d4b2bd82e1ceacde25debc8de3d3b4871ae02c2933fa02614004c97190711caebad6347debc2 @@ -23427,13 +23148,6 @@ __metadata: languageName: node linkType: hard -"defu@npm:^6.0.0": - version: 6.1.2 - resolution: "defu@npm:6.1.2" - checksum: 10/5704aa6ea0b503004ee25b2ce909af8e6dc7c472d2d41e293f5a879534a0a7827a37e6692e0ca0c6e8d3ef6b00651d50089be681c814832cbed98f0f206ef25b - languageName: node - linkType: hard - "deglob@npm:^2.1.0": version: 2.1.1 resolution: "deglob@npm:2.1.1" @@ -24063,7 +23777,7 @@ __metadata: languageName: node linkType: hard -"dotenv@npm:16.0.3, dotenv@npm:^16.0.3": +"dotenv@npm:16.0.3": version: 16.0.3 resolution: "dotenv@npm:16.0.3" checksum: 10/d6788c8e40b35ad9a9ca29249dccf37fa6b3ad26700fcbc87f2f41101bf914f5193a04e36a3d23de70b1dcb8e5d5a3b21e151debace2c4cd08d868be500a1b29 @@ -30084,13 +29798,6 @@ __metadata: languageName: node linkType: hard -"html-entities@npm:2.3.3, html-entities@npm:^2.3.2": - version: 2.3.3 - resolution: "html-entities@npm:2.3.3" - checksum: 10/24f6b77ce234e263f3d44530de2356e67c313c8ba7e5f6e02c16dcea3a950711d8820afb320746d57b8dae61fde7aaaa7f60017b706fa4bce8624ba3c29ad316 - languageName: node - linkType: hard - "html-entities@npm:^2.1.0": version: 2.4.0 resolution: "html-entities@npm:2.4.0" @@ -30098,6 +29805,13 @@ __metadata: languageName: node linkType: hard +"html-entities@npm:^2.3.2": + version: 2.3.3 + resolution: "html-entities@npm:2.3.3" + checksum: 10/24f6b77ce234e263f3d44530de2356e67c313c8ba7e5f6e02c16dcea3a950711d8820afb320746d57b8dae61fde7aaaa7f60017b706fa4bce8624ba3c29ad316 + languageName: node + linkType: hard + "html-escaper@npm:^2.0.0": version: 2.0.2 resolution: "html-escaper@npm:2.0.2" @@ -32105,13 +31819,6 @@ __metadata: languageName: node linkType: hard -"is-what@npm:^4.1.8": - version: 4.1.15 - resolution: "is-what@npm:4.1.15" - checksum: 10/5624028fc8fea69ae7ab332a263ca4f379cd796d87f7fdb1bc9aab8d1d57f22c7e35d90e7e85a545eb5a3c62463683f9b84d0c5616182964bd41394a80aa2295 - languageName: node - linkType: hard - "is-windows@npm:^1.0.1, is-windows@npm:^1.0.2": version: 1.0.2 resolution: "is-windows@npm:1.0.2" @@ -34311,13 +34018,6 @@ __metadata: languageName: node linkType: hard -"keen-slider@npm:^6.7.0": - version: 6.8.6 - resolution: "keen-slider@npm:6.8.6" - checksum: 10/6de97fb1a3924c1ac21df009b017eb50927772eecaaf58c62d978f768b2ac4317aff63924508672980bcd227f4fde23f11e8a95e0c0fb72c0668f9847b567e81 - languageName: node - linkType: hard - "key-encoder@npm:2.0.3": version: 2.0.3 resolution: "key-encoder@npm:2.0.3" @@ -34692,7 +34392,7 @@ __metadata: languageName: node linkType: hard -"less@npm:4.1.3, less@npm:^4.1.3": +"less@npm:4.1.3": version: 4.1.3 resolution: "less@npm:4.1.3" dependencies: @@ -36458,15 +36158,6 @@ __metadata: languageName: node linkType: hard -"merge-anything@npm:^5.1.7": - version: 5.1.7 - resolution: "merge-anything@npm:5.1.7" - dependencies: - is-what: "npm:^4.1.8" - checksum: 10/53d034b2a17f9a38e104a47fe60522858117da85421f1990d4c9c68494a33c3a19fa090a65f0bbf44cc2524d240297033548a018170ab466911be3d36e38bcad - languageName: node - linkType: hard - "merge-descriptors@npm:1.0.1": version: 1.0.1 resolution: "merge-descriptors@npm:1.0.1" @@ -37168,13 +36859,6 @@ __metadata: languageName: node linkType: hard -"moment@npm:2.29.4": - version: 2.29.4 - resolution: "moment@npm:2.29.4" - checksum: 10/157c5af5a0ba8196e577bc67feb583303191d21ba1f7f2af30b3b40d4c63a64d505ba402be2a1454832082fac6be69db1e0d186c3279dae191e6634b0c33705c - languageName: node - linkType: hard - "moment@npm:2.30.1": version: 2.30.1 resolution: "moment@npm:2.30.1" @@ -37906,17 +37590,6 @@ __metadata: languageName: node linkType: hard -"node-fetch@npm:^3.2.10": - version: 3.3.1 - resolution: "node-fetch@npm:3.3.1" - dependencies: - data-uri-to-buffer: "npm:^4.0.0" - fetch-blob: "npm:^3.1.4" - formdata-polyfill: "npm:^4.0.10" - checksum: 10/9fed9ed9ab83f719ffbe51b5029f32ee9820a725afc57a3e6a7e5742a05dd38b22d005f2d03d70e8e0924b497e513b08992843bb1bc7f0a15b72ad071d8c1271 - languageName: node - linkType: hard - "node-fetch@npm:^3.3.2": version: 3.3.2 resolution: "node-fetch@npm:3.3.2" @@ -41097,24 +40770,6 @@ __metadata: languageName: node linkType: hard -"postcss-load-config@npm:^3.1.4": - version: 3.1.4 - resolution: "postcss-load-config@npm:3.1.4" - dependencies: - lilconfig: "npm:^2.0.5" - yaml: "npm:^1.10.2" - peerDependencies: - postcss: ">=8.0.9" - ts-node: ">=9.0.0" - peerDependenciesMeta: - postcss: - optional: true - ts-node: - optional: true - checksum: 10/75fa409d77b96e6f53e99f680c550f25ca8922c1150d3d368ded1f6bd8e0d4d67a615fe1f1c5d409aefb6e66fb4b5e48e86856d581329913de84578def078b19 - languageName: node - linkType: hard - "postcss-load-config@npm:^4.0.1": version: 4.0.1 resolution: "postcss-load-config@npm:4.0.1" @@ -41262,7 +40917,7 @@ __metadata: languageName: node linkType: hard -"postcss-modules-local-by-default@npm:^4.0.0, postcss-modules-local-by-default@npm:^4.0.3": +"postcss-modules-local-by-default@npm:^4.0.3": version: 4.0.3 resolution: "postcss-modules-local-by-default@npm:4.0.3" dependencies: @@ -43921,13 +43576,6 @@ __metadata: languageName: node linkType: hard -"reserved-words@npm:^0.1.2": - version: 0.1.2 - resolution: "reserved-words@npm:0.1.2" - checksum: 10/72e80f71dcde1e2d697e102473ad6d597e1659118836092c63cc4db68a64857f07f509176d239c8675b24f7f03574336bf202a780cc1adb39574e2884d1fd1fa - languageName: node - linkType: hard - "resolve-alpn@npm:^1.2.0": version: 1.2.1 resolution: "resolve-alpn@npm:1.2.1" @@ -44462,20 +44110,6 @@ __metadata: languageName: node linkType: hard -"rollup@npm:^3.27.1": - version: 3.29.4 - resolution: "rollup@npm:3.29.4" - dependencies: - fsevents: "npm:~2.3.2" - dependenciesMeta: - fsevents: - optional: true - bin: - rollup: dist/bin/rollup - checksum: 10/9e39d54e23731a4c4067e9c02910cdf7479a0f9a7584796e2dc6efaa34bb1e5e015c062c87d1e64d96038baca76cefd47681ff22604fae5827147f54123dc6d0 - languageName: node - linkType: hard - "rollup@npm:^4.2.0": version: 4.9.6 resolution: "rollup@npm:4.9.6" @@ -44852,19 +44486,6 @@ __metadata: languageName: node linkType: hard -"sass@npm:^1.58.3": - version: 1.69.3 - resolution: "sass@npm:1.69.3" - dependencies: - chokidar: "npm:>=3.0.0 <4.0.0" - immutable: "npm:^4.0.0" - source-map-js: "npm:>=0.6.2 <2.0.0" - bin: - sass: sass.js - checksum: 10/ab3a960dfce4bf29ad90a95a1fed2791600dd34f44ed354674391c4e50c8a0fab8317b9d20b241a339ff27655fd04847f4830209dbb4ed4289676f61a051df80 - languageName: node - linkType: hard - "sax@npm:1.2.1": version: 1.2.1 resolution: "sax@npm:1.2.1" @@ -45192,29 +44813,6 @@ __metadata: languageName: node linkType: hard -"seroval-plugins@npm:^1.0.3": - version: 1.0.4 - resolution: "seroval-plugins@npm:1.0.4" - peerDependencies: - seroval: ^1.0 - checksum: 10/2876489d8d56fa2a6f7a5e2e5be1ef1a205311fe254cb2d3edcb92ff62c9d355a3a1b6d9e848cba73c8f08072c7bd321e13d99640ae03e56cf7c7e84ad56bbc0 - languageName: node - linkType: hard - -"seroval@npm:^0.5.0": - version: 0.5.1 - resolution: "seroval@npm:0.5.1" - checksum: 10/bb44ba20acbf11c5161d3f3cec64b16d15506fb27e0b45e0214e079d2ff846a74a0b11f90b7b3d2ff538658cff411d0ae63f579e8486bb373886482988d2981f - languageName: node - linkType: hard - -"seroval@npm:^1.0.3": - version: 1.0.4 - resolution: "seroval@npm:1.0.4" - checksum: 10/9cea58ac6e915ffcd3912b1efcc99b7a0d1a8cd945421f2941f3967c1604b7fe2c7f2944c6bcfde91a104fe950fd815bdf40bf72964e5fbe466d06998deeda66 - languageName: node - linkType: hard - "serve-favicon@npm:2.4.5": version: 2.4.5 resolution: "serve-favicon@npm:2.4.5" @@ -46000,80 +45598,6 @@ __metadata: languageName: node linkType: hard -"solid-apexcharts@npm:0.1.6": - version: 0.1.6 - resolution: "solid-apexcharts@npm:0.1.6" - dependencies: - apexcharts: "npm:^3.33.1" - defu: "npm:^6.0.0" - solid-js: "npm:^1.1.7" - checksum: 10/2f85c0799bcddb8887d2fc6b5ae6e87cc5f24600aee21fc5b03b81e1d0e7536f18a33499c7fd1a2ec4c45f0c42305ca88bbef49893b7e7a79b5f84d1f8692790 - languageName: node - linkType: hard - -"solid-icons@npm:1.0.4": - version: 1.0.4 - resolution: "solid-icons@npm:1.0.4" - peerDependencies: - solid-js: "*" - checksum: 10/abc9f8cb0c4ad244d98ea126ded18adf841cb1fddd66757f24525ffe5d22f8e6af682c643ed3c5d1e46c1bb60258cfe177b074cfd56c320917bdb4b713344684 - languageName: node - linkType: hard - -"solid-js@npm:1.8.11": - version: 1.8.11 - resolution: "solid-js@npm:1.8.11" - dependencies: - csstype: "npm:^3.1.0" - seroval: "npm:^1.0.3" - seroval-plugins: "npm:^1.0.3" - checksum: 10/d0b9c5da23009dd15b7cae5b2e28110c2b59c1887418228c73b23bb7a71ae68aae5b130227a8c5d6e42c76cd939455922e11550115557fe074eac451d38807b3 - languageName: node - linkType: hard - -"solid-js@npm:^1.1.7, solid-js@npm:^1.5.4": - version: 1.7.8 - resolution: "solid-js@npm:1.7.8" - dependencies: - csstype: "npm:^3.1.0" - seroval: "npm:^0.5.0" - checksum: 10/64a44fd58ff5b2aac37f6377d9db6d2972c6707376e7e7ec709b4657ae6dcd9fe6d24664dd431d07d5acb339204034eddfa99c7018b8580cb851c97fa69b387f - languageName: node - linkType: hard - -"solid-refresh@npm:^0.6.3": - version: 0.6.3 - resolution: "solid-refresh@npm:0.6.3" - dependencies: - "@babel/generator": "npm:^7.23.6" - "@babel/helper-module-imports": "npm:^7.22.15" - "@babel/types": "npm:^7.23.6" - peerDependencies: - solid-js: ^1.3 - checksum: 10/2ca43f894fd3044b4c0c8e1aca6f9a5ddb6e65397d7baad1688601795d64eb849c94a4a31cf5032a371c4f3c15c2e00d9027ea16e907547ea0c0200e1a82c0cd - languageName: node - linkType: hard - -"solid-slider@npm:1.3.9": - version: 1.3.9 - resolution: "solid-slider@npm:1.3.9" - dependencies: - "@solid-primitives/timer": "npm:^1.3.2" - keen-slider: "npm:^6.7.0" - solid-js: "npm:^1.5.4" - checksum: 10/b386fe82565926315a53d90db386b8f3aee4bdfaaa36f0f253b9608d1a2741615b159a979c99002c3d4b856988be4491b8a7ff7bd6e5edbe9a26b87838e81500 - languageName: node - linkType: hard - -"solid-toast@npm:0.5.0": - version: 0.5.0 - resolution: "solid-toast@npm:0.5.0" - peerDependencies: - solid-js: ^1.5.4 - checksum: 10/bb5d1e0e0e60f9f4b7aefb303d29f413469225908018de2c0ee2c766089d32bcc270177774ee104d1a0f272f8d919d6a4d16d333325f52c434b0c3b199e771ef - languageName: node - linkType: hard - "sonic-boom@npm:^3.7.0": version: 3.8.1 resolution: "sonic-boom@npm:3.8.1" @@ -47282,21 +46806,6 @@ __metadata: languageName: node linkType: hard -"stylus@npm:^0.59.0": - version: 0.59.0 - resolution: "stylus@npm:0.59.0" - dependencies: - "@adobe/css-tools": "npm:^4.0.1" - debug: "npm:^4.3.2" - glob: "npm:^7.1.6" - sax: "npm:~1.2.4" - source-map: "npm:^0.7.3" - bin: - stylus: bin/stylus - checksum: 10/f8414237d7b0edf57ddbb0d782de7876bba15dc71e475e8713377b8dbc4767a1b1f101f966e33beb7f0c8d092e17a42d557f73bc94cbae5a8311d3bc2f64bbbb - languageName: node - linkType: hard - "sublevel-pouchdb@npm:7.3.1": version: 7.3.1 resolution: "sublevel-pouchdb@npm:7.3.1" @@ -47327,19 +46836,6 @@ __metadata: languageName: node linkType: hard -"supabase@npm:1.28.4": - version: 1.28.4 - resolution: "supabase@npm:1.28.4" - dependencies: - bin-links: "npm:^4.0.1" - node-fetch: "npm:^3.2.10" - tar: "npm:6.1.13" - bin: - supabase: bin/supabase - checksum: 10/3b999b7eea14c67b3f0e3feff5779d0ce1d51a559b58da8ec46dcece9a226351f75d85db57894a36626740a60ecd9bf0e32b4a8e300a4d7b15c03821bf461d54 - languageName: node - linkType: hard - "superagent@npm:^6.1.0": version: 6.1.0 resolution: "superagent@npm:6.1.0" @@ -47902,20 +47398,6 @@ __metadata: languageName: node linkType: hard -"tar@npm:6.1.13": - version: 6.1.13 - resolution: "tar@npm:6.1.13" - dependencies: - chownr: "npm:^2.0.0" - fs-minipass: "npm:^2.0.0" - minipass: "npm:^4.0.0" - minizlib: "npm:^2.1.1" - mkdirp: "npm:^1.0.3" - yallist: "npm:^4.0.0" - checksum: 10/add2c3c6d0d71192186ec118d265b92d94be5cd57a0b8fdf0d29ee46dc846574925a5fc57170eefffd78201eda4c45d7604070b5a4b0648e4d6e1d65918b5a82 - languageName: node - linkType: hard - "tar@npm:^4.0.2": version: 4.4.19 resolution: "tar@npm:4.4.19" @@ -48794,7 +48276,7 @@ __metadata: languageName: node linkType: hard -"tsconfig-paths@npm:^4.1.0, tsconfig-paths@npm:^4.1.2": +"tsconfig-paths@npm:^4.1.0": version: 4.2.0 resolution: "tsconfig-paths@npm:4.2.0" dependencies: @@ -49335,32 +48817,6 @@ __metadata: languageName: node linkType: hard -"typescript-plugin-css-modules@npm:5.0.2": - version: 5.0.2 - resolution: "typescript-plugin-css-modules@npm:5.0.2" - dependencies: - "@types/postcss-modules-local-by-default": "npm:^4.0.0" - "@types/postcss-modules-scope": "npm:^3.0.1" - dotenv: "npm:^16.0.3" - icss-utils: "npm:^5.1.0" - less: "npm:^4.1.3" - lodash.camelcase: "npm:^4.3.0" - postcss: "npm:^8.4.21" - postcss-load-config: "npm:^3.1.4" - postcss-modules-extract-imports: "npm:^3.0.0" - postcss-modules-local-by-default: "npm:^4.0.0" - postcss-modules-scope: "npm:^3.0.0" - reserved-words: "npm:^0.1.2" - sass: "npm:^1.58.3" - source-map-js: "npm:^1.0.2" - stylus: "npm:^0.59.0" - tsconfig-paths: "npm:^4.1.2" - peerDependencies: - typescript: ">=4.0.0" - checksum: 10/97104f17f4ee902277a70e90c1e6a8c597effc6d8515902c3ab21b96995f1e4df46ee2f97637db8c7915569d337ec94ca17a6ae34978242122d181fd56304013 - languageName: node - linkType: hard - "typescript-tuple@npm:^2.2.1": version: 2.2.1 resolution: "typescript-tuple@npm:2.2.1" @@ -50160,13 +49616,6 @@ __metadata: languageName: node linkType: hard -"validate-html-nesting@npm:^1.2.1": - version: 1.2.2 - resolution: "validate-html-nesting@npm:1.2.2" - checksum: 10/2c13f75b936eb167a0e33a3aa58b7cdce66ccfea762a4e3bdaf7771a64278d83a85eea01dbd8cccda0649b9112b5665ccd9139deb91fc626212c28ee04fbede9 - languageName: node - linkType: hard - "validate-npm-package-license@npm:^3.0.1, validate-npm-package-license@npm:^3.0.4": version: 3.0.4 resolution: "validate-npm-package-license@npm:3.0.4" @@ -50264,24 +49713,6 @@ __metadata: languageName: node linkType: hard -"vite-plugin-solid@npm:2.8.2": - version: 2.8.2 - resolution: "vite-plugin-solid@npm:2.8.2" - dependencies: - "@babel/core": "npm:^7.23.3" - "@babel/preset-typescript": "npm:^7.23.3" - "@types/babel__core": "npm:^7.20.4" - babel-preset-solid: "npm:^1.8.4" - merge-anything: "npm:^5.1.7" - solid-refresh: "npm:^0.6.3" - vitefu: "npm:^0.2.5" - peerDependencies: - solid-js: ^1.7.2 - vite: ^3.0.0 || ^4.0.0 || ^5.0.0 - checksum: 10/f61b398b6205ee1efafc0759145580871cfe61817670cc870563837937e3d277981603fbed728820a006b1a24d5cc644791ee1ad17ee7dc60559616abc7ea890 - languageName: node - linkType: hard - "vite@npm:4.4.7": version: 4.4.7 resolution: "vite@npm:4.4.7" @@ -50322,49 +49753,9 @@ __metadata: languageName: node linkType: hard -"vite@npm:4.5.2": - version: 4.5.2 - resolution: "vite@npm:4.5.2" - dependencies: - esbuild: "npm:^0.18.10" - fsevents: "npm:~2.3.2" - postcss: "npm:^8.4.27" - rollup: "npm:^3.27.1" - peerDependencies: - "@types/node": ">= 14" - less: "*" - lightningcss: ^1.21.0 - sass: "*" - stylus: "*" - sugarss: "*" - terser: ^5.4.0 - dependenciesMeta: - fsevents: - optional: true - peerDependenciesMeta: - "@types/node": - optional: true - less: - optional: true - lightningcss: - optional: true - sass: - optional: true - stylus: - optional: true - sugarss: - optional: true - terser: - optional: true - bin: - vite: bin/vite.js - checksum: 10/3feb39f8da038fb2b1ad074c19a9579c263c1d7a872c5c6e0269b82d67805bb8c93cf9fc393e852807483ae9a918b1ac2861c72f73ee92fb3935ea68333a2cf7 - languageName: node - linkType: hard - -"vite@npm:5.0.12": - version: 5.0.12 - resolution: "vite@npm:5.0.12" +"vite@npm:5.0.13": + version: 5.0.13 + resolution: "vite@npm:5.0.13" dependencies: esbuild: "npm:^0.19.3" fsevents: "npm:~2.3.3" @@ -50398,19 +49789,7 @@ __metadata: optional: true bin: vite: bin/vite.js - checksum: 10/ed0bb26a0d0c8e1dae0b70af9e36adffd7e15d80297443fe4da762596dc81570bad7f0291f590a57c1553f5e435338d8c7ffc483bd9431a95c09d9ac90665fad - languageName: node - linkType: hard - -"vitefu@npm:^0.2.5": - version: 0.2.5 - resolution: "vitefu@npm:0.2.5" - peerDependencies: - vite: ^3.0.0 || ^4.0.0 || ^5.0.0 - peerDependenciesMeta: - vite: - optional: true - checksum: 10/65ef98208c1e26f78315b5f3e1b73f87189b34f1e6a8dc11f66a3263624dd27bd1ff1571a3a54ad5ef273336259f26545b6005bab6fc04a049d50aa4b829791d + checksum: 10/e0da15142ecbe3e88dbb2682c86c7e468927ea35a04c6a57dae623c575d632f3150a1098905af2da5a598b604a5762bdf45f904d00a2ecc6e93042d904b01077 languageName: node linkType: hard