M: minor text fixes
Some checks failed
Frontend CI / build (22.x) (push) Has been cancelled

This commit is contained in:
Ivan 2024-11-07 23:15:44 +03:00
parent f4886ca61e
commit 178499676c
3 changed files with 10 additions and 1 deletions

View File

@ -4,10 +4,15 @@ import { HelpTopic } from '@/models/miscellaneous';
import TextURL from './TextURL'; import TextURL from './TextURL';
interface TextURLProps { interface TextURLProps {
/** Text to display. */
text: string; text: string;
/** Topic to link to. */
topic: HelpTopic; topic: HelpTopic;
} }
/**
* Displays a link to a help topic.
*/
function LinkTopic({ text, topic }: TextURLProps) { function LinkTopic({ text, topic }: TextURLProps) {
return <TextURL text={text} href={urls.help_topic(topic)} />; return <TextURL text={text} href={urls.help_topic(topic)} />;
} }

View File

@ -6,8 +6,11 @@
* Represents single node of a {@link Graph}, as implemented by storing outgoing and incoming connections. * Represents single node of a {@link Graph}, as implemented by storing outgoing and incoming connections.
*/ */
export class GraphNode { export class GraphNode {
/** Unique identifier of the node. */
id: number; id: number;
/** List of outgoing nodes. */
outputs: number[]; outputs: number[];
/** List of incoming nodes. */
inputs: number[]; inputs: number[];
constructor(id: 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. * This class is optimized for TermGraph use case and not supposed to be used as generic graph implementation.
*/ */
export class Graph { export class Graph {
/** Map of nodes. */
nodes = new Map<number, GraphNode>(); nodes = new Map<number, GraphNode>();
constructor(arr?: number[][]) { constructor(arr?: number[][]) {

View File

@ -14,7 +14,7 @@ function HelpSubstitutions() {
учетом других отождествлений учетом других отождествлений
</li> </li>
<li>логические выражения могут замещать только другие логические выражения</li> <li>логические выражения могут замещать только другие логические выражения</li>
<li>при отождествлении параметризованных конституент количество и типизации операндов должно совпадать</li> <li>при отождествлении параметризованных конституент количество и типизации аргументов должно совпадать</li>
</p> </p>
</div> </div>
); );