Skip to content

Commit ed675d1

Browse files
Merge pull request #156 from adobe/main
Sync main to prod
2 parents a28ca9a + 0ce7e78 commit ed675d1

34 files changed

Lines changed: 6438 additions & 7205 deletions

.env

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
REACT_APP_DEFAULT_AUTHOR_HOST=https://author-p7452-e12433.adobeaemcloud.com
2-
REACT_APP_DEFAULT_PUBLISH_HOST=https://publish-p7452-e12433.adobeaemcloud.com
32
REACT_APP_GRAPHQL_ENDPOINT=/content/graphql/global/endpoint.json
43
# disable build source maps
54
INLINE_RUNTIME_CHUNK=false

README.md

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,36 @@
1-
# Universal Editor Sample App
1+
# Adobe Universal Editor Sample App
22

33
## Using the Sample App
4-
This Sample App is hosted at https://ue-remote-app.adobe.net.
5-
Per Default the content is retrieved and written back to our Production Demo Environment:
6-
```
7-
authorHost=https://author-p7452-e12433.adobeaemcloud.com
8-
publishHost=https://publish-p7452-e12433.adobeaemcloud.com
9-
service=<null> // using defualt built in Universal Editor
10-
protocol=aem // protocol to work on AEMCS
11-
```
12-
If you'd like to retrieve content from another environment add authorHost & publishHost as query parameters, e.g.
4+
The Sample App is hosted at https://ue-remote-app.adobe.net.
5+
Per Default the content is retrieved and written back to the Adobe Experience Manager as a Cloud Service ( Production ) Demo Environment:
136

