File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -7,15 +7,17 @@ Myfirebase is using Vuejs routes system, all routes are located in `/src/routes/
7
7
8
8
By default, Myfirebase has some default routes already defined in ` routes.js ` file.
9
9
10
- - Landing component : which is the parent of all other components .
10
+ - Layout.vue : which is the default layout of our application .
11
11
12
- - Welcome component : which is a default landing component.
12
+ - Welcome.vue : which is a default welcoming component.
13
13
14
- - Login component : which is responsible for authenticating users (register/login/logout) using firebase authentication.
14
+ - Login.vue : which is responsible for authenticating users (register/login/logout) using firebase authentication.
15
15
16
- - UpdateProfile: which is responsible for updating user profile (email/password) and user avatar using firebase cloud storage.
16
+ - UpdateProfile.vue : which is responsible for updating user profile (email/password) and user avatar using firebase cloud storage.
17
17
18
- - App component: which is a default app example to create/read data to the firebase database.
18
+ - App.vue: which is the default component to start playing with the firebase database.
19
+
20
+ - Firestore.vue: which is the default component to start playing with the cloud firestore.
19
21
20
22
``` javascript
21
23
@@ -24,6 +26,7 @@ import Welcome from '@/components/Welcome'
24
26
import Login from ' @/components/auth/Login'
25
27
import UpdateProfile from ' @/components/auth/UpdateProfile'
26
28
import App from ' @/components/App'
29
+ import Firestore from " @/components/Firestore"
27
30
28
31
import Vue from ' vue'
29
32
@@ -55,6 +58,14 @@ const routes = [{
55
58
meta: {
56
59
auth: true
57
60
}
61
+ },
62
+ {
63
+ path: ' /firestore' ,
64
+ component: Firestore.
65
+ name: ' firestore' ,
66
+ meta: {
67
+ auth: true
68
+ }
58
69
}
59
70
]
60
71
},
You can’t perform that action at this time.
0 commit comments