diff --git a/components/NFTMint/Preview.vue b/components/NFTMint/Preview.vue index d14472e5..a1719d82 100644 --- a/components/NFTMint/Preview.vue +++ b/components/NFTMint/Preview.vue @@ -80,16 +80,6 @@ - - - diff --git a/constant/api.ts b/constant/api.ts index 7280e0d8..79af1abd 100644 --- a/constant/api.ts +++ b/constant/api.ts @@ -13,7 +13,6 @@ export const API_POST_ARWEAVE_V2_ESTIMATE = `${LIKE_CO_API_ROOT}/arweave/v2/esti export const API_POST_ARWEAVE_V2_SIGN = `${LIKE_CO_API_ROOT}/arweave/v2/sign_payment_data`; export const API_POST_ARWEAVE_V2_REGISTER = `${LIKE_CO_API_ROOT}/arweave/v2/register`; export const API_LIKER_NFT_MINT = `${LIKE_CO_API_ROOT}/likernft/mint`; -export const API_LIKER_NFT_MINT_IMAGE = `${LIKE_CO_API_ROOT}/likernft/mint/image`; export const API_LIKER_NFT_PURCHASE = `${LIKE_CO_API_ROOT}/likernft/purchase`; export const API_LIKER_NFT_HISTORY = `${LIKE_CO_API_ROOT}/likernft/history`; export const API_LIKER_NFT_METADATA = `${LIKE_CO_API_ROOT}/likernft/metadata`; diff --git a/pages/nft/iscn/_iscnId.vue b/pages/nft/iscn/_iscnId.vue index 1a087cd7..0c6e30bd 100644 --- a/pages/nft/iscn/_iscnId.vue +++ b/pages/nft/iscn/_iscnId.vue @@ -25,7 +25,6 @@ @edit-name="onEditNftName" @edit-description="onEditNftDescription" @edit-image="onEditOgImage" - @generate-image="onGenerateImage" @reset-image="onResetImage" /> @@ -135,7 +134,6 @@ import Hash from 'ipfs-only-hash' import { LIKER_NFT_TARGET_ADDRESS, API_LIKER_NFT_MINT, - API_LIKER_NFT_MINT_IMAGE, getNftClassImage, getNftClassUriViaIscnId, getNftUriViaNftId, @@ -834,26 +832,6 @@ export default class NFTMintPage extends Vue { this.isCustomOgimage = false; } - async onGenerateImage() { - this.isLoadingPreviewOG = true - logTrackerEvent(this, 'IscnMintNFT', 'GenerationRandomImage', this.iscnId, 1); - const res = await this.$axios.post( - API_LIKER_NFT_MINT_IMAGE, - {}, - { - params: { - iscn_id: this.iscnId, - platform: this.platform, - from: this.address, - }, - paramsSerializer: (params) => qs.stringify(params), - responseType: 'arraybuffer', - }, - ); - this.onEditOgImage(new Blob([res.data], {type: res.headers['content-type']})); - this.isLoadingPreviewOG = false - } - async postMintInfo() { try { logTrackerEvent(this, 'IscnMintNFT', 'PostMintInfo', this.classId, 1);