Skip to content

Commit 54de5bb

Browse files
committed
FuntionalityChange
1 parent f25f66e commit 54de5bb

18 files changed

+51
-108
lines changed

Dependency-Graph/app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "3c9a4c22-42f6-4e8f-8b96-744c7fef331f",
33
"name": "Dependency-Graph",
44
"publisher": "ANJ",
5-
"version": "3.6.0.0",
5+
"version": "3.8.0.3",
66
"brief": "App to generate the dependency tree",
77
"description": "App to generate the dependency tree of the extensions we have installed.",
88
"privacyStatement": "https://github.com/NovoaDev/Dependency-Graph-BCExt",

Dependency-Graph/src/Base/MarkdownFactboxANJ.Page.al

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@ page 80805 MarkdownFactbox_ANJ
77
Caption = 'Markdown Text', comment = 'ESP="Texto Markdown"';
88
Editable = false;
99
PageType = CardPart;
10-
UsageCategory = Administration;
10+
UsageCategory = None;
1111

1212
layout
1313
{
1414
area(Content)
1515
{
1616
field(MarkdownText; MarkdownText)
1717
{
18+
Editable = false;
1819
MultiLine = true;
1920
ShowCaption = false;
2021
}

Dependency-Graph/src/ControlAddinViewer/MarkdownViewerANJ.ControlAddin.al

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
/// </summary>
44
controladdin MarkdownViewer_ANJ
55
{
6-
HorizontalStretch = true;
6+
HorizontalShrink = true;
7+
RequestedHeight = 600;
8+
RequestedWidth = 650;
79
Scripts = 'src\ControlAddinViewer\Scripts.js', 'https://cdnjs.cloudflare.com/ajax/libs/mermaid/9.3.0/mermaid.min.js';
810
StartupScript = 'src\ControlAddinViewer\Start.js';
9-
VerticalStretch = true;
10-
11+
StyleSheets = 'src\ControlAddinViewer\Style.css';
12+
VerticalShrink = true;
1113

1214
/// <summary>
1315
/// Ready.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/// <summary>
2+
/// ControlAddIn "MarkdownViewer_ANJ._ANJ"
3+
/// </summary>
4+
controladdin MarkdownViewerFS_ANJ
5+
{
6+
HorizontalStretch = true;
7+
Scripts = 'src\ControlAddinViewer\Scripts.js', 'https://cdnjs.cloudflare.com/ajax/libs/mermaid/9.3.0/mermaid.min.js';
8+
StartupScript = 'src\ControlAddinViewer\Start.js';
9+
VerticalStretch = true;
10+
11+
12+
/// <summary>
13+
/// Ready.
14+
/// </summary>
15+
event Ready();
16+
17+
/// <summary>
18+
/// Draw.
19+
/// </summary>
20+
/// <param name="Markdown">Text.</param>
21+
procedure Draw(Markdown: Text);
22+
}

Dependency-Graph/src/ControlAddinViewer/Scripts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ https://www.hougaard.com/
99
function Draw(Markdown) {
1010
try {
1111
const insertSvg = function (svgCode, bindFunctions) {
12-
document.getElementById('controlAddIn').innerHTML = svgCode;
12+
document.getElementById('controlAddIn').innerHTML = '<div class=\'MermaidDiv\'>' + svgCode + '</div>';
1313
};
1414
mermaid.mermaidAPI.render('chart', Markdown, insertSvg);
1515
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
iframe {
2+
margin: 0 auto;
3+
}
4+
5+
.MermaidDiv {
6+
width: 100%;
7+
height: auto;
8+
word-wrap: break-word;
9+
padding-left: 1%;
10+
padding-right: 1;
11+
}

Dependency-Graph/src/Markdown/MarkdownViewerANJ.Page.al

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ page 80804 MarkdownViewer_ANJ
4040
begin
4141
CurrPage.MarkdownViewer_ANJ.Draw(Markdown);
4242
end;
43+
4344
/// <summary>
44-
/// Draw.
45+
/// SetMarkdown.
4546
/// </summary>
4647
/// <param name="AuxMarkdown">Text.</param>
4748
internal procedure SetMarkdown(AuxMarkdown: Text)

Dependency-Graph/src/Markdown/MarkdownViewerFullANJ.Page.al

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ page 80806 MarkdownViewerFull_ANJ
1212
{
1313
area(Content)
1414
{
15-
usercontrol(MarkdownViewer_ANJ; MarkdownViewer_ANJ)
15+
usercontrol(MarkdownViewerFS_ANJ; MarkdownViewerFS_ANJ)
1616
{
1717
}
1818
}
@@ -23,7 +23,7 @@ page 80806 MarkdownViewerFull_ANJ
2323
MarkdownMermaidFieldID: Integer;
2424
begin
2525
MarkdownMermaidFieldID := 15;
26-
CurrPage.MarkdownViewer_ANJ.Draw(MarkdownMgmt.GetMarkdown(MarkdownMermaidFieldID));
26+
CurrPage.MarkdownViewerFS_ANJ.Draw(MarkdownMgmt.GetMarkdown(MarkdownMermaidFieldID));
2727
end;
2828

2929
var

README.es-ES.md

Lines changed: 0 additions & 72 deletions
This file was deleted.

README.md

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Dependency Graph
2-
[![in](https://img.shields.io/badge/lang-en-pink.svg)](https://github.com/NovoaDev/Dependency-Graph-BCExt/blob/main/README.md)
3-
[![en](https://img.shields.io/badge/lang-es-black.svg)](https://github.com/NovoaDev/Dependency-Graph-BCExt/blob/main/README.es-ES.md)
4-
52
Small tool designed to create a graph showing installed extensions and their respective dependencies, all from the **Business Central** environment in which the extension is running. In addition, it allows you to preview and download the generated text to easily add it to the client's documentation in Markdown format. <br> <br>
63
**PS:** <br>
74
Although there are numerous more advanced tools available, this one has been created for the simple purpose of practice, but it could prove useful for other users.
85

9-
## Prerequisites
6+
## Usage
7+
![Usage.gif](/res/Usage.gif.png)
8+
9+
## Previous configuration
1010
### Azure
1111
#### Create App registrations
1212
**Supported account types:** <br>
@@ -48,26 +48,4 @@ Features to include for chart generation: <br>
4848
Historical.
4949

5050
- Dependency graph <br>
51-
Action to access the data generation page for the graph.
52-
53-
## Show in dependency graph page
54-
![3ShowInDG](/res/3ShowInDG.png)
55-
### Extensions subpage
56-
List of installed extensions. We can modify the field **Display name** and **Show in chart**. Every time we uncheck the **Show in graph** option of an extension with dependencies, we will have to generate the data from the relationship table again. This is done by the action on the subpage named **Update Relationship Table**.
57-
58-
### Relationships subpage
59-
List of relationships between extensions. We can modify the **Link text** field to add a text between dependencies and **Show in graphic**.
60-
61-
### Actions
62-
#### Generate data
63-
The button generates the data in the intermediate tables that are related to the subpages corresponding to the **extensions** and **relationships** sections. These tables are the ones we will use to customize the graph.
64-
### Display dependency graph
65-
The button will open a new page where we can see the graph as a draft.
66-
![4DGV.png](/res/4DGV.png)
67-
68-
### Download Markdown as a .md
69-
The button will download an .md file with the content of the chart, which you can easily add to any document.
70-
![5DPDownload](/res/5DPDownload.png)
71-
72-
**Note:** <br>
73-
Both for the action of viewing and downloading the graph, it will be generated using the data found in the extensions and relationships subpages, which must be marked with the Show in graph option.
51+
Action to access the data generation page for the graph.

0 commit comments

Comments
 (0)