Commit 93814022 authored by web's avatar web

logo icon\login hide\footer link -up

parent 906f1712
import type { Feature } from './types'; import type { Feature } from './types';
import services from '../services'; // import services from '../services';
import { getEnvValue } from '../utils'; // import { getEnvValue } from '../utils';
const title = 'My account'; const title = 'My account';
const config: Feature<{ isEnabled: true; recaptchaSiteKey: string }> = (() => { const config: Feature<{ isEnabled: true; recaptchaSiteKey: string }> = (() => {
if (getEnvValue('NEXT_PUBLIC_IS_ACCOUNT_SUPPORTED') === 'true' && services.reCaptchaV2.siteKey) { // 禁用account功能,隐藏Log in按钮
return Object.freeze({
title, // if (getEnvValue('NEXT_PUBLIC_IS_ACCOUNT_SUPPORTED') === 'true' && services.reCaptchaV2.siteKey) {
isEnabled: true, // return Object.freeze({
recaptchaSiteKey: services.reCaptchaV2.siteKey, // title,
}); // isEnabled: true,
} // recaptchaSiteKey: services.reCaptchaV2.siteKey,
// });
// }
return Object.freeze({ return Object.freeze({
title, title,
......
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 375 375" version="1.2"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="500"
zoomAndPan="magnify" viewBox="0 0 375 374.999991" height="500"
preserveAspectRatio="xMidYMid meet" version="1.2">
<defs> <defs>
<clipPath id="a"> <clipPath id="e8a2e741f0">
<path d="M50 102.598h274.98v169.5H50Zm0 0"/> <path
d="M 50 102.597656 L 324.980469 102.597656 L 324.980469 272.097656 L 50 272.097656 Z M 50 102.597656 " />
</clipPath> </clipPath>
</defs> </defs>
<g clip-path="url(#a)"> <g id="72d71a302d">
<path style="stroke:none;fill-rule:nonzero;fill:currentColor;fill-opacity:1" d="m197.14 141.746-4.16 2.574 13.614-27.683a25.143 25.143 0 0 1 45.215.203l53.867 111.71a10.589 10.589 0 0 0 4.304 4.614 10.588 10.588 0 0 0 10.82-.2l4.16-2.577-13.612 27.687a25.138 25.138 0 0 1-22.559 14.035 25.136 25.136 0 0 1-22.656-14.242l-53.867-111.71a10.587 10.587 0 0 0-15.125-4.41Zm-87.777-.203a10.579 10.579 0 0 1 4.301 4.613l53.871 111.711a25.123 25.123 0 0 0 22.656 14.242 25.151 25.151 0 0 0 22.559-14.035l13.613-27.687-4.16 2.578a10.586 10.586 0 0 1-10.824.2 10.558 10.558 0 0 1-4.3-4.614L153.206 116.84a25.139 25.139 0 0 0-22.656-14.242 25.148 25.148 0 0 0-22.559 14.039L94.38 144.32l4.16-2.574a10.604 10.604 0 0 1 10.824-.203ZM51.352 242.43l7.445 15.445a25.127 25.127 0 0 0 22.656 14.242 25.143 25.143 0 0 0 22.559-14.039l13.613-27.683-4.16 2.578a10.595 10.595 0 0 1-10.824.199 10.579 10.579 0 0 1-4.301-4.613l-11.567-23.98c-4.425-9.18-17.484-9.231-21.98-.087l-13.398 27.242a12.223 12.223 0 0 0-.043 10.696Zm0 0"/> <g clip-rule="nonzero" clip-path="url(#e8a2e741f0)">
<path style=" stroke:none;fill-rule:nonzero;fill:currentColor;fill-opacity:1;"
d="M 197.140625 141.746094 L 192.980469 144.320312 L 206.59375 116.636719 C 210.820312 108.042969 219.574219 102.597656 229.152344 102.597656 C 238.816406 102.597656 247.621094 108.136719 251.808594 116.839844 L 305.675781 228.550781 C 306.609375 230.492188 308.109375 232.097656 309.980469 233.164062 C 313.351562 235.085938 317.503906 235.007812 320.800781 232.964844 L 324.960938 230.386719 L 311.347656 258.074219 C 307.121094 266.664062 298.375 272.109375 288.789062 272.109375 C 279.125 272.109375 270.320312 266.574219 266.132812 257.867188 L 212.265625 146.15625 C 211.335938 144.21875 209.832031 142.609375 207.960938 141.542969 C 204.589844 139.625 200.4375 139.703125 197.140625 141.746094 Z M 109.363281 141.542969 C 111.234375 142.609375 112.734375 144.21875 113.664062 146.15625 L 167.535156 257.867188 C 171.714844 266.574219 180.523438 272.109375 190.191406 272.109375 C 199.769531 272.109375 208.519531 266.664062 212.75 258.074219 L 226.363281 230.386719 L 222.203125 232.964844 C 218.90625 235.011719 214.75 235.085938 211.378906 233.164062 C 209.507812 232.097656 208.007812 230.492188 207.078125 228.550781 L 153.207031 116.839844 C 149.019531 108.136719 140.21875 102.597656 130.550781 102.597656 C 120.972656 102.597656 112.222656 108.042969 107.992188 116.636719 L 94.378906 144.320312 L 98.539062 141.746094 C 101.835938 139.703125 105.992188 139.625 109.363281 141.542969 Z M 51.351562 242.429688 L 58.796875 257.875 C 62.976562 266.582031 71.789062 272.117188 81.453125 272.117188 C 91.03125 272.117188 99.785156 266.671875 104.011719 258.078125 L 117.625 230.394531 L 113.464844 232.972656 C 110.167969 235.019531 106.011719 235.089844 102.640625 233.171875 C 100.769531 232.105469 99.269531 230.496094 98.339844 228.558594 L 86.773438 204.578125 C 82.347656 195.398438 69.289062 195.347656 64.792969 204.492188 L 51.394531 231.734375 C 49.734375 235.101562 49.726562 239.046875 51.351562 242.429688 Z M 51.351562 242.429688 " />
</g>
</g> </g>
</svg> </svg>
\ No newline at end of file
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 30" fill="currentColor" version="1.2"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="120"
<defs> zoomAndPan="magnify" viewBox="0 0 90 30.000001" height="40" preserveAspectRatio="xMidYMid meet"
<clipPath id="a"> version="1.2">
<path d="M9.004 6.129H36.18V22.87H9.004Zm0 0"/> <defs>
</clipPath> <clipPath id="4b88d8e9b6">
</defs> <path
<g clip-path="url(#a)"> d="M 9.003906 6.128906 L 36.179688 6.128906 L 36.179688 22.871094 L 9.003906 22.871094 Z M 9.003906 6.128906 " />
<path style="stroke:none;fill-rule:nonzero;fill:currentColor;fill-opacity:1" d="m23.54 9.992-.411.258 1.344-2.734a2.476 2.476 0 0 1 4.457.02l5.312 11.026c.094.192.242.348.426.454.332.191.742.183 1.066-.02l.41-.254-1.343 2.73a2.474 2.474 0 0 1-4.457-.019L25.03 10.43a1.047 1.047 0 0 0-1.492-.438Zm-8.657-.02c.183.106.332.266.426.458l5.312 11.023a2.476 2.476 0 0 0 4.457.02l1.344-2.73-.41.253c-.325.203-.735.211-1.067.02a1.037 1.037 0 0 1-.425-.453L19.207 7.534a2.474 2.474 0 0 0-4.457-.02l-1.344 2.735.41-.258c.325-.199.735-.207 1.067-.02ZM9.16 19.93l.735 1.523a2.48 2.48 0 0 0 4.46.024l1.344-2.735-.41.254a1.042 1.042 0 0 1-1.492-.433l-1.14-2.368c-.438-.906-1.727-.91-2.169-.008l-1.32 2.688a1.205 1.205 0 0 0-.008 1.055Zm0 0"/> </clipPath>
</g> </defs>
<g style="fill:currentColor;fill-opacity:1"> <g id="3eb55ee947">
<path style="stroke:none" d="M14.484-6.828c0 1.406-.293 2.64-.875 3.703a6.213 6.213 0 0 1-2.421 2.469c-1.043.586-2.266.875-3.672.875-1.407 0-2.641-.29-3.704-.875a6.355 6.355 0 0 1-2.468-2.469C.758-4.188.469-5.422.469-6.828c0-1.414.289-2.649.875-3.703A6.254 6.254 0 0 1 3.812-13c1.063-.594 2.297-.89 3.704-.89 1.406 0 2.629.296 3.671.89a6.115 6.115 0 0 1 2.422 2.469c.582 1.054.875 2.289.875 3.703Zm-6.968 4.86c.894 0 1.675-.204 2.343-.61a4.294 4.294 0 0 0 1.563-1.719c.375-.726.562-1.57.562-2.531 0-.969-.187-1.817-.562-2.547a4.194 4.194 0 0 0-1.563-1.719c-.668-.406-1.449-.61-2.343-.61-.907 0-1.7.204-2.375.61-.68.406-1.204.98-1.579 1.719C3.188-8.645 3-7.797 3-6.828c0 .96.188 1.805.563 2.531.374.73.898 1.305 1.578 1.719.675.406 1.468.61 2.375.61Zm0 0" transform="translate(37.385 21.85)"/> <g clip-rule="nonzero" clip-path="url(#4b88d8e9b6)">
</g> <path style=" stroke:none;fill-rule:nonzero;fill:currentColor;fill-opacity:1;"
<g style="fill:currentColor;fill-opacity:1"> d="M 23.539062 9.992188 L 23.128906 10.25 L 24.472656 7.515625 C 24.890625 6.667969 25.75 6.128906 26.695312 6.128906 C 27.648438 6.128906 28.519531 6.675781 28.929688 7.535156 L 34.242188 18.5625 C 34.335938 18.753906 34.484375 18.910156 34.667969 19.015625 C 35 19.207031 35.410156 19.199219 35.734375 18.996094 L 36.144531 18.742188 L 34.800781 21.472656 C 34.386719 22.320312 33.523438 22.859375 32.578125 22.859375 C 31.625 22.859375 30.757812 22.3125 30.34375 21.453125 L 25.03125 10.429688 C 24.9375 10.238281 24.792969 10.078125 24.605469 9.972656 C 24.273438 9.785156 23.863281 9.792969 23.539062 9.992188 Z M 14.882812 9.972656 C 15.066406 10.078125 15.214844 10.238281 15.308594 10.429688 L 20.621094 21.453125 C 21.03125 22.3125 21.902344 22.859375 22.855469 22.859375 C 23.800781 22.859375 24.660156 22.320312 25.078125 21.472656 L 26.421875 18.742188 L 26.011719 18.996094 C 25.6875 19.199219 25.277344 19.207031 24.945312 19.015625 C 24.757812 18.910156 24.613281 18.753906 24.519531 18.5625 L 19.207031 7.535156 C 18.792969 6.675781 17.925781 6.128906 16.972656 6.128906 C 16.027344 6.128906 15.164062 6.667969 14.75 7.515625 L 13.40625 10.25 L 13.816406 9.992188 C 14.140625 9.792969 14.550781 9.785156 14.882812 9.972656 Z M 9.160156 19.929688 L 9.894531 21.453125 C 10.308594 22.3125 11.175781 22.859375 12.128906 22.859375 C 13.074219 22.859375 13.9375 22.324219 14.355469 21.476562 L 15.699219 18.742188 L 15.289062 18.996094 C 14.960938 19.199219 14.554688 19.207031 14.21875 19.015625 C 14.035156 18.910156 13.886719 18.753906 13.796875 18.5625 L 12.65625 16.195312 C 12.21875 15.289062 10.929688 15.285156 10.488281 16.1875 L 9.167969 18.875 C 9.003906 19.207031 9 19.597656 9.160156 19.929688 Z M 9.160156 19.929688 " />
<path style="stroke:none" d="M-.078-12.094c-.133-.289-.145-.554-.031-.797.105-.25.27-.441.5-.578a1.41 1.41 0 0 1 .718-.203 1.4 1.4 0 0 1 .672.156c.188.094.336.262.453.5l4.72 9.063 4.64-9.016c.238-.469.601-.703 1.094-.703.257 0 .503.074.734.219.238.137.406.328.5.578.101.25.07.547-.094.89L8.078-.671C7.816-.222 7.441 0 6.953 0c-.23 0-.453-.055-.672-.172a1.112 1.112 0 0 1-.484-.531Zm0 0" transform="translate(52.565 21.85)"/> </g>
</g> <g style="fill:currentColor;fill-opacity:1;">
<g style="fill:currentColor;fill-opacity:1"> <g transform="translate(37.384797, 21.849452)">
<path style="stroke:none" d="M7.016-13.89c.226 0 .441.046.64.14.207.094.36.246.453.453l6.079 11.922c.187.313.238.59.156.828-.086.242-.25.43-.5.563a1.57 1.57 0 0 1-.766.203c-.2 0-.402-.059-.61-.172a1.088 1.088 0 0 1-.484-.453l-1.5-2.985H3.563l-1.5 2.985a.932.932 0 0 1-.47.484c-.21.094-.413.14-.609.14-.242 0-.48-.07-.718-.202a1.168 1.168 0 0 1-.5-.563c-.114-.238-.11-.492.015-.765l6.125-11.985c.114-.238.258-.394.438-.469.176-.082.398-.125.672-.125Zm0 3.624L4.609-5.469h4.813Zm0 0" transform="translate(66.435 21.85)"/> <path style="stroke:none"
</g> d="M 14.484375 -6.828125 C 14.484375 -5.421875 14.191406 -4.1875 13.609375 -3.125 C 13.035156 -2.070312 12.226562 -1.25 11.1875 -0.65625 C 10.144531 -0.0703125 8.921875 0.21875 7.515625 0.21875 C 6.109375 0.21875 4.875 -0.0703125 3.8125 -0.65625 C 2.757812 -1.25 1.9375 -2.070312 1.34375 -3.125 C 0.757812 -4.1875 0.46875 -5.421875 0.46875 -6.828125 C 0.46875 -8.242188 0.757812 -9.476562 1.34375 -10.53125 C 1.9375 -11.59375 2.757812 -12.414062 3.8125 -13 C 4.875 -13.59375 6.109375 -13.890625 7.515625 -13.890625 C 8.921875 -13.890625 10.144531 -13.59375 11.1875 -13 C 12.226562 -12.414062 13.035156 -11.59375 13.609375 -10.53125 C 14.191406 -9.476562 14.484375 -8.242188 14.484375 -6.828125 Z M 7.515625 -1.96875 C 8.410156 -1.96875 9.191406 -2.171875 9.859375 -2.578125 C 10.523438 -2.992188 11.046875 -3.566406 11.421875 -4.296875 C 11.796875 -5.023438 11.984375 -5.867188 11.984375 -6.828125 C 11.984375 -7.796875 11.796875 -8.644531 11.421875 -9.375 C 11.046875 -10.113281 10.523438 -10.6875 9.859375 -11.09375 C 9.191406 -11.5 8.410156 -11.703125 7.515625 -11.703125 C 6.609375 -11.703125 5.816406 -11.5 5.140625 -11.09375 C 4.460938 -10.6875 3.9375 -10.113281 3.5625 -9.375 C 3.1875 -8.644531 3 -7.796875 3 -6.828125 C 3 -5.867188 3.1875 -5.023438 3.5625 -4.296875 C 3.9375 -3.566406 4.460938 -2.992188 5.140625 -2.578125 C 5.816406 -2.171875 6.609375 -1.96875 7.515625 -1.96875 Z M 7.515625 -1.96875 " />
</svg> </g>
</g>
<g style="fill:currentColor;fill-opacity:1;">
<g transform="translate(52.56476, 21.849452)">
<path style="stroke:none"
d="M -0.078125 -12.09375 C -0.210938 -12.382812 -0.222656 -12.648438 -0.109375 -12.890625 C -0.00390625 -13.140625 0.160156 -13.332031 0.390625 -13.46875 C 0.617188 -13.601562 0.859375 -13.671875 1.109375 -13.671875 C 1.367188 -13.671875 1.59375 -13.617188 1.78125 -13.515625 C 1.96875 -13.421875 2.117188 -13.253906 2.234375 -13.015625 L 6.953125 -3.953125 L 11.59375 -12.96875 C 11.832031 -13.4375 12.195312 -13.671875 12.6875 -13.671875 C 12.945312 -13.671875 13.191406 -13.597656 13.421875 -13.453125 C 13.660156 -13.316406 13.828125 -13.125 13.921875 -12.875 C 14.023438 -12.625 13.992188 -12.328125 13.828125 -11.984375 L 8.078125 -0.671875 C 7.816406 -0.222656 7.441406 0 6.953125 0 C 6.722656 0 6.5 -0.0546875 6.28125 -0.171875 C 6.070312 -0.285156 5.910156 -0.460938 5.796875 -0.703125 Z M -0.078125 -12.09375 " />
</g>
</g>
<g style="fill:currentColor;fill-opacity:1;">
<g transform="translate(66.434987, 21.849452)">
<path style="stroke:none"
d="M 7.015625 -13.890625 C 7.242188 -13.890625 7.457031 -13.84375 7.65625 -13.75 C 7.863281 -13.65625 8.015625 -13.503906 8.109375 -13.296875 L 14.1875 -1.375 C 14.375 -1.0625 14.425781 -0.785156 14.34375 -0.546875 C 14.257812 -0.304688 14.09375 -0.117188 13.84375 0.015625 C 13.601562 0.148438 13.347656 0.21875 13.078125 0.21875 C 12.878906 0.21875 12.675781 0.160156 12.46875 0.046875 C 12.257812 -0.0546875 12.097656 -0.207031 11.984375 -0.40625 L 10.484375 -3.390625 L 3.5625 -3.390625 L 2.0625 -0.40625 C 1.957031 -0.175781 1.800781 -0.015625 1.59375 0.078125 C 1.382812 0.171875 1.179688 0.21875 0.984375 0.21875 C 0.742188 0.21875 0.503906 0.148438 0.265625 0.015625 C 0.0351562 -0.117188 -0.128906 -0.304688 -0.234375 -0.546875 C -0.347656 -0.785156 -0.34375 -1.039062 -0.21875 -1.3125 L 5.90625 -13.296875 C 6.019531 -13.535156 6.164062 -13.691406 6.34375 -13.765625 C 6.519531 -13.847656 6.742188 -13.890625 7.015625 -13.890625 Z M 7.015625 -10.265625 L 4.609375 -5.46875 L 9.421875 -5.46875 Z M 7.015625 -10.265625 " />
</g>
</g>
</g>
</svg>
\ No newline at end of file
...@@ -7,9 +7,7 @@ import type { CustomLinksGroup } from 'types/footerLinks'; ...@@ -7,9 +7,7 @@ import type { CustomLinksGroup } from 'types/footerLinks';
import config from 'configs/app'; import config from 'configs/app';
import type { ResourceError } from 'lib/api/resources'; import type { ResourceError } from 'lib/api/resources';
import useApiQuery from 'lib/api/useApiQuery';
import useFetch from 'lib/hooks/useFetch'; import useFetch from 'lib/hooks/useFetch';
import useIssueUrl from 'lib/hooks/useIssueUrl';
import { Link } from 'toolkit/chakra/link'; import { Link } from 'toolkit/chakra/link';
import { Skeleton } from 'toolkit/chakra/skeleton'; import { Skeleton } from 'toolkit/chakra/skeleton';
import { CONTENT_MAX_WIDTH } from 'ui/shared/layout/utils'; import { CONTENT_MAX_WIDTH } from 'ui/shared/layout/utils';
...@@ -21,50 +19,18 @@ const MAX_LINKS_COLUMNS = 4; ...@@ -21,50 +19,18 @@ const MAX_LINKS_COLUMNS = 4;
const Footer = () => { const Footer = () => {
const { data: backendVersionData } = useApiQuery('general:config_backend_version', {
queryOptions: {
staleTime: Infinity,
enabled: !config.features.opSuperchain.isEnabled,
},
});
const issueUrl = useIssueUrl(backendVersionData?.backend_version);
const BLOCKSCOUT_LINKS = [ const BLOCKSCOUT_LINKS = [
{
icon: 'edit' as const,
iconSize: '16px',
text: 'Submit an issue',
url: issueUrl,
},
{
icon: 'social/git' as const,
iconSize: '18px',
text: 'Contribute',
url: 'https://github.com/blockscout/blockscout',
},
{ {
icon: 'social/twitter' as const, icon: 'social/twitter' as const,
iconSize: '18px', iconSize: '18px',
text: 'X (ex-Twitter)', text: 'X (ex-Twitter)',
url: 'https://x.com/blockscout', url: 'https://x.com/movachain',
},
{
icon: 'social/discord' as const,
iconSize: '24px',
text: 'Discord',
url: 'https://discord.gg/blockscout',
}, },
{ {
icon: 'brands/blockscout' as const, icon: 'social/telega' as const,
iconSize: '18px', iconSize: '18px',
text: 'All chains', text: 'Telegram',
url: 'https://www.blockscout.com/chains-and-projects', url: 'https://t.me/MovaChain',
},
{
icon: 'donate' as const,
iconSize: '20px',
text: 'Donate',
url: 'https://eth.blockscout.com/address/0xfB4aF6A8592041E9BcE186E5aC4BDbd2B137aD11',
}, },
]; ];
...@@ -188,8 +154,8 @@ const Footer = () => { ...@@ -188,8 +154,8 @@ const Footer = () => {
gap={ 1 } gap={ 1 }
gridTemplateColumns={{ gridTemplateColumns={{
base: 'repeat(auto-fill, 160px)', base: 'repeat(auto-fill, 160px)',
lg: 'repeat(2, 160px)', lg: 'repeat(1, 160px)', //2
xl: 'repeat(3, 160px)', xl: 'repeat(1, 160px)', //3
}} }}
gridTemplateRows={{ gridTemplateRows={{
base: 'auto', base: 'auto',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment