feat: new nav UI (wip)

This commit is contained in:
NGPixel
2020-02-02 16:26:44 -05:00
committed by Nicolas Giard
parent 53ceea74f1
commit 3ca72ccc1e
8 changed files with 404 additions and 180 deletions

View File

@@ -15,7 +15,7 @@ extend type Mutation {
# -----------------------------------------------
type NavigationQuery {
tree: [NavigationItem]!
tree: [NavigationTree]!
}
# -----------------------------------------------
@@ -24,7 +24,7 @@ type NavigationQuery {
type NavigationMutation {
updateTree(
tree: [NavigationItemInput]!
tree: [NavigationTreeInput]!
): DefaultResponse @auth(requires: ["manage:navigation", "manage:system"])
}
@@ -32,6 +32,16 @@ type NavigationMutation {
# TYPES
# -----------------------------------------------
type NavigationTree {
locale: String!
items: [NavigationItem]!
}
input NavigationTreeInput {
locale: String!
items: [NavigationItemInput]!
}
type NavigationItem {
id: String!
kind: String!