Skip to content

Commit

Permalink
Preps for next release and fixes a bug with the active link logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
dniccum committed Feb 21, 2023
1 parent 2d8ea11 commit 26fa4cc
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion dist/css/tool.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/github.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/githubDark.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/gradient.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/js/tool.js

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions dist/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"/js/tool.js": "/js/tool.js",
"/atomDark.js": "/atomDark.js?id=691d942a29545fff8a97",
"/atom.js": "/atom.js?id=478b410e73c131bb6882",
"/monokai.js": "/monokai.js?id=de008b5d91ac38a7a957",
"/gradientDark.js": "/gradientDark.js?id=68668026d76345a4018f",
"/gradient.js": "/gradient.js?id=84c1abec9a0f03437b7b",
"/githubDark.js": "/githubDark.js?id=49e50a33a7fd19ada5be",
"/github.js": "/github.js?id=1fc0f2645c38c947e3df",
"/atomDark.js": "/atomDark.js?id=8e8e9a36d05f057438a5",
"/atom.js": "/atom.js?id=c31a1ac1955d918e9e95",
"/monokai.js": "/monokai.js?id=d7bb0d9d0aa3421604fa",
"/gradientDark.js": "/gradientDark.js?id=f87d1ae84d66987c4ebd",
"/gradient.js": "/gradient.js?id=e9c462f8f4175b882c55",
"/githubDark.js": "/githubDark.js?id=099190303503e8a8787a",
"/github.js": "/github.js?id=b3821e587eab01a8ac70",
"/css/tool.css": "/css/tool.css"
}
7 changes: 4 additions & 3 deletions resources/js/components/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
methods: {
textClass(item) {
if (this.$page.url.endsWith(item.route) || item.isHome && this.$page.url.endsWith('documentation')) {
if ((item.route.length > 0 && this.$page.url.endsWith(item.route)) || item.isHome && this.$page.url.endsWith('documentation')) {
return 'doc-text-primary-500 hover:doc-text-primary-700';
} else {
return 'doc-text-gray-300 dark:doc-text-gray-100 hover:doc-text-primary-200';
Expand All @@ -35,10 +35,11 @@
const { route, isHome } = item;
const basePath = Nova.config('base');
const urlPrfix = Nova.config('urlPrefix');
const root = `${basePath}/${urlPrfix}`;
if (isHome) {
return `${basePath}/${urlPrfix}`;
return root;
}
return `${basePath}/${urlPrfix}/${route}`;
return `${root}${route}`;
}
}
}
Expand Down

0 comments on commit 26fa4cc

Please sign in to comment.