-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
41,534 additions
and
30,143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,45 @@ | ||
<template> | ||
<div class="h-max self-center"> | ||
<p class="copyright max-w-100 footer-text">© <span>2018-{{ new Date().getFullYear() }}</span><contributorsText /></p> | ||
<p class="copyright max-w-100 footer-text"> | ||
© <span>2018-{{ new Date().getFullYear() }}</span | ||
><contributorsText /> | ||
</p> | ||
<p class="copyright max-w-100 footer-text"><licenseText /></p> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="tsx"> | ||
const WITNET_FOUNDATION_URL = 'https://witnet.foundation' | ||
const CREATIVE_COMMONS_URL = 'https://creativecommons.org/publicdomain/zero/1.0/' | ||
const contributorsText = () => <span> by <a href={WITNET_FOUNDATION_URL} target="_blank">Witnet Foundation</a> and individual contributors.</span> | ||
const licenseText = () => <span> Content available under a <a href={CREATIVE_COMMONS_URL} target="_blank">Creative Commons License</a>.</span> | ||
const contributorsText = () => ( | ||
<span> | ||
{' '} | ||
by{' '} | ||
<a href={WITNET_FOUNDATION_URL} target="_blank"> | ||
Witnet Foundation | ||
</a>{' '} | ||
and individual contributors. | ||
</span> | ||
) | ||
const licenseText = () => ( | ||
<span> | ||
{' '} | ||
Content available under a{' '} | ||
<a href={CREATIVE_COMMONS_URL} target="_blank"> | ||
Creative Commons License | ||
</a> | ||
. | ||
</span> | ||
) | ||
defineProps({ | ||
customContributorsText: { | ||
type: String, | ||
required: false, | ||
required: false | ||
}, | ||
customLicenseText: { | ||
type: String, | ||
required: false, | ||
required: false | ||
} | ||
}) | ||
</script> | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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() | ||
Check failure on line 78 in src/components/Footer/WFooter.spec.ts GitHub Actions / cache-and-installsrc/components/Footer/WFooter.spec.ts > WFooter > renders properly
Check failure on line 78 in src/components/Footer/WFooter.spec.ts GitHub Actions / cache-and-installsrc/components/Footer/WFooter.spec.ts > WFooter > renders properly
|
||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,9 +96,9 @@ export const Footer: Story = { | |
{ | ||
url: '#tutorials', | ||
label: 'tutorials' | ||
}, | ||
} | ||
] | ||
}, | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.