settings page

This commit is contained in:
2023-04-25 22:10:14 -07:00
parent 6f9cd6b471
commit 35271049dd
16 changed files with 210 additions and 90 deletions

View File

@ -3,16 +3,20 @@ import { emit, listen } from '@tauri-apps/api/event';
import { invoke } from '@tauri-apps/api/tauri';
import { appState } from './lib/state.js';
import { currentView } from './lib/routing.js';
import { navigate, currentView } from './lib/routing.js';
invoke('get_config').then(config => $appState.config = config);
listen('credentials-request', (tauriEvent) => {
$appState.pendingRequests.put(tauriEvent.payload);
});
// can't set this in routing.js directly for some reason
if (!$currentView) {
navigate('Home');
}
</script>
<svelte:component
this="{$currentView}"
/>
<!-- <svelte:component this="{VIEWS['./views/ShowApproved.svelte'].default}" bind:appState="{appState}" /> -->
<svelte:component this="{$currentView}" />