Skip to content

Commit

Permalink
feat: Central host UI files (#40)
Browse files Browse the repository at this point in the history
<!--- Provide a general summary of your changes in the Title above -->

## Description

<!--- Describe your changes in detail -->

The **branch** with preview files:

https://github.com/adobe/aem-experimentation/tree/gh-pages


**Todo:**

Configure the adobe.github.io to point to the gh-pages branch.




## Types of changes

<!--- What types of changes does your code introduce? Put an `x` in all
the boxes that apply: -->

- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)

## Checklist:

<!--- Go over all the following points, and put an `x` in all the boxes
that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->

- [x] I have signed the [Adobe Open Source
CLA](https://opensource.adobe.com/cla.html).
- [x] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [x] I have read the **CONTRIBUTING** document.
- [ ] I have added tests to cover my changes.
- [ ] All new and existing tests passed.

---------

Co-authored-by: Julien Ramboz <[email protected]>
  • Loading branch information
FentPams and ramboz authored Aug 1, 2024
1 parent 9db8662 commit 9b4478d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 905 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"main": "src/index.js",
"scripts": {
"lint:js": "eslint src",
"lint:css": "stylelint src/**/*.css",
"lint:css": "stylelint src/**/*.css --allow-empty-input",
"lint": "npm run lint:js && npm run lint:css",
"start": "http-server . -p 3000",
"test": "playwright test"
Expand Down
11 changes: 8 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,12 @@ export async function loadLazy(document, options = {}) {
if (!isDebugEnabled) {
return;
}
// eslint-disable-next-line import/no-cycle
const preview = await import('./preview.js');
preview.default(document, pluginOptions);
// eslint-disable-next-line import/no-unresolved
const preview = await import('https://opensource.adobe.com/aem-experimentation/preview.js');
const context = {
getMetadata,
toClassName,
debug,
};
preview.default.call(context, document, pluginOptions);
}
289 changes: 0 additions & 289 deletions src/preview.css

This file was deleted.

Loading

0 comments on commit 9b4478d

Please sign in to comment.