Improve VSCode support

This commit is contained in:
venashial
2022-05-07 16:37:50 -07:00
parent 179dcdcd04
commit e553f1fdbd
7 changed files with 101 additions and 9 deletions

View File

@@ -1,12 +1,12 @@
<script lang="ts">
import { SvelteComponent } from 'svelte'
import { page } from "$app/stores";
export let items: {
label: string,
/** Page href, without slash prefix */
href: string,
icon: SvelteComponent
/** An icon, as a svelte component */
icon: any, // `SvelteComponentDev` has type errors
}[];
/** Path level in URL, zero-indexed */

View File

@@ -1,5 +1,4 @@
<script lang="ts">
import Instance from "$components/Instance.svelte";
import CardRow from "$components/CardRow.svelte";
</script>

View File

@@ -1,7 +1,3 @@
<script context="module" lang="ts">
</script>
<script lang="ts">
import { Checkbox, FormField, TextInput, Button } from "omorphia"
import GlobalSettings from "$components/GlobalSettings.svelte"
@@ -17,4 +13,31 @@
</div>
<style lang="postcss">
.section {
display: flex;
flex-direction: column;
padding: 1rem;
grid-gap: 1rem;
&__title {
display: flex;
grid-gap: 1rem;
align-items: center;
&::after {
flex: 1 1;
content: " ";
background-color: hsla(0, 0%, 100%, 0.2);
height: 0.2rem;
border-radius: var(--rounded-max);
}
}
&__items {
display: flex;
flex-direction: column;
grid-gap: 1rem;
padding: 0 8px;
}
}
</style>