Skip to content

Commit

Permalink
Revert "Tags-based examples fixes"
Browse files Browse the repository at this point in the history
This reverts commit e5d99d6.
  • Loading branch information
abernatskiy committed Jun 25, 2024
1 parent daba755 commit 19bde41
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 40 deletions.
2 changes: 1 addition & 1 deletion docs/sdk/how-to-start/squid-development.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ Edit the definition of `const processor` to

3. [Select all data fields](/sdk/reference/processors/evm-batch/field-selection) necessary for your task (e.g. `gasUsed` for transactions).

See [reference documentation](/sdk/reference/processors/evm-batch) for more info and [processor configuration showcase](/sdk/examples/?tags=["Showcase"]) for a representative set of examples.
See [reference documentation](/sdk/reference/processors/evm-batch) for more info and [processor configuration showcase](/sdk/examples/#evm-showcase) for a representative set of examples.

```mdx-code-block
</TabItem>
Expand Down
3 changes: 3 additions & 0 deletions src/components/CodeSlider/CodeSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ export function CodeSlider(props: any) {
<a ref={linkRef} href={slides[0].link} target="_blank"
className={clsx('text-fg-role--accent-02')}>Full squid</a>
<span className="code-slider__line"></span>
<Link to="/sdk/examples/#evm-showcase"
className={clsx('text-fg-role--accent-02')}>Showcase</Link>
<span className="code-slider__line"></span>
</div>

<button onClick={handleClickExpand}
Expand Down
14 changes: 1 addition & 13 deletions src/components/TagsNavigation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React, {useEffect, useState, useRef} from 'react';
import s from './index.module.css'
import axios from "axios";
import {useHistory} from 'react-router-dom';
import BrowserOnly from '@docusaurus/BrowserOnly';

interface Data {
cards: DataCard[]
Expand Down Expand Up @@ -33,18 +32,7 @@ interface Tags {
color: string
}

export default function TagsNavigation(props: {tags: string}): JSX.Element {
return (
<BrowserOnly fallback={<div>Loading...</div>}>
{() => {
return <TagsNavigationBase {...props} />
}}
</BrowserOnly>
);
}


function TagsNavigationBase({tags}: { tags: string }): JSX.Element {
export default function TagsNavigation({tags}: { tags: string }): JSX.Element {
const [data, setData] = useState<Data>(undefined)
const [activeTags, setActiveTags] = useState<string[]>([])
const [checkedTags, setCheckedTags] = useState<{ [key: string]: boolean }>({});
Expand Down
39 changes: 13 additions & 26 deletions static/json/tags.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@
"id": "ink!",
"description": "Indexing <a href=\"https://use.ink\">ink!</a> smart contracts"
},
{
"id": "Showcase",
"description": "Squids from the processor configuration showcase: a representative set of data request examples"
},
{
"id": "Outdated",
"description": "Squids that use deprecated architecture and/or packages, but are still useful as illustrations of select features"
Expand Down Expand Up @@ -119,7 +115,6 @@
"Two-pass",
"Traces",
"Direct RPC calls",
"Showcase",
"Outdated"
]
}
Expand All @@ -144,12 +139,12 @@
"tags": [
"EVM",
"Postgres+GraphQL",
"Hot blocks",
"Hot blocks",
"DEX",
"ERC20",
"Two-pass",
"Direct RPC calls",
"Outdated"
"Outdated"
],
"url": "https://github.com/subsquid-labs/uniswapv3-squid"
},
Expand All @@ -158,8 +153,7 @@
"description": "Fetching txs data in bulk, filtering the output.",
"tags": [
"EVM",
"Postgres+GraphQL",
"Showcase"
"Postgres+GraphQL"
],
"url": "https://github.com/subsquid-labs/showcase00-analyzing-a-large-number-of-wallets"
},
Expand All @@ -169,9 +163,8 @@
"tags": [
"EVM",
"Postgres+GraphQL",
"ERC20",
"Hot blocks",
"Showcase"
"ERC20",
"Hot blocks"
],
"url": "https://github.com/subsquid-labs/showcase01-all-usdc-transfers"
},
Expand All @@ -181,8 +174,7 @@
"tags": [
"EVM",
"Postgres+GraphQL",
"ERC20",
"Showcase"
"ERC20"
],
"url": "https://github.com/subsquid-labs/showcase02-all-transfers-to-a-wallet"
},
Expand All @@ -191,8 +183,7 @@
"description": "Fetches all transactions addressed to the AAVE contract plus all event logs emitted.",
"tags": [
"EVM",
"Postgres+GraphQL",
"Showcase"
"Postgres+GraphQL"
],
"url": "https://github.com/subsquid-labs/showcase03-all-events-caused-by-contract-calls"
},
Expand All @@ -201,8 +192,7 @@
"description": "Fetches all Mint(address,address,uint256) event logs plus parent txs.",
"tags": [
"EVM",
"Postgres+GraphQL",
"Showcase"
"Postgres+GraphQL"
],
"url": "https://github.com/subsquid-labs/showcase04-all-mint-events"
},
Expand All @@ -212,8 +202,7 @@
"tags": [
"EVM",
"Postgres+GraphQL",
"DEX",
"Showcase"
"DEX"
],
"url": "https://github.com/subsquid-labs/showcase05-dex-pair-creation-and-swaps"
},
Expand All @@ -223,9 +212,8 @@
"tags": [
"EVM",
"Postgres+GraphQL",
"ERC721",
"Traces",
"Showcase"
"ERC721",
"Traces"
],
"url": "https://github.com/subsquid-labs/showcase06-all-bayc-call-traces"
},
Expand All @@ -235,9 +223,8 @@
"tags": [
"EVM",
"Postgres+GraphQL",
"ERC721",
"Traces",
"Showcase"
"ERC721",
"Traces"
],
"url": "https://github.com/subsquid-labs/showcase07-grab-all-nft-transfers/"
},
Expand Down

0 comments on commit 19bde41

Please sign in to comment.