This file contains hidden or 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
* { | |
box-sizing: border-box; | |
} | |
body { | |
background: #EFEFEF; | |
font-family: 'adobe clean'; | |
margin: 0; | |
} |
This file contains hidden or 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
mountpoints: | |
/: https://drive.google.com/drive/u/0/folders/1aHSa47OaZZlPG8sQGTM9Zfwhd8jctBWF |
This file contains hidden or 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
/* | |
* 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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
<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> |
This file contains hidden or 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
/* 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: [] }; |
This file contains hidden or 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
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(); | |
} | |
} |
This file contains hidden or 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
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; |
This file contains hidden or 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
package org.millr.stuff; | |
@Model( | |
adaptables = { SlingHttpServletRequest.class }, | |
resourceType = "millr/components/stuff", | |
defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL | |
) | |
@Exporter(name = "jackson", extensions = "json") | |
public class DoStuff { |