Skip to content

Commit 0dbe7b8

Browse files
committed
ATR-18 Additional elaboration
1 parent 9ab27d5 commit 0dbe7b8

File tree

2 files changed

+38
-7
lines changed

2 files changed

+38
-7
lines changed

structurizr/ng2react-core.dsl

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

structurizr/workspace.dsl

+37-7
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,21 @@ workspace "ng2react" "A tool that converts AngularJS components to React using O
22
!docs ./arc42
33
!identifiers hierarchical
44
model {
5-
openAi = softwareSystem "OpenAI" "OpenAI API" "External"
5+
openAi = softwareSystem "GPT-4" "OpenAI API" "AI"
66

77
ng2react = softwareSystem "AngularJS to React" "Software System" {
8-
filesystem = container "File System" "Where the user's project files exist" {
9-
10-
}
8+
filesystem = container "File System" "Where the user's project files exist" "Native" "datastore"
119

1210
cli_wrapper = container "@ng2react/cli" "Command line interface for ng2react" "stdio" {
1311
!include ng2react-core.dsl
1412
}
1513

1614
IDE = container "Generic IDE" "Integrated Development Environment" "Native" {
17-
ide_plugin = component "IDE Extension" "IDE Specific Implementation" "Native" {
15+
ng2react_api = component "Ng2React API" "Native bridge to Node CLI" "Native" {
1816
this -> cli_wrapper.ng2react_core "Makes API calls" "stdio"
17+
}
18+
ide_plugin = component "IDE Extension" "IDE Specific Implementation" "Native" {
19+
this -> ng2react_api "Uses" "stdio"
1920
this -> filesystem "Read/Write"
2021
}
2122
}
@@ -110,7 +111,36 @@ workspace "ng2react" "A tool that converts AngularJS components to React using O
110111

111112
element "Proposed" {
112113
background #b7e1cd
113-
114+
115+
}
116+
117+
element "AI" {
118+
background #aaaaaa
119+
shape Robot
120+
}
121+
122+
element "datastore" {
123+
// shape <Box|RoundedBox|Circle|Ellipse|Hexagon|Cylinder|Pipe|Person|Robot|Folder|WebBrowser|MobileDevicePortrait|MobileDeviceLandscape|Component>
124+
shape Cylinder
125+
// shape Folder
126+
// icon <file|url>
127+
// width <integer>
128+
// height <integer>
129+
// background <#rrggbb|color name>
130+
// color <#rrggbb|color name>
131+
// colour <#rrggbb|color name>
132+
// stroke <#rrggbb|color name>
133+
// strokeWidth <integer: 1-10>
134+
// fontSize <integer>
135+
// border <solid|dashed|dotted>
136+
// opacity <integer: 0-100>
137+
// metadata <true|false>
138+
// description <true|false>
139+
// properties {
140+
// name value
141+
// }
142+
}
143+
114144
}
115145
}
116-
}
146+
}

0 commit comments

Comments
 (0)