From a41873dc2efe5f1bc0aff62e679cbefadcb82e42 Mon Sep 17 00:00:00 2001 From: gabaldon Date: Wed, 28 Aug 2024 11:38:13 +0200 Subject: [PATCH] fix(style): run format --- .github/workflows/ci.yaml | 2 +- src/components/Footer/LicenseText.vue | 33 +- src/components/Footer/WFooter.spec.ts | 70 +- src/components/Footer/WFooter.stories.ts | 4 +- src/components/Footer/WFooter.ts | 7 +- src/components/Footer/WFooter.vue | 38 +- .../Footer/__snapshots__/WFooter.spec.ts.snap | 71448 +++++++++------- src/components/Navbar/WNavbar.spec.ts | 12 +- src/components/Navbar/WNavbar.stories.ts | 8 +- src/components/Navbar/WNavbar.ts | 8 +- src/components/Navbar/WNavbar.vue | 27 +- src/components/Section/WSection.vue | 18 +- src/components/index.ts | 2 +- 13 files changed, 41534 insertions(+), 30143 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1d00902..3f796d3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -44,7 +44,7 @@ jobs: run: pnpm format - name: Run unit tests - run: pnpm test:unit + run: pnpm run test:unit - name: Run build run: pnpm build diff --git a/src/components/Footer/LicenseText.vue b/src/components/Footer/LicenseText.vue index 83bb567..5fd1eb2 100644 --- a/src/components/Footer/LicenseText.vue +++ b/src/components/Footer/LicenseText.vue @@ -1,6 +1,9 @@ @@ -8,17 +11,35 @@ \ No newline at end of file + diff --git a/src/components/Footer/WFooter.spec.ts b/src/components/Footer/WFooter.spec.ts index 65f33c6..d2eae91 100644 --- a/src/components/Footer/WFooter.spec.ts +++ b/src/components/Footer/WFooter.spec.ts @@ -5,7 +5,75 @@ import WFooter from './WFooter.vue' describe('WFooter', () => { it('renders properly', () => { - const wrapper = mount(WFooter) + const wrapper = mount(WFooter, { + props: { + footerSections: [ + { + title: 'Developers', + links: [ + { + url: '#reference', + label: 'reference' + }, + { + url: '#randomness', + label: 'randomness' + }, + { + url: '#randomness', + label: 'randomness' + }, + { + url: '#supported_chains', + label: 'supported_chains' + }, + { + url: '#solidity_sdk', + label: 'solidity_sdk' + } + ] + }, + { + title: 'Ecosystem', + links: [ + { + url: '#block_explorer', + label: 'block_explorer' + }, + { + url: '#data_feeds_explorer', + label: 'data_feeds_explorer' + }, + { + url: '#sheikah', + label: 'sheikah' + }, + { + url: '#my_wit_wallet', + label: 'my_wit_wallet' + } + ] + }, + { + title: 'Learn', + links: [ + { + url: '#whitepaper', + label: 'whitepaper' + }, + { + url: '#medium', + label: 'medium' + }, + { + url: '#tutorials', + label: 'tutorials' + } + ] + } + ] + } + }) expect(wrapper).toMatchSnapshot() }) diff --git a/src/components/Footer/WFooter.stories.ts b/src/components/Footer/WFooter.stories.ts index ea90209..27cae96 100644 --- a/src/components/Footer/WFooter.stories.ts +++ b/src/components/Footer/WFooter.stories.ts @@ -96,9 +96,9 @@ export const Footer: Story = { { url: '#tutorials', label: 'tutorials' - }, + } ] - }, + } ] } } diff --git a/src/components/Footer/WFooter.ts b/src/components/Footer/WFooter.ts index 6fdb6de..c899459 100644 --- a/src/components/Footer/WFooter.ts +++ b/src/components/Footer/WFooter.ts @@ -1,9 +1,8 @@ export type FooterSection = { - title: string, + title: string links: FooterLink[] } -export type FooterLink = { key: string - url: string, +export type FooterLink = { + url: string label: string } - diff --git a/src/components/Footer/WFooter.vue b/src/components/Footer/WFooter.vue index 5494d28..df81ae4 100644 --- a/src/components/Footer/WFooter.vue +++ b/src/components/Footer/WFooter.vue @@ -1,8 +1,5 @@