Skip to content

Instantly share code, notes, and snippets.

View rolandschuetz's full-sized avatar

Roland Schütz rolandschuetz

View GitHub Profile
'CodeQ.Site:Document.PerformanceTest':
superTypes:
'Neos.Neos:Document': true
ui:
label: Performance Test
properties:
enabledComplexRendering:
type: boolean
ui:
label: 'Enabled complex rendering'
@rolandschuetz
rolandschuetz / onScrollNonBlocking.js
Created December 4, 2017 12:49
A small plugin to add a scroll listener without blocking the UI
/**
* A tiny plugin which calls the on scroll event handler
* only when the performance allows the next rendering
*
* Usage:
* $(window).scrollNonBlocking(function () { ... });
*/
;(function($, window, document, undefined) {
'use strict';
@rolandschuetz
rolandschuetz / dabblet.css
Created November 10, 2017 14:12
Untitled
p {
@media (min-width: 550px) {
line-height: 1.6;
}
@media (min-width: 1600px) {
font-size: 2rem;
}
@media (min-width: 1920px) {
font-size: 2.2rem;
}
@rolandschuetz
rolandschuetz / composer.json
Created August 1, 2017 14:28
This composer.json imports the new separated nodetypes subpackages.
{
"name": "neos/neos-development-distribution",
"description" : "Neos Development Distribution",
"license": "GPL-3.0+",
"support": {
"email": "hello@neos.io",
"slack": "http://slack.neos.io/",
"forum": "https://discuss.neos.io/",
"wiki": "https://discuss.neos.io/c/the-neos-project/project-documentation",
"issues": "https://github.com/neos/neos-development-collection/issues",
prototype(CodeQ.Site:HomePage.Document) < prototype(CodeQ.Site:AbstractPage.Document){
bodyTag.attributes.class = 'codeq-site-HomePage'
}
prototype(CodeQ.Site:HomePage) < prototype(CodeQ.Site:AbstractPage) {
main = Neos.Neos:ContentCollection {
nodePath = 'main'
}
# This might be a bit confusion, by default our Neos-Skeleton generator automatically
# make all text properties inline editbale:
prototype(CodeQ.Site:HomePage.Document) < prototype(CodeQ.Site:AbstractPage.Document){
bodyTag.attributes.class = 'codeq-site-HomePage'
}
prototype(CodeQ.Site:HomePage) < prototype(CodeQ.Site:AbstractPage) {
main = Neos.Neos:ContentCollection {
nodePath = 'main'
}
# This might be a bit confusion, by default our Neos-Skeleton generator automatically
# make all text properties inline editbale:
@rolandschuetz
rolandschuetz / HomePage.fusion
Created July 20, 2017 15:32
Refactoring HomePage Rendering
prototype(CodeQ.Site:HomePage.Document) < prototype(CodeQ.Site:AbstractPage.Document){
bodyTag.attributes.class = 'codeq-site-HomePage'
}
prototype(CodeQ.Site:HomePage) < prototype(CodeQ.Site:AbstractPage) {
main = Neos.Neos:ContentCollection {
nodePath = 'main'
}
# This might be a bit confusion, by default our Neos-Skeleton generator automatically
# make all text properties inline editbale:
/* Cookie Consent - http://silktide.com/cookieconsent */
/* also requires including //cdnjs.cloudflare.com/ajax/libs/cookieconsent2/1.0.10/cookieconsent.min.js */
/* jshint camelcase:false */
switch($('html').attr('lang')) {
case 'de':
window.cookieconsent_options = {
'message': 'Ich stimme zu, dass diese Seite Cookies für Analysen und zur Optimierung der Website verwendet.',
'dismiss': 'Ok',
'learnMore': 'Mehr Informationen',
'link': '/de/impressum.html#google-analytics',
prototype(CodeQ.Site:MirrorPage) >
prototype(CodeQ.Site:MirrorPage) < prototype(TYPO3.TypoScript:Case) {
# HOW WOULD THIS CORRECTLY LOOK LIKE?
default {
@context.node = ${q(node).property('reference')}
type = ${q(node).property('reference').property('_nodeType.name')}
}
@cache {
html,body {
font-size: 16px;
}
.content {
//font-size: 2.5em;
}
h1 {
font-size: 2em;