@seafteam/seaf-archtool-core-plugin-suite 2026.29.0-rc-test.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/NOTICE +27 -0
- package/documentation/arch/aspects.yaml +81 -0
- package/documentation/arch/components/browser.yaml +51 -0
- package/documentation/arch/components/examples/context.yaml +37 -0
- package/documentation/arch/components/examples/order.yaml +92 -0
- package/documentation/arch/components/examples/payment.yaml +92 -0
- package/documentation/arch/components/examples/root.yaml +42 -0
- package/documentation/arch/components/front.yaml +309 -0
- package/documentation/arch/components/gitlab.yaml +81 -0
- package/documentation/arch/components/plantuml.yaml +57 -0
- package/documentation/arch/components/root.yaml +36 -0
- package/documentation/arch/components/user.yaml +41 -0
- package/documentation/arch/components/web.yaml +39 -0
- package/documentation/arch/contexts.yaml +99 -0
- package/documentation/arch/forms.yaml +36 -0
- package/documentation/arch/namespaces.yaml +43 -0
- package/documentation/arch/root.yaml +43 -0
- package/documentation/arch/rules.yaml +91 -0
- package/documentation/arch/technologies.yaml +84 -0
- package/documentation/dochub.yaml +32 -0
- package/documentation/docs/conception/archdistrib.puml +38 -0
- package/documentation/docs/conception/archeco.puml +11 -0
- package/documentation/docs/conception/archeco_proc.puml +29 -0
- package/documentation/docs/conception/archver.puml +24 -0
- package/documentation/docs/conception/facade.puml +20 -0
- package/documentation/docs/conception/introduction.md +144 -0
- package/documentation/docs/conception/mindmap.puml +55 -0
- package/documentation/docs/conception/root.yaml +66 -0
- package/documentation/docs/manual/aspects.md +37 -0
- package/documentation/docs/manual/backend/api.yaml +664 -0
- package/documentation/docs/manual/backend/search-implementation.md +190 -0
- package/documentation/docs/manual/backend/search.yaml +495 -0
- package/documentation/docs/manual/clickstream-setup.md +50 -0
- package/documentation/docs/manual/components.md +45 -0
- package/documentation/docs/manual/config/deployment.md +337 -0
- package/documentation/docs/manual/context_source.puml +17 -0
- package/documentation/docs/manual/contexts.md +200 -0
- package/documentation/docs/manual/datasets.md +120 -0
- package/documentation/docs/manual/docs/AI_TABLE_INTEGRATION.md +81 -0
- package/documentation/docs/manual/docs/asyncapi.md +63 -0
- package/documentation/docs/manual/docs/bpmn.md +122 -0
- package/documentation/docs/manual/docs/charts.md +371 -0
- package/documentation/docs/manual/docs/docs.md +76 -0
- package/documentation/docs/manual/docs/drawio_intro.md +397 -0
- package/documentation/docs/manual/docs/editable_table/menu.yaml +5 -0
- package/documentation/docs/manual/docs/editable_table/root.yaml +9 -0
- package/documentation/docs/manual/docs/editable_table/step_0_base/menu.yaml +6 -0
- package/documentation/docs/manual/docs/editable_table/step_0_base/root.yaml +3 -0
- package/documentation/docs/manual/docs/editable_table/step_0_base/table.yaml +396 -0
- package/documentation/docs/manual/docs/editable_table/step_0_base/template.md +404 -0
- package/documentation/docs/manual/docs/editable_table/step_1_acquaintance/menu.yaml +5 -0
- package/documentation/docs/manual/docs/editable_table/step_1_acquaintance/root.yaml +3 -0
- package/documentation/docs/manual/docs/editable_table/step_1_acquaintance/table.yaml +136 -0
- package/documentation/docs/manual/docs/editable_table/step_1_acquaintance/template.md +247 -0
- package/documentation/docs/manual/docs/editable_table/step_2_parameterization/data/pets.yaml +23 -0
- package/documentation/docs/manual/docs/editable_table/step_2_parameterization/data/root.yaml +2 -0
- package/documentation/docs/manual/docs/editable_table/step_2_parameterization/menu.yaml +34 -0
- package/documentation/docs/manual/docs/editable_table/step_2_parameterization/root.yaml +4 -0
- package/documentation/docs/manual/docs/editable_table/step_2_parameterization/table.yaml +36 -0
- package/documentation/docs/manual/docs/editable_table/step_2_parameterization/template_root.md +110 -0
- package/documentation/docs/manual/docs/editable_table/step_2_parameterization/template_table.md +3 -0
- package/documentation/docs/manual/docs/editable_table/step_3_headers/menu.yaml +6 -0
- package/documentation/docs/manual/docs/editable_table/step_3_headers/root.yaml +2 -0
- package/documentation/docs/manual/docs/editable_table/step_3_headers/template.md +300 -0
- package/documentation/docs/manual/docs/editable_table/step_4_editing/data/data.yaml +10 -0
- package/documentation/docs/manual/docs/editable_table/step_4_editing/data/root.yaml +2 -0
- package/documentation/docs/manual/docs/editable_table/step_4_editing/examples/auto_imports/data/data_column_1.yaml +3 -0
- package/documentation/docs/manual/docs/editable_table/step_4_editing/examples/auto_imports/data/root.yaml +2 -0
- package/documentation/docs/manual/docs/editable_table/step_4_editing/examples/auto_imports/menu.yaml +6 -0
- package/documentation/docs/manual/docs/editable_table/step_4_editing/examples/auto_imports/root.yaml +4 -0
- package/documentation/docs/manual/docs/editable_table/step_4_editing/examples/auto_imports/table.yaml +52 -0
- package/documentation/docs/manual/docs/editable_table/step_4_editing/examples/auto_imports/template.md +117 -0
- package/documentation/docs/manual/docs/editable_table/step_4_editing/examples/root.yaml +2 -0
- package/documentation/docs/manual/docs/editable_table/step_4_editing/menu.yaml +6 -0
- package/documentation/docs/manual/docs/editable_table/step_4_editing/root.yaml +5 -0
- package/documentation/docs/manual/docs/editable_table/step_4_editing/table.yaml +116 -0
- package/documentation/docs/manual/docs/editable_table/step_4_editing/template.md +231 -0
- package/documentation/docs/manual/docs/editable_table/step_5_styles/examples/base_example/data.yaml +30 -0
- package/documentation/docs/manual/docs/editable_table/step_5_styles/examples/base_example/menu.yaml +5 -0
- package/documentation/docs/manual/docs/editable_table/step_5_styles/examples/base_example/root.yaml +4 -0
- package/documentation/docs/manual/docs/editable_table/step_5_styles/examples/base_example/table.yaml +122 -0
- package/documentation/docs/manual/docs/editable_table/step_5_styles/examples/base_example/template.md +276 -0
- package/documentation/docs/manual/docs/editable_table/step_5_styles/examples/hiding_columns/data.yaml +11 -0
- package/documentation/docs/manual/docs/editable_table/step_5_styles/examples/hiding_columns/menu.yaml +5 -0
- package/documentation/docs/manual/docs/editable_table/step_5_styles/examples/hiding_columns/root.yaml +4 -0
- package/documentation/docs/manual/docs/editable_table/step_5_styles/examples/hiding_columns/table.yaml +40 -0
- package/documentation/docs/manual/docs/editable_table/step_5_styles/examples/hiding_columns/template.md +59 -0
- package/documentation/docs/manual/docs/editable_table/step_5_styles/examples/root.yaml +3 -0
- package/documentation/docs/manual/docs/editable_table/step_5_styles/menu.yaml +5 -0
- package/documentation/docs/manual/docs/editable_table/step_5_styles/root.yaml +4 -0
- package/documentation/docs/manual/docs/editable_table/step_5_styles/table.yaml +35 -0
- package/documentation/docs/manual/docs/editable_table/step_5_styles/template.md +142 -0
- package/documentation/docs/manual/docs/editable_table/step_6_errors/examples/data_errors/data.yaml +40 -0
- package/documentation/docs/manual/docs/editable_table/step_6_errors/examples/data_errors/menu.yaml +5 -0
- package/documentation/docs/manual/docs/editable_table/step_6_errors/examples/data_errors/root.yaml +4 -0
- package/documentation/docs/manual/docs/editable_table/step_6_errors/examples/data_errors/table.yaml +77 -0
- package/documentation/docs/manual/docs/editable_table/step_6_errors/examples/data_errors/template.md +146 -0
- package/documentation/docs/manual/docs/editable_table/step_6_errors/examples/root.yaml +2 -0
- package/documentation/docs/manual/docs/editable_table/step_6_errors/menu.yaml +5 -0
- package/documentation/docs/manual/docs/editable_table/step_6_errors/root.yaml +3 -0
- package/documentation/docs/manual/docs/editable_table/step_6_errors/template.md +3 -0
- package/documentation/docs/manual/docs/editable_table/template.md +24 -0
- package/documentation/docs/manual/docs/examples/asyncapi.yaml +77 -0
- package/documentation/docs/manual/docs/examples/asyncapi_template.json +11 -0
- package/documentation/docs/manual/docs/examples/autors.yaml +30 -0
- package/documentation/docs/manual/docs/examples/bpmn.xml +44 -0
- package/documentation/docs/manual/docs/examples/cat.jpg +0 -0
- package/documentation/docs/manual/docs/examples/charts-bar.yaml +61 -0
- package/documentation/docs/manual/docs/examples/charts-bubble.yaml +47 -0
- package/documentation/docs/manual/docs/examples/charts-doughnut.yaml +42 -0
- package/documentation/docs/manual/docs/examples/charts-line.yaml +55 -0
- package/documentation/docs/manual/docs/examples/charts-pie.yaml +37 -0
- package/documentation/docs/manual/docs/examples/charts-polararea.yaml +54 -0
- package/documentation/docs/manual/docs/examples/charts-radar.yaml +50 -0
- package/documentation/docs/manual/docs/examples/charts-scatter.yaml +48 -0
- package/documentation/docs/manual/docs/examples/charts.yaml +91 -0
- package/documentation/docs/manual/docs/examples/contexts.jsonata +8 -0
- package/documentation/docs/manual/docs/examples/date-picker-example.md +5 -0
- package/documentation/docs/manual/docs/examples/example.html +2 -0
- package/documentation/docs/manual/docs/examples/example.puml +17 -0
- package/documentation/docs/manual/docs/examples/example.yaml +53 -0
- package/documentation/docs/manual/docs/examples/ext-schema.yaml +3 -0
- package/documentation/docs/manual/docs/examples/inlinemeta.md +25 -0
- package/documentation/docs/manual/docs/examples/markaper.yaml +225 -0
- package/documentation/docs/manual/docs/examples/mermaid.mmd +32 -0
- package/documentation/docs/manual/docs/examples/openapi_template.json +16 -0
- package/documentation/docs/manual/docs/examples/pizza-collaboration.xml +383 -0
- package/documentation/docs/manual/docs/examples/sa-anim.yaml +209 -0
- package/documentation/docs/manual/docs/examples/sa-complex-hide-boundary.yaml +94 -0
- package/documentation/docs/manual/docs/examples/sa-complex-hide-leaves.yaml +94 -0
- package/documentation/docs/manual/docs/examples/sa-complex-hide-title.yaml +98 -0
- package/documentation/docs/manual/docs/examples/sa-complex.yaml +92 -0
- package/documentation/docs/manual/docs/examples/sa-gravity.yaml +104 -0
- package/documentation/docs/manual/docs/examples/sa-group.yaml +93 -0
- package/documentation/docs/manual/docs/examples/sa-physical-connection.yaml +79 -0
- package/documentation/docs/manual/docs/examples/sa-query.jsonata +74 -0
- package/documentation/docs/manual/docs/examples/sa-symbol.yaml +72 -0
- package/documentation/docs/manual/docs/examples/sa-through-objects.yaml +46 -0
- package/documentation/docs/manual/docs/examples/sa-without-tips.yaml +43 -0
- package/documentation/docs/manual/docs/examples/showcases.jsonata +5 -0
- package/documentation/docs/manual/docs/examples/smartants_.yaml +160 -0
- package/documentation/docs/manual/docs/examples/table.yaml +341 -0
- package/documentation/docs/manual/docs/examples/template.puml +6 -0
- package/documentation/docs/manual/docs/examples/test.jsonata +3 -0
- package/documentation/docs/manual/docs/examples/toc/2header.md +8 -0
- package/documentation/docs/manual/docs/examples/toc/custom-toc-place-dup.md +37 -0
- package/documentation/docs/manual/docs/examples/toc/custom-toc-place.md +35 -0
- package/documentation/docs/manual/docs/examples/toc/root.yaml +38 -0
- package/documentation/docs/manual/docs/examples/toc/test.md +160 -0
- package/documentation/docs/manual/docs/gigachat/agents/aigena/menu.yaml +5 -0
- package/documentation/docs/manual/docs/gigachat/agents/aigena/root.yaml +2 -0
- package/documentation/docs/manual/docs/gigachat/agents/aigena/template.md +25 -0
- package/documentation/docs/manual/docs/gigachat/agents/menu.yaml +5 -0
- package/documentation/docs/manual/docs/gigachat/agents/react/gigachat.yaml +59 -0
- package/documentation/docs/manual/docs/gigachat/agents/react/menu.yaml +5 -0
- package/documentation/docs/manual/docs/gigachat/agents/react/root.yaml +3 -0
- package/documentation/docs/manual/docs/gigachat/agents/react/template.md +138 -0
- package/documentation/docs/manual/docs/gigachat/agents/root.yaml +5 -0
- package/documentation/docs/manual/docs/gigachat/agents/simple/gigachat.yaml +14 -0
- package/documentation/docs/manual/docs/gigachat/agents/simple/menu.yaml +5 -0
- package/documentation/docs/manual/docs/gigachat/agents/simple/root.yaml +3 -0
- package/documentation/docs/manual/docs/gigachat/agents/simple/template.md +113 -0
- package/documentation/docs/manual/docs/gigachat/agents/template.md +62 -0
- package/documentation/docs/manual/docs/gigachat/menu.yaml +5 -0
- package/documentation/docs/manual/docs/gigachat/root.yaml +4 -0
- package/documentation/docs/manual/docs/gigachat/settings/menu.yaml +5 -0
- package/documentation/docs/manual/docs/gigachat/settings/root.yaml +2 -0
- package/documentation/docs/manual/docs/gigachat/settings/template.md +51 -0
- package/documentation/docs/manual/docs/gigachat/template.md +38 -0
- package/documentation/docs/manual/docs/images/cloud.png +0 -0
- package/documentation/docs/manual/docs/images/component.png +0 -0
- package/documentation/docs/manual/docs/images/system.png +0 -0
- package/documentation/docs/manual/docs/images/user.png +0 -0
- package/documentation/docs/manual/docs/markaper.md +278 -0
- package/documentation/docs/manual/docs/markdown.md +148 -0
- package/documentation/docs/manual/docs/mermaid.md +43 -0
- package/documentation/docs/manual/docs/network.md +117 -0
- package/documentation/docs/manual/docs/plantuml.md +28 -0
- package/documentation/docs/manual/docs/root.yaml +736 -0
- package/documentation/docs/manual/docs/seaf2drawio/examples/basic.yaml +13 -0
- package/documentation/docs/manual/docs/seaf2drawio/examples/diff.yaml +123 -0
- package/documentation/docs/manual/docs/seaf2drawio/examples/example_seaf_data.yaml +1689 -0
- package/documentation/docs/manual/docs/seaf2drawio/examples/root.yaml +5 -0
- package/documentation/docs/manual/docs/seaf2drawio/examples/templates.yaml +55 -0
- package/documentation/docs/manual/docs/seaf2drawio/examples/transformation.yaml +19 -0
- package/documentation/docs/manual/docs/seaf2drawio/object_description.md +35 -0
- package/documentation/docs/manual/docs/seaf2drawio/root.yaml +12 -0
- package/documentation/docs/manual/docs/seaf2drawio/seaf2drawio.md +118 -0
- package/documentation/docs/manual/docs/smartants.md +583 -0
- package/documentation/docs/manual/docs/svg_inline.md +66 -0
- package/documentation/docs/manual/docs/swagger.md +52 -0
- package/documentation/docs/manual/docs/tables.md +264 -0
- package/documentation/docs/manual/docs/templates/example.drawio +43 -0
- package/documentation/docs/manual/docs/templates/test.svg +79 -0
- package/documentation/docs/manual/docs/templates.md +361 -0
- package/documentation/docs/manual/docs/toc.md +137 -0
- package/documentation/docs/manual/entities/bstages.md +43 -0
- package/documentation/docs/manual/entities/bundle.md +105 -0
- package/documentation/docs/manual/entities/entities.md +727 -0
- package/documentation/docs/manual/entities/images/id_errors.png +0 -0
- package/documentation/docs/manual/entities/images/landspace.jpeg +0 -0
- package/documentation/docs/manual/entities/images/menu-single.jpeg +0 -0
- package/documentation/docs/manual/entities/images/menu-tree.jpeg +0 -0
- package/documentation/docs/manual/entities/images/object_select.png +0 -0
- package/documentation/docs/manual/entities/images/problems.png +0 -0
- package/documentation/docs/manual/entities/images/select_inter.png +0 -0
- package/documentation/docs/manual/entities/images/stages.jpg +0 -0
- package/documentation/docs/manual/entities/images/suggests.png +0 -0
- package/documentation/docs/manual/entities/intro.md +73 -0
- package/documentation/docs/manual/entities/rules.md +35 -0
- package/documentation/docs/manual/functions/example.yaml +50 -0
- package/documentation/docs/manual/functions/functions.md +51 -0
- package/documentation/docs/manual/functions/root.yaml +39 -0
- package/documentation/docs/manual/images/jbps1.1.png +0 -0
- package/documentation/docs/manual/images/jbps1.png +0 -0
- package/documentation/docs/manual/images/jbps2.png +0 -0
- package/documentation/docs/manual/images/vsc1.png +0 -0
- package/documentation/docs/manual/imports.md +59 -0
- package/documentation/docs/manual/introduction.md +38 -0
- package/documentation/docs/manual/jsonata.md +268 -0
- package/documentation/docs/manual/plugin-settings.md +134 -0
- package/documentation/docs/manual/plugins/interface.md +226 -0
- package/documentation/docs/manual/plugins/introduction.md +256 -0
- package/documentation/docs/manual/plugins/root.yaml +51 -0
- package/documentation/docs/manual/role-model.md +80 -0
- package/documentation/docs/manual/root-cluster-import.md +82 -0
- package/documentation/docs/manual/root.yaml +199 -0
- package/documentation/docs/manual/rules/exceptions.md +20 -0
- package/documentation/docs/manual/rules/exreason.md +3 -0
- package/documentation/docs/manual/rules/root.yaml +58 -0
- package/documentation/docs/manual/rules/rules.md +8 -0
- package/documentation/docs/manual/rules/standard.md +3 -0
- package/documentation/docs/manual/rules/validators.md +109 -0
- package/documentation/docs/manual/technologies.md +49 -0
- package/documentation/docs/root.yaml +32 -0
- package/documentation/docs/sequence.puml +48 -0
- package/documentation/docs/welcome.md +3 -0
- package/documentation/entities/extentions/entity.yaml +136 -0
- package/documentation/entities/extentions/templates/people.md +4 -0
- package/documentation/entities/interactions/entity.yaml +412 -0
- package/documentation/entities/interactions/templates/blank.puml +18 -0
- package/documentation/entities/interactions/templates/bpmn.xml +59 -0
- package/documentation/entities/interactions/templates/tree.puml +11 -0
- package/documentation/entities/root.yaml +33 -0
- package/documentation/root.yaml +37 -0
- package/metamodel/dochub/entities/aspects/base.yaml +73 -0
- package/metamodel/dochub/entities/aspects/blank.yaml +65 -0
- package/metamodel/dochub/entities/aspects/components.yaml +52 -0
- package/metamodel/dochub/entities/aspects/contexts.yaml +57 -0
- package/metamodel/dochub/entities/aspects/docs.yaml +51 -0
- package/metamodel/dochub/entities/aspects/hierarchy.yaml +80 -0
- package/metamodel/dochub/entities/aspects/root.yaml +9 -0
- package/metamodel/dochub/entities/aspects/summary.yaml +64 -0
- package/metamodel/dochub/entities/aspects/templates/components.md +5 -0
- package/metamodel/dochub/entities/aspects/templates/hierarchy.puml +5 -0
- package/metamodel/dochub/entities/aspects/templates/summary.md +9 -0
- package/metamodel/dochub/entities/aspects/templates/tree.puml +5 -0
- package/metamodel/dochub/entities/aspects/tree.yaml +37 -0
- package/metamodel/dochub/entities/components/base.yaml +97 -0
- package/metamodel/dochub/entities/components/blank.yaml +64 -0
- package/metamodel/dochub/entities/components/contexts.yaml +55 -0
- package/metamodel/dochub/entities/components/docs.yaml +50 -0
- package/metamodel/dochub/entities/components/hierarchy.yaml +84 -0
- package/metamodel/dochub/entities/components/index.yaml +17 -0
- package/metamodel/dochub/entities/components/root.yaml +8 -0
- package/metamodel/dochub/entities/components/summary.yaml +58 -0
- package/metamodel/dochub/entities/components/symbol.yaml +113 -0
- package/metamodel/dochub/entities/components/templates/hierarchy.puml +5 -0
- package/metamodel/dochub/entities/components/templates/summary.md +8 -0
- package/metamodel/dochub/entities/components/templates/tree.puml +5 -0
- package/metamodel/dochub/entities/components/tree.yaml +38 -0
- package/metamodel/dochub/entities/contexts/base.yaml +197 -0
- package/metamodel/dochub/entities/contexts/plantuml.yaml +241 -0
- package/metamodel/dochub/entities/contexts/root.yaml +5 -0
- package/metamodel/dochub/entities/contexts/smartants.yaml +177 -0
- package/metamodel/dochub/entities/contexts/templates/template.puml +183 -0
- package/metamodel/dochub/entities/contexts/templates/tree.puml +5 -0
- package/metamodel/dochub/entities/contexts/tree.yaml +39 -0
- package/metamodel/dochub/entities/documents/base.yaml +73 -0
- package/metamodel/dochub/entities/documents/blank.yaml +28 -0
- package/metamodel/dochub/entities/documents/root.yaml +3 -0
- package/metamodel/dochub/entities/root.yaml +5 -0
- package/metamodel/dochub/functions/root.yaml +2 -0
- package/metamodel/dochub/functions/tools.yaml +46 -0
- package/metamodel/dochub/root.yaml +24 -0
- package/metamodel/dochub/rules/root.yaml +2 -0
- package/metamodel/dochub/rules/validators.yaml +144 -0
- package/metamodel/dochub/samples/01_components.yaml +23 -0
- package/metamodel/dochub/samples/02_contexts.yaml +23 -0
- package/metamodel/dochub/samples/03_documents.yaml +10 -0
- package/metamodel/dochub/samples/root.yaml +4 -0
- package/metamodel/dochub/samples/test.puml +17 -0
- package/metamodel/dochub.yaml +5 -0
- package/metamodel/docs/welcome.md +39 -0
- package/metamodel/root.yaml +8 -0
- package/package.json +29 -0
- package/plugin.html +1961 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# Базовое описание сущности "Contexts"
|
|
2
|
+
entities:
|
|
3
|
+
components:
|
|
4
|
+
title: Компоненты
|
|
5
|
+
config:
|
|
6
|
+
root_menu: Архитектура # Корневое меню представления компонентов
|
|
7
|
+
description: >
|
|
8
|
+
Архитектурные компоненты.
|
|
9
|
+
schema:
|
|
10
|
+
type: object
|
|
11
|
+
patternProperties:
|
|
12
|
+
"^[a-zA-Z][a-zA-Z0-9_-]*(\\.[a-zA-Z0-9][a-zA-Z0-9_-]*)*$":
|
|
13
|
+
type: object
|
|
14
|
+
properties:
|
|
15
|
+
title:
|
|
16
|
+
title: Название компонента
|
|
17
|
+
type: string
|
|
18
|
+
entity:
|
|
19
|
+
title: Представление компонента
|
|
20
|
+
type: string
|
|
21
|
+
required:
|
|
22
|
+
- title
|
|
23
|
+
- entity
|
|
24
|
+
additionalProperties: false
|
|
25
|
+
# Определяет пути к объектам сущности
|
|
26
|
+
objects:
|
|
27
|
+
component:
|
|
28
|
+
route: "/" # Путь к объектам компонента
|
|
29
|
+
title: Арх. компонент # Название объекта
|
|
30
|
+
# JSONata генератор символа в svg для представления в диаграммах.
|
|
31
|
+
# $params.subject - передается объект рендеринга. Может быть не определен. В этом случае, необходимо вернуть неспецифичный (общий) символ объекта.
|
|
32
|
+
# $ - Data Lake архитектуры. Может быть не определен, если Data Lake недоступен.
|
|
33
|
+
symbol: >
|
|
34
|
+
(
|
|
35
|
+
/* Обрабатываем входящие параметры */
|
|
36
|
+
$manifest := $;
|
|
37
|
+
$component := $params.subject.$spread()[0].*;
|
|
38
|
+
$defConfig := $manifest.entities.contexts.config;
|
|
39
|
+
|
|
40
|
+
/* Высота строки аспекта */
|
|
41
|
+
$rowHeight := 14;
|
|
42
|
+
/* Отступы */
|
|
43
|
+
$padding := 8;
|
|
44
|
+
/* Отступы */
|
|
45
|
+
$headerOffset := 12;
|
|
46
|
+
/* Ширину символа */
|
|
47
|
+
$fontWidth := 7;
|
|
48
|
+
/* Высота символа */
|
|
49
|
+
$fontHeight := 12;
|
|
50
|
+
|
|
51
|
+
/* Определяем заголовок */
|
|
52
|
+
$header := $component.title;
|
|
53
|
+
|
|
54
|
+
/* Определяем количество аспектов для вычисления высоты символа */
|
|
55
|
+
$aspectCount := $count($component.aspects);
|
|
56
|
+
|
|
57
|
+
/* Формируем массив аспектов */
|
|
58
|
+
$aspects := $component.aspects.(
|
|
59
|
+
$aspect := $lookup($manifest.aspects, $);
|
|
60
|
+
{
|
|
61
|
+
"id" : $,
|
|
62
|
+
"title": $aspect.title ? $aspect.title : $
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
|
|
66
|
+
/* Определяем максимальную длину текста для вычисления ширины символа */
|
|
67
|
+
$maxTitle := $max([$max($aspects.($length(title))), $length($header)]);
|
|
68
|
+
|
|
69
|
+
/* Вычисляем размеры символа */
|
|
70
|
+
$width := $maxTitle ? $maxTitle * $fontWidth + $padding * 2 : 64; /* Умножаем на ширину символа */
|
|
71
|
+
$height := ($aspectCount + 1) * $rowHeight + $padding * 2 + $headerOffset; /* Умножаем на высоту строки */
|
|
72
|
+
|
|
73
|
+
/* Генерируем символ */
|
|
74
|
+
'<svg fill="#000000" width="' & $width & 'px" height="' & $height & 'px" viewBox="0 0 ' & $width & ' ' & $height & '" version="1.1" xmlns="http://www.w3.org/2000/svg">'
|
|
75
|
+
& '<g>'
|
|
76
|
+
/* Создаем контейнер */
|
|
77
|
+
& '<rect width="' & $width & 'px" height="' & $height & 'px" fill=\"#eee\" stroke=\"#222\" rx="3" />'
|
|
78
|
+
/* Создаем заголовок */
|
|
79
|
+
& '<text x="50%" y="12" style="font-size:' & $fontHeight & '" fill="green" text-anchor="middle" dominant-baseline="middle" >' & $header & '</text>'
|
|
80
|
+
/* Заполняем аспектами */
|
|
81
|
+
& $join($map($aspects, function($v, $i) {(
|
|
82
|
+
'<a href=\"/architect/aspects/' & $v.id & '\" >'
|
|
83
|
+
& '<text x="6" y="' & ($i * $rowHeight + $padding + $rowHeight + $headerOffset) & '" style="font-size:' & $fontHeight & '" fill="blue">' & $v.title & '</text>'
|
|
84
|
+
& '</a>'
|
|
85
|
+
)}))
|
|
86
|
+
& '</g>'
|
|
87
|
+
& '</svg>';
|
|
88
|
+
)
|
|
89
|
+
menu: >
|
|
90
|
+
(
|
|
91
|
+
[
|
|
92
|
+
{
|
|
93
|
+
"link": "/entities/components/tree",
|
|
94
|
+
"location": entities.components.config.root_menu
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
)
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Бланк архитектурного компонента
|
|
2
|
+
entities:
|
|
3
|
+
components:
|
|
4
|
+
presentations:
|
|
5
|
+
blank:
|
|
6
|
+
title: Карточка компонента
|
|
7
|
+
params:
|
|
8
|
+
type: object
|
|
9
|
+
properties:
|
|
10
|
+
dh-component-id:
|
|
11
|
+
title: Идентификатор компонента
|
|
12
|
+
type: string
|
|
13
|
+
required:
|
|
14
|
+
- dh-component-id
|
|
15
|
+
type: mkr-grid
|
|
16
|
+
source: >
|
|
17
|
+
(
|
|
18
|
+
/* Получаем идентификатор компонента для карточки */
|
|
19
|
+
$component_id := $params."dh-component-id";
|
|
20
|
+
|
|
21
|
+
/* Получаем виджеты, которые нужно отобразить */
|
|
22
|
+
$widgets := entities.components.presentations.blank.widgets;
|
|
23
|
+
$wleft := $widgets.*[align="<"]^(order);
|
|
24
|
+
$wright := $widgets.*[align=">"]^(order);
|
|
25
|
+
$wcenter := $widgets.*[$not(align=">" or align="<")]^(order);
|
|
26
|
+
|
|
27
|
+
/* Функция генерации профиля виджета для секции разметки */
|
|
28
|
+
$makeWidget := function($widgets) {(
|
|
29
|
+
[$widgets.{
|
|
30
|
+
"title": title,
|
|
31
|
+
"icon": icon,
|
|
32
|
+
"style": style ? style : {},
|
|
33
|
+
"src": "@entity/components/" & presentation & "?component=" & $component_id
|
|
34
|
+
}];
|
|
35
|
+
)};
|
|
36
|
+
|
|
37
|
+
/* Строим разметку страницы */
|
|
38
|
+
{
|
|
39
|
+
"type": "rows",
|
|
40
|
+
"items": $append(
|
|
41
|
+
[
|
|
42
|
+
{
|
|
43
|
+
"type": "columns",
|
|
44
|
+
"items": [
|
|
45
|
+
{
|
|
46
|
+
"type": "rows",
|
|
47
|
+
"width": "40%",
|
|
48
|
+
/* Строим список виджетов левой секции */
|
|
49
|
+
"items": $makeWidget($wleft)
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"type": "rows",
|
|
53
|
+
"width": "60%",
|
|
54
|
+
/* Строим список виджетов правой секции */
|
|
55
|
+
"items": $makeWidget($wright)
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
/* Добавляем центральные виджеты */
|
|
61
|
+
$makeWidget($wcenter)
|
|
62
|
+
)
|
|
63
|
+
}
|
|
64
|
+
)
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Сводка по архитектурному компоненту
|
|
2
|
+
entities:
|
|
3
|
+
components:
|
|
4
|
+
presentations:
|
|
5
|
+
# Встраиваемся в презентацию бланка
|
|
6
|
+
blank:
|
|
7
|
+
# Добавляем собственный виджет
|
|
8
|
+
widgets:
|
|
9
|
+
contexts: # Идентификатор виджета
|
|
10
|
+
# Иконка виджета
|
|
11
|
+
icon: description
|
|
12
|
+
# Название виджета
|
|
13
|
+
title: Контексты
|
|
14
|
+
# Идентификатор презентации, которая будет использоваться в виджете
|
|
15
|
+
presentation: contexts
|
|
16
|
+
# Расположение слева
|
|
17
|
+
align: ">"
|
|
18
|
+
# Порядок расположения
|
|
19
|
+
order: 10
|
|
20
|
+
# Определяем стиль виджета
|
|
21
|
+
style:
|
|
22
|
+
border: true
|
|
23
|
+
min-height: 300px
|
|
24
|
+
margin: 4px
|
|
25
|
+
contexts:
|
|
26
|
+
title: Контексты где встречается компонент
|
|
27
|
+
params:
|
|
28
|
+
type: object
|
|
29
|
+
properties:
|
|
30
|
+
component:
|
|
31
|
+
title: Идентификатор компонента
|
|
32
|
+
type: string
|
|
33
|
+
required:
|
|
34
|
+
- component
|
|
35
|
+
type: mkr-select
|
|
36
|
+
source: >
|
|
37
|
+
(
|
|
38
|
+
$component_id := $params.component;
|
|
39
|
+
$append(
|
|
40
|
+
[
|
|
41
|
+
{
|
|
42
|
+
"title": "SELF",
|
|
43
|
+
"src": "@entity/contexts/plantuml?dh-context-id=SELF&componentId=" & $component_id & "&dh-focus-id=" & $component_id
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
[$distinct([contexts.$spread().(
|
|
47
|
+
$CONTEXT := $;
|
|
48
|
+
$ID := $keys()[0];
|
|
49
|
+
*.components[$wcard($component_id, $)].{
|
|
50
|
+
"src": "@entity/contexts/plantuml?dh-context-id=" & $ID & "&dh-focus-id=" & $component_id,
|
|
51
|
+
"title": $CONTEXT.*.title ? $CONTEXT.*.title : $ID
|
|
52
|
+
}
|
|
53
|
+
)])]^(title)
|
|
54
|
+
)
|
|
55
|
+
)
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Сводка по архитектурному компоненту
|
|
2
|
+
entities:
|
|
3
|
+
components:
|
|
4
|
+
presentations:
|
|
5
|
+
# Встраиваемся в презентацию бланка
|
|
6
|
+
blank:
|
|
7
|
+
# Добавляем собственный виджет
|
|
8
|
+
widgets:
|
|
9
|
+
docs: # Идентификатор виджета
|
|
10
|
+
# Иконка виджета
|
|
11
|
+
icon: description
|
|
12
|
+
# Название виджета
|
|
13
|
+
title: Документы
|
|
14
|
+
# Идентификатор презентации, которая будет использоваться в виджете
|
|
15
|
+
presentation: docs
|
|
16
|
+
# Расположение слева
|
|
17
|
+
align: "<"
|
|
18
|
+
# Порядок расположения
|
|
19
|
+
order: 20
|
|
20
|
+
# Определяем стиль виджета
|
|
21
|
+
style:
|
|
22
|
+
border: true
|
|
23
|
+
padding: 12px
|
|
24
|
+
margin: 4px
|
|
25
|
+
docs:
|
|
26
|
+
title: Документы
|
|
27
|
+
params:
|
|
28
|
+
type: object
|
|
29
|
+
properties:
|
|
30
|
+
component:
|
|
31
|
+
title: Идентификатор компонента
|
|
32
|
+
type: string
|
|
33
|
+
required:
|
|
34
|
+
- component
|
|
35
|
+
type: mkr-tree
|
|
36
|
+
source: >
|
|
37
|
+
(
|
|
38
|
+
$COMPONENT_ID := $params.component;
|
|
39
|
+
$MANIFEST := $;
|
|
40
|
+
[docs.$spread().(
|
|
41
|
+
$LINK := "/docs/" & $keys()[0];
|
|
42
|
+
$COMPONENT_ID in *.subjects ?
|
|
43
|
+
[$[$COMPONENT_ID in *.subjects]
|
|
44
|
+
{
|
|
45
|
+
"location": *.location,
|
|
46
|
+
"title": *.description,
|
|
47
|
+
"link": $LINK
|
|
48
|
+
}] : undefined;
|
|
49
|
+
)[location]^(location)];
|
|
50
|
+
)
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Сводка по архитектурному компоненту
|
|
2
|
+
entities:
|
|
3
|
+
components:
|
|
4
|
+
presentations:
|
|
5
|
+
# Встраиваемся в презентацию бланка
|
|
6
|
+
blank:
|
|
7
|
+
# Добавляем собственный виджет
|
|
8
|
+
widgets:
|
|
9
|
+
hierarchy: # Идентификатор виджета
|
|
10
|
+
# Иконка виджета
|
|
11
|
+
icon: description
|
|
12
|
+
# Название виджета
|
|
13
|
+
title: Иерархия компонента
|
|
14
|
+
# Идентификатор презентации, которая будет использоваться в виджете
|
|
15
|
+
presentation: hierarchy
|
|
16
|
+
# Расположение слева
|
|
17
|
+
align: "<"
|
|
18
|
+
# Порядок расположения
|
|
19
|
+
order: 30
|
|
20
|
+
# Определяем стиль виджета
|
|
21
|
+
style:
|
|
22
|
+
border: true
|
|
23
|
+
margin: 4px
|
|
24
|
+
hierarchy:
|
|
25
|
+
title: Иерархия компонента
|
|
26
|
+
params:
|
|
27
|
+
type: object
|
|
28
|
+
properties:
|
|
29
|
+
component:
|
|
30
|
+
title: Идентификатор компонента
|
|
31
|
+
type: string
|
|
32
|
+
required:
|
|
33
|
+
- component
|
|
34
|
+
type: plantuml
|
|
35
|
+
template: templates/hierarchy.puml
|
|
36
|
+
source: >
|
|
37
|
+
(
|
|
38
|
+
/* Запоминаем ссылки на контексты и объекты */
|
|
39
|
+
$CONTEXTS := contexts;
|
|
40
|
+
$COMPONENTS := components;
|
|
41
|
+
/* Определяем фильтр для выделяемой иерархической структуры */
|
|
42
|
+
$FILTER := $params.component;
|
|
43
|
+
$FILTER_LN := $length($FILTER);
|
|
44
|
+
/* Определяем иерархию владельцев */
|
|
45
|
+
$PARENTS := $FILTER.$split(".")~>$map(function($v, $LIMIT, $a){(
|
|
46
|
+
$a~>$map(function($v, $i) { $i <= $LIMIT ? $v})~>$join(".");
|
|
47
|
+
)});
|
|
48
|
+
$merge((
|
|
49
|
+
/* Выбираем их компонентов нужные для построения диаграммы */
|
|
50
|
+
[components.$spread().(
|
|
51
|
+
$ID := $keys()[0];
|
|
52
|
+
$PREFIX := $substring($ID, 0, $FILTER_LN + 1);
|
|
53
|
+
$FILTER_LN = 0
|
|
54
|
+
or ($PREFIX = $FILTER) or ($PREFIX = ($FILTER & "."))
|
|
55
|
+
or ($ID in $PARENTS) ? $ID;
|
|
56
|
+
)]
|
|
57
|
+
).(
|
|
58
|
+
/* Готовим полный массив идентификаторов */
|
|
59
|
+
($~>$split(".")~>$map(function($v, $limit, $struct) {
|
|
60
|
+
{
|
|
61
|
+
$struct~>$map(function($pice, $index) {
|
|
62
|
+
$index <= $limit ? $pice
|
|
63
|
+
})~>$join("."): true
|
|
64
|
+
}
|
|
65
|
+
}))
|
|
66
|
+
)
|
|
67
|
+
).$spread().(
|
|
68
|
+
/* Готовим массив для вывода */
|
|
69
|
+
$ID := $keys()[0];
|
|
70
|
+
$CONTEXT := $lookup($CONTEXTS, $ID);
|
|
71
|
+
$COMPONENT := $lookup($COMPONENTS, $ID);
|
|
72
|
+
{
|
|
73
|
+
"id": $ID,
|
|
74
|
+
"title": $COMPONENT.title ? $COMPONENT.title : (
|
|
75
|
+
$CONTEXT.title ? $CONTEXT.title : $reverse($split($ID, "."))[0]
|
|
76
|
+
),
|
|
77
|
+
"link": $CONTEXT ? "/architect/contexts/" & $ID : "/architect/components/" & $ID
|
|
78
|
+
}
|
|
79
|
+
)^(id).(
|
|
80
|
+
/* Готовим PlantUML код для MindMap */
|
|
81
|
+
$color := id = $FILTER ? "[#FFBBCC]" : "";
|
|
82
|
+
"*" & $join($split(id, ".").("*")) & $color & " [[" & link & " " & title & "]]"
|
|
83
|
+
)~>$join("\n");
|
|
84
|
+
)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Базовое описание сущности "Contexts"
|
|
2
|
+
entities:
|
|
3
|
+
components:
|
|
4
|
+
indexes:
|
|
5
|
+
main: >
|
|
6
|
+
(
|
|
7
|
+
[
|
|
8
|
+
{
|
|
9
|
+
"title": "Здесь текст для вывода пользователю",
|
|
10
|
+
"content" : "некий текст",
|
|
11
|
+
"link": "здесь ссылка на объект по данной записи",
|
|
12
|
+
"sources": [
|
|
13
|
+
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
)
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Сводка по архитектурному компоненту
|
|
2
|
+
entities:
|
|
3
|
+
components:
|
|
4
|
+
presentations:
|
|
5
|
+
# Встраиваемся в презентацию бланка
|
|
6
|
+
blank:
|
|
7
|
+
# Добавляем собственный виджет
|
|
8
|
+
widgets:
|
|
9
|
+
summary: # Идентификатор виджета
|
|
10
|
+
# Иконка виджета
|
|
11
|
+
icon: settings
|
|
12
|
+
# Название виджета
|
|
13
|
+
title: Сводка по компоненту
|
|
14
|
+
# Идентификатор презентации, которая будет использоваться в виджете
|
|
15
|
+
presentation: summary
|
|
16
|
+
# Расположение слева
|
|
17
|
+
align: "<"
|
|
18
|
+
# Порядок расположения
|
|
19
|
+
order: 10
|
|
20
|
+
# Определяем стиль виджета
|
|
21
|
+
style:
|
|
22
|
+
margin: 4px
|
|
23
|
+
border: true
|
|
24
|
+
summary:
|
|
25
|
+
title: Сводка по компоненту
|
|
26
|
+
params:
|
|
27
|
+
type: object
|
|
28
|
+
properties:
|
|
29
|
+
component:
|
|
30
|
+
title: Идентификатор компонента
|
|
31
|
+
type: string
|
|
32
|
+
required:
|
|
33
|
+
- component
|
|
34
|
+
type: markdown
|
|
35
|
+
template: templates/summary.md
|
|
36
|
+
source: >
|
|
37
|
+
(
|
|
38
|
+
$COMPONENT_ID := $params.component;
|
|
39
|
+
$MANIFEST := $;
|
|
40
|
+
$lookup(components, $COMPONENT_ID).(
|
|
41
|
+
$COMPONENT := $;
|
|
42
|
+
$ENTITY := $.entity ? $.entity : "component";
|
|
43
|
+
$FORM := $MANIFEST.forms[entity.$contains($ENTITY)].fields;
|
|
44
|
+
$append([
|
|
45
|
+
{
|
|
46
|
+
"title": "Идентификатор",
|
|
47
|
+
"content": $COMPONENT_ID
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"title": "Название",
|
|
51
|
+
"content": title
|
|
52
|
+
}
|
|
53
|
+
], $merge($FORM).$spread().{
|
|
54
|
+
"title": $.*.title,
|
|
55
|
+
"content": $lookup($COMPONENT, $.$keys())
|
|
56
|
+
});
|
|
57
|
+
)
|
|
58
|
+
)
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# Расширение сущности "Component" для генерации символов представления компонентов
|
|
2
|
+
entities:
|
|
3
|
+
components:
|
|
4
|
+
api:
|
|
5
|
+
|
|
6
|
+
# Представления контекстов в PlantUML
|
|
7
|
+
presentations:
|
|
8
|
+
symbol:
|
|
9
|
+
title: Символ компонента
|
|
10
|
+
params:
|
|
11
|
+
title: Требуемые параметры для презентации
|
|
12
|
+
type: object
|
|
13
|
+
properties:
|
|
14
|
+
"dh-context-id":
|
|
15
|
+
title: Идентификатор контекста
|
|
16
|
+
type: string
|
|
17
|
+
pattern: ^[a-zA-Z][a-zA-Z0-9_-]*(\.[a-zA-Z][a-zA-Z0-9_-]*)*$
|
|
18
|
+
required:
|
|
19
|
+
- dh-context-id
|
|
20
|
+
type: symbol # Указываем специальный тип презентации - "Символ"
|
|
21
|
+
$constructor: > # Переносим необходимую информацию из контекста в презентацию
|
|
22
|
+
(
|
|
23
|
+
$id := $params."dh-context-id";
|
|
24
|
+
$context := $lookup(contexts, $id);
|
|
25
|
+
$prototype := entities.contexts.presentations.plantuml;
|
|
26
|
+
|
|
27
|
+
/* Преобразует относительные пути к файлам в прямые*/
|
|
28
|
+
$toDirectRes := function($value) {
|
|
29
|
+
$substring($value, 0, 4) = "res:" ? $value : "res://contexts/" & $id & "#" & $value
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/* Если явно указан puml файл, просто рендерим его */
|
|
33
|
+
$substring($context.uml, -5) = ".puml" ? (
|
|
34
|
+
{
|
|
35
|
+
"type": "plantuml",
|
|
36
|
+
"source": $toDirectRes($context.uml)
|
|
37
|
+
}
|
|
38
|
+
) : (
|
|
39
|
+
$result := $context.source ? ($merge([$prototype, {
|
|
40
|
+
"origin": { "_source": $context.source, "_origin": "($)" }
|
|
41
|
+
}])) : $prototype;
|
|
42
|
+
|
|
43
|
+
/* Если в контексте переопределен шаблон, используем его по прямой ссылке */
|
|
44
|
+
$result := $context.template
|
|
45
|
+
? $merge([$result, { "template": $toDirectRes($context.template) }])
|
|
46
|
+
: $result;
|
|
47
|
+
)
|
|
48
|
+
)
|
|
49
|
+
template: templates/template.puml
|
|
50
|
+
source: >
|
|
51
|
+
(
|
|
52
|
+
$id := $params."dh-context-id";
|
|
53
|
+
/* Получаем доступ к оригинальным данным */
|
|
54
|
+
$manifest := _origin ? _origin : $;
|
|
55
|
+
/* Получаем контекст */
|
|
56
|
+
$context := $lookup($manifest.contexts, $id);
|
|
57
|
+
/* Если в контексте задан источник, берем его за основу */
|
|
58
|
+
$manifest := _source ? _source : $;
|
|
59
|
+
|
|
60
|
+
$isExtraLinks := $not($string($context."extra-links") = "false");
|
|
61
|
+
|
|
62
|
+
/* Получаем коллекцию дефолтных вспомогательных функций */
|
|
63
|
+
$defFunctions := $manifest.entities.contexts.api;
|
|
64
|
+
|
|
65
|
+
/* Получаем коллекцию дефолтных параметров */
|
|
66
|
+
$defConfig := $manifest.entities.contexts.config;
|
|
67
|
+
|
|
68
|
+
/* Определяем движок рендеринга */
|
|
69
|
+
$renderCore := $lookup({
|
|
70
|
+
"elk": "!pragma layout elk",
|
|
71
|
+
"smetana": "!pragma layout smetana"
|
|
72
|
+
}, $defConfig.renderCore);
|
|
73
|
+
|
|
74
|
+
/* Формируем заголовок */
|
|
75
|
+
$header := "$Header(\"" & ($context.title ? $context.title : $id ) & "\", , , )\n";
|
|
76
|
+
|
|
77
|
+
/* Получаем все компоненты входящие в контекст */
|
|
78
|
+
$components := $eval($defFunctions.fetchComponents, {
|
|
79
|
+
"manifest": $manifest,
|
|
80
|
+
"contextId": $id,
|
|
81
|
+
"extra-links": $isExtraLinks,
|
|
82
|
+
"componentId": $params.componentId
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
/* Генерируем области */
|
|
86
|
+
$areas := $eval($defFunctions.fetchAreas, {
|
|
87
|
+
"components": $components
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
/* Генерируем PlantUML диаграмму компонентов */
|
|
91
|
+
$elements := $eval($defFunctions.makePumlComponentDiagram, {
|
|
92
|
+
"manifest": $manifest,
|
|
93
|
+
"areas": $areas,
|
|
94
|
+
"components": $components
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
/* Получаем список связей */
|
|
98
|
+
$links := $eval($defFunctions.fetchLinks, {
|
|
99
|
+
"components": $components
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
/* Генерируем код связей */
|
|
103
|
+
$linksCode := $eval($defFunctions.makePumlComponentsLinks, {
|
|
104
|
+
"links": $links
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
/* Готовим данные для передачи в шаблон */
|
|
108
|
+
{
|
|
109
|
+
"renderCore": $renderCore,
|
|
110
|
+
"presentation": $defConfig.defaultPresentation,
|
|
111
|
+
"code": $header & $elements & $linksCode
|
|
112
|
+
}
|
|
113
|
+
)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Сводка по архитектурному аспекту
|
|
2
|
+
entities:
|
|
3
|
+
components:
|
|
4
|
+
presentations:
|
|
5
|
+
tree:
|
|
6
|
+
title: Иерархия компонентов
|
|
7
|
+
type: plantuml
|
|
8
|
+
template: templates/tree.puml
|
|
9
|
+
source: >
|
|
10
|
+
(
|
|
11
|
+
$COMPONENTS := components;
|
|
12
|
+
$merge((
|
|
13
|
+
/* Выбираем из компонентов нужные для построения диаграммы */
|
|
14
|
+
[$COMPONENTS.$spread().(
|
|
15
|
+
$keys()[0]~>$split(".")~>$map(function($v, $limit, $struct) {
|
|
16
|
+
{
|
|
17
|
+
$struct~>$map(function($pice, $index) {
|
|
18
|
+
$index <= $limit ? $pice
|
|
19
|
+
})~>$join("."): true
|
|
20
|
+
}
|
|
21
|
+
})
|
|
22
|
+
)]
|
|
23
|
+
)
|
|
24
|
+
).$spread().(
|
|
25
|
+
/* Готовим массив для вывода */
|
|
26
|
+
$ID := $keys()[0];
|
|
27
|
+
$COMPONENT := $lookup($COMPONENTS, $ID);
|
|
28
|
+
{
|
|
29
|
+
"id": $ID,
|
|
30
|
+
"title": $COMPONENT.title ? $COMPONENT.title : $ID,
|
|
31
|
+
"link": "/entities/components/blank?dh-component-id=" & $ID
|
|
32
|
+
}
|
|
33
|
+
)^(id).(
|
|
34
|
+
/* Готовим PlantUML код для MindMap */
|
|
35
|
+
$content := " [[" & link & " " & title & "]]";
|
|
36
|
+
"*" & $join($split(id, ".").("*")) & $content
|
|
37
|
+
)~>$join("\n");
|
|
38
|
+
)
|