File tree 5 files changed +21
-34
lines changed
5 files changed +21
-34
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,7 @@ public function login(Request $request)
20
20
);
21
21
if (Auth::attempt ($ request ->only (['email ' , 'password ' ]))) {
22
22
$ user = Auth::user ();
23
- $ user ->roles = $ user ->roles ;
24
- $ user ->permissions = $ user ->permissions ;
25
- return response ()->json ($ user , 200 );
23
+ return response ()->json ($ user ->load ('roles ' , 'permissions ' ), 200 );
26
24
} else {
27
25
return response ()->json ([
28
26
'message ' => 'Your username and password it worng. Please try again with correct login info. '
@@ -41,8 +39,6 @@ public function logout()
41
39
public function me ()
42
40
{
43
41
$ user = Auth::user ();
44
- $ user ->roles = $ user ->roles ;
45
- $ user ->permissions = $ user ->permissions ;
46
- return response ()->json ($ user , 200 );
42
+ return response ()->json ($ user ->load ('roles ' , 'permissions ' ), 200 );
47
43
}
48
44
}
Original file line number Diff line number Diff line change 7
7
:label =" title"
8
8
header-class =" text-white"
9
9
expand-icon-class =" text-white"
10
- active-class =" bg-primary "
10
+ active-class =" bg-cyan-7 "
11
11
@click =" active = !active"
12
12
:to =" route"
13
13
>
16
16
tag =" a"
17
17
:to =" { name: item.route }"
18
18
class =" text-white"
19
- active-class =" bg-heather text-black"
19
+ active-class =" bg-cyan-6 text-black"
20
20
>
21
21
<q-item-section avatar style =" min-width : auto " class =" q-pr-md" >
22
22
<q-icon :name =" item.icon" ></q-icon >
33
33
tag =" a"
34
34
:to =" { name: route }"
35
35
class =" text-white"
36
- active-class =" bg-primary "
36
+ active-class =" bg-cyan-7 "
37
37
>
38
38
<q-item-section avatar style =" min-width : auto " class =" q-pr-md" >
39
39
<q-icon :name =" icon" ></q-icon >
Original file line number Diff line number Diff line change 69
69
clear : both
70
70
71
71
.bg-gm-pink
72
- color : $ gm-pink-text
73
- background : $gm-pink
72
+ color : white
73
+ background : $negative
74
74
75
75
.text-gm-pink
76
- color : $gm-pink
76
+ color : $negative
77
77
78
78
.bg-gm-blue
79
- background : $gmBlueLight
79
+ background : $secondary
80
80
color : white
81
81
82
82
.text-gm-blue
83
- color : $gmBlueLight
83
+ color : $secondary
84
84
85
85
.logo-min
86
86
display : none
Original file line number Diff line number Diff line change 26
26
// to match your app's branding.
27
27
// Tip: Use the "Theme Builder" on Quasar's documentation website.
28
28
29
- $primary : #1976D2
30
- $secondary : #0e100b
31
- $accent : #9C27B0
29
+ $primary : #42029c
30
+ $secondary : #0f869d
31
+ $accent : #b0274e
32
32
33
- $dark : #0e100b
33
+ $dark : #00183d
34
34
35
- $positive : #21BA45
36
- $negative : #C10015
35
+ $positive : #21b844
36
+ $negative : #ea1d75
37
37
$info : #31CCEC
38
- $warning : #F2C037
39
-
40
- $gm-pink : #ea1d75
41
- $gm-pink-text : #ffffff
42
-
43
- $gmBlueLight : #0f869d
44
- $gmBlueDark : #085a6a
45
-
46
- $companyPrimary : #f8b03c
47
- $companySecondary : #0e100b
38
+ $warning : #f8b03c
48
39
49
40
$button-border-radius : 0 !important
50
41
$input-font-size : 12px
Original file line number Diff line number Diff line change 1
1
<template >
2
- <q-layout view =" LHr lpR lfr" class =" bg-light-cloud " >
2
+ <q-layout view =" LHr lpR lfr" class =" bg-grey-3 " >
3
3
<q-header class =" bg-white shadow-2 text-primary" >
4
4
<q-toolbar style =" height :70px " >
5
5
<q-btn
78
78
:mini =" miniState"
79
79
@mouseover =" mouseOver"
80
80
@mouseout =" mouseOver"
81
- show-if-above bordered :width =" 250" side =" left" content-class =" bg-dark text-white"
81
+ show-if-above bordered :width =" 250" side =" left" content-class =" bg-secondary text-white"
82
82
>
83
- <div @click =" $router.push({ name: 'Dashboard' })" class =" cursor-pointer full-width row wrap justify-center logo q-pa-sm" style =" min-height : 70px " >
83
+ <div @click =" $router.push({ name: 'Dashboard' })" class =" bg-dark cursor-pointer full-width row wrap justify-center logo q-pa-sm" style =" min-height : 70px " >
84
84
<img class =" logo-full self-center" width =" 150px" src =" assets/logo-alt.png" />
85
85
<img class =" logo-min self-center" width =" 150px" src =" assets/icon-alt.png" />
86
86
</div >
101
101
<q-toolbar style =" height : 70px " >
102
102
<div class =" text-body q-mr-md" >Copyright © 2020 | <b >{{appName}}.</b ></div >
103
103
<q-space class =" gt-xs" ></q-space >
104
- <div class =" text-body" >Powered by <a href =" /app " >CodersTM</a ></div >
104
+ <div class =" text-body" >Powered by <a href =" /" >CodersTM</a ></div >
105
105
</q-toolbar >
106
106
</q-footer >
107
107
You can’t perform that action at this time.
0 commit comments