Fixed Travis compile
parent
58256bb548
commit
04d953ec6d
|
@ -1,11 +1,10 @@
|
|||
import {XBBCodeRenderer} from "vendor/xbbcode/react";
|
||||
import * as React from "react";
|
||||
import {rendererHTML, rendererReact, rendererText} from "tc-shared/text/bbcode/renderer";
|
||||
import {rendererHTML, rendererReact, rendererText, BBCodeHandlerContext} from "tc-shared/text/bbcode/renderer";
|
||||
import {parse as parseBBCode} from "vendor/xbbcode/parser";
|
||||
import {fixupJQueryUrlTags} from "tc-shared/text/bbcode/url";
|
||||
import {fixupJQueryImageTags} from "tc-shared/text/bbcode/image";
|
||||
import "./bbcode.scss";
|
||||
import {BBCodeHandlerContext} from "vendor/xbbcode/renderer/react";
|
||||
|
||||
export const escapeBBCode = (text: string) => text.replace(/(\[)/g, "\\$1");
|
||||
|
||||
|
|
|
@ -2,6 +2,8 @@ import TextRenderer from "vendor/xbbcode/renderer/text";
|
|||
import ReactRenderer from "vendor/xbbcode/renderer/react";
|
||||
import HTMLRenderer from "vendor/xbbcode/renderer/html";
|
||||
|
||||
export const BBCodeHandlerContext = React.createContext<string>(undefined);
|
||||
|
||||
export const rendererText = new TextRenderer();
|
||||
export const rendererReact = new ReactRenderer();
|
||||
export const rendererHTML = new HTMLRenderer(rendererReact);
|
||||
|
@ -10,4 +12,5 @@ import "./emoji";
|
|||
import "./highlight";
|
||||
import "./youtube";
|
||||
import "./url";
|
||||
import "./image";
|
||||
import "./image";
|
||||
import * as React from "react";
|
|
@ -4,10 +4,9 @@ import * as loader from "tc-loader";
|
|||
import {ElementRenderer} from "vendor/xbbcode/renderer/base";
|
||||
import {TagElement} from "vendor/xbbcode/elements";
|
||||
import * as React from "react";
|
||||
import ReactRenderer, {BBCodeHandlerContext} from "vendor/xbbcode/renderer/react";
|
||||
import {rendererReact, rendererText} from "tc-shared/text/bbcode/renderer";
|
||||
import ReactRenderer from "vendor/xbbcode/renderer/react";
|
||||
import {rendererReact, rendererText, BBCodeHandlerContext} from "tc-shared/text/bbcode/renderer";
|
||||
import {ClientTag} from "tc-shared/ui/tree/EntryTags";
|
||||
import {useContext} from "react";
|
||||
|
||||
function spawnUrlContextMenu(pageX: number, pageY: number, target: string) {
|
||||
contextmenu.spawn_context_menu(pageX, pageY, {
|
||||
|
|
Loading…
Reference in New Issue