Skip to content

Commit 5ebb4b8

Browse files
committed
Updated diagrams
1 parent 0dbe7b8 commit 5ebb4b8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+42
-3
lines changed

docs/Requirements.md

+9
60.8 KB
282 KB
-54.3 KB
Binary file not shown.
-212 KB
Binary file not shown.
67.2 KB
227 KB
Binary file not shown.
-368 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-48.4 KB
Binary file not shown.
-189 KB
Binary file not shown.
-52.6 KB
Binary file not shown.
-148 KB
Binary file not shown.
Binary file not shown.
49.4 KB
242 KB
-44.5 KB
105 KB
307 KB

structurizr/ng2react-core.dsl

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
typescript = component "Typescript" "AST Parsing" "JavaScript" "External"
22
ng2react_core = component "@ng2react/core" "Core business logic" "JavaScript" {
33
this -> typescript "Uses"
4-
this -> openAi "Makes API calls to" "JSON/HTTPS"
4+
// this -> openAi "Makes API calls to" "JSON/HTTPS"
5+
this -> openAi.gpt "Makes API calls to" "JSON/HTTPS"
56
this -> filesystem "Reads from"
67
}

structurizr/structurizr.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
#structurizr.editable=false
1+
structurizr.editable=false

structurizr/workspace.dsl

+30-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ workspace "ng2react" "A tool that converts AngularJS components to React using O
22
!docs ./arc42
33
!identifiers hierarchical
44
model {
5-
openAi = softwareSystem "GPT-4" "OpenAI API" "AI"
5+
openAi = softwareSystem "OpenAI" "OpenAI API" "AI" {
6+
gpt = container "GPT-4" "LLM" "" "AI"
7+
}
68

79
ng2react = softwareSystem "AngularJS to React" "Software System" {
810
filesystem = container "File System" "Where the user's project files exist" "Native" "datastore"
@@ -67,16 +69,40 @@ workspace "ng2react" "A tool that converts AngularJS components to React using O
6769
autoLayout lr
6870
}
6971

72+
component ng2react.IDE "Generic_IDE_Bridge" {
73+
include ng2react.IDE.ng2react_api ng2react.IDE.ide_plugin ng2react.cli_wrapper
74+
exclude ide_user ng2react.filesystem
75+
autoLayout lr
76+
}
77+
78+
component ng2react.IDE "Generic_IDE_Bridge_Wrapper" {
79+
include ng2react.IDE.ng2react_api ng2react.IDE.ide_plugin ng2react.cli_wrapper.ng2react_core
80+
exclude ide_user ng2react.filesystem
81+
autoLayout lr
82+
}
83+
7084
component ng2react.cli_wrapper "AngularJS2React_CLI" {
7185
include *
7286
autoLayout lr
7387
}
7488

89+
component ng2react.cli_wrapper "AngularJS2React_CORE" {
90+
include *
91+
exclude ng2react.IDE
92+
autoLayout lr
93+
}
94+
7595
component ng2react.vscode "VSCode_IDE" {
7696
include *
7797
autoLayout lr
7898
}
7999

100+
component ng2react.vscode "VSCode_IDE_NoBridge" {
101+
include *
102+
exclude ide_user ng2react.filesystem ng2react.vscode.typescript openAi
103+
autoLayout lr
104+
}
105+
80106
deployment ng2react "Live" {
81107
include *
82108
autoLayout lr
@@ -86,6 +112,7 @@ workspace "ng2react" "A tool that converts AngularJS components to React using O
86112
dynamic ng2react "ScanProject" {
87113
title "User converts AngularJS component to React"
88114
ide_user -> ng2react.IDE "Opens AngularJS project inside IDE"
115+
ng2react.IDE -> ng2react.filesystem "Scans project for JavaScript files"
89116
ng2react.IDE -> ng2react.cli_wrapper "Sends files for analysis"
90117
ng2react.cli_wrapper -> ng2react.IDE "Returns list of convertable components"
91118
ng2react.IDE -> ide_user "Displays list of convertable components"
@@ -99,6 +126,8 @@ workspace "ng2react" "A tool that converts AngularJS components to React using O
99126
ng2react.cli_wrapper -> openAi "Sends generated prompt"
100127
ng2react.cli_wrapper -> ng2react.IDE "Returns Markdown, JSX, and original prompt"
101128
ng2react.IDE -> ide_user "Displays markdown response with save options"
129+
ide_user -> ng2react.IDE "Saves converted component"
130+
ng2react.IDE -> ng2react.filesystem "Writes converted component to file"
102131
autoLayout lr
103132
}
104133

0 commit comments

Comments
 (0)