mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-06 16:24:17 +00:00
fix(ui): fix SlotClone error in file card by reformatting DropdownMenuTrigger
This commit is contained in:
@@ -1214,7 +1214,7 @@ describe('AssetService', () => {
|
|||||||
// 4. Verify some items were processed in S3
|
// 4. Verify some items were processed in S3
|
||||||
// We don't know the order, but if Folder A was in the first 100,
|
// We don't know the order, but if Folder A was in the first 100,
|
||||||
// then its synchronous cascade will have wiped the remaining children.
|
// then its synchronous cascade will have wiped the remaining children.
|
||||||
|
|
||||||
// 5. Trigger the purge job for the SECOND batch
|
// 5. Trigger the purge job for the SECOND batch
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
await (assetService as any).purgePendingAssets()
|
await (assetService as any).purgePendingAssets()
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import { ObjectInfo } from '@/dtos/s3'
|
import { ObjectInfo } from '@/dtos/s3'
|
||||||
import {
|
import {
|
||||||
DeleteObjectCommand,
|
DeleteObjectCommand,
|
||||||
GetObjectCommand,
|
GetObjectCommand,
|
||||||
HeadObjectCommand,
|
HeadObjectCommand,
|
||||||
ListObjectsV2Command,
|
ListObjectsV2Command,
|
||||||
PutObjectCommand,
|
PutObjectCommand,
|
||||||
S3Client,
|
S3Client,
|
||||||
} from '@aws-sdk/client-s3'
|
} from '@aws-sdk/client-s3'
|
||||||
import { getSignedUrl } from '@aws-sdk/s3-request-presigner'
|
import { getSignedUrl } from '@aws-sdk/s3-request-presigner'
|
||||||
import * as crypto from 'crypto'
|
import * as crypto from 'crypto'
|
||||||
|
|||||||
@@ -177,9 +177,5 @@ export function FileBrowserContextMenu({
|
|||||||
</ContextMenuContent>
|
</ContextMenuContent>
|
||||||
)
|
)
|
||||||
|
|
||||||
return (
|
return <>{contextMenuContent}</>
|
||||||
<>
|
|
||||||
{contextMenuContent}
|
|
||||||
</>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -267,7 +267,8 @@ export function FileCard({
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<DropdownMenu modal={false}>
|
<DropdownMenu modal={false}>
|
||||||
<DropdownMenuTrigger asChild> <Button
|
<DropdownMenuTrigger asChild>
|
||||||
|
<Button
|
||||||
size="icon-sm"
|
size="icon-sm"
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
className="cursor-pointer"
|
className="cursor-pointer"
|
||||||
|
|||||||
Reference in New Issue
Block a user