Repository navigation
Conversation
76547fb to
99ef95d
Compare
99ef95d to
062c83e
Compare
|
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
ab07ffd to
bcaa42e
Compare
bcaa42e to
ff3c1eb
Compare
Signed-off-by: Tomasz Trillò <tomasz.trillo@dataport.de> Assisted-by: Copilot:Claude-Sonnet-5
5ae36c5 to
4ff2f8f
Compare
| throw new Error('Only one embedded Files view can be active at a time') | ||
| } | ||
|
|
||
| const router = createFilesRouter(createMemoryHistory()) |
There was a problem hiding this comment.
Do we have use cases where this is not createMemoryHistory()?
If not, then maybe we can drop the argument and hard code it in the function.
| } | ||
|
|
||
| const router = createFilesRouter(createMemoryHistory()) | ||
| const previousRouterService = window.OCP.Files.Router |
There was a problem hiding this comment.
Why do we need to save the previous router service?
|
|
||
| routerHookRegistered = true | ||
| window.OCP.Files.Router._router.afterEach((to, from) => { | ||
| hookedRouter = router |
There was a problem hiding this comment.
Why do we need to save the router here?
| <component | ||
| :is="embedded ? 'div' : 'NcAppContent'" | ||
| v-bind="embedded ? {} : { pageHeading }" | ||
| :class="{ 'app-content': embedded }" | ||
| data-cy-files-content> |
There was a problem hiding this comment.
In order to have a distinctive class name. Because other apps use a similar class for their own app content, so their could be some conflict when injecting the files app in those.
| <component | |
| :is="embedded ? 'div' : 'NcAppContent'" | |
| v-bind="embedded ? {} : { pageHeading }" | |
| :class="{ 'app-content': embedded }" | |
| data-cy-files-content> | |
| <component | |
| :is="embedded ? 'div' : 'NcAppContent'" | |
| v-bind="embedded ? {} : { pageHeading }" | |
| :class="files-app-content" | |
| data-cy-files-content> |
There was a problem hiding this comment.
The new class name could then be used to replace .app-content where you already changed it from main.app-content.
| * app's own controller. It triggers the same script/initial-state bootstrap | ||
| * that `files.view.index` performs. | ||
| */ | ||
| class LoadFilesApp extends Event { |
There was a problem hiding this comment.
As we only want loading the files list not the real app I would say call it LoadFilesList
| Util::addInitScript('files', 'init'); | ||
| Util::addScript('files', 'main'); |
There was a problem hiding this comment.
Please use Application::APP_ID here instead of string hardcoded 'files', thats the style we use for every new file
| } | ||
|
|
||
| // Expose the ability to render the Files UI on a foreign page | ||
| window.OCP.Files.renderFilesApp ??= renderFilesView |
There was a problem hiding this comment.
I would say no new OCP frontend API here but use OCA and expose it in nextcloud/files library.
There is a need to display files in other apps (e.g. Teams) in the same way as in the Files app, including all available features. This is the first step toward making the Files view available in other apps.
Assisted-by: Copilot:Claude-Sonnet-5
Summary
TODO
Checklist
3. to review, feature component)stable32)AI (if applicable)