File tree 4 files changed +23
-1
lines changed
4 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -49,13 +49,23 @@ export default {
49
49
*/
50
50
modules : [
51
51
// Doc: https://axios.nuxtjs.org/usage
52
- '@nuxtjs/axios'
52
+ '@nuxtjs/axios' ,
53
+
54
+ '@nuxtjs/toast'
53
55
] ,
54
56
/*
55
57
** Axios module configuration
56
58
** See https://axios.nuxtjs.org/options
57
59
*/
58
60
axios : { } ,
61
+
62
+ toast : {
63
+ position : 'bottom-center' ,
64
+ duration : 5000 ,
65
+ theme : 'bubble' ,
66
+ register : [ ]
67
+ } ,
68
+
59
69
/*
60
70
** Build configuration
61
71
*/
Original file line number Diff line number Diff line change 13
13
},
14
14
"dependencies" : {
15
15
"@nuxtjs/axios" : " ^5.3.6" ,
16
+ "@nuxtjs/toast" : " ^3.3.0" ,
16
17
"netlify-identity-widget" : " ^1.5.6" ,
17
18
"nuxt" : " ^2.0.0"
18
19
},
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ export default {
20
20
if (process .browser ) {
21
21
if (! this .user ) {
22
22
this .$router .push (' /' )
23
+ this .$toast .show (` You'll need to login` )
23
24
}
24
25
}
25
26
}
Original file line number Diff line number Diff line change 1002
1002
nuxt-purgecss "^0.2.1"
1003
1003
tailwindcss "^1.2.0"
1004
1004
1005
+ " @nuxtjs/toast@^3.3.0 " :
1006
+ version "3.3.0"
1007
+ resolved "https://registry.yarnpkg.com/@nuxtjs/toast/-/toast-3.3.0.tgz#fe762dc8a19d81b2a9b5b9e6daac61e5d31821b7"
1008
+ dependencies :
1009
+ vue-toasted "^1.1.27"
1010
+
1005
1011
" @nuxtjs/youch@^4.2.3 " :
1006
1012
version "4.2.3"
1007
1013
resolved "https://registry.yarnpkg.com/@nuxtjs/youch/-/youch-4.2.3.tgz#36f8b22df5a0efaa81373109851e1d857aca6bed"
@@ -7134,6 +7140,10 @@ vue-template-es2015-compiler@^1.9.0:
7134
7140
version "1.9.1"
7135
7141
resolved "https://registry.yarnpkg.com/vue-template-es2015-compiler/-/vue-template-es2015-compiler-1.9.1.tgz#1ee3bc9a16ecbf5118be334bb15f9c46f82f5825"
7136
7142
7143
+ vue-toasted@^1.1.27 :
7144
+ version "1.1.28"
7145
+ resolved "https://registry.yarnpkg.com/vue-toasted/-/vue-toasted-1.1.28.tgz#dbabb83acc89f7a9e8765815e491d79f0dc65c26"
7146
+
7137
7147
vue@^2.6.11 :
7138
7148
version "2.6.11"
7139
7149
resolved "https://registry.yarnpkg.com/vue/-/vue-2.6.11.tgz#76594d877d4b12234406e84e35275c6d514125c5"
You can’t perform that action at this time.
0 commit comments