-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add media type x-javascript and Typescript #2615
Comments
The MIME type of javascript should be |
I started exploring storing executable code as inscriptions for immutable storage. I haven't used the meta protocol tag but I imaged it would be DAPP. We added support for x-python which can't be run in the browser either. The explorer would be a good way to view the code as a digital artifact. See this inscription that is a basic ord server and parser. Since its x-javascript it is only viewable in the /content route. Which is fine for distribution however not for viewablity. Unfortunate TS isn't a mime type with bun you can run it without transpiling it I guess however that wont play nice with the code preview. If this isn't in scope with ord I could just make a dedicated explorer that maybe uses autohighlight to cover executable code people might inscribe. Don't mind me just jailbreaking out of the explorer and endpoints with orception.js |
I have an executable JS inscription it is similar to x-python from PR #2538.
Currently it doesn't display.
I think we should also add Typescript as well as x-typescript. I think a more generalized approach to deal with x-mediatype
The text was updated successfully, but these errors were encountered: