mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Merge branch '5059-epic-groups' of github.com:Yunite-Net/Yunite-Net-Ocelot-Social-Deploy-Rebranding into 5059-epic-groups
This commit is contained in:
commit
bab4ca2ad8
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
@ -3,7 +3,7 @@ name: ocelot.social publish branded CI
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
# - master
|
||||
- master
|
||||
- 5059-epic-groups # for testing while developing
|
||||
|
||||
jobs:
|
||||
|
||||
@ -2,15 +2,19 @@
|
||||
|
||||
When you overtake this deploy and rebrand repo to your network you have to recognize the following changes and doings …
|
||||
|
||||
## This Latest Version >= 1.1.1 with 'ocelotDockerVersionTag' 1.1.1-231
|
||||
## This Latest Version >= 2.0.0 with 'ocelotDockerVersionTag' 2.0.0-250
|
||||
|
||||
### Yunite Deployment/Rebranding PR – chore: 🍰 Release v1.1.1-231 - New Group Features #14
|
||||
### Main Code PR – feat: 🍰 Implement LOGO_HEADER_CLICK As Configuration #5525
|
||||
|
||||
- You have to add the file `webapp/constants/groups.js` as `branding/constants/groups.js` which should include `SHOW_GROUP_BUTTON_IN_HEADER` set to your needs.
|
||||
- You have to set `LOGO_HEADER_CLICK` in `branding/constants/logos.js` originally in main code file `webapp/constants/logos.js` to your prevered value.
|
||||
|
||||
### Main Code Issue – 🌟 [EPIC] Release v2.0.0 – Beta Test → Final #5547
|
||||
|
||||
- You have to set `SHOW_GROUP_BUTTON_IN_HEADER` in `branding/constants/groups.js` originally in main code file `webapp/constants/groups.js` to your prevered value.
|
||||
|
||||
## This Latest Version >= 1.1.0 with 'ocelotDockerVersionTag' 1.1.0-205
|
||||
|
||||
### Deployment/Rebranding PR – chore: 🍰 Release v1.1.0 - Implement Categories Again #63
|
||||
### Deployment/Rebranding PR – chore: 🍰 Release v1.1.0 - Implement Categories Again #63
|
||||
|
||||
- You have to add the `CATEGORIES_ACTIVE` from the `deployment/kubernetes/values.template.yaml` to your `deployment/kubernetes/values.yaml` and set it to your preferred value.
|
||||
- Make sure the correct categories are in your Neo4j database on the server.
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// this file is duplicated in `backend/src/constants/group.js` and `webapp/constants/group.js`
|
||||
export const GROUPNAME_MIN_LENGTH = 3
|
||||
export const GROUPNAME_MAX_LENGTH = 50
|
||||
export const GROUPDESCRIPTION_WITHOUT_HTML_LENGTH_MIN = 100 // with removed HTML tags
|
||||
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 = false
|
||||
|
||||
@ -1,15 +1,19 @@
|
||||
export default {
|
||||
MENU: [
|
||||
{
|
||||
name: 'Beiträge',
|
||||
path: '/#',
|
||||
nameIdent: 'yuniteRebranding.header.newsFeed',
|
||||
path: '/',
|
||||
},
|
||||
{
|
||||
name: 'Gruppen',
|
||||
nameIdent: 'yuniteRebranding.header.myGroups',
|
||||
path: '/my-groups',
|
||||
},
|
||||
{
|
||||
name: 'Über Yunite',
|
||||
nameIdent: 'yuniteRebranding.header.topics',
|
||||
url: 'https://yunite.org/themen/',
|
||||
},
|
||||
{
|
||||
nameIdent: 'yuniteRebranding.header.about',
|
||||
url: 'https://yunite.org',
|
||||
},
|
||||
],
|
||||
|
||||
@ -17,7 +17,7 @@ const ORGANIZATION = defaultPageParamsPages.ORGANIZATION.overwrite({
|
||||
})
|
||||
const DONATE = defaultPageParamsPages.DONATE.overwrite({
|
||||
// we use 'ocelot-social.herokuapp.com' at the moment, because redirections of 'ocelot.social' subpages are not working correctly
|
||||
externalLink: 'https://yunite.org/brand-guidelines/', // if string is defined and not empty it's dominating
|
||||
externalLink: 'https://yunite.org/spenden/', // if string is defined and not empty it's dominating
|
||||
|
||||
internalPage: {
|
||||
// footerIdent: 'site.donate', // localized string identifier, if undefined default is used
|
||||
@ -34,7 +34,7 @@ const IMPRINT = defaultPageParamsPages.IMPRINT.overwrite({
|
||||
externalLink: 'https://yunite.org/impressum/', // if string is defined and not empty it's dominating
|
||||
|
||||
internalPage: {
|
||||
// footerIdent: 'site.imprint', // localized string identifier, if undefined default is used
|
||||
footerIdent: 'yuniteRebranding.footer.imprint', // localized string identifier, if undefined default is used
|
||||
// headTitleIdent: 'site.imprint', // localized string identifier, if undefined default is used
|
||||
// headlineIdent: 'site.imprint', // localized string identifier, on null it's hidden, if undefined default is used
|
||||
hasContainer: true,
|
||||
@ -73,7 +73,7 @@ const DATA_PRIVACY = defaultPageParamsPages.DATA_PRIVACY.overwrite({
|
||||
externalLink: 'https://yunite.org/datenschutz/', // if string is defined and not empty it's dominating
|
||||
|
||||
internalPage: {
|
||||
// footerIdent: 'site.data-privacy', // localized string identifier, if undefined default is used
|
||||
footerIdent: 'yuniteRebranding.footer.dataPrivacy', // localized string identifier, if undefined default is used
|
||||
// headTitleIdent: 'site.data-privacy', // localized string identifier, if undefined default is used
|
||||
// headlineIdent: 'site.data-privacy', // localized string identifier, on null it's hidden, if undefined default is used
|
||||
hasContainer: true,
|
||||
@ -124,11 +124,11 @@ export default {
|
||||
SUPPORT,
|
||||
|
||||
FOOTER_LINK_LIST: [
|
||||
ORGANIZATION,
|
||||
// ORGANIZATION,
|
||||
// TERMS_AND_CONDITIONS,
|
||||
CODE_OF_CONDUCT,
|
||||
// CODE_OF_CONDUCT,
|
||||
DATA_PRIVACY,
|
||||
FAQ,
|
||||
// FAQ,
|
||||
// DONATE,
|
||||
// SUPPORT,
|
||||
IMPRINT,
|
||||
|
||||
@ -3,6 +3,10 @@
|
||||
export default {
|
||||
LOGO_HEADER_PATH: '/img/custom/logo-horizontal.svg',
|
||||
LOGO_HEADER_WIDTH: '47px',
|
||||
LOGO_HEADER_CLICK: {
|
||||
externalLink: 'https://yunite.org',
|
||||
internalPath: null,
|
||||
},
|
||||
LOGO_SIGNUP_PATH: '/img/custom/logo-squared.svg',
|
||||
LOGO_WELCOME_PATH: '/img/custom/logo-squared.svg',
|
||||
LOGO_LOGOUT_PATH: '/img/custom/logo-squared.svg',
|
||||
|
||||
14
branding/locales/de.json
Normal file
14
branding/locales/de.json
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"yuniteRebranding": {
|
||||
"header": {
|
||||
"about": "Über Yunite",
|
||||
"myGroups": "Gruppen",
|
||||
"newsFeed": "Beiträge",
|
||||
"topics": "Themen"
|
||||
},
|
||||
"footer": {
|
||||
"dataPrivacy": "Datenschutz",
|
||||
"imprint": "Impressum"
|
||||
}
|
||||
}
|
||||
}
|
||||
14
branding/locales/en.json
Normal file
14
branding/locales/en.json
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"yuniteRebranding": {
|
||||
"header": {
|
||||
"about": "About Yunite",
|
||||
"myGroups": "Groups",
|
||||
"newsFeed": "News Feed",
|
||||
"topics": "Topics"
|
||||
},
|
||||
"footer": {
|
||||
"dataPrivacy": "Data privacy",
|
||||
"imprint": "Imprint"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -10,11 +10,18 @@ ARG APP_IMAGE_CODE=${APP_IMAGE}:${APP_IMAGE_TAG_CODE}
|
||||
FROM $APP_IMAGE_CODE as code
|
||||
|
||||
# copy public constants into the Docker image to brand it
|
||||
COPY tools/ tools/
|
||||
COPY branding/static/ static/
|
||||
COPY branding/constants/ constants/
|
||||
COPY branding/locales/ locales/
|
||||
COPY branding/locales/html/ locales/html/
|
||||
# COPY branding/locales/index.js locales/index.js
|
||||
COPY branding/locales/*.json locales/tmp/
|
||||
COPY branding/assets/styles/imports/ assets/styles/imports/
|
||||
|
||||
RUN apk add --no-cache bash jq
|
||||
|
||||
RUN tools/merge-locales.sh
|
||||
|
||||
##################################################################################
|
||||
# BUILD ##########################################################################
|
||||
##################################################################################
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "yunite.net",
|
||||
"version": "1.1.1",
|
||||
"ocelotDockerVersionTag": "1.1.1-231",
|
||||
"version": "2.0.0",
|
||||
"ocelotDockerVersionTag": "2.0.0-250",
|
||||
"dockerOrganisation": "tirokk",
|
||||
"description": "yunite.net Branded",
|
||||
"author": "yunite.net Community",
|
||||
|
||||
12
tools/merge-locales.sh
Executable file
12
tools/merge-locales.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
for locale in `ls locales/*.json`;
|
||||
do
|
||||
file=$(basename $locale);
|
||||
if [ -f locales/tmp/$file ]; then
|
||||
jq -s '.[0] * .[1]' $locale locales/tmp/$file > locales/tmp/tmp.json;
|
||||
mv locales/tmp/tmp.json $locale;
|
||||
fi;
|
||||
done;
|
||||
|
||||
rm -r locales/tmp/
|
||||
Loading…
x
Reference in New Issue
Block a user