403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/ui/text-editor/src/debug/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/ui/text-editor/src/debug/constants.js
import type { TextNode, RangeSelection } from 'ui.lexical.core';

export const NON_SINGLE_WIDTH_CHARS_REPLACEMENT: Readonly<Record<string, string>> = (
	Object.freeze({
		'\t': '\\t',
		'\n': '\\n',
	})
);

export const NON_SINGLE_WIDTH_CHARS_REGEX: RegExp = new RegExp(
	Object.keys(NON_SINGLE_WIDTH_CHARS_REPLACEMENT).join('|'),
	'g',
);

export const SYMBOLS: Record<string, string> = Object.freeze({
	ancestorHasNextSibling: '|',
	ancestorIsLastChild: ' ',
	hasNextSibling: '├',
	isLastChild: '└',
	selectedChar: '^',
	selectedLine: '>',
});

export const FORMAT_PREDICATES = [
	(node: TextNode | RangeSelection) => node.hasFormat('bold') && 'Bold',
	(node: TextNode | RangeSelection) => node.hasFormat('code') && 'Code',
	(node: TextNode | RangeSelection) => node.hasFormat('italic') && 'Italic',
	(node: TextNode | RangeSelection) => node.hasFormat('strikethrough') && 'Strikethrough',
	(node: TextNode | RangeSelection) => node.hasFormat('subscript') && 'Subscript',
	(node: TextNode | RangeSelection) => node.hasFormat('superscript') && 'Superscript',
	(node: TextNode | RangeSelection) => node.hasFormat('underline') && 'Underline',
];

export const DETAIL_PREDICATES = [
	(node: TextNode) => node.isDirectionless() && 'Directionless',
	(node: TextNode) => node.isUnmergeable() && 'Unmergeable',
];

export const MODE_PREDICATES = [
	(node: TextNode) => node.isToken() && 'Token',
	(node: TextNode) => node.isSegmented() && 'Segmented',
];

Youez - 2016 - github.com/yon3zu
LinuXploit