test: add function for test User #0 to register a new user

This commit is contained in:
2023-01-07 23:15:39 -07:00
parent 3440f28121
commit 4e1263d041
3 changed files with 98 additions and 0 deletions

View File

@@ -178,6 +178,7 @@ import { createIdentifier, deriveAddress, newIdentifier } from "../libs/crypto";
import { db } from "../db";
import { useAppStore } from "@/store/app";
import { ref } from "vue";
//import { testServerRegisterUser } from "../test";
@Options({
components: {},
@@ -191,6 +192,9 @@ export default class AccountViewView extends Vue {
source = ref("Hello");
copy = useClipboard().copy;
// This registers current user in vue plugin with: $vm.ctx.testRegisterUser()
//testRegisterUser = testServerRegisterUser;
// 'created' hook runs when the Vue instance is first created
async created() {
const appCondition = useAppStore().condition;