mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-01 13:34:33 +00:00
feat(file-browser): add context-aware copy submenu (#517)
* feat(file-browser): add context-aware copy submenu * refactor(file-browser): address code review feedback for copy submenu * fix(webui): align submenu trigger text and widen file context menu * test(e2e): guard clipboard permissions in copy-menu spec for cross-browser support
This commit is contained in:
@@ -400,6 +400,25 @@ export const getDownloadLinksResponseSchema = z.object({
|
||||
})
|
||||
export type GetDownloadLinksResponse = z.infer<typeof getDownloadLinksResponseSchema>
|
||||
|
||||
export const getStoragePathsRequestSchema = z.object({
|
||||
ids: z.array(z.string()).max(100),
|
||||
})
|
||||
export type GetStoragePathsRequest = z.infer<typeof getStoragePathsRequestSchema>
|
||||
|
||||
export const storagePathItemSchema = z.object({
|
||||
id: z.string(),
|
||||
name: z.string(),
|
||||
path: z.string(),
|
||||
backend: z.enum(['s3', 'local']),
|
||||
isArchived: z.boolean(),
|
||||
})
|
||||
export type StoragePathItem = z.infer<typeof storagePathItemSchema>
|
||||
|
||||
export const getStoragePathsResponseSchema = z.object({
|
||||
paths: z.array(storagePathItemSchema),
|
||||
})
|
||||
export type GetStoragePathsResponse = z.infer<typeof getStoragePathsResponseSchema>
|
||||
|
||||
export const archiveAssetsRequestSchema = z.object({
|
||||
ids: z.array(z.string().min(1)).min(1),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user