💄 Optimized navbar
This commit is contained in:
@@ -1,9 +1,4 @@
|
||||
import {
|
||||
checkbox,
|
||||
relationship,
|
||||
text,
|
||||
timestamp,
|
||||
} from "@keystone-6/core/fields";
|
||||
import { checkbox, relationship, text, timestamp } from "@keystone-6/core/fields";
|
||||
import { document } from "@keystone-6/fields-document";
|
||||
import { list } from "@keystone-6/core";
|
||||
import { allowEditor } from "../limit";
|
||||
|
@@ -1,12 +1,6 @@
|
||||
import { list } from "@keystone-6/core";
|
||||
|
||||
import {
|
||||
text,
|
||||
relationship,
|
||||
password,
|
||||
timestamp,
|
||||
checkbox,
|
||||
} from "@keystone-6/core/fields";
|
||||
import { text, relationship, password, timestamp, checkbox } from "@keystone-6/core/fields";
|
||||
|
||||
import { allowAdmin } from "../limit";
|
||||
|
||||
|
@@ -4,67 +4,67 @@ import { document } from "@keystone-6/fields-document";
|
||||
import { relationship, text, timestamp } from "@keystone-6/core/fields";
|
||||
|
||||
export const Moment = list({
|
||||
access: allowUser,
|
||||
access: allowUser,
|
||||
|
||||
fields: {
|
||||
title: text({ validation: { isRequired: true } }),
|
||||
images: relationship({ ref: "Image", many: true }),
|
||||
fields: {
|
||||
title: text({ validation: { isRequired: true } }),
|
||||
images: relationship({ ref: "Image", many: true }),
|
||||
|
||||
content: document({
|
||||
formatting: true,
|
||||
layouts: [
|
||||
[1, 1],
|
||||
[1, 1, 1],
|
||||
[2, 1],
|
||||
[1, 2],
|
||||
[1, 2, 1],
|
||||
],
|
||||
links: true,
|
||||
dividers: true,
|
||||
}),
|
||||
content: document({
|
||||
formatting: true,
|
||||
layouts: [
|
||||
[1, 1],
|
||||
[1, 1, 1],
|
||||
[2, 1],
|
||||
[1, 2],
|
||||
[1, 2, 1],
|
||||
],
|
||||
links: true,
|
||||
dividers: true,
|
||||
}),
|
||||
|
||||
author: relationship({
|
||||
ref: "User.moments",
|
||||
author: relationship({
|
||||
ref: "User.moments",
|
||||
|
||||
ui: {
|
||||
displayMode: "cards",
|
||||
cardFields: ["name", "email"],
|
||||
inlineEdit: { fields: ["name", "email"] },
|
||||
linkToItem: true,
|
||||
inlineConnect: true,
|
||||
},
|
||||
ui: {
|
||||
displayMode: "cards",
|
||||
cardFields: ["name", "email"],
|
||||
inlineEdit: { fields: ["name", "email"] },
|
||||
linkToItem: true,
|
||||
inlineConnect: true,
|
||||
},
|
||||
|
||||
many: false,
|
||||
}),
|
||||
many: false,
|
||||
}),
|
||||
|
||||
categories: relationship({
|
||||
ref: "Category.moments",
|
||||
many: true,
|
||||
ui: {
|
||||
displayMode: "cards",
|
||||
cardFields: ["name"],
|
||||
inlineEdit: { fields: ["name"] },
|
||||
linkToItem: true,
|
||||
inlineConnect: true,
|
||||
inlineCreate: { fields: ["name"] },
|
||||
},
|
||||
}),
|
||||
categories: relationship({
|
||||
ref: "Category.moments",
|
||||
many: true,
|
||||
ui: {
|
||||
displayMode: "cards",
|
||||
cardFields: ["name"],
|
||||
inlineEdit: { fields: ["name"] },
|
||||
linkToItem: true,
|
||||
inlineConnect: true,
|
||||
inlineCreate: { fields: ["name"] },
|
||||
},
|
||||
}),
|
||||
|
||||
tags: relationship({
|
||||
ref: "Tag.moments",
|
||||
many: true,
|
||||
ui: {
|
||||
displayMode: "cards",
|
||||
cardFields: ["name"],
|
||||
inlineEdit: { fields: ["name"] },
|
||||
linkToItem: true,
|
||||
inlineConnect: true,
|
||||
inlineCreate: { fields: ["name"] },
|
||||
},
|
||||
}),
|
||||
tags: relationship({
|
||||
ref: "Tag.moments",
|
||||
many: true,
|
||||
ui: {
|
||||
displayMode: "cards",
|
||||
cardFields: ["name"],
|
||||
inlineEdit: { fields: ["name"] },
|
||||
linkToItem: true,
|
||||
inlineConnect: true,
|
||||
inlineCreate: { fields: ["name"] },
|
||||
},
|
||||
}),
|
||||
|
||||
createdAt: timestamp({
|
||||
defaultValue: { kind: "now" },
|
||||
}),
|
||||
},
|
||||
})
|
||||
createdAt: timestamp({
|
||||
defaultValue: { kind: "now" },
|
||||
}),
|
||||
},
|
||||
});
|
||||
|
@@ -1,10 +1,4 @@
|
||||
import {
|
||||
checkbox,
|
||||
relationship,
|
||||
select,
|
||||
text,
|
||||
timestamp,
|
||||
} from "@keystone-6/core/fields";
|
||||
import { checkbox, relationship, select, text, timestamp } from "@keystone-6/core/fields";
|
||||
import { document } from "@keystone-6/fields-document";
|
||||
import { list } from "@keystone-6/core";
|
||||
import { allowEditor } from "../limit";
|
||||
|
Reference in New Issue
Block a user