feat: image upload / display
This commit is contained in:
12
client/graph/editor/editor-media-mutation-folder-create.gql
Normal file
12
client/graph/editor/editor-media-mutation-folder-create.gql
Normal file
@@ -0,0 +1,12 @@
|
||||
mutation ($parentFolderId: Int!, $slug: String!) {
|
||||
assets {
|
||||
createFolder(parentFolderId:$parentFolderId, slug: $slug) {
|
||||
responseResult {
|
||||
succeeded
|
||||
errorCode
|
||||
slug
|
||||
message
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
9
client/graph/editor/editor-media-query-folder-list.gql
Normal file
9
client/graph/editor/editor-media-query-folder-list.gql
Normal file
@@ -0,0 +1,9 @@
|
||||
query ($parentFolderId: Int!) {
|
||||
assets {
|
||||
folders(parentFolderId:$parentFolderId) {
|
||||
id
|
||||
name
|
||||
slug
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,6 +1,6 @@
|
||||
query ($root: String, $kind: AssetKind!) {
|
||||
query ($folderId: Int!, $kind: AssetKind!) {
|
||||
assets {
|
||||
list(root:$root, kind: $kind) {
|
||||
list(folderId:$folderId, kind: $kind) {
|
||||
id
|
||||
filename
|
||||
ext
|
||||
|
Reference in New Issue
Block a user