all is change; in change is all again made new

This commit is contained in:
2022-11-27 22:03:15 -08:00
parent cee43342b9
commit c19b573b26
10 changed files with 241 additions and 46 deletions

View File

@ -1,12 +1,19 @@
<script>
import { createEventDispatcher } from 'svelte';
import { onMount, createEventDispatcher } from 'svelte';
export let appState;
const dispatch = createEventDispatcher();
let requests;
let r = await requests.get();
dispatch('navigate', {target: 'Approve.svelte'});
onMount(async () => {
// will block until a request comes in
let req = await appState.pendingRequests.get();
console.log(req);
appState.currentRequest = req;
console.log('Got credentials request from queue.');
console.log(appState);
dispatch('navigate', {target: 'Approve'});
});
</script>
<h1 class="text-4xl text-gray-300">Creddy</h1>