playcanvas / supersplat

3D Gaussian Splat Editor
https://playcanvas.com/supersplat/editor
MIT License
1.28k stars 120 forks source link

Update PWA Manifest to indicate supported file types #91

Closed CiberNin closed 4 months ago

CiberNin commented 4 months ago

Need to add something like this so that once the PWA is installed it will be offered as an option when selecting default file opener.

"file_handlers": [
    {
      "action": "/",
      "accept": {
        "model/splat": [".splat"],
        "model/ply": [".ply"]
      }
    }
  ]

https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/How_to/Associate_files_with_your_PWA

willeastcott commented 4 months ago

Oh, that's really cool. I didn't know that was possible. Did you want to add this @CiberNin, or should I?

CiberNin commented 4 months ago

Can you do it, I was a bit confused by the part about handling files from a launch queue. It also might be nice to look into if you can get it working with just a standard file save dialog instead of downloading. Which seems like something that the PWA filesystem api would permit.

marklundin commented 4 months ago

Might want to add share targets too https://developer.mozilla.org/en-US/docs/Web/Manifest/share_target#browser_compatibility

slimbuck commented 4 months ago

Can you do it, I was a bit confused by the part about handling files from a launch queue. It also might be nice to look into if you can get it working with just a standard file save dialog instead of downloading. Which seems like something that the PWA filesystem api would permit.

Standard save dialog would be really great.

willeastcott commented 4 months ago

@CiberNin This is now deployed. Try it out - hopefully you approve. 😄