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
exports.onRouteUpdate = ({ location, prevLocation }) => { | |
let viewName = location.pathname.substr(1, location.pathname.length - 2) || "home"; | |
if (typeof adobe != 'undefined' && adobe.target && typeof adobe.target.triggerView === 'function') { | |
adobe.target.triggerView(viewName); | |
} | |
} |
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
handleSubmit = event => { | |
localStorage.setItem("likeCats", this.state.likeCats); | |
var event = new CustomEvent('contact-form-submit'); | |
var obj = document.querySelector("body"); | |
obj.dispatchEvent(event); | |
} |
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
import React from 'react'; | |
export default class DataLayer extends React.Component { | |
constructor(props) { | |
super(props); | |
} | |
render() { | |
return ( | |
<></> | |
) | |
} |
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
import com.day.cq.workflow.model.WorkflowModel | |
import com.day.cq.workflow.WorkflowService | |
import com.day.cq.workflow.WorkflowSession | |
import com.day.cq.workflow.exec.WorkflowData | |
import com.day.cq.workflow.event.WorkflowEvent | |
import groovy.transform.InheritConstructors | |
//------------------------------------- | |
// *** Max running workflows | |
//------------------------------------- |
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
import groovy.transform.InheritConstructors | |
import org.apache.sling.installer.api.jmx.InstallerMBean | |
//------------------------------------- | |
// *** Max OSGi configs | |
//------------------------------------- | |
// Breaklet Config | |
//------------------------------------- | |
def breakForDurationInSec = 120 | |
def maxIterations = 100 |