Skip to content

Commit 17bcc79

Browse files
committed
Fix: Dashboard link is not highlighted correctly
1 parent 35fb2c3 commit 17bcc79

File tree

2 files changed

+60
-2
lines changed

2 files changed

+60
-2
lines changed

composer.json.local

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"name": "ishanvyas22/cakephp-pingcrm",
3+
"description": "CakePHP PingCRM application",
4+
"homepage": "https://github.com/ishanvyas22/cakephp-pingcrm",
5+
"type": "project",
6+
"license": "MIT",
7+
"require": {
8+
"php": ">=5.6",
9+
"cakephp/authentication": "^1.0",
10+
"cakephp/cakephp": "3.9.*",
11+
"cakephp/migrations": "^2.0.0",
12+
"cakephp/plugin-installer": "^1.0",
13+
"ishanvyas22/cakephp-inertiajs": "dev-master",
14+
"mobiledetect/mobiledetectlib": "2.*"
15+
},
16+
"require-dev": {
17+
"cakephp/bake": "^1.9.0",
18+
"cakephp/cakephp-codesniffer": "^3.0",
19+
"cakephp/debug_kit": "^3.17.0",
20+
"josegonzalez/dotenv": "3.*",
21+
"phpunit/phpunit": "^5|^6",
22+
"psy/psysh": "@stable"
23+
},
24+
"autoload": {
25+
"psr-4": {
26+
"App\\": "src/"
27+
}
28+
},
29+
"autoload-dev": {
30+
"psr-4": {
31+
"App\\Test\\": "tests/",
32+
"Cake\\Test\\": "vendor/cakephp/cakephp/tests/"
33+
}
34+
},
35+
"scripts": {
36+
"post-install-cmd": "App\\Console\\Installer::postInstall",
37+
"post-create-project-cmd": "App\\Console\\Installer::postInstall",
38+
"check": [
39+
"@test",
40+
"@cs-check"
41+
],
42+
"cs-check": "phpcs --colors -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP src/ tests/ config/ webroot/",
43+
"cs-fix": "phpcbf --colors -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP src/ tests/ config/ webroot/",
44+
"stan": "phpstan analyse -l 5 src/",
45+
"stan-setup": "cp composer.json composer.backup && composer require --dev phpstan/phpstan-shim:^0.11 && mv composer.backup composer.json",
46+
"test": "phpunit --colors=always"
47+
},
48+
"prefer-stable": true,
49+
"config": {
50+
"sort-packages": true
51+
},
52+
"repositories": {
53+
"local": {
54+
"type": "path",
55+
"url": "../cakephp-inertiajs"
56+
}
57+
}
58+
}

resources/js/Shared/MainMenu.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<icon
66
name="dashboard"
77
class="w-4 h-4 mr-2"
8-
:class="isUrl('') ? 'fill-white' : 'fill-indigo-400 group-hover:fill-white'"
8+
:class="isUrl('dashboard') ? 'fill-white' : 'fill-indigo-400 group-hover:fill-white'"
99
/>
10-
<div :class="isUrl('') ? 'text-white' : 'text-indigo-300 group-hover:text-white'">Dashboard</div>
10+
<div :class="isUrl('dashboard') ? 'text-white' : 'text-indigo-300 group-hover:text-white'">Dashboard</div>
1111
</inertia-link>
1212
</div>
1313
<div class="mb-4">

0 commit comments

Comments
 (0)