mirror of
https://github.com/vale981/tridactyl
synced 2025-03-06 10:01:39 -05:00
move src/dom.ts to src/lib/
This commit is contained in:
parent
aa16c227f5
commit
8670ed1136
7 changed files with 9 additions and 9 deletions
|
@ -9,7 +9,7 @@ import * as excmds from "./.excmds_background.generated"
|
|||
import * as commandline_background from "@src/background/commandline_background"
|
||||
import * as convert from "@src/lib/convert"
|
||||
import * as config from "@src/lib/config"
|
||||
import * as dom from "./dom"
|
||||
import * as dom from "@src/lib/dom"
|
||||
import * as download_background from "@src/background/download_background"
|
||||
import * as itertools from "@src/lib/itertools"
|
||||
import * as keyseq from "./keyseq"
|
||||
|
|
|
@ -16,7 +16,7 @@ import { contentState, addContentStateChangedListener } from "@src/content/state
|
|||
|
||||
// Hook the keyboard up to the controller
|
||||
import * as ContentController from "@src/content/controller_content"
|
||||
import { getAllDocumentFrames } from "./dom"
|
||||
import { getAllDocumentFrames } from "@src/lib/dom"
|
||||
window.addEventListener("keydown", ContentController.acceptKey, true)
|
||||
document.addEventListener("readystatechange", ev =>
|
||||
getAllDocumentFrames().map(frame => {
|
||||
|
@ -37,7 +37,7 @@ document.addEventListener("readystatechange", ev =>
|
|||
import * as commandline_content from "@src/content/commandline_content"
|
||||
import * as convert from "@src/lib/convert"
|
||||
import * as config from "@src/lib/config"
|
||||
import * as dom from "./dom"
|
||||
import * as dom from "@src/lib/dom"
|
||||
import * as excmds from "./.excmds_content.generated"
|
||||
import * as hinting_content from "@src/content/hinting"
|
||||
import * as finding_content from "@src/content/finding"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { isTextEditable } from "@src/dom"
|
||||
import { isTextEditable } from "@src/lib/dom"
|
||||
import { contentState, ModeName } from "@src/content/state_content"
|
||||
import { repeat } from "@src/.excmds_background.generated"
|
||||
import Logger from "@src/lib/logging"
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
allow spaces
|
||||
*/
|
||||
|
||||
import * as DOM from "@src/dom"
|
||||
import * as DOM from "@src/lib/dom"
|
||||
import { hasModifiers } from "@src/keyseq"
|
||||
import { contentState } from "@src/content/state_content"
|
||||
import { messageActiveTab, message } from "@src/lib/messaging"
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
Redraw on reflow
|
||||
*/
|
||||
|
||||
import * as DOM from "@src/dom"
|
||||
import * as DOM from "@src/lib/dom"
|
||||
import { log } from "@src/lib/math"
|
||||
import {
|
||||
permutationsWithReplacement,
|
||||
|
|
|
@ -112,7 +112,7 @@ import { fitsType, typeToString } from "@src/lib/metadata"
|
|||
import "@src/lib/number.clamp"
|
||||
import * as SELF from "./.excmds_content.generated"
|
||||
Messaging.addListener("excmd_content", Messaging.attributeCaller(SELF))
|
||||
import * as DOM from "./dom"
|
||||
import * as DOM from "@src/lib/dom"
|
||||
import { executeWithoutCommandLine } from "@src/content/commandline_content"
|
||||
import * as scrolling from "@src/content/scrolling"
|
||||
// }
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import * as config from "@src/lib/config"
|
||||
import { flatten } from "@src/lib/itertools"
|
||||
import state from "./state"
|
||||
import state from "@src/state"
|
||||
import * as Logging from "@src/lib/logging"
|
||||
import { activeTabId, openInNewTab, activeTabContainerId } from "./lib/webext"
|
||||
import { activeTabId, openInNewTab, activeTabContainerId } from "@src/lib/webext"
|
||||
const logger = new Logging.Logger("dom")
|
||||
|
||||
// From saka-key lib/dom.js, under Apachev2
|
Loading…
Add table
Reference in a new issue