generated from cms/tibi-docs
first version
This commit is contained in:
parent
b107392907
commit
92ca030e6c
@ -18,17 +18,81 @@ meta:
|
|||||||
label: Allgemein
|
label: Allgemein
|
||||||
subFields:
|
subFields:
|
||||||
- source: path
|
- source: path
|
||||||
|
- source: type
|
||||||
|
- source: pageTitle
|
||||||
|
- source: topTitleUpperCase
|
||||||
|
- source: active
|
||||||
|
|
||||||
- name: teaser
|
- name: teaser
|
||||||
label: Teaser
|
label: Homepage Seitenteaser
|
||||||
subFields:
|
subFields:
|
||||||
- source: teaser
|
- source: teaser
|
||||||
|
|
||||||
|
- name: personPreview
|
||||||
|
label: Personenvorschau
|
||||||
|
subFields:
|
||||||
|
- source: personType
|
||||||
|
- source: personPreview
|
||||||
|
|
||||||
|
- name: jobOffer
|
||||||
|
label: Job Angebote
|
||||||
|
subFields:
|
||||||
|
- source: jobOffer
|
||||||
|
|
||||||
- name: site
|
- name: site
|
||||||
label: Seite
|
label: Seite
|
||||||
subFields:
|
subFields:
|
||||||
- source: rows
|
- source: rows
|
||||||
|
|
||||||
|
subNavigation:
|
||||||
|
- name: seite
|
||||||
|
label:
|
||||||
|
de: Seiten
|
||||||
|
en: pages
|
||||||
|
muiIcon: book-open-page-variant
|
||||||
|
defaultSort:
|
||||||
|
field: "pfad"
|
||||||
|
order: "ASC"
|
||||||
|
views:
|
||||||
|
- type: table
|
||||||
|
columns:
|
||||||
|
- source: path
|
||||||
|
|
||||||
|
filter:
|
||||||
|
type: page
|
||||||
|
|
||||||
|
- name: teamMembers
|
||||||
|
label:
|
||||||
|
de: Teammitglieder
|
||||||
|
en: Team members
|
||||||
|
muiIcon: book-open-page-variant
|
||||||
|
defaultSort:
|
||||||
|
field: "pfad"
|
||||||
|
order: "ASC"
|
||||||
|
views:
|
||||||
|
- type: table
|
||||||
|
columns:
|
||||||
|
- source: path
|
||||||
|
|
||||||
|
filter:
|
||||||
|
type: teamMember
|
||||||
|
|
||||||
|
- name: jobOffers
|
||||||
|
label:
|
||||||
|
de: Stellenanzeigen
|
||||||
|
en: Job offers
|
||||||
|
muiIcon: book-open-page-variant
|
||||||
|
defaultSort:
|
||||||
|
field: "pfad"
|
||||||
|
order: "ASC"
|
||||||
|
views:
|
||||||
|
- type: table
|
||||||
|
columns:
|
||||||
|
- source: path
|
||||||
|
|
||||||
|
filter:
|
||||||
|
type: jobOffer
|
||||||
|
|
||||||
imageFilter:
|
imageFilter:
|
||||||
xs:
|
xs:
|
||||||
- fit: true
|
- fit: true
|
||||||
@ -87,14 +151,146 @@ fields:
|
|||||||
label: Pfad
|
label: Pfad
|
||||||
helperText: "Ein Pfad sollte mit einem / starten und ohne eins enden."
|
helperText: "Ein Pfad sollte mit einem / starten und ohne eins enden."
|
||||||
|
|
||||||
|
- type: boolean
|
||||||
|
name: active
|
||||||
|
meta:
|
||||||
|
label: Aktiv
|
||||||
|
|
||||||
|
- type: string
|
||||||
|
name: type
|
||||||
|
meta:
|
||||||
|
label: Typ
|
||||||
|
widget: select
|
||||||
|
choices:
|
||||||
|
- name: Seite
|
||||||
|
id: page
|
||||||
|
|
||||||
|
- name: Teammitglieder
|
||||||
|
id: teamMembers
|
||||||
|
|
||||||
|
- name: Stellenanzeigen
|
||||||
|
id: jobOffers
|
||||||
|
|
||||||
|
- name: pageTitle
|
||||||
|
type: string
|
||||||
|
meta:
|
||||||
|
label: Titel der Seite
|
||||||
|
helperText: "Dieser Titel wird in der Seite als h1 angezeigt."
|
||||||
|
containerProps:
|
||||||
|
layout:
|
||||||
|
size:
|
||||||
|
default: "col-6"
|
||||||
|
small: "col-6"
|
||||||
|
large: "col-6"
|
||||||
|
|
||||||
|
- name: personType
|
||||||
|
type: string
|
||||||
|
meta:
|
||||||
|
label: Typ
|
||||||
|
widget: select
|
||||||
|
choices:
|
||||||
|
- name: Chef
|
||||||
|
id: chef
|
||||||
|
- name: Mitarbeiter
|
||||||
|
id: employee
|
||||||
|
|
||||||
|
- name: personPreview
|
||||||
|
type: object
|
||||||
|
meta:
|
||||||
|
label: Personenvorschau
|
||||||
|
subFields:
|
||||||
|
- name: initialImage
|
||||||
|
type: string
|
||||||
|
meta:
|
||||||
|
label: Bild
|
||||||
|
containerProps:
|
||||||
|
layout:
|
||||||
|
size:
|
||||||
|
default: "col-6"
|
||||||
|
small: "col-12"
|
||||||
|
large: "col-6"
|
||||||
|
dependsOn:
|
||||||
|
eval: $.personType == 'chef'
|
||||||
|
widget: foreignKey # Verwendetes Widget.
|
||||||
|
foreign:
|
||||||
|
collection: medialib # Name der Sammlung, in der die ausgewählten Daten gespeichert sind.
|
||||||
|
id: id # Feldname, das als eindeutige Kennung für die ausgewählten Daten verwendet wird.
|
||||||
|
subNavigation: 0 # Bestimmt, welche Navigation für die Auswahl der ausgewählten Daten angezeigt wird.
|
||||||
|
#projection: xyz
|
||||||
|
#sort: "title"
|
||||||
|
render:
|
||||||
|
defaultCollectionViews: true
|
||||||
|
|
||||||
|
- name: hoverImage
|
||||||
|
type: string
|
||||||
|
meta:
|
||||||
|
label: Bild beim Hover
|
||||||
|
containerProps:
|
||||||
|
layout:
|
||||||
|
size:
|
||||||
|
default: "col-6"
|
||||||
|
small: "col-12"
|
||||||
|
large: "col-6"
|
||||||
|
dependsOn:
|
||||||
|
eval: $.personType == 'chef'
|
||||||
|
widget: foreignKey # Verwendetes Widget.
|
||||||
|
foreign:
|
||||||
|
collection: medialib # Name der Sammlung, in der die ausgewählten Daten gespeichert sind.
|
||||||
|
id: id # Feldname, das als eindeutige Kennung für die ausgewählten Daten verwendet wird.
|
||||||
|
subNavigation: 0 # Bestimmt, welche Navigation für die Auswahl der ausgewählten Daten angezeigt wird.
|
||||||
|
#projection: xyz
|
||||||
|
#sort: "title"
|
||||||
|
render:
|
||||||
|
defaultCollectionViews: true
|
||||||
|
|
||||||
|
- name: name
|
||||||
|
type: string
|
||||||
|
meta:
|
||||||
|
label: Name
|
||||||
|
|
||||||
- !include fields/teaserHomepage.yml
|
- !include fields/teaserHomepage.yml
|
||||||
|
|
||||||
|
- name: jobOffer
|
||||||
|
type: object
|
||||||
|
meta:
|
||||||
|
label: Job Angebote
|
||||||
|
subFields:
|
||||||
|
- name: title
|
||||||
|
type: string
|
||||||
|
meta:
|
||||||
|
label: Titel
|
||||||
|
|
||||||
|
- name: text
|
||||||
|
type: string
|
||||||
|
meta:
|
||||||
|
widget: richtext
|
||||||
|
label: Text
|
||||||
|
|
||||||
|
- name: emailButton
|
||||||
|
type: boolean
|
||||||
|
meta:
|
||||||
|
label: E-Mail Button Anzeigen
|
||||||
|
|
||||||
|
- name: emailSubject
|
||||||
|
type: string
|
||||||
|
meta:
|
||||||
|
label: E-Mail default Betreff
|
||||||
|
dependsOn:
|
||||||
|
eval: $parent.emailButton == true
|
||||||
|
|
||||||
- name: rows
|
- name: rows
|
||||||
type: object[]
|
type: object[]
|
||||||
meta:
|
meta:
|
||||||
label: Zeilen
|
label: Zeilen
|
||||||
widget: containerLessObjectArray
|
widget: grid
|
||||||
|
metaElements:
|
||||||
|
- source: backgroundImage
|
||||||
|
- source: noBottomMargin
|
||||||
|
- source: noTopMargin
|
||||||
|
- source: flexWrapNormal
|
||||||
|
- source: twoToThree
|
||||||
|
- source: nextPage
|
||||||
folding:
|
folding:
|
||||||
force: true
|
force: true
|
||||||
subFields:
|
|
||||||
- !include fields/row.yml
|
subFields: !include fieldLists/row.yml
|
||||||
|
@ -1,11 +1,32 @@
|
|||||||
- name: icon
|
- name: icon
|
||||||
type: file
|
type: string
|
||||||
meta:
|
meta:
|
||||||
label: Icon
|
label: Icon
|
||||||
helperText: "Das Icon wird in der Box angezeigt."
|
helperText: "Das Icon wird in der Box angezeigt."
|
||||||
|
widget: foreignKey # Verwendetes Widget.
|
||||||
|
foreign:
|
||||||
|
collection: medialib # Name der Sammlung, in der die ausgewählten Daten gespeichert sind.
|
||||||
|
id: id # Feldname, das als eindeutige Kennung für die ausgewählten Daten verwendet wird.
|
||||||
|
subNavigation: 0 # Bestimmt, welche Navigation für die Auswahl der ausgewählten Daten angezeigt wird.
|
||||||
|
#projection: xyz
|
||||||
|
#sort: "title"
|
||||||
|
render:
|
||||||
|
defaultCollectionViews: true
|
||||||
|
containerProps:
|
||||||
|
layout:
|
||||||
|
size:
|
||||||
|
default: "col-6"
|
||||||
|
small: "col-12"
|
||||||
|
large: "col-6"
|
||||||
|
|
||||||
- name: text
|
- name: text
|
||||||
type: string
|
type: string
|
||||||
meta:
|
meta:
|
||||||
label: Text
|
label: Text
|
||||||
helperText: "Der Text wird in der Box angezeigt."
|
helperText: "Der Text wird in der Box angezeigt."
|
||||||
|
containerProps:
|
||||||
|
layout:
|
||||||
|
size:
|
||||||
|
default: "col-6"
|
||||||
|
small: "col-12"
|
||||||
|
large: "col-6"
|
||||||
|
@ -1,8 +1,15 @@
|
|||||||
- name: image
|
- name: image
|
||||||
type: file
|
type: string
|
||||||
meta:
|
meta:
|
||||||
label: Kartenausschnitt
|
label: Kartenausschnitt
|
||||||
helperText: "Der Kartenausschnitt wird als Hintergrundbild angezeigt."
|
helperText: "Der Kartenausschnitt wird als Hintergrundbild angezeigt."
|
||||||
|
widget: foreignKey # Verwendetes Widget.
|
||||||
|
foreign:
|
||||||
|
collection: medialib # Name der Sammlung, in der die ausgewählten Daten gespeichert sind.
|
||||||
|
id: id # Feldname, das als eindeutige Kennung für die ausgewählten Daten verwendet wird.
|
||||||
|
subNavigation: 0 # Bestimmt, welche Navigation für die Auswahl der ausgewählten Daten angezeigt wird.
|
||||||
|
render:
|
||||||
|
defaultCollectionViews: true
|
||||||
|
|
||||||
- name: title
|
- name: title
|
||||||
type: string
|
type: string
|
||||||
|
@ -7,11 +7,8 @@
|
|||||||
- name: Bild
|
- name: Bild
|
||||||
id: image
|
id: image
|
||||||
|
|
||||||
- name: Icons im Rechteck
|
- name: Modul Import
|
||||||
id: iconCycleSquare
|
id: moduleImport
|
||||||
|
|
||||||
- name: Icons im Kreis
|
|
||||||
id: iconCycleCircle
|
|
||||||
|
|
||||||
- name: Text
|
- name: Text
|
||||||
id: text
|
id: text
|
||||||
@ -19,21 +16,12 @@
|
|||||||
- name: Informationsbrett
|
- name: Informationsbrett
|
||||||
id: infoBoard
|
id: infoBoard
|
||||||
|
|
||||||
- name: Weltkarte
|
|
||||||
id: worldCard
|
|
||||||
|
|
||||||
- name: Verschatelte Karte
|
- name: Verschatelte Karte
|
||||||
id: nestedCard
|
id: nestedCard
|
||||||
|
|
||||||
- name: Top-Down
|
- name: Top-Down
|
||||||
id: topDown
|
id: topDown
|
||||||
|
|
||||||
- name: Personenvorschau
|
|
||||||
id: personPreview
|
|
||||||
|
|
||||||
- name: Boxliste
|
|
||||||
id: boxlist
|
|
||||||
|
|
||||||
- name: Ausfahrbare Box
|
- name: Ausfahrbare Box
|
||||||
id: extendableBoxes
|
id: extendableBoxes
|
||||||
|
|
||||||
@ -43,9 +31,6 @@
|
|||||||
- name: Icon block
|
- name: Icon block
|
||||||
id: iconBlocks
|
id: iconBlocks
|
||||||
|
|
||||||
- name: Seitenlinks
|
|
||||||
id: pageLinkBlocks
|
|
||||||
|
|
||||||
- name: Netzwerk Veranstaltungen
|
- name: Netzwerk Veranstaltungen
|
||||||
id: networkEvents
|
id: networkEvents
|
||||||
|
|
||||||
@ -58,16 +43,30 @@
|
|||||||
label: Netzwerkveranstaltungen
|
label: Netzwerkveranstaltungen
|
||||||
dependsOn:
|
dependsOn:
|
||||||
eval: $parent.contentType == 'networkEvents'
|
eval: $parent.contentType == 'networkEvents'
|
||||||
|
widget: containerLessObjectArray
|
||||||
|
|
||||||
subFields:
|
subFields:
|
||||||
- name: beginDate
|
- name: beginDate
|
||||||
type: date
|
type: date
|
||||||
meta:
|
meta:
|
||||||
label: Beginn
|
label: Beginn
|
||||||
|
containerProps:
|
||||||
|
layout:
|
||||||
|
size:
|
||||||
|
default: "col-6"
|
||||||
|
small: "col-6"
|
||||||
|
large: "col-6"
|
||||||
|
|
||||||
- name: endDate
|
- name: endDate
|
||||||
type: date
|
type: date
|
||||||
meta:
|
meta:
|
||||||
label: Ende
|
label: Ende
|
||||||
|
containerProps:
|
||||||
|
layout:
|
||||||
|
size:
|
||||||
|
default: "col-6"
|
||||||
|
small: "col-6"
|
||||||
|
large: "col-6"
|
||||||
|
|
||||||
- name: title
|
- name: title
|
||||||
type: string
|
type: string
|
||||||
@ -75,9 +74,18 @@
|
|||||||
label: Titel
|
label: Titel
|
||||||
|
|
||||||
- name: file
|
- name: file
|
||||||
type: file
|
type: string
|
||||||
meta:
|
meta:
|
||||||
label: downloadDatei
|
label: downloadDatei
|
||||||
|
widget: foreignKey # Verwendetes Widget.
|
||||||
|
foreign:
|
||||||
|
collection: medialib # Name der Sammlung, in der die ausgewählten Daten gespeichert sind.
|
||||||
|
id: id # Feldname, das als eindeutige Kennung für die ausgewählten Daten verwendet wird.
|
||||||
|
subNavigation: 0 # Bestimmt, welche Navigation für die Auswahl der ausgewählten Daten angezeigt wird.
|
||||||
|
#projection: xyz
|
||||||
|
#sort: "title"
|
||||||
|
render:
|
||||||
|
defaultCollectionViews: true
|
||||||
|
|
||||||
- name: publications
|
- name: publications
|
||||||
type: object[]
|
type: object[]
|
||||||
@ -85,6 +93,8 @@
|
|||||||
label: Publikationen
|
label: Publikationen
|
||||||
dependsOn:
|
dependsOn:
|
||||||
eval: $parent.contentType == 'publications'
|
eval: $parent.contentType == 'publications'
|
||||||
|
widget: containerLessObjectArray
|
||||||
|
direction: row
|
||||||
subFields:
|
subFields:
|
||||||
- name: content
|
- name: content
|
||||||
type: string
|
type: string
|
||||||
@ -93,9 +103,18 @@
|
|||||||
widget: richtext
|
widget: richtext
|
||||||
|
|
||||||
- name: file
|
- name: file
|
||||||
type: file
|
type: string
|
||||||
meta:
|
meta:
|
||||||
label: downloadDatei
|
label: downloadDatei
|
||||||
|
widget: foreignKey # Verwendetes Widget.
|
||||||
|
foreign:
|
||||||
|
collection: medialib # Name der Sammlung, in der die ausgewählten Daten gespeichert sind.
|
||||||
|
id: id # Feldname, das als eindeutige Kennung für die ausgewählten Daten verwendet wird.
|
||||||
|
subNavigation: 0 # Bestimmt, welche Navigation für die Auswahl der ausgewählten Daten angezeigt wird.
|
||||||
|
#projection: xyz
|
||||||
|
#sort: "title"
|
||||||
|
render:
|
||||||
|
defaultCollectionViews: true
|
||||||
|
|
||||||
- name: iconBlocks
|
- name: iconBlocks
|
||||||
type: object[]
|
type: object[]
|
||||||
@ -103,11 +122,22 @@
|
|||||||
label: Icon block
|
label: Icon block
|
||||||
dependsOn:
|
dependsOn:
|
||||||
eval: $parent.contentType == 'iconBlocks'
|
eval: $parent.contentType == 'iconBlocks'
|
||||||
|
widget: containerLessObjectArray
|
||||||
|
direction: row
|
||||||
subFields:
|
subFields:
|
||||||
- name: icon
|
- name: icon
|
||||||
type: file
|
type: string
|
||||||
meta:
|
meta:
|
||||||
label: Icon
|
label: Icon
|
||||||
|
widget: foreignKey # Verwendetes Widget.
|
||||||
|
foreign:
|
||||||
|
collection: medialib # Name der Sammlung, in der die ausgewählten Daten gespeichert sind.
|
||||||
|
id: id # Feldname, das als eindeutige Kennung für die ausgewählten Daten verwendet wird.
|
||||||
|
subNavigation: 0 # Bestimmt, welche Navigation für die Auswahl der ausgewählten Daten angezeigt wird.
|
||||||
|
#projection: xyz
|
||||||
|
#sort: "title"
|
||||||
|
render:
|
||||||
|
defaultCollectionViews: true
|
||||||
- name: bigText
|
- name: bigText
|
||||||
type: string
|
type: string
|
||||||
meta:
|
meta:
|
||||||
@ -117,82 +147,64 @@
|
|||||||
meta:
|
meta:
|
||||||
label: unterer Text
|
label: unterer Text
|
||||||
|
|
||||||
- name: pageLinkBlocks
|
|
||||||
type: object[]
|
|
||||||
meta:
|
|
||||||
label: Seitenlinks
|
|
||||||
dependsOn:
|
|
||||||
eval: $parent.contentType == 'pageLinkBlocks'
|
|
||||||
subFields:
|
|
||||||
- name: page
|
|
||||||
type: string
|
|
||||||
meta:
|
|
||||||
label: Seite
|
|
||||||
widget: select
|
|
||||||
choices:
|
|
||||||
endpoint: page
|
|
||||||
params:
|
|
||||||
sort: path
|
|
||||||
projection: navigation
|
|
||||||
mapping:
|
|
||||||
id: id
|
|
||||||
name: path
|
|
||||||
|
|
||||||
- name: name
|
|
||||||
type: string
|
|
||||||
meta:
|
|
||||||
label: Name
|
|
||||||
|
|
||||||
- name: rowNr
|
|
||||||
type: number
|
|
||||||
meta:
|
|
||||||
label: Zeilen Nr (0 Basiert)
|
|
||||||
|
|
||||||
- name: extendableRowNr
|
|
||||||
type: number
|
|
||||||
meta:
|
|
||||||
label: Ausfahrbare boxreihe (0 Basiert)
|
|
||||||
|
|
||||||
- name: image
|
- name: image
|
||||||
type: file
|
type: string
|
||||||
meta:
|
meta:
|
||||||
label: Bild
|
label: Bild
|
||||||
dependsOn:
|
dependsOn:
|
||||||
eval: $parent.contentType == 'image'
|
eval: $parent.contentType == 'image'
|
||||||
|
widget: foreignKey # Verwendetes Widget.
|
||||||
|
foreign:
|
||||||
|
collection: medialib # Name der Sammlung, in der die ausgewählten Daten gespeichert sind.
|
||||||
|
id: id # Feldname, das als eindeutige Kennung für die ausgewählten Daten verwendet wird.
|
||||||
|
subNavigation: 0 # Bestimmt, welche Navigation für die Auswahl der ausgewählten Daten angezeigt wird.
|
||||||
|
#projection: xyz
|
||||||
|
#sort: "title"
|
||||||
|
render:
|
||||||
|
defaultCollectionViews: true
|
||||||
|
|
||||||
- name: icons
|
- name: icons
|
||||||
type: object[]
|
type: object[]
|
||||||
meta:
|
meta:
|
||||||
label: Icons
|
label: Icons
|
||||||
helperText: "Für Personpreview xing und linkedin icons gedacht."
|
helperText: "Für Personpreview xing und linkedin icons gedacht."
|
||||||
|
widget: containerLessObjectArray
|
||||||
|
direction: row
|
||||||
dependsOn:
|
dependsOn:
|
||||||
eval: $parent.contentType == 'image'
|
eval: $parent.contentType == 'image'
|
||||||
subFields:
|
subFields:
|
||||||
- name: icon
|
- name: icon
|
||||||
type: file
|
type: string
|
||||||
meta:
|
meta:
|
||||||
label: Icon
|
label: Icon
|
||||||
|
widget: foreignKey # Verwendetes Widget.
|
||||||
|
foreign:
|
||||||
|
collection: medialib # Name der Sammlung, in der die ausgewählten Daten gespeichert sind.
|
||||||
|
id: id # Feldname, das als eindeutige Kennung für die ausgewählten Daten verwendet wird.
|
||||||
|
subNavigation: 0 # Bestimmt, welche Navigation für die Auswahl der ausgewählten Daten angezeigt wird.
|
||||||
|
#projection: xyz
|
||||||
|
#sort: "title"
|
||||||
|
render:
|
||||||
|
defaultCollectionViews: true
|
||||||
|
|
||||||
- name: link
|
- name: link
|
||||||
type: string
|
type: string
|
||||||
meta:
|
meta:
|
||||||
label: Link
|
label: Link
|
||||||
|
|
||||||
- name: iconCycleSquare
|
- name: moduleImport
|
||||||
type: object
|
type: string
|
||||||
meta:
|
meta:
|
||||||
label: Icons im Rechteck
|
label: Modul Import
|
||||||
dependsOn:
|
dependsOn:
|
||||||
eval: $parent.contentType == 'iconCycleSquare'
|
eval: $parent.contentType == 'moduleImport'
|
||||||
subFields: !include iconCycleSquare.yml
|
widget: foreignKey
|
||||||
|
foreign:
|
||||||
- name: iconCycleCircle
|
collection: module
|
||||||
type: object
|
id: id
|
||||||
meta:
|
subNavigation: 0
|
||||||
label: Icons im Kreis
|
render:
|
||||||
dependsOn:
|
defaultCollectionViews: true
|
||||||
eval: $parent.contentType == 'iconCycleCircle'
|
|
||||||
subFields: !include iconCycleCircle.yml
|
|
||||||
|
|
||||||
- name: text
|
- name: text
|
||||||
type: string
|
type: string
|
||||||
@ -206,6 +218,7 @@
|
|||||||
type: object
|
type: object
|
||||||
meta:
|
meta:
|
||||||
label: Informationsbrett
|
label: Informationsbrett
|
||||||
|
widget: containerLessObject
|
||||||
dependsOn:
|
dependsOn:
|
||||||
eval: $parent.contentType == 'infoBoard'
|
eval: $parent.contentType == 'infoBoard'
|
||||||
subFields:
|
subFields:
|
||||||
@ -223,36 +236,26 @@
|
|||||||
helperText: "Dieser Text wird im Infobrett angezeigt."
|
helperText: "Dieser Text wird im Infobrett angezeigt."
|
||||||
|
|
||||||
- name: icon
|
- name: icon
|
||||||
type: file
|
type: string
|
||||||
meta:
|
meta:
|
||||||
label: Icon
|
label: Icon
|
||||||
helperText: "Das Icon wird im Infobrett angezeigt."
|
helperText: "Das Icon wird im Infobrett angezeigt."
|
||||||
|
widget: foreignKey # Verwendetes Widget.
|
||||||
- name: worldCard
|
foreign:
|
||||||
type: object
|
collection: medialib # Name der Sammlung, in der die ausgewählten Daten gespeichert sind.
|
||||||
meta:
|
id: id # Feldname, das als eindeutige Kennung für die ausgewählten Daten verwendet wird.
|
||||||
label: Weltkarte
|
subNavigation: 0 # Bestimmt, welche Navigation für die Auswahl der ausgewählten Daten angezeigt wird.
|
||||||
dependsOn:
|
#projection: xyz
|
||||||
eval: $parent.contentType == 'worldCard'
|
#sort: "title"
|
||||||
subFields:
|
render:
|
||||||
- name: row
|
defaultCollectionViews: true
|
||||||
type: object[]
|
|
||||||
meta:
|
|
||||||
label: Zeilen
|
|
||||||
subFields:
|
|
||||||
- name: cards
|
|
||||||
type: object[]
|
|
||||||
meta:
|
|
||||||
label: Karten
|
|
||||||
metaElements:
|
|
||||||
- verticalAlignment
|
|
||||||
- horizontalAlignment
|
|
||||||
subFields: !include cards.yml
|
|
||||||
|
|
||||||
- name: nestedCard
|
- name: nestedCard
|
||||||
type: object[]
|
type: object[]
|
||||||
meta:
|
meta:
|
||||||
label: Verschatelte Karte
|
label: Verschatelte Karte
|
||||||
|
widget: containerLessObjectArray
|
||||||
|
direction: row
|
||||||
dependsOn:
|
dependsOn:
|
||||||
eval: $parent.contentType == 'nestedCard'
|
eval: $parent.contentType == 'nestedCard'
|
||||||
subFields:
|
subFields:
|
||||||
@ -272,6 +275,7 @@
|
|||||||
type: object
|
type: object
|
||||||
meta:
|
meta:
|
||||||
label: Top-Down
|
label: Top-Down
|
||||||
|
widget: containerLessObject
|
||||||
dependsOn:
|
dependsOn:
|
||||||
eval: $parent.contentType == 'topDown'
|
eval: $parent.contentType == 'topDown'
|
||||||
subFields:
|
subFields:
|
||||||
@ -279,110 +283,40 @@
|
|||||||
type: object[]
|
type: object[]
|
||||||
meta:
|
meta:
|
||||||
label: Zeilen
|
label: Zeilen
|
||||||
|
widget: containerLessObjectArray
|
||||||
subFields:
|
subFields:
|
||||||
- name: inital
|
- name: inital
|
||||||
type: string
|
type: string
|
||||||
meta:
|
meta:
|
||||||
label: Großbuchstabe
|
label: Großbuchstabe
|
||||||
|
containerProps:
|
||||||
|
layout:
|
||||||
|
size:
|
||||||
|
default: "col-6"
|
||||||
|
small: "col-12"
|
||||||
|
large: "col-6"
|
||||||
|
|
||||||
- name: rest
|
- name: rest
|
||||||
type: string
|
type: string
|
||||||
meta:
|
meta:
|
||||||
label: Rest
|
label: Rest
|
||||||
|
containerProps:
|
||||||
|
layout:
|
||||||
|
size:
|
||||||
|
default: "col-6"
|
||||||
|
small: "col-12"
|
||||||
|
large: "col-6"
|
||||||
|
|
||||||
- name: description
|
- name: description
|
||||||
type: string
|
type: string
|
||||||
meta:
|
meta:
|
||||||
label: Beschreibung
|
label: Beschreibung
|
||||||
- name: personPreview
|
|
||||||
type: object[]
|
|
||||||
meta:
|
|
||||||
label: Personenvorschau
|
|
||||||
dependsOn:
|
|
||||||
eval: $parent.contentType == 'personPreview'
|
|
||||||
metaElements:
|
|
||||||
- initialImage
|
|
||||||
- hoverImage
|
|
||||||
subFields:
|
|
||||||
- name: initialImage
|
|
||||||
type: file
|
|
||||||
meta:
|
|
||||||
label: Bild
|
|
||||||
- name: hoverImage
|
|
||||||
type: file
|
|
||||||
meta:
|
|
||||||
label: Bild beim Hover
|
|
||||||
- name: name
|
|
||||||
type: string
|
|
||||||
meta:
|
|
||||||
label: Name
|
|
||||||
|
|
||||||
- name: link
|
|
||||||
type: string
|
|
||||||
meta:
|
|
||||||
label:
|
|
||||||
de: Seite
|
|
||||||
en: page
|
|
||||||
widget: select
|
|
||||||
choices:
|
|
||||||
endpoint: page
|
|
||||||
params:
|
|
||||||
sort: path
|
|
||||||
projection: navigation
|
|
||||||
mapping:
|
|
||||||
id: id
|
|
||||||
name: path
|
|
||||||
|
|
||||||
- name: boxList
|
|
||||||
type: object
|
|
||||||
meta:
|
|
||||||
label: Boxenliste
|
|
||||||
dependsOn:
|
|
||||||
eval: $parent.contentType == 'boxlist'
|
|
||||||
subFields:
|
|
||||||
- name: boxes
|
|
||||||
type: object[]
|
|
||||||
meta:
|
|
||||||
label: Boxen
|
|
||||||
subFields:
|
|
||||||
- name: name
|
|
||||||
type: string
|
|
||||||
meta:
|
|
||||||
label: Name
|
|
||||||
|
|
||||||
- name: extendableBoxes
|
|
||||||
type: object[]
|
|
||||||
meta:
|
|
||||||
label: Ausklappbare Box
|
|
||||||
dependsOn:
|
|
||||||
eval: $parent.contentType == 'extendableBoxes'
|
|
||||||
subFields:
|
|
||||||
- name: title
|
|
||||||
type: string
|
|
||||||
meta:
|
|
||||||
label: Titel
|
|
||||||
|
|
||||||
- name: text
|
|
||||||
type: string
|
|
||||||
meta:
|
|
||||||
widget: richtext
|
|
||||||
label: Text
|
|
||||||
- name: emailButton
|
|
||||||
type: boolean
|
|
||||||
meta:
|
|
||||||
label: E-Mail Button Anzeigen
|
|
||||||
|
|
||||||
- name: emailSubject
|
|
||||||
type: string
|
|
||||||
meta:
|
|
||||||
label: E-Mail default Betreff
|
|
||||||
dependsOn:
|
|
||||||
eval: $parent.emailButton == true
|
|
||||||
|
|
||||||
- name: textLink
|
- name: textLink
|
||||||
type: object
|
type: object
|
||||||
meta:
|
meta:
|
||||||
label: Text Link
|
label: Text Link
|
||||||
|
widget: containerLessObject
|
||||||
dependsOn:
|
dependsOn:
|
||||||
eval: $parent.contentType == 'textLink'
|
eval: $parent.contentType == 'textLink'
|
||||||
subFields:
|
subFields:
|
||||||
@ -405,5 +339,5 @@
|
|||||||
sort: path
|
sort: path
|
||||||
projection: navigation
|
projection: navigation
|
||||||
mapping:
|
mapping:
|
||||||
id: id
|
id: id
|
||||||
name: path
|
name: path
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
type: object[]
|
type: object[]
|
||||||
meta:
|
meta:
|
||||||
label: Boxen
|
label: Boxen
|
||||||
|
widget: containerLessObjectArray
|
||||||
subFields: !include box.yml
|
subFields: !include box.yml
|
||||||
|
|
||||||
- name: innerText
|
- name: innerText
|
||||||
|
@ -2,4 +2,5 @@
|
|||||||
type: object[]
|
type: object[]
|
||||||
meta:
|
meta:
|
||||||
label: Boxen
|
label: Boxen
|
||||||
|
widget: containerLessObjectArray
|
||||||
subFields: !include box.yml
|
subFields: !include box.yml
|
||||||
|
118
api/collections/fieldLists/row.yml
Normal file
118
api/collections/fieldLists/row.yml
Normal file
@ -0,0 +1,118 @@
|
|||||||
|
- name: topTitle
|
||||||
|
type: string
|
||||||
|
meta:
|
||||||
|
label: Oberer Titel
|
||||||
|
helperText: "Dieser Titel wird in der Zeile oben angezeigt."
|
||||||
|
containerProps:
|
||||||
|
layout:
|
||||||
|
size:
|
||||||
|
default: "col-6"
|
||||||
|
small: "col-12"
|
||||||
|
large: "col-6"
|
||||||
|
|
||||||
|
- name: topTitleUpperCase
|
||||||
|
type: boolean
|
||||||
|
meta:
|
||||||
|
label: Oberer Titel in Großbuchstaben
|
||||||
|
helperText: "Ist dies aktiviert, so wird der obere Titel in Großbuchstaben angezeigt."
|
||||||
|
containerProps:
|
||||||
|
layout:
|
||||||
|
size:
|
||||||
|
default: "col-6"
|
||||||
|
small: "col-6"
|
||||||
|
large: "col-6"
|
||||||
|
|
||||||
|
- name: title
|
||||||
|
type: string
|
||||||
|
meta:
|
||||||
|
label: Titel
|
||||||
|
helperText: "Dieser Titel wird in der Zeile angezeigt."
|
||||||
|
containerProps:
|
||||||
|
layout:
|
||||||
|
size:
|
||||||
|
default: "col-6"
|
||||||
|
small: "col-6"
|
||||||
|
large: "col-6"
|
||||||
|
|
||||||
|
- name: subTitle
|
||||||
|
type: string
|
||||||
|
meta:
|
||||||
|
label: Untertitel
|
||||||
|
helperText: "Dieser Untertitel wird in der Zeile angezeigt."
|
||||||
|
containerProps:
|
||||||
|
layout:
|
||||||
|
size:
|
||||||
|
default: "col-6"
|
||||||
|
small: "col-6"
|
||||||
|
large: "col-6"
|
||||||
|
|
||||||
|
- name: backgroundImage
|
||||||
|
type: string
|
||||||
|
meta:
|
||||||
|
label: Hintergrundbild
|
||||||
|
helperText: "Dieses Bild wird als Hintergrundbild der Zeile angezeigt."
|
||||||
|
widget: foreignKey # Verwendetes Widget.
|
||||||
|
foreign:
|
||||||
|
collection: medialib # Name der Sammlung, in der die ausgewählten Daten gespeichert sind.
|
||||||
|
id: id # Feldname, das als eindeutige Kennung für die ausgewählten Daten verwendet wird.
|
||||||
|
subNavigation: 0 # Bestimmt, welche Navigation für die Auswahl der ausgewählten Daten angezeigt wird.
|
||||||
|
#projection: xyz
|
||||||
|
#sort: "title"
|
||||||
|
render:
|
||||||
|
defaultCollectionViews: true
|
||||||
|
|
||||||
|
- name: noBottomMargin
|
||||||
|
type: boolean
|
||||||
|
meta:
|
||||||
|
label: Kein unterer Abstand
|
||||||
|
helperText: "Ist dies aktiviert, so wird kein Abstand unter der Zeile angezeigt."
|
||||||
|
containerProps:
|
||||||
|
layout:
|
||||||
|
size:
|
||||||
|
default: "col-4"
|
||||||
|
small: "col-6"
|
||||||
|
large: "col-4"
|
||||||
|
|
||||||
|
- name: noTopMargin
|
||||||
|
type: boolean
|
||||||
|
meta:
|
||||||
|
label: Kein oberer Abstand
|
||||||
|
helperText: "Ist dies aktiviert, so wird kein Abstand über der Zeile angezeigt."
|
||||||
|
containerProps:
|
||||||
|
layout:
|
||||||
|
size:
|
||||||
|
default: "col-4"
|
||||||
|
small: "col-6"
|
||||||
|
large: "col-4"
|
||||||
|
|
||||||
|
- name: flexWrapNormal
|
||||||
|
type: boolean
|
||||||
|
meta:
|
||||||
|
label: Zeile normal umbrechen
|
||||||
|
helperText: "Ist dies aktiviert, so wird die Zeile normal und nicht reverse umgebrochen."
|
||||||
|
containerProps:
|
||||||
|
layout:
|
||||||
|
size:
|
||||||
|
default: "col-4"
|
||||||
|
small: "col-6"
|
||||||
|
large: "col-4"
|
||||||
|
|
||||||
|
- name: twoToThree
|
||||||
|
type: boolean
|
||||||
|
meta:
|
||||||
|
label: Zwei zu drei
|
||||||
|
helperText: "Ist dies aktiviert, so wird die Zeile in zwei zu drei Spalten aufgeteilt."
|
||||||
|
containerProps:
|
||||||
|
layout:
|
||||||
|
size:
|
||||||
|
default: "col-4"
|
||||||
|
small: "col-6"
|
||||||
|
large: "col-4"
|
||||||
|
|
||||||
|
- name: columns
|
||||||
|
type: object[]
|
||||||
|
meta:
|
||||||
|
label: Spalten
|
||||||
|
direction: row
|
||||||
|
widget: grid
|
||||||
|
subFields: !include ../fieldLists/column.yml
|
@ -1,90 +0,0 @@
|
|||||||
name: row
|
|
||||||
type: object
|
|
||||||
meta:
|
|
||||||
label: Zeile
|
|
||||||
metaElements:
|
|
||||||
- topTitle
|
|
||||||
- topTitleRed
|
|
||||||
- title
|
|
||||||
- subTitle
|
|
||||||
- pageTitle
|
|
||||||
subFields:
|
|
||||||
- name: topTitle
|
|
||||||
type: string
|
|
||||||
meta:
|
|
||||||
label: Oberer Titel
|
|
||||||
helperText: "Dieser Titel wird in der Zeile oben angezeigt."
|
|
||||||
|
|
||||||
- name: topTitleUpperCase
|
|
||||||
type: boolean
|
|
||||||
meta:
|
|
||||||
label: Oberer Titel in Großbuchstaben
|
|
||||||
helperText: "Ist dies aktiviert, so wird der obere Titel in Großbuchstaben angezeigt."
|
|
||||||
|
|
||||||
- name: title
|
|
||||||
type: string
|
|
||||||
meta:
|
|
||||||
label: Titel
|
|
||||||
helperText: "Dieser Titel wird in der Zeile angezeigt."
|
|
||||||
|
|
||||||
- name: subTitle
|
|
||||||
type: string
|
|
||||||
meta:
|
|
||||||
label: Untertitel
|
|
||||||
helperText: "Dieser Untertitel wird in der Zeile angezeigt."
|
|
||||||
|
|
||||||
- name: pageTitle
|
|
||||||
type: string
|
|
||||||
meta:
|
|
||||||
label: Titel der Seite
|
|
||||||
helperText: "Dieser Titel wird in der Seite als h1 angezeigt."
|
|
||||||
|
|
||||||
- name: backgroundImage
|
|
||||||
type: file
|
|
||||||
meta:
|
|
||||||
label: Hintergrundbild
|
|
||||||
helperText: "Dieses Bild wird als Hintergrundbild der Zeile angezeigt."
|
|
||||||
|
|
||||||
- name: noBottomMargin
|
|
||||||
type: boolean
|
|
||||||
meta:
|
|
||||||
label: Kein unterer Abstand
|
|
||||||
helperText: "Ist dies aktiviert, so wird kein Abstand unter der Zeile angezeigt."
|
|
||||||
- name: noTopMargin
|
|
||||||
type: boolean
|
|
||||||
meta:
|
|
||||||
label: Kein oberer Abstand
|
|
||||||
helperText: "Ist dies aktiviert, so wird kein Abstand über der Zeile angezeigt."
|
|
||||||
|
|
||||||
- name: flexWrapNormal
|
|
||||||
type: boolean
|
|
||||||
meta:
|
|
||||||
label: Zeile normal umbrechen
|
|
||||||
helperText: "Ist dies aktiviert, so wird die Zeile normal und nicht reverse umgebrochen."
|
|
||||||
|
|
||||||
- name: twoToThree
|
|
||||||
type: boolean
|
|
||||||
meta:
|
|
||||||
label: Zwei zu drei
|
|
||||||
helperText: "Ist dies aktiviert, so wird die Zeile in zwei zu drei Spalten aufgeteilt."
|
|
||||||
|
|
||||||
- name: nextPage
|
|
||||||
type: string
|
|
||||||
meta:
|
|
||||||
label: Nächste Seite
|
|
||||||
widget: select
|
|
||||||
choices:
|
|
||||||
endpoint: page
|
|
||||||
params:
|
|
||||||
sort: path
|
|
||||||
projection: navigation
|
|
||||||
mapping:
|
|
||||||
id: path
|
|
||||||
name: path
|
|
||||||
|
|
||||||
- name: columns
|
|
||||||
type: object[]
|
|
||||||
meta:
|
|
||||||
label: Spalten
|
|
||||||
direction: row
|
|
||||||
subFields: !include ../fieldLists/column.yml
|
|
129
api/collections/medialib.yml
Normal file
129
api/collections/medialib.yml
Normal file
@ -0,0 +1,129 @@
|
|||||||
|
# Der Name der Kollektion ist beliebig, aber wird in unserem
|
||||||
|
# Beispiel vom ContentBuilder als "medialib" referenziert.
|
||||||
|
name: medialib
|
||||||
|
uploadPath: ../media/medialib
|
||||||
|
|
||||||
|
meta:
|
||||||
|
label:
|
||||||
|
de: Medienbibliothek
|
||||||
|
en: Media Library
|
||||||
|
muiIcon: multimedia
|
||||||
|
defaultSort:
|
||||||
|
field: sort
|
||||||
|
order: MANUALLY
|
||||||
|
|
||||||
|
backup:
|
||||||
|
active: true
|
||||||
|
collectionName: backups
|
||||||
|
|
||||||
|
quickEdit:
|
||||||
|
enabled: true
|
||||||
|
fields:
|
||||||
|
- title
|
||||||
|
- description
|
||||||
|
- file
|
||||||
|
|
||||||
|
# "defaultImageFilter" dient auch hier nur zur Reduzierung der
|
||||||
|
# Bildgröße bei der Anzeige im tibi-admin (Listen).
|
||||||
|
# Die Bildgröße für die Einbindung ins erzeugte HTML des ContentBuilder
|
||||||
|
# hat hiermit nix zu tun.
|
||||||
|
defaultImageFilter: s
|
||||||
|
|
||||||
|
multiupload:
|
||||||
|
fields: []
|
||||||
|
|
||||||
|
views:
|
||||||
|
- type: table
|
||||||
|
mediaQuery: "(min-width: 0px)"
|
||||||
|
defaultSelect: false
|
||||||
|
selectionPriority: 2
|
||||||
|
fileDropArea:
|
||||||
|
label:
|
||||||
|
{
|
||||||
|
de: "Ziehen Sie Dateien per Drag and Drop hierher oder klicken Sie, um Dateien auszuwählen.",
|
||||||
|
en: "Drag and drop some files here, or click to upload.",
|
||||||
|
}
|
||||||
|
helperText: { de: "Maximale Uploadgröße: 1,54 MB", en: "Maximum upload size: 1.54MB" }
|
||||||
|
targetField: file
|
||||||
|
pageAsDropArea: false
|
||||||
|
columns:
|
||||||
|
- source: file
|
||||||
|
- source: updateTime
|
||||||
|
type: datetime
|
||||||
|
label: letztes Update
|
||||||
|
|
||||||
|
- type: cardList
|
||||||
|
mediaQuery: "(min-width: 1200px)"
|
||||||
|
selectionPriority: 1
|
||||||
|
fileDropArea:
|
||||||
|
label:
|
||||||
|
{
|
||||||
|
de: "Ziehen Sie Dateien per Drag and Drop hierher oder klicken Sie, um Dateien auszuwählen.",
|
||||||
|
en: "Drag and drop some files here, or click to upload.",
|
||||||
|
}
|
||||||
|
helperText: { de: "Maximale Uploadgröße: 1,54 MB", en: "Maximum upload size: 1.54MB" }
|
||||||
|
targetField: file
|
||||||
|
pageAsDropArea: false
|
||||||
|
|
||||||
|
fields:
|
||||||
|
- source: file
|
||||||
|
- source: updateTime
|
||||||
|
type: datetime
|
||||||
|
label: letztes Update
|
||||||
|
|
||||||
|
subNavigation:
|
||||||
|
- name: modalForeign # Name des Eingabefelds oder der Ansicht.
|
||||||
|
defaultSort: # Standard-Sortierkriterien, die angewendet werden, wenn keine anderen Sortierkriterien spezifiziert sind.
|
||||||
|
field: "path" # Standardmäßig wird nach dem "path"-Feld sortiert.
|
||||||
|
order: "ASC" # Standardmäßig wird in aufsteigender Reihenfolge (ASC) sortiert.
|
||||||
|
views: # Liste der Ansichten, die in diesem Feld angezeigt werden können.
|
||||||
|
- type: table # Es wird eine Tabellenansicht verwendet.
|
||||||
|
mediaQuery: "(min-width: 0px)" # Die Tabellenansicht wird nur angezeigt, wenn die Bildschirmbreite mindestens 0px beträgt.
|
||||||
|
columns: # Liste der Spalten, die in der Tabelle angezeigt werden.
|
||||||
|
- source: file
|
||||||
|
|
||||||
|
defaultCallback: # Standard-Callback-Funktion, die ausgeführt wird, wenn keine andere spezifiziert ist.
|
||||||
|
eval: | # Der Code wird als JavaScript evaluiert.
|
||||||
|
//js
|
||||||
|
(entry) => {
|
||||||
|
parent.selectEntry(entry)
|
||||||
|
}
|
||||||
|
//!js
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
public:
|
||||||
|
methods:
|
||||||
|
get: true
|
||||||
|
post: false
|
||||||
|
put: false
|
||||||
|
delete: false
|
||||||
|
user:
|
||||||
|
methods:
|
||||||
|
get: true
|
||||||
|
post: true
|
||||||
|
put: true
|
||||||
|
delete: true
|
||||||
|
|
||||||
|
projections:
|
||||||
|
dashboard:
|
||||||
|
select:
|
||||||
|
|
||||||
|
fields:
|
||||||
|
- name: file
|
||||||
|
type: file
|
||||||
|
meta:
|
||||||
|
label:
|
||||||
|
de: Datei
|
||||||
|
en: File
|
||||||
|
|
||||||
|
- name: sort
|
||||||
|
type: number
|
||||||
|
meta:
|
||||||
|
label:
|
||||||
|
de: Manuelle Sortierung
|
||||||
|
en: Manual Sorting
|
||||||
|
inputProps:
|
||||||
|
{ readonly: true, placeholder: { de: "Wert wird automatisch gesetzt", en: "Value is set automatically" } }
|
||||||
|
helperText:
|
||||||
|
de: Dieses Feld wird für die manuelle Sortierung benötigt. Sobald ein Eintrag per Drag&Drop verschoben wurde, wird die neue Position innerhalb der Liste eingetragen.
|
||||||
|
en: This field is required for manual sorting. As soon as an entry is moved using Drag&Drop, the new position is entered in the list.
|
143
api/collections/module.yml
Normal file
143
api/collections/module.yml
Normal file
@ -0,0 +1,143 @@
|
|||||||
|
name: module
|
||||||
|
|
||||||
|
meta:
|
||||||
|
label: Module
|
||||||
|
backup:
|
||||||
|
active: true
|
||||||
|
collectionName: backups
|
||||||
|
|
||||||
|
views:
|
||||||
|
- type: table
|
||||||
|
columns:
|
||||||
|
- source: type
|
||||||
|
|
||||||
|
subNavigation:
|
||||||
|
- name: modal
|
||||||
|
views:
|
||||||
|
- type: table
|
||||||
|
columns:
|
||||||
|
- source: type
|
||||||
|
defaultCallback: # Standard-Callback-Funktion, die ausgeführt wird, wenn keine andere spezifiziert ist.
|
||||||
|
eval: | # Der Code wird als JavaScript evaluiert.
|
||||||
|
//js
|
||||||
|
(entry) => { // Diese Funktion nimmt den Eintrag (entry) als Argument.
|
||||||
|
parent.selectEntry(entry) // Die Funktion selectEntry auf dem übergeordneten Objekt wird mit dem Eintrag als Argument aufgerufen.
|
||||||
|
}
|
||||||
|
//!js
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
public:
|
||||||
|
methods:
|
||||||
|
get: true
|
||||||
|
post: false
|
||||||
|
put: false
|
||||||
|
delete: false
|
||||||
|
user:
|
||||||
|
methods:
|
||||||
|
get: true
|
||||||
|
post: true
|
||||||
|
put: true
|
||||||
|
delete: true
|
||||||
|
|
||||||
|
imageFilter:
|
||||||
|
xs:
|
||||||
|
- fit: true
|
||||||
|
height: 90
|
||||||
|
width: 90
|
||||||
|
resampling: lanczos
|
||||||
|
quality: 60
|
||||||
|
s:
|
||||||
|
- fit: true
|
||||||
|
height: 300
|
||||||
|
width: 300
|
||||||
|
resampling: lanczos
|
||||||
|
quality: 60
|
||||||
|
m:
|
||||||
|
- fit: true
|
||||||
|
height: 600
|
||||||
|
width: 600
|
||||||
|
resampling: lanczos
|
||||||
|
quality: 60
|
||||||
|
l:
|
||||||
|
- fit: true
|
||||||
|
height: 1240
|
||||||
|
width: 1240
|
||||||
|
resampling: lanczos
|
||||||
|
quality: 60
|
||||||
|
xl:
|
||||||
|
- fit: true
|
||||||
|
height: 2000
|
||||||
|
width: 2000
|
||||||
|
resampling: lanczos
|
||||||
|
quality: 60
|
||||||
|
|
||||||
|
fields:
|
||||||
|
- name: type
|
||||||
|
type: string
|
||||||
|
meta:
|
||||||
|
label: Modultyp
|
||||||
|
helperText: "Wählen Sie den Typ des Moduls aus."
|
||||||
|
widget: select
|
||||||
|
choices:
|
||||||
|
- name: Arbeitskreislauf
|
||||||
|
id: iconCycleCircle
|
||||||
|
|
||||||
|
- name: Icons im Rechteck
|
||||||
|
id: iconCycleSquare
|
||||||
|
|
||||||
|
- name: Weltkarte
|
||||||
|
id: worldCard
|
||||||
|
|
||||||
|
- name: Chef Team
|
||||||
|
id: chefTeam
|
||||||
|
|
||||||
|
- name: Mitarbeiter Team
|
||||||
|
id: employeeTeam
|
||||||
|
|
||||||
|
- name: Stellenanzeigen Verlinkungen
|
||||||
|
id: jobOfferLink
|
||||||
|
|
||||||
|
- name: Stellenanzeigen
|
||||||
|
id: jobOffer
|
||||||
|
|
||||||
|
- name: iconCycleCircle
|
||||||
|
type: object
|
||||||
|
meta:
|
||||||
|
label: Icons im Kreis
|
||||||
|
widget: containerLessObject
|
||||||
|
dependsOn:
|
||||||
|
eval: $parent.type == 'iconCycleCircle'
|
||||||
|
subFields: !include fieldLists/iconCycleCircle.yml
|
||||||
|
|
||||||
|
- name: iconCycleSquare
|
||||||
|
type: object
|
||||||
|
meta:
|
||||||
|
label: Icons im Rechteck
|
||||||
|
dependsOn:
|
||||||
|
eval: $parent.contentType == 'iconCycleSquare'
|
||||||
|
subFields: !include fieldLists/iconCycleSquare.yml
|
||||||
|
|
||||||
|
- name: worldCard
|
||||||
|
type: object
|
||||||
|
meta:
|
||||||
|
label: Weltkarte
|
||||||
|
widget: containerLessObject
|
||||||
|
dependsOn:
|
||||||
|
eval: $parent.type == 'worldCard'
|
||||||
|
subFields:
|
||||||
|
- name: row
|
||||||
|
type: object[]
|
||||||
|
meta:
|
||||||
|
label: Weltkartenreihe
|
||||||
|
widget: grid
|
||||||
|
subFields:
|
||||||
|
- name: cards
|
||||||
|
type: object[]
|
||||||
|
meta:
|
||||||
|
label: Kartenspalten
|
||||||
|
widget: grid
|
||||||
|
direction: row
|
||||||
|
metaElements:
|
||||||
|
- verticalAlignment
|
||||||
|
- horizontalAlignment
|
||||||
|
subFields: !include fieldLists/cards.yml
|
@ -28,8 +28,6 @@ permissions:
|
|||||||
put: true
|
put: true
|
||||||
delete: false
|
delete: false
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
fields:
|
fields:
|
||||||
- name: tree
|
- name: tree
|
||||||
type: number
|
type: number
|
||||||
@ -56,6 +54,8 @@ fields:
|
|||||||
folding:
|
folding:
|
||||||
previewUnfolded: name
|
previewUnfolded: name
|
||||||
previewFolded: name
|
previewFolded: name
|
||||||
|
|
||||||
|
widget: containerLessObjectArray
|
||||||
subFields:
|
subFields:
|
||||||
- name: name
|
- name: name
|
||||||
type: string
|
type: string
|
||||||
|
@ -27,6 +27,8 @@ meta:
|
|||||||
collections:
|
collections:
|
||||||
- !include collections/navigation.yml
|
- !include collections/navigation.yml
|
||||||
- !include collections/content.yml
|
- !include collections/content.yml
|
||||||
|
- !include collections/module.yml
|
||||||
|
- !include collections/medialib.yml
|
||||||
- !include collections/backups.yml
|
- !include collections/backups.yml
|
||||||
|
|
||||||
assets:
|
assets:
|
||||||
|
@ -4,13 +4,25 @@
|
|||||||
import Menu from "./lib/components/Menu/Menu.svelte"
|
import Menu from "./lib/components/Menu/Menu.svelte"
|
||||||
import NotFound from "./lib/components/NotFound.svelte"
|
import NotFound from "./lib/components/NotFound.svelte"
|
||||||
import Rows from "./lib/components/Pagebuilder/Rows.svelte"
|
import Rows from "./lib/components/Pagebuilder/Rows.svelte"
|
||||||
import { location, navigation, pages, serviceNavigation, rerender } from "./lib/store"
|
import {
|
||||||
|
location,
|
||||||
|
navigation,
|
||||||
|
pages,
|
||||||
|
serviceNavigation,
|
||||||
|
rerender,
|
||||||
|
mediaLibrary,
|
||||||
|
team,
|
||||||
|
jobOffers,
|
||||||
|
modules,
|
||||||
|
} from "./lib/store"
|
||||||
import { onMount, onDestroy } from "svelte"
|
import { onMount, onDestroy } from "svelte"
|
||||||
import { Route, Router } from "svelte-routing"
|
import { Route, Router } from "svelte-routing"
|
||||||
import { loadPages } from "./lib/functions/getPages"
|
import { loadPages } from "./lib/functions/getPages"
|
||||||
import { loadNavigation } from "./lib/functions/loadNavigation"
|
import { loadNavigation } from "./lib/functions/loadNavigation"
|
||||||
import ScrollTop from "./lib/components/widgets/scrollTop.svelte"
|
import ScrollTop from "./lib/components/widgets/scrollTop.svelte"
|
||||||
import ScrollDown from "./lib/components/widgets/scrollDown.svelte"
|
import ScrollDown from "./lib/components/widgets/scrollDown.svelte"
|
||||||
|
import { loadLibrary } from "./lib/functions/loadLibrary"
|
||||||
|
import { loadModules } from "./lib/functions/loadModules"
|
||||||
export let url = ""
|
export let url = ""
|
||||||
|
|
||||||
if (url) {
|
if (url) {
|
||||||
@ -28,11 +40,23 @@
|
|||||||
async function getPages() {
|
async function getPages() {
|
||||||
let pagesArray = await loadPages()
|
let pagesArray = await loadPages()
|
||||||
let pagesRes: Pages = {}
|
let pagesRes: Pages = {}
|
||||||
|
let teamRes: Pages = {}
|
||||||
|
let jobOffersRes: Pages = {}
|
||||||
|
|
||||||
pagesArray.forEach((e) => {
|
pagesArray.forEach((e) => {
|
||||||
pagesRes[e.path] = e
|
if (e.type == "page") {
|
||||||
|
pagesRes[e.path] = e
|
||||||
|
} else if (e.type == "teamMembers") {
|
||||||
|
teamRes[e.path] = e
|
||||||
|
} else if (e.type == "jobOffers") {
|
||||||
|
jobOffersRes[e.path] = e
|
||||||
|
} else {
|
||||||
|
pagesRes[e.path] = e
|
||||||
|
}
|
||||||
})
|
})
|
||||||
$pages = pagesRes
|
$pages = pagesRes
|
||||||
|
$team = teamRes
|
||||||
|
$jobOffers = jobOffersRes
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getNavigation() {
|
async function getNavigation() {
|
||||||
@ -41,8 +65,27 @@
|
|||||||
$serviceNavigation = nav[1]
|
$serviceNavigation = nav[1]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async function getLibrary() {
|
||||||
|
let library: MediaLibrary[] = await loadLibrary()
|
||||||
|
let lib = {}
|
||||||
|
library.forEach((e) => {
|
||||||
|
lib[e.id] = e
|
||||||
|
})
|
||||||
|
$mediaLibrary = lib
|
||||||
|
}
|
||||||
|
|
||||||
|
async function getModules() {
|
||||||
|
let moduleArray: Module[] = await loadModules()
|
||||||
|
let mod = {}
|
||||||
|
moduleArray.forEach((e) => {
|
||||||
|
mod[e.id] = e
|
||||||
|
})
|
||||||
|
$modules = mod
|
||||||
|
}
|
||||||
|
|
||||||
getNavigation()
|
getNavigation()
|
||||||
getPages()
|
getPages()
|
||||||
|
getLibrary()
|
||||||
|
|
||||||
let activeMenu = false
|
let activeMenu = false
|
||||||
$: {
|
$: {
|
||||||
|
34
frontend/src/lib/components/Pagebuilder/Module.svelte
Normal file
34
frontend/src/lib/components/Pagebuilder/Module.svelte
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
<script lang="ts">
|
||||||
|
import { jobOffers, modules, team } from "../../store"
|
||||||
|
import Worldcard from "../widgets/Worldcard/worldcard.svelte"
|
||||||
|
import Boxlist from "../widgets/boxlist.svelte"
|
||||||
|
import ExtendableBox from "../widgets/extendableBox.svelte"
|
||||||
|
import IconCycleBox from "../widgets/iconCycleBox.svelte"
|
||||||
|
import IconCycleCircle from "../widgets/iconCycleCircle.svelte"
|
||||||
|
import PageLinkBlocks from "../widgets/pageLinkBlocks.svelte"
|
||||||
|
import Persons from "../widgets/persons.svelte"
|
||||||
|
|
||||||
|
let col: { contentType: "moduleImport"; moduleImport: string }
|
||||||
|
let pageId: string
|
||||||
|
let bright: boolean
|
||||||
|
let isHP: boolean
|
||||||
|
let row: Row
|
||||||
|
|
||||||
|
let module = $modules[col.moduleImport]
|
||||||
|
</script>
|
||||||
|
|
||||||
|
{#if module.type == "iconCycleCircle"}
|
||||||
|
<IconCycleCircle iconCycleCircle="{module.iconCycleCircle}" pageId="{pageId}" />
|
||||||
|
{:else if module.type == "iconCycleSquare"}
|
||||||
|
<IconCycleBox iconCycleSquare="{module.iconCycleSquare}" pageId="{pageId}" />
|
||||||
|
{:else if module.type == "worldCard"}
|
||||||
|
<Worldcard worldCard="{module.worldCard}" pageId="{pageId}" />
|
||||||
|
{:else if module.type == "chefTeam"}
|
||||||
|
<Persons persons="{Object.values($team).filter((p) => p.personType == 'chef')}" pageId="{pageId}" />
|
||||||
|
{:else if module.type == "employeeTeam"}
|
||||||
|
<Boxlist persons="{Object.values($team).filter((p) => p.personType == 'employee')}" />
|
||||||
|
{:else if module.type == "jobOffer"}
|
||||||
|
<ExtendableBox pages="{Object.values($jobOffers)}" />
|
||||||
|
{:else if module.type == "jobOfferLink"}
|
||||||
|
<PageLinkBlocks pages="{Object.values($jobOffers)}" />
|
||||||
|
{/if}
|
@ -14,26 +14,19 @@
|
|||||||
import TextLink from "../widgets/textLink.svelte"
|
import TextLink from "../widgets/textLink.svelte"
|
||||||
import TopDown from "../widgets/topDown.svelte"
|
import TopDown from "../widgets/topDown.svelte"
|
||||||
import WorldCard from "../widgets/Worldcard/worldcard.svelte"
|
import WorldCard from "../widgets/Worldcard/worldcard.svelte"
|
||||||
import { pages, rerender } from "../../store"
|
import { modules, pages, rerender, team } from "../../store"
|
||||||
import IconCycleCircle from "../widgets/iconCycleCircle.svelte"
|
import IconCycleCircle from "../widgets/iconCycleCircle.svelte"
|
||||||
import IconCycleBox from "../widgets/iconCycleBox.svelte"
|
import IconCycleBox from "../widgets/iconCycleBox.svelte"
|
||||||
|
import Module from "./Module.svelte"
|
||||||
|
|
||||||
export let row: Row
|
export let row: Row
|
||||||
export let pageId: string
|
export let pageId: string
|
||||||
export let bright: boolean
|
export let bright: boolean
|
||||||
export let isHP: boolean
|
export let isHP: boolean
|
||||||
|
export let i: number
|
||||||
|
export let page: Page
|
||||||
|
export let personPage: boolean
|
||||||
|
|
||||||
function checkNestedPath() {
|
|
||||||
const pathSegments = location.pathname.split("/").filter((segment) => segment.length)
|
|
||||||
|
|
||||||
if (pathSegments.length > 1) {
|
|
||||||
pathSegments.pop() // remove the last segment
|
|
||||||
return "/" + pathSegments.join("/")
|
|
||||||
}
|
|
||||||
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
let nestedPath = checkNestedPath()
|
|
||||||
window.addEventListener("popstate", function (event) {
|
window.addEventListener("popstate", function (event) {
|
||||||
$rerender = $rerender + 1
|
$rerender = $rerender + 1
|
||||||
})
|
})
|
||||||
@ -41,18 +34,18 @@
|
|||||||
|
|
||||||
{#if Object.keys(row).length}
|
{#if Object.keys(row).length}
|
||||||
{#if row.topTitle}
|
{#if row.topTitle}
|
||||||
<h3 class="{row.topTitleUpperCase ? 'hph3' : 'nmh3'}" class:red="{row.topTitleRed}">
|
<h3 class="{row.topTitleUpperCase ? 'hph3' : 'nmh3'}">
|
||||||
{row.topTitle}
|
{row.topTitle}
|
||||||
</h3>
|
</h3>
|
||||||
{/if}
|
{/if}
|
||||||
{#if nestedPath}
|
{#if personPage}
|
||||||
<div class="top-header" style="display: flex; width: 100%; justify-content: space-between;">
|
<div class="top-header" style="display: flex; width: 100%; justify-content: space-between;">
|
||||||
<h3
|
<h3
|
||||||
style="cursor: pointer; display: flex; align-items: center; gap: 10px; line-height: 1.4;"
|
style="cursor: pointer; display: flex; align-items: center; gap: 10px; line-height: 1.4;"
|
||||||
on:keydown
|
on:keydown
|
||||||
on:click="{() => {
|
on:click="{() => {
|
||||||
$rerender = $rerender + 1
|
$rerender = $rerender + 1
|
||||||
navigate(nestedPath)
|
navigate('/' + location.pathname.split('/').at(0))
|
||||||
}}"
|
}}"
|
||||||
>
|
>
|
||||||
<img src="/media/arrow-l.svg" alt="arrow" /> Zurück zur Übersicht
|
<img src="/media/arrow-l.svg" alt="arrow" /> Zurück zur Übersicht
|
||||||
@ -62,15 +55,19 @@
|
|||||||
on:keydown
|
on:keydown
|
||||||
on:click="{() => {
|
on:click="{() => {
|
||||||
$rerender = $rerender + 1
|
$rerender = $rerender + 1
|
||||||
navigate(row?.nextPage || nestedPath)
|
let chefs = Object.values($team).filter((p) => p.personType == 'chef')
|
||||||
|
let i = chefs.findIndex((p) => p.path == page.path)
|
||||||
|
if (i == chefs.length - 1) i = 0
|
||||||
|
else i++
|
||||||
|
navigate(chefs[i].path)
|
||||||
}}"
|
}}"
|
||||||
>
|
>
|
||||||
Zum nächsten Profil <img src="/media/arrowr.svg" alt="arrow" />
|
Zum nächsten Profil <img src="/media/arrowr.svg" alt="arrow" />
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{#if row.pageTitle}
|
{#if page.pageTitle && i == 0}
|
||||||
<h1>{row.pageTitle}</h1>
|
<h1>{page.pageTitle}</h1>
|
||||||
{/if}
|
{/if}
|
||||||
{#if row.title}
|
{#if row.title}
|
||||||
<h2 class="">{row.title}</h2>
|
<h2 class="">{row.title}</h2>
|
||||||
@ -83,10 +80,16 @@
|
|||||||
class="row"
|
class="row"
|
||||||
class:twoToThree="{row.twoToThree}"
|
class:twoToThree="{row.twoToThree}"
|
||||||
class:normalWrap="{row.flexWrapNormal}"
|
class:normalWrap="{row.flexWrapNormal}"
|
||||||
class:dominant="{row.columns.some((col) => col.contentType == 'iconCycleCircle')}"
|
class:dominant="{row.columns.some(
|
||||||
|
(col) => col.contentType == 'moduleImport' && $modules?.[col.moduleImport]?.type == 'iconCycleCircle'
|
||||||
|
)}"
|
||||||
>
|
>
|
||||||
{#each row?.columns as col}
|
{#each row?.columns as col}
|
||||||
<div class="col" class:dominant="{col.contentType == 'iconCycleCircle'}">
|
<div
|
||||||
|
class="col"
|
||||||
|
class:dominant="{col.contentType == 'moduleImport' &&
|
||||||
|
$modules?.[col.moduleImport]?.type == 'iconCycleCircle'}"
|
||||||
|
>
|
||||||
{#if col?.contentType == "text"}
|
{#if col?.contentType == "text"}
|
||||||
<Text text="{col?.text}" />
|
<Text text="{col?.text}" />
|
||||||
{:else if col?.contentType == "textLink"}
|
{:else if col?.contentType == "textLink"}
|
||||||
@ -95,12 +98,12 @@
|
|||||||
path="{Object.values($pages)?.find((o) => o.id == col.textLink.link)?.path || '/'}"
|
path="{Object.values($pages)?.find((o) => o.id == col.textLink.link)?.path || '/'}"
|
||||||
bright="{bright}"
|
bright="{bright}"
|
||||||
/>
|
/>
|
||||||
|
{:else if col.contentType == "moduleImport"}
|
||||||
|
<Module col="{col}" pageId="{pageId}" bright="{bright}" isHP="{isHP}" row="{row}" />
|
||||||
{:else if col.contentType == "image"}
|
{:else if col.contentType == "image"}
|
||||||
<Image image="{col?.image}" col="{col}" pageId="{pageId}" />
|
<Image image="{col?.image}" col="{col}" pageId="{pageId}" />
|
||||||
{:else if col.contentType == "iconBlocks"}
|
{:else if col.contentType == "iconBlocks"}
|
||||||
<IconBlock pageId="{pageId}" col="{col}" />
|
<IconBlock pageId="{pageId}" col="{col}" />
|
||||||
{:else if col.contentType == "pageLinkBlocks"}
|
|
||||||
<PageLinkBlocks col="{col}" />
|
|
||||||
{:else if col.contentType == "networkEvents"}
|
{:else if col.contentType == "networkEvents"}
|
||||||
<Events col="{col}" pageId="{pageId}" />
|
<Events col="{col}" pageId="{pageId}" />
|
||||||
{:else if col.contentType == "publications"}
|
{:else if col.contentType == "publications"}
|
||||||
@ -111,18 +114,8 @@
|
|||||||
<InfoBoard col="{col}" pageId="{pageId}" />
|
<InfoBoard col="{col}" pageId="{pageId}" />
|
||||||
{:else if col.contentType == "nestedCard"}
|
{:else if col.contentType == "nestedCard"}
|
||||||
<NestedCard col="{col}" />
|
<NestedCard col="{col}" />
|
||||||
{:else if col.contentType == "boxlist"}
|
|
||||||
<Boxlist col="{col}" />
|
|
||||||
{:else if col.contentType == "extendableBoxes"}
|
|
||||||
<ExtendableBox col="{col}" />
|
|
||||||
{:else if col.contentType == "personPreview"}
|
|
||||||
<Persons col="{col}" pageId="{pageId}" />
|
|
||||||
{:else if col.contentType == "iconCycleCircle"}
|
|
||||||
<IconCycleCircle col="{col}" pageId="{pageId}" />
|
|
||||||
{:else if col.contentType == "iconCycleSquare"}
|
|
||||||
<IconCycleBox col="{col}" pageId="{pageId}" />
|
|
||||||
{:else if col.contentType == "worldCard"}
|
|
||||||
<WorldCard col="{col}" pageId="{pageId}" />
|
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
|
@ -1,27 +1,35 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { pages, scrollToRowNr } from "../../store"
|
import { mediaLibrary, pages, scrollToRowNr, team } from "../../store"
|
||||||
import Homepage from "./Homepage.svelte"
|
import Homepage from "./Homepage.svelte"
|
||||||
import Pagebuilder from "./Pagebuilder.svelte"
|
import Pagebuilder from "./Pagebuilder.svelte"
|
||||||
import { apiBaseURL } from "../../../config"
|
import { apiBaseURL } from "../../../config"
|
||||||
import { onMount } from "svelte"
|
import { onMount } from "svelte"
|
||||||
|
|
||||||
export let path
|
export let path: string
|
||||||
export let homepage = false
|
export let homepage = false
|
||||||
export let image: FileField
|
export let image: FileField
|
||||||
let page: Page
|
let page: Page
|
||||||
|
let personPage = false
|
||||||
function initPage() {
|
function initPage() {
|
||||||
page = $pages[path]
|
if ($pages[path]) {
|
||||||
|
page = $pages[path]
|
||||||
|
} else if (
|
||||||
|
Object.values($team)
|
||||||
|
.map((p) => p.path == path)
|
||||||
|
.includes(true)
|
||||||
|
) {
|
||||||
|
page = Object.values($team).find((p) => p.path == path)
|
||||||
|
personPage = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
if ($scrollToRowNr !== -1) {
|
if ($scrollToRowNr !== -1) {
|
||||||
console.log("test321-", $scrollToRowNr)
|
|
||||||
if (!$scrollToRowNr) {
|
if (!$scrollToRowNr) {
|
||||||
$scrollToRowNr = -1
|
$scrollToRowNr = -1
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
let element = document.getElementById("row-" + $scrollToRowNr)
|
let element = document.getElementById("row-" + $scrollToRowNr)
|
||||||
console.log(element)
|
|
||||||
if (!element) {
|
if (!element) {
|
||||||
$scrollToRowNr = -1
|
$scrollToRowNr = -1
|
||||||
return
|
return
|
||||||
@ -35,7 +43,7 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
$: {
|
$: {
|
||||||
if (Object.keys($pages).length) {
|
if (Object.keys($pages).length || Object.keys($team).length) {
|
||||||
initPage()
|
initPage()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -50,22 +58,27 @@
|
|||||||
id="row-{i}"
|
id="row-{i}"
|
||||||
style="{path == '/' && i == page.rows.length - 1
|
style="{path == '/' && i == page.rows.length - 1
|
||||||
? 'padding-bottom: 300px; margin-bottom: -40px;'
|
? 'padding-bottom: 300px; margin-bottom: -40px;'
|
||||||
: ''} {row.row.noBottomMargin ? 'margin-bottom: 0px; padding-bottom: 0px;' : ''} {row.row
|
: ''} {row.noBottomMargin ? 'margin-bottom: 0px; padding-bottom: 0px;' : ''} {row.noTopMargin
|
||||||
.noTopMargin
|
|
||||||
? 'margin-top: 0px; padding-top: 0px;'
|
? 'margin-top: 0px; padding-top: 0px;'
|
||||||
: ''}"
|
: ''}"
|
||||||
>
|
>
|
||||||
{#if row.row.backgroundImage}
|
{#if row.backgroundImage && mediaLibrary[row.backgroundImage]}
|
||||||
<div class="background-image">
|
<div class="background-image">
|
||||||
<img src="{`${apiBaseURL}page/${page.id}/${row.row.backgroundImage?.src}`}" alt="img" />
|
<img
|
||||||
|
src="{`${apiBaseURL}medialib/${row?.backgroundImage}/${
|
||||||
|
mediaLibrary?.[row?.backgroundImage]?.file?.src
|
||||||
|
}`}"
|
||||||
|
alt="img"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<div class="content" class:bright="{row.row.backgroundImage}">
|
<div class="content" class:bright="{row.backgroundImage}">
|
||||||
<Pagebuilder
|
<Pagebuilder
|
||||||
|
personPage
|
||||||
isHP="{path == '/'}"
|
isHP="{path == '/'}"
|
||||||
row="{row.row}"
|
row="{row}"
|
||||||
pageId="{page.id}"
|
pageId="{page.id}"
|
||||||
bright="{!!row.row.backgroundImage}"
|
bright="{!!row.backgroundImage}"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { apiBaseURL } from "../../../../config"
|
import { apiBaseURL } from "../../../../config"
|
||||||
|
import { mediaLibrary } from "../../../store"
|
||||||
|
|
||||||
export let card: Card
|
export let card: Card
|
||||||
export let properties: string[][]
|
export let properties: string[][]
|
||||||
@ -23,7 +24,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<img src="{apiBaseURL}page/{pageId}/{card.image.src}" alt="card" />
|
<img src="{apiBaseURL}medialib/{card.image}/{$mediaLibrary?.[card?.image]?.file?.src}" alt="card" />
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div
|
<div
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
import Card from "./card.svelte"
|
import Card from "./card.svelte"
|
||||||
import Selectbox from "./selectbox.svelte"
|
import Selectbox from "./selectbox.svelte"
|
||||||
|
|
||||||
export let col: Column
|
export let worldCard: WorldCard
|
||||||
export let pageId: string
|
export let pageId: string
|
||||||
|
|
||||||
let availableProperties = [
|
let availableProperties = [
|
||||||
@ -38,7 +38,7 @@
|
|||||||
<div style="display: flex; flex-direction: column; width: 100%; align-items: center;">
|
<div style="display: flex; flex-direction: column; width: 100%; align-items: center;">
|
||||||
<div class="worldcard">
|
<div class="worldcard">
|
||||||
<div class="worldcard">
|
<div class="worldcard">
|
||||||
{#each col.worldCard.row as row}
|
{#each worldCard.rows as row}
|
||||||
<div class="wc-row">
|
<div class="wc-row">
|
||||||
{#each row.cards as card}
|
{#each row.cards as card}
|
||||||
<Card
|
<Card
|
||||||
|
@ -1,20 +1,18 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export let col: Column
|
export let persons: Page[]
|
||||||
|
let boxes = persons.map((p) => p.personPreview.name)
|
||||||
// A function to compare first names and sort the array
|
|
||||||
const sortByFirstName = (a, b) => {
|
const sortByFirstName = (a, b) => {
|
||||||
const nameA = a.name.split(" ")[0] // Extracts the first name from "First Last"
|
const nameA = a.name.split(" ")[0] // Extracts the first name from "First Last"
|
||||||
const nameB = b.name.split(" ")[0]
|
const nameB = b.name.split(" ")[0]
|
||||||
return nameA.localeCompare(nameB)
|
return nameA.localeCompare(nameB)
|
||||||
}
|
}
|
||||||
|
boxes = boxes.sort(sortByFirstName)
|
||||||
col.boxList.boxes.sort(sortByFirstName) // Sorts the array in place
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="boxList">
|
<div class="boxList">
|
||||||
{#each col.boxList.boxes as name}
|
{#each boxes as name}
|
||||||
<div class="box">
|
<div class="box">
|
||||||
{name.name}
|
{name}
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { apiBaseURL } from "../../../config"
|
import { apiBaseURL } from "../../../config"
|
||||||
|
import { mediaLibrary } from "../../store"
|
||||||
|
|
||||||
export let col: Column
|
export let col: Column
|
||||||
export let pageId: string
|
export let pageId: string
|
||||||
@ -44,7 +45,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="details">
|
<div class="details">
|
||||||
<em>{nE.title}</em>
|
<em>{nE.title}</em>
|
||||||
<a href="{apiBaseURL}page/{pageId}/{nE.file.src}" style="text-decoration: none;" download="{apiBaseURL}page/{pageId}/{nE.file.src}">
|
<a
|
||||||
|
href="{apiBaseURL}medialib/{nE.file}/{$mediaLibrary?.[nE?.file]?.file?.src}"
|
||||||
|
style="text-decoration: none;"
|
||||||
|
download="{apiBaseURL}medialib/{nE.file}/{$mediaLibrary?.[nE?.file]?.file?.src}"
|
||||||
|
>
|
||||||
<button class="more">mehr</button></a
|
<button class="more">mehr</button></a
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
import { onMount } from "svelte"
|
import { onMount } from "svelte"
|
||||||
import { openExtendableNr } from "../../store"
|
import { openExtendableNr } from "../../store"
|
||||||
|
|
||||||
export let col: Column
|
export let pages: Page[]
|
||||||
export let opened = -1
|
export let opened = -1
|
||||||
|
let jobOffers = pages.map((p) => p.jobOffer)
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
if (!isNaN($openExtendableNr) && $openExtendableNr !== -1) {
|
if (!isNaN($openExtendableNr) && $openExtendableNr !== -1) {
|
||||||
opened = $openExtendableNr
|
opened = $openExtendableNr
|
||||||
@ -14,7 +14,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="boxes">
|
<div class="boxes">
|
||||||
{#each col.extendableBoxes as box, i}
|
{#each jobOffers as box, i}
|
||||||
<div class="box" class:opened="{i == opened}">
|
<div class="box" class:opened="{i == opened}">
|
||||||
<div
|
<div
|
||||||
class="upper"
|
class="upper"
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { apiBaseURL } from "../../../config"
|
import { apiBaseURL } from "../../../config"
|
||||||
|
import { mediaLibrary } from "../../store"
|
||||||
|
|
||||||
export let pageId: string
|
export let pageId: string
|
||||||
export let col: Column
|
export let col: Column
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="iconBlock">
|
<div class="iconBlock">
|
||||||
|
|
||||||
{#each col.iconBlocks as icon}
|
{#each col.iconBlocks as icon}
|
||||||
<div class="icon">
|
<div class="icon">
|
||||||
<img src="{`${apiBaseURL}page/${pageId}/${icon.icon?.src}`}" alt="img" />
|
<img src="{`${apiBaseURL}medialib/${icon.icon}/${mediaLibrary?.[icon?.icon]?.file?.src}`}" alt="img" />
|
||||||
<div class="text">
|
<div class="text">
|
||||||
<em>{icon.bigText}</em>
|
<em>{icon.bigText}</em>
|
||||||
<p>{icon.smallText}</p>
|
<p>{icon.smallText}</p>
|
||||||
|
@ -1,24 +1,25 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { apiBaseURL } from "../../../config"
|
import { apiBaseURL } from "../../../config"
|
||||||
export let col: Column
|
import { mediaLibrary } from "../../store"
|
||||||
|
export let iconCycleSquare: IconCycleSquare
|
||||||
export let pageId: string
|
export let pageId: string
|
||||||
|
|
||||||
let active = -1
|
let active = -1
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
active += 1
|
active += 1
|
||||||
if (active == col.iconCycleSquare.boxes.length) active = 0
|
if (active == iconCycleSquare.boxes.length) active = 0
|
||||||
}, 1250)
|
}, 1250)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="iconCycleSquares">
|
<div class="iconCycleSquares">
|
||||||
{#each col?.iconCycleSquare?.boxes as box, i}
|
{#each iconCycleSquare?.boxes as box, i}
|
||||||
<div class="box" id="box{i}" class:active="{i == active}">
|
<div class="box" id="box{i}" class:active="{i == active}">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="icon">
|
<div class="icon">
|
||||||
<svg
|
<svg
|
||||||
stroke="{i == active ? 'black' : 'white'}"
|
stroke="{i == active ? 'black' : 'white'}"
|
||||||
fill="{i == active ? 'black' : 'white'}"
|
fill="{i == active ? 'black' : 'white'}"
|
||||||
data-src="{apiBaseURL}page/{pageId}/{box.icon?.src}"></svg>
|
data-src="{apiBaseURL}medialib/{box?.icon}/{$mediaLibrary?.[box?.icon]?.file?.src}"></svg>
|
||||||
</div>
|
</div>
|
||||||
<div class="text">
|
<div class="text">
|
||||||
{box.text}
|
{box.text}
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { apiBaseURL } from "../../../config"
|
import { apiBaseURL } from "../../../config"
|
||||||
import { onMount } from "svelte"
|
import { onMount } from "svelte"
|
||||||
|
import { mediaLibrary } from "../../store"
|
||||||
|
|
||||||
|
export let iconCycleCircle: IconCycleCircle
|
||||||
|
|
||||||
export let col: Column
|
|
||||||
export let pageId: string
|
export let pageId: string
|
||||||
|
|
||||||
let count = col.iconCycleCircle.boxes.length // The number of surrounding circles.
|
let count = iconCycleCircle.boxes.length // The number of surrounding circles.
|
||||||
let angleStep = 360 / count
|
let angleStep = 360 / count
|
||||||
let radius = 310
|
let radius = 310
|
||||||
|
|
||||||
@ -34,7 +36,7 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="main-circle">
|
<div class="main-circle">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{col.iconCycleCircle.innerText}
|
{iconCycleCircle.innerText}
|
||||||
</div>
|
</div>
|
||||||
{#each circles as { x, y, rotation }, i}
|
{#each circles as { x, y, rotation }, i}
|
||||||
<div
|
<div
|
||||||
@ -52,10 +54,12 @@
|
|||||||
id="mySvgObject{i}"
|
id="mySvgObject{i}"
|
||||||
stroke="{i == focused ? 'white' : 'black'}"
|
stroke="{i == focused ? 'white' : 'black'}"
|
||||||
fill="{i == focused ? 'white' : 'black'}"
|
fill="{i == focused ? 'white' : 'black'}"
|
||||||
data-src="{apiBaseURL}page/{pageId}/{col.iconCycleCircle?.boxes[i]?.icon?.src}"></svg>
|
data-src="{apiBaseURL}medialib/{iconCycleCircle?.boxes[i]?.icon}/{$mediaLibrary[
|
||||||
|
iconCycleCircle?.boxes[i]?.icon
|
||||||
|
]?.file?.src}"></svg>
|
||||||
</div>
|
</div>
|
||||||
<div class="text" style="text-align: center;">
|
<div class="text" style="text-align: center;">
|
||||||
{@html col.iconCycleCircle?.boxes[i]?.text}
|
{@html iconCycleCircle?.boxes[i]?.text}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,19 +1,23 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { apiBaseURL } from "../../../config"
|
import { apiBaseURL } from "../../../config"
|
||||||
|
import { mediaLibrary } from "../../store"
|
||||||
export let image: FileField
|
export let image: FileField
|
||||||
export let pageId: string
|
export let pageId: string
|
||||||
export let col: Column
|
export let col: { contentType: "image"; image: string; icons: { icon: string; link: string }[] }
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="image-container">
|
<div class="image-container">
|
||||||
<img src="{`${apiBaseURL}page/${pageId}/${image?.src}`}" alt="img" />
|
<img src="{`${apiBaseURL}medialib/${image?.src}/${$mediaLibrary[image?.src]?.file?.src}`}" alt="img" />
|
||||||
</div>
|
</div>
|
||||||
{#if col && col.icons}
|
{#if col && col.icons}
|
||||||
<div class="icons">
|
<div class="icons">
|
||||||
{#each col.icons as icon}
|
{#each col.icons as icon}
|
||||||
<div class="icon">
|
<div class="icon">
|
||||||
<a href="{icon.link}" style="text-decoration: none;" target="_blank">
|
<a href="{icon.link}" style="text-decoration: none;" target="_blank">
|
||||||
<img src="{`${apiBaseURL}page/${pageId}/${icon.icon?.src}`}" alt="img" />
|
<img
|
||||||
|
src="{`${apiBaseURL}medialib/${image?.src}/${$mediaLibrary[image?.src]?.file?.src}`}"
|
||||||
|
alt="img"
|
||||||
|
/>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { apiBaseURL } from "../../../config"
|
import { apiBaseURL } from "../../../config"
|
||||||
|
import { mediaLibrary } from "../../store"
|
||||||
|
|
||||||
export let col: Column
|
export let col: Column
|
||||||
export let pageId: string
|
export let pageId: string
|
||||||
@ -8,7 +9,10 @@
|
|||||||
<div class="infoBoard">
|
<div class="infoBoard">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="icon">
|
<div class="icon">
|
||||||
<img src="{`${apiBaseURL}page/${pageId}/${col.infoBoard.icon?.src}`}" alt="img" />
|
<img
|
||||||
|
src="{`${apiBaseURL}medialib/${col.infoBoard.icon}/${$mediaLibrary[col.infoBoard.icon]?.file?.src}`}"
|
||||||
|
alt="img"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="title">
|
<div class="title">
|
||||||
{col.infoBoard.title}
|
{col.infoBoard.title}
|
||||||
|
@ -1,22 +1,21 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { navigate } from "svelte-routing/src/history"
|
import { navigate } from "svelte-routing/src/history"
|
||||||
import { openExtendableNr, pages, rerender, scrollToRowNr } from "../../store"
|
import { openExtendableNr, rerender, scrollToRowNr } from "../../store"
|
||||||
export let col: Column
|
export let pages: Page[]
|
||||||
|
let jobOffers = pages.map((p) => p.jobOffer)
|
||||||
let focused = -1
|
let focused = -1
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="link-container">
|
<div class="link-container">
|
||||||
{#each col.pageLinkBlocks as link, i}
|
{#each jobOffers as job, i}
|
||||||
{#if isNaN(link.extendableRowNr)}
|
{#if i > 3}
|
||||||
<button
|
<button
|
||||||
class="page-ref"
|
class="page-ref"
|
||||||
on:click="{() => {
|
on:click="{() => {
|
||||||
$rerender = $rerender + 1
|
$rerender = $rerender + 1
|
||||||
$scrollToRowNr = link.rowNr
|
|
||||||
navigate(Object.values($pages)?.find((o) => o.id == link.page)?.path || '/')
|
|
||||||
}}"
|
}}"
|
||||||
>
|
>
|
||||||
{link.name}
|
{job.title}
|
||||||
</button>
|
</button>
|
||||||
{:else}
|
{:else}
|
||||||
<button
|
<button
|
||||||
@ -29,14 +28,9 @@
|
|||||||
class="row-ref fill"
|
class="row-ref fill"
|
||||||
on:click="{() => {
|
on:click="{() => {
|
||||||
$rerender = $rerender + 1
|
$rerender = $rerender + 1
|
||||||
$scrollToRowNr = link.rowNr
|
|
||||||
$openExtendableNr = link.extendableRowNr
|
|
||||||
navigate(Object.values($pages)?.find((o) => o.id == link.page)?.path || '/')
|
|
||||||
}}"
|
}}"
|
||||||
>
|
>
|
||||||
<div>
|
<div>Mehr offene Stellen</div>
|
||||||
{link.name}
|
|
||||||
</div>
|
|
||||||
<svg
|
<svg
|
||||||
data-src="/media/arrow-r.svg"
|
data-src="/media/arrow-r.svg"
|
||||||
stroke="{i == focused ? '#fff' : 'black'}"
|
stroke="{i == focused ? '#fff' : 'black'}"
|
||||||
|
@ -1,39 +1,45 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { apiBaseURL } from "../../../config"
|
import { apiBaseURL } from "../../../config"
|
||||||
import { pages, rerender } from "../../store"
|
import { mediaLibrary, pages, rerender } from "../../store"
|
||||||
import { navigate } from "svelte-routing/src/history"
|
import { navigate } from "svelte-routing/src/history"
|
||||||
|
|
||||||
export let pageId: string
|
export let pageId: string
|
||||||
export let col: Column
|
export let persons: Page[]
|
||||||
|
|
||||||
let hover = -1
|
let hover = -1
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="persons">
|
<div class="persons">
|
||||||
{#each col.personPreview as pp, i}
|
{#each persons as p, i}
|
||||||
<button
|
<button
|
||||||
class="person"
|
class="person"
|
||||||
on:click="{() => {
|
on:click="{() => {
|
||||||
$rerender = $rerender + 1
|
$rerender = $rerender + 1
|
||||||
navigate(Object.values($pages)?.find((o) => o.id == pp.link)?.path || '/')
|
navigate(p.path)
|
||||||
}}"
|
}}"
|
||||||
>
|
>
|
||||||
<div class="image" on:mouseover="{() => (hover = i)}" on:focus on:blur on:mouseout="{() => (hover = -1)}">
|
<div class="image" on:mouseover="{() => (hover = i)}" on:focus on:blur on:mouseout="{() => (hover = -1)}">
|
||||||
<!-- Initial Image -->
|
<!-- Initial Image -->
|
||||||
<img
|
<img
|
||||||
class="initial"
|
class="initial"
|
||||||
src="{`${apiBaseURL}page/${pageId}/${pp.initialImage?.src}`}"
|
src="{`${apiBaseURL}medialib/${p.personPreview.hoverImage}/${
|
||||||
|
$mediaLibrary[p.personPreview.initialImage]?.file?.src
|
||||||
|
}`}"
|
||||||
alt="img"
|
alt="img"
|
||||||
style="opacity: {hover == i ? 0 : 1}"
|
style="opacity: {hover == i ? 0 : 1}"
|
||||||
/>
|
/>
|
||||||
<!-- Hover Image -->
|
<!-- Hover Image -->
|
||||||
<img
|
<img
|
||||||
class="hover"
|
class="hover"
|
||||||
src="{`${apiBaseURL}page/${pageId}/${pp.hoverImage?.src}`}"
|
src="{`${apiBaseURL}medialib/${p.personPreview.hoverImage}/${
|
||||||
|
$mediaLibrary[p.personPreview.hoverImage]?.file?.src
|
||||||
|
}`}"
|
||||||
alt="img"
|
alt="img"
|
||||||
style="opacity: {hover == i ? 1 : 0}"
|
style="opacity: {hover == i ? 1 : 0}"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="text">
|
<div class="text">
|
||||||
{pp.name}
|
{p.personPreview.name}
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
{/each}
|
{/each}
|
||||||
@ -68,7 +74,7 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
transition: opacity 0.3s;
|
transition: opacity 0.3s;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.text {
|
.text {
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { apiBaseURL } from "../../../config"
|
import { apiBaseURL } from "../../../config"
|
||||||
|
import { mediaLibrary } from "../../store"
|
||||||
|
|
||||||
export let col: Column
|
export let col: Column
|
||||||
export let pageId: string
|
export let pageId: string
|
||||||
@ -20,8 +21,8 @@
|
|||||||
<div class="content">{@html publication.content}</div>
|
<div class="content">{@html publication.content}</div>
|
||||||
<div class="download">
|
<div class="download">
|
||||||
<a
|
<a
|
||||||
href="{apiBaseURL}page/{pageId}/{publication.file.src}"
|
href="{apiBaseURL}medialib/{publication.file}/{$mediaLibrary[publication.file]?.file.src}"
|
||||||
download="{apiBaseURL}page/{pageId}/{publication.file.src}"
|
download="{apiBaseURL}medialib/{publication.file}/{$mediaLibrary[publication.file]?.file.src}"
|
||||||
>
|
>
|
||||||
<button class="download-button">zur Publikation</button>
|
<button class="download-button">zur Publikation</button>
|
||||||
</a>
|
</a>
|
||||||
|
6
frontend/src/lib/functions/loadLibrary.ts
Normal file
6
frontend/src/lib/functions/loadLibrary.ts
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import { api } from "../../api"
|
||||||
|
|
||||||
|
export async function loadLibrary(): Promise<MediaLibrary[]> {
|
||||||
|
let lib = await api<MediaLibrary[]>("medialib", {})
|
||||||
|
return lib.data
|
||||||
|
}
|
6
frontend/src/lib/functions/loadModules.ts
Normal file
6
frontend/src/lib/functions/loadModules.ts
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import { api } from "../../api"
|
||||||
|
|
||||||
|
export async function loadModules(): Promise<Module[]> {
|
||||||
|
let module = await api<Module[]>("module", {})
|
||||||
|
return module.data
|
||||||
|
}
|
@ -12,6 +12,10 @@ export const location = writable(initLoc)
|
|||||||
|
|
||||||
export let navigation = writable<Navigation>()
|
export let navigation = writable<Navigation>()
|
||||||
export let pages = writable<Pages>({})
|
export let pages = writable<Pages>({})
|
||||||
|
export let team = writable<Pages>({})
|
||||||
|
export let jobOffers = writable<Pages>({})
|
||||||
|
export let modules = writable<{ [id: string]: Module }>({})
|
||||||
|
export let mediaLibrary = writable<{ [id: string]: MediaLibrary }>({})
|
||||||
export let serviceNavigation = writable<Navigation>()
|
export let serviceNavigation = writable<Navigation>()
|
||||||
export let rerender = writable(0)
|
export let rerender = writable(0)
|
||||||
export let scrollToRowNr = writable(-1)
|
export let scrollToRowNr = writable(-1)
|
||||||
|
114
types/global.d.ts
vendored
114
types/global.d.ts
vendored
@ -10,9 +10,14 @@ interface Pages {
|
|||||||
|
|
||||||
interface Page {
|
interface Page {
|
||||||
path: string
|
path: string
|
||||||
|
active: boolean
|
||||||
|
type: "page" | "teamMembers" | "jobOffers"
|
||||||
|
pageTitle: string
|
||||||
|
personType: string
|
||||||
|
personPreview: PersonPreview
|
||||||
teaser: teaserHomepage
|
teaser: teaserHomepage
|
||||||
sectionHomepage: Row
|
jobOffer: jobOffer
|
||||||
rows: outerRow[]
|
rows: Row[]
|
||||||
id: string
|
id: string
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -22,62 +27,48 @@ interface teaserHomepage {
|
|||||||
teaserTitle: string
|
teaserTitle: string
|
||||||
teaserDescription: string
|
teaserDescription: string
|
||||||
}
|
}
|
||||||
interface outerRow {
|
|
||||||
row: Row
|
|
||||||
}
|
|
||||||
interface Row {
|
interface Row {
|
||||||
topTitle: string
|
topTitle: string
|
||||||
topTitleRed: boolean
|
topTitleUpperCase: boolean
|
||||||
subTitle: string
|
|
||||||
title: string
|
title: string
|
||||||
pageTitle: string
|
subTitle: string
|
||||||
|
backgroundImage: string
|
||||||
|
noBottomMargin: boolean
|
||||||
|
noTopMargin: boolean
|
||||||
|
flexWrapNormal: boolean
|
||||||
|
twoToThree: boolean
|
||||||
columns: Column[]
|
columns: Column[]
|
||||||
backgroundImage: FileField
|
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Column {
|
type Column =
|
||||||
contentType:
|
| { contentType: "image"; image: string; icons: { icon: string; link: string }[] }
|
||||||
| "image"
|
| { contentType: "moduleImport"; moduleImport: string }
|
||||||
| "iconCycleSquare"
|
| { contentType: "text"; text: string }
|
||||||
| "iconCycleCircle"
|
| { contentType: "infoBoard"; infoBoard: InfoBoard }
|
||||||
| "text"
|
| { contentType: "nestedCard"; nestedCard: NestedCard[] }
|
||||||
| "infoBoard"
|
| { contentType: "topDown"; topDown: TopDown }
|
||||||
| "worldCard"
|
| { contentType: "textLink"; textLink: TextLink }
|
||||||
| "nestedCard"
|
| { contentType: "iconBlocks"; iconBlocks: IconBlock[] }
|
||||||
| "topDown"
|
| { contentType: "networkEvents"; networkEvents: NetworkEvent[] }
|
||||||
| "personPreview"
|
| { contentType: "publications"; publications: Publication[] }
|
||||||
| "boxlist"
|
|
||||||
| "extendableBoxes"
|
|
||||||
| "textLink"
|
|
||||||
| "iconBlocks"
|
|
||||||
| "pageLinkBlocks"
|
|
||||||
| "publications"
|
|
||||||
| "networkEvents"
|
|
||||||
|
|
||||||
image?: FileField
|
interface MediaLibrary {
|
||||||
icons: {
|
file: FileField
|
||||||
icon: FileField
|
id: string
|
||||||
link: string
|
|
||||||
}[]
|
|
||||||
iconCycleSquare?: IconCycleSquare
|
|
||||||
iconCycleCircle?: IconCycleCircle
|
|
||||||
text: string
|
|
||||||
textLink: TextLink
|
|
||||||
infoBoard: InfoBoard
|
|
||||||
worldCard: WorldCard
|
|
||||||
nestedCard: NestedCard[]
|
|
||||||
topDown: TopDown
|
|
||||||
personPreview: PersonPreview[]
|
|
||||||
boxList: BoxList
|
|
||||||
extendableBoxes: ExtendableBox[]
|
|
||||||
iconBlocks: iconBlock[]
|
|
||||||
pageLinkBlocks: pageLinkBlock[]
|
|
||||||
networkEvents: NetworkEvent[]
|
|
||||||
publications: Publication[]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Module =
|
||||||
|
| { id: string; type: "iconCycleCircle"; iconCycleCircle: IconCycleCircle }
|
||||||
|
| { id: string; type: "iconCycleSquare"; iconCycleSquare: IconCycleSquare }
|
||||||
|
| { id: string; type: "worldCard"; worldCard: WorldCard }
|
||||||
|
| { id: string; type: "chefTeam" }
|
||||||
|
| { id: string; type: "employeeTeam" }
|
||||||
|
| { id: string; type: "jobOfferLink" }
|
||||||
|
| { id: string; type: "jobOffer" }
|
||||||
|
|
||||||
interface Publication {
|
interface Publication {
|
||||||
file: FileField
|
file: string
|
||||||
content: string
|
content: string
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -85,23 +76,15 @@ interface NetworkEvent {
|
|||||||
beginDate: Date
|
beginDate: Date
|
||||||
endDate: Date
|
endDate: Date
|
||||||
title: string
|
title: string
|
||||||
file: FileField
|
file: string
|
||||||
}
|
}
|
||||||
|
|
||||||
interface iconBlock {
|
interface iconBlock {
|
||||||
icon: FileField
|
icon: string
|
||||||
iconFocused: FileField
|
|
||||||
bigText: string
|
bigText: string
|
||||||
smallText: string
|
smallText: string
|
||||||
}
|
}
|
||||||
|
|
||||||
interface pageLinkBlock {
|
|
||||||
name: string
|
|
||||||
rowNr: number
|
|
||||||
page: string
|
|
||||||
extendableRowNr: number
|
|
||||||
}
|
|
||||||
|
|
||||||
interface IconCycleSquare {
|
interface IconCycleSquare {
|
||||||
boxes: Box[]
|
boxes: Box[]
|
||||||
}
|
}
|
||||||
@ -112,14 +95,14 @@ interface IconCycleCircle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
interface Box {
|
interface Box {
|
||||||
icon: FileField
|
icon: string
|
||||||
text: string
|
text: string
|
||||||
circle: boolean
|
circle: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
interface InfoBoard {
|
interface InfoBoard {
|
||||||
title: string
|
title: string
|
||||||
icon: FileField
|
icon: string
|
||||||
text: string
|
text: string
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -133,7 +116,7 @@ interface worldCardRow {
|
|||||||
interface Card {
|
interface Card {
|
||||||
verticalAlignment: string
|
verticalAlignment: string
|
||||||
horizontalAlignment: string
|
horizontalAlignment: string
|
||||||
image: FileField
|
image: string
|
||||||
title: string
|
title: string
|
||||||
properties: number[]
|
properties: number[]
|
||||||
}
|
}
|
||||||
@ -154,10 +137,9 @@ interface TopDownRow {
|
|||||||
}
|
}
|
||||||
|
|
||||||
interface PersonPreview {
|
interface PersonPreview {
|
||||||
initialImage: FileField
|
initialImage: string
|
||||||
hoverImage: FileField
|
hoverImage: string
|
||||||
name: string
|
name: string
|
||||||
link: string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
interface BoxList {
|
interface BoxList {
|
||||||
@ -166,14 +148,14 @@ interface BoxList {
|
|||||||
}[]
|
}[]
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ExtendableBox {
|
interface jobOffer {
|
||||||
title: string
|
title: string
|
||||||
text: string
|
text: string
|
||||||
emailButton: boolean
|
emailButton: boolean
|
||||||
emailSubject: string
|
emailSubject: string
|
||||||
}
|
}
|
||||||
|
|
||||||
interface FileField {
|
interface string {
|
||||||
path: string
|
path: string
|
||||||
src: string
|
src: string
|
||||||
type: string
|
type: string
|
||||||
|
Loading…
Reference in New Issue
Block a user