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">
|
||||
import { spring } from 'svelte/motion'
|
||||
import { parse } from 'tinyduration'
|
||||
import type { SerializableGameInfo } from '$lib/types/steam'
|
||||
|
||||
interface GameProps {
|
||||
game?: SerializableGameInfo
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<script lang="ts">
|
||||
import { onMount, onDestroy } from 'svelte'
|
||||
import type { GeoLocation } from '@prisma/client'
|
||||
import type * as L from 'leaflet'
|
||||
|
||||
interface Props {
|
||||
location: GeoLocation
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
import type { Project } from '@prisma/client'
|
||||
<script lang="ts">
|
||||
import type { Snippet } from 'svelte'
|
||||
import Button from '$lib/components/admin/Button.svelte'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
import type { Album } from '@prisma/client'
|
||||
<script lang="ts">
|
||||
import { goto } from '$app/navigation'
|
||||
import AdminByline from './AdminByline.svelte'
|
||||
|
|
|
|||
|
|
@ -262,8 +262,6 @@ $effect(() => {
|
|||
const loadingToastId = toast.loading(`${mode === 'edit' ? 'Saving' : 'Creating'} essay...`)
|
||||
|
||||
try {
|
||||
isSaving = true
|
||||
|
||||
const payload = {
|
||||
title,
|
||||
slug,
|
||||
|
|
@ -306,8 +304,6 @@ $effect(() => {
|
|||
toast.dismiss(loadingToastId)
|
||||
toast.error(`Failed to ${mode === 'edit' ? 'save' : 'create'} essay`)
|
||||
console.error(err)
|
||||
} finally {
|
||||
isSaving = false
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -351,14 +347,6 @@ $effect(() => {
|
|||
{/if}
|
||||
|
||||
<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">
|
||||
<!-- Metadata Panel -->
|
||||
<div class="panel content-wrapper" class:active={activeTab === 'metadata'}>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
import type { Post } from '@prisma/client'
|
||||
<script lang="ts">
|
||||
import { goto } from '$app/navigation'
|
||||
import { onMount } from 'svelte'
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<script lang="ts">
|
||||
import { onMount, onDestroy } from 'svelte'
|
||||
import type { NodeViewProps } from '@tiptap/core'
|
||||
import type * as L from 'leaflet'
|
||||
|
||||
interface Props extends NodeViewProps {}
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
import { getContext } from 'svelte'
|
||||
import type { Readable } from 'svelte/store'
|
||||
import type { Editor } from '@tiptap/core'
|
||||
import type * as L from 'leaflet'
|
||||
import Button from '$lib/components/admin/Button.svelte'
|
||||
import Input from '$lib/components/admin/Input.svelte'
|
||||
import Textarea from '$lib/components/admin/Textarea.svelte'
|
||||
|
|
|
|||
Loading…
Reference in a new issue