From d273081e0963b9e6c882a65a901d03b0993b2433 Mon Sep 17 00:00:00 2001 From: robin Date: Sun, 15 Oct 2023 10:52:56 +0000 Subject: [PATCH] backups --- api/collections/backups.yml | 95 +++++++++++++++++++ api/collections/banner.yml | 3 + api/collections/content.yml | 6 +- api/collections/forms.yml | 4 +- api/collections/navigation.yml | 6 +- .../src/lib/components/header/desktop.svelte | 1 - 6 files changed, 109 insertions(+), 6 deletions(-) create mode 100644 api/collections/backups.yml diff --git a/api/collections/backups.yml b/api/collections/backups.yml new file mode 100644 index 0000000..1876bef --- /dev/null +++ b/api/collections/backups.yml @@ -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 diff --git a/api/collections/banner.yml b/api/collections/banner.yml index fe2a4ed..81d4eaf 100644 --- a/api/collections/banner.yml +++ b/api/collections/banner.yml @@ -4,6 +4,9 @@ uploadPath: ../media/banner meta: label: Banner muiIcon: web + backup: + active: true + collectionName: backups views: - type: table columns: diff --git a/api/collections/content.yml b/api/collections/content.yml index e5b56d5..9fb33ab 100644 --- a/api/collections/content.yml +++ b/api/collections/content.yml @@ -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 diff --git a/api/collections/forms.yml b/api/collections/forms.yml index ee26b07..6bf25e4 100644 --- a/api/collections/forms.yml +++ b/api/collections/forms.yml @@ -4,7 +4,9 @@ uploadPath: ../media/forms meta: label: Formulare muiIcon: web - + backup: + active: true + collectionName: backups views: - type: table columns: diff --git a/api/collections/navigation.yml b/api/collections/navigation.yml index 4924f7e..4186c58 100644 --- a/api/collections/navigation.yml +++ b/api/collections/navigation.yml @@ -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: diff --git a/frontend/src/lib/components/header/desktop.svelte b/frontend/src/lib/components/header/desktop.svelte index 7e4dbdc..9ff4964 100644 --- a/frontend/src/lib/components/header/desktop.svelte +++ b/frontend/src/lib/components/header/desktop.svelte @@ -254,7 +254,6 @@ font-weight: 700; word-spacing: 5px; letter-spacing: 4px; - color: rgb(184, 16, 16); } & > #lowerpc {