-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #371 from RabotaRu/omm-menu
Omm menu
- Loading branch information
Showing
15 changed files
with
188 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
imports: | ||
- base.yaml | ||
- tree.yaml | ||
- blank.yaml | ||
- contexts.yaml | ||
- summary.yaml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@startwbs | ||
* Аспекты | ||
{{&.}} | ||
@endwbs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Сводка по архитектурному аспекту | ||
entities: | ||
aspects: | ||
presentations: | ||
tree: | ||
title: Иерархия аспектов | ||
type: plantuml | ||
template: templates/tree.puml | ||
source: > | ||
( | ||
$ASPECTS := aspects; | ||
$merge(( | ||
[$ASPECTS.$spread().( | ||
$keys()[0]~>$split(".")~>$map(function($v, $limit, $struct) { | ||
{ | ||
$struct~>$map(function($pice, $index) { | ||
$index <= $limit ? $pice | ||
})~>$join("."): true | ||
} | ||
}) | ||
)] | ||
) | ||
).$spread().( | ||
/* Готовим массив для вывода */ | ||
$ID := $keys()[0]; | ||
$ASPECT := $lookup($ASPECTS, $ID); | ||
{ | ||
"id": $ID, | ||
"title": $ASPECT.title ? $ASPECT.title : $ID, | ||
"link": "/entities/aspects/blank?dh-aspect-id=" & $ID | ||
} | ||
)^(id).( | ||
/* Готовим PlantUML код для MindMap */ | ||
$content := " [[" & link & " " & title & "]]"; | ||
"*" & $join($split(id, ".").("*")) & $content | ||
)~>$join("\n"); | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,5 +86,10 @@ entities: | |
) | ||
menu: > | ||
( | ||
[] | ||
[ | ||
{ | ||
"link": "/entities/components/tree", | ||
"location": "Архитектура" | ||
} | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
imports: | ||
- base.yaml | ||
- tree.yaml | ||
- blank.yaml | ||
- summary.yaml | ||
- docs.yaml | ||
|
5 changes: 5 additions & 0 deletions
5
public/metamodel/dochub/entities/components/templates/tree.puml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@startwbs | ||
* Компоненты | ||
{{&.}} | ||
@endwbs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Сводка по архитектурному аспекту | ||
entities: | ||
components: | ||
presentations: | ||
tree: | ||
title: Иерархия компонентов | ||
type: plantuml | ||
template: templates/tree.puml | ||
source: > | ||
( | ||
$COMPONENTS := components; | ||
$merge(( | ||
/* Выбираем из компонентов нужные для построения диаграммы */ | ||
[$COMPONENTS.$spread().( | ||
$keys()[0]~>$split(".")~>$map(function($v, $limit, $struct) { | ||
{ | ||
$struct~>$map(function($pice, $index) { | ||
$index <= $limit ? $pice | ||
})~>$join("."): true | ||
} | ||
}) | ||
)] | ||
) | ||
).$spread().( | ||
/* Готовим массив для вывода */ | ||
$ID := $keys()[0]; | ||
$COMPONENT := $lookup($COMPONENTS, $ID); | ||
{ | ||
"id": $ID, | ||
"title": $COMPONENT.title ? $COMPONENT.title : $ID, | ||
"link": "/entities/components/blank?dh-component-id=" & $ID | ||
} | ||
)^(id).( | ||
/* Готовим PlantUML код для MindMap */ | ||
$content := " [[" & link & " " & title & "]]"; | ||
"*" & $join($split(id, ".").("*")) & $content | ||
)~>$join("\n"); | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
imports: | ||
- base.yaml | ||
- plantuml.yaml | ||
- smartants.yaml | ||
- smartants.yaml | ||
- tree.yaml |
5 changes: 5 additions & 0 deletions
5
public/metamodel/dochub/entities/contexts/templates/tree.puml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@startwbs | ||
* Контексты | ||
{{&.}} | ||
@endwbs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Сводка по архитектурному аспекту | ||
entities: | ||
contexts: | ||
presentations: | ||
tree: | ||
title: Иерархия контекстов | ||
type: plantuml | ||
template: templates/tree.puml | ||
source: > | ||
( | ||
$CONTEXTS := contexts; | ||
/* Получаем нужную презентацию из конфигурации */ | ||
$presentation := entities.contexts.config.defaultPresentation; | ||
$merge(( | ||
[$CONTEXTS.$spread().( | ||
$keys()[0]~>$split(".")~>$map(function($v, $limit, $struct) { | ||
{ | ||
$struct~>$map(function($pice, $index) { | ||
$index <= $limit ? $pice | ||
})~>$join("."): true | ||
} | ||
}) | ||
)] | ||
) | ||
).$spread().( | ||
/* Готовим массив для вывода */ | ||
$ID := $keys()[0]; | ||
$CONTEXT := $lookup($CONTEXTS, $ID); | ||
{ | ||
"id": $ID, | ||
"title": $CONTEXT.title ? $CONTEXT.title : $ID, | ||
"link": "/entities/contexts/" & $presentation & "?dh-context-id=" & $ID | ||
} | ||
)^(id).( | ||
/* Готовим PlantUML код для MindMap */ | ||
$content := " [[" & link & " " & title & "]]"; | ||
"*" & $join($split(id, ".").("*")) & $content | ||
)~>$join("\n"); | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters