mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 04:50:36 +03:00
Small fixes
This commit is contained in:
parent
18469324f9
commit
31899c49ce
62
.vscode/settings.json
vendored
62
.vscode/settings.json
vendored
|
@ -35,5 +35,65 @@
|
||||||
"css",
|
"css",
|
||||||
"typescriptreact",
|
"typescriptreact",
|
||||||
"javascriptreact"
|
"javascriptreact"
|
||||||
]
|
],
|
||||||
|
"cSpell.words": [
|
||||||
|
"Analyse",
|
||||||
|
"cctext",
|
||||||
|
"clsx",
|
||||||
|
"codemirror",
|
||||||
|
"Constituenta",
|
||||||
|
"cstlist",
|
||||||
|
"csttype",
|
||||||
|
"Debool",
|
||||||
|
"Decart",
|
||||||
|
"exteor",
|
||||||
|
"forceatlas",
|
||||||
|
"Grammeme",
|
||||||
|
"Grammemes",
|
||||||
|
"lezer",
|
||||||
|
"moprho",
|
||||||
|
"nooverlap",
|
||||||
|
"ponomarev",
|
||||||
|
"pyconcept",
|
||||||
|
"pymorphy",
|
||||||
|
"Quantor",
|
||||||
|
"razdel",
|
||||||
|
"reagraph",
|
||||||
|
"Reindex",
|
||||||
|
"rsedit",
|
||||||
|
"rseditor",
|
||||||
|
"rsform",
|
||||||
|
"rsforms",
|
||||||
|
"rslang",
|
||||||
|
"rstemplates",
|
||||||
|
"SIDELIST",
|
||||||
|
"signup",
|
||||||
|
"tanstack",
|
||||||
|
"toastify",
|
||||||
|
"tooltipic",
|
||||||
|
"Viewset",
|
||||||
|
"wordform",
|
||||||
|
"Wordforms",
|
||||||
|
"Булеан",
|
||||||
|
"Бурбаки",
|
||||||
|
"Десинглетон",
|
||||||
|
"компаратив",
|
||||||
|
"конституент",
|
||||||
|
"Конституента",
|
||||||
|
"конституенту",
|
||||||
|
"конституенты",
|
||||||
|
"неинтерпретируемый",
|
||||||
|
"неитерируемого",
|
||||||
|
"пересинтез",
|
||||||
|
"Родоструктурная",
|
||||||
|
"Родоструктурное",
|
||||||
|
"Синглетон",
|
||||||
|
"Терминологизация",
|
||||||
|
"Цермелло",
|
||||||
|
"Экстеор",
|
||||||
|
"Экстеора",
|
||||||
|
"Экстеоре"
|
||||||
|
],
|
||||||
|
"cSpell.language": "en,ru",
|
||||||
|
"cSpell.ignorePaths": ["node_modules/**", "*.json"]
|
||||||
}
|
}
|
|
@ -51,6 +51,8 @@ This readme file is used mostly to document project dependencies
|
||||||
- Colorize
|
- Colorize
|
||||||
- Code Spell Checker (eng + rus)
|
- Code Spell Checker (eng + rus)
|
||||||
- Backticks
|
- Backticks
|
||||||
|
- Svg Preview
|
||||||
|
- TODO Highlight v2
|
||||||
</pre>
|
</pre>
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
# Generated by Django 4.2.7 on 2023-12-27 08:47
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('rsform', '0002_librarytemplate'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='constituenta',
|
||||||
|
name='definition_raw',
|
||||||
|
field=models.TextField(blank=True, default='', verbose_name='Текстовое определение (с отсылками)'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='constituenta',
|
||||||
|
name='definition_resolved',
|
||||||
|
field=models.TextField(blank=True, default='', verbose_name='Текстовое определение'),
|
||||||
|
),
|
||||||
|
]
|
|
@ -99,19 +99,19 @@ export function substituteTemplateArgs(expression: string, args: IArgumentValue[
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const ERRCODE_LEXER_MASK = 512;
|
const ERROR_LEXER_MASK = 512;
|
||||||
const ERRCODE_PARSER_MASK = 1024;
|
const ERROR_PARSER_MASK = 1024;
|
||||||
const ERRCODE_TYPE_MASK = 2048;
|
const ERROR_SEMANTIC_MASK = 2048;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Infers error class from error type (code).
|
* Infers error class from error type (code).
|
||||||
*/
|
*/
|
||||||
export function inferErrorClass(error: RSErrorType): RSErrorClass {
|
export function inferErrorClass(error: RSErrorType): RSErrorClass {
|
||||||
if ((error & ERRCODE_LEXER_MASK) !== 0) {
|
if ((error & ERROR_LEXER_MASK) !== 0) {
|
||||||
return RSErrorClass.LEXER;
|
return RSErrorClass.LEXER;
|
||||||
} else if ((error & ERRCODE_PARSER_MASK) !== 0) {
|
} else if ((error & ERROR_PARSER_MASK) !== 0) {
|
||||||
return RSErrorClass.PARSER;
|
return RSErrorClass.PARSER;
|
||||||
} else if ((error & ERRCODE_TYPE_MASK) !== 0) {
|
} else if ((error & ERROR_SEMANTIC_MASK) !== 0) {
|
||||||
return RSErrorClass.SEMANTIC;
|
return RSErrorClass.SEMANTIC;
|
||||||
} else {
|
} else {
|
||||||
return RSErrorClass.UNKNOWN;
|
return RSErrorClass.UNKNOWN;
|
||||||
|
|
|
@ -37,7 +37,7 @@ interface EditorRSExpressionProps {
|
||||||
toggleReset?: boolean
|
toggleReset?: boolean
|
||||||
showList: boolean
|
showList: boolean
|
||||||
|
|
||||||
setTypification: (typificaiton: string) => void
|
setTypification: (typification: string) => void
|
||||||
onChange: (newValue: string) => void
|
onChange: (newValue: string) => void
|
||||||
onToggleList: () => void
|
onToggleList: () => void
|
||||||
}
|
}
|
||||||
|
|
|
@ -90,7 +90,7 @@ interface RSEditorControlsProps {
|
||||||
function RSEditorControls({ isOpen, disabled, onEdit }: RSEditorControlsProps) {
|
function RSEditorControls({ isOpen, disabled, onEdit }: RSEditorControlsProps) {
|
||||||
return (
|
return (
|
||||||
<motion.div
|
<motion.div
|
||||||
className='flex-wrap text-sm divide-solid'
|
className='flex-wrap mt-1 text-sm divide-solid'
|
||||||
initial={false}
|
initial={false}
|
||||||
animate={isOpen ? 'open' : 'closed'}
|
animate={isOpen ? 'open' : 'closed'}
|
||||||
variants={animateRSControl}
|
variants={animateRSControl}
|
||||||
|
|
|
@ -89,7 +89,7 @@ export function printTree(tree: Tree): string {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reteives a list of all nodes, containing given range and corresponding to a filter.
|
* Retrieves a list of all nodes, containing given range and corresponding to a filter.
|
||||||
*/
|
*/
|
||||||
export function findEnvelopingNodes(start: number, finish: number, tree: Tree, filter?: number[]): SyntaxNode[] {
|
export function findEnvelopingNodes(start: number, finish: number, tree: Tree, filter?: number[]): SyntaxNode[] {
|
||||||
const result: SyntaxNode[] = [];
|
const result: SyntaxNode[] = [];
|
||||||
|
@ -110,7 +110,7 @@ export function findEnvelopingNodes(start: number, finish: number, tree: Tree, f
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reteives a list of all nodes, contained in given range and corresponding to a filter.
|
* Retrieves a list of all nodes, contained in given range and corresponding to a filter.
|
||||||
*/
|
*/
|
||||||
export function findContainedNodes(start: number, finish: number, tree: Tree, filter?: number[]): SyntaxNode[] {
|
export function findContainedNodes(start: number, finish: number, tree: Tree, filter?: number[]): SyntaxNode[] {
|
||||||
const result: SyntaxNode[] = [];
|
const result: SyntaxNode[] = [];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user