mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-23 14:39:58 +03:00
Changes
This commit is contained in:
parent
eac32ffc94
commit
3fdeb38694
|
@ -7,9 +7,7 @@
|
||||||
|
|
||||||
import Anser from 'anser';
|
import Anser from 'anser';
|
||||||
import { nicinabox as theme } from 'redux-devtools-themes';
|
import { nicinabox as theme } from 'redux-devtools-themes';
|
||||||
import { AllHtmlEntities as Entities } from 'html-entities';
|
import { encode } from 'html-entities';
|
||||||
|
|
||||||
const entities = new Entities();
|
|
||||||
|
|
||||||
const anserMap = {
|
const anserMap = {
|
||||||
'ansi-bright-black': theme.base03,
|
'ansi-bright-black': theme.base03,
|
||||||
|
@ -27,7 +25,7 @@ const anserMap = {
|
||||||
};
|
};
|
||||||
|
|
||||||
function generateAnsiHTML(txt: string): string {
|
function generateAnsiHTML(txt: string): string {
|
||||||
const arr = new Anser().ansiToJson(entities.encode(txt), {
|
const arr = new Anser().ansiToJson(encode(txt), {
|
||||||
use_classes: true,
|
use_classes: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user