@visualizevalue/mint-app-base 0.1.103 → 0.1.105

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -109,6 +109,7 @@ watch(width, () => {
109
109
  video,
110
110
  iframe {
111
111
  width: 100cqw;
112
+ max-width: 100cqmin;
112
113
  max-height: 100cqmin;
113
114
  aspect-ratio: 1/1 auto;
114
115
  }
@@ -8,6 +8,7 @@
8
8
  mintOpen,
9
9
  currentBlock,
10
10
  blocksRemaining,
11
+ endBlock,
11
12
  secondsRemaining,
12
13
  countDownStr,
13
14
  until,
@@ -54,7 +55,8 @@ const store = useOnchainStore()
54
55
  const priceFeed = usePriceFeedStore()
55
56
 
56
57
  const { data: currentBlock } = useBlockNumber({ chainId: config.public.chainId })
57
- const blocksRemaining = computed(() => props.token.mintedBlock + 7200n - (currentBlock.value || 0n))
58
+ const endBlock = computed(() => props.token.mintedBlock + BLOCKS_PER_DAY)
59
+ const blocksRemaining = computed(() => endBlock.value - (currentBlock.value || 0n))
58
60
  const now = useNow()
59
61
  const until = computed(() => props.token.closeAt)
60
62
  const secondsRemaining = computed(() => until.value - BigInt(now.value))
@@ -22,6 +22,7 @@
22
22
  minted,
23
23
  mintOpen,
24
24
  currentBlock,
25
+ endBlock,
25
26
  countDownStr,
26
27
  blocksRemaining,
27
28
  transactionFlowConfig
@@ -57,7 +58,7 @@
57
58
  <TokenMintOpen :blocks="blocksRemaining" :time="countDownStr" />
58
59
  </p>
59
60
  <p v-else-if="currentBlock">
60
- {{ $t('token.closed_ago', { time: countDownStr })}}
61
+ {{ $t('token.closed_at_block', { block: endBlock })}}
61
62
  </p>
62
63
  <p v-if="ownedBalance">
63
64
  {{ $t('token.you_own', { ownedBalance }) }}
package/locales/en.json CHANGED
@@ -73,6 +73,7 @@
73
73
  "by": "By",
74
74
  "closes_in": "Closes in {time}",
75
75
  "closed_ago": "Closed {time} ago",
76
+ "closed_at_block": "Closed at block {block}",
76
77
  "you_own": "You own {ownedBalance} {tokens}",
77
78
  "mint_timeline": "Mint Timeline",
78
79
  "artist_mint": "Artist Mint",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visualizevalue/mint-app-base",
3
- "version": "0.1.103",
3
+ "version": "0.1.105",
4
4
  "type": "module",
5
5
  "main": "./nuxt.config.ts",
6
6
  "dependencies": {