Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Use new PublicPageResponse for sharing pages #403

Closed
juliusknorr opened this issue Mar 1, 2018 · 3 comments
Closed

Use new PublicPageResponse for sharing pages #403

juliusknorr opened this issue Mar 1, 2018 · 3 comments
Assignees
Labels
2. developing Work in progress enhancement New feature or request
Milestone

Comments

@juliusknorr
Copy link
Member

With nextcloud/server#8051 we have a common public page template for NC14+ that should be used by apps to render public pages.

The PR also introduced two custom classes for rendering the direct link and add to my nextcloud menu entries, like in the screenshot below:
bildschirmfoto vom 2018-01-25 20-39-27

The question is if we should just used those classes from the files_sharing app:

  • OCA\Files_Sharing\Template\ExternalShareMenuAction
  • OCA\Files_Sharing\Template\LinkMenuAction

Since the gallery app in bundled with the NC releases right now I see no problem that those are not part of the public API right now. Anyway it isn't that nice so we should probably also move them to the OCP namespace. Until now it seems the gallery app has copied the code that is required from files_sharing, but that doesn't seem to be a good solution to me as well. Any thoughts on that?

WIP branch: https://github.com/nextcloud/gallery/tree/public-page-response

@juliusknorr juliusknorr added enhancement New feature or request 2. developing Work in progress labels Mar 1, 2018
@juliusknorr juliusknorr added this to the Nextcloud 14 milestone Mar 1, 2018
@juliusknorr juliusknorr self-assigned this Mar 1, 2018
@juliusknorr
Copy link
Member Author

@oparoz How does gallery handle being dependent on files_sharing at the moment? It seems to be using just its config values. Would be using the classes from OCA\Files_Sharing in gallery an option?

@oparoz
Copy link
Member

oparoz commented Mar 2, 2018

I've always been told that apps should be completely independent from core, so for that reason, we always recreate all the JS files in Gallery.
This may change once we have some re-usable components in the core.

@desaintmartin
Copy link
Contributor

Hello,
Is there any update on this? I'm afraid it still completely destroys the public pages of Gallery app...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
2. developing Work in progress enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants