Link changelog (#589)

* env: update RPC endpoint

* feat: added changelog link to the footer version
This commit is contained in:
Linkie Link 2023-10-26 09:38:20 +02:00 committed by GitHub
parent 5afead47f2
commit fb2915ba37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 5 deletions

View File

@ -29,7 +29,7 @@ NEXT_PUBLIC_INCENTIVES=osmo1nkahswfr8shg8rlxqwup0vgahp0dk4x8w6tkv3rra8rratnut36s
NEXT_PUBLIC_SWAPPER=osmo1wee0z8c7tcawyl647eapqs4a88q8jpa7ddy6nn2nrs7t47p2zhxswetwla NEXT_PUBLIC_SWAPPER=osmo1wee0z8c7tcawyl647eapqs4a88q8jpa7ddy6nn2nrs7t47p2zhxswetwla
NEXT_PUBLIC_PYTH=osmo13ge29x4e2s63a8ytz2px8gurtyznmue4a69n5275692v3qn3ks8q7cwck7 NEXT_PUBLIC_PYTH=osmo13ge29x4e2s63a8ytz2px8gurtyznmue4a69n5275692v3qn3ks8q7cwck7
NEXT_PUBLIC_PYTH_ENDPOINT=https://hermes.pyth.network/api NEXT_PUBLIC_PYTH_ENDPOINT=https://hermes.pyth.network/api
NEXT_PUBLIC_MAINNET_REST=https://osmosis.rpc.p2p.world/4dqst8e8Cgd2HMb2HDNkimP7NIkcbjuk/lcd/ NEXT_PUBLIC_MAINNET_REST=https://osmosis-node.marsprotocol.io/GGSFGSFGFG34/osmosis-rpc-front/
NEXT_PUBLIC_CANDLES_ENDPOINT=https://osmosis-candles.marsprotocol.io/ NEXT_PUBLIC_CANDLES_ENDPOINT=https://osmosis-candles.marsprotocol.io/
NEXT_PUBLIC_WALLET_CONNECT_ID=d93fdffb159bae5ec87d8fee4cdbb045 NEXT_PUBLIC_WALLET_CONNECT_ID=d93fdffb159bae5ec87d8fee4cdbb045
CHARTING_LIBRARY_REPOSITORY=github.com/tradingview/charting_library CHARTING_LIBRARY_REPOSITORY=github.com/tradingview/charting_library

View File

@ -1,14 +1,22 @@
import Text from 'components/Text' import { TextLink } from 'components/TextLink'
import { DocURL } from 'types/enums/docURL'
import packageInfo from '../../package.json' import packageInfo from '../../package.json'
export default function Footer() { export default function Footer() {
const version = `v${packageInfo.version}`
const flatVersion = packageInfo.version.split('.').join('')
return ( return (
<footer className='flex items-center justify-center w-full h-6 -mt-6'> <footer className='flex items-center justify-center w-full h-6 -mt-6'>
<div className='w-full px-4 pb-4 text-right'> <div className='w-full px-4 pb-4 text-right'>
<Text size='xs' className='opacity-50'> <TextLink
v{packageInfo.version} className='text-xs text-white opacity-50 hover:text-white hover:opacity-80'
</Text> href={`${DocURL.CHANGE_LOG_URL}#release-v${flatVersion}`}
target='_blank'
title={`Mars Protocol ${version} change log`}
>
{version}
</TextLink>
</div> </div>
</footer> </footer>
) )

View File

@ -1,6 +1,7 @@
export enum DocURL { export enum DocURL {
ADVANCED_TRADING_URL = 'https://docs.marsprotocol.io/docs/learn/mars-v2/trade/margin', ADVANCED_TRADING_URL = 'https://docs.marsprotocol.io/docs/learn/mars-v2/trade/margin',
BORROW_LENDING_URL = 'https://docs.marsprotocol.io/docs/learn/mars-v2/borrow', BORROW_LENDING_URL = 'https://docs.marsprotocol.io/docs/learn/mars-v2/borrow',
CHANGE_LOG_URL = 'https://docs.marsprotocol.io/docs/overview/changelog',
COOKIE_POLICY_URL = 'https://docs.marsprotocol.io/docs/overview/legal/cookie-policy', COOKIE_POLICY_URL = 'https://docs.marsprotocol.io/docs/overview/legal/cookie-policy',
DOCS_URL = 'https://docs.marsprotocol.io/', DOCS_URL = 'https://docs.marsprotocol.io/',
FARM_INTRO_URL = 'https://docs.marsprotocol.io/docs/learn/tutorials/farming/farming-intro', FARM_INTRO_URL = 'https://docs.marsprotocol.io/docs/learn/tutorials/farming/farming-intro',