Browse Source

clean code

module/contact
Stephan Richter 4 weeks ago
parent
commit
306aa962cb
  1. 13
      frontend/src/routes/contact/Index.svelte

13
frontend/src/routes/contact/Index.svelte

@ -1,16 +1,13 @@ @@ -1,16 +1,13 @@
<script>
import Card from './Card.svelte';
import { onMount } from 'svelte';
import { api } from '../../urls.svelte';
import Card from './Card.svelte';
import { byName } from '../../vcard.js';
import { api } from '../../urls.svelte';
import { error, yikes } from '../../warn.svelte';
import { t } from '../../translations.svelte';
import { byName } from '../../vcard.js';
import { onMount } from 'svelte';
import { t } from '../../translations.svelte';
let contacts = $state(null)
async function load(){
const url = api('contact/list');
const res = await fetch(url,{credentials:'include'});

Loading…
Cancel
Save