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
@Override | |
public AssetRendition getRendition(final AssetModel assetModel, final AssetRenditionParameters parameters) { | |
throw new UnsupportedOperationException(String.format("[ %s ] is not supported by the AEM Async Asset Download Framework.", | |
this.getClass().getName())); | |
/* | |
// Commented out implementation for AEM as a Cloud Service as this only supports a sub-set of the original use-case. | |
final String expression = mappings.get(parameters.getRenditionName()); |
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
package com.adobe.aem.commons.assetshare.content.renditions.download.impl; | |
import com.adobe.aem.commons.assetshare.content.renditions.AssetRenditions; | |
import com.adobe.aem.commons.assetshare.content.renditions.download.AssetRenditionPacker; | |
import com.adobe.aem.commons.assetshare.content.renditions.impl.AssetRenditionServlet; | |
import com.adobe.aem.commons.assetshare.content.renditions.impl.AssetRenditionsImpl; | |
import com.adobe.aem.commons.assetshare.testing.MockAssetModels; | |
import com.adobe.aem.commons.assetshare.util.ServletHelper; | |
import com.adobe.aem.commons.assetshare.util.impl.ServletHelperImpl; | |
import io.wcm.testing.mock.aem.junit5.AemContext; |
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
package com.adobe.aem.guides.wknd.core.components.impl; | |
import static org.junit.Assert.assertEquals; | |
import static org.junit.Assert.assertFalse; | |
import static org.junit.Assert.assertNull; | |
import static org.junit.Assert.assertTrue; | |
import static org.mockito.Mockito.mock; | |
import static org.mockito.Mockito.when; | |
import static org.mockito.Mockito.doReturn; | |
import static org.mockito.ArgumentMatchers.*; |
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
package com.adobe.aem.guides.wknd.core.components.impl; | |
import static org.junit.Assert.assertEquals; | |
import static org.junit.Assert.assertFalse; | |
import static org.junit.Assert.assertNull; | |
import static org.junit.Assert.assertTrue; | |
import static org.mockito.Mockito.mock; | |
import static org.mockito.Mockito.when; | |
import static org.mockito.Mockito.doReturn; | |
import static org.mockito.ArgumentMatchers.*; |
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
package com.adobe.aem.guides.wknd.core.components.impl; | |
import static org.junit.Assert.assertEquals; | |
import static org.junit.Assert.assertFalse; | |
import static org.junit.Assert.assertNull; | |
import static org.junit.Assert.assertTrue; | |
import static org.mockito.Mockito.mock; | |
import static org.mockito.Mockito.when; | |
import static org.mockito.Mockito.doReturn; | |
import static org.mockito.ArgumentMatchers.*; |
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
export default class Page { | |
constructor() { | |
} | |
get path() { | |
return "light.html"; | |
} | |
getQueryString(params) { |
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 Bem from '../../../../util/Bem'; | |
export default class Sort { | |
constructor() { | |
this.bem = new Bem('cmp-search-sort'); | |
this.component = $(this.bem.selector()); | |
this.sortByElement = this.component.element(this.bem.scope('selection', 'sort-by').selector()); |
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 Page from '../page/Page.component' | |
import Sort from './Sort.component'; | |
let assert = require('assert'); | |
describe('on reload of search page, with sort related query params, the search sort component', () => { | |
let page = new Page(), | |
sort = new Sort(); | |
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
{ | |
"bridge": { | |
"name": "Homebridge", | |
"username": "CC:22:3D:E3:CE:30", | |
"port": 51826, | |
"pin": "123-45-678" | |
}, | |
"description": "This file configures support for Nest, TP-Link Devices and HarmonyHub Remote.", | |
"platforms": [ | |
{ |
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
#!/bin/bash | |
# *** Copy this file to /root/.homebridge *** | |
# This file gets executed as root, so you can use it to | |
# install or update any plugin dependencies. | |
# See https://github.com/marcoraddatz/homebridge-docker#installsh | |
npm update -g n |
NewerOlder