Sciebo-RDS / RDS-Web

0 stars 1 forks source link

Add Filepicker #6

Closed Heiss closed 3 years ago

Heiss commented 3 years ago

This pr adds the filepicker mechanic, which works mostly like the init mechanic for information exchange out of parent window context. So we do not need to implement a file picker in codebase and the integration is responsible for the file picker implementation. This enhance our developer life, because it runs out of the parent window context and can access informations directly in it.

This means, that the oc classic integration can access the old fileDialog mechanic and send it via postMessage to the RDS window. The oc web integration can access the new filepicker dialog and does not need any oauth token, because the oc web context does know this already and can be accessed through mapGetters.

https://github.com/Sciebo-RDS/RDS-Web/blob/889bad30348be525a10e816625c80ade1cc325ad/client/packages/web/src/App.vue#L28

This pr also unifies the integration of oc web and oc classic into one file embed.js inside of plugins/integration.

TODO