backups
All checks were successful
deploy to production / deploy (push) Successful in 38s

This commit is contained in:
Robin Grenzdörfer 2023-10-15 10:52:56 +00:00
parent 1fc0ca05b8
commit d273081e09
6 changed files with 109 additions and 6 deletions

View File

@ -0,0 +1,95 @@
name: backups
meta:
isBackupcollection: true
permissions:
public:
methods:
get: false
post: false
put: false
delete: false
user:
methods:
get: true
post: false
put: false
delete: false
# token als Zusatzsicherung gegen Spam, mehr siehe Hook
"token:${PUBLIC_TOKEN}":
methods:
get: false
post: true
put: false
delete: false
hooks:
post:
create:
type: javascript
file: hooks/backups/post_create.js
fields:
- name: collectionName
type: string
meta:
label: Collection Name
- name: entryId
type: string
meta:
label: Entry ID
- name: versionNr
type: number
meta:
label: Version Nr
- name: manipulatedBy
type: string
meta:
label: Manipulated By
- name: eventDescription
type: string
meta:
label: Event Description
widget: select
choices:
- id: create
name: Create
- id: update
name: Update
- id: delete
name: Delete
- id: recreate
name: Recreate
- id: activate
name: Activate
- name: updateLogs
type: object[]
meta:
label: Veränderungen
subFields:
- name: field
type: string
meta:
label: Feldname
- name: previous
type: string
meta:
label: Vorheriger Wert
- name: current
type: string
meta:
label: Aktueller Wert
- name: entry
type: object
meta:
label: Entry

View File

@ -4,6 +4,9 @@ uploadPath: ../media/banner
meta:
label: Banner
muiIcon: web
backup:
active: true
collectionName: backups
views:
- type: table
columns:

View File

@ -4,8 +4,11 @@ uploadPath: ../media/content
meta:
label: Inhalt
muiIcon: web
backup:
active: true
collectionName: backups
defaultSort:
order: MANUALLY
order: MANUALLY
views:
- type: table
columns:
@ -44,7 +47,6 @@ meta:
- source: aktiv
- source: meta
imageFilter:
xs:
- fit: true

View File

@ -4,7 +4,9 @@ uploadPath: ../media/forms
meta:
label: Formulare
muiIcon: web
backup:
active: true
collectionName: backups
views:
- type: table
columns:

View File

@ -4,6 +4,9 @@ uploadPath: ../media/navigation
meta:
label: "Navigation"
muiIcon: navigation
backup:
active: true
collectionName: backups
views:
- type: simpleList
mediaQuery: "(max-width:599px)"
@ -12,8 +15,7 @@ meta:
- type: table
mediaQuery: "(min-width:600px)"
columns:
- source: tree
- source: tree
permissions:
public:

View File

@ -254,7 +254,6 @@
font-weight: 700;
word-spacing: 5px;
letter-spacing: 4px;
color: rgb(184, 16, 16);
}
& > #lowerpc {