✨ feat: add comment and tag collections with metadata and mock data
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
name: comments
|
||||
name: comment
|
||||
meta:
|
||||
label: { de: "Kommentare", en: "Comments" }
|
||||
muiIcon: chat
|
||||
group: community
|
||||
imageUrl: "https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&q=80&w=800"
|
||||
imageUrl: "https://images.unsplash.com/photo-1522096823084-2d1aa8411c13?auto=format&fit=crop&q=80&w=800"
|
||||
preview:
|
||||
label: author
|
||||
secondary: message
|
||||
@@ -6,7 +6,7 @@ name: content
|
||||
uploadPath: ../media/content
|
||||
meta:
|
||||
label: { de: "Inhalte", en: "Content" }
|
||||
muiIcon: description
|
||||
muiIcon: file-document-outline
|
||||
group: content
|
||||
imageUrl: "https://images.unsplash.com/photo-1499750310107-5fef28a66643?auto=format&fit=crop&q=80&w=800"
|
||||
preview:
|
||||
@@ -27,6 +27,7 @@ meta:
|
||||
label: { de: "Veröffentlichung", en: "Publishing" }
|
||||
- group: seo
|
||||
label: { de: "SEO", en: "SEO" }
|
||||
viewHint: cards
|
||||
|
||||
hooks:
|
||||
get:
|
||||
|
||||
@@ -6,9 +6,9 @@ name: medialib
|
||||
uploadPath: ../media/medialib
|
||||
meta:
|
||||
label: { de: "Mediathek", en: "Media Library" }
|
||||
muiIcon: perm_media
|
||||
muiIcon: folder-multiple-image
|
||||
group: content
|
||||
imageUrl: "https://images.unsplash.com/photo-1542204165-65bf26472b9b?auto=format&fit=crop&q=80&w=800"
|
||||
imageUrl: "https://images.unsplash.com/photo-1452587925148-ce544e77e70d?auto=format&fit=crop&q=80&w=800"
|
||||
viewHint:
|
||||
media:
|
||||
ai:
|
||||
@@ -23,7 +23,7 @@ meta:
|
||||
file: file
|
||||
preview:
|
||||
label: title
|
||||
secondary: tags
|
||||
secondary: tag
|
||||
tertiary: description
|
||||
image: file
|
||||
mediaFile: file
|
||||
@@ -129,13 +129,13 @@ fields:
|
||||
inputProps:
|
||||
multiline: true
|
||||
rows: 4
|
||||
- name: tags
|
||||
- name: tag
|
||||
type: string[]
|
||||
meta:
|
||||
label: { de: "Schlagwörter", en: "Tags" }
|
||||
widget: foreignKey
|
||||
foreign:
|
||||
collection: tags
|
||||
collection: tag
|
||||
- name: _testdata
|
||||
type: boolean
|
||||
meta:
|
||||
|
||||
@@ -7,7 +7,7 @@ meta:
|
||||
label: { de: "Navigation", en: "Navigation" }
|
||||
muiIcon: menu
|
||||
group: content
|
||||
imageUrl: "https://images.unsplash.com/photo-1506784926709-22f1ec395907?auto=format&fit=crop&q=80&w=800"
|
||||
imageUrl: "https://images.unsplash.com/photo-1452423668729-43a98052d3ee?auto=format&fit=crop&q=80&w=800"
|
||||
viewHint:
|
||||
navigation:
|
||||
nodesField: elements
|
||||
|
||||
@@ -7,7 +7,7 @@ meta:
|
||||
label: { de: "SSR Dummy", en: "ssr dummy" }
|
||||
muiIcon: storage
|
||||
group: system
|
||||
imageUrl: "https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&q=80&w=800"
|
||||
imageUrl: "https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&q=80&w=800"
|
||||
hide: true
|
||||
|
||||
permissions:
|
||||
|
||||
@@ -2,14 +2,14 @@
|
||||
# Tags — verwaltete Schlagwörter für Mediathek und andere Collections
|
||||
########################################################################
|
||||
|
||||
name: tags
|
||||
name: tag
|
||||
meta:
|
||||
label: { de: "Schlagwörter", en: "Tags" }
|
||||
muiIcon: tag
|
||||
muiIcon: label
|
||||
group: content
|
||||
imageUrl: "https://images.unsplash.com/photo-1543285198-3af15c4592ce?auto=format&fit=crop&w=640&q=80"
|
||||
imageUrl: "https://images.unsplash.com/photo-1555421689-491a97ff2040?auto=format&fit=crop&w=800&q=80"
|
||||
preview:
|
||||
select: [ name, color ]
|
||||
select: [name, color]
|
||||
label: name
|
||||
labelStyle:
|
||||
eval: |
|
||||
Reference in New Issue
Block a user