Initial commit
This commit is contained in:
70
api/collections/fields/contentBlocks/CTACol.yml
Normal file
70
api/collections/fields/contentBlocks/CTACol.yml
Normal file
@@ -0,0 +1,70 @@
|
||||
name: cta
|
||||
type: object
|
||||
meta:
|
||||
label: Call To Action Zeile
|
||||
dependsOn:
|
||||
eval: $parent.type == 'cta'
|
||||
subFields:
|
||||
- name: upperHeadline
|
||||
type: string
|
||||
meta:
|
||||
label: Über Überschrift
|
||||
containerProps:
|
||||
layout:
|
||||
size:
|
||||
default: "col-6"
|
||||
small: "col-6"
|
||||
large: "col-6"
|
||||
|
||||
- name: description
|
||||
type: string
|
||||
meta:
|
||||
label: Überschrift beschreibung
|
||||
containerProps:
|
||||
layout:
|
||||
size:
|
||||
default: "col-6"
|
||||
small: "col-6"
|
||||
large: "col-6"
|
||||
|
||||
- name: whiteHeadline
|
||||
type: string
|
||||
meta:
|
||||
label: Weißer Teil Überschrift
|
||||
containerProps:
|
||||
layout:
|
||||
size:
|
||||
default: "col-6"
|
||||
small: "col-6"
|
||||
large: "col-6"
|
||||
|
||||
- name: redHeadline
|
||||
type: string
|
||||
meta:
|
||||
label: Roter Teil Überschrift
|
||||
containerProps:
|
||||
layout:
|
||||
size:
|
||||
default: "col-6"
|
||||
small: "col-6"
|
||||
large: "col-6"
|
||||
|
||||
- name: headlineArrangement
|
||||
type: string
|
||||
meta:
|
||||
label: Headline Anordnung
|
||||
widget: select
|
||||
containerProps:
|
||||
layout:
|
||||
size:
|
||||
default: "col-12"
|
||||
small: "col-12"
|
||||
large: "col-12"
|
||||
choices:
|
||||
- id: row
|
||||
name: in einer Zeile
|
||||
|
||||
- id: column
|
||||
name: in einer Spalte
|
||||
|
||||
- !include ../callToActionButton.yml
|
||||
@@ -0,0 +1,54 @@
|
||||
name: improveYourselfDescription
|
||||
type: object
|
||||
meta:
|
||||
label:
|
||||
de: Verbessere dich Beschreibung
|
||||
en: Improve Yourself Description
|
||||
dependsOn:
|
||||
eval: $parent.type === 'improveYourselfDescription'
|
||||
subFields:
|
||||
- name: upperDescription
|
||||
type: string
|
||||
meta:
|
||||
label:
|
||||
de: Obere Beschreibung
|
||||
en: Upper Description
|
||||
widget: richtext
|
||||
containerProps:
|
||||
layout:
|
||||
size:
|
||||
default: "col-6"
|
||||
small: "col-12"
|
||||
large: "col-6"
|
||||
- name: lowerDescription
|
||||
type: string
|
||||
meta:
|
||||
label:
|
||||
de: Untere Beschreibung
|
||||
en: Lower Description
|
||||
widget: richtext
|
||||
containerProps:
|
||||
layout:
|
||||
size:
|
||||
default: "col-6"
|
||||
small: "col-12"
|
||||
large: "col-6"
|
||||
- name: image
|
||||
type: string
|
||||
meta:
|
||||
label:
|
||||
de: Bild
|
||||
en: Image
|
||||
widget: foreignKey
|
||||
foreign:
|
||||
collection: medialib
|
||||
id: id
|
||||
subNavigation: 0
|
||||
render:
|
||||
defaultCollectionViews: true
|
||||
containerProps:
|
||||
layout:
|
||||
size:
|
||||
default: "col-6"
|
||||
small: "col-12"
|
||||
large: "col-6"
|
||||
28
api/collections/fields/contentBlocks/MainHomepage.yml
Normal file
28
api/collections/fields/contentBlocks/MainHomepage.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
name: mainHomepage
|
||||
type: object
|
||||
meta:
|
||||
label: Hauptseite
|
||||
dependsOn:
|
||||
eval: $parent.type == 'homepage'
|
||||
subFields:
|
||||
- name: type
|
||||
type: string
|
||||
meta:
|
||||
label: Typ
|
||||
widget: select
|
||||
choices:
|
||||
- id: cta
|
||||
name: Call To Action
|
||||
|
||||
- !include CTACol.yml
|
||||
- name: image
|
||||
type: string
|
||||
meta:
|
||||
label: Bild
|
||||
widget: foreignKey
|
||||
foreign:
|
||||
collection: medialib
|
||||
id: id
|
||||
subNavigation: 0
|
||||
render:
|
||||
defaultCollectionViews: true
|
||||
23
api/collections/fields/contentBlocks/SplittedHompage.yml
Normal file
23
api/collections/fields/contentBlocks/SplittedHompage.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
name: splittedHomepage
|
||||
type: object
|
||||
meta:
|
||||
label:
|
||||
de: Geteilte Homepage
|
||||
en: Splitted Homepage Block
|
||||
dependsOn:
|
||||
eval: $parent.type === 'splittedHomepage'
|
||||
subFields:
|
||||
- name: chapters
|
||||
type: string[]
|
||||
meta:
|
||||
label:
|
||||
de: Kapitel
|
||||
en: Chapters
|
||||
widget: foreignKey
|
||||
foreign:
|
||||
collection: selfImprovementChapter
|
||||
id: id
|
||||
sort: name
|
||||
subNavigation: 0
|
||||
render:
|
||||
defaultCollectionViews: true
|
||||
265
api/collections/fields/contentBlocks/columns.yml
Normal file
265
api/collections/fields/contentBlocks/columns.yml
Normal file
@@ -0,0 +1,265 @@
|
||||
x-column-preview: &column-preview
|
||||
eval: |
|
||||
//js
|
||||
(async () => {
|
||||
const {ColumnsColumn, getRenderedElement} = await import($projectBase + "_/assets/dist/admin.mjs?t=" + $project?.updateTime)
|
||||
let c = ColumnsColumn
|
||||
const container = getRenderedElement(c, {
|
||||
props: {
|
||||
column: Object.assign({}, $this, {
|
||||
}),
|
||||
apiBase: $projectBase,
|
||||
},
|
||||
addCss: [
|
||||
$projectBase + "_/assets/dist/index.css",
|
||||
$projectBase + "_/assets/dist/admin.css",
|
||||
],
|
||||
})
|
||||
let style = "background-color: white;"
|
||||
style += "width: 600px;"
|
||||
// if (!$this?.aktiv) {
|
||||
// style += "opacity: 0.5;"
|
||||
// }
|
||||
container.style = style
|
||||
return container
|
||||
})()
|
||||
//!js
|
||||
|
||||
name: columns
|
||||
type: object[]
|
||||
meta:
|
||||
label:
|
||||
de: Spalten
|
||||
en: columns
|
||||
dependsOn:
|
||||
eval: $parent.type == 'columns'
|
||||
pathStep:
|
||||
title: Spalten
|
||||
direction: horizontal
|
||||
widget: previewBasedObjectArray
|
||||
preview: *column-preview
|
||||
folding:
|
||||
previewFolded: *column-preview
|
||||
previewUnfolded:
|
||||
eval: |
|
||||
"<div style=\"padding-left: 30px;\">" + ($this.type == "image" ? "Bild" : "Text") + "-Spalte (Breite: " + ($this.colWidth ? $this.colWidth + "/12" : "automatisch" ) + ")</div>"
|
||||
raw: true
|
||||
defaultValue:
|
||||
eval: |
|
||||
[{type: "text", colWidth: 0}]
|
||||
metaElements:
|
||||
- type
|
||||
- colWidth
|
||||
- verticalAlign
|
||||
subFields:
|
||||
- name: type
|
||||
type: string
|
||||
meta:
|
||||
label:
|
||||
de: Typ
|
||||
en: Type
|
||||
widget: select
|
||||
defaultValue: text
|
||||
choices:
|
||||
- name:
|
||||
de: Text
|
||||
en: Text
|
||||
id: text
|
||||
|
||||
- name:
|
||||
de: Bild
|
||||
en: Image
|
||||
id: image
|
||||
|
||||
- name:
|
||||
de: CTA
|
||||
en: CTA
|
||||
id: cta
|
||||
containerProps:
|
||||
layout:
|
||||
size:
|
||||
default: "col-4"
|
||||
small: "col-12"
|
||||
large: "col-4"
|
||||
- name: colWidth
|
||||
type: number
|
||||
meta:
|
||||
widget: select
|
||||
label:
|
||||
de: Spaltenbreite
|
||||
en: Column width
|
||||
choices:
|
||||
- id: -1
|
||||
name:
|
||||
de: automatische Breite
|
||||
en: auto
|
||||
- id: 6
|
||||
name:
|
||||
de: 1/2
|
||||
en: 1/2
|
||||
- id: 4
|
||||
name:
|
||||
de: 1/3
|
||||
en: 1/3
|
||||
defaultValue: -1
|
||||
containerProps:
|
||||
layout:
|
||||
size:
|
||||
default: "col-4"
|
||||
small: "col-12"
|
||||
large: "col-4"
|
||||
- name: verticalAlign
|
||||
type: string
|
||||
meta:
|
||||
widget: select
|
||||
label:
|
||||
de: vertikale Ausrichtung
|
||||
en: vertical alignment
|
||||
choices:
|
||||
- id: top
|
||||
name:
|
||||
de: oben
|
||||
en: top
|
||||
- id: middle
|
||||
name:
|
||||
de: mittig
|
||||
en: middle
|
||||
- id: bottom
|
||||
name:
|
||||
de: unten
|
||||
en: bottom
|
||||
defaultValue: top
|
||||
containerProps:
|
||||
layout:
|
||||
size:
|
||||
default: "col-4"
|
||||
small: "col-12"
|
||||
large: "col-4"
|
||||
- name: text
|
||||
type: string
|
||||
meta:
|
||||
label:
|
||||
de: Text
|
||||
en: text
|
||||
widget: richtext
|
||||
dependsOn:
|
||||
eval: $parent.type == 'text'
|
||||
|
||||
- name: images
|
||||
type: string[]
|
||||
meta:
|
||||
label:
|
||||
de: Bild
|
||||
en: Image
|
||||
widget: foreignKey
|
||||
foreign:
|
||||
collection: medialib
|
||||
id: id
|
||||
subNavigation: 0
|
||||
render: !include ../../lib/foreignMediaRender.yml
|
||||
dependsOn:
|
||||
eval: $parent.type == 'image'
|
||||
|
||||
- name: imageMobileBackground
|
||||
type: boolean
|
||||
meta:
|
||||
label:
|
||||
de: Bild auf Mobilgeräten in hintergrund
|
||||
en: Image on mobile devices in background
|
||||
dependsOn:
|
||||
eval: $parent.type == 'image'
|
||||
- name: forceFullHeight
|
||||
type: boolean
|
||||
meta:
|
||||
label:
|
||||
de: volle Bildhöhe erzwingen
|
||||
en: full Force image height
|
||||
dependsOn:
|
||||
eval: $parent.type == 'image'
|
||||
|
||||
- name: imageHoverEffect
|
||||
type: boolean
|
||||
meta:
|
||||
label:
|
||||
de: Bild hover effekt
|
||||
en: Image hover effect
|
||||
dependsOn:
|
||||
eval: $parent.type == 'image'
|
||||
- name: links
|
||||
type: object[]
|
||||
meta:
|
||||
label:
|
||||
de: Links
|
||||
en: Links
|
||||
folding:
|
||||
force: true
|
||||
previewFolded:
|
||||
eval: |
|
||||
"<div style=\"padding-left: 30px;\">Link: <b>" + ($this.text || "") + "</b></div>"
|
||||
raw: true
|
||||
dependsOn:
|
||||
eval: $parent.type == 'text'
|
||||
subFields:
|
||||
- name: text
|
||||
type: string
|
||||
meta:
|
||||
label:
|
||||
de: Text
|
||||
en: Text
|
||||
- name: url
|
||||
type: string
|
||||
meta:
|
||||
label:
|
||||
de: URL
|
||||
en: URL
|
||||
- name: target
|
||||
type: string
|
||||
meta:
|
||||
label:
|
||||
de: Ziel
|
||||
en: Target
|
||||
widget: select
|
||||
choices:
|
||||
- name:
|
||||
de: im gleichen Fenster
|
||||
en: in the same window
|
||||
id: _self
|
||||
- name:
|
||||
de: in einem neuen Fenster
|
||||
en: in a new window
|
||||
id: _blank
|
||||
- name: style
|
||||
type: string
|
||||
meta:
|
||||
label:
|
||||
de: Stil
|
||||
en: Style
|
||||
widget: select
|
||||
defaultValue: primary
|
||||
choices:
|
||||
- name:
|
||||
de: primär (roter Hintergrund)
|
||||
en: primary (red background)
|
||||
id: primary
|
||||
|
||||
- name:
|
||||
de: sekundär (rote Schrift)
|
||||
en: secondary (red text)
|
||||
id: secondary
|
||||
|
||||
- id: tertiary
|
||||
name:
|
||||
de: normaler Link (graue Schrift)
|
||||
en: normal link (grey text)
|
||||
|
||||
- name:
|
||||
de: externer Link (Icon links)
|
||||
en: external link (icon left)
|
||||
id: external
|
||||
|
||||
- name:
|
||||
de: Download Link (Icon links)
|
||||
en: download link (icon left)
|
||||
id: download
|
||||
|
||||
- !include ./CTACol.yml
|
||||
7
api/collections/fields/contentBlocks/form.yml
Normal file
7
api/collections/fields/contentBlocks/form.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
name: form
|
||||
type: object
|
||||
meta:
|
||||
widget: containerLessObject
|
||||
dependsOn:
|
||||
eval: $parent.type == 'form'
|
||||
subFields: !include ../../fieldLists/formular/form.yml
|
||||
28
api/collections/fields/contentBlocks/predefined.yml
Normal file
28
api/collections/fields/contentBlocks/predefined.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
name: predefinedBlock
|
||||
type: object
|
||||
meta:
|
||||
label:
|
||||
de: Vordefinierter Block
|
||||
en: Predefined Block
|
||||
dependsOn:
|
||||
eval: |
|
||||
(function() {
|
||||
return $parent?.type === 'predefinedBlock'
|
||||
})()
|
||||
subFields:
|
||||
- name: id
|
||||
type: string
|
||||
meta:
|
||||
label:
|
||||
de: Inhalt
|
||||
en: Include
|
||||
widget: foreignKey
|
||||
foreign:
|
||||
collection: content
|
||||
id: id
|
||||
subNavigation: 0
|
||||
render:
|
||||
eval: |
|
||||
(function() {
|
||||
return $foreignEntry?.name || $foreignEntry?.id
|
||||
})()
|
||||
85
api/collections/fields/contentBlocks/productSlider.yml
Normal file
85
api/collections/fields/contentBlocks/productSlider.yml
Normal file
@@ -0,0 +1,85 @@
|
||||
name: productSlider
|
||||
type: object
|
||||
meta:
|
||||
label:
|
||||
de: Produktslider
|
||||
en: Product Slider
|
||||
dependsOn:
|
||||
eval: $parent.type === 'productSlider'
|
||||
subFields:
|
||||
- name: productSource
|
||||
type: string
|
||||
meta:
|
||||
label:
|
||||
de: Produktdatenquelle
|
||||
en: Product Data Source
|
||||
widget: select
|
||||
choices:
|
||||
- name:
|
||||
de: Manuelle Auswahl
|
||||
en: Manual Selection
|
||||
id: manual
|
||||
|
||||
- name:
|
||||
de: Kategorie Id
|
||||
en: Category id
|
||||
id: category
|
||||
|
||||
- name:
|
||||
de: Bestseller
|
||||
en: Bestseller
|
||||
id: bestseller
|
||||
|
||||
- name:
|
||||
de: Neue Produkte
|
||||
en: New Products
|
||||
id: newProducts
|
||||
|
||||
- name:
|
||||
de: Hervorgehoben
|
||||
en: Featured
|
||||
id: featured
|
||||
|
||||
- name:
|
||||
de: Angebote
|
||||
en: Discounted
|
||||
id: discounted
|
||||
|
||||
- name: productIds
|
||||
type: number[]
|
||||
meta:
|
||||
label:
|
||||
de: Produkt IDs
|
||||
en: Product IDs
|
||||
dependsOn:
|
||||
eval: $parent.productSource === 'manual' || $parent.productSource === "discounted"
|
||||
widget: foreignKey
|
||||
foreign:
|
||||
collection: bigCommerceProduct
|
||||
id: bigCommerceId
|
||||
subNavigation: 0
|
||||
render:
|
||||
defaultCollectionViews: true
|
||||
|
||||
- name: categoryId
|
||||
type: string
|
||||
meta:
|
||||
label:
|
||||
de: Kategorie
|
||||
en: Category
|
||||
dependsOn:
|
||||
eval: $parent.productSource === 'category'
|
||||
|
||||
- !include ../callToActionButton.yml
|
||||
- name: headline
|
||||
type: string
|
||||
meta:
|
||||
label:
|
||||
de: Überschrift
|
||||
en: Headline
|
||||
- name: topLine
|
||||
type: string
|
||||
meta:
|
||||
label:
|
||||
de: Top Line
|
||||
en: Top Line
|
||||
25
api/collections/fields/contentBlocks/ratingsPreview.yml
Normal file
25
api/collections/fields/contentBlocks/ratingsPreview.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
name: ratingsPreview
|
||||
type: object
|
||||
meta:
|
||||
label:
|
||||
de: Bewertungsvorschau
|
||||
en: Ratings Preview
|
||||
dependsOn:
|
||||
eval: $parent.type === 'ratingPreview'
|
||||
subFields:
|
||||
- name: ratings
|
||||
type: object[]
|
||||
meta:
|
||||
widget: containerLessObjectArray
|
||||
subFields:
|
||||
- name: rating
|
||||
type: string
|
||||
meta:
|
||||
label: rating
|
||||
widget: foreignKey
|
||||
foreign:
|
||||
collection: rating
|
||||
id: id
|
||||
subNavigation: 0
|
||||
render:
|
||||
defaultCollectionViews: true
|
||||
@@ -0,0 +1,35 @@
|
||||
name: selfImprovementChapterPreview
|
||||
type: object[]
|
||||
meta:
|
||||
label:
|
||||
de: Vorschau
|
||||
en: Preview
|
||||
dependsOn:
|
||||
eval: $parent.type === 'selfImprovementChapterPreview'
|
||||
subFields:
|
||||
- name: chapter
|
||||
type: string
|
||||
meta:
|
||||
label:
|
||||
de: Kapitel
|
||||
en: Chapter
|
||||
widget: foreignKey
|
||||
foreign:
|
||||
collection: selfImprovementChapter
|
||||
id: id
|
||||
subNavigation: 0
|
||||
render:
|
||||
defaultCollectionViews: true
|
||||
- name: previewImage
|
||||
type: string
|
||||
meta:
|
||||
label:
|
||||
de: Vorschaubild
|
||||
en: Preview Image
|
||||
widget: foreignKey
|
||||
foreign:
|
||||
collection: medialib
|
||||
id: id
|
||||
subNavigation: 0
|
||||
render:
|
||||
defaultCollectionViews: true
|
||||
73
api/collections/fields/contentBlocks/stepNr.yml
Normal file
73
api/collections/fields/contentBlocks/stepNr.yml
Normal file
@@ -0,0 +1,73 @@
|
||||
name: steps
|
||||
type: object
|
||||
meta:
|
||||
label:
|
||||
de: Stepp Nr
|
||||
en: Step Nr
|
||||
dependsOn:
|
||||
eval: $parent.type === 'stepNr' || !$parent.type
|
||||
subFields:
|
||||
- name: horizontal
|
||||
type: boolean
|
||||
meta:
|
||||
label:
|
||||
de: Horizontal
|
||||
en: Horizontal
|
||||
|
||||
- name: color
|
||||
type: string
|
||||
meta:
|
||||
label:
|
||||
de: Farbe
|
||||
en: Color
|
||||
widget: select
|
||||
choices:
|
||||
- name: red
|
||||
id: red
|
||||
|
||||
- name: items
|
||||
type: object[]
|
||||
meta:
|
||||
label:
|
||||
de: Items
|
||||
en: Items
|
||||
widget: containerLessObjectArray
|
||||
subFields:
|
||||
- name: nr
|
||||
type: number
|
||||
meta:
|
||||
label:
|
||||
de: Nr
|
||||
en: Nr
|
||||
|
||||
- name: title
|
||||
type: string
|
||||
meta:
|
||||
label:
|
||||
de: Titel
|
||||
en: Title
|
||||
|
||||
- name: descriptions
|
||||
type: string[]
|
||||
meta:
|
||||
widget: string
|
||||
useDefaultArray: true
|
||||
label:
|
||||
de: Beschreibung
|
||||
en: Description
|
||||
inputProps:
|
||||
multiline: true
|
||||
|
||||
- name: image
|
||||
type: string
|
||||
meta:
|
||||
label:
|
||||
de: Bild
|
||||
en: Image
|
||||
widget: foreignKey
|
||||
foreign:
|
||||
collection: medialib
|
||||
id: id
|
||||
subNavigation: 0
|
||||
render:
|
||||
defaultCollectionViews: true
|
||||
Reference in New Issue
Block a user