forked from adobe/aem-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* placeholders integration * log error * preload and cache placeholders * Update head.html
- Loading branch information
Showing
8 changed files
with
74 additions
and
43 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
import { initializers } from '@dropins/tools/initializer.js'; | ||
import { initialize } from '@dropins/storefront-account/api.js'; | ||
import { initializeDropin } from './index.js'; | ||
import { fetchPlaceholders } from '../aem.js'; | ||
|
||
initializeDropin(async () => { | ||
await initializers.mountImmediately(initialize, {}); | ||
const labels = await fetchPlaceholders(); | ||
|
||
const langDefinitions = { | ||
default: { | ||
...labels, | ||
}, | ||
}; | ||
|
||
await initializers.mountImmediately(initialize, { langDefinitions }); | ||
})(); |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
import { initializers } from '@dropins/tools/initializer.js'; | ||
import { initialize } from '@dropins/storefront-checkout/api.js'; | ||
import { initializeDropin } from './index.js'; | ||
import { fetchPlaceholders } from '../aem.js'; | ||
|
||
initializeDropin(async () => { | ||
await initializers.mountImmediately(initialize, {}); | ||
const labels = await fetchPlaceholders(); | ||
|
||
const langDefinitions = { | ||
default: { | ||
...labels, | ||
}, | ||
}; | ||
|
||
await initializers.mountImmediately(initialize, { langDefinitions }); | ||
})(); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
import { initializers } from '@dropins/tools/initializer.js'; | ||
import { initialize } from '@dropins/storefront-order-confirmation/api.js'; | ||
import { initializeDropin } from './index.js'; | ||
import { fetchPlaceholders } from '../aem.js'; | ||
|
||
initializeDropin(async () => { | ||
await initializers.mountImmediately(initialize, {}); | ||
const labels = await fetchPlaceholders(); | ||
|
||
const langDefinitions = { | ||
default: { | ||
...labels, | ||
}, | ||
}; | ||
|
||
await initializers.mountImmediately(initialize, { langDefinitions }); | ||
})(); |
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
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