Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
bandana147 committed Sep 26, 2024
1 parent a3f72f5 commit 823ba98
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 21 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.2aaecab2.js",
"main.js": "/nav-consumer/static/js/main.57657411.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.2aaecab2.js.map": "/nav-consumer/static/js/main.2aaecab2.js.map",
"main.57657411.js.map": "/nav-consumer/static/js/main.57657411.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.2aaecab2.js"
"static/js/main.57657411.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.2aaecab2.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.57657411.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>
27 changes: 14 additions & 13 deletions navigation.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
const authoringPath = new URLSearchParams(window.location.search).get("authoringpath") || "/federal/dev";
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 customLinks = new URLSearchParams(window.location.search).get("customlinks") || "";
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 searchParams = new URLSearchParams(window.location.search);
const authoringPath = searchParams.get("authoringpath") || "/federal/dev";
const env = searchParams.get("env") || "stage";
const privacyId = searchParams.get("privacyid");
const locale = searchParams.get("locale");
const navBranch = searchParams.get("navbranch") || "gnav";
const customLinks = searchParams.get("customlinks") || "";
const unavComponents = searchParams.get("unav") || "appswitcher,profile,notifications,help";
const imsClientId = searchParams.get("imsclientid") || "adobedotcom-cc";
const redirect = searchParams.get("redirect") || "off";
const theme = searchParams.get("theme") || "light";
const searchEnabled = searchParams.get("searchEnabled") || "off";
const showUnavSectionDivider = searchParams.get("showUnavSectionDivider") || "false";
async function init() {
const { default: loadBlock } = await import(`https://${navBranch}--milo--adobecom.hlx.page/libs/navigation/navigation.js`);
loadBlock({
Expand All @@ -33,7 +34,7 @@ async function init() {
redirect,
searchEnabled,
customLinks,
showUnavSectionDivider: true,
showUnavSectionDivider: showUnavSectionDivider.toLowerCase() === "true",
unavHelpChildren: [
{ type: 'Support' },
{ type: 'Community' },
Expand Down
6 changes: 3 additions & 3 deletions static/js/main.2aaecab2.js → static/js/main.57657411.js

Large diffs are not rendered by default.

File renamed without changes.

Large diffs are not rendered by default.

0 comments on commit 823ba98

Please sign in to comment.