edit breadcrumbs with route name

pull/1/head
saeid_01 5 years ago
parent dceb5b8192
commit c11a7bc2a4

@ -13,7 +13,7 @@
"laravel/framework": "5.8.*",
"laravel/tinker": "^1.0",
"mll-lab/laravel-graphql-playground": "^1.1",
"nuwave/lighthouse": "^3.7",
"nuwave/lighthouse": "dev-master",
"nwidart/laravel-modules": "^4.0",
"wm/common": "dev-master",
"wm/crm": "dev-master"

18
composer.lock generated

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "6a7ba539431e1b51bce6f14fc24b9510",
"content-hash": "7be4bbf498f057b03ee42474822b258b",
"packages": [
{
"name": "dnoegel/php-xdg-base-dir",
@ -1061,16 +1061,16 @@
},
{
"name": "nuwave/lighthouse",
"version": "v3.7.0",
"version": "dev-master",
"source": {
"type": "git",
"url": "https://github.com/nuwave/lighthouse.git",
"reference": "cb0627424cd7028ddd1c3bf09be22fb6e84b1af4"
"reference": "d1263bfa64457df82e05f309e3920313ec8ac6e1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nuwave/lighthouse/zipball/cb0627424cd7028ddd1c3bf09be22fb6e84b1af4",
"reference": "cb0627424cd7028ddd1c3bf09be22fb6e84b1af4",
"url": "https://api.github.com/repos/nuwave/lighthouse/zipball/d1263bfa64457df82e05f309e3920313ec8ac6e1",
"reference": "d1263bfa64457df82e05f309e3920313ec8ac6e1",
"shasum": ""
},
"require": {
@ -1081,9 +1081,8 @@
"illuminate/routing": "5.5.*|5.6.*|5.7.*|5.8.*",
"illuminate/support": "5.5.*|5.6.*|5.7.*|5.8.*",
"illuminate/validation": "5.5.*|5.6.*|5.7.*|5.8.*",
"opis/closure": "^3.0",
"php": ">= 7.1",
"webonyx/graphql-php": "^0.13"
"webonyx/graphql-php": "^0.13.2"
},
"require-dev": {
"bensampo/laravel-enum": "^1.19",
@ -1091,7 +1090,7 @@
"laravel/scout": "^4.0",
"mll-lab/graphql-php-scalars": "^2.1",
"mockery/mockery": "^1.0",
"orchestra/database": "3.5.*|3.6.*|3.7.*|3.8.x-dev",
"orchestra/database": "3.5.*|3.6.*|3.7.*|3.8.*",
"orchestra/testbench": "3.5.*|3.6.*|3.7.*|3.8.*",
"phpbench/phpbench": "@dev",
"pusher/pusher-php-server": "^3.2"
@ -1142,7 +1141,7 @@
"laravel",
"laravel-graphql"
],
"time": "2019-05-27T07:10:46+00:00"
"time": "2019-07-16T17:36:18+00:00"
},
{
"name": "nwidart/laravel-modules",
@ -5087,6 +5086,7 @@
"aliases": [],
"minimum-stability": "dev",
"stability-flags": {
"nuwave/lighthouse": 20,
"wm/common": 20,
"wm/crm": 20
},

@ -1,6 +1,6 @@
{
"/js/vue/Authentication/app.js": "/js/vue/Authentication/app.js?id=8ba03455bf554a3c355d",
"/js/vue/Authentication/app.js": "/js/vue/Authentication/app.js?id=126dc6f3c173336b3c08",
"/js/vue/Home/app.js": "/js/vue/Home/app.js?id=bf18112bfd001430c068",
"/js/vue/Modules/CRM/app.js": "/js/vue/Modules/CRM/app.js?id=6453bd026923226929e3",
"/js/vue/User/app.js": "/js/vue/User/app.js?id=c4c5a6066b7f9a9d5730"
"/js/vue/Modules/CRM/app.js": "/js/vue/Modules/CRM/app.js?id=227ecbbee8def0bf74e2",
"/js/vue/User/app.js": "/js/vue/User/app.js?id=5ec6720cc9a709374d5e"
}

@ -4,7 +4,7 @@
<v-icon>fas fa-chevron-left</v-icon>
</template>
<template v-slot:item="props">
<router-link :to="props.item.href" class="WM-Link WM-Margin-T-5" :class="[LinkClass, props.item.disabled && 'disabled']"><v-icon>fas fa-{{ props.item.icon }}</v-icon> {{ props.item.text.toUpperCase() }}</router-link>
<router-link :to="{name: props.item.routeName}" class="WM-Link WM-Margin-T-5" :class="[LinkClass, props.item.disabled && 'disabled']"><v-icon>fas fa-{{ props.item.icon }}</v-icon> {{ props.item.text.toUpperCase() }}</router-link>
</template>
</v-breadcrumbs>
</template>

@ -2,11 +2,11 @@ export default [
{
path: '/User/List',
name: 'UserList',
view: 'List'
view: 'UserList'
},
{
path: '/User/Add',
name: 'AddUser',
view: 'Add'
view: 'AddUser'
},
];

@ -4,7 +4,7 @@
<wm-breadcrumbs LinkClass="WM-Link-Cyan" :items="breadcrumbItems"></wm-breadcrumbs>
</div>
<div class="Tile Shadowed">
<WM-PartTitle class="WM-Margin-T-20" TitleFa=" افزودن کاربر جدید " TitleEn=" Add a new User " color="cyan"></WM-PartTitle>
<WM-PartTitle class="WM-Margin-T-20" TitleFa=" افزودن کاربر جدید " TitleEn=" Add a new User " Color="cyan"></WM-PartTitle>
<v-layout row wrap class="WM-Section" style="border-right-color: #32c5d2;">
<v-flex class="lg12 RTL text-lg-right">
<div class="Step En" style="color:#32c5d2;"> 01 </div>
@ -194,12 +194,12 @@ export default {
{
text: ' کاربران من ',
disabled: false,
href: '/User/List'
routeName: 'UserList'
},
{
text: ' افزودن کاربر جدید ',
disabled: true,
href: '/User/Add'
routeName: 'AddUser'
}
]

@ -8,7 +8,7 @@
<WM-PartTitle class="WM-Margin-T-20" TitleFa=" کاربران مجموعه ی من " TitleEn=" My Users " color="cyan"></WM-PartTitle>
<wm-user-filter></wm-user-filter>
<wm-user-items></wm-user-items>
<router-link to="/User/Add">
<router-link :to="{name: 'AddUser'}">
<v-btn large fab color="cyan" fixed bottom left dark style="left:5%"><v-icon dark>fas fa-plus</v-icon></v-btn>
</router-link>
@ -72,7 +72,7 @@ export default {
{
text: ' کاربران من ',
disabled: true,
href: '/User/List'
routeName: 'UserList'
},
]
}

Loading…
Cancel
Save