Refactor branding JS files, first test

This commit is contained in:
Wolfgang Huß 2024-07-30 13:12:02 +02:00
parent 3d5d678dd1
commit 17d5ab7788
7 changed files with 7 additions and 7 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
.DS_Store
*.yaml
SECRET
.env

View File

View File

@ -0,0 +1,6 @@
// this file is duplicated in backend/src/branding/groupsBranding' and 'webapp/branding/groupsBranding'
// configurable values see: 'backend/src/constants/groupsDefault', 'webapp/constants/groupsDefault'
// configurable values see: 'backend/src/constants/groups', 'webapp/constants/groups'
// export const DUMMY = '' // to avoid import error ts(2306): File X is not a module.
export const DESCRIPTION_WITHOUT_HTML_LENGTH_MIN = 3 // with removed HTML tags

View File

View File

View File

@ -1,5 +0,0 @@
// this file is duplicated in `backend/src/constants/group.js` and `webapp/constants/group.js`
export const NAME_LENGTH_MIN = 3
export const NAME_LENGTH_MAX = 50
export const DESCRIPTION_WITHOUT_HTML_LENGTH_MIN = 100 // with removed HTML tags
export const SHOW_GROUP_BUTTON_IN_HEADER = true

View File

@ -22,7 +22,6 @@ const ORGANIZATION = defaultPageParamsPages.ORGANIZATION.overwrite({
const DONATE = defaultPageParamsPages.DONATE.overwrite({
// if defined it's dominating
externalLink: {
// we use 'ocelot-social.herokuapp.com' at the moment, because redirections of 'ocelot.social' subpages are not working correctly
url: 'https://busfaktor.org/en/spenden',
target: '_blank',
},
@ -40,7 +39,6 @@ const DONATE = defaultPageParamsPages.DONATE.overwrite({
const IMPRINT = defaultPageParamsPages.IMPRINT.overwrite({
// if defined it's dominating
externalLink: {
// we use 'ocelot-social.herokuapp.com' at the moment, because redirections of 'ocelot.social' subpages are not working correctly
url: 'http://ocelot.social/en/impressum',
target: '_blank',
},