feat(config): add customizable footer

This commit is contained in:
Ali BARIN
2025-03-10 09:34:41 +00:00
parent 423317966e
commit 035ed6fee3
9 changed files with 172 additions and 0 deletions

View File

@@ -6,12 +6,63 @@ exports[`Config model > jsonSchema should have correct validations 1`] = `
"createdAt": {
"type": "string",
},
"enableFooter": {
"type": "boolean",
},
"enableTemplates": {
"type": [
"boolean",
"null",
],
},
"footerBackgroundColor": {
"type": [
"string",
"null",
],
},
"footerCopyrightText": {
"type": [
"string",
"null",
],
},
"footerDocsLink": {
"type": [
"string",
"null",
],
},
"footerImprintLink": {
"type": [
"string",
"null",
],
},
"footerLogoSvgData": {
"type": [
"string",
"null",
],
},
"footerPrivacyPolicyLink": {
"type": [
"string",
"null",
],
},
"footerTextColor": {
"type": [
"string",
"null",
],
},
"footerTosLink": {
"type": [
"string",
"null",
],
},
"id": {
"format": "uuid",
"type": "string",

View File

@@ -16,6 +16,15 @@ class Config extends Base {
palettePrimaryMain: { type: ['string', 'null'] },
title: { type: ['string', 'null'] },
enableTemplates: { type: ['boolean', 'null'] },
enableFooter: { type: 'boolean' },
footerLogoSvgData: { type: ['string', 'null'] },
footerCopyrightText: { type: ['string', 'null'] },
footerBackgroundColor: { type: ['string', 'null'] },
footerTextColor: { type: ['string', 'null'] },
footerDocsLink: { type: ['string', 'null'] },
footerTosLink: { type: ['string', 'null'] },
footerPrivacyPolicyLink: { type: ['string', 'null'] },
footerImprintLink: { type: ['string', 'null'] },
createdAt: { type: 'string' },
updatedAt: { type: 'string' },
},