From ed46ec19c4f3dab6a91335511c38da21e865786e Mon Sep 17 00:00:00 2001 From: camewell <130561684+camewell071@users.noreply.github.com> Date: Fri, 19 Jan 2024 15:56:47 +0700 Subject: [PATCH 1/7] chore: update copy --- src/modules/Whitelist/steps/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/Whitelist/steps/index.tsx b/src/modules/Whitelist/steps/index.tsx index 8797bd1af..2edd7820f 100644 --- a/src/modules/Whitelist/steps/index.tsx +++ b/src/modules/Whitelist/steps/index.tsx @@ -157,8 +157,8 @@ const Steps = () => { isActive: true, step: MultiplierStep.authen, right: { - title: !token ? '+1000 PTS' : '+1 PTS', - desc: !token ? 'first post' : 'per view' + title: !token ? '+1000 PTS' : '+1000 PTS', + desc: !token ? 'first post' : 'per 1000 view' }, handleShowManualPopup: handleShowManualPopup, }; From 2786beb7b20c1a288bf13aded13f2446deb50252 Mon Sep 17 00:00:00 2001 From: camewell <130561684+camewell071@users.noreply.github.com> Date: Fri, 19 Jan 2024 16:08:46 +0700 Subject: [PATCH 2/7] chore: update code --- src/modules/Whitelist/steps/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/Whitelist/steps/index.tsx b/src/modules/Whitelist/steps/index.tsx index 2edd7820f..e7fec3cfc 100644 --- a/src/modules/Whitelist/steps/index.tsx +++ b/src/modules/Whitelist/steps/index.tsx @@ -74,7 +74,7 @@ const Steps = () => { const onShareModular = () => { const shareUrl = getLink(user?.referral_code || ''); - const content = `BUILD WHATEVER ON BITCOIN.\n\nAs a modular maxi (holding ${formatCurrency(new BigNumber(allowCelestia.amount.fee || '0').toFixed(2, BigNumber.ROUND_FLOOR), 0, 0)} TIA), I’m so excited to see Modular Blockchains arrive on Bitcoin.\n\nPowered by @BVMnetwork, you can deploy your own Bitcoin L2 chain with @Celestia and @Optimism in a few clicks.\n\n🤯🤯🤯\n`; + const content = `BUILD WHATEVER ON BITCOIN.\n\nAs a modular maxi (holding ${formatCurrency(new BigNumber(allowCelestia.amount.fee || '0').toFixed(2, BigNumber.ROUND_FLOOR), 0, 0)} TIA), I’m so excited to see Modular Blockchains arrive on Bitcoin.\n\nPowered by @BVMnetwork, you can deploy your own Bitcoin L2 chain with @CelestiaOrg and @Optimism in a few clicks.\n\n🤯🤯🤯\n`; window.open( `https://twitter.com/intent/tweet?url=${shareUrl}&text=${encodeURIComponent( @@ -147,7 +147,8 @@ const Steps = () => {

You’re a true Bitcoiner. You’ve spent {{formatCurrency(allowBTC.amount.fee, 0, 6, 'BTC')}} BTC on transaction fees. Your total reward is {{formatCurrency(allowBTC.amount.point, 0)}} pts.

: 'The more sats you have spent on Bitcoin, the more points you’ll get. Connect your Unisat or Xverse wallet to prove the account ownership.'; const isNeedClaimBTCPoint = allowBTC.isUnclaimed && allowBTC.amount.unClaimedPoint && !!allowBTC.amount.txsCount && !allowBTC.isProcessing; - const isNeedClaimCelestiaPoint = allowCelestia.isUnclaimed && allowCelestia.amount.unClaimedPoint && !allowBTC.isProcessing; + // const isNeedClaimCelestiaPoint = allowCelestia.isUnclaimed && allowCelestia.amount.unClaimedPoint && !allowBTC.isProcessing; + const isNeedClaimCelestiaPoint = true const authenTask = { title: 'Tweet about BVM', desc: 'Tweet as often as you like & tag @BVMnetwork to rank up.', From 50fb9942163f09892efc9302624204f7ea282134 Mon Sep 17 00:00:00 2001 From: camewell <130561684+camewell071@users.noreply.github.com> Date: Fri, 19 Jan 2024 16:17:50 +0700 Subject: [PATCH 3/7] chore: hot fix --- src/modules/Whitelist/steps/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/Whitelist/steps/index.tsx b/src/modules/Whitelist/steps/index.tsx index e7fec3cfc..8383ba5d3 100644 --- a/src/modules/Whitelist/steps/index.tsx +++ b/src/modules/Whitelist/steps/index.tsx @@ -147,8 +147,7 @@ const Steps = () => {

You’re a true Bitcoiner. You’ve spent {{formatCurrency(allowBTC.amount.fee, 0, 6, 'BTC')}} BTC on transaction fees. Your total reward is {{formatCurrency(allowBTC.amount.point, 0)}} pts.

: 'The more sats you have spent on Bitcoin, the more points you’ll get. Connect your Unisat or Xverse wallet to prove the account ownership.'; const isNeedClaimBTCPoint = allowBTC.isUnclaimed && allowBTC.amount.unClaimedPoint && !!allowBTC.amount.txsCount && !allowBTC.isProcessing; - // const isNeedClaimCelestiaPoint = allowCelestia.isUnclaimed && allowCelestia.amount.unClaimedPoint && !allowBTC.isProcessing; - const isNeedClaimCelestiaPoint = true + const isNeedClaimCelestiaPoint = allowCelestia.isUnclaimed && allowCelestia.amount.unClaimedPoint && !allowBTC.isProcessing; const authenTask = { title: 'Tweet about BVM', desc: 'Tweet as often as you like & tag @BVMnetwork to rank up.', From 0f7b4cee5d2eac831c1c96a9018684d05f597b22 Mon Sep 17 00:00:00 2001 From: camewell <130561684+camewell071@users.noreply.github.com> Date: Fri, 19 Jan 2024 17:13:50 +0700 Subject: [PATCH 4/7] chore: update code --- src/modules/Whitelist/leaderBoard/index.tsx | 6 +++--- src/modules/Whitelist/leaderBoard/styles.module.scss | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/modules/Whitelist/leaderBoard/index.tsx b/src/modules/Whitelist/leaderBoard/index.tsx index 5952ab0fe..27985e4fa 100644 --- a/src/modules/Whitelist/leaderBoard/index.tsx +++ b/src/modules/Whitelist/leaderBoard/index.tsx @@ -188,9 +188,9 @@ const LeaderBoard = () => { name={data?.twitter_name || data?.twitter_username || ''} /> - - {formatName(data?.twitter_name as string, 12)} - +

+ {data?.twitter_name || ""} +

{data?.need_active && ( YOU diff --git a/src/modules/Whitelist/leaderBoard/styles.module.scss b/src/modules/Whitelist/leaderBoard/styles.module.scss index e10e198f7..26f1250bd 100644 --- a/src/modules/Whitelist/leaderBoard/styles.module.scss +++ b/src/modules/Whitelist/leaderBoard/styles.module.scss @@ -114,6 +114,7 @@ table { color: black; overflow: hidden; text-overflow: ellipsis; + max-width: 200px; } .subTitle { From 263f2904acd2d8db7663113016beac99de10dc72 Mon Sep 17 00:00:00 2001 From: 2712 <2712@trustless.computer> Date: Fri, 19 Jan 2024 17:29:50 +0700 Subject: [PATCH 5/7] update code --- src/modules/Whitelist/leaderBoard/index.tsx | 170 +++++++++++++------- 1 file changed, 108 insertions(+), 62 deletions(-) diff --git a/src/modules/Whitelist/leaderBoard/index.tsx b/src/modules/Whitelist/leaderBoard/index.tsx index 27985e4fa..e37832854 100644 --- a/src/modules/Whitelist/leaderBoard/index.tsx +++ b/src/modules/Whitelist/leaderBoard/index.tsx @@ -33,14 +33,14 @@ const valueToImage: any = { '30': 'flash_supper.svg', }; -export const LEADER_BOARD_ID = 'LEADER_BOARD_ID' +export const LEADER_BOARD_ID = 'LEADER_BOARD_ID'; const LeaderBoard = () => { const { list } = useAppSelector(leaderBoardSelector); const [isFetching, setIsFetching] = useState(true); const [refreshing, setRefreshing] = useState(false); const needReload = useAppSelector(commonSelector).needReload; - const dispatch = useAppDispatch() + const dispatch = useAppDispatch(); const hasIncrementedPageRef = useRef(false); const refParams = useRef({ @@ -50,7 +50,7 @@ const LeaderBoard = () => { const refInitial = useRef(false); useEffect(() => { - fetchData(true); + fetchData(true); }, [needReload]); const removeOwnerRecord = (arr: ILeaderBoardPoint[] = []) => { @@ -60,10 +60,12 @@ const LeaderBoard = () => { const fetchData = async (isNew?: boolean) => { try { - const sortList = (arr: ILeaderBoardPoint[]) => { - return uniqBy(orderBy(arr, item => Number(item.need_active || false), 'desc'), (item: ILeaderBoardPoint) => item.twitter_id) - } + return uniqBy( + orderBy(arr, (item) => Number(item.need_active || false), 'desc'), + (item: ILeaderBoardPoint) => item.twitter_id, + ); + }; const { data: response, count } = await getTopLeaderBoards({ ...refParams.current, }); @@ -77,18 +79,22 @@ const LeaderBoard = () => { page: 1, }; const reArr = removeOwnerRecord(response); - const arr = sortList(response2.concat(reArr)) - dispatch(setLeaderBoard({ - list: arr, - count - })); + const arr = sortList(response2.concat(reArr)); + dispatch( + setLeaderBoard({ + list: arr, + count, + }), + ); } else { const reArr = removeOwnerRecord(response); const arr = sortList([...reArr]); - dispatch(setLeaderBoard({ - list: arr, - count - })); + dispatch( + setLeaderBoard({ + list: arr, + count, + }), + ); } } catch (error) { } finally { @@ -122,10 +128,9 @@ const LeaderBoard = () => { fontSize: '12px', letterSpacing: '-0.5px', borderBottom: '1px solid #FFFFFF33', - textTransform: 'uppercase' + textTransform: 'uppercase', }; - const columns: ColumnProp[] = useMemo(() => { return [ { @@ -138,7 +143,7 @@ const LeaderBoard = () => { fontWeight: 500, verticalAlign: 'middle', letterSpacing: '-0.5px', - color: 'black !important' + color: 'black !important', }, render(data: ILeaderBoardPoint) { return ( @@ -149,7 +154,7 @@ const LeaderBoard = () => { justifyContent={'space-between'} paddingLeft={'16px'} > - {data.ranking} + {data.ranking}
); }, @@ -174,28 +179,24 @@ const LeaderBoard = () => { justifyContent={'space-between'} cursor="pointer" onClick={() => { - window.open(`https://twitter.com/${data?.twitter_username}`) + window.open(`https://twitter.com/${data?.twitter_username}`); }} > -

- {data?.twitter_name || ""} -

- {data?.need_active && ( - - YOU - - )} +

{data?.twitter_name || ''}

+ {data?.need_active && ( + YOU + )}
@@ -210,7 +211,7 @@ const LeaderBoard = () => { style={{ justifyContent: 'center', width: '100%', - textTransform: 'uppercase' + textTransform: 'uppercase', }} > BOOST @@ -230,17 +231,24 @@ const LeaderBoard = () => { flexDirection="row" gap="4px" alignItems="center" - className={clsx( - styles.tagBoost, - )} + className={clsx(styles.tagBoost)} > - - {data?.boost || 0}% + + + {data?.boost || 0}% + ); @@ -254,7 +262,7 @@ const LeaderBoard = () => { justifyContent: 'center', alignSelf: 'center', width: '100%', - textTransform: 'uppercase' + textTransform: 'uppercase', }} > TOTAL @@ -278,7 +286,11 @@ const LeaderBoard = () => { > - {formatCurrency(new BigNumber(data?.point || '0').toNumber(), 0, 0)} + {formatCurrency( + new BigNumber(data?.point || '0').toNumber(), + 0, + 0, + )} @@ -297,7 +309,7 @@ const LeaderBoard = () => { }} gap="3px" > -

INVITE POINTS

+

INVITE PTS

{ padding="8px" label={ -

Referral points are calculated based on the total number of friends you refer to the allowlist.

+

+ Referral points are calculated based on the total number of + friends you refer to the allowlist. +

} > - +
), @@ -351,7 +369,7 @@ const LeaderBoard = () => { }} gap="3px" > -

BITCOIN OG POINTS

+

BITCOIN PTS

{ padding="8px" label={ -

Bitcoin OG is calculated from total gas fees paid on Bitcoin.

+

+ Bitcoin OG is calculated from total gas fees paid on + Bitcoin. +

} > - +
), @@ -405,7 +429,7 @@ const LeaderBoard = () => { gap: '4px', }} > -

MODULAR POINTS

+

MODULAR PTS

{ padding="8px" label={ -

Modular Points are calculated from your holding & staking TIA

+

+ Modular Points are calculated from your holding & staking{' '} + TIA +

} > - +
), @@ -459,7 +489,7 @@ const LeaderBoard = () => { gap: '4px', }} > -

