-
Notifications
You must be signed in to change notification settings - Fork 485
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #824 from blockscout/footer
footer
- Loading branch information
Showing
99 changed files
with
534 additions
and
254 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
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
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
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
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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import React from 'react'; | ||
|
||
import appConfig from 'configs/app/config'; | ||
import isBrowser from 'lib/isBrowser'; | ||
|
||
const base = 'https://github.com/blockscout/blockscout/issues/new/'; | ||
|
||
const bodyTemplate = `*Describe your issue here.* | ||
### Environment | ||
* Backend Version/branch/commit: ${ appConfig.blockScoutVersion } | ||
* Frontend Version+commit: ${ [ appConfig.frontendVersion, appConfig.frontendCommit ].filter(Boolean).join('+') } | ||
* User Agent: __userAgent__ | ||
### Steps to reproduce | ||
*Tell us how to reproduce this issue. ❤️ if you can push up a branch to your fork with a regression test we can run to reproduce locally.* | ||
### Expected behaviour | ||
*Tell us what should happen.* | ||
### Actual behaviour | ||
*Tell us what happens instead.*`; | ||
|
||
const labels = 'new UI'; | ||
|
||
const title = `${ appConfig.network.name }: <Issue Title>`; | ||
|
||
export default function useIssueUrl() { | ||
const [ userAgent, setUserAgent ] = React.useState(''); | ||
const isInBrowser = isBrowser(); | ||
|
||
React.useEffect(() => { | ||
if (isInBrowser) { | ||
setUserAgent(window.navigator.userAgent); | ||
} | ||
}, [ isInBrowser ]); | ||
|
||
const params = new URLSearchParams({ labels, title, body: bodyTemplate.replace('__userAgent__', userAgent) }); | ||
return base + '?' + params.toString(); | ||
|
||
} |
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
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 |
---|---|---|
@@ -0,0 +1,76 @@ | ||
import type { CustomLinksGroup } from 'types/footerLinks'; | ||
|
||
export const FOOTER_LINKS: Array<CustomLinksGroup> = [ | ||
{ | ||
title: 'Company', | ||
links: [ | ||
{ | ||
text: 'Advertise', | ||
url: 'https://coinzilla.com/', | ||
}, | ||
{ | ||
text: 'Staking', | ||
url: '', | ||
}, | ||
{ | ||
text: 'Contact us', | ||
url: '', | ||
}, | ||
{ | ||
text: 'Brand assets', | ||
url: '', | ||
}, | ||
{ | ||
text: 'Term of service', | ||
url: '', | ||
}, | ||
], | ||
}, | ||
{ | ||
title: 'Community', | ||
links: [ | ||
{ | ||
text: 'API docs', | ||
url: '', | ||
}, | ||
{ | ||
text: 'Knowledge base', | ||
url: '', | ||
}, | ||
{ | ||
text: 'Network status', | ||
url: '', | ||
}, | ||
{ | ||
text: 'Learn Alphabet', | ||
url: '', | ||
}, | ||
], | ||
}, | ||
{ | ||
title: 'Product', | ||
links: [ | ||
{ | ||
text: 'Stake Alphabet', | ||
url: '', | ||
}, | ||
{ | ||
text: 'Build token', | ||
url: '', | ||
}, | ||
{ | ||
text: 'Build DAPPS', | ||
url: '', | ||
}, | ||
{ | ||
text: 'NFT marketplace', | ||
url: '', | ||
}, | ||
{ | ||
text: 'Become validator', | ||
url: '', | ||
}, | ||
|
||
], | ||
}, | ||
]; |
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
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.