clean code
This commit is contained in:
@@ -1,16 +1,13 @@
|
|||||||
<script>
|
<script>
|
||||||
import Card from './Card.svelte';
|
import Card from './Card.svelte';
|
||||||
|
import { byName } from '../../vcard.js';
|
||||||
import { onMount } from 'svelte';
|
import { api } from '../../urls.svelte';
|
||||||
import { api } from '../../urls.svelte';
|
|
||||||
import { error, yikes } from '../../warn.svelte';
|
import { error, yikes } from '../../warn.svelte';
|
||||||
import { t } from '../../translations.svelte';
|
import { onMount } from 'svelte';
|
||||||
|
import { t } from '../../translations.svelte';
|
||||||
import { byName } from '../../vcard.js';
|
|
||||||
|
|
||||||
let contacts = $state(null)
|
let contacts = $state(null)
|
||||||
|
|
||||||
|
|
||||||
async function load(){
|
async function load(){
|
||||||
const url = api('contact/list');
|
const url = api('contact/list');
|
||||||
const res = await fetch(url,{credentials:'include'});
|
const res = await fetch(url,{credentials:'include'});
|
||||||
|
|||||||
Reference in New Issue
Block a user