2019-12-29 22:31:32 +00:00
|
|
|
import hljs from 'highlight.js';
|
2019-10-12 21:45:49 +00:00
|
|
|
|
2019-12-29 22:31:32 +00:00
|
|
|
import { DiffFile } from '../../types';
|
|
|
|
|
import { Diff2HtmlUI as Diff2HtmlUIBase, Diff2HtmlUIConfig, defaultDiff2HtmlUIConfig } from './diff2html-ui-base';
|
2019-10-12 21:45:49 +00:00
|
|
|
|
2019-12-29 22:31:32 +00:00
|
|
|
export class Diff2HtmlUI extends Diff2HtmlUIBase {
|
2020-01-08 22:40:46 +00:00
|
|
|
constructor(target: HTMLElement, diffInput?: string | DiffFile[], config: Diff2HtmlUIConfig = {}) {
|
|
|
|
|
super(target, diffInput, config, hljs);
|
2019-10-12 21:45:49 +00:00
|
|
|
}
|
|
|
|
|
}
|
2019-12-29 22:31:32 +00:00
|
|
|
|
|
|
|
|
export { Diff2HtmlUIConfig, defaultDiff2HtmlUIConfig };
|