diff --git a/web/.gitignore b/web/.gitignore deleted file mode 100644 index d5183bb0..00000000 --- a/web/.gitignore +++ /dev/null @@ -1,25 +0,0 @@ -# Nuxt dev/build outputs -.output -.data -.nuxt -.nitro -.cache -dist - -# Node dependencies -node_modules - -# Logs -logs -*.log - -# Misc -.DS_Store -.fleet -.idea - -# Local env files -.env -.env.* -!.env.example -.vercel diff --git a/web/README.md b/web/README.md deleted file mode 100644 index 37b984d3..00000000 --- a/web/README.md +++ /dev/null @@ -1,75 +0,0 @@ -# [Kadscan](https://www.kadscan.io/) - -========== - -## Guidelines - -- Use the present tense ("Add feature" not "Added feature") and the imperative mood ("Move class to..." not "Moves class to...") on commits and use the name issue on pull requests. -- Pull requests must be reviewed before merged. -- Done is better than perfect. Does it work as expected? Ship now, iterate later. -- All contributions must have tests. Remember to verify the [Github Actions CI status](https://github.com/hack-a-chain-software/indexer-kadena/actions/workflows/CI.yaml). -- Every commit is checked using [Github Actions](https://github.com/hack-a-chain-software/indexer-kadena/actions). -- If the CI status are not passing, the deploy will not work. - -## Coding Style - -- CSS: https://github.com/airbnb/css -- Javascript: https://github.com/airbnb/javascript -- Vue: https://vuejs.org/style-guide/ - -## Task Management - -- GitHub Issues is used to track all tasks that needed to be done. -- Kadscan board is used to get a decent look on what's going on wright now. -- Every two weeks all done tasks are put together in a Milestone and the current Sprint is closed. - -## Directory Structure - -Here's a brief overview of the structure: - -```bash -. -├── components # Global reusable components -├── composables # Composables for reactive logic -├── config # Configuration files specific to Nuxt -├── layouts # Layout templates for different parts of the application -├── plugins # Plugins extending Nuxt's core functionality -├── pages # Vue components that define each page of the application -├── app.config.ts # Central application configuration -``` - -## Features - -- [Nuxt 3](https://v3.nuxtjs.org/) -- [Tailwind CSS](https://tailwindcss.com/) - -## Installation - -Kadscan is powered by [**Nuxt**](https://nuxt.com/). - -If you have any problems configuring your enviroment, remember to read the [Nuxt Documentation](https://nuxt.com/docs). - ---- - -#### Steps - -1. Clone the repository: - -```bash -$ gh repo clone hack-a-chain-software/indexer-kadena -$ cd indexer-kadena -``` - -2. Check all packages and copy the .env.example file and edit it with your environment config: - -```bash -$ cp ./front/.env.example ./front/.env -``` - -3. Install frontend dependencies via PNPM - -```bash -$ pnpm install -``` - -When working on frontend, run `pnpm web dev`. Files will be compiled, concatenated and the browser will auto update. diff --git a/web/app.config.ts b/web/app.config.ts deleted file mode 100644 index f9cccd33..00000000 --- a/web/app.config.ts +++ /dev/null @@ -1,5 +0,0 @@ -import * as config from './config'; - -export default defineAppConfig({ - ...config, -}); diff --git a/web/app.vue b/web/app.vue deleted file mode 100644 index 8d163fdf..00000000 --- a/web/app.vue +++ /dev/null @@ -1,68 +0,0 @@ - - - - - diff --git a/web/components/Button.vue b/web/components/Button.vue deleted file mode 100644 index 6f2e1c3d..00000000 --- a/web/components/Button.vue +++ /dev/null @@ -1,97 +0,0 @@ - - - - - diff --git a/web/components/ButtonExport.vue b/web/components/ButtonExport.vue deleted file mode 100644 index 70575219..00000000 --- a/web/components/ButtonExport.vue +++ /dev/null @@ -1,20 +0,0 @@ - - - diff --git a/web/components/Calendar.vue b/web/components/Calendar.vue deleted file mode 100644 index 8e48fefe..00000000 --- a/web/components/Calendar.vue +++ /dev/null @@ -1,149 +0,0 @@ - - - - - diff --git a/web/components/Card.vue b/web/components/Card.vue deleted file mode 100644 index d6b51514..00000000 --- a/web/components/Card.vue +++ /dev/null @@ -1,76 +0,0 @@ - - - diff --git a/web/components/Chart.vue b/web/components/Chart.vue deleted file mode 100644 index deedb972..00000000 --- a/web/components/Chart.vue +++ /dev/null @@ -1,110 +0,0 @@ - - - diff --git a/web/components/Chip.vue b/web/components/Chip.vue deleted file mode 100644 index 11646aa1..00000000 --- a/web/components/Chip.vue +++ /dev/null @@ -1,11 +0,0 @@ - diff --git a/web/components/Code.vue b/web/components/Code.vue deleted file mode 100644 index f0523467..00000000 --- a/web/components/Code.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - diff --git a/web/components/Container.vue b/web/components/Container.vue deleted file mode 100644 index 437aa3a4..00000000 --- a/web/components/Container.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/web/components/DatePicker.vue b/web/components/DatePicker.vue deleted file mode 100644 index 1903b646..00000000 --- a/web/components/DatePicker.vue +++ /dev/null @@ -1,83 +0,0 @@ - - - diff --git a/web/components/Dropdown.vue b/web/components/Dropdown.vue deleted file mode 100644 index 4fda0ad3..00000000 --- a/web/components/Dropdown.vue +++ /dev/null @@ -1,72 +0,0 @@ - - - diff --git a/web/components/Error.vue b/web/components/Error.vue deleted file mode 100644 index c97526b9..00000000 --- a/web/components/Error.vue +++ /dev/null @@ -1,25 +0,0 @@ - - - diff --git a/web/components/EyeLink.vue b/web/components/EyeLink.vue deleted file mode 100644 index c832054f..00000000 --- a/web/components/EyeLink.vue +++ /dev/null @@ -1,19 +0,0 @@ - - - diff --git a/web/components/Footer.vue b/web/components/Footer.vue deleted file mode 100644 index 9f404d39..00000000 --- a/web/components/Footer.vue +++ /dev/null @@ -1,120 +0,0 @@ - - - diff --git a/web/components/HighlightValue.vue b/web/components/HighlightValue.vue deleted file mode 100644 index 52dd842f..00000000 --- a/web/components/HighlightValue.vue +++ /dev/null @@ -1,12 +0,0 @@ - - - diff --git a/web/components/IconStatus.vue b/web/components/IconStatus.vue deleted file mode 100644 index 91d909fa..00000000 --- a/web/components/IconStatus.vue +++ /dev/null @@ -1,20 +0,0 @@ - - - diff --git a/web/components/LabelValue.vue b/web/components/LabelValue.vue deleted file mode 100644 index c646d668..00000000 --- a/web/components/LabelValue.vue +++ /dev/null @@ -1,60 +0,0 @@ - - - - - diff --git a/web/components/Network.vue b/web/components/Network.vue deleted file mode 100644 index d5ab91d5..00000000 --- a/web/components/Network.vue +++ /dev/null @@ -1,33 +0,0 @@ - - diff --git a/web/components/Select.vue b/web/components/Select.vue deleted file mode 100644 index ef533b2c..00000000 --- a/web/components/Select.vue +++ /dev/null @@ -1,88 +0,0 @@ - - - diff --git a/web/components/Table.vue b/web/components/Table.vue deleted file mode 100644 index 27266522..00000000 --- a/web/components/Table.vue +++ /dev/null @@ -1,92 +0,0 @@ - - - diff --git a/web/components/Tabs.vue b/web/components/Tabs.vue deleted file mode 100644 index 184f1d11..00000000 --- a/web/components/Tabs.vue +++ /dev/null @@ -1,87 +0,0 @@ - - - diff --git a/web/components/Tag.vue b/web/components/Tag.vue deleted file mode 100644 index a75fa37f..00000000 --- a/web/components/Tag.vue +++ /dev/null @@ -1,34 +0,0 @@ - - - diff --git a/web/components/Tooltip.vue b/web/components/Tooltip.vue deleted file mode 100644 index 73f035c7..00000000 --- a/web/components/Tooltip.vue +++ /dev/null @@ -1,91 +0,0 @@ - - - diff --git a/web/components/Value.vue b/web/components/Value.vue deleted file mode 100644 index a98f1112..00000000 --- a/web/components/Value.vue +++ /dev/null @@ -1,45 +0,0 @@ - - - diff --git a/web/components/ValueLink.vue b/web/components/ValueLink.vue deleted file mode 100644 index f68a69cc..00000000 --- a/web/components/ValueLink.vue +++ /dev/null @@ -1,45 +0,0 @@ - - - diff --git a/web/components/account/Assets.vue b/web/components/account/Assets.vue deleted file mode 100644 index 10a152cb..00000000 --- a/web/components/account/Assets.vue +++ /dev/null @@ -1,99 +0,0 @@ - - - diff --git a/web/components/account/Details.vue b/web/components/account/Details.vue deleted file mode 100644 index 011835b2..00000000 --- a/web/components/account/Details.vue +++ /dev/null @@ -1,57 +0,0 @@ - - - diff --git a/web/components/account/NFT.vue b/web/components/account/NFT.vue deleted file mode 100644 index 65a4d06a..00000000 --- a/web/components/account/NFT.vue +++ /dev/null @@ -1,109 +0,0 @@ - - - diff --git a/web/components/account/Statement.vue b/web/components/account/Statement.vue deleted file mode 100644 index bd6d2914..00000000 --- a/web/components/account/Statement.vue +++ /dev/null @@ -1,125 +0,0 @@ - - - diff --git a/web/components/account/Transactions.vue b/web/components/account/Transactions.vue deleted file mode 100644 index 7a5099d8..00000000 --- a/web/components/account/Transactions.vue +++ /dev/null @@ -1,162 +0,0 @@ - - - diff --git a/web/components/block/Details.vue b/web/components/block/Details.vue deleted file mode 100644 index 6a957af1..00000000 --- a/web/components/block/Details.vue +++ /dev/null @@ -1,49 +0,0 @@ - - - diff --git a/web/components/block/Output.vue b/web/components/block/Output.vue deleted file mode 100644 index 6bcf717e..00000000 --- a/web/components/block/Output.vue +++ /dev/null @@ -1,65 +0,0 @@ - - - diff --git a/web/components/block/Overview.vue b/web/components/block/Overview.vue deleted file mode 100644 index c5c0a33d..00000000 --- a/web/components/block/Overview.vue +++ /dev/null @@ -1,88 +0,0 @@ - - - diff --git a/web/components/block/Payload.vue b/web/components/block/Payload.vue deleted file mode 100644 index 36f48a05..00000000 --- a/web/components/block/Payload.vue +++ /dev/null @@ -1,76 +0,0 @@ - - - diff --git a/web/components/block/Transactions.vue b/web/components/block/Transactions.vue deleted file mode 100644 index 814f1ad3..00000000 --- a/web/components/block/Transactions.vue +++ /dev/null @@ -1,163 +0,0 @@ - - - diff --git a/web/components/collection/Activity.vue b/web/components/collection/Activity.vue deleted file mode 100644 index b585dc96..00000000 --- a/web/components/collection/Activity.vue +++ /dev/null @@ -1,76 +0,0 @@ - - - diff --git a/web/components/collection/Header.vue b/web/components/collection/Header.vue deleted file mode 100644 index 8e04d78a..00000000 --- a/web/components/collection/Header.vue +++ /dev/null @@ -1,146 +0,0 @@ - - - diff --git a/web/components/collection/NFT.vue b/web/components/collection/NFT.vue deleted file mode 100644 index 1b45d135..00000000 --- a/web/components/collection/NFT.vue +++ /dev/null @@ -1,31 +0,0 @@ - - - diff --git a/web/components/column/Activity.vue b/web/components/column/Activity.vue deleted file mode 100644 index 8cee513c..00000000 --- a/web/components/column/Activity.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - diff --git a/web/components/column/Address.vue b/web/components/column/Address.vue deleted file mode 100644 index 4d0f83a7..00000000 --- a/web/components/column/Address.vue +++ /dev/null @@ -1,24 +0,0 @@ - - - diff --git a/web/components/column/BlockFees.vue b/web/components/column/BlockFees.vue deleted file mode 100644 index 4889b1b9..00000000 --- a/web/components/column/BlockFees.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - diff --git a/web/components/column/Collection.vue b/web/components/column/Collection.vue deleted file mode 100644 index 6db36c7d..00000000 --- a/web/components/column/Collection.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/web/components/column/Date.vue b/web/components/column/Date.vue deleted file mode 100644 index 8e4da193..00000000 --- a/web/components/column/Date.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - diff --git a/web/components/column/Delta.vue b/web/components/column/Delta.vue deleted file mode 100644 index 3fe84a74..00000000 --- a/web/components/column/Delta.vue +++ /dev/null @@ -1,14 +0,0 @@ - - - diff --git a/web/components/column/Link.vue b/web/components/column/Link.vue deleted file mode 100644 index a64564d6..00000000 --- a/web/components/column/Link.vue +++ /dev/null @@ -1,19 +0,0 @@ - - - diff --git a/web/components/column/Miner.vue b/web/components/column/Miner.vue deleted file mode 100644 index 807499dc..00000000 --- a/web/components/column/Miner.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - diff --git a/web/components/column/Nft.vue b/web/components/column/Nft.vue deleted file mode 100644 index 701991e3..00000000 --- a/web/components/column/Nft.vue +++ /dev/null @@ -1,37 +0,0 @@ - - - diff --git a/web/components/column/Percentage.vue b/web/components/column/Percentage.vue deleted file mode 100644 index 19255292..00000000 --- a/web/components/column/Percentage.vue +++ /dev/null @@ -1,28 +0,0 @@ - - - diff --git a/web/components/column/Price.vue b/web/components/column/Price.vue deleted file mode 100644 index afa55c33..00000000 --- a/web/components/column/Price.vue +++ /dev/null @@ -1,29 +0,0 @@ - - - diff --git a/web/components/column/Status.vue b/web/components/column/Status.vue deleted file mode 100644 index 69314e39..00000000 --- a/web/components/column/Status.vue +++ /dev/null @@ -1,20 +0,0 @@ - - - diff --git a/web/components/column/Token.vue b/web/components/column/Token.vue deleted file mode 100644 index 2357c922..00000000 --- a/web/components/column/Token.vue +++ /dev/null @@ -1,57 +0,0 @@ - - - diff --git a/web/components/column/TxReceiver.vue b/web/components/column/TxReceiver.vue deleted file mode 100644 index 55c6e394..00000000 --- a/web/components/column/TxReceiver.vue +++ /dev/null @@ -1,14 +0,0 @@ - - - diff --git a/web/components/column/Volume.vue b/web/components/column/Volume.vue deleted file mode 100644 index 6af69ae0..00000000 --- a/web/components/column/Volume.vue +++ /dev/null @@ -1,24 +0,0 @@ - - - diff --git a/web/components/divide/Item.vue b/web/components/divide/Item.vue deleted file mode 100644 index c8426c73..00000000 --- a/web/components/divide/Item.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/web/components/divide/Scroll.vue b/web/components/divide/Scroll.vue deleted file mode 100644 index 44ddd71c..00000000 --- a/web/components/divide/Scroll.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/web/components/divide/index.vue b/web/components/divide/index.vue deleted file mode 100644 index 66a6d609..00000000 --- a/web/components/divide/index.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/web/components/empty/Table.vue b/web/components/empty/Table.vue deleted file mode 100644 index b94a1499..00000000 --- a/web/components/empty/Table.vue +++ /dev/null @@ -1,39 +0,0 @@ - - - diff --git a/web/components/header/Route.vue b/web/components/header/Route.vue deleted file mode 100644 index 71f0c338..00000000 --- a/web/components/header/Route.vue +++ /dev/null @@ -1,105 +0,0 @@ - - - diff --git a/web/components/header/RouteMobile.vue b/web/components/header/RouteMobile.vue deleted file mode 100644 index 4e4ffef9..00000000 --- a/web/components/header/RouteMobile.vue +++ /dev/null @@ -1,84 +0,0 @@ - - - diff --git a/web/components/header/Search.vue b/web/components/header/Search.vue deleted file mode 100644 index f05616c1..00000000 --- a/web/components/header/Search.vue +++ /dev/null @@ -1,79 +0,0 @@ - - - diff --git a/web/components/header/Topbar.vue b/web/components/header/Topbar.vue deleted file mode 100644 index 2dbe9a74..00000000 --- a/web/components/header/Topbar.vue +++ /dev/null @@ -1,84 +0,0 @@ - - - diff --git a/web/components/home/Block.vue b/web/components/home/Block.vue deleted file mode 100644 index 48fdd5ee..00000000 --- a/web/components/home/Block.vue +++ /dev/null @@ -1,88 +0,0 @@ - - - diff --git a/web/components/home/Card.vue b/web/components/home/Card.vue deleted file mode 100644 index a367013c..00000000 --- a/web/components/home/Card.vue +++ /dev/null @@ -1,75 +0,0 @@ - - - diff --git a/web/components/home/Hero.vue b/web/components/home/Hero.vue deleted file mode 100644 index 3ff48ca4..00000000 --- a/web/components/home/Hero.vue +++ /dev/null @@ -1,33 +0,0 @@ - - - diff --git a/web/components/home/Transaction.vue b/web/components/home/Transaction.vue deleted file mode 100644 index 5118861a..00000000 --- a/web/components/home/Transaction.vue +++ /dev/null @@ -1,96 +0,0 @@ - - - diff --git a/web/components/icon/404.vue b/web/components/icon/404.vue deleted file mode 100644 index f93d66da..00000000 --- a/web/components/icon/404.vue +++ /dev/null @@ -1,12 +0,0 @@ - diff --git a/web/components/icon/Arrow.vue b/web/components/icon/Arrow.vue deleted file mode 100644 index 6a86cac0..00000000 --- a/web/components/icon/Arrow.vue +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/web/components/icon/ArrowRight.vue b/web/components/icon/ArrowRight.vue deleted file mode 100644 index 55584c11..00000000 --- a/web/components/icon/ArrowRight.vue +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/web/components/icon/Calendar.vue b/web/components/icon/Calendar.vue deleted file mode 100644 index ed5ac07f..00000000 --- a/web/components/icon/Calendar.vue +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/web/components/icon/Chevron.vue b/web/components/icon/Chevron.vue deleted file mode 100644 index 55584c11..00000000 --- a/web/components/icon/Chevron.vue +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/web/components/icon/Close.vue b/web/components/icon/Close.vue deleted file mode 100644 index 744bd162..00000000 --- a/web/components/icon/Close.vue +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/web/components/icon/CoinGecko.vue b/web/components/icon/CoinGecko.vue deleted file mode 100644 index fb57a578..00000000 --- a/web/components/icon/CoinGecko.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/web/components/icon/Copy.vue b/web/components/icon/Copy.vue deleted file mode 100644 index 38e592e4..00000000 --- a/web/components/icon/Copy.vue +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/web/components/icon/Discord.vue b/web/components/icon/Discord.vue deleted file mode 100644 index 18cf93a0..00000000 --- a/web/components/icon/Discord.vue +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/web/components/icon/EmptyTxs.vue b/web/components/icon/EmptyTxs.vue deleted file mode 100644 index 6beff519..00000000 --- a/web/components/icon/EmptyTxs.vue +++ /dev/null @@ -1,2 +0,0 @@ - diff --git a/web/components/icon/Eye.vue b/web/components/icon/Eye.vue deleted file mode 100644 index 0cfd6460..00000000 --- a/web/components/icon/Eye.vue +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/web/components/icon/Filter.vue b/web/components/icon/Filter.vue deleted file mode 100644 index 07573c32..00000000 --- a/web/components/icon/Filter.vue +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/web/components/icon/Github.vue b/web/components/icon/Github.vue deleted file mode 100644 index 33a33e03..00000000 --- a/web/components/icon/Github.vue +++ /dev/null @@ -1,12 +0,0 @@ - diff --git a/web/components/icon/Information.vue b/web/components/icon/Information.vue deleted file mode 100644 index 43cb06b9..00000000 --- a/web/components/icon/Information.vue +++ /dev/null @@ -1,11 +0,0 @@ - diff --git a/web/components/icon/LogoColor.vue b/web/components/icon/LogoColor.vue deleted file mode 100644 index 67d04e89..00000000 --- a/web/components/icon/LogoColor.vue +++ /dev/null @@ -1,15 +0,0 @@ - diff --git a/web/components/icon/LogoWhite.vue b/web/components/icon/LogoWhite.vue deleted file mode 100644 index 02215f98..00000000 --- a/web/components/icon/LogoWhite.vue +++ /dev/null @@ -1,13 +0,0 @@ - diff --git a/web/components/icon/Menu.vue b/web/components/icon/Menu.vue deleted file mode 100644 index 6caaa455..00000000 --- a/web/components/icon/Menu.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/web/components/icon/Receive.vue b/web/components/icon/Receive.vue deleted file mode 100644 index 2184a3fc..00000000 --- a/web/components/icon/Receive.vue +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/web/components/icon/Search.vue b/web/components/icon/Search.vue deleted file mode 100644 index aa2313b8..00000000 --- a/web/components/icon/Search.vue +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/web/components/icon/SearchClose.vue b/web/components/icon/SearchClose.vue deleted file mode 100644 index 694e317d..00000000 --- a/web/components/icon/SearchClose.vue +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/web/components/icon/Success.vue b/web/components/icon/Success.vue deleted file mode 100644 index 7cdb8d2c..00000000 --- a/web/components/icon/Success.vue +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/web/components/icon/Telegram.vue b/web/components/icon/Telegram.vue deleted file mode 100644 index a38c3661..00000000 --- a/web/components/icon/Telegram.vue +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/web/components/icon/Twitter.vue b/web/components/icon/Twitter.vue deleted file mode 100644 index 7c8ec9df..00000000 --- a/web/components/icon/Twitter.vue +++ /dev/null @@ -1,12 +0,0 @@ - diff --git a/web/components/icon/Verified.vue b/web/components/icon/Verified.vue deleted file mode 100644 index 5dbbc41c..00000000 --- a/web/components/icon/Verified.vue +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/web/components/icon/X.vue b/web/components/icon/X.vue deleted file mode 100644 index 83ec88e8..00000000 --- a/web/components/icon/X.vue +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/web/components/nft/Activity.vue b/web/components/nft/Activity.vue deleted file mode 100644 index 73df9ba0..00000000 --- a/web/components/nft/Activity.vue +++ /dev/null @@ -1,164 +0,0 @@ - - - diff --git a/web/components/nft/Card.vue b/web/components/nft/Card.vue deleted file mode 100644 index 5646ccf3..00000000 --- a/web/components/nft/Card.vue +++ /dev/null @@ -1,45 +0,0 @@ - - - - - diff --git a/web/components/nft/Details.vue b/web/components/nft/Details.vue deleted file mode 100644 index 550da115..00000000 --- a/web/components/nft/Details.vue +++ /dev/null @@ -1,129 +0,0 @@ - - - diff --git a/web/components/nft/Image.vue b/web/components/nft/Image.vue deleted file mode 100644 index 48a41737..00000000 --- a/web/components/nft/Image.vue +++ /dev/null @@ -1,32 +0,0 @@ - - - diff --git a/web/components/nft/More.vue b/web/components/nft/More.vue deleted file mode 100644 index cfd870e8..00000000 --- a/web/components/nft/More.vue +++ /dev/null @@ -1,34 +0,0 @@ - - - diff --git a/web/components/nft/Properties.vue b/web/components/nft/Properties.vue deleted file mode 100644 index 563f2455..00000000 --- a/web/components/nft/Properties.vue +++ /dev/null @@ -1,30 +0,0 @@ - - - diff --git a/web/components/nft/Volume.vue b/web/components/nft/Volume.vue deleted file mode 100644 index a647c286..00000000 --- a/web/components/nft/Volume.vue +++ /dev/null @@ -1,38 +0,0 @@ - - - diff --git a/web/components/page/Container.vue b/web/components/page/Container.vue deleted file mode 100644 index daac3e4b..00000000 --- a/web/components/page/Container.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/web/components/page/Root.vue b/web/components/page/Root.vue deleted file mode 100644 index 1d4ab5bb..00000000 --- a/web/components/page/Root.vue +++ /dev/null @@ -1,27 +0,0 @@ - - - diff --git a/web/components/page/Title.vue b/web/components/page/Title.vue deleted file mode 100644 index 4fa3078e..00000000 --- a/web/components/page/Title.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git a/web/components/paginate/Table.vue b/web/components/paginate/Table.vue deleted file mode 100644 index 4c6aad4f..00000000 --- a/web/components/paginate/Table.vue +++ /dev/null @@ -1,54 +0,0 @@ - - - diff --git a/web/components/search/Input.vue b/web/components/search/Input.vue deleted file mode 100644 index e256ceba..00000000 --- a/web/components/search/Input.vue +++ /dev/null @@ -1,78 +0,0 @@ - - - diff --git a/web/components/search/Modal.vue b/web/components/search/Modal.vue deleted file mode 100644 index 943ee922..00000000 --- a/web/components/search/Modal.vue +++ /dev/null @@ -1,158 +0,0 @@ - - - diff --git a/web/components/search/view/Address.vue b/web/components/search/view/Address.vue deleted file mode 100644 index 76e90fee..00000000 --- a/web/components/search/view/Address.vue +++ /dev/null @@ -1,29 +0,0 @@ - - - diff --git a/web/components/search/view/AddressItem.vue b/web/components/search/view/AddressItem.vue deleted file mode 100644 index f2b0af5c..00000000 --- a/web/components/search/view/AddressItem.vue +++ /dev/null @@ -1,27 +0,0 @@ - - - diff --git a/web/components/search/view/Block.vue b/web/components/search/view/Block.vue deleted file mode 100644 index 0760e88f..00000000 --- a/web/components/search/view/Block.vue +++ /dev/null @@ -1,29 +0,0 @@ - - - diff --git a/web/components/search/view/BlockItem.vue b/web/components/search/view/BlockItem.vue deleted file mode 100644 index 12921cd5..00000000 --- a/web/components/search/view/BlockItem.vue +++ /dev/null @@ -1,57 +0,0 @@ - - - diff --git a/web/components/search/view/Filter.vue b/web/components/search/view/Filter.vue deleted file mode 100644 index 5b73265b..00000000 --- a/web/components/search/view/Filter.vue +++ /dev/null @@ -1,20 +0,0 @@ - - - diff --git a/web/components/search/view/Tokens.vue b/web/components/search/view/Tokens.vue deleted file mode 100644 index aa0ce8fa..00000000 --- a/web/components/search/view/Tokens.vue +++ /dev/null @@ -1,29 +0,0 @@ - - - diff --git a/web/components/search/view/TokensItem.vue b/web/components/search/view/TokensItem.vue deleted file mode 100644 index a4644d41..00000000 --- a/web/components/search/view/TokensItem.vue +++ /dev/null @@ -1,60 +0,0 @@ - - - diff --git a/web/components/search/view/Transaction.vue b/web/components/search/view/Transaction.vue deleted file mode 100644 index 39ca27ce..00000000 --- a/web/components/search/view/Transaction.vue +++ /dev/null @@ -1,29 +0,0 @@ - - - diff --git a/web/components/search/view/TransactionItem.vue b/web/components/search/view/TransactionItem.vue deleted file mode 100644 index a6617620..00000000 --- a/web/components/search/view/TransactionItem.vue +++ /dev/null @@ -1,39 +0,0 @@ - - - diff --git a/web/components/search/view/Visible.vue b/web/components/search/view/Visible.vue deleted file mode 100644 index 551d857a..00000000 --- a/web/components/search/view/Visible.vue +++ /dev/null @@ -1,45 +0,0 @@ - - - diff --git a/web/components/skeleton/HomeBlockList.vue b/web/components/skeleton/HomeBlockList.vue deleted file mode 100644 index 0470318a..00000000 --- a/web/components/skeleton/HomeBlockList.vue +++ /dev/null @@ -1,63 +0,0 @@ - - - diff --git a/web/components/skeleton/HomeTransactionList.vue b/web/components/skeleton/HomeTransactionList.vue deleted file mode 100644 index 1017bde0..00000000 --- a/web/components/skeleton/HomeTransactionList.vue +++ /dev/null @@ -1,54 +0,0 @@ - - - diff --git a/web/components/table/Container.vue b/web/components/table/Container.vue deleted file mode 100644 index 6e9c5339..00000000 --- a/web/components/table/Container.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/web/components/table/Footer.vue b/web/components/table/Footer.vue deleted file mode 100644 index 32ba2464..00000000 --- a/web/components/table/Footer.vue +++ /dev/null @@ -1,54 +0,0 @@ - - - diff --git a/web/components/table/Nft.vue b/web/components/table/Nft.vue deleted file mode 100644 index 39f76616..00000000 --- a/web/components/table/Nft.vue +++ /dev/null @@ -1,100 +0,0 @@ - - - - - diff --git a/web/components/table/Pending.vue b/web/components/table/Pending.vue deleted file mode 100644 index df6b7bbb..00000000 --- a/web/components/table/Pending.vue +++ /dev/null @@ -1,24 +0,0 @@ - - - diff --git a/web/components/table/Root.vue b/web/components/table/Root.vue deleted file mode 100644 index e3c6726c..00000000 --- a/web/components/table/Root.vue +++ /dev/null @@ -1,179 +0,0 @@ - - - diff --git a/web/components/table/row/Default.vue b/web/components/table/row/Default.vue deleted file mode 100644 index 6a6fbf97..00000000 --- a/web/components/table/row/Default.vue +++ /dev/null @@ -1,38 +0,0 @@ - - - diff --git a/web/components/table/row/Expansible.vue b/web/components/table/row/Expansible.vue deleted file mode 100644 index d67c742d..00000000 --- a/web/components/table/row/Expansible.vue +++ /dev/null @@ -1,139 +0,0 @@ - - - - - diff --git a/web/components/token/Details.vue b/web/components/token/Details.vue deleted file mode 100644 index d9700856..00000000 --- a/web/components/token/Details.vue +++ /dev/null @@ -1,193 +0,0 @@ - - - diff --git a/web/components/token/Holders.vue b/web/components/token/Holders.vue deleted file mode 100644 index b51be0d4..00000000 --- a/web/components/token/Holders.vue +++ /dev/null @@ -1,142 +0,0 @@ - - - diff --git a/web/components/token/Info.vue b/web/components/token/Info.vue deleted file mode 100644 index 02303e25..00000000 --- a/web/components/token/Info.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - diff --git a/web/components/token/Transfers.vue b/web/components/token/Transfers.vue deleted file mode 100644 index 15ee0df8..00000000 --- a/web/components/token/Transfers.vue +++ /dev/null @@ -1,153 +0,0 @@ - - - diff --git a/web/components/transaction/Details.vue b/web/components/transaction/Details.vue deleted file mode 100644 index 43ef4717..00000000 --- a/web/components/transaction/Details.vue +++ /dev/null @@ -1,67 +0,0 @@ - - - diff --git a/web/components/transaction/Events.vue b/web/components/transaction/Events.vue deleted file mode 100644 index 0c91feaa..00000000 --- a/web/components/transaction/Events.vue +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/web/components/transaction/Meta.vue b/web/components/transaction/Meta.vue deleted file mode 100644 index 69660295..00000000 --- a/web/components/transaction/Meta.vue +++ /dev/null @@ -1,101 +0,0 @@ - - - diff --git a/web/components/transaction/NFT.vue b/web/components/transaction/NFT.vue deleted file mode 100644 index 00741078..00000000 --- a/web/components/transaction/NFT.vue +++ /dev/null @@ -1,50 +0,0 @@ - - - diff --git a/web/components/transaction/Output.vue b/web/components/transaction/Output.vue deleted file mode 100644 index 9aaecf73..00000000 --- a/web/components/transaction/Output.vue +++ /dev/null @@ -1,97 +0,0 @@ - - - diff --git a/web/components/transaction/Overview.vue b/web/components/transaction/Overview.vue deleted file mode 100644 index 4c472ab8..00000000 --- a/web/components/transaction/Overview.vue +++ /dev/null @@ -1,157 +0,0 @@ - - - diff --git a/web/components/transaction/Token.vue b/web/components/transaction/Token.vue deleted file mode 100644 index af2d3246..00000000 --- a/web/components/transaction/Token.vue +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/web/composables/balances.ts b/web/composables/balances.ts deleted file mode 100644 index f676d8e7..00000000 --- a/web/composables/balances.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { unknownToken, staticTokens } from '../constants/tokens'; - -export const transformRawBalances = ({ prices, allBalances }: any) => { - if (!allBalances) { - return []; - } - - const balancesObj = allBalances.nodes - .sort((a: any, b: any) => a.chainId - b.chainId) - .reduce((prev: any, current: any) => { - const { balance, module = '' } = current || {}; - - const formatedModule = current.module === 'coin' ? 'kadena' : current.module; - - const metadata = staticTokens.find(({ module }) => current.module === module) || unknownToken; - - const etl = prices?.find(({ id }: any) => formatedModule.includes(id)); - - if (!prev[module]) { - prev[module] = { - module, - metadata, - balance: 0, - balances: [], - - ...etl, - }; - } - - prev[module].balance = prev[module].balance + Number(balance); - - prev[module].balances.push({ - ...etl, - ...current, - }); - - return prev; - }, {}); - - return Object.values(balancesObj).sort((a: any, b: any) => { - return (b.current_price || 0) - (a.current_price || 0); - }); -}; diff --git a/web/composables/blocks.ts b/web/composables/blocks.ts deleted file mode 100644 index ed8c3486..00000000 --- a/web/composables/blocks.ts +++ /dev/null @@ -1,3 +0,0 @@ -export const useBlockMiner = (minerData: string) => JSON.parse(minerData); - -export const useBlockCoinbase = (coinbase: string) => JSON.parse(coinbase); diff --git a/web/composables/csv.ts b/web/composables/csv.ts deleted file mode 100644 index 5ca15990..00000000 --- a/web/composables/csv.ts +++ /dev/null @@ -1,113 +0,0 @@ -import { convertArrayToCSV } from 'convert-array-to-csv'; - -function flatObjectToString(obj) { - var s = ''; - Object.keys(obj).map(key => { - if (obj[key] === null) { - s += key + ':'; - } else if (obj[key].toLocaleDateString) { - s += key + ': ' + obj[key].toLocaleDateString() + '\n'; - } else if (obj[key] instanceof Array) { - s += key + ':\n' + listToFlatString(obj[key]); - } else if (typeof obj[key] == 'object') { - s += key + ':\n' + flatObjectToString(obj[key]); - } else { - s += key + ':' + obj[key]; - } - s += '\n'; - }); - return s; -} - -function listToFlatString(list) { - var s = ''; - list.map(item => { - Object.keys(item).map(key => { - s += ''; - if (item[key] instanceof Array) { - s += key + '\n' + listToFlatString(item[key]); - } else if (typeof item[key] == 'object' && item[key] !== null) { - s += key + ': ' + flatObjectToString(item[key]); - } else { - s += - key + - ': ' + - (item[key] === null - ? '' - : item[key].toLocaleDateString - ? item[key].toLocaleDateString - : item[key].toString()); - } - s += '\n'; - }); - }); - return s; -} - -function flatten(object, addToList, prefix) { - Object.keys(object).map(key => { - if (object[key] === null) { - addToList[prefix + key] = ''; - } else if (object[key] instanceof Array) { - // addToList[prefix + key] = listToFlatString(object[key]); - for (const i in object[key]) { - flatten(object[key][i], addToList, prefix + key + '.' + i + '.'); - } - } else if (typeof object[key] == 'object' && !object[key].toLocaleDateString) { - flatten(object[key], addToList, prefix + key + '.'); - } else { - addToList[prefix + key] = object[key]; - } - }); - return addToList; -} - -export function transactionToCsv({ transaction, transfers, events }: any) { - const flattenedData = flatten( - { - ...transaction, - events, - transfers: transfers.map(({ transfer }: any) => transfer), - }, - {}, - '', - ); - - // transfers.forEach(({ transfer }: any, index: number) => { - // const flatTransfer = flatten(transfer, flattenedData, `transfer_${index}_`); - // Object.assign(flattenedData, flatTransfer); - // }); - - // events.forEach((event: any, index: number) => { - // const flatEvent = flatten(event, flattenedData, `event_${index}_`); - // Object.assign(flattenedData, flatEvent); - // }); - - const csv = convertArrayToCSV([flattenedData]); - - return csv; -} - -export function blockToCsv(block: any) { - const flattenedData = flatten(block, {}, ''); - - const csv = convertArrayToCSV([flattenedData]); - - return csv; -} - -export function downloadCSV(csv: string, filename: string) { - const blob = new Blob([csv], { type: 'text/csv;charset=utf-8;' }); - const link = document.createElement('a'); - if ((navigator as any).msSaveBlob) { - // IE 10+ - (navigator as any).msSaveBlob(blob, filename); - } else { - link.href = URL.createObjectURL(blob); - link.download = filename; - link.style.display = 'none'; - document.body.appendChild(link); - link.click(); - document.body.removeChild(link); - } -} diff --git a/web/composables/nfts.ts b/web/composables/nfts.ts deleted file mode 100644 index 8f46a1f9..00000000 --- a/web/composables/nfts.ts +++ /dev/null @@ -1,27 +0,0 @@ -const formatNftDatum = (datum: any) => { - return { - attributes: datum.attributes && typeof datum.attributes !== 'string' ? datum.attributes : [], - collection: datum.artistName || 'Unknown collection', - name: datum.title || datum.name || 'Unknown name', - description: datum.description || 'No description available.', - createdAt: datum.creationDate || datum['create-date'] || null, - image: datum.assetUrl || datum.thumbnailUrl || null, - }; -}; - -export const useNft = (contract?: any) => { - if (!contract) { - return { - image: null, - attributes: [], - createdAt: null, - name: 'Unknown name', - collection: 'Unknown collection', - description: 'No description available.', - }; - } - - const { data } = JSON.parse(contract?.metadata); - - return formatNftDatum(data[0].datum); -}; diff --git a/web/composables/number.ts b/web/composables/number.ts deleted file mode 100644 index 57023106..00000000 --- a/web/composables/number.ts +++ /dev/null @@ -1,46 +0,0 @@ -export const money = new Intl.NumberFormat('en-US', { - style: 'currency', - currency: 'USD', - minimumFractionDigits: 2, - maximumFractionDigits: 2, -}); - -export const moneyCompact = new Intl.NumberFormat('en-US', { - style: 'currency', - currency: 'USD', - notation: 'compact', - minimumFractionDigits: 2, - maximumFractionDigits: 2, -}); - -export const integer = new Intl.NumberFormat('en-US', { - minimumFractionDigits: 0, -}); - -export const customInteger = (value: any) => { - const integerDigits = value === 0 ? 1 : Math.floor(Math.log10(Math.abs(value))) + 1; - - const fractionDigits = integerDigits < 1 ? 2 - integerDigits : 2; - - const formatter = new Intl.NumberFormat('en-US', { - minimumFractionDigits: fractionDigits, - maximumFractionDigits: fractionDigits, - }); - - return formatter.format(value); -}; - -export const customMoney = (value: any) => { - const integerDigits = value === 0 ? 1 : Math.floor(Math.log10(Math.abs(value))) + 1; - - const fractionDigits = integerDigits < 1 ? 2 - integerDigits : 2; - - const formatter = new Intl.NumberFormat('en-US', { - style: 'currency', - currency: 'USD', - minimumFractionDigits: fractionDigits, - maximumFractionDigits: fractionDigits, - }); - - return formatter.format(value); -}; diff --git a/web/composables/paginate.ts b/web/composables/paginate.ts deleted file mode 100644 index 340ea534..00000000 --- a/web/composables/paginate.ts +++ /dev/null @@ -1,128 +0,0 @@ -import { ref, watch, onMounted } from 'vue'; -import { useRoute, useRouter } from 'vue-router'; - -export interface PaginateInterface { - key: string; - query: string; -} - -export function usePagination(defaultLimit = 20) { - const route = useRoute(); - const router = useRouter(); - - const page = ref(isNaN(Number(route.query.page)) ? 1 : Number(route.query.page)); - - const limit = ref(defaultLimit); - const cursor = ref(undefined); - - const params = ref({ - first: defaultLimit, - after: route.query.cursor ?? undefined, - }); - - function updateCursor(newCursor: string) { - cursor.value = newCursor; - } - - function getLastPageParams() { - return { - last: limit.value, - }; - } - - function getFirstPageParams() { - return { - first: limit.value, - }; - } - - function getNextPageParams(pageInfo: any) { - return { - after: pageInfo.endCursor, - first: limit.value, - }; - } - - function getPrevPageParams(pageInfo: any) { - return { - before: pageInfo.startCursor, - last: limit.value, - }; - } - - function updateURL(newPage: number, newCursor: string | null) { - if (!newPage || !newCursor) { - const { page, cursor, ...rest } = route.query; - - router.replace({ query: rest }); - - return; - } - - const query = { - ...route.query, - page: newPage.toString(), - } as any; - - if (newCursor) { - query.cursor = newCursor; - } - - router.replace({ query }); - } - - function updatePage(newPage: number, pageInfo: any, totalCount: any, totalPages: any) { - if (newPage === page.value) { - return; - } - - if (newPage === totalPages) { - const newParams = getLastPageParams(); - - page.value = newPage; - params.value = newParams; - - return; - } - - if (newPage === 1) { - const newParams = getFirstPageParams(); - - page.value = newPage; - params.value = newParams; - - return; - } - - if (newPage > page.value) { - const newParams = getNextPageParams(pageInfo); - - page.value = newPage; - params.value = newParams; - - return; - } - - if (newPage < page.value) { - const newParams = getPrevPageParams(pageInfo); - - page.value = newPage; - params.value = newParams; - - return; - } - } - - watch([page, cursor], ([newPage, newCursor]) => { - updateURL(newPage, newCursor); - }); - - return { - page, - cursor, - limit, - params, - updatePage, - updateCursor, - }; -} diff --git a/web/composables/search.ts b/web/composables/search.ts deleted file mode 100644 index a00369be..00000000 --- a/web/composables/search.ts +++ /dev/null @@ -1,261 +0,0 @@ -import debounce from 'lodash/debounce'; -import { gql } from 'nuxt-graphql-request/utils'; - -const allQuery = gql` - query SearchAll($searchTerm: String!, $limit: Int!, $heightFilter: Int) { - searchAll(searchTerm: $searchTerm, limit: $limit, heightFilter: $heightFilter) { - blocks { - chainId - hash - height - parent - transactionsCount - } - tokens { - type - module - chainId - } - transactions { - sender - requestkey - result - metadata - chainId - } - addresses { - account - } - } - } -`; - -const searchBlocksQuery = gql` - query SearchBlocks($searchTerm: String!, $limit: Int!, $heightFilter: Int) { - searchAll(searchTerm: $searchTerm, limit: $limit, heightFilter: $heightFilter) { - blocks { - chainId - hash - height - parent - transactionsCount - } - } - } -`; - -const searchTransactionsQuery = gql` - query SearchTransactions($searchTerm: String!, $limit: Int!) { - searchAll(searchTerm: $searchTerm, limit: $limit) { - transactions { - sender - requestkey - result - metadata - chainId - } - } - } -`; - -const searchAddressQuery = gql` - query SearchUniqueAddresses($searchTerm: String!, $limit: Int!) { - searchAll(searchTerm: $searchTerm, limit: $limit) { - addresses { - account - } - } - } -`; - -const searchFungibleTokensQuery = gql` - query SearchFungibleTokens($searchTerm: String!, $limit: Int!) { - searchAll(searchTerm: $searchTerm, limit: $limit) { - tokens { - type - module - chainId - } - } - } -`; - -const filters = [ - { - value: 'all', - label: 'All filters', - query: allQuery, - }, - { - value: 'blocks', - label: 'Blocks', - query: searchBlocksQuery, - }, - { - value: 'transactions', - label: 'Transactions', - query: searchTransactionsQuery, - }, - { - value: 'address', - label: 'Addresses', - query: searchAddressQuery, - }, - { - value: 'tokens', - label: 'Tokens', - query: searchFungibleTokensQuery, - }, -]; - -export function useSearch() { - const data = reactive({ - query: '', - open: false, - error: null, - loading: false, - searched: null, - filters, - filter: filters[0], - }); - - const router = useRouter(); - - const { $graphql } = useNuxtApp(); - - const searchImpl = async (value: string) => { - if (!value) { - data.searched = null; - return; - } - - data.loading = true; - data.error = null; - - try { - const variables = { - searchTerm: value, - limit: 5, - } as any; - - const heightFilter = parseInt(value); - - if (!isNaN(heightFilter) && Number.isSafeInteger(heightFilter)) { - variables.heightFilter = heightFilter; - } - - const { searchAll } = await $graphql.default.request(data.filter.query, variables); - - if (value === data.query) { - data.searched = searchAll; - } - } catch (error) { - console.error('Search error:', error); - data.error = 'An error occurred while searching. Please try again.' as any; - } finally { - data.loading = false; - } - }; - - const search = debounce(searchImpl, 250); - - const requestKeyRegex = /^[A-Za-z0-9\-_]{43}$/; - const kadenaAddressRegex = /^k:[a-fA-F0-9]{64}$/; - - function shouldRedirectBeforeSearch(search: any) { - if (kadenaAddressRegex.test(search)) { - return 'account'; - } - - if (requestKeyRegex.test(search)) { - return 'transactions'; - } - } - - function shouldRedirect() { - if (data?.searched?.addresses && data?.searched?.addresses?.length > 0) { - const address = data?.searched?.addresses[0]; - - router.push(`/account/${address.account}`); - } - - if (data?.searched?.transactions && data?.searched?.transactions?.length > 0) { - const transaction = data?.searched?.transactions[0]; - - router.push(`/transactions/${transaction.requestkey}`); - } - - if (data?.searched?.tokens && data?.searched?.tokens?.length > 0) { - const token = data?.searched?.tokens[0]; - - const staticMetadata = staticTokens.find(({ module }) => module === token.module); - - router.push(`/tokens/${staticMetadata?.id || token.module}`); - } - - if (data?.searched?.blocks && data?.searched?.blocks?.length > 0) { - const block = data?.searched?.blocks[0]; - - router.push(`/blocks/chain/${block.chainId}/height/${block.height}`); - } - } - - const handleInput = (event: Event) => { - const value = (event.target as HTMLInputElement).value; - data.query = value; - search(value); - }; - - const handleKeyDown = async (event: KeyboardEvent) => { - if (event.key !== 'Enter') { - return; - } - - event.preventDefault(); - - search.cancel(); - - const redirectPath = shouldRedirectBeforeSearch(data.query); - - if (redirectPath) { - router.push(`/${redirectPath}/${data.query}`); - - cleanup(); - - return; - } - - if (!data.loading && data.searched) { - shouldRedirect(); - - cleanup(); - - return; - } - - await searchImpl(data.query); - - shouldRedirect(); - - cleanup(); - }; - - const close = () => { - data.open = false; - }; - - const cleanup = () => { - data.query = ''; - data.searched = null; - close(); - }; - - return { - data, - close, - search, - cleanup, - handleKeyDown, - handleInput, - }; -} diff --git a/web/composables/string.ts b/web/composables/string.ts deleted file mode 100644 index 9be05cae..00000000 --- a/web/composables/string.ts +++ /dev/null @@ -1,19 +0,0 @@ -export const shortenAddress = (address: string, chars = 4): string => { - if (!address) { - return ''; - } - - if (!address.includes('k:') && address.length <= 20) { - return address; - } - - return `${address.slice(0, chars)}...${address.slice(-chars)}`; -}; - -export const shortenString = (string: string, chars = 4): string => { - if (!string) { - return ''; - } - - return `${string.slice(0, chars)}...${string.slice(-chars)}`; -}; diff --git a/web/composables/tokens.ts b/web/composables/tokens.ts deleted file mode 100644 index 99b627a4..00000000 --- a/web/composables/tokens.ts +++ /dev/null @@ -1,175 +0,0 @@ -export const unknownNft = { - image: '', - symbol: 'ukn', - id: 'unknown', - name: 'unknown', -}; - -export const unknownToken = { - image: '', - symbol: 'ukn', - id: 'unknown', - name: 'unknown', -}; - -export const staticTokens = [ - { - name: 'ARKD', - symbol: 'ARKD', - coingeckoId: '', - module: 'arkade.token', - icon: 'https://swap.ecko.finance/images/crypto/ark.png', - }, - { - id: 'kadena', - module: 'coin', - symbol: 'KDA', - coingeckoId: '', - name: 'Kadena', - icon: 'https://swap.ecko.finance/images/crypto/kda-crypto.svg', - }, - { - name: 'KAYC', - symbol: 'KAYC', - coingeckoId: '', - module: 'free.KAYC', - icon: 'https://swap.ecko.finance/images/crypto/kayc.svg', - }, - { - symbol: 'BKA', - coingeckoId: '', - name: 'Backalley', - module: 'free.backalley', - icon: 'https://swap.ecko.finance/images/crypto/bka.svg', - }, - { - name: 'CRNA', - symbol: 'CRNA', - coingeckoId: '', - module: 'free.corona-token', - icon: 'https://swap.ecko.finance/images/crypto/corona.svg', - }, - { - name: 'Crankk', - symbol: 'CRKK', - coingeckoId: '', - module: 'free.crankk01', - icon: 'https://swap.ecko.finance/images/crypto/crankk.png', - }, - { - name: 'CFLY', - symbol: 'CFLY', - coingeckoId: '', - module: 'free.cyberfly_token', - icon: 'https://swap.ecko.finance/images/crypto/cfly.svg', - }, - { - name: 'DOC', - symbol: 'DOC', - coingeckoId: '', - module: 'free.docu', - icon: 'https://swap.ecko.finance/images/crypto/docushield.svg', - }, - { - name: 'FINUX', - symbol: 'FINUX', - coingeckoId: '', - module: 'free.finux', - icon: 'https://swap.ecko.finance/images/crypto/finux.png', - }, - { - symbol: 'JDE', - name: 'Jodie', - coingeckoId: '', - module: 'free.jodie-token', - icon: 'https://swap.ecko.finance/images/crypto/jodie.svg', - }, - { - name: 'Kapy', - symbol: 'KAPY', - coingeckoId: '', - module: 'free.kapybara-token', - icon: 'https://swap.ecko.finance/images/crypto/kapy.svg', - }, - { - id: 'kishu-ken', - symbol: 'KISHK', - coingeckoId: '', - name: 'Kishu Ken', - module: 'free.kishu-ken', - icon: 'https://swap.ecko.finance/images/crypto/kishk.svg', - }, - { - name: 'MAGA', - symbol: 'MAGA', - coingeckoId: '', - module: 'free.maga', - icon: 'https://swap.ecko.finance/images/crypto/maga.png', - }, - { - name: 'Hype', - symbol: 'HYPE', - coingeckoId: '', - module: 'hypercent.prod-hype-coin', - icon: 'https://swap.ecko.finance/images/crypto/hypercent-crypto.svg', - }, - { - id: 'kaddex', - symbol: 'KDX', - name: 'Kaddex', - coingeckoId: '', - module: 'kaddex.kdx', - icon: 'https://assets.coingecko.com/coins/images/27325/standard/kdx.png?1696526373', - }, - { - id: 'kdswap', - symbol: 'KDS', - name: 'KDSwap', - coingeckoId: '', - module: 'kdlaunch.kdswap-token', - icon: 'https://swap.ecko.finance/images/crypto/kds.svg', - }, - { - id: 'kdlaunch', - symbol: 'KDL', - name: 'KDLaunch', - coingeckoId: '', - module: 'kdlaunch.token', - icon: 'https://swap.ecko.finance/images/crypto/kdl.svg', - }, - { - name: 'Mok', - symbol: 'MOK', - coingeckoId: '', - module: 'mok.token', - icon: 'https://swap.ecko.finance/images/crypto/mok.svg', - }, - { - name: 'BRO', - symbol: 'BRO', - coingeckoId: '', - module: 'n_582fed11af00dc626812cd7890bb88e72067f28c.bro', - icon: 'https://swap.ecko.finance/images/crypto/bro.png', - }, - { - name: 'zUSD', - symbol: 'zUSD', - coingeckoId: '', - module: 'n_b742b4e9c600892af545afb408326e82a6c0c6ed.zUSD', - icon: 'https://swap.ecko.finance/images/crypto/zUSD.svg', - }, - { - name: 'HERON', - symbol: 'HERON', - coingeckoId: '', - module: 'n_e309f0fa7cf3a13f93a8da5325cdad32790d2070.heron', - icon: 'https://swap.ecko.finance/images/crypto/heron.png', - }, - { - name: 'Flux', - symbol: 'FLUX', - coingeckoId: '', - module: 'runonflux.flux', - icon: 'https://swap.ecko.finance/images/crypto/flux-crypto.svg', - }, -]; diff --git a/web/composables/transactions.ts b/web/composables/transactions.ts deleted file mode 100644 index 6526a0a5..00000000 --- a/web/composables/transactions.ts +++ /dev/null @@ -1,18 +0,0 @@ -export const useTransactionStatus = (result: string) => - result.includes('\"status\":\"success\"') ? 'success' : 'error'; - -export const useTransactionPubkey = (data: string) => { - if (!data) { - return null; - } - - const parsedData = JSON.parse(data || '{}'); - - const [first] = parsedData.keyset?.keys || parsedData.ks?.keys || []; - - return first; -}; - -export const useTransactionSigs = (sigs: string) => JSON.parse(sigs); - -export const useTransactionGas = (transfers: any[]) => transfers[0]; diff --git a/web/composables/transfer.ts b/web/composables/transfer.ts deleted file mode 100644 index 4a83aa6f..00000000 --- a/web/composables/transfer.ts +++ /dev/null @@ -1,7 +0,0 @@ -export const useLatestTransfer = (transfers: any[]) => { - const nodeLength = transfers.length || 0; - - const transferIndex = Math.max(nodeLength - 1, 0); - - return transfers[transferIndex]; -}; diff --git a/web/composables/usePopper.ts b/web/composables/usePopper.ts deleted file mode 100644 index 5a2ab042..00000000 --- a/web/composables/usePopper.ts +++ /dev/null @@ -1,122 +0,0 @@ -import { ref, onMounted, watchEffect } from 'vue'; -import type { Ref } from 'vue'; -import { popperGenerator, defaultModifiers } from '@popperjs/core/lib/popper-lite'; -import type { VirtualElement } from '@popperjs/core/lib/popper-lite'; -import type { Instance } from '@popperjs/core'; -import flip from '@popperjs/core/lib/modifiers/flip'; -import offset from '@popperjs/core/lib/modifiers/offset'; -import preventOverflow from '@popperjs/core/lib/modifiers/preventOverflow'; -import computeStyles from '@popperjs/core/lib/modifiers/computeStyles'; -import eventListeners from '@popperjs/core/lib/modifiers/eventListeners'; -import arrowModifier from '@popperjs/core/lib/modifiers/arrow'; -import { unrefElement } from '@vueuse/core'; -import type { MaybeElement } from '@vueuse/core'; - -type PopperOptions = any; - -export const createPopper = popperGenerator({ - defaultModifiers: [ - ...defaultModifiers, - offset, - flip, - preventOverflow, - computeStyles, - eventListeners, - arrowModifier, - ], -}); - -export function usePopper( - { - locked = false, - overflowPadding = 8, - offsetDistance = 8, - offsetSkid = 0, - gpuAcceleration = true, - adaptive = true, - scroll = true, - resize = true, - arrow = false, - placement, - strategy, - }: PopperOptions, - virtualReference?: Ref, -) { - const reference = ref(null); - const popper = ref(null); - const instance = ref(null); - - onMounted(() => { - watchEffect(onInvalidate => { - if (!popper.value) { - return; - } - if (!reference.value && !virtualReference?.value) { - return; - } - - const popperEl = unrefElement(popper); - const referenceEl = virtualReference?.value || unrefElement(reference); - - // if (!(referenceEl instanceof HTMLElement)) { return } - if (!(popperEl instanceof HTMLElement)) { - return; - } - if (!referenceEl) { - return; - } - - const config: Record = { - modifiers: [ - { - name: 'flip', - enabled: !locked, - }, - { - name: 'preventOverflow', - options: { - padding: overflowPadding, - }, - }, - { - name: 'offset', - options: { - offset: [offsetSkid, offsetDistance], - }, - }, - { - name: 'computeStyles', - options: { - adaptive, - gpuAcceleration, - }, - }, - { - name: 'eventListeners', - options: { - scroll, - resize, - }, - }, - { - name: 'arrow', - enabled: arrow, - }, - ], - }; - - if (placement) { - config.placement = placement; - } - if (strategy) { - config.strategy = strategy; - } - - instance.value = createPopper(referenceEl, popperEl, config); - - onInvalidate(instance.value.destroy); - }); - }); - - return [reference, popper, instance] as const; -} diff --git a/web/config/account.ts b/web/config/account.ts deleted file mode 100644 index 2d550f55..00000000 --- a/web/config/account.ts +++ /dev/null @@ -1,135 +0,0 @@ -import { blockchainTooltipData } from './tooltips'; - -export const assetsTableColumns = [ - { - cols: 5, - key: 'asset', - label: 'Asset', - description: blockchainTooltipData.account.tabAssets.asset, - }, - { - cols: 5, - key: 'module', - label: 'Module', - description: blockchainTooltipData.account.tabAssets.symbol, - }, - { - cols: 4, - key: 'balance', - label: 'Quantity', - description: blockchainTooltipData.account.tabAssets.quantity, - }, - { - cols: 4, - key: 'price', - label: 'Price', - description: blockchainTooltipData.account.tabAssets.price, - }, - { - cols: 4, - key: 'value', - label: 'Value', - description: blockchainTooltipData.account.tabAssets.value, - }, - { - cols: 2, - center: true, - key: 'distribution', - label: 'Distribution', - }, -]; - -export const assetsTableSubColumns = [ - { - key: 'chainId', - label: 'Chain', - }, - { - key: 'balance', - label: 'Quantity', - }, - { - key: 'value', - label: 'Value', - }, -]; - -export const statementTableColumns = [ - { - cols: 6, - key: 'createdAt', - label: 'Date', - description: blockchainTooltipData.account.tabAccountStatement.date, - }, - { - cols: 6, - key: 'description', - label: 'Transaction description', - description: blockchainTooltipData.account.tabAccountStatement.transactionDescription, - }, - { - cols: 6, - key: 'amount', - label: 'Amount', - description: blockchainTooltipData.account.tabAccountStatement.amount, - }, - { - cols: 6, - key: 'balance', - label: 'Running Balance', - description: blockchainTooltipData.account.tabAccountStatement.runningBalance, - }, -]; - -export const accountTransactionsTableColumns = [ - { - cols: 2, - key: 'status', - label: 'Status', - description: blockchainTooltipData.transaction.status, - }, - { - cols: 6, - key: 'requestKey', - label: 'Request Key', - description: blockchainTooltipData.transaction.requestKey, - }, - { - cols: 3, - key: 'sender', - label: 'Sender', - description: blockchainTooltipData.transaction.overview.from, - }, - { - cols: 2, - key: 'gas', - label: 'Gas', - center: true, - }, - { - cols: 2, - center: true, - key: 'chainId', - label: 'Chain', - description: blockchainTooltipData.transaction.chain, - }, - { - cols: 3, - center: true, - key: 'block', - label: 'Block Height', - description: blockchainTooltipData.transaction.blockHeight, - }, - { - cols: 5, - key: 'createdAt', - label: 'Date', - description: blockchainTooltipData.transaction.meta.creationTime, - }, - { - isFixed: true, - cols: 1, - key: 'icon', - label: '', - }, -]; diff --git a/web/config/blocks.ts b/web/config/blocks.ts deleted file mode 100644 index 8c4ff430..00000000 --- a/web/config/blocks.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { blockchainTooltipData } from './tooltips'; - -export const blocksTableColumns = [ - { - cols: 3, - key: 'height', - label: 'Block Height', - description: blockchainTooltipData.block.blockHeight, - }, - { - cols: 5, - key: 'hash', - label: 'Hash', - description: blockchainTooltipData.block.overview.hash, - }, - { - cols: 3, - key: 'miner', - label: 'Miner', - }, - { - cols: 2, - center: true, - key: 'transactionsCount', - label: 'Transactions', - }, - { - cols: 2, - center: true, - key: 'chainId', - label: 'Chain', - description: blockchainTooltipData.block.chain, - }, - { - cols: 3, - key: 'fees', - center: true, - label: 'Total Fees (KDA)', - description: blockchainTooltipData.block.overview.totalFees, - }, - { - cols: 5, - key: 'createdAt', - label: 'Date', - description: blockchainTooltipData.block.creationTime, - }, - { - isFixed: true, - cols: 1, - key: 'icon', - label: '', - }, -]; - -export const blockTransactionsTableColumns = [ - { - cols: 2, - key: 'status', - label: 'Status', - description: blockchainTooltipData.block.transactions.status, - }, - { - cols: 8, - key: 'requestkey', - label: 'Request Key', - description: blockchainTooltipData.block.transactions.requestKey, - }, - { - cols: 14, - key: 'code', - label: 'Code', - description: blockchainTooltipData.block.transactions.code, - }, -]; diff --git a/web/config/collection.ts b/web/config/collection.ts deleted file mode 100644 index cb5e1d74..00000000 --- a/web/config/collection.ts +++ /dev/null @@ -1,616 +0,0 @@ -import { blockchainTooltipData } from './tooltips'; - -export const collectionActivityTableColumns = [ - { - cols: 4, - key: 'item', - label: 'Item', - description: blockchainTooltipData.block.blockHeight, - }, - { - cols: 2, - key: 'price', - label: 'Price', - description: blockchainTooltipData.block.blockHeight, - }, - { - cols: 4, - key: 'hash', - label: 'Hash', - description: blockchainTooltipData.block.blockHeight, - }, - { - cols: 4, - key: 'from', - label: 'From', - description: blockchainTooltipData.block.blockHeight, - }, - { - cols: 4, - key: 'to', - label: 'To', - description: blockchainTooltipData.block.blockHeight, - }, - { - cols: 5, - key: 'date', - label: 'Date', - description: blockchainTooltipData.block.blockHeight, - }, - - { - cols: 1, - center: true, - key: 'icon', - label: '', - }, -]; - -export const mockCollectionTxs = [ - { - amount: '00.00', - dollar: '$ 0,00', - createdAt: 1712954633979, - name: 'The Angel Doggos', - collection: 'Mock', - image: '/nft/mock.webp', - hash: '0000000000000000000000000000000000000000000000', - to: 'k:0000000000000000000000000000000000000000000000000000000000000', - from: 'k:0000000000000000000000000000000000000000000000000000000000000', - }, - { - amount: '00.00', - dollar: '$ 0,00', - name: 'Kadena Bears', - image: '/nft/mock.webp', - createdAt: 1712954633979, - collection: 'Mock', - hash: '0000000000000000000000000000000000000000000000', - to: 'k:0000000000000000000000000000000000000000000000000000000000000', - from: 'k:0000000000000000000000000000000000000000000000000000000000000', - }, - { - amount: '00.00', - dollar: '$ 0,00', - name: 'Brawler Bears', - image: '/nft/mock.webp', - createdAt: 1712954633979, - collection: 'Mock', - hash: '0000000000000000000000000000000000000000000000', - to: 'k:0000000000000000000000000000000000000000000000000000000000000', - from: 'k:0000000000000000000000000000000000000000000000000000000000000', - }, - { - amount: '00.00', - dollar: '$ 0,00', - name: 'Boxing Badger', - image: '/nft/mock.webp', - createdAt: 1712954633979, - collection: 'Mock', - hash: '0000000000000000000000000000000000000000000000', - to: 'k:0000000000000000000000000000000000000000000000000000000000000', - from: 'k:0000000000000000000000000000000000000000000000000000000000000', - }, - { - amount: '00.00', - dollar: '$ 0,00', - name: 'Kadena Mining Club', - image: '/nft/mock.webp', - createdAt: 1712954633979, - collection: 'Mock', - hash: '0000000000000000000000000000000000000000000000', - to: 'k:0000000000000000000000000000000000000000000000000000000000000', - from: 'k:0000000000000000000000000000000000000000000000000000000000000', - }, - { - amount: '00.00', - dollar: '$ 0,00', - name: 'Kadena Komodos', - image: '/nft/mock.webp', - createdAt: 1712954633979, - collection: 'Mock', - hash: '0000000000000000000000000000000000000000000000', - to: 'k:0000000000000000000000000000000000000000000000000000000000000', - from: 'k:0000000000000000000000000000000000000000000000000000000000000', - }, - { - amount: '00.00', - dollar: '$ 0,00', - name: 'JODIE INU', - image: '/nft/mock.webp', - createdAt: 1712954633979, - collection: 'Mock', - hash: '0000000000000000000000000000000000000000000000', - to: 'k:0000000000000000000000000000000000000000000000000000000000000', - from: 'k:0000000000000000000000000000000000000000000000000000000000000', - }, - { - amount: '00.00', - dollar: '$ 0,00', - name: 'INU Crew', - image: '/nft/mock.webp', - createdAt: 1712954633979, - collection: 'Mock', - hash: '0000000000000000000000000000000000000000000000', - to: 'k:0000000000000000000000000000000000000000000000000000000000000', - from: 'k:0000000000000000000000000000000000000000000000000000000000000', - }, - { - amount: '00.00', - dollar: '$ 0,00', - name: 'Eighties Bulls', - image: '/nft/mock.webp', - createdAt: 1712954633979, - collection: 'Mock', - hash: '0000000000000000000000000000000000000000000000', - to: 'k:0000000000000000000000000000000000000000000000000000000000000', - from: 'k:0000000000000000000000000000000000000000000000000000000000000', - }, - { - amount: '00.00', - dollar: '$ 0,00', - name: 'Dadbod #999999', - image: '/nft/mock.webp', - createdAt: 1712954633979, - collection: 'Mock', - hash: '0000000000000000000000000000000000000000000000', - to: 'k:0000000000000000000000000000000000000000000000000000000000000', - from: 'k:0000000000000000000000000000000000000000000000000000000000000', - }, - { - amount: '00.00', - dollar: '$ 0,00', - name: 'Dadbod #999999', - image: '/nft/mock.webp', - createdAt: 1712954633979, - collection: 'Mock', - hash: '0000000000000000000000000000000000000000000000', - to: 'k:0000000000000000000000000000000000000000000000000000000000000', - from: 'k:0000000000000000000000000000000000000000000000000000000000000', - }, - { - amount: '00.00', - dollar: '$ 0,00', - name: 'Dadbod #999999', - image: '/nft/mock.webp', - createdAt: 1712954633979, - collection: 'Mock', - hash: '0000000000000000000000000000000000000000000000', - to: 'k:0000000000000000000000000000000000000000000000000000000000000', - from: 'k:0000000000000000000000000000000000000000000000000000000000000', - }, - { - amount: '00.00', - dollar: '$ 0,00', - name: 'Dadbod #999999', - image: '/nft/mock.webp', - createdAt: 1712954633979, - collection: 'Mock', - hash: '0000000000000000000000000000000000000000000000', - to: 'k:0000000000000000000000000000000000000000000000000000000000000', - from: 'k:0000000000000000000000000000000000000000000000000000000000000', - }, - { - amount: '00.00', - dollar: '$ 0,00', - name: 'Dadbod #999999', - image: '/nft/mock.webp', - createdAt: 1712954633979, - collection: 'Mock', - hash: '0000000000000000000000000000000000000000000000', - to: 'k:0000000000000000000000000000000000000000000000000000000000000', - from: 'k:0000000000000000000000000000000000000000000000000000000000000', - }, - { - amount: '00.00', - dollar: '$ 0,00', - name: 'Dadbod #999999', - image: '/nft/mock.webp', - createdAt: 1712954633979, - collection: 'Mock', - hash: '0000000000000000000000000000000000000000000000', - to: 'k:0000000000000000000000000000000000000000000000000000000000000', - from: 'k:0000000000000000000000000000000000000000000000000000000000000', - }, - { - amount: '00.00', - dollar: '$ 0,00', - name: 'Dadbod #999999', - image: '/nft/mock.webp', - createdAt: 1712954633979, - collection: 'Mock', - hash: '0000000000000000000000000000000000000000000000', - to: 'k:0000000000000000000000000000000000000000000000000000000000000', - from: 'k:0000000000000000000000000000000000000000000000000000000000000', - }, - { - amount: '00.00', - dollar: '$ 0,00', - name: 'Dadbod #999999', - image: '/nft/mock.webp', - createdAt: 1712954633979, - collection: 'Mock', - hash: '0000000000000000000000000000000000000000000000', - to: 'k:0000000000000000000000000000000000000000000000000000000000000', - from: 'k:0000000000000000000000000000000000000000000000000000000000000', - }, - { - amount: '00.00', - dollar: '$ 0,00', - name: 'Dadbod #999999', - image: '/nft/mock.webp', - createdAt: 1712954633979, - collection: 'Mock', - hash: '0000000000000000000000000000000000000000000000', - to: 'k:0000000000000000000000000000000000000000000000000000000000000', - from: 'k:0000000000000000000000000000000000000000000000000000000000000', - }, - { - amount: '00.00', - dollar: '$ 0,00', - name: 'Dadbod #999999', - image: '/nft/mock.webp', - createdAt: 1712954633979, - collection: 'Mock', - hash: '0000000000000000000000000000000000000000000000', - to: 'k:0000000000000000000000000000000000000000000000000000000000000', - from: 'k:0000000000000000000000000000000000000000000000000000000000000', - }, - { - amount: '00.00', - dollar: '$ 0,00', - name: 'Dadbod #999999', - image: '/nft/mock.webp', - createdAt: 1712954633979, - collection: 'Mock', - hash: '0000000000000000000000000000000000000000000000', - to: 'k:0000000000000000000000000000000000000000000000000000000000000', - from: 'k:0000000000000000000000000000000000000000000000000000000000000', - }, -]; - -export const mockCollectionNFTs = [ - { - id: '0', - name: 'Mock name', - collection: 'Mock', - image: '/nft/mock.webp', - }, - { - id: '1', - name: 'Mock name', - collection: 'Mock', - image: '/nft/mock.webp', - }, - { - id: '2', - name: 'Mock name', - collection: 'Mock', - image: '/nft/mock.webp', - }, - { - id: '3', - name: 'Mock name', - collection: 'Mock', - image: '/nft/mock.webp', - }, - { - id: '4', - name: 'Mock name', - collection: 'Mock', - image: '/nft/mock.webp', - }, - { - id: '5', - name: 'Mock name', - collection: 'Mock', - image: '/nft/mock.webp', - }, - { - id: '6', - name: 'Mock name', - collection: 'Mock', - image: '/nft/mock.webp', - }, - { - id: '7', - name: 'Mock name', - collection: 'Mock', - image: '/nft/mock.webp', - }, - { - id: '8', - name: 'Mock name', - collection: 'Mock', - image: '/nft/mock.webp', - }, - { - id: '9', - name: 'Mock name', - collection: 'Mock', - image: '/nft/mock.webp', - }, - { - id: '10', - name: 'Mock name', - collection: 'Mock', - image: '/nft/mock.webp', - }, - { - id: '11', - name: 'Mock name', - collection: 'Mock', - image: '/nft/mock.webp', - }, - { - id: '12', - name: 'Mock name', - collection: 'Mock', - image: '/nft/mock.webp', - }, - { - id: '13', - name: 'Mock name', - collection: 'Mock', - image: '/nft/mock.webp', - }, - { - id: '14', - name: 'Mock name', - collection: 'Mock', - image: '/nft/mock.webp', - }, - { - id: '15', - name: 'Mock name', - collection: 'Mock', - image: '/nft/mock.webp', - }, - { - id: '16', - name: 'Mock name', - collection: 'Mock', - image: '/nft/mock.webp', - }, - { - id: '17', - name: 'Mock name', - collection: 'Mock', - image: '/nft/mock.webp', - }, - { - id: '18', - name: 'Mock name', - collection: 'Mock', - image: '/nft/mock.webp', - }, - { - id: '19', - name: 'Mock name', - collection: 'Mock', - image: '/nft/mock.webp', - }, -]; - -export const mockCollection = [ - { - name: 'Mock Collection', - amount: '00.00', - currency: 'KDA', - delta: -0.401, - floor: '10', - owners: '5,270', - transfers: '10,000', - assets: '197,719', - icon: '/collection/profile.webp', - }, - { - name: 'Mock Collection', - amount: '00.00', - currency: 'KDA', - delta: 0.0383, - floor: '2.326', - owners: '2,270', - transfers: '10,000', - assets: '17,719', - icon: '/collection/profile.webp', - }, - { - name: 'Mock Collection', - amount: '00.00', - currency: 'KDA', - delta: 0.498, - floor: '0.000', - owners: '270', - transfers: '20,000', - assets: '17,719', - icon: '/collection/profile.webp', - }, - { - name: 'Mock Collection', - amount: '00.00', - currency: 'KDA', - delta: 0.1864, - floor: '10', - owners: '70', - transfers: '1000', - assets: '7,719', - icon: '/collection/profile.webp', - }, - { - name: 'Mock Collection', - amount: '00.00', - currency: 'KDA', - delta: 0.5936, - floor: '1.4', - owners: '5,470', - transfers: '10,000', - assets: '197,719', - icon: '/collection/profile.webp', - }, - { - name: 'Mock Collection', - amount: '00.00', - currency: 'KDA', - delta: 0.3715, - floor: '0.', - owners: '570', - transfers: '10000', - assets: '1,719', - icon: '/collection/profile.webp', - }, - { - name: 'Mock Collection', - amount: '00.00', - currency: 'KDA', - delta: 0.401, - floor: '10', - owners: '50', - transfers: '100', - assets: '119', - icon: '/collection/profile.webp', - }, - { - name: 'Mock Collection', - amount: '00.00 ', - currency: 'KDA', - delta: 0.401, - floor: '1.385', - owners: '170', - transfers: '14,000', - assets: '19', - icon: '/collection/profile.webp', - }, - { - name: 'Mock Collection', - amount: '00.00 ', - currency: 'KDA', - delta: 0.18877, - floor: '10', - owners: '8,270', - transfers: '100', - assets: '19', - icon: '/collection/profile.webp', - }, - { - name: 'Mock Collection', - amount: '00.00 ', - currency: 'KDA', - delta: 0.401, - floor: '1.385', - owners: '670', - transfers: '18,000', - assets: '87,719', - icon: '/collection/profile.webp', - }, - { - name: 'Mock Collection', - amount: '00.00 ', - currency: 'KDA', - delta: 0.401, - floor: '10', - owners: '12,270', - transfers: '14,000', - assets: '197,719', - icon: '/collection/profile.webp', - }, - { - name: 'Mock Collection', - amount: '00.00 ', - currency: 'KDA', - delta: -0.401, - floor: '11.3852', - owners: '530', - transfers: '10,000', - assets: '27,719', - icon: '/collection/profile.webp', - }, - { - name: 'Mock Collection', - amount: '00.00 ', - currency: 'KDA', - delta: -0.401, - floor: '10', - owners: '60', - transfers: '100', - assets: '197,719', - icon: '/collection/profile.webp', - }, - { - name: 'Mock Collection', - amount: '00.00 ', - currency: 'KDA', - delta: 0.401, - floor: '11.3852', - owners: '5,270', - transfers: '10,000', - assets: '197,719', - icon: '/collection/profile.webp', - }, - { - name: 'Mock Collection', - amount: '00.00 ', - currency: 'KDA', - delta: -0.401, - floor: '10', - owners: '270', - transfers: '10', - assets: '197,719', - icon: '/collection/profile.webp', - }, - { - name: 'Mock Collection', - amount: '00.00 ', - currency: 'KDA', - delta: 0.401, - floor: '10', - owners: '1,270', - transfers: '10,000', - assets: '197,719', - icon: '/collection/profile.webp', - }, - { - name: 'Mock Collection', - amount: '00.00 ', - currency: 'KDA', - delta: 0.401, - floor: '1.385', - owners: '5,270', - transfers: '10,000', - assets: '197,719', - icon: '/collection/profile.webp', - }, - { - name: 'Mock Collection', - amount: '00.00 ', - currency: 'KDA', - delta: -0.401, - floor: '10', - owners: '5,470', - transfers: '10,000', - assets: '197,719', - icon: '/collection/profile.webp', - }, - { - name: 'Mock Collection', - amount: '00.00 ', - currency: 'KDA', - delta: 0.401, - floor: '10', - owners: '5,470', - transfers: '10,000', - assets: '197,719', - icon: '/collection/profile.webp', - }, - { - name: 'Mock Collection', - amount: '00.00 ', - currency: 'KDA', - delta: 0.401, - floor: '10', - owners: '5,270', - transfers: '10,000', - assets: '197,719', - icon: '/collection/profile.webp', - }, -]; diff --git a/web/config/index.ts b/web/config/index.ts deleted file mode 100644 index 5e856a10..00000000 --- a/web/config/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -export * from './nft'; -export * from './routes'; -export * from './blocks'; -export * from './account'; -export * from './tokens'; -export * from './networks'; -export * from './collection'; -export * from './transactions'; -export * from './tooltips'; diff --git a/web/config/networks.ts b/web/config/networks.ts deleted file mode 100644 index a75cc362..00000000 --- a/web/config/networks.ts +++ /dev/null @@ -1,19 +0,0 @@ -export const networks = [ - { - icon: 'github', - title: 'Github', - to: 'https://github.com/opact-protocol', - }, - { - icon: 'discord', - title: 'Discord', - to: 'https://docs.tickets.opact.io/', - }, - { - icon: 'twitter', - title: 'Twitter', - to: 'https://twitter.com/opactzk', - }, -]; - -export default networks; diff --git a/web/config/nft.ts b/web/config/nft.ts deleted file mode 100644 index 0947f38b..00000000 --- a/web/config/nft.ts +++ /dev/null @@ -1,144 +0,0 @@ -import { blockchainTooltipData } from './tooltips'; - -export const nftCollectionsTableColumns = [ - { - cols: 1, - center: true, - key: 'position', - label: '#', - }, - { - cols: 5, - key: 'collection', - label: 'Collection', - }, - { - cols: 3, - key: 'volume', - label: 'Volume', - description: blockchainTooltipData.trendingCollections.volume, - }, - { - cols: 3, - key: 'delta', - label: 'Volume Change', - description: blockchainTooltipData.trendingCollections.volumeChange, - }, - { - cols: 2, - key: 'floorPrice', - label: 'Floor Price', - description: blockchainTooltipData.trendingCollections.floorPrice, - }, - { - cols: 3, - key: 'owners', - label: 'Owners', - description: blockchainTooltipData.trendingCollections.owners, - }, - { - cols: 3, - key: 'transfers', - label: 'Transfers', - description: blockchainTooltipData.trendingCollections.transfers, - }, - { - cols: 3, - key: 'assets', - label: 'Total Assets', - description: blockchainTooltipData.trendingCollections.totalAssets, - }, - { - cols: 1, - center: true, - key: 'icon', - label: '', - }, -]; - -export const nftTransfersTableColumns = [ - { - cols: 4, - key: 'hash', - label: 'Hash', - description: blockchainTooltipData.nft.transfers.hash, - }, - { - center: true, - cols: 2, - key: 'method', - label: 'Method', - description: blockchainTooltipData.nft.transfers.method, - }, - { - cols: 4, - key: 'from', - label: 'From', - description: blockchainTooltipData.nft.transfers.from, - }, - { - cols: 4, - key: 'to', - label: 'To', - description: blockchainTooltipData.nft.transfers.to, - }, - { - cols: 5, - key: 'date', - label: 'Date', - }, - { - cols: 4, - key: 'item', - label: 'Item', - }, - { - cols: 1, - center: true, - key: 'icon', - label: '', - }, -]; - -export const nftActivityTableColumns = [ - { - cols: 2, - key: 'activity', - label: 'Activity', - }, - { - cols: 2, - key: 'amount', - label: 'Price', - }, - { - cols: 6, - key: 'hash', - label: 'Hash', - description: blockchainTooltipData.nftDetails.activity.hash, - }, - { - cols: 4, - key: 'from', - label: 'From', - description: blockchainTooltipData.nftDetails.activity.from, - }, - { - cols: 4, - key: 'to', - label: 'To', - description: blockchainTooltipData.nftDetails.activity.to, - }, - { - cols: 5, - key: 'date', - label: 'Date', - }, - - { - cols: 1, - center: true, - key: 'icon', - label: '', - }, -]; diff --git a/web/config/queries.ts b/web/config/queries.ts deleted file mode 100644 index f32f32d4..00000000 --- a/web/config/queries.ts +++ /dev/null @@ -1,29 +0,0 @@ -// query MyQuery { -// allBlocks(first: 20, offset: 0) { -// nodes { -// chainId -// chainwebVersion -// createdAt -// creationTime -// epochStart -// featureFlags -// hash -// id -// height -// nodeId -// nonce -// parent -// target -// payloadHash -// updatedAt -// weight -// } -// totalCount -// pageInfo { -// endCursor -// hasNextPage -// startCursor -// hasPreviousPage -// } -// } -// } diff --git a/web/config/routes.ts b/web/config/routes.ts deleted file mode 100644 index 5c5a1fc2..00000000 --- a/web/config/routes.ts +++ /dev/null @@ -1,80 +0,0 @@ -export type RouteType = 'link' | 'group'; - -export interface BaseRoute { - path?: string; - tag: string; - label: string; - disabled?: boolean; -} - -export interface LinkRoute extends BaseRoute { - type: 'link'; -} - -export interface GroupRoute { - type: 'group'; - tag: string; - label: string; - subroutes?: BaseRoute[]; -} - -export type Route = LinkRoute | GroupRoute; - -export const routes: Route[] = [ - { - type: 'link', - path: '/blocks', - label: 'Blocks', - tag: 'route:blockchains', - }, - { - type: 'link', - path: '/transactions', - label: 'Transactions', - tag: 'route:transactions', - }, - { - type: 'link', - path: '/nfts', - label: 'NFTs', - tag: 'route:transactions', - }, - { - path: '/tokens', - type: 'group', - label: 'Tokens', - tag: 'route:token', - subroutes: [ - // { - // path: '/tokens', - // label: 'Token Transfers', - // tag: 'route:token', - // }, - { - path: '/tokens/trending', - label: 'Trending tokens', - tag: 'route:tokens:trending', - }, - ], - }, - // { - // label: 'NFT', - // type: 'group', - // tag: 'route:nft', - // subroutes: [ - // // { - // // disabled: true, - // // path: '/collections', - // // tag: 'route:collections', - // // label: 'NFT Trending Collections', - // // }, - // { - // path: '/nfts', - // label: 'NFT Transfers', - // tag: 'route:collections:nfts', - // } - // ] - // } -]; - -export default routes; diff --git a/web/config/tokens.ts b/web/config/tokens.ts deleted file mode 100644 index 63e78aea..00000000 --- a/web/config/tokens.ts +++ /dev/null @@ -1,162 +0,0 @@ -import { blockchainTooltipData } from './tooltips'; - -export const trendingTokensTableColumns = [ - { - cols: 1, - key: 'ranking', - label: '#', - }, - { - cols: 5, - key: 'token', - label: 'Token', - }, - { - cols: 3, - key: 'price', - label: 'Price', - }, - { - cols: 5, - center: true, - key: 'change', - label: 'Change (%)', - description: blockchainTooltipData.trendingTokens.change, - }, - { - cols: 4, - key: 'volume', - label: 'Volume (24h)', - description: blockchainTooltipData.trendingTokens.volume, - }, - { - cols: 3, - key: 'marketCap', - label: 'Market Cap', - description: blockchainTooltipData.trendingTokens.marketCap, - }, - { - cols: 3, - key: 'supply', - label: 'Circulating Supply', - description: blockchainTooltipData.trendingTokens.circulatingSupply, - }, -]; - -export const tokenTransfersTableColumns = [ - { - cols: 2, - key: 'requestkey', - label: 'Hash', - description: blockchainTooltipData.tokenTransfers.hash, - }, - { - center: true, - cols: 3, - key: 'method', - label: 'Method', - description: blockchainTooltipData.tokenTransfers.method, - }, - { - cols: 4, - key: 'from', - label: 'From', - description: blockchainTooltipData.tokenTransfers.from, - }, - { - cols: 4, - key: 'to', - label: 'To', - description: blockchainTooltipData.tokenTransfers.to, - }, - { - cols: 2, - key: 'amount', - label: 'Amount', - description: blockchainTooltipData.tokenTransfers.amount, - }, - { - cols: 3, - key: 'token', - label: 'Token', - }, - { - cols: 5, - key: 'date', - label: 'Date', - }, - { - cols: 1, - center: true, - key: 'icon', - label: '', - }, -]; - -export const tokenDetailTransferTableColumns = [ - { - cols: 5, - key: 'requestKey', - label: 'Request Key', - description: blockchainTooltipData.tokenDetails.transfers.hash, - }, - { - center: true, - cols: 2, - key: 'method', - label: 'Method', - description: blockchainTooltipData.tokenDetails.transfers.method, - }, - { - cols: 4, - key: 'from', - label: 'From', - description: blockchainTooltipData.tokenDetails.transfers.from, - }, - { - cols: 4, - key: 'to', - label: 'To', - description: blockchainTooltipData.tokenDetails.transfers.to, - }, - { - cols: 4, - key: 'amount', - label: 'Amount', - }, - { - cols: 5, - key: 'date', - label: 'Date', - }, -]; - -export const holdersTableColumns = [ - { - cols: 1, - key: 'ranking', - label: '#', - }, - { - cols: 7, - key: 'address', - label: 'Address', - }, - { - cols: 5, - key: 'quantity', - label: 'Quantity', - }, - { - cols: 5, - key: 'value', - label: 'Value', - description: blockchainTooltipData.tokenDetails.holders.valueUSD, - }, - { - cols: 6, - key: 'percentage', - label: 'Percentage', - description: blockchainTooltipData.tokenDetails.holders.percentage, - }, -]; diff --git a/web/config/tooltips.ts b/web/config/tooltips.ts deleted file mode 100644 index ae4812c5..00000000 --- a/web/config/tooltips.ts +++ /dev/null @@ -1,219 +0,0 @@ -export const blockchainTooltipData = { - transactions: { - status: - 'Indicates the current status of the transaction, such as pending, confirmed, or failed.', - requestKey: - 'A unique identifier assigned to each transaction for tracking and reference purposes.', - chain: 'Specifies the blockchain network on which the transaction occurred.', - from: 'The sender or origin address of the transaction.', - to: 'The recipient or destination address of the transaction.', - }, - transaction: { - requestKey: 'A unique identifier assigned to the transaction request.', - status: 'The current status or outcome of the transaction.', - chain: 'The blockchain network on which the transaction occurred.', - blockHeight: - 'The numerical position of the block in the blockchain where the transaction is recorded.', - timestamp: 'The date and time at which the transaction was validated.', - overview: { - from: 'The address or account from which the transaction originated.', - to: 'The address or account to which the transaction was sent.', - amount: 'The quantity of tokens or cryptocurrency transferred in the transaction.', - transactionFee: 'The fee paid for processing the transaction.', - paidBy: 'The entity responsible for paying the transaction fee.', - gasPrice: 'The cost per unit of gas used in the transaction.', - code: 'Additional information or code associated with the transaction.', - }, - meta: { - sender: 'The entity or account initiating the transaction.', - chain: 'The blockchain network on which the transaction occurred.', - gasLimit: 'The maximum amount of gas allowed for the transaction.', - ttl: 'Time to Live, indicating the duration for which the transaction remains valid.', - creationTime: 'The timestamp indicating when the transaction was created.', - publicKey: 'The public key associated with the transaction.', - nonce: 'A sequential number assigned to each transaction initiated by an account.', - data: 'Additional data or information included with the transaction.', - }, - output: { - transactionId: 'The unique identifier assigned to the transaction.', - result: 'The outcome or status of the transaction.', - logs: 'Additional information or logs generated during the transaction.', - signatures: 'Digital signatures associated with the transaction.', - continuation: 'Any continuation or follow-up actions related to the transaction.', - }, - events: { - coinTransfer: 'This event signifies a transfer of cryptocurrency or tokens.', - }, - }, - blocks: { - status: - 'Indicates the current status of the transaction, such as pending, confirmed, or failed.', - requestKey: - 'A unique identifier assigned to each transaction for tracking and reference purposes.', - chain: 'Specifies the blockchain network on which the transaction occurred.', - }, - block: { - chain: 'The specific blockchain or chain to which the block belongs.', - blockHeight: 'The numerical height or position of the block within the blockchain.', - creationTime: 'The timestamp indicating when the block was created or mined.', - parent: 'The parent block from which the current block was derived or built upon.', - powHash: - 'The Proof of Work (POW) hash associated with the block, indicating the computational work done to validate it.', - overview: { - target: 'The intended recipient or target of the block.', - hash: 'A unique identifier for the block, generated using a cryptographic hash function.', - totalFees: 'The total fees collected by miner for including transactions in the block.', - nonce: 'A value used in the mining process to vary the block hash.', - weight: 'The weight assigned to the block within the blockchain network.', - epochStart: 'The start time of the epoch in which the block was mined.', - flags: 'Any special indicators or flags associated with the block.', - chainwebVersion: 'The version of the Chainweb protocol used.', - neighbors: 'Other blocks connected or adjacent to this block in the blockchain network.', - }, - payload: { - minerAccount: 'The account of the miner who mined the block.', - minerPublicKeys: "The public keys associated with the miner's account.", - minerPredicate: "Any specific conditions or predicates associated with the miner's account.", - transactionsHash: 'A hash of all transactions included in the block.', - outputsHash: 'A hash of all outputs produced by transactions in the block.', - payloadHash: "A hash of the block's payload data.", - }, - coinbase: { - gas: 'The amount of gas consumed by the block.', - result: "The result of executing the block's transactions.", - requestKey: "The unique identifier for the block's request.", - logs: "Any logs or messages generated by the block's execution.", - metadata: 'Additional metadata associated with the block.', - transactionId: "The identifier for the block's transaction.", - }, - transactions: { - blockHash: 'The hash of the block containing the transaction.', - status: - 'The status of the transaction. Indicates whether the transaction is confirmed, pending, or failed.', - requestKey: - 'The unique request key associated with the transaction. It is used to uniquely identify the transaction on the blockchain.', - code: 'The code or type of transaction executed. It may include information about the type of transaction, such as fund transfer, smart contract execution, among others.', - }, - }, - account: { - address: 'The account identifier or address associated with the account.', - balance: 'The current balance of the account.', - assets: 'The total number of assets held in the account.', - transactions: 'The total number of transactions associated with the account.', - createdAt: 'The date and time when the account was created.', - tabAssets: { - asset: 'The name or identifier of the asset held in the account.', - symbol: 'The symbol or abbreviation representing the asset.', - quantity: 'The quantity or amount of the asset held.', - price: 'The current price of the asset, if applicable.', - value: 'The total value of the asset in the account, calculated based on quantity and price.', - }, - tabTransactions: { - status: 'The status of the transaction associated with the account.', - requestKey: 'The unique identifier associated with the transaction.', - chain: 'The blockchain network or chain where the transaction occurred.', - blockHeight: 'The height of the block where the transaction was recorded.', - from: 'The sender or origin of the transaction.', - amount: 'The amount transacted in the transaction.', - date: 'The date and time when the transaction occurred.', - }, - tabAccountStatement: { - date: 'The date and time of the transaction.', - transactionDescription: 'A brief description or summary of the transaction.', - amount: 'The amount involved in the transaction.', - runningBalance: 'The updated balance of the account after the transaction.', - }, - }, - trendingCollections: { - volume: 'The total trading volume of the collection over the specified time period.', - volumeChange: 'The percentage change in trading volume compared to the previous period.', - floorPrice: - 'The lowest price at which an NFT from this collection is currently listed for sale.', - owners: 'The total number of unique owners or holders of NFTs from this collection.', - transfers: 'The total number of transfers or transactions involving NFTs from this collection.', - totalAssets: 'The total number of NFTs or assets within this collection.', - }, - nft: { - transfers: { - hash: 'The unique identifier for the transaction involving the NFT.', - method: 'The method or action performed in the transaction, such as transfer or mint.', - from: 'The address or entity from which the NFT was transferred or originated.', - to: 'The address or entity to which the NFT was transferred.', - }, - collection: { - totalItems: 'The total number of NFTs present in the collection.', - owners: 'The number of unique individuals or addresses holding NFTs from this collection.', - forSale: 'The number of NFTs from this collection currently listed for sale.', - floorPrice: 'The lowest listed price for any NFT within this collection.', - averagePrice: 'The average price of all NFTs within this collection.', - volume: 'The total trading volume of NFTs from this collection over a specified period.', - tabActivity: { - hash: 'A unique identifier for each transaction involving NFTs from this collection.', - from: 'The address or entity initiating the transfer of NFTs.', - to: 'The address or entity receiving the transferred NFTs.', - }, - }, - }, - nftDetails: { - id: 'The indexer NFT ID.', - account: 'The account identifier or address associated with the account.', - price: 'The current price of the NFT in the marketplace.', - floorPrice: 'The minimum price set for the NFT in the marketplace.', - owner: 'The current owner of the NFT.', - creator: 'The creator or original issuer of the NFT.', - timestamp: 'The date and time when the NFT was created or last modified.', - marketplace: 'The platform or marketplace where the NFT is listed for sale or auction.', - activity: { - account: 'The account identifier or address associated with the account.', - hash: 'A unique identifier for each transaction involving the NFT.', - from: 'The address or entity initiating the transfer of the NFT.', - to: 'The address or entity receiving the transferred NFT.', - }, - }, - trendingTokens: { - change: - "The percentage change in the token's price over a specific period, typically the last 24 hours.", - volume: 'The total trading volume of the token over the past 24 hours.', - marketCap: - 'The total market capitalization of the token, calculated by multiplying the current price by the circulating supply.', - circulatingSupply: - 'The total number of tokens currently in circulation and available for trading.', - }, - tokenTransfers: { - hash: 'A unique identifier for the token transfer transaction.', - method: "Indicates the type or method of token transfer, such as 'transfer' or 'approve'.", - from: 'The address from which the tokens were transferred.', - to: 'The address to which the tokens were transferred.', - amount: 'The quantity or amount of tokens transferred in the transaction.', - }, - tokenDetails: { - overview: { - price: 'Current price of the token.', - maxTotalSupply: 'Maximum total supply of the token.', - holders: 'Total number of token holders.', - totalTransfers: 'Total number of transfers involving the token.', - }, - summary: { - contract: 'Address of the token smart contract.', - decimals: 'Number of decimal places used for the token.', - website: 'Official website of the token project.', - }, - transfers: { - hash: 'Unique identifier for the token transfer transaction.', - blockHeight: 'The block number in which the transaction occurred.', - method: "Type or method of token transfer (e.g., 'transfer' or 'approve').", - from: 'Address from which the tokens were transferred.', - to: 'Address to which the tokens were transferred.', - }, - holders: { - quantity: 'Quantity of tokens held by the holder.', - valueUSD: 'Value of the tokens held by the holder in USD.', - percentage: 'Percentage of total tokens held by the holder.', - }, - information: { - marketCapitalization: 'Total market capitalization of the token.', - volume24H: 'Total trading volume of the token in the last 24 hours.', - circulatingSupply: 'Total circulating supply of the token.', - }, - }, -}; diff --git a/web/config/transactions.ts b/web/config/transactions.ts deleted file mode 100644 index fab69601..00000000 --- a/web/config/transactions.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { blockchainTooltipData } from './tooltips'; - -export const transactionTableColumns = [ - { - cols: 2, - key: 'status', - label: 'Status', - description: blockchainTooltipData.transaction.status, - }, - { - cols: 6, - key: 'requestKey', - label: 'Request Key', - description: blockchainTooltipData.transaction.requestKey, - }, - { - cols: 3, - key: 'sender', - label: 'Sender', - description: blockchainTooltipData.transaction.overview.from, - }, - { - cols: 2, - key: 'gas', - label: 'Gas', - center: true, - }, - { - cols: 2, - center: true, - key: 'chainId', - label: 'Chain', - withChainFilter: true, - // description: blockchainTooltipData.transaction.chain - }, - { - cols: 3, - center: true, - key: 'block', - label: 'Block Height', - description: blockchainTooltipData.transaction.blockHeight, - }, - // { - // cols: 4, - // key: 'receiver', - // label: 'To', - // description: blockchainTooltipData.transaction.overview.to - // }, - { - cols: 5, - key: 'createdAt', - label: 'Date', - description: blockchainTooltipData.transaction.meta.creationTime, - }, - { - isFixed: true, - cols: 1, - key: 'icon', - label: '', - }, -]; diff --git a/web/constants/tokens.ts b/web/constants/tokens.ts deleted file mode 100644 index c2a2526a..00000000 --- a/web/constants/tokens.ts +++ /dev/null @@ -1,174 +0,0 @@ -export const unknownNft = { - image: '', - symbol: 'ukn', - id: 'unknown', - name: 'unknown', -}; - -export const unknownToken = { - image: '', - symbol: 'ukn', - id: 'unknown', - name: 'unknown', -}; - -export const staticTokens = [ - { - name: 'ARKD', - symbol: 'ARKD', - coingeckoId: '', - module: 'arkade.token', - icon: 'https://swap.ecko.finance/images/crypto/ark.png', - }, - { - module: 'coin', - symbol: 'KDA', - coingeckoId: 'kadena', - name: 'Kadena', - icon: 'https://swap.ecko.finance/images/crypto/kda-crypto.svg', - }, - { - name: 'KAYC', - symbol: 'KAYC', - coingeckoId: '', - module: 'free.KAYC', - icon: 'https://swap.ecko.finance/images/crypto/kayc.svg', - }, - { - symbol: 'BKA', - coingeckoId: '', - name: 'Backalley', - module: 'free.backalley', - icon: 'https://swap.ecko.finance/images/crypto/bka.svg', - }, - { - name: 'CRNA', - symbol: 'CRNA', - coingeckoId: '', - module: 'free.corona-token', - icon: 'https://swap.ecko.finance/images/crypto/corona.svg', - }, - { - name: 'CRKK', - symbol: 'CRKK', - coingeckoId: '', - module: 'free.crankk01', - icon: 'https://swap.ecko.finance/images/crypto/crankk.png', - }, - { - name: 'CFLY', - symbol: 'CFLY', - coingeckoId: '', - module: 'free.cyberfly_token', - icon: 'https://swap.ecko.finance/images/crypto/cfly.svg', - }, - { - name: 'DOC', - symbol: 'DOC', - coingeckoId: '', - module: 'free.docu', - icon: 'https://swap.ecko.finance/images/crypto/docushield.svg', - }, - { - name: 'FINUX', - symbol: 'FINUX', - coingeckoId: '', - module: 'free.finux', - icon: 'https://swap.ecko.finance/images/crypto/finux.png', - }, - { - symbol: 'JDE', - name: 'Jodie', - coingeckoId: '', - module: 'free.jodie-token', - icon: 'https://swap.ecko.finance/images/crypto/jodie.svg', - }, - { - name: 'Kapy', - symbol: 'KAPY', - coingeckoId: '', - module: 'free.kapybara-token', - icon: 'https://swap.ecko.finance/images/crypto/kapy.svg', - }, - { - id: 'kishu-ken', - symbol: 'KISHK', - coingeckoId: '', - name: 'Kishu Ken', - module: 'free.kishu-ken', - icon: 'https://swap.ecko.finance/images/crypto/kishk.svg', - }, - { - name: 'MAGA', - symbol: 'MAGA', - coingeckoId: '', - module: 'free.maga', - icon: 'https://swap.ecko.finance/images/crypto/maga.png', - }, - { - name: 'Hype', - symbol: 'HYPE', - coingeckoId: '', - module: 'hypercent.prod-hype-coin', - icon: 'https://swap.ecko.finance/images/crypto/hypercent-crypto.svg', - }, - { - id: 'kaddex', - symbol: 'KDX', - name: 'Kaddex', - coingeckoId: '', - module: 'kaddex.kdx', - icon: 'https://swap.ecko.finance/images/crypto/kaddex-crypto.svg', - }, - { - id: 'kdswap', - symbol: 'KDS', - name: 'KDSwap', - coingeckoId: '', - module: 'kdlaunch.kdswap-token', - icon: 'https://swap.ecko.finance/images/crypto/kds.svg', - }, - { - id: 'kdlaunch', - symbol: 'KDL', - name: 'KDLaunch', - coingeckoId: '', - module: 'kdlaunch.token', - icon: 'https://swap.ecko.finance/images/crypto/kdl.svg', - }, - { - name: 'Mok', - symbol: 'MOK', - coingeckoId: '', - module: 'mok.token', - icon: 'https://swap.ecko.finance/images/crypto/mok.svg', - }, - { - name: 'BRO', - symbol: 'BRO', - coingeckoId: '', - module: 'n_582fed11af00dc626812cd7890bb88e72067f28c.bro', - icon: 'https://swap.ecko.finance/images/crypto/bro.png', - }, - { - name: 'zUSD', - symbol: 'zUSD', - coingeckoId: '', - module: 'n_b742b4e9c600892af545afb408326e82a6c0c6ed.zUSD', - icon: 'https://swap.ecko.finance/images/crypto/zUSD.svg', - }, - { - name: 'HERON', - symbol: 'HERON', - coingeckoId: '', - module: 'n_e309f0fa7cf3a13f93a8da5325cdad32790d2070.heron', - icon: 'https://swap.ecko.finance/images/crypto/heron.png', - }, - { - name: 'Flux', - symbol: 'FLUX', - coingeckoId: '', - module: 'runonflux.flux', - icon: 'https://swap.ecko.finance/images/crypto/flux-crypto.svg', - }, -]; diff --git a/web/layouts/app.vue b/web/layouts/app.vue deleted file mode 100644 index aacf7fcc..00000000 --- a/web/layouts/app.vue +++ /dev/null @@ -1,30 +0,0 @@ - - - diff --git a/web/nuxt.config.ts b/web/nuxt.config.ts deleted file mode 100644 index 2959f372..00000000 --- a/web/nuxt.config.ts +++ /dev/null @@ -1,53 +0,0 @@ -// https://nuxt.com/docs/api/configuration/nuxt-config -export default defineNuxtConfig({ - postcss: { - plugins: { - tailwindcss: {}, - autoprefixer: {}, - }, - }, - - modules: ['nuxt-headlessui', '@nuxtjs/tailwindcss', 'nuxt-graphql-request'], - - build: { - transpile: ['@popperjs/core', 'nuxt-graphql-request', '@venegrad/vue3-click-outside'], - }, - - alias: { - 'cross-fetch': 'cross-fetch/dist/browser-ponyfill.js', - }, - - runtimeConfig: { - public: { - CG_KEY: process.env.CG_KEY, - CG_URL: process.env.CG_URL || 'https://api.coingecko.com/api/v3', - API_URL: process.env.API_URL, - }, - }, - - graphql: { - /** - * An Object of your GraphQL clients - */ - clients: { - default: { - /** - * The client endpoint url - */ - endpoint: process.env.API_URL || 'localhost:3000', - - options: { - method: 'POST', // Default to `POST` - headers: { - 'Access-Control-Allow-Origin': '*', - 'Content-Type': 'application/json', - }, - }, - }, - }, - }, - - headlessui: { - prefix: '', - }, -}); diff --git a/web/package.json b/web/package.json deleted file mode 100644 index c054eb17..00000000 --- a/web/package.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "name": "@kadena-indexer/web", - "private": true, - "type": "module", - "version": "1.0.0", - "scripts": { - "build": "nuxt build", - "dev": "nuxt dev", - "generate": "nuxt generate", - "preview": "nuxt preview", - "postinstall": "nuxt prepare" - }, - "dependencies": { - "@fontsource/inter": "^5.0.17", - "@fontsource/roboto": "^5.0.12", - "@nuxtjs/tailwindcss": "^6.11.4", - "@popperjs/core": "^2.11.8", - "@venegrad/vue3-click-outside": "^1.0.1", - "@vueuse/core": "^10.11.1", - "autoprefixer": "^10.4.19", - "chart.js": "^4.4.2", - "chartjs-plugin-gradient": "^0.6.1", - "convert-array-to-csv": "^2.0.0", - "csv-stringify": "^6.5.1", - "date-fns": "^3.6.0", - "graphql": "^16.8.1", - "graphql-request": "^6.1.0", - "nuxt": "^3.11.1", - "nuxt-graphql-request": "^7.0.5", - "nuxt-headlessui": "^1.1.5", - "postcss": "^8.4.38", - "tailwindcss": "^3.4.3", - "typescript": "^5.4.5", - "v-calendar": "^3.1.2", - "vue": "^3.4.21", - "vue-chartjs": "^5.3.0", - "vue-router": "^4.3.0" - }, - "overrides": { - "@headlessui/vue": "1.7.18" - } -} diff --git a/web/pages/[...all].vue b/web/pages/[...all].vue deleted file mode 100644 index 13ff727f..00000000 --- a/web/pages/[...all].vue +++ /dev/null @@ -1,63 +0,0 @@ - - - - - diff --git a/web/pages/account/[address].vue b/web/pages/account/[address].vue deleted file mode 100644 index a211f24b..00000000 --- a/web/pages/account/[address].vue +++ /dev/null @@ -1,160 +0,0 @@ - - - diff --git a/web/pages/blocks/chain/[chainId]/height/[height].vue b/web/pages/blocks/chain/[chainId]/height/[height].vue deleted file mode 100644 index 9856ba52..00000000 --- a/web/pages/blocks/chain/[chainId]/height/[height].vue +++ /dev/null @@ -1,140 +0,0 @@ - - - diff --git a/web/pages/blocks/index.vue b/web/pages/blocks/index.vue deleted file mode 100644 index c7fe49be..00000000 --- a/web/pages/blocks/index.vue +++ /dev/null @@ -1,189 +0,0 @@ - - - diff --git a/web/pages/collections/[collectionId].vue b/web/pages/collections/[collectionId].vue deleted file mode 100644 index f74d5e61..00000000 --- a/web/pages/collections/[collectionId].vue +++ /dev/null @@ -1,50 +0,0 @@ - - - diff --git a/web/pages/collections/index.vue b/web/pages/collections/index.vue deleted file mode 100644 index 94243684..00000000 --- a/web/pages/collections/index.vue +++ /dev/null @@ -1,85 +0,0 @@ - - - diff --git a/web/pages/index.vue b/web/pages/index.vue deleted file mode 100644 index 6f29843c..00000000 --- a/web/pages/index.vue +++ /dev/null @@ -1,196 +0,0 @@ - - - diff --git a/web/pages/nfts/[id].vue b/web/pages/nfts/[id].vue deleted file mode 100644 index 162011fc..00000000 --- a/web/pages/nfts/[id].vue +++ /dev/null @@ -1,108 +0,0 @@ - - - - diff --git a/web/pages/nfts/index.vue b/web/pages/nfts/index.vue deleted file mode 100644 index 826b8cd3..00000000 --- a/web/pages/nfts/index.vue +++ /dev/null @@ -1,170 +0,0 @@ - - - diff --git a/web/pages/tokens/[coingeckoId].vue b/web/pages/tokens/[coingeckoId].vue deleted file mode 100644 index 602ad192..00000000 --- a/web/pages/tokens/[coingeckoId].vue +++ /dev/null @@ -1,114 +0,0 @@ - - - diff --git a/web/pages/tokens/index.vue b/web/pages/tokens/index.vue deleted file mode 100644 index 0124e907..00000000 --- a/web/pages/tokens/index.vue +++ /dev/null @@ -1,175 +0,0 @@ - - - diff --git a/web/pages/tokens/trending.vue b/web/pages/tokens/trending.vue deleted file mode 100644 index 2d729570..00000000 --- a/web/pages/tokens/trending.vue +++ /dev/null @@ -1,101 +0,0 @@ - - - diff --git a/web/pages/transactions/[requestKey].vue b/web/pages/transactions/[requestKey].vue deleted file mode 100644 index a283079d..00000000 --- a/web/pages/transactions/[requestKey].vue +++ /dev/null @@ -1,201 +0,0 @@ - - - diff --git a/web/pages/transactions/index.vue b/web/pages/transactions/index.vue deleted file mode 100644 index b6742b5a..00000000 --- a/web/pages/transactions/index.vue +++ /dev/null @@ -1,232 +0,0 @@ - - - diff --git a/web/plugins/chartjs.ts b/web/plugins/chartjs.ts deleted file mode 100644 index a242b7ae..00000000 --- a/web/plugins/chartjs.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { - Chart, - CategoryScale, - LinearScale, - PointElement, - LineElement, - Title, - Filler, - Tooltip, - Legend, -} from 'chart.js'; -import gradient from 'chartjs-plugin-gradient'; - -export default defineNuxtPlugin(() => { - Chart.register( - gradient, - CategoryScale, - Filler, - LinearScale, - Title, - Tooltip, - Legend, - PointElement, - LineElement, - ); -}); diff --git a/web/plugins/coingecko.ts b/web/plugins/coingecko.ts deleted file mode 100644 index 29ca0d75..00000000 --- a/web/plugins/coingecko.ts +++ /dev/null @@ -1,35 +0,0 @@ -export default defineNuxtPlugin(async () => { - const { CG_KEY: apiKey, CG_URL: baseUrl } = useRuntimeConfig().public; - - const request = async (endpoint: string, params = {}) => { - const url = new URL(`${baseUrl}/${endpoint}`) as any; - - url.search = new URLSearchParams({ ...params }); - - try { - const response = await fetch(url, { - headers: { - 'x-cg-pro-api-key': apiKey, - }, - }); - - if (!response.ok) { - console.warn(`HTTP error! status text: ${response.statusText}`); - throw new Error(`HTTP error! status: ${response.status}`); - } - - return await response.json(); - } catch (error) { - console.warn('Fetching CoinGecko API failed:', error); - return null; - } - }; - - return { - provide: { - coingecko: { - request, - }, - }, - }; -}); diff --git a/web/plugins/outside.ts b/web/plugins/outside.ts deleted file mode 100644 index af9e3d54..00000000 --- a/web/plugins/outside.ts +++ /dev/null @@ -1,5 +0,0 @@ -import outside from '@venegrad/vue3-click-outside'; - -export default defineNuxtPlugin(async nuxtApp => { - nuxtApp.vueApp.directive('outside', outside); -}); diff --git a/web/public/collection/badger.png b/web/public/collection/badger.png deleted file mode 100644 index 1c6b304b..00000000 Binary files a/web/public/collection/badger.png and /dev/null differ diff --git a/web/public/collection/banner.webp b/web/public/collection/banner.webp deleted file mode 100644 index 8ac56484..00000000 Binary files a/web/public/collection/banner.webp and /dev/null differ diff --git a/web/public/collection/bears.png b/web/public/collection/bears.png deleted file mode 100644 index 5c6105f6..00000000 Binary files a/web/public/collection/bears.png and /dev/null differ diff --git a/web/public/collection/brwalers.png b/web/public/collection/brwalers.png deleted file mode 100644 index 2b0e26a2..00000000 Binary files a/web/public/collection/brwalers.png and /dev/null differ diff --git a/web/public/collection/bulls.png b/web/public/collection/bulls.png deleted file mode 100644 index 8a79540c..00000000 Binary files a/web/public/collection/bulls.png and /dev/null differ diff --git a/web/public/collection/crew.png b/web/public/collection/crew.png deleted file mode 100644 index 067baa3c..00000000 Binary files a/web/public/collection/crew.png and /dev/null differ diff --git a/web/public/collection/dadbod.png b/web/public/collection/dadbod.png deleted file mode 100644 index d99aaeea..00000000 Binary files a/web/public/collection/dadbod.png and /dev/null differ diff --git a/web/public/collection/doggos.png b/web/public/collection/doggos.png deleted file mode 100644 index 01fed18a..00000000 Binary files a/web/public/collection/doggos.png and /dev/null differ diff --git a/web/public/collection/inu.png b/web/public/collection/inu.png deleted file mode 100644 index 916cb157..00000000 Binary files a/web/public/collection/inu.png and /dev/null differ diff --git a/web/public/collection/komodos.png b/web/public/collection/komodos.png deleted file mode 100644 index 35c4c8cf..00000000 Binary files a/web/public/collection/komodos.png and /dev/null differ diff --git a/web/public/collection/mining.png b/web/public/collection/mining.png deleted file mode 100644 index 43abf3fd..00000000 Binary files a/web/public/collection/mining.png and /dev/null differ diff --git a/web/public/collection/profile.webp b/web/public/collection/profile.webp deleted file mode 100644 index f1761c5d..00000000 Binary files a/web/public/collection/profile.webp and /dev/null differ diff --git a/web/public/empty/detail.png b/web/public/empty/detail.png deleted file mode 100644 index f5e56bed..00000000 Binary files a/web/public/empty/detail.png and /dev/null differ diff --git a/web/public/empty/nft.png b/web/public/empty/nft.png deleted file mode 100644 index 682c809e..00000000 Binary files a/web/public/empty/nft.png and /dev/null differ diff --git a/web/public/empty/txs.png b/web/public/empty/txs.png deleted file mode 100644 index 13978faf..00000000 Binary files a/web/public/empty/txs.png and /dev/null differ diff --git a/web/public/favicon.ico b/web/public/favicon.ico deleted file mode 100644 index ed0314e5..00000000 Binary files a/web/public/favicon.ico and /dev/null differ diff --git a/web/public/hackachain.svg b/web/public/hackachain.svg deleted file mode 100644 index c6eb77b8..00000000 --- a/web/public/hackachain.svg +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/web/public/marketplace/1.svg b/web/public/marketplace/1.svg deleted file mode 100644 index 1f917237..00000000 --- a/web/public/marketplace/1.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/web/public/marketplace/2.svg b/web/public/marketplace/2.svg deleted file mode 100644 index 6065dc01..00000000 --- a/web/public/marketplace/2.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/web/public/marketplace/3.svg b/web/public/marketplace/3.svg deleted file mode 100644 index c9f87af9..00000000 --- a/web/public/marketplace/3.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/web/public/nft-collection-head-banner.webp b/web/public/nft-collection-head-banner.webp deleted file mode 100644 index fe4de455..00000000 Binary files a/web/public/nft-collection-head-banner.webp and /dev/null differ diff --git a/web/public/nft-collection-profile-picture.webp b/web/public/nft-collection-profile-picture.webp deleted file mode 100644 index fd93c27a..00000000 Binary files a/web/public/nft-collection-profile-picture.webp and /dev/null differ diff --git a/web/public/nft/0.webp b/web/public/nft/0.webp deleted file mode 100644 index 05885948..00000000 Binary files a/web/public/nft/0.webp and /dev/null differ diff --git a/web/public/nft/10.webp b/web/public/nft/10.webp deleted file mode 100644 index 53ff255c..00000000 Binary files a/web/public/nft/10.webp and /dev/null differ diff --git a/web/public/nft/2.webp b/web/public/nft/2.webp deleted file mode 100644 index 05885948..00000000 Binary files a/web/public/nft/2.webp and /dev/null differ diff --git a/web/public/nft/3.webp b/web/public/nft/3.webp deleted file mode 100644 index 1389b939..00000000 Binary files a/web/public/nft/3.webp and /dev/null differ diff --git a/web/public/nft/4.webp b/web/public/nft/4.webp deleted file mode 100644 index d11f6375..00000000 Binary files a/web/public/nft/4.webp and /dev/null differ diff --git a/web/public/nft/5.webp b/web/public/nft/5.webp deleted file mode 100644 index 087686c9..00000000 Binary files a/web/public/nft/5.webp and /dev/null differ diff --git a/web/public/nft/6.webp b/web/public/nft/6.webp deleted file mode 100644 index b9a4739e..00000000 Binary files a/web/public/nft/6.webp and /dev/null differ diff --git a/web/public/nft/7.webp b/web/public/nft/7.webp deleted file mode 100644 index 0c81b823..00000000 Binary files a/web/public/nft/7.webp and /dev/null differ diff --git a/web/public/nft/8.webp b/web/public/nft/8.webp deleted file mode 100644 index 80fbd23b..00000000 Binary files a/web/public/nft/8.webp and /dev/null differ diff --git a/web/public/nft/9.webp b/web/public/nft/9.webp deleted file mode 100644 index dee77d69..00000000 Binary files a/web/public/nft/9.webp and /dev/null differ diff --git a/web/public/nft/mock.webp b/web/public/nft/mock.webp deleted file mode 100644 index cca45f10..00000000 Binary files a/web/public/nft/mock.webp and /dev/null differ diff --git a/web/public/tokens/crankk.svg b/web/public/tokens/crankk.svg deleted file mode 100644 index ad5aff69..00000000 --- a/web/public/tokens/crankk.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/web/public/tokens/ecko-dao.svg b/web/public/tokens/ecko-dao.svg deleted file mode 100644 index a9fac51c..00000000 --- a/web/public/tokens/ecko-dao.svg +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/web/public/tokens/hypercent.svg b/web/public/tokens/hypercent.svg deleted file mode 100644 index 8e630945..00000000 --- a/web/public/tokens/hypercent.svg +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/web/public/tokens/kaddex.svg b/web/public/tokens/kaddex.svg deleted file mode 100644 index df51732e..00000000 --- a/web/public/tokens/kaddex.svg +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/web/public/tokens/kadena.svg b/web/public/tokens/kadena.svg deleted file mode 100644 index 0bb9c1b6..00000000 --- a/web/public/tokens/kadena.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/web/public/tokens/kishu.svg b/web/public/tokens/kishu.svg deleted file mode 100644 index 155c122a..00000000 --- a/web/public/tokens/kishu.svg +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/web/public/tokens/launch.svg b/web/public/tokens/launch.svg deleted file mode 100644 index 9b6a9073..00000000 --- a/web/public/tokens/launch.svg +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/web/public/tokens/miners.svg b/web/public/tokens/miners.svg deleted file mode 100644 index 8c4c1202..00000000 --- a/web/public/tokens/miners.svg +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/web/public/tokens/swap.svg b/web/public/tokens/swap.svg deleted file mode 100644 index d6c90c91..00000000 --- a/web/public/tokens/swap.svg +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/web/server/tsconfig.json b/web/server/tsconfig.json deleted file mode 100644 index b9ed69c1..00000000 --- a/web/server/tsconfig.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "../.nuxt/tsconfig.server.json" -} diff --git a/web/tailwind.config.js b/web/tailwind.config.js deleted file mode 100644 index f93f70b3..00000000 --- a/web/tailwind.config.js +++ /dev/null @@ -1,72 +0,0 @@ -/** @type {import('tailwindcss').Config} */ -const defaultTheme = require('tailwindcss/defaultTheme'); - -export default { - content: [ - './components/**/*.{js,vue,ts}', - './layouts/**/*.vue', - './pages/**/*.vue', - './plugins/**/*.{js,ts}', - './app.vue', - './error.vue', - ], - theme: { - extend: { - fontFamily: { - sans: ['Inter', ...defaultTheme.fontFamily.sans], - title: ['Roboto', ...defaultTheme.fontFamily.sans], - }, - fontSize: { - xs: ['0.75rem', '140%'], - sm: ['0.875rem', '140%'], - base: ['1rem', '140%'], - lg: ['1.125rem', '140%'], - xl: ['1.25rem', '140%'], - '2xl': ['1.5rem', '140%'], - }, - colors: { - system: { - green: { - DEFAULT: '#38A169', - }, - - red: { - DEFAULT: '#C6454B', - }, - }, - - kadscan: { - 400: '#66F9CD', - 500: '#00F5AB', - 600: '#00C489', - 700: '#009367', - }, - - font: { - 400: '#FFFFFF', - 450: '#B3B3B3', - 500: '#939393', - }, - - gray: { - 900: '#010101', - 800: '#1A1C1D', - 700: '#292B2C', - 600: '#343636', - 500: '#3E4041', - 400: '#484A4B', - 300: '#525454', - 200: '#555757', - 100: '#5E6060', - }, - }, - }, - screens: { - sm: '640px', - md: '768px', - lg: '1024px', - xl: '1280px', - bazk: '1352px', - }, - }, -}; diff --git a/web/tsconfig.json b/web/tsconfig.json deleted file mode 100644 index a746f2a7..00000000 --- a/web/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - // https://nuxt.com/docs/guide/concepts/typescript - "extends": "./.nuxt/tsconfig.json" -}