fix: formatting

This commit is contained in:
EETagent 2023-01-26 21:17:42 +01:00
parent ece2d12555
commit 4d060a62fd

View file

@ -1,24 +1,23 @@
<script lang="ts"> <script lang="ts">
import LL from '$i18n/i18n-svelte'; import LL from '$i18n/i18n-svelte';
import type { School } from '$lib/stores/candidate'; import type { School } from '$lib/stores/candidate';
// TODO // TODO
// import AutoComplete from 'simple-svelte-autocomplete'; // import AutoComplete from 'simple-svelte-autocomplete';
import { onMount } from 'svelte'; import { onMount } from 'svelte';
// import schoollistString from '$lib/assets/schoollist.txt'; // import schoollistString from '$lib/assets/schoollist.txt';
let schools: string[] = []; let schools: string[] = [];
onMount(async () => { onMount(async () => {
schools = await fetch('/schoollist.txt') schools = await fetch('/schoollist.txt')
.then((response) => response.text()) .then((response) => response.text())
.then((text) => text.split(';')); .then((text) => text.split(';'));
}); });
export let selectedSchool: School;
export let schoolName: string = selectedSchool.name;
$: selectedSchool.name = schoolName;
export let selectedSchool: School;
export let schoolName: string = selectedSchool.name;
$: selectedSchool.name = schoolName;
</script> </script>
<div class="flex flex-row"> <div class="flex flex-row">