Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TAS-376]🎨 Change initial price to USD #388

Merged
merged 5 commits into from
Sep 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions components/NFTMint/WriterMessage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
>
<span>{{ $t('NFTPortal.label.initialBatch.input') }}</span>
<select ref="batchInput" @change="(e) => $emit('update-initial-batch', e.target.value)">
<option v-for="{ batch, price } in initialBatchOptions" :key="batch" :value="batch" :selected="batch === 4">
<option v-for="{ batch, price } in initialBatchOptions" :key="batch" :value="batch" :selected="batch === 7">
{{ price }}
</option>
</select>
Expand All @@ -156,7 +156,7 @@
{{ $t('NFTPortal.label.collectExpiryDate.input') }}
</label>
<input v-if=shouldShowCollectExpiryDateInput ref="collectExpiryDateInput" type="date" :min="tomorrow" @change="updateCollectExpiryDate($event)" />
</div>
</div>
</div>
</template>
</div>
Expand Down Expand Up @@ -192,10 +192,16 @@ export default class WriterMessage extends Vue {

initialBatchOptions = [
{ batch: -1, price: this.$t('NFTPortal.label.initialBatch.free') },
{ batch: 0, price: 8 },
{ batch: 4, price: 128 },
{ batch: 7, price: 1024 },
{ batch: 9, price: 4096 },
// To maintain the compatibility of the DB data, minting starts from batch 7
{ batch: 7, price: this.$t('NFTPortal.label.price', { price: 1 }) },
{ batch: 8, price: this.$t('NFTPortal.label.price', { price: 2 }) },
{ batch: 9, price: this.$t('NFTPortal.label.price', { price: 4 }) },
{ batch: 10, price: this.$t('NFTPortal.label.price', { price: 8 }) },
{ batch: 11, price: this.$t('NFTPortal.label.price', { price: 16 }) },
{ batch: 12, price: this.$t('NFTPortal.label.price', { price: 32 }) },
{ batch: 13, price: this.$t('NFTPortal.label.price', { price: 64 }) },
{ batch: 14, price: this.$t('NFTPortal.label.price', { price: 128 }) },
{ batch: 15, price: this.$t('NFTPortal.label.price', { price: 256 }) },
]

get shouldShowInitialBatchSettings() {
Expand Down
3 changes: 2 additions & 1 deletion locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,9 @@
"NFTPortal.label.defaultDescription": "(no description)",
"NFTPortal.label.detailsPage": "NFT Details Page :",
"NFTPortal.label.fileUpload": "Has a file? Upload to ISCN here",
"NFTPortal.label.initialBatch.input": "Initial Price (LIKE)",
"NFTPortal.label.initialBatch.input": "Initial Price (USD)",
"NFTPortal.label.initialBatch.free": "All Free",
"NFTPortal.label.price": "${price}",
"NFTPortal.label.input.email": "Join our community and stay in the loop on exclusive product updates and offers. {link} now!",
"NFTPortal.label.input.link": "Please leave your email",
"NFTPortal.label.Iscn": "ISCN ID",
Expand Down
2 changes: 1 addition & 1 deletion pages/nft/iscn/_iscnId.vue
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@

reserveNft: number = 0
mintAmount: number = this.maxMintAmount
initialBatch: number = 4
initialBatch: number = 7
shouldShowNoUrlWarning: boolean = false

collectExpiryDate: string = ''
Expand Down Expand Up @@ -726,7 +726,7 @@
this.isCustomOgimage = true;
logTrackerEvent(this, 'IscnMintNFT', 'GetOgImageExists', arweaveID, 1);
} catch (err) {
console.error(err)

Check warning on line 729 in pages/nft/iscn/_iscnId.vue

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, 16)

Unexpected console statement
}
}
if (!this.ogImageBlob && !this.ogImageArweaveId) {
Expand Down
Loading