Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Team listing elements #377

Closed
wants to merge 22 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
8ea2a20
Issue 357: Allow PostArchive within stage
regniets Sep 30, 2020
cfd8a71
Issue 354: Improved Blogpost
regniets Sep 30, 2020
69e15fd
Merge pull request #361 from regniets/bugfix/blog
regniets Oct 5, 2020
c768c66
Merge pull request #363 from regniets/bugfix/countup
regniets Oct 5, 2020
4e147b6
Merge pull request #364 from regniets/bugfix/choicebutton
regniets Oct 5, 2020
2545f6f
Merge branch 'master' into feature/references
regniets Oct 5, 2020
1d66041
Merge pull request #362 from regniets/feature/references
regniets Oct 5, 2020
8e30c5d
Bugfix: Add showcase listing on service provider page
regniets Oct 5, 2020
e2c00c4
Merge pull request #365 from regniets/bugfix/references
regniets Oct 5, 2020
aceca48
Sort arrays correctly
regniets Oct 5, 2020
79bdd65
Merge branch 'master' of git://github.com/neos/Neos.NeosIo into bugfi…
regniets Oct 5, 2020
767e4d0
Merge pull request #366 from regniets/bugfix/references
regniets Oct 5, 2020
5d1b642
FEATURE: Switch to Matomo for tracking (#367)
Sebobo Oct 12, 2020
d0c19f8
BUGFIX: Load fonts locally and from correct path (#369)
Sebobo Oct 13, 2020
1a9ec6f
Bugfix: Added maximumWidth and async for caselisting images
regniets Oct 20, 2020
8e78969
TASK: Optimise show case image size for actual output size
Sebobo Oct 20, 2020
8f9b580
Lazyload bugfix: Added vanilla-lazyload for lazyloading
regniets Oct 20, 2020
ef90505
Merge pull request #370 from regniets/bugfix/case-studies
regniets Oct 20, 2020
c704b3c
Merge pull request #371 from regniets/bugfix/lazyload
regniets Oct 22, 2020
f32c174
Update _Stage.scss
iseries Nov 23, 2020
c0b8cc9
Update _Base.scss
iseries Nov 23, 2020
cdb1fcc
Update _Team.scss
iseries Nov 23, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,318 changes: 1,318 additions & 0 deletions 20203009.sql

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Configuration/Production/Beach/Instance/Caches.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Flow_Security_Cryptography_HashService:
password: '%env:BEACH_REDIS_PASSWORD%'
port: '6379'
database: 6
Neos_Neos_GoogleAnalytics_Tokens:
FlowpackNeosMatomo_ApiCache:
backend: 'Neos\Cache\Backend\RedisBackend'
backendOptions:
hostname: '%env:BEACH_REDIS_HOST%'
Expand Down
7 changes: 0 additions & 7 deletions Configuration/Production/Beach/Instance/Settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ Neos:
elasticSearch:
indexName: '%env:BEACH_ELASTICSEARCH_INDEX_NAME%'

GoogleAnalytics:
authentication:
applicationName: 'Neos'
clientId: '%env:GOOGLE_ANALYTICS_CLIENT_ID%'
clientSecret: '%env:GOOGLE_ANALYTICS_CLIENT_SECRET%'
developerKey: '%env:GOOGLE_ANALYTICS_CLIENT_DEVELOPER_KEY%'

Flow:
persistence:
backendOptions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
//

// SASS Functions, Mixins and Variables
$fa-font-path: "../../Neos.NeosIo/Assets";
$font-path: "../../Neos.NeosIo/Assets";

@import "DistributionPackages/Neos.NeosIo/Resources/Private/Scss/_Framework/Index";
@import "DistributionPackages/Neos.NeosIo/Resources/Private/Scss/Variables";
@import "Variables";
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
$imageTeaser--speaker__width: 200px;
$imageTeaser--speaker__width: 200px;
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ prototype(Neos.NeosIo.CaseStudies:Content.CaseList) < prototype(Neos.Neos:Conten
}
image = Neos.Neos:ImageUri {
asset = ${q(case).property('image')}
width = 662
height = 312
allowCropping = true
async = true
quality = 90
@if.hasBannerImage = ${q(case).property('image')}
}
projectType = ${q(q(case).property('projectType')).property('title')}
Expand All @@ -53,4 +58,15 @@ prototype(Neos.NeosIo.CaseStudies:Content.CaseList) < prototype(Neos.Neos:Conten
</div>
`
}
@cache {
mode = 'cached'
entryIdentifier {
node = ${node}
}
entryTags {
node = ${Neos.Caching.nodeTag(node)}
node = ${Neos.Caching.nodeTypeTag('Neos.NeosIo:Reference')}
}
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
prototype(Neos.NeosIo:Reference.List.Item) < prototype(Neos.Fusion:Component) {
title = ${q(case).property('title')}
alternativeText = ${q(case).property('title')}
image = ${q(case).property('image')}
url = ${q(case).property('url') ? q(case).property('url') : 'node://' + case.identifier}
url.@process.convertUris = Neos.Neos:ConvertUris {
absolute = true
}
datePublished = ${q(case).property('datePublished')}
launchDate = ${q(case).property('launchDate')}
projectVolume = Neos.NeosIo.CaseStudies:Helper.ProjectVolumes
projectType = ${q(q(case).property('projectType')).property('title')}
featured = ${q(case).property('featured')}

@context {
title = ${this.title}
alternativeText = ${this.alternativeText}
}

imageTag = Neos.NeosIo:Component.LazyLoadImage {
image = ${q(case).property('image')}
title = ${title}
alternativeText = ${alternativeText}
className = 'imageTeaser__image'
maximumHeight = '450'
maximumwidth = '700'
allowCropping = true
}

renderer = afx`
<div class="references__item gi u-w1/1 u-wm1/2 u-wl1/2">
<a href={props.url} target="_blank" rel="noopener" class="imageTeaser imageTeaser--isLink">
{props.imageTag}
<div class="imageTeaser__contents u-invertText">
<h3 class="imageTeaser__contents__heading">{props.title}</h3>
<footer class="references__data">
<span @if.hasLaunchDate={props.launchDate}><i class="fas fa-rocket"></i>{Date.format(props.launchDate,'d.m.Y')}</span>
<span @if.hasProjectVolume={props.projectVolume}>
<i class="fas fa-users"></i>{props.projectVolume}
</span>
<span @if.hasProjectType={props.projectType}><i class="fas fa-industry"></i> {props.projectType}</span>
</footer>
</div>
</a>
</div>
`

@cache {
mode = 'cached'
entryIdentifier {
node = ${case}
}
entryTags {
node = ${Neos.Caching.nodeTag(case)}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,7 @@ prototype(Neos.NeosIo:Reference.ShowCaseItem) < prototype(Neos.Neos:ContentCompo
title = ${q(node).property('title')}
alternativeText = ${q(node).property('title')}

projectVolume = Neos.Fusion:Case {
default {
condition = ${true}
renderer = 'n/a'
}
5 {
condition = ${q(node).property('projectVolume') == 5}
renderer = '< 100h'
}
10 {
condition = ${q(node).property('projectVolume') == 10}
renderer = '100 - 499h'
}
15 {
condition = ${q(node).property('projectVolume') == 15}
renderer = '500 - 999h'
}
20 {
condition = ${q(node).property('projectVolume') == 20}
renderer = '1000 - 3000h'
}
25 {
condition = ${q(node).property('projectVolume') == 25}
renderer = '> 3000h'
}
}
projectVolume = Neos.NeosIo.CaseStudies:Helper.ProjectVolumes

projectType = ${q(q(node).property('projectType')).property('title')}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
prototype(Neos.NeosIo.CaseStudies:Helper.ProjectVolumes) < prototype(Neos.Fusion:Case) {
default {
condition = ${true}
renderer = 'n/a'
}
5 {
condition = ${q(node).property('projectVolume') == 5}
renderer = '< 100h'
}
10 {
condition = ${q(node).property('projectVolume') == 10}
renderer = '100 - 499h'
}
15 {
condition = ${q(node).property('projectVolume') == 15}
renderer = '500 - 999h'
}
20 {
condition = ${q(node).property('projectVolume') == 20}
renderer = '1000 - 3000h'
}
25 {
condition = ${q(node).property('projectVolume') == 25}
renderer = '> 3000h'
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ prototype(Neos.Neos:Page) {
src = Neos.Fusion:ResourceUri {
path = 'resource://Neos.NeosIo.CaseStudies/Public/Scripts/Main.js'
}
defer = true
}
@if.caseStudyListingPresent = ${q(documentNode).children().find('[instanceof Neos.NeosIo.CaseStudies:Content.CaseList]')}
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import TranslationData from "./Context/TranslationData";
import CaseStudyTableRow from "./Components/CaseStudyTableRow";
import CaseStudyGridItem from "./Components/CaseStudyGridItem";
import {SortDirection, sortObjects} from "./Helper/Sorter";
import LazyLoad from "vanilla-lazyload";


const projectVolumesValueMap = {
1: 'n/a',
Expand All @@ -16,19 +18,21 @@ const projectVolumesValueMap = {
25: '> 3000h'
};


export default function CaseStudyListing() {
const casesData: CaseStudy[] = useContext(CasesData);
const translationData: string[] = useContext(TranslationData);
const lazyLoad = new LazyLoad({});

// Filter entries
const industries: string[] = useMemo(() => casesData.reduce((carry: string[], caseStudy: CaseStudyTableRow) => {
const industries: string[] = useMemo(() => casesData.reduce((carry: string[], caseStudy: CaseStudy) => {
carry.push(caseStudy.projectType);
return carry;
}, []).filter((v, i, a) => v && a.indexOf(v) === i), [casesData]);
const projectVolumes: number[] = useMemo(() => casesData.reduce((carry: number[], caseStudy: CaseStudyTableRow) => {
}, []).filter((v, i, a) => v && a.indexOf(v) === i).sort(), [casesData]);
const projectVolumes: number[] = useMemo(() => casesData.reduce((carry: number[], caseStudy: CaseStudy) => {
carry.push(caseStudy.projectVolume);
return carry;
}, []).filter((v, i, a) => v && a.indexOf(v) === i), [casesData]);
}, []).sort((a,b) => a-b).filter((v, i, a) => !i || v != a[i -1]), [casesData]);

// State hooks
const [searchWord, setSearchWord] = useState('');
Expand Down Expand Up @@ -69,7 +73,8 @@ export default function CaseStudyListing() {
);
}
setCaseStudies(filteredCases);
}, [searchWord, industryFilter, projectVolumeFilter, sorting, sortingDirection]);
lazyLoad.update();
}, [searchWord, industryFilter, projectVolumeFilter, sorting, sortingDirection, lazyLoad]);

return (
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function CaseStudyGridItem({caseStudy}: {caseStudy: CaseStudy}) {
<a key={caseStudy.identifier} class={'imageTeaser imageTeaser--isLink' + (caseStudy.featured ? ' references__item--featured' : '')} href={caseStudy.url} target="_blank" rel="noopener">
{caseStudy.image
?
<img src="/_Resources/Static/Packages/Neos.NeosIo/Images/Loader.svg" data-image-normal={caseStudy.image} class="imageTeaser__image" loading="lazy" title={caseStudy.title} alt={caseStudy.title} />
<img data-src={caseStudy.image} class="imageTeaser__image lazy" title={caseStudy.title} alt={caseStudy.title} />
: ''
}
<div class="imageTeaser__contents u-invertText">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ prototype(Neos.NeosIo.ServiceOfferings:Component.Provider.ShowCases) < prototype
<h2>Showcases</h2>
<div class="references__list g">
<Neos.Fusion:Loop items={props.showCases} itemName="showCase">
<Neos.NeosIo:Reference.List.Item @context.node={showCase}/>
<Neos.NeosIo:Reference.List.Item @context.case={showCase}/>
</Neos.Fusion:Loop>
</div>
</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
placeholder: prefix
number:
type: string
validation:
'Neos.Neos/Validation/NotEmptyValidator': []
'Neos.Neos/Validation/IntegerValidator': []
defaultValue: '101'
ui:
inlineEditable: true
Expand Down
16 changes: 0 additions & 16 deletions DistributionPackages/Neos.NeosIo/Configuration/NodeTypes.Post.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
'Neos.NodeTypes:Page': true
'Neos.NodeTypes:ImageMixin': true
'Neos.NodeTypes:ImageCaptionMixin': true
'Neos.Seo:TitleTagMixin': true
'Neos.Seo:TwitterCardMixin': true
'Neos.Seo:CanonicalLinkMixin': true
'Neos.Seo:OpenGraphMixin': true
'Neos.Seo:XmlSitemapMixin': true
'Neos.NeosIo:KeyVisualMixin': true
ui:
label: Post
Expand All @@ -24,9 +19,6 @@
image:
position: 40
collapsed: true
seometa:
position: 50
tab: null
properties:
datePublished:
type: DateTime
Expand Down Expand Up @@ -128,11 +120,3 @@
editorOptions:
nodeTypes:
- 'Neos.Neos:Document'
metaRobotsNoindex:
ui:
inspector:
group: null
metaRobotsNofollow:
ui:
inspector:
group: null
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
'Neos.NeosIo:ImageTeaser': true
'Neos.NeosIo.FeatureList:FeatureList': true
'Neos.NeosIo.CaseStudies:Content.CaseList': true
'Neos.NeosIo:PostArchive': true
ui:
label: Stage
icon: icon-tasks
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Flowpack:
Neos:
Matomo:
containerId:
neosio: 'Br6HvcZW'
neosconio: 'gwvfb05Z'
flowneosio: 'Soy96R9e'

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Flowpack:
Neos:
Matomo:
host: 'analytics.neos.io'
token_auth: '%env:MATOMO_TOKEN_AUTH%'
idSite:
neosio: 5
neosconio: 6
flowneosio: 7
containerId:
# if you want those enabled for dev debugging,
# pls add a key and add no-tracking cookie so that
# your requests dont add up to our live-views
#neosio: ''
#neosconio: ''
#flowneosio: ''
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
prototype(Neos.NeosIo:PageStyles) < prototype(Neos.Fusion:Array) {
prototype(Neos.NeosIo:PageStyles) < prototype(Neos.Fusion:Join) {
main = afx`
<link rel="stylesheet" @children="attributes.href">
<Neos.Fusion:ResourceUri path="resource://Neos.NeosIo/Public/Styles/Main.css"/>
</link>
`

fonts = afx`
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Work+Sans:300,200,200italic,300italic,400,400italic"/>
`
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
prototype(Neos.NeosIo:ChoiceButtons) < prototype(Neos.Neos:Content) {
prototype(Neos.NeosIo:ChoiceButtons) < prototype(Neos.Neos:ContentComponent) {
firstButton = Neos.NeosIo:Button {
@context.node = ${q(node).children('firstButton').get(0)}
}

secondButton = Neos.NeosIo:Button {
@context.node = ${q(node).children('secondButton').get(0)}
}

renderer = afx`
<div class="u-alignCenter u-mb1/2">
{props.firstButton}
<span class="btnChoiceLabel">{Translation.translate('choiceButton.or', '', [], 'Main', 'Neos.NeosIo')}</span>
{props.secondButton}
</div>
`
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ body {
text-align: $start;
color: $base-text-color;
background: $body-background;
overflow: hidden;
}

// Disable scroll - Used in the OffCanvas active state.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
--stage-background-color: #000;
display: block;
position: relative;
overflow: hidden;
background: #000;

@include u-linkReset();
Expand Down
Loading