fix(ui): prevent UI freeze when deleting project and update AGENTS.md

This commit is contained in:
yiling
2026-05-24 09:36:23 +08:00
parent 062ece146f
commit c990e77478
3 changed files with 12 additions and 8 deletions
+7 -7
View File
@@ -1,11 +1,11 @@
import { ObjectInfo } from '@/dtos/s3'
import {
GetObjectCommand,
HeadObjectCommand,
ListObjectsV2Command,
PutObjectCommand,
DeleteObjectCommand,
S3Client,
DeleteObjectCommand,
GetObjectCommand,
HeadObjectCommand,
ListObjectsV2Command,
PutObjectCommand,
S3Client,
} from '@aws-sdk/client-s3'
import { getSignedUrl } from '@aws-sdk/s3-request-presigner'
import * as crypto from 'crypto'
@@ -271,7 +271,7 @@ export class LocalStorageService implements S3Service {
private basePath: string
private endpoint: string
constructor(endpoint: string, basePath: string = 'data/s3/data') {
constructor(endpoint: string, basePath: string = 'data') {
this.endpoint = endpoint.replace(/\/$/, '')
this.basePath = path.resolve(basePath)
if (!fs.existsSync(this.basePath)) {
+1 -1
View File
@@ -275,7 +275,7 @@ function TeamPage() {
Updated {formatDateAgo((project.updatedAt as string) ?? '')}
</p>
<div onClick={(e) => e.stopPropagation()}>
<DropdownMenu>
<DropdownMenu modal={false}>
<DropdownMenuTrigger asChild>
<button className="hover:bg-muted outline-none flex px-1">
<MoreHorizontal className="w-5 h-5 text-muted-foreground" />