Kaynağa Gözat

fix(deploy): `noUnusedLocals`

Zander Hawke 5 gün önce
ebeveyn
işleme
2816da37e8
2 değiştirilmiş dosya ile 3 ekleme ve 6 silme
  1. 1 1
      package.json
  2. 2 5
      packages/editor/src/components/Editor.vue

+ 1 - 1
package.json

@@ -6,7 +6,7 @@
     "build": "pnpm run --filter @enesis/editor build",
     "test": "pnpm run --filter @enesis/editor test",
     "check": "biome check",
-    "mix": "repomix --compress --style xml --include \"**/*.ts,*.md\" --ignore \"**/*.test.ts,docs/,tmp/\" --token-count-tree --remove-empty-lines"
+    "mix": "repomix --compress --style xml --include \"**/*.ts,**/*.md,**/*.vue\" --ignore \"**/*.test.ts,docs/,tmp/\" --token-count-tree --remove-empty-lines"
   },
   "devDependencies": {
     "@biomejs/biome": "^2.4.15",

+ 2 - 5
packages/editor/src/components/Editor.vue

@@ -1,6 +1,6 @@
 <script setup lang="ts">
 import type { EditorView } from "prosemirror-view"
-import { computed, nextTick, ref, useSlots, watch } from "vue"
+import { computed, nextTick, ref, watch } from "vue"
 import Block from "@/components/Block.vue"
 import InsertionZone from "@/components/InsertionZone.vue"
 import {
@@ -56,7 +56,6 @@ const blocks = ref<EditorBlock[]>([])
 const registry = useFocusRegistry()
 
 const log = createLogger("Editor", props.debug)
-const slots = useSlots()
 
 const blockRefs: { setContent: (md: string) => void }[] = []
 const zoneRefs: HTMLElement[] = []
@@ -67,8 +66,6 @@ function focusZone(index: number) {
   zone.focus()
 }
 
-const editorShellRef = ref<HTMLElement | null>(null)
-
 // ── Undo / Redo history ──────────────────────────────────────────
 
 const history: OperationHistory = createOperationHistory(100)
@@ -477,7 +474,7 @@ defineExpose({ undo, redo, canUndo, canRedo })
 </script>
 
 <template>
-  <div ref="editorShellRef" class="editor-shell" :style="themeCSSVars" @keydown="onShellKeydown">
+  <div class="editor-shell" :style="themeCSSVars" @keydown="onShellKeydown">
     <div v-if="$slots.toolbar" class="editor-toolbar-wrapper">
       <slot
         name="toolbar"