updated protocols

This commit is contained in:
Andrew Gundersen 2021-07-11 11:54:39 -05:00
commit 531a32a5a5
37 changed files with 682 additions and 650 deletions

View file

@ -1,27 +1,19 @@
// shared
import { ref } from "vue";
export const profile = ref();
class Profile implements Profile{
crimata_id = "";
name = "";
photo = "";
}
export const authComplete = ref(false);
export const profile = ref(new Profile());
export const setProfile: IpcListenerCallback<Profile | null> = (payload) => {
payload ? profile.value = payload : clearProfile();
showRender();
};
export const clearProfile = () => {
profile.value = null;
};
export const showRender = () => {
authComplete.value = true;
export const setProfile: IpcListenerCallback<Profile> = (payload) => {
profile.value = payload;
};
export default {
setProfile,
clearProfile,
profile,
showRender,
authComplete,
};
setProfile
};