Skip to content

Commit 9ffe615

Browse files
authored
Merge pull request #15 from takker99/fix-directory-layout
🎨 Separate type effect of websocket from browser/dom/mod.ts
2 parents ae7ffb6 + 76d3d74 commit 9ffe615

14 files changed

+24
-22
lines changed
File renamed without changes.

browser/click.ts renamed to browser/dom/click.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/// <reference lib="esnext"/>
33
/// <reference lib="dom" />
44

5-
import { sleep } from "../sleep.ts";
5+
import { sleep } from "../../sleep.ts";
66

77
/** the options for `click()` */
88
export interface ClickOptions {
File renamed without changes.

browser/edit.ts renamed to browser/dom/edit.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { goHead, goLine } from "./motion.ts";
22
import { press } from "./press.ts";
33
import { getLineCount } from "./node.ts";
4-
import { range } from "../range.ts";
4+
import { range } from "../../range.ts";
55
import { textInput } from "./dom.ts";
6-
import { isArray, isNumber, isString } from "../is.ts";
7-
import { sleep } from "../sleep.ts";
6+
import { isArray, isNumber, isString } from "../../is.ts";
7+
import { sleep } from "../../sleep.ts";
88

99
export function undo(count = 1) {
1010
for (const _ of range(0, count)) {
File renamed without changes.
File renamed without changes.

browser/dom/mod.ts

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
export * from "./node.ts";
2+
export * from "./motion.ts";
3+
export * from "./edit.ts";
4+
export * from "./press.ts";
5+
export * from "./click.ts";
6+
export * from "./statusBar.ts";
7+
export * from "./caret.ts";
8+
export * from "./dom.ts";
9+
export * from "./openInTheSameTab.ts";

browser/motion.ts renamed to browser/dom/motion.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
} from "./node.ts";
1717
import { caret } from "./caret.ts";
1818
import { isHeightViewable } from "./isHeightViewable.ts";
19-
import { range } from "../range.ts";
19+
import { range } from "../../range.ts";
2020

2121
/** カーソル行の行末を長押ししてfocusを得る
2222
*

browser/node.ts renamed to browser/dom/node.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/// <reference no-default-lib="true"/>
22
/// <reference lib="esnext"/>
33
/// <reference lib="dom" />
4-
import { isNone, isNumber, isString } from "../is.ts";
5-
import { ensureArray } from "../ensure.ts";
6-
import type { Scrapbox } from "../deps/scrapbox.ts";
4+
import { isNone, isNumber, isString } from "../../is.ts";
5+
import { ensureArray } from "../../ensure.ts";
6+
import type { Scrapbox } from "../../deps/scrapbox.ts";
77
import { lines } from "./dom.ts";
8-
import * as Text from "../text.ts";
8+
import * as Text from "../../text.ts";
99
declare const scrapbox: Scrapbox;
1010

1111
/** Get the line id from value

browser/openInTheSameTab.ts renamed to browser/dom/openInTheSameTab.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// <reference no-default-lib="true"/>
22
/// <reference lib="esnext"/>
33
/// <reference lib="dom" />
4-
import { encodeTitleURI } from "../title.ts";
4+
import { encodeTitleURI } from "../../title.ts";
55

66
/** 同じタブでページを開く
77
*
File renamed without changes.
File renamed without changes.

browser/mod.ts

+2-12
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,2 @@
1-
export * from "./node.ts";
2-
export * from "./motion.ts";
3-
export * from "./edit.ts";
4-
export * from "./press.ts";
5-
export * from "./click.ts";
6-
export * from "./statusBar.ts";
7-
export * from "./caret.ts";
8-
export * from "./dom.ts";
9-
export * from "./openInTheSameTab.ts";
10-
export * from "./websocket/room.ts";
11-
export * from "./websocket/shortcuts.ts";
12-
export * from "./websocket/stream.ts";
1+
export * from "./dom/mod.ts";
2+
export * from "./websocket/mod.ts";

browser/websocket/mod.ts

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export * from "./room.ts";
2+
export * from "./shortcuts.ts";
3+
export * from "./stream.ts";

0 commit comments

Comments
 (0)