Skip to content

Add text, audio and json nft display support #400

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

dkackman
Copy link
Collaborator

PR from poorly named branch but this adds support for display of:

  • audio
  • text
  • json

@dkackman
Copy link
Collaborator Author

includes most common browser supported mime types. could get fancier but this is likely sufficient

const imageTypes = [
  'image/png',
  'image/jpeg',
  'image/jpg',
  'image/gif',
  'image/webp',
  'image/svg+xml',
  'image/avif',
  'image/x-ico',
  'image/bmp',
];
const videoTypes = [
  'video/webm',
  'video/mp4',
  'video/ogg',
  'video/quicktime',
  'video/mpeg',
];
const audioTypes = [
  'audio/webm',
  'audio/mpeg',
  'audio/ogg',
  'audio/mp4',
  'audio/flac',
  'audio/opus',
  'audio/aac',
];
const textTypes = [
  'text/plain',
  'text/html',
  'text/css',
  'text/javascript',
  'text/rtf',
  'text/csv',
];
const jsonTypes = ['application/json', 'application/ld+json'];

@dkackman dkackman added the enhancement New feature or request label Apr 11, 2025
@dkackman dkackman added this to the 0.10.2 milestone Apr 11, 2025
Copy link
Collaborator Author

@dkackman dkackman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merge from main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant