-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from plone/update-versions
LGTM. I just updated the content database from the live site to testing, let's update testing now to the latest and check.
- Loading branch information
Showing
9 changed files
with
200 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# syntax=docker/dockerfile:1 | ||
ARG PLONE_VERSION=6.0.4 | ||
ARG PLONE_VERSION=6.0.7 | ||
FROM plone/plone-backend:${PLONE_VERSION} | ||
|
||
LABEL maintainer="Simples Consultoria <[email protected]>" \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
ARG PLONE_VERSION=6.0.4 | ||
ARG PLONE_VERSION=6.0.7 | ||
FROM plone/plone-backend:${PLONE_VERSION} | ||
|
||
LABEL maintainer="Jonas Piterek <[email protected]>" \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
-c https://dist.plone.org/release/6.0.4/constraints.txt | ||
-c https://dist.plone.org/release/6.0-dev/constraints.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
frontend/src/addons/volto-plonede/src/customizations/volto/components/theme/Logo/Logo.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/** | ||
* Logo component. | ||
* @module components/theme/Logo/Logo | ||
*/ | ||
import { useEffect } from 'react'; | ||
import { Image } from 'semantic-ui-react'; | ||
import { ConditionalLink } from '@plone/volto/components'; | ||
import LogoImage from '@plone/volto/components/theme/Logo/Logo.svg'; | ||
import { useSelector, useDispatch } from 'react-redux'; | ||
import { getNavroot } from '@plone/volto/actions'; | ||
import { | ||
flattenToAppURL, | ||
hasApiExpander, | ||
getBaseUrl, | ||
toPublicURL, | ||
} from '@plone/volto/helpers'; | ||
|
||
/** | ||
* Logo component class. | ||
* @function Logo | ||
* @param {Object} intl Intl object | ||
* @returns {string} Markup of the component. | ||
*/ | ||
const Logo = () => { | ||
const pathname = useSelector((state) => state.router.location.pathname); | ||
const site = useSelector((state) => state.site.data); | ||
const navroot = useSelector((state) => state.navroot.data); | ||
const dispatch = useDispatch(); | ||
|
||
useEffect(() => { | ||
if (pathname && !hasApiExpander('navroot', getBaseUrl(pathname))) { | ||
dispatch(getNavroot(getBaseUrl(pathname))); | ||
} | ||
}, [dispatch, pathname]); | ||
|
||
// remove trailing slash | ||
const currentURL = toPublicURL(pathname).replace(/\/$/, ''); | ||
|
||
return ( | ||
<ConditionalLink | ||
href={navroot?.navroot?.['@id']} | ||
title={navroot?.navroot?.title} | ||
condition={currentURL !== navroot?.navroot?.['@id']} | ||
> | ||
<Image | ||
className="logo" | ||
src={ | ||
site['plone.site_logo'] | ||
? flattenToAppURL(site['plone.site_logo']) | ||
: LogoImage | ||
} | ||
alt={navroot?.navroot?.title} | ||
title={navroot?.navroot?.title} | ||
/> | ||
</ConditionalLink> | ||
); | ||
}; | ||
|
||
export default Logo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.