refactor: moves resources to pinia store #10368
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Removes the resources store module of the files app and implements it as a pinia store instead. All store functionality can be accessed via the new
useResourcesStore
composable.The former files store has been split up into the following parts (partly already done in other PRs):
ResourcesStore
for everything related to resources (including the formerAncestorMetaData
store).SharesStore
for everything related to shares. See refactor: move shares from vuex store to pinia #10362.ClipboardStore
for everything related to clipboard. See Remove clipboard from files store #10341.The following former files store parts are no longer inside any store:
deleteFiles
action which now sits in the action composable for deleting files. It's only being used there.loadPreviews
action since it was a somewhat useless wrapper for.loadAvatars
action since oCIS does not support this. It has been removed completely from the code base.clearTrashBin
andremoveFilesFromTrashbin
actions since they were just wrappers for other action calls. No need to have that separately.highlightedFile
getter. See refactor: remove highlightedFile getter from store #10349.Related Issue
Types of changes