Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Add thumbnails to default project ( IR-1279 ) (#10259)
Browse files Browse the repository at this point in the history
* Fixing the URLs of directories explored by the generate-all-thumbnails code

* Adding thumbnails for assets in default project
  • Loading branch information
Rezmason authored Jun 14, 2024
1 parent 14aca78 commit 7f39b48
Show file tree
Hide file tree
Showing 55 changed files with 915 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export const FileThumbnailJobState = defineState({
})) as Paginated<FileBrowserContentType>
directories = files.data
.filter((file) => file.type === 'folder')
.map((file) => directory + file.name)
.map((file) => directory + file.url.match(/([^/]+)\/*$/)?.pop())
.concat(directories)
let theseThumbnails = files.data.filter((file) => extensionCanHaveThumbnail(file.key.split('.').pop() ?? ''))
if (!forceRegenerate) {
Expand Down
Loading

0 comments on commit 7f39b48

Please sign in to comment.