Skip to content

Commit 8f8789b

Browse files
committed
Finished with landing page
1 parent 20c2eac commit 8f8789b

File tree

12 files changed

+272
-173
lines changed

12 files changed

+272
-173
lines changed

web/.env.production

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ BASE_URL=https://api.httpsms.com
22

33
APP_URL=https://httpsms.com
44
APP_NAME="Http SMS"
5+
APP_GITHUB_URL=https://github.com/NdoleStudio/httpsms
6+
APP_DOCUMENTATION_URL=https://api.httpsms.com
Lines changed: 1 addition & 0 deletions
Loading

web/components/FirebaseAuth.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default class FirebaseAuth extends Vue {
4646
message: 'Login successfull!',
4747
type: 'success',
4848
} as NotificationRequest)
49-
this.$router.push({ name: 'index' })
49+
this.$router.push({ name: 'threads' })
5050
return false
5151
},
5252
uiShown: () => {

web/components/MessageThreadHeader.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,12 @@ import { Vue, Component } from 'vue-property-decorator'
8787
export default class MessageThreadHeader extends Vue {
8888
logout(): void {
8989
this.$fire.auth.signOut().then(() => {
90+
this.$store.dispatch('setUser', null)
9091
this.$store.dispatch('addNotification', {
9192
type: 'info',
9293
message: 'You have successfully logged out',
9394
})
94-
this.$router.push({ name: 'login' })
95+
this.$router.push({ name: 'index' })
9596
})
9697
}
9798
}

web/layouts/default.vue

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<v-app dark>
2+
<v-app>
33
<v-navigation-drawer
44
v-if="$vuetify.breakpoint.lgAndUp && hasDrawer"
55
:width="400"
@@ -12,13 +12,7 @@
1212
</template>
1313
</v-navigation-drawer>
1414
<v-main>
15-
<v-container
16-
fluid
17-
class="pa-0"
18-
:fill-height="$vuetify.breakpoint.lgAndUp"
19-
>
20-
<Nuxt />
21-
</v-container>
15+
<Nuxt />
2216
</v-main>
2317
</v-app>
2418
</template>

web/middleware/guest.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { Context, Middleware } from '@nuxt/types'
2+
3+
const authMiddleware: Middleware = (context: Context) => {
4+
if (context.store.getters.getUser !== null) {
5+
context.redirect('/threads')
6+
}
7+
}
8+
9+
export default authMiddleware

0 commit comments

Comments
 (0)