lint: fix undefined variables by adding missing type imports (22 fixes)
Co-Authored-By: Justin Edmund <justin@jedmund.com>
This commit is contained in:
parent
f3bd552eca
commit
8cbbd6d89c
8 changed files with 4 additions and 15 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { spring } from 'svelte/motion'
|
import { spring } from 'svelte/motion'
|
||||||
import { parse } from 'tinyduration'
|
import { parse } from 'tinyduration'
|
||||||
|
import type { SerializableGameInfo } from '$lib/types/steam'
|
||||||
|
|
||||||
interface GameProps {
|
interface GameProps {
|
||||||
game?: SerializableGameInfo
|
game?: SerializableGameInfo
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { onMount, onDestroy } from 'svelte'
|
import { onMount, onDestroy } from 'svelte'
|
||||||
import type { GeoLocation } from '@prisma/client'
|
import type { GeoLocation } from '@prisma/client'
|
||||||
|
import type * as L from 'leaflet'
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
location: GeoLocation
|
location: GeoLocation
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
import type { Project } from '@prisma/client'
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import type { Snippet } from 'svelte'
|
import type { Snippet } from 'svelte'
|
||||||
import Button from '$lib/components/admin/Button.svelte'
|
import Button from '$lib/components/admin/Button.svelte'
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
import type { Album } from '@prisma/client'
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { goto } from '$app/navigation'
|
import { goto } from '$app/navigation'
|
||||||
import AdminByline from './AdminByline.svelte'
|
import AdminByline from './AdminByline.svelte'
|
||||||
|
|
|
||||||
|
|
@ -262,8 +262,6 @@ $effect(() => {
|
||||||
const loadingToastId = toast.loading(`${mode === 'edit' ? 'Saving' : 'Creating'} essay...`)
|
const loadingToastId = toast.loading(`${mode === 'edit' ? 'Saving' : 'Creating'} essay...`)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
isSaving = true
|
|
||||||
|
|
||||||
const payload = {
|
const payload = {
|
||||||
title,
|
title,
|
||||||
slug,
|
slug,
|
||||||
|
|
@ -306,8 +304,6 @@ $effect(() => {
|
||||||
toast.dismiss(loadingToastId)
|
toast.dismiss(loadingToastId)
|
||||||
toast.error(`Failed to ${mode === 'edit' ? 'save' : 'create'} essay`)
|
toast.error(`Failed to ${mode === 'edit' ? 'save' : 'create'} essay`)
|
||||||
console.error(err)
|
console.error(err)
|
||||||
} finally {
|
|
||||||
isSaving = false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -351,14 +347,6 @@ $effect(() => {
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<div class="admin-container">
|
<div class="admin-container">
|
||||||
{#if error}
|
|
||||||
<div class="error-message">{error}</div>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
{#if successMessage}
|
|
||||||
<div class="success-message">{successMessage}</div>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
<div class="tab-panels">
|
<div class="tab-panels">
|
||||||
<!-- Metadata Panel -->
|
<!-- Metadata Panel -->
|
||||||
<div class="panel content-wrapper" class:active={activeTab === 'metadata'}>
|
<div class="panel content-wrapper" class:active={activeTab === 'metadata'}>
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
import type { Post } from '@prisma/client'
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { goto } from '$app/navigation'
|
import { goto } from '$app/navigation'
|
||||||
import { onMount } from 'svelte'
|
import { onMount } from 'svelte'
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { onMount, onDestroy } from 'svelte'
|
import { onMount, onDestroy } from 'svelte'
|
||||||
import type { NodeViewProps } from '@tiptap/core'
|
import type { NodeViewProps } from '@tiptap/core'
|
||||||
|
import type * as L from 'leaflet'
|
||||||
|
|
||||||
interface Props extends NodeViewProps {}
|
interface Props extends NodeViewProps {}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
import { getContext } from 'svelte'
|
import { getContext } from 'svelte'
|
||||||
import type { Readable } from 'svelte/store'
|
import type { Readable } from 'svelte/store'
|
||||||
import type { Editor } from '@tiptap/core'
|
import type { Editor } from '@tiptap/core'
|
||||||
|
import type * as L from 'leaflet'
|
||||||
import Button from '$lib/components/admin/Button.svelte'
|
import Button from '$lib/components/admin/Button.svelte'
|
||||||
import Input from '$lib/components/admin/Input.svelte'
|
import Input from '$lib/components/admin/Input.svelte'
|
||||||
import Textarea from '$lib/components/admin/Textarea.svelte'
|
import Textarea from '$lib/components/admin/Textarea.svelte'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue