lint: remove unused imports and rename unused parameters (6 fixes)
Co-Authored-By: Justin Edmund <justin@jedmund.com>
This commit is contained in:
parent
865308fdfe
commit
14e18fb1bb
6 changed files with 5 additions and 8 deletions
|
|
@ -2,7 +2,7 @@
|
|||
import { type Editor } from '@tiptap/core'
|
||||
import { onMount, setContext } from 'svelte'
|
||||
import { initiateEditor } from '$lib/components/edra/editor.ts'
|
||||
import { getEditorExtensions, EDITOR_PRESETS } from '$lib/components/edra/editor-extensions.js'
|
||||
import { getEditorExtensions } from '$lib/components/edra/editor-extensions.js'
|
||||
import LoaderCircle from 'lucide-svelte/icons/loader-circle'
|
||||
import LinkMenu from '$lib/components/edra/headless/menus/link-menu.svelte'
|
||||
import TableRowMenu from '$lib/components/edra/headless/menus/table/table-row-menu.svelte'
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
let linkEditPos = $state<number | null>(null)
|
||||
|
||||
// URL convert handlers
|
||||
export function handleShowUrlConvertDropdown(pos: number, url: string) {
|
||||
export function handleShowUrlConvertDropdown(pos: number, _url: string) {
|
||||
if (!editor) return
|
||||
const coords = editor.view.coordsAtPos(pos)
|
||||
urlConvertDropdownPosition = { x: coords.left, y: coords.bottom + 5 }
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@
|
|||
|
||||
let {
|
||||
editor,
|
||||
variant,
|
||||
currentTextStyle,
|
||||
filteredCommands,
|
||||
colorCommands,
|
||||
|
|
|
|||
|
|
@ -1,18 +1,16 @@
|
|||
<script lang="ts">
|
||||
import type { Editor } from '@tiptap/core'
|
||||
import type { DropdownPosition, ComposerFeatures } from './types'
|
||||
import { mediaSelectionStore } from '$lib/stores/media-selection'
|
||||
|
||||
interface Props {
|
||||
editor: Editor
|
||||
position: DropdownPosition
|
||||
features: ComposerFeatures
|
||||
albumId?: number
|
||||
onDismiss: () => void
|
||||
onOpenMediaLibrary: () => void
|
||||
}
|
||||
|
||||
let { editor, position, features, albumId, onDismiss, onOpenMediaLibrary }: Props = $props()
|
||||
let { editor, position, features, onDismiss, onOpenMediaLibrary }: Props = $props()
|
||||
|
||||
function insertMedia(type: string) {
|
||||
switch (type) {
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ export function getCurrentTextStyle(editor: Editor): string {
|
|||
// Get filtered commands based on variant and features
|
||||
export function getFilteredCommands(
|
||||
variant: ComposerVariant,
|
||||
features: ComposerFeatures
|
||||
_features: ComposerFeatures
|
||||
): FilteredCommands {
|
||||
const filtered = { ...commands }
|
||||
|
||||
|
|
|
|||
|
|
@ -387,7 +387,7 @@
|
|||
const nodeToUse = menuNode || currentNode
|
||||
if (!nodeToUse) return
|
||||
|
||||
const { node, pos } = nodeToUse
|
||||
const { pos } = nodeToUse
|
||||
|
||||
// Find the actual position of the node
|
||||
const resolvedPos = editor.state.doc.resolve(pos)
|
||||
|
|
|
|||
Loading…
Reference in a new issue