Offline mode (#403)

* offline mode

* fixes, mixpanels, etc

* changes

* prettier

* rev

* actions
This commit is contained in:
Wyatt Verchere
2023-08-04 19:51:46 -07:00
committed by GitHub
parent b772f916b1
commit 6a76811bed
36 changed files with 427 additions and 123 deletions

View File

@@ -78,7 +78,7 @@ import {
import { get, set } from '@/helpers/settings'
import { WebviewWindow } from '@tauri-apps/api/window'
import { handleError } from '@/store/state.js'
import mixpanel from 'mixpanel-browser'
import { mixpanel_track } from '@/helpers/mixpanel'
defineProps({
mode: {
@@ -127,7 +127,7 @@ async function login() {
await setAccount(loggedIn)
await refreshValues()
await window.close()
mixpanel.track('AccountLogIn')
mixpanel_track('AccountLogIn')
}
const logout = async (id) => {
@@ -139,7 +139,7 @@ const logout = async (id) => {
} else {
emit('change')
}
mixpanel.track('AccountLogOut')
mixpanel_track('AccountLogOut')
}
let showCard = ref(false)