Skip to content
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

fix: Adjust viewer for Nextcloud 31 public share UI #2467

Merged
merged 4 commits into from
Sep 7, 2024

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Sep 6, 2024

Basically every thing works out-of-the-box, except single file shares.

The source of the node, passed to the viewer by the files app, looks like this: http://domain/public.php/dav/token.
This results in path = '/'. dirname = 'token', basename = 'token', displayName = 'real name.md'.

That makes sense, but does not work as we then try to build node.dirname/node.basename as the path which results in token/token ❌ wrong.
So instead just rely on node.path, this works for all public shares and also for internal files (did not test group folders but why should that not work?).


Except from that I removed all the legacy FileList bindings as they do not exist anymore. And refactored the files integration using Typescript.

@susnux susnux changed the title Fix/refactor for 31 fix: Adjust viewer for Nextcloud 31 public share UI Sep 6, 2024
@susnux susnux added bug Something isn't working 3. to review Waiting for reviews labels Sep 6, 2024
@susnux
Copy link
Contributor Author

susnux commented Sep 6, 2024

/compile

@susnux susnux marked this pull request as ready for review September 6, 2024 15:10
@susnux susnux force-pushed the fix/refactor-for-31 branch from 5cf568a to 1bb601f Compare September 6, 2024 16:07
@susnux susnux added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Sep 6, 2024
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux force-pushed the fix/refactor-for-31 branch from 1bb601f to 564b5c9 Compare September 7, 2024 13:38
@susnux susnux added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Sep 7, 2024
@susnux susnux added this to the Nextcloud 31 milestone Sep 7, 2024
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux force-pushed the fix/refactor-for-31 branch from 3e0d6f3 to eb1380d Compare September 7, 2024 14:55
@susnux susnux merged commit c625fa7 into master Sep 7, 2024
30 checks passed
@susnux susnux deleted the fix/refactor-for-31 branch September 7, 2024 15:29
@AndyScherzinger
Copy link
Member

@susnux do we need this backported or is it only broken on master?

@susnux
Copy link
Contributor Author

susnux commented Sep 7, 2024

do we need this backported or is it only broken on master?

No, this is only needed for 31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants