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: meta:
label: Banner label: Banner
muiIcon: web muiIcon: web
backup:
active: true
collectionName: backups
views: views:
- type: table - type: table
columns: columns:

View File

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

View File

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

View File

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

View File

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