Skip to content

Commit

Permalink
refactor: file & folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
sorax committed Mar 19, 2024
1 parent 331c0e1 commit 433f834
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Node } from "./types"
import { createItem, updateItem, deleteItem, focusItem } from "./item"
import { Node } from "../types"
import { createItem, updateItem, deleteItem, focusItem } from "../item"

export function handleList({ nodes }: { nodes: Node[] }) {
const container: HTMLOListElement = this.el
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Node } from "./types"
import { createItem, updateItem, deleteItem, getItemByNode, focusItem } from "./item"
import { getNodeByEvent, getNodeByItem } from "./node"
import { Node } from "../types"
import { createItem, updateItem, deleteItem, getItemByNode, focusItem } from "../item"
import { getNodeByEvent, getNodeByItem } from "../node"

export function focusin(event: FocusEvent) {
const { uuid } = getNodeByEvent(event)
Expand Down
4 changes: 2 additions & 2 deletions assets/js/hooks/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { focusin, focusout, input, keydown } from "./event_listener"
import { handleList, handleInsert, handleUpdate, handleDelete } from "./event_handler"
import { focusin, focusout, input, keydown } from "./events/listener"
import { handleList, handleInsert, handleUpdate, handleDelete } from "./events/handler"

export const Hooks = {
outline: {
Expand Down

0 comments on commit 433f834

Please sign in to comment.