-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
78 additions
and
4 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,71 @@ | ||
@startuml Design | ||
skinparam style strictuml | ||
|
||
box "Devtools" | ||
actor "User" as User | ||
end box | ||
|
||
box "Firefox Runtime Context" | ||
participant Console [ | ||
=Console | ||
---- | ||
content script | ||
] | ||
participant Proxy [ | ||
=Proxy | ||
---- | ||
content script | ||
] | ||
participant Background [ | ||
=Background | ||
] | ||
database Storage | ||
participant Panel [ | ||
=Panel | ||
---- | ||
DevTools View | ||
] | ||
end box | ||
|
||
[-> User: Open Devtools | ||
|
||
Background <- Panel: jsdiff-devtools-page-connect | ||
activate Background | ||
Background <-- Panel: keep alive | ||
|
||
=== Invoke API == | ||
User -> Console: jsdiff.diff(...) | ||
activate Console | ||
Console -> Proxy: jsdiff-console-\nto-proxy-inprogress | ||
activate Proxy | ||
Proxy -> Background: jsdiff-proxy-to-panel-inprogress | ||
deactivate Proxy | ||
Console o->o Console: clone arguments | ||
Console -> Proxy: jsdiff-console-\nto-proxy-compare | ||
deactivate Console | ||
|
||
activate Proxy | ||
Proxy o<->o Proxy: arrange payload | ||
Proxy -> Storage: write payload | ||
Proxy --> Background: jsdiff-proxy-to-panel-error | ||
Proxy -> Background: jsdiff-proxy-to-panel-compare | ||
deactivate Proxy | ||
Background -> Panel: relay all messages | ||
|
||
deactivate Background | ||
|
||
activate Panel | ||
Storage -> Panel: read payload | ||
Panel -> Panel: Compare objects | ||
Panel ->o]: Display result | ||
deactivate Panel | ||
|
||
=== Search in DevTools Panel == | ||
User -> Panel: ^+F\n⌘+F | ||
|
||
activate Panel | ||
Panel -> Panel: search in DOM | ||
Panel ->o]: Display result | ||
deactivate Panel | ||
|
||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.