nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.71k stars 4k forks source link

Support Web Share API for native sharing dialogs #20242

Open jancborchardt opened 4 years ago

jancborchardt commented 4 years ago

See https://web.dev/web-share/

We should support the Web Share API to have native sharing dialogs for all the link shares. You could then directly share to email and other apps, natively from the operating system. This could possibly also supersede our custom Social sharing via?

skjnldsv commented 4 years ago

How is that relevant to the vue components? Do you want a dedicated component for this?

jancborchardt commented 4 years ago

How is that relevant to the vue components? Do you want a dedicated component for this?

I assume we want to have some sort of reusable sharing components, and this could be part of it?

skjnldsv commented 4 years ago

reusable sharing components

How would that present itself? Because your link is just a javascript implementation standard, it is not some kind of component with html structure and methods? I get it as a library with a standard api I guess? But I don't see how this would be a component :thinking:

jancborchardt commented 4 years ago

→ Moving to server repository :)

The idea is that we could replace all these "Social sharing via …" apps with one button which calls these platform-native actions.