Skip to content

Commit 85cb2c5

Browse files
author
DepokSarkar
committed
initial
1 parent fb46983 commit 85cb2c5

File tree

5 files changed

+21
-34
lines changed

5 files changed

+21
-34
lines changed

app/Http/Controllers/AuthController.php

+2-6
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ public function login(Request $request)
2020
);
2121
if (Auth::attempt($request->only(['email', 'password']))) {
2222
$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);
2624
} else {
2725
return response()->json([
2826
'message' => 'Your username and password it worng. Please try again with correct login info.'
@@ -41,8 +39,6 @@ public function logout()
4139
public function me()
4240
{
4341
$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);
4743
}
4844
}

src/components/widget/links.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
:label="title"
88
header-class="text-white"
99
expand-icon-class="text-white"
10-
active-class="bg-primary"
10+
active-class="bg-cyan-7"
1111
@click="active = !active"
1212
:to="route"
1313
>
@@ -16,7 +16,7 @@
1616
tag="a"
1717
:to="{ name: item.route }"
1818
class="text-white"
19-
active-class="bg-heather text-black"
19+
active-class="bg-cyan-6 text-black"
2020
>
2121
<q-item-section avatar style="min-width: auto" class="q-pr-md">
2222
<q-icon :name="item.icon"></q-icon>
@@ -33,7 +33,7 @@
3333
tag="a"
3434
:to="{ name: route }"
3535
class="text-white"
36-
active-class="bg-primary"
36+
active-class="bg-cyan-7"
3737
>
3838
<q-item-section avatar style="min-width: auto" class="q-pr-md">
3939
<q-icon :name="icon"></q-icon>

src/css/app.sass

+5-5
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,18 @@ body
6969
clear: both
7070

7171
.bg-gm-pink
72-
color: $gm-pink-text
73-
background: $gm-pink
72+
color: white
73+
background: $negative
7474

7575
.text-gm-pink
76-
color: $gm-pink
76+
color: $negative
7777

7878
.bg-gm-blue
79-
background: $gmBlueLight
79+
background: $secondary
8080
color: white
8181

8282
.text-gm-blue
83-
color: $gmBlueLight
83+
color: $secondary
8484

8585
.logo-min
8686
display: none

src/css/quasar.variables.sass

+7-16
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,16 @@
2626
// to match your app's branding.
2727
// Tip: Use the "Theme Builder" on Quasar's documentation website.
2828
29-
$primary : #1976D2
30-
$secondary : #0e100b
31-
$accent : #9C27B0
29+
$primary : #42029c
30+
$secondary : #0f869d
31+
$accent : #b0274e
3232

33-
$dark : #0e100b
33+
$dark : #00183d
3434

35-
$positive : #21BA45
36-
$negative : #C10015
35+
$positive : #21b844
36+
$negative : #ea1d75
3737
$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
4839

4940
$button-border-radius: 0 !important
5041
$input-font-size: 12px

src/layouts/Dashboard.vue

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<q-layout view="LHr lpR lfr" class="bg-light-cloud">
2+
<q-layout view="LHr lpR lfr" class="bg-grey-3">
33
<q-header class="bg-white shadow-2 text-primary">
44
<q-toolbar style="height:70px">
55
<q-btn
@@ -78,9 +78,9 @@
7878
:mini="miniState"
7979
@mouseover="mouseOver"
8080
@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"
8282
>
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">
8484
<img class="logo-full self-center" width="150px" src="assets/logo-alt.png" />
8585
<img class="logo-min self-center" width="150px" src="assets/icon-alt.png" />
8686
</div>
@@ -101,7 +101,7 @@
101101
<q-toolbar style="height: 70px">
102102
<div class="text-body q-mr-md">Copyright © 2020 | <b>{{appName}}.</b></div>
103103
<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>
105105
</q-toolbar>
106106
</q-footer>
107107

0 commit comments

Comments
 (0)