File tree Expand file tree Collapse file tree 8 files changed +43
-12
lines changed Expand file tree Collapse file tree 8 files changed +43
-12
lines changed Original file line number Diff line number Diff line change
1
+ [build ]
2
+ publish = " dist"
3
+ command = " npm run build"
4
+ [[redirects ]]
5
+ from = " /*"
6
+ to = " /index.html"
7
+ status = 200
Original file line number Diff line number Diff line change 6
6
body {
7
7
@apply bg-gray-50;
8
8
}
9
+ .base-link {
10
+ @apply text-blue-400;
11
+ @apply hover:text-blue-500;
12
+ @apply hover:underline;
13
+ @apply transition;
14
+ }
9
15
}
Original file line number Diff line number Diff line change 18
18
/>
19
19
<div class =" flex justify-between" >
20
20
<BaseBtn type =" submit" text =" Login" />
21
- <router-link
22
- to =" /forgot-password"
23
- class =" text-sm text-blue-500 transition hover:text-blue-600"
24
- >Forgot your password?</router-link
25
- >
21
+ <router-link to =" /forgot-password" class =" text-sm base-link" >
22
+ Forgot your password?
23
+ </router-link >
26
24
</div >
27
25
<FlashMessage :error =" error" />
28
26
</form >
Original file line number Diff line number Diff line change @@ -24,6 +24,6 @@ apiClient.interceptors.response.use(
24
24
if ( error . response . status === 401 || error . response . status === 419 ) {
25
25
store . dispatch ( "auth/logout" ) ;
26
26
}
27
- return Promise . reject ( error . response ) ;
27
+ return Promise . reject ( error ) ;
28
28
}
29
29
) ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ authClient.interceptors.response.use(
17
17
if ( error . response . status === 401 || error . response . status === 419 ) {
18
18
store . dispatch ( "auth/logout" ) ;
19
19
}
20
- return Promise . reject ( error . response ) ;
20
+ return Promise . reject ( error ) ;
21
21
}
22
22
) ;
23
23
Original file line number Diff line number Diff line change 1
1
export const getError = ( error ) => {
2
- console . debug ( { error } ) ;
2
+ console . debug ( { error } ) ; // remove in production
3
3
return error . data && error . data . errors ? error . data . errors : error ;
4
4
} ;
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" py-5" >
3
- <p >Welcome to your Dashboard</p >
3
+ <p class =" mb-4 text-gray-400" >
4
+ Full documentation for how this application is built can be found at
5
+ <a href =" https://laravelvuespa.com/" class =" base-link"
6
+ >laravelvuespa.com</a
7
+ >.
8
+ </p >
9
+ <div class =" grid gap-10 md:grid-cols-3" >
10
+ <ul class =" p-5 bg-white border rounded shadow" >
11
+ <li >
12
+ <router-link to =" /user" class =" base-link" > View Profile </router-link >
13
+ </li >
14
+ </ul >
15
+ </div >
4
16
</div >
5
17
</template >
6
18
Original file line number Diff line number Diff line change 1
1
<template >
2
- <div class =" max-w-sm p-5 m-auto" >
3
- <article class =" text-lg text-center" >
2
+ <div class =" max-w-lg p-5 m-auto" >
3
+ <article class =" p-5 text-lg text-center bg-white border rouned " >
4
4
<p >Welcome to the Laravel Vue Demo app.</p >
5
5
<p >
6
6
You can register for an account
7
- <router-link to =" /register" class =" text-blue-500" >here</router-link >.
7
+ <router-link to =" /register" class =" base-link" >here</router-link >.
8
+ </p >
9
+ </article >
10
+ <article class =" p-5 mt-5 text-lg text-center bg-white border rounded" >
11
+ <p >
12
+ Docs on how this application is built can be found at:
13
+ <a href =" https://laravelvuespa.com/" class =" base-link"
14
+ >laravelvuespa.com</a
15
+ >
8
16
</p >
9
17
</article >
10
18
</div >
You can’t perform that action at this time.
0 commit comments