Skip to content

Commit

Permalink
Highlight menu entry regarding the current path (#340)
Browse files Browse the repository at this point in the history
* Highlight menu entry regarding the current path

* Upgrade all libraries / Fix upgrade request

* Upgrade Parcel

* Fix pb with @parcel/optimizer-swc: cannot reassign to a variable declared with const

---------

Co-authored-by: George Adams <georgeadams1995@gmail.com>
  • Loading branch information
xavierfacq and gdams authored Sep 18, 2023
1 parent 3eaffbb commit d7ea326
Show file tree
Hide file tree
Showing 9 changed files with 25,706 additions and 9,977 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
node_modules
dist
.cache
.parcel-cache
.project
.DS_Store
.parcel-cache
58 changes: 11 additions & 47 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,49 +1,13 @@
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">

<!-- Start Single Page Apps for GitHub Pages -->
<script type="text/javascript">
// Single Page Apps for GitHub Pages
// https://github.com/rafrex/spa-github-pages
// Copyright (c) 2016 Rafael Pedicini, licensed under the MIT License
// ----------------------------------------------------------------------
// This script checks to see if a redirect is present in the query string
// and converts it back into the correct url and adds it to the
// browser's history using window.history.replaceState(...),
// which won't cause the browser to attempt to load the new url.
// When the single page app is loaded further down in this file,
// the correct url will be waiting in the browser's history for
// the single page app to route accordingly.
(function (l) {
if (l.search) {
var q = {};
l.search.slice(1).split('&').forEach(function (v) {
var a = v.split('=');
q[a[0]] = a.slice(1).join('=').replace(/~and~/g, '&');
});
if (q.p !== undefined) {
window.history.replaceState(null, null,
l.pathname.slice(0, -1) + (q.p || '') +
(q.q ? ('?' + q.q) : '') +
l.hash
);
}
}
}(window.location))
</script>
<!-- End Single Page Apps for GitHub Pages -->

<link rel="shortcut icon" href="./src/favicon.ico">
<title>Download Dashboard | Adoptium</title>
</head>

<body>
<div id="root"></div>
<script src="src/index.js"></script>
</body>

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="shortcut icon" href="./src/favicon.ico">
<title>Download Dashboard | Adoptium</title>
<script type="module" src="src/index.js"></script>
</head>
<body style="margin: 0!important;">
<div id="root"></div>
</body>
</html>
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ publish = "dist"
command = "npm run build"

[build.environment]
NODE_VERSION = "12.18.3"
NODE_VERSION = "18"

[[headers]]
for = "/*"
Expand Down
Loading

0 comments on commit d7ea326

Please sign in to comment.