7740841168
* Initial preview & upload logic * Refactor image & metadata selection & preview logic * Refactor image & metadata selection & preview logic - 2 * Establish metadata-modal connection * Metadata attribute manipulation * Successful metadata attribute removal & update * Successful metadata attribute addition & update * Update existing attributes success * Display image uri among metadata following the upload * Fix: buttons being displayed without an image overlay * Separate upload logic & incorporate useRefs * Clean up: removed unused imports and structures * Add radio buttons for upload service selection * Remove package-lock.json (duplicate .lock files) * Refactor upload logic & metadata modal * Utilize serviceType enum in upload logic * Utilize serviceType enum in upload logic - 2 * Implement user input for NFT.Storage & Pinata API keys * Update use an existing URI text * Remove upload_old.tsx * Fix: reset main metadata fields on metadata modal refresh * Fix: reset main metadata fields on metadata modal refresh - 2 * Make linter happy * Make linter happy - 2 * Move upload file under collections * Post-review update - 1 * Source Pinata endpoint URL from environment variables * Replace regular file arrays with states Co-authored-by: findolor <anakisci@gmail.com>
39 lines
1.1 KiB
TypeScript
39 lines
1.1 KiB
TypeScript
/* eslint-disable import/no-default-export */
|
|
|
|
declare module '*.svg' {
|
|
const Component: (props: import('react').SVGProps<SVGSVGElement>) => JSX.Element
|
|
export default Component
|
|
}
|
|
|
|
declare module 'react-datetime-picker/dist/entry.nostyle' {
|
|
export { default } from 'react-datetime-picker'
|
|
export * from 'react-datetime-picker'
|
|
}
|
|
|
|
declare namespace NodeJS {
|
|
declare interface ProcessEnv {
|
|
readonly APP_VERSION: string
|
|
|
|
readonly NEXT_PUBLIC_SG721_CODE_ID: string
|
|
readonly NEXT_PUBLIC_MINTER_CODE_ID: string
|
|
readonly NEXT_PUBLIC_WHITELIST_CODE_ID: string
|
|
|
|
readonly NEXT_PUBLIC_PINATA_ENDPOINT_URL: string
|
|
readonly NEXT_PUBLIC_API_URL: string
|
|
readonly NEXT_PUBLIC_BLOCK_EXPLORER_URL: string
|
|
readonly NEXT_PUBLIC_NETWORK: string
|
|
readonly NEXT_PUBLIC_WEBSITE_URL: string
|
|
}
|
|
}
|
|
|
|
type KeplrWindow = import('@keplr-wallet/types/src/window').Window
|
|
|
|
declare interface Window extends KeplrWindow {
|
|
confetti?: (obj: any) => void
|
|
}
|
|
|
|
declare const __DEV__: boolean
|
|
declare const __PROD__: boolean
|
|
|
|
/* eslint-enable import/no-default-export */
|