Initial Firebase refactor pass

This commit is contained in:
Andrew Bastin
2021-06-14 00:07:30 -04:00
parent ced2f1b911
commit 85c6932f8f
30 changed files with 979 additions and 1029 deletions

View File

@@ -7,21 +7,17 @@
</div>
</template>
<script>
import { fb } from "~/helpers/fb"
<script lang="ts">
import Vue from "vue"
import { signOutUser } from "~/helpers/fb/auth"
export default {
data() {
return {
fb,
}
},
export default Vue.extend({
methods: {
async logout() {
try {
await fb.signOutUser()
await signOutUser()
this.$toast.info(this.$t("logged_out"), {
this.$toast.info(this.$t("logged_out").toString(), {
icon: "vpn_key",
})
} catch (err) {
@@ -31,5 +27,5 @@ export default {
}
},
},
}
})
</script>