Skip to content

Commit

Permalink
Update documentation (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
QubitPi committed Nov 7, 2023
1 parent 3db9a0a commit 4c15217
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Binary file modified docs/modules/ROOT/images/neo4j-browser.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions docs/modules/ROOT/pages/internals/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,31 @@ We will not have any TypeDoc documentation, because the TypeScript version used
== Component Diagram (WIP)

image:neo4j-browser.png[width=300]

* Sentry.io is initialized in the top index.tsx
* AppInit.tsx is responsible for several initializations:
+
--
** Redux
** Suber: The reason suber is used is sharing states between Neo4J database data and React components is not supported
by Redux. As its doc (https://github.com/oskarhane/suber#in-combination-with-redux) points out, Redux is for two-way
communications between components. Suber is for one-way comm. between component and DB.
** Apollo GraphQL Client
** Drag & Drop Plugin
--
+
The initialization assumes provider pattern around regular App component:
[source,typescript]
----
<Provider store={store as any}>
<BusProvider bus={bus}>
<ApolloProvider client={client}>
<DndProvider backend={HTML5Backend}>
<App />
</DndProvider>
</ApolloProvider>
</BusProvider>
</Provider>
----

* Neo4J Browser styling is implemented via https://styled-components.com/[styled-components] and is initialized in App.tsx

0 comments on commit 4c15217

Please sign in to comment.