From c4b213b6bf8fd35fe6875af57b8b95614d3afc38 Mon Sep 17 00:00:00 2001 From: Sabrina Ferguson Date: Tue, 21 May 2024 12:22:14 -0400 Subject: [PATCH 1/3] feat: improve nav loading in content --- app.vue | 3 +- .../{_info.yml => _dir.yml} | 0 .../{_info.yml => _dir.yml} | 0 .../{_info.yml => _dir.yml} | 0 .../erc20-paymaster/{_info.yml => _dir.yml} | 0 .../{_info.yml => _dir.yml} | 0 .../{_info.yml => _dir.yml} | 0 .../guide-subquery/{_info.yml => _dir.yml} | 0 .../guide-the-graph/{_info.yml => _dir.yml} | 0 .../guide-viem/{_info.yml => _dir.yml} | 0 .../guide-wagmi/{_info.yml => _dir.yml} | 0 .../{_info.yml => _dir.yml} | 0 .../guide-web3js/{_info.yml => _dir.yml} | 0 .../{_info.yml => _dir.yml} | 0 .../{_info.yml => _dir.yml} | 0 .../{_info.yml => _dir.yml} | 0 .../{_info.yml => _dir.yml} | 0 .../{_info.yml => _dir.yml} | 0 .../{_info.yml => _dir.yml} | 0 .../{_info.yml => _dir.yml} | 0 .../{_info.yml => _dir.yml} | 0 .../{_info.yml => _dir.yml} | 0 layouts/tutorials.vue | 73 ------------------ nuxt.config.ts | 5 ++ pages/index.vue | 22 ++++-- pages/tutorials/[...slug].vue | 77 +++++++++---------- pages/tutorials/index.vue | 14 +++- 27 files changed, 67 insertions(+), 127 deletions(-) rename content/tutorials/cross-chain-governance/{_info.yml => _dir.yml} (100%) rename content/tutorials/daily-spend-limit-account/{_info.yml => _dir.yml} (100%) rename content/tutorials/dapp-nft-paymaster/{_info.yml => _dir.yml} (100%) rename content/tutorials/erc20-paymaster/{_info.yml => _dir.yml} (100%) rename content/tutorials/frontend-paymaster/{_info.yml => _dir.yml} (100%) rename content/tutorials/guide-dipdup-indexer/{_info.yml => _dir.yml} (100%) rename content/tutorials/guide-subquery/{_info.yml => _dir.yml} (100%) rename content/tutorials/guide-the-graph/{_info.yml => _dir.yml} (100%) rename content/tutorials/guide-viem/{_info.yml => _dir.yml} (100%) rename content/tutorials/guide-wagmi/{_info.yml => _dir.yml} (100%) rename content/tutorials/guide-walletconnect/{_info.yml => _dir.yml} (100%) rename content/tutorials/guide-web3js/{_info.yml => _dir.yml} (100%) rename content/tutorials/how-to-deploy-contract/{_info.yml => _dir.yml} (100%) rename content/tutorials/how-to-deposit-erc20/{_info.yml => _dir.yml} (100%) rename content/tutorials/how-to-deposit-eth/{_info.yml => _dir.yml} (100%) rename content/tutorials/how-to-send-l2-l1-message/{_info.yml => _dir.yml} (100%) rename content/tutorials/how-to-test-contracts/{_info.yml => _dir.yml} (100%) rename content/tutorials/how-to-verify-contracts/{_info.yml => _dir.yml} (100%) rename content/tutorials/how-to-withdraw-erc20/{_info.yml => _dir.yml} (100%) rename content/tutorials/how-to-withdraw-eth/{_info.yml => _dir.yml} (100%) rename content/tutorials/native-aa-multisig/{_info.yml => _dir.yml} (100%) delete mode 100644 layouts/tutorials.vue diff --git a/app.vue b/app.vue index b0a6cbf..2d6d035 100644 --- a/app.vue +++ b/app.vue @@ -3,6 +3,7 @@ provideHeadlessUseId(() => useId()); const { seo } = useAppConfig(); const { data: navigation } = await useAsyncData('navigation', () => fetchContentNavigation()); +provide('navigation', navigation); useHead({ meta: [ @@ -38,8 +39,6 @@ useSeoMeta({ }); defineOgImageComponent('OgImageZK'); - -provide('navigation', navigation);