Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Snehal Sonawane authored and Snehal Sonawane committed Sep 19, 2024
1 parent 25498b1 commit efa4396
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 11 deletions.
6 changes: 3 additions & 3 deletions asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"files": {
"main.css": "/nav-consumer/static/css/main.34ab584e.css",
"main.js": "/nav-consumer/static/js/main.65f3bb83.js",
"main.js": "/nav-consumer/static/js/main.f32607a1.js",
"static/js/453.e8d73487.chunk.js": "/nav-consumer/static/js/453.e8d73487.chunk.js",
"static/media/learn.png": "/nav-consumer/static/media/learn.ed09c2210d29f84a46a9.png",
"static/media/logo.svg": "/nav-consumer/static/media/logo.6ce24c58023cc2f8fd88fe9d219db6c6.svg",
"index.html": "/nav-consumer/index.html",
"main.34ab584e.css.map": "/nav-consumer/static/css/main.34ab584e.css.map",
"main.65f3bb83.js.map": "/nav-consumer/static/js/main.65f3bb83.js.map",
"main.f32607a1.js.map": "/nav-consumer/static/js/main.f32607a1.js.map",
"453.e8d73487.chunk.js.map": "/nav-consumer/static/js/453.e8d73487.chunk.js.map"
},
"entrypoints": [
"static/css/main.34ab584e.css",
"static/js/main.65f3bb83.js"
"static/js/main.f32607a1.js"
]
}
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/nav-consumer/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/nav-consumer/logo192.png"/><link rel="manifest" href="/nav-consumer/manifest.json"/><title>React App</title><script defer="defer" src="/nav-consumer/static/js/main.65f3bb83.js"></script><link href="/nav-consumer/static/css/main.34ab584e.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/nav-consumer/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/nav-consumer/logo192.png"/><link rel="manifest" href="/nav-consumer/manifest.json"/><title>React App</title><script defer="defer" src="/nav-consumer/static/js/main.f32607a1.js"></script><link href="/nav-consumer/static/css/main.34ab584e.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
21 changes: 18 additions & 3 deletions navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ const env = new URLSearchParams(window.location.search).get("env") || "stage";
const privacyId = new URLSearchParams(window.location.search).get("privacyid");
const locale = new URLSearchParams(window.location.search).get("locale");
const navBranch = new URLSearchParams(window.location.search).get("navbranch") || "gnav";
const unavComponents = new URLSearchParams(window.location.search).get("unav") || "appswitcher,profile,notifications";
const unavComponents = new URLSearchParams(window.location.search).get("unav") || "appswitcher,profile,notifications,help";
const imsClientId = new URLSearchParams(window.location.search).get("imsclientid") || "adobedotcom-cc";
const redirect = new URLSearchParams(window.location.search).get("redirect") || "off";
const theme = new URLSearchParams(window.location.search).get("theme") || "light";
const searchEnabled = new URLSearchParams(window.location.search).get("searchEnabled") || "off";
const unavVersion = new URLSearchParams(window.location.search).get("unav-version") || "";

async function init() {
const { default: loadBlock } = await import(`https://${navBranch}--milo--adobecom.hlx.page/libs/navigation/navigation.js`);
Expand All @@ -24,7 +23,23 @@ async function init() {
console.log(e)
},
footer: { authoringPath, privacyId },
header: { imsClientId, unavComponents, redirect, unavVersion, searchEnabled },
header: {
imsClientId,
unavComponents,
redirect,
searchEnabled,
unavHelpChildren: [
{ type: 'Support' },
{ type: 'Community' },
{
title: 'Custom 1',
onAction: () => {
console.log('Custom 1 is clicked!')
},
analyticsIdentifier: 'unav-custom-1',
},
]
},
});
}
init();
6 changes: 3 additions & 3 deletions static/js/main.65f3bb83.js → static/js/main.f32607a1.js

Large diffs are not rendered by default.

File renamed without changes.

Large diffs are not rendered by default.

0 comments on commit efa4396

Please sign in to comment.