Skip to content

Instantly share code, notes, and snippets.

* {
box-sizing: border-box;
}
body {
background: #EFEFEF;
font-family: 'adobe clean';
margin: 0;
}
mountpoints:
/: https://drive.google.com/drive/u/0/folders/1aHSa47OaZZlPG8sQGTM9Zfwhd8jctBWF
/**
* Helix Nav
*
* A low-touch client-side navigation function to inject
* /nav.html content (if present) into a vanilla Helix Page.
*
* How to use
*
* 1. Add a "nav" doc to the root of your content folder
* 2. Add this script to your page.
@auniverseaway
auniverseaway / flexShowHide.js
Created April 23, 2020 22:44
A dead simple parsys show/hide for Flex Container
/*
* Copyright 2020 Adobe
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@auniverseaway
auniverseaway / _cq_icon.svg
Last active April 29, 2019 19:33
A sample AEM Icon - Modal
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<tab-control data-sly-use.model="org.millr.core.models.TabControl"
data-sort-by="${model.sortBy}"
data-model="${'{0}.model.json' @ format = resource.path}"
data-title="${model.title || 'testing 123'}">
<h2>${properties.subTitle || 'Sub Title'}</h2>
<sly data-sly-repeat.child="${model.children}">
<tab-item>${child.title}</tab-item>
</sly>
</tab-control>
/* global fetch */
import React from 'react';
import TabItem from '../tabItem/TabItem';
export default class TabControl extends React.Component {
constructor(props) {
super(props);
this.props = props;
this.state = {};
this.state = { sort: 'AZ', tabItems: [] };
import { DOMModel, DOMComponent } from 'react-dom-components';
import TabControl from './TabControl';
import { TabItemModel } from '../tabItem/TabItemDOM';
class SubTitleModel extends DOMModel {
constructor(element) {
super(element);
this.getTextContent();
}
}
package org.millr.core.models;
import com.day.cq.wcm.api.Page;
import com.day.cq.wcm.api.PageManager;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import org.apache.sling.api.SlingHttpServletRequest;
package org.millr.stuff;
@Model(
adaptables = { SlingHttpServletRequest.class },
resourceType = "millr/components/stuff",
defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL
)
@Exporter(name = "jackson", extensions = "json")
public class DoStuff {