Skip to content

Commit 721ffc1

Browse files
committed
getCodeBlocks.tsrest/以下へ移動
1 parent 2594880 commit 721ffc1

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

browser/websocket/mod.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ export * from "./patch.ts";
33
export * from "./deletePage.ts";
44
export * from "./pin.ts";
55
export * from "./listen.ts";
6-
export * from "./getCodeBlocks.ts";
76
export * from "./updateCodeBlock.ts";
87
export * from "./updateCodeFile.ts";

browser/websocket/updateCodeBlock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import {
66
socketIO,
77
UpdateCommit,
88
} from "../../deps/socket.ts";
9+
import { TinyCodeBlock } from "../../rest/getCodeBlocks.ts";
910
import { diffToChanges } from "./diffToChanges.ts";
10-
import { TinyCodeBlock } from "./getCodeBlocks.ts";
1111
import { getUserId } from "./id.ts";
1212
import { pull } from "./pull.ts";
1313
import { CodeFile, isCodeFile } from "./updateCodeFile.ts";

browser/websocket/updateCodeFile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import {
66
socketIO,
77
UpdateCommit,
88
} from "../../deps/socket.ts";
9+
import { getCodeBlocks, TinyCodeBlock } from "../../rest/getCodeBlocks.ts";
910
import { pull } from "./pull.ts";
10-
import { getCodeBlocks, TinyCodeBlock } from "./getCodeBlocks.ts";
1111
import { createNewLineId, getUserId } from "./id.ts";
1212
import { diff, toExtendedChanges } from "../../deps/onp.ts";
1313
import { applyCommit, countBodyIndent } from "./_codeBlock.ts";
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
import type { Line } from "../../deps/scrapbox-rest.ts";
2-
import { pull } from "./pull.ts";
3-
import { CodeTitle, extractFromCodeTitle } from "./_codeBlock.ts";
1+
import type { Line } from "../deps/scrapbox-rest.ts";
2+
import { pull } from "../browser/websocket/pull.ts";
3+
import {
4+
CodeTitle,
5+
extractFromCodeTitle,
6+
} from "../browser/websocket/_codeBlock.ts";
47

58
/** pull()から取れる情報で構成したコードブロックの最低限の情報 */
69
export interface TinyCodeBlock {

rest/mod.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ export * from "./getGyazoToken.ts";
1212
export * from "./auth.ts";
1313
export * from "./util.ts";
1414
export * from "./error.ts";
15+
export * from "./getCodeBlocks.ts";

0 commit comments

Comments
 (0)