Skip to content

Commit e818f55

Browse files
author
Gareth Redfern
committed
Merge branch 'main' into feature/file-upload
2 parents 757c853 + a564303 commit e818f55

File tree

8 files changed

+43
-12
lines changed

8 files changed

+43
-12
lines changed

netlify.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[build]
2+
publish = "dist"
3+
command = "npm run build"
4+
[[redirects]]
5+
from = "/*"
6+
to = "/index.html"
7+
status = 200

src/assets/css/tailwind.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,10 @@
66
body {
77
@apply bg-gray-50;
88
}
9+
.base-link {
10+
@apply text-blue-400;
11+
@apply hover:text-blue-500;
12+
@apply hover:underline;
13+
@apply transition;
14+
}
915
}

src/components/LoginForm.vue

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@
1818
/>
1919
<div class="flex justify-between">
2020
<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>
2624
</div>
2725
<FlashMessage :error="error" />
2826
</form>

src/services/API.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ apiClient.interceptors.response.use(
2424
if (error.response.status === 401 || error.response.status === 419) {
2525
store.dispatch("auth/logout");
2626
}
27-
return Promise.reject(error.response);
27+
return Promise.reject(error);
2828
}
2929
);

src/services/AuthService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ authClient.interceptors.response.use(
1717
if (error.response.status === 401 || error.response.status === 419) {
1818
store.dispatch("auth/logout");
1919
}
20-
return Promise.reject(error.response);
20+
return Promise.reject(error);
2121
}
2222
);
2323

src/utils/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export const getError = (error) => {
2-
console.debug({ error });
2+
console.debug({ error }); // remove in production
33
return error.data && error.data.errors ? error.data.errors : error;
44
};

src/views/Dashboard.vue

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
<template>
22
<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>
416
</div>
517
</template>
618

src/views/Home.vue

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
<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">
44
<p>Welcome to the Laravel Vue Demo app.</p>
55
<p>
66
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+
>
816
</p>
917
</article>
1018
</div>

0 commit comments

Comments
 (0)