]> source.dussan.org Git - nextcloud-server.git/commit
refactor(files): Provide `useFileListWidth` composable
authorFerdinand Thiessen <opensource@fthiessen.de>
Fri, 15 Nov 2024 00:51:28 +0000 (01:51 +0100)
committerFerdinand Thiessen <opensource@fthiessen.de>
Wed, 20 Nov 2024 18:08:21 +0000 (19:08 +0100)
commit675e7a953f15e22578da5e37054fe6a2f34f7de5
tree0918e1438c9c9e34fd784ffdfe21a1932a958865
parent3822db51742eb12c67b525cab80ec0699e011684
refactor(files): Provide `useFileListWidth` composable

Replace the mixin with a composable, this is better typed and works in
both: Options- and Composition API.
Also added component tests for it.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
12 files changed:
apps/files/src/components/BreadCrumbs.vue
apps/files/src/components/FileEntry.vue
apps/files/src/components/FileEntry/FileEntryActions.vue
apps/files/src/components/FileEntry/FileEntryName.vue
apps/files/src/components/FileEntryGrid.vue
apps/files/src/components/FilesListTableHeaderActions.vue
apps/files/src/components/FilesListVirtual.vue
apps/files/src/components/VirtualList.vue
apps/files/src/composables/useFileListWidth.cy.ts [new file with mode: 0644]
apps/files/src/composables/useFileListWidth.ts [new file with mode: 0644]
apps/files/src/mixins/filesListWidth.ts [deleted file]
apps/files/src/views/FilesList.vue