From 178499676c9557fe10abf80ca3bafee0f70d648f Mon Sep 17 00:00:00 2001 From: Ivan <8611739+IRBorisov@users.noreply.github.com> Date: Thu, 7 Nov 2024 23:15:44 +0300 Subject: [PATCH] M: minor text fixes --- rsconcept/frontend/src/components/ui/LinkTopic.tsx | 5 +++++ rsconcept/frontend/src/models/Graph.ts | 4 ++++ .../src/pages/ManualsPage/items/ui/HelpSubstitutions.tsx | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/rsconcept/frontend/src/components/ui/LinkTopic.tsx b/rsconcept/frontend/src/components/ui/LinkTopic.tsx index bb2c3195..7b044dd9 100644 --- a/rsconcept/frontend/src/components/ui/LinkTopic.tsx +++ b/rsconcept/frontend/src/components/ui/LinkTopic.tsx @@ -4,10 +4,15 @@ import { HelpTopic } from '@/models/miscellaneous'; import TextURL from './TextURL'; interface TextURLProps { + /** Text to display. */ text: string; + /** Topic to link to. */ topic: HelpTopic; } +/** + * Displays a link to a help topic. + */ function LinkTopic({ text, topic }: TextURLProps) { return ; } diff --git a/rsconcept/frontend/src/models/Graph.ts b/rsconcept/frontend/src/models/Graph.ts index 725e0d8f..d8cd7652 100644 --- a/rsconcept/frontend/src/models/Graph.ts +++ b/rsconcept/frontend/src/models/Graph.ts @@ -6,8 +6,11 @@ * Represents single node of a {@link Graph}, as implemented by storing outgoing and incoming connections. */ export class GraphNode { + /** Unique identifier of the node. */ id: number; + /** List of outgoing nodes. */ outputs: number[]; + /** List of incoming nodes. */ inputs: number[]; constructor(id: number) { @@ -48,6 +51,7 @@ export class GraphNode { * This class is optimized for TermGraph use case and not supposed to be used as generic graph implementation. */ export class Graph { + /** Map of nodes. */ nodes = new Map(); constructor(arr?: number[][]) { diff --git a/rsconcept/frontend/src/pages/ManualsPage/items/ui/HelpSubstitutions.tsx b/rsconcept/frontend/src/pages/ManualsPage/items/ui/HelpSubstitutions.tsx index 1fb66271..799b9690 100644 --- a/rsconcept/frontend/src/pages/ManualsPage/items/ui/HelpSubstitutions.tsx +++ b/rsconcept/frontend/src/pages/ManualsPage/items/ui/HelpSubstitutions.tsx @@ -14,7 +14,7 @@ function HelpSubstitutions() { учетом других отождествлений
  • логические выражения могут замещать только другие логические выражения
  • -
  • при отождествлении параметризованных конституент количество и типизации операндов должно совпадать
  • +
  • при отождествлении параметризованных конституент количество и типизации аргументов должно совпадать
  • );