TWEET POINTS

+

TWEET PTS

{ padding="8px" label={ -

Content Points are calculated based on the performance of your posts on X, including Views. - Note: To be qualified, you must tag:
@BVMnetwork

+

+ Content Points are calculated based on the performance of + your posts on X, including Views. Note: To be qualified, you + must tag:
+ @BVMnetwork +

} > - +
), @@ -497,7 +534,7 @@ const LeaderBoard = () => { {formatCurrency(data?.content_point, 0, 0)} - {data.need_active ? + {data.need_active ? ( { } >
- +
- : } + ) : ( + + )} ); @@ -527,7 +570,6 @@ const LeaderBoard = () => { ]; }, []); - // const remainingTime = () => { // const now = dayjs(); @@ -559,11 +601,15 @@ const LeaderBoard = () => { const renderTimeLine = (params: { content: React.ReactNode }) => { return ( - ic-dot + ic-dot {params.content} - ) - } + ); + }; return ( From c6788684373e89a01cf7a1562aa47b5d51e2fa5d Mon Sep 17 00:00:00 2001 From: 0xmegalodon Date: Fri, 19 Jan 2024 17:31:13 +0700 Subject: [PATCH 6/7] update private sale --- src/modules/Whitelist/stepsEco/Step/index.tsx | 11 ++++++++++- src/modules/Whitelist/stepsEco/index.tsx | 16 ++++++++++++---- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/src/modules/Whitelist/stepsEco/Step/index.tsx b/src/modules/Whitelist/stepsEco/Step/index.tsx index 01a60f354..6114caf7d 100644 --- a/src/modules/Whitelist/stepsEco/Step/index.tsx +++ b/src/modules/Whitelist/stepsEco/Step/index.tsx @@ -6,6 +6,8 @@ import cx from 'clsx'; import Image from 'next/image'; import React, { useMemo } from 'react'; import s from './styles.module.scss'; +import sanitizeHtml from 'sanitize-html'; +import { ALLOWED_ATTRIBUTES } from '@/constants/constants'; export interface IItemCommunity { title: string; @@ -54,7 +56,14 @@ export default function ItemCommunity({
{content?.title}
{!!content?.desc && ( -
{content?.desc}
+
)} {!!content?.actionText && ( diff --git a/src/modules/Whitelist/stepsEco/index.tsx b/src/modules/Whitelist/stepsEco/index.tsx index 2f7dec8d9..cbe985e7d 100644 --- a/src/modules/Whitelist/stepsEco/index.tsx +++ b/src/modules/Whitelist/stepsEco/index.tsx @@ -23,7 +23,9 @@ const StepsEco = () => { return [ { title: 'Share the word about NakaChain', - desc: 'Follow naka_chain, Post on X and tag @Naka_chain to climb the ranks.', + desc: `Follow naka_chain, Post on X and tag @Naka_chain to climb the ranks. + Learn more > + `, actionText: 'Post', image: 'ic-naka.svg', actionHandle: handleShareTw, @@ -35,7 +37,9 @@ const StepsEco = () => { }, { title: 'Swap and Add Liquidity on Naka Genesis', - desc: 'The higher the volume you make the more airdrop points you will get.', + desc: `The higher the volume you make the more airdrop points you will get. + Learn more > + `, actionText: 'Connect', image: 'ic-naka.svg', actionHandle: () => { @@ -49,7 +53,9 @@ const StepsEco = () => { }, { title: 'Play Satoshi\'s Gambit', - desc: 'Experience the first 3D fully on-chain game on Bitcoin. Play, have fun, and earn more points.', + desc: `Experience the first 3D fully on-chain game on Bitcoin. Play, have fun, and earn more points. + Learn more > + `, actionText: 'Play', image: 'bitcoin-arcade.svg', actionHandle: () => { @@ -63,7 +69,9 @@ const StepsEco = () => { }, { title: 'Crypto Bull Run', - desc: 'Run to get fit in reality, engage online in a Web3 environment, and raise funds for charity all at once!', + desc: `Run to get fit in reality, engage online in a Web3 environment, and raise funds for charity all at once! + Learn more > + `, actionText: 'Run', image: 'alpha.svg', actionHandle: () => { From 9af5771041d757108f80caba6c72b22acf0e8784 Mon Sep 17 00:00:00 2001 From: 0xmegalodon Date: Fri, 19 Jan 2024 17:32:28 +0700 Subject: [PATCH 7/7] update private sale --- src/modules/Whitelist/stepAirdrop/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/Whitelist/stepAirdrop/index.tsx b/src/modules/Whitelist/stepAirdrop/index.tsx index 393aa934d..9c5a3d483 100644 --- a/src/modules/Whitelist/stepAirdrop/index.tsx +++ b/src/modules/Whitelist/stepAirdrop/index.tsx @@ -45,7 +45,7 @@ const StepsAirdrop = () => { return [ { title: 'New: Timechain', - desc: `Like and repost to enter a raffle for a Timechain (Inscription ID: 102269) - the first long-form generative art collection on Ordinals. + desc: `Like and repost to enter a raffle for a Timechain (Inscription ID: 39554) - the first long-form generative art collection on Ordinals. `, actionText: 'Like and repost', image: "time-chain.svg", @@ -76,7 +76,7 @@ const StepsAirdrop = () => { ) }, - expiredTime: '2024-01-22 08:00:00', + expiredTime: '2024-01-24 08:00:00', showExpireTime: true }, {