14-
[https://ue-remote-app.adobe.net?authorHost=https://author-p15902-e145656-cmstg.adobeaemcloud.com&publishHost=https://publish-p15902-e145656-cmstg.adobeaemcloud.com](https://ue-remote-app.adobe.net?authorHost=https://author-p15902-e145656-cmstg.adobeaemcloud.com&publishHost=https://publish-p15902-e145656-cmstg.adobeaemcloud.com)
7+
The default settings from [.env](.env) can be overwritten using Query parameters:
8+
* `authorHost`: host to retrieve data from and update content to; default=https://author-p7452-e12433.adobeaemcloud.com
9+
* `service`: Universal Editor Service endpoint; default Universal Editor default
10+
* `protocol`: protocol to use with backend, can be `aem`, `aem65`, `aemcsLegacy`; default: `aem`
11+
* `cors`: defining which cors.js - connection between Universal Editor and application shall be used. Can be `stage` or empty; default `null/empty`. `stage` will use the cors library hosted on stage, else it will use the production version
1512

16-
respectively if run on local dev environment:
13+
To retrieve content from another environment add `authorHost` as query parameters, e.g.
1714

18-
[https://localhost:3000?authorHost=https://author-p15902-e145656-cmstg.adobeaemcloud.com&publishHost=https://publish-p15902-e145656-cmstg.adobeaemcloud.com](https://localhost:3000?authorHost=https://author-p15902-e145656-cmstg.adobeaemcloud.com&publishHost=https://publish-p15902-e145656-cmstg.adobeaemcloud.com)
15+
[https://ue-remote-app.adobe.net?authorHost=https://author-p7452-e12433.adobeaemcloud.com](https://ue-remote-app.adobe.net?authorHost=https://author-p7452-e12433.adobeaemcloud.com)
1916

20-
## Prerequisites
17+
Similarly, if running the Universal Editor App on local dev environment, add `authorHost` as query parameters like this:
2118

22-
- AEMCS instance is available
23-
- WKND project is installed on the instance
24-
- CORS enabled on AEM instance for the app
25-
- For local development with editor, ensure app is using *https*
19+
[https://localhost:3000?authorHost=https://localhost:8443&service=https://localhost:8443/universal-editor](https://localhost:3000?authorHost=https://localhost:8443&service=https://localhost:8443/universal-editor)
20+
21+
## Run locally
22+
23+
- AEM 6.5 or AEMCS instance
24+
- Latest WKND Content installed on the AEM instance[https://github.com/adobe/aem-guides-wknd/releases/latest](https://github.com/adobe/aem-guides-wknd/releases/latest)
25+
- AEM configured to run on HTTPS [https://experienceleague.adobe.com/en/docs/experience-manager-learn/foundation/security/use-the-ssl-wizard](https://experienceleague.adobe.com/en/docs/experience-manager-learn/foundation/security/use-the-ssl-wizard)
26+
- `Adobe Granite Token Authentication Handler` configured to set `token.samesite.cookie.attr=Partitioned`
27+
- Remove `X-FRAME-Options=SAMEORIGIN` from `Apache Sling Main Servlet`'s `sling.additional.response.headers` attribute if run locally
28+
- Add policy for `https://localhost:3000` to `Adobe Granite Cross-Origin Resource Sharing Policy`. The default `adobe` configuraiton can be used as blueprint if run local copy of the app
29+
- Follow configuration on [https://github.com/maximilianvoss/universal-editor-service-proxy](https://github.com/maximilianvoss/universal-editor-service-proxy) for local development set up
30+
- Open Universal Editor either
31+
- under AEM domain for AEMCS, e.g. [https://author-p7452-e12433.adobeaemcloud.com/ui#/aem/universal-editor/canvas/](https://author-p7452-e12433.adobeaemcloud.com/ui#/aem/universal-editor/canvas/)
32+
- or on [https://experience.adobe.com/#/aem/editor/canvas/](https://experience.adobe.com/#/aem/editor/canvas/)
33+
- For experience.adobe.com use the `Local Developer Login` to authenticate against your local AEM instance when using a local SDK or AEM 6.5
2634

2735
## Available Scripts
2836

@@ -72,5 +80,3 @@ Run in project root:
7280

7381
`npm run deploy prod` - deploy the app to the production link https://ue-remote-app.adobe.net (this is usually not needed, the application is automatically deployed on every PR merged to the `main` branch).
7482

75-
If case of permission issues, run `chmod +x deploy/script.sh` at the root of the project.
76-

build/index.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

build/static/component-definition.json

Lines changed: 24 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
{
88
"title": "Text",
99
"id": "text",
10+
"model": "text",
1011
"plugins": {
1112
"aem": {
1213
"page": {
@@ -15,20 +16,13 @@
1516
"text": "Default Text"
1617
}
1718
}
18-
},
19-
"aem65": {
20-
"page": {
21-
"resourceType": "wknd/components/text",
22-
"template": {
23-
"text": "Default Text"
24-
}
25-
}
2619
}
2720
}
2821
},
2922
{
3023
"title": "Title",
3124
"id": "title",
25+
"model": "title",
3226
"plugins": {
3327
"aem": {
3428
"page": {
@@ -37,14 +31,6 @@
3731
"jcr:title": "Default Title"
3832
}
3933
}
40-
},
41-
"aem65": {
42-
"page": {
43-
"resourceType": "wknd/components/title",
44-
"template": {
45-
"jcr:title": "Default Title"
46-
}
47-
}
4834
}
4935
}
5036
},
@@ -59,36 +45,27 @@
5945
"fileReference": "/content/dam/wknd-shared/en/magazine/arctic-surfing/camp-tent.jpg"
6046
}
6147
}
62-
},
63-
"aem65": {
64-
"page": {
65-
"resourceType": "wknd/components/image",
66-
"template": {
67-
"fileReference": "/content/dam/wknd-shared/en/magazine/arctic-surfing/camp-tent.jpg"
68-
}
69-
}
7048
}
7149
}
7250
},
73-
{
74-
"title": "List",
75-
"id": "list",
76-
"plugins": {},
77-
"model": {
78-
"uri": "",
79-
"fields": []
80-
}
81-
},
8251
{
8352
"title": "Container",
8453
"id": "container",
54+
"filter": "container",
8555
"plugins": {
8656
"aem": {
8757
"page": {
8858
"resourceType": "wknd/components/container"
8959
}
90-
},
91-
"aem65": {
60+
}
61+
}
62+
},
63+
{
64+
"title": "Accordion Item",
65+
"id": "accordion-item",
66+
"model": "accordion-item",
67+
"plugins": {
68+
"aem": {
9269
"page": {
9370
"resourceType": "wknd/components/container"
9471
}
@@ -104,6 +81,7 @@
10481
{
10582
"title": "Rich Text",
10683
"id": "richtext",
84+
"model": "richtext",
10785
"plugins": {
10886
"aem": {
10987
"page": {
@@ -113,14 +91,18 @@
11391
"text": "<p>Default Richtext</p>"
11492
}
11593
}
116-
},
117-
"aem65": {
94+
}
95+
}
96+
},
97+
{
98+
"title": "Accordion",
99+
"id": "accordion",
100+
"model": "accordion",
101+
"filter": "accordion",
102+
"plugins": {
103+
"aem": {
118104
"page": {
119-
"resourceType": "wknd/components/text",
120-
"template": {
121-
"textIsRich": true,
122-
"text": "<p>Default Richtext</p>"
123-
}
105+
"resourceType": "wknd/components/accordion"
124106
}
125107
}
126108
}
Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
[
2-
{
2+
{
33
"id": "container",
4-
"components":null
5-
}
4+
"components": [
5+
"text", "image", "title", "accordion", "container", "richtext"
6+
]
7+
},
8+
{
9+
"id": "accordion",
10+
"components": [
11+
"accordion-item"
12+
]
13+
}
614
]
-74.8 KB
Binary file not shown.
-75.7 KB
Binary file not shown.

build/static/media/Back.881c26e9.svg

Lines changed: 0 additions & 11 deletions
This file was deleted.
-153 KB
Binary file not shown.
-155 KB
Binary file not shown.

0 commit comments

Comments
 (0)