Skip to content

🎨 Separate type effect of websocket from browser/dom/mod.ts #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
2 changes: 1 addition & 1 deletion browser/click.ts → browser/dom/click.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/// <reference lib="esnext"/>
/// <reference lib="dom" />

import { sleep } from "../sleep.ts";
import { sleep } from "../../sleep.ts";

/** the options for `click()` */
export interface ClickOptions {
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions browser/edit.ts → browser/dom/edit.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { goHead, goLine } from "./motion.ts";
import { press } from "./press.ts";
import { getLineCount } from "./node.ts";
import { range } from "../range.ts";
import { range } from "../../range.ts";
import { textInput } from "./dom.ts";
import { isArray, isNumber, isString } from "../is.ts";
import { sleep } from "../sleep.ts";
import { isArray, isNumber, isString } from "../../is.ts";
import { sleep } from "../../sleep.ts";

export function undo(count = 1) {
for (const _ of range(0, count)) {
Expand Down
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions browser/dom/mod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export * from "./node.ts";
export * from "./motion.ts";
export * from "./edit.ts";
export * from "./press.ts";
export * from "./click.ts";
export * from "./statusBar.ts";
export * from "./caret.ts";
export * from "./dom.ts";
export * from "./openInTheSameTab.ts";
2 changes: 1 addition & 1 deletion browser/motion.ts → browser/dom/motion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
} from "./node.ts";
import { caret } from "./caret.ts";
import { isHeightViewable } from "./isHeightViewable.ts";
import { range } from "../range.ts";
import { range } from "../../range.ts";

/** カーソル行の行末を長押ししてfocusを得る
*
Expand Down
8 changes: 4 additions & 4 deletions browser/node.ts → browser/dom/node.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/// <reference no-default-lib="true"/>
/// <reference lib="esnext"/>
/// <reference lib="dom" />
import { isNone, isNumber, isString } from "../is.ts";
import { ensureArray } from "../ensure.ts";
import type { Scrapbox } from "../deps/scrapbox.ts";
import { isNone, isNumber, isString } from "../../is.ts";
import { ensureArray } from "../../ensure.ts";
import type { Scrapbox } from "../../deps/scrapbox.ts";
import { lines } from "./dom.ts";
import * as Text from "../text.ts";
import * as Text from "../../text.ts";
declare const scrapbox: Scrapbox;

/** Get the line id from value
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// <reference no-default-lib="true"/>
/// <reference lib="esnext"/>
/// <reference lib="dom" />
import { encodeTitleURI } from "../title.ts";
import { encodeTitleURI } from "../../title.ts";

/** 同じタブでページを開く
*
Expand Down
File renamed without changes.
File renamed without changes.
14 changes: 2 additions & 12 deletions browser/mod.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,2 @@
export * from "./node.ts";
export * from "./motion.ts";
export * from "./edit.ts";
export * from "./press.ts";
export * from "./click.ts";
export * from "./statusBar.ts";
export * from "./caret.ts";
export * from "./dom.ts";
export * from "./openInTheSameTab.ts";
export * from "./websocket/room.ts";
export * from "./websocket/shortcuts.ts";
export * from "./websocket/stream.ts";
export * from "./dom/mod.ts";
export * from "./websocket/mod.ts";
3 changes: 3 additions & 0 deletions browser/websocket/mod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from "./room.ts";
export * from "./shortcuts.ts";
export * from "./stream.ts";