Skip to content

Commit f417e91

Browse files
aelmanaakhadniZelig880markshenoudathedriftofwords
authored
Ccip directory (#2141)
* get-status API vercel function Co-authored-by: Karim <[email protected]> * fix caching * mock * mock * cleanup * Initial Work on CCIP * feat: Add segments to the navbbar * feat: Tokens' page * Remove code for now * Feat: token page * fix: search * fix: show correct lanes * fix: chainhero search * feat: added total lanes and total networks * fix: show the correct chains for each network * feat: Drawer & filters * First draft to move page out * feat: API integrations * remove unused files * mock * mock * get-status API vercel function Co-authored-by: Karim <[email protected]> * fix caching * cleanup * update * update * update * Move token and Chains * Fix search links * Fix chain after Merge * Fix URL from main navigation * Rename heading * Fix token passing wrong environment * mock * mock * get-status API vercel function Co-authored-by: Karim <[email protected]> * fix caching * cleanup * update * update * update * feat: Drawer Mobile close button * feat: hook tables to seach and filters * feat: lane drawer * remove unused console.logs * Fix Testnet token not working * Add CCIP Directory on sidebar * Include missing import * Fix component import * Fix component import * Fix component import * fix: lane search * Add Search Overlay * fix: breadcrumb * fix: search styles * feat: add search to token * fix: search + tokens operational * fix: lane drawer spacing * feat: copy value component * fix: copy value component * Multiple Changes * mock * mock * get-status API vercel function Co-authored-by: Karim <[email protected]> * fix caching * cleanup * update * update * update * Add Link for the "add my token" button * fix: token drawer * fix: token tabs * feat: fee tokens * Various update from Review * Add RMN * Fix some of the URLs being incorrectly set * Fix build * Fix center align on build * Apply multiple changes from review * Enable RMN and Fix Address URL * Add Native token on feeToken * Add Data typees for Josh * Draft for Network operation * Fix ExplorerUrl * Fix TS issue * Add tooltips * Fix Typo in tooltip * Add Tooltips * fix: Update "list my token"'s url (#15) * fix: Heading colors and other minor css issues (#20) * fix: Page width incorrect (DocsLayout grid) (#19) * mock * mock * get-status API vercel function Co-authored-by: Karim <[email protected]> * fix caching * cleanup * update * update * update * update * Fix: Drawer (#26) * fix: drawer animation * fix: drawer's close button's hover state * fix: Removing the grid banner (#25) * fix: icon sizes & use css variables (#24) * Fix Fee Token URL (#17) * Use Symbol instead than name for Native Gas Token (#16) * Filter out FeeTokenOnly (#18) * Fix: spacing address row (#22) Co-authored-by: Simone Cuomo <[email protected]> * fix: Header spacing (#23) * fix: Header spacing * fix: gap space in the chain/token hero component * fix: Single/Plural words (#21) * fix: Single/Plural words * fix: lans count * fix: add ? to not trigger a JS error * fix: Align Networks/Tokens/lanes Alphabetically (#27) * fix: Align Networks/Tokens/lanes Alphabetically * fix: remove unused .sort() * fix: remove unused .sort() in Token.astro * Navigation buttons and Backdrop blur * fallback icon * Improve sizing of Chain cards (#28) * Improve Image Fallback (#31) * Fix image fallback on homepage * Improve image fallback handling * Add extra SEO * Fix 340 (#32) * fix: Make the CCIP responsive * fix: CSS responsiveness * fix: typo * fix: minor css issues * fix: use client:load instead of client:only * fix: table padding * fix: token grid * fix: hero paddings * Revert the percentage width --------- Co-authored-by: Simone Cuomo <[email protected]> * Fix token search * Padding and spaces changes * Feat: Add see more, CSS fixes (#36) * Feat: Add see more, CSS fixes * fix: css padding * fix: chain layout padding * fix: tabs css on iphone se * Review from Nav * Update Tooltio * fix: Breadcrum + page titles (#37) * Update Page to be "directory" instead than "supported-networks" (#29) * Update Page to be "directory" instead than "supported-networks" * Ament links to "directory" * Remove hardcoded URL * update fee token * Update link verbiage for security reason * Improve logic and UI for Operational API * Update API to use Astro URL * fix: lane drawer on main page (#39) * Move statuses to be client side only * Fix lane key * Update capacity to show N/A instead than 0 * Add EnsureOutOfOrder * Add OpenGraph image * Add Get certified on navbar * update links * Remove double Drawer * update links * cleanup * Change default state to status unavailable * Updated changelog links * update * Explorer/Directory Changelog entry * redirect links * rollback * Fix testnet case issue * zksync testnet link * fix package-lock.json * fix changelog * fix links * fix --------- Co-authored-by: Karim <[email protected]> Co-authored-by: Simone Cuomo <[email protected]> Co-authored-by: Mark Shenouda <[email protected]> Co-authored-by: Mark S. Shenouda <[email protected]> Co-authored-by: Mark S. Shenouda <[email protected]> Co-authored-by: Crystal Gomes <[email protected]>
1 parent 297961b commit f417e91

File tree

131 files changed

+29149
-13867
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+29149
-13867
lines changed

Diff for: .eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ public/samples
1616

1717
/src/pages/chainlink-functions/resources/example-source.js
1818
/src/env.d.ts
19+
20+
src/graphql/generated.ts

Diff for: .gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# build output
22
dist/
33
.astro/
4+
.vercel/
45

56
# dependencies
67
node_modules/
@@ -37,3 +38,4 @@ typechain-types/
3738

3839
.cache
3940
.idea
41+
.vercel

Diff for: astro.config.ts

+9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { defineConfig } from "astro/config"
2+
import vercel from "@astrojs/vercel/serverless"
23
import preact from "@astrojs/preact"
34
import react from "@astrojs/react"
45
import mdx from "@astrojs/mdx"
@@ -7,11 +8,14 @@ import rehypeAutolinkHeadings from "rehype-autolink-headings"
78
import rehypeWrapAll from "rehype-wrap-all"
89
import sitemap from "@astrojs/sitemap"
910
import { RehypePlugins } from "@astrojs/markdown-remark"
11+
import yaml from "@rollup/plugin-yaml"
1012

1113
// https://astro.build/config
1214
export default defineConfig({
1315
site: "https://docs.chain.link",
1416
redirects: {
17+
"/ccip/directory": "/ccip/directory/mainnet",
18+
"/ccip/supported-networks": "/ccip/directory/mainnet",
1519
"/getting-started": "/getting-started/conceptual-overview",
1620
"/resources": "/resources/link-token-contracts",
1721
},
@@ -40,4 +44,9 @@ export default defineConfig({
4044
syntaxHighlight: "prism",
4145
smartypants: false,
4246
},
47+
output: "hybrid",
48+
adapter: vercel(),
49+
vite: {
50+
plugins: [yaml()],
51+
},
4352
})

Diff for: codegen.ts

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import { CodegenConfig } from "@graphql-codegen/cli"
2+
import dotenv from "dotenv"
3+
4+
dotenv.config()
5+
6+
const requiredEnvVars = ["GRAPHQL_SERVER_URL", "GRAPHQL_API_TOKEN"] as const
7+
8+
requiredEnvVars.forEach((envVar) => {
9+
if (!process.env[envVar]) {
10+
throw new Error(`Environment variable ${envVar} is not set. Please check your .env file.`)
11+
}
12+
})
13+
14+
const config: CodegenConfig = {
15+
schema: [
16+
{
17+
[process.env.GRAPHQL_SERVER_URL as string]: {
18+
headers: {
19+
Authorization: `${process.env.GRAPHQL_API_TOKEN}`,
20+
},
21+
},
22+
},
23+
],
24+
documents: "src/graphql/queries/**/*.gql",
25+
generates: {
26+
"src/graphql/generated.ts": {
27+
plugins: ["typescript", "typescript-operations", "typescript-graphql-request"],
28+
config: {
29+
avoidOptionals: true,
30+
},
31+
},
32+
},
33+
}
34+
35+
export default config

0 commit comments

Comments
 (